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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var uB,fDe,cn5,c0,lB,X0h,y2,d7,bB,ph,hln,Zhh,DD,kql,KPe,I7,aDt,WP7,E5t,Xi,yn7,dXl,LP0,j72,DX5,WG,dH,jY,Dk,Hhe,Jf,IDn,zI,Ik,ok,PBP,SY,sE,el2,xX7,SeD,rH,g5n,uK,s77,h9,$XD,Ze,n52,v5X,RFl,zX,ui2,OCl,cf7,XGt,hF2,J9,ih7,jl,rne,fke,ak7,wGD,mtB,el,Qkq,Wlh,ECB,tYn,yfh,dtD,bCX,nm,Dt7,zFn,HC5,Utl,eFt,Ym,Ov,GI7,$tl,Xq,gCn,YE2,nCe,Zp,VYB,hT,CfD,Fq,wl,QH,lr,Wr,rfB,vCP,iC7,yH,feq,Rze,u5h,c9l,Om5,zz,Xtt,hz2,tT,leP,kX0,I8,qhP,wtq,Uv,tlD,A9P,CKt,y9h,dah,Da7,bmn,o8,S5,zzn,HmP,Iee,eze,$a7,vmn,Ren,ZED,hm,kzn,qv7,Kj,Am,
aa,wQ,mo,Lj,pj,jy,Wv7,Mu,t5X,deB,gQ,sO,Lvl,VK,Y3,vz,ih,prt,j85,Deq,JTB,zeB,Tln,HE2,Ip7,M5X,Ue2,Ok,uC,ee7,Gzn,BlD,xe7,o_n,Sv0,qc,g_n,Au,a5,FV,wn,Qq,n_2,CG,Yvh,R9h,dn,u3B,Ojn,cmq,LG,Xzn,h95,pG,jW,kdt,Ju,Amh,a0e,z_,wz7,FoB,mu7,QaB,Won,E3h,I5,ty5,ChD,Mc,ymX,duB,Pl,Uk,eW,G_,NQn,bj7,LoP,o5,jaD,Dun,JmB,SW,gn,sk,Vq,Yu,vl,iC,z9n,TQl,Hjn,I0t,MyB,Ph2,Uun,e9h,Gd0,BQe,o3q,f8,xuX,SO5,Of,$un,XH,h5,g3t,Vyt,YOB,v3n,rml,fu5,RwX,Xle,hwe,ZG0,luD,k_n,K1t,qk7,wll,kD,mc7,Q57,W1n,Euh,tWe,CCl,dch,MWe,PC5,Ucn,G_7,Bn5,WK,ou5,
Ef,s5t,nuD,VWB,YkP,vul,iG2,ruX,fw2,Ng,uHl,$cB,O8l,c50,XK5,hf7,Z8D,lw0,kxn,Ky7,qfP,Fyn,awP,Q0P,wK2,mgn,tFB,C_D,y5h,Wy2,Nq7,ED2,b8q,eF,pK7,Gx,o0,j0B,J5q,zfn,IwB,$g7,P_n,MFB,efn,Bq7,Ug5,VFP,s07,Yfn,vDD,i8t,r5B,fN5,u$7,Rdq,ORt,cKl,Xin,hdD,lNB,KDD,q87,AK7,FDq,aN0,bRe,Vw,pi0,DGP,JK2,zdt,T9e,HR7,MrX,P3D,UG7,u3,O8,edP,S8X,ZN,l3,n$l,VrP,XQB,zm7,aj,Hch,UKB,MNX,P4l,E8,emP,Gol,on7,xKD,S$n,$K5,gn0,ss7,nnD,y1,Y$7,ic7,vnl,fKX,JK,Hi,uM0,OQ7,c17,XhP,h8l,ZQh,kfe,qC7,Kwe,g9,nR,V1,r9,NvD,Lw0,fc,bQX,phh,Rs,DWq,jS0,e8e,
Gft,Bvh,xWX,sSe,n85,YCe,v80,iQ5,fLl,ut5,OtX,XT,Zt0,K$2,qb7,Ast,aLP,F$B,kA7,hDD,XfP,Z1,cs7,wf5,QVn,CZn,Exn,Kc,dvX,L$5,btP,pf7,jVD,wP,Dvn,zD0,Js2,TUt,ILX,WQ,xvt,$vD,sV0,Vht,Yb5,itB,NK,b4,Lc,uNq,vxB,OBl,D1,ZB2,To,HQ,Knh,a97,wRl,mx2,Qyt,Is,Wne,EMl,tIh,yAD,dxX,Ncl,LnX,pRh,PQ,jyq,DxP,eN,os,Tcn,HBe,I95,gP,Ux2,ec2,BcD,i4,sy7,nMe,VI2,YL2,vMP,ut,OC,ch,XM,f87,ZK,RMq,u0h,O0n,crn,l8h,KYB,qWt,kL7,k8,Arq,mBq,KQ,w5P,Qhe,a85,WYn,aS,tVl,Ccn,yrn,dBn,LY5,NJn,b0B,DBX,p5e,zM5,UBq,GLh,oNX,SWn,sh0,gN7,$Bn,nN5,YW7,i0q,vNh,
rr0,Rhl,uP7,OTq,LQ,hhq,XCP,ZTt,laP,pQ,j0,kOX,qu2,aaB,m1t,WFP,QIP,nQ,EVq,AZ0,bTe,pCq,jI2,ft,D1h,zhn,Ia5,U1X,Pqn,oV5,x1t,SuB,$17,sIl,iTB,nV7,Yun,vV5,rZn,fvn,uO5,RaP,cjB,Oah,Ft,Xcl,Za7,lve,Ajl,dU,Nv,av0,Fal,Lt,Wae,DL,Js,zA,yj2,TA,LaB,Mv,baP,pc7,j$B,Ds2,eh,Jj5,TuD,HaB,Md2,UsP,Bu2,xsn,nt,Sml,$s7,g7B,s$5,n7P,Vdh,Ym7,v7t,vf,fWl,R4X,uat,Ov2,cH2,X_P,h42,Zvn,lWh,kTq,Kxt,qJ5,AHP,XN,NA5,LxX,hA,Z9,lO,bv2,p_7,jpn,D5t,JH7,z4e,TAD,U50,e4e,GTP,BAt,oEn,wc,Qb,WR,EL,yb,dc,Nx,SJ0,bO,gEe,pB,spt,nEe,jI,VaB,YJq,vEn,hjh,
lHn,aHt,QLn,mq5,Zgl,WB2,C$e,M8e,pWl,Bzn,Dq7,Ge5,oZn,Iy,SPl,PR,gZ7,sLq,V8P,YPl,vZl,rhl,G2,RGt,ur2,Onh,cNq,XLP,hGe,ZnX,fMD,K6n,qy2,AN7,SI,W6h,ES2,Q1e,Cj5,yNt,NY5,L6l,dLn,TYn,IM5,Pjt,eGB,Rh,$L7,Sy7,YyX,ine,rNB,fO5,Rpt,u4q,Ofh,K0,Al0,Ftn,KtB,kJX,aOD,X27,mMn,p22,Es0,twl,Cue,UMe,GJX,Pu7,gsP,Mwn,cl2,$Mq,Wt7,bfB,ep0,w25,Zfe,hpP,lOl,qUB,IOe,jV,ZU7,kWD,Ki2,qxn,A4B,Ciq,p75,jFl,eV,J47,HUn,UOn,PiD,GWq,BRX,SxX,xOn,$O0,VL,gr7,sFl,VQ0,nr7,YN,R52,fBt,r45,XMn,ufl,h52,cS5,ZL7,ic,lB7,ASB,K8e,qzn,F8t,wMP,QXP,uq,t67,W87,
Cet,L85,bLP,DID,z55,hZ,Za,M6t,Pel,lq,kV,UI0,KT,q1,e57,aI,Gwt,FP,Bxt,oGe,mF,xI0,Szl,$Il,gG7,sXe,V67,nGP,vGt,fR5,rSn,RAP,ukn,YzX,OrB,hAX,XJn,iLB,ZrP,lR7,CT,kS2,qp7,KQ5,Axt,FQq,mp2,wJB,QAt,de,EOn,tPt,WQD,yxn,dp2,NWn,jAP,zA5,PAl,BW2,N1,Sp2,$pB,LT,gO7,Da,JZ,irt,pT,HC,rx5,fmB,uZq,O92,XBe,Z9P,lmt,kBn,KGh,am7,WGn,mmt,AF0,ERP,tn7,Uu,Qml,CXn,BC,yF0,dmn,NhD,LGD,Dm7,b95,jmn,H97,ImX,GBq,eLn,xm5,VnX,YY7,i9B,fSD,RKe,OSe,cdB,X9t,ZSq,lSn,kan,Adt,mSX,QG0,aSl,Ej0,CkB,tgn,Wzq,ydq,NI2,LzX,bSP,p9B,jG0,re,fa,Om,XO,zKq,
TIn,IS5,USn,hj,Zv,eKl,lE,oje,xSt,SXe,Ka,VgX,rd7,Rv0,uAh,O6B,cMD,Xoq,lYn,Aj,kRP,AMB,a$,aYB,mHD,Qtq,WOl,wo7,NZn,poX,LOt,jtX,zv5,H6h,MTB,GR7,evh,S0e,Em,$Hh,gT7,tj,stB,Ca,nTe,VT7,Y0t,i6n,vT0,rMD,fjn,RJ7,ue7,kDX,q27,ajl,Akl,hJh,ck2,wID,QgX,yk7,dU7,bpl,TBB,Ijn,La,MAl,UUq,eJn,BBh,$Ul,sge,VAP,Y2P,vzB,ip7,OdD,rk2,Zd7,lqh,Kq7,jd,Aoh,aq5,Fql,wbP,mZq,QfD,WqB,tDl,CV0,T4,yoh,dZD,bd2,I$,Lq7,jfe,T45,Pc,HdB,Iq2,MD2,eIh,G02,PVe,oIB,gI5,sf5,nIt,x7,VDl,ro7,fCe,sm,OWh,RoP,uwl,XsX,ZWP,lCt,A_7,wsn,F4q,aC2,m2X,W4t,Ev7,L40,
t4l,bW0,D20,ps7,M4P,eoD,Bw7,x2e,iWP,f22,RUn,Xq5,Z57,pv,P_,a25,QzD,m_n,Ewq,tHn,yVh,C0B,d_l,N57,UJ,FBt,FNB,WNt,wqB,Ip,nv,pqh,jz0,T52,H5B,I20,MH0,P0h,U_B,v_,eUt,il,Ggl,B5P,ow2,x_7,RL,SQl,szP,VHB,YQ2,OJ5,Xe2,hxe,ZJX,kpX,K07,Kg,AOl,a$X,F0l,wet,mfP,Qbe,EP7,CQ7,df5,NFt,Zuh,Xmh,lVe,qTP,AL7,Qe,aVl,FJe,wm7,WJP,tvn,EHn,yLD,Nmh,Cg,bu2,pmn,LJl,jUt,Dj5,znh,Huq,Tm7,IVe,JLe,MvP,PL7,Uje,enn,GhX,Bm2,oH0,xj2,ST7,sUP,gHh,nHB,YTt,Vvh,ye,vHq,fl2,XYn,iuq,hOh,ZNt,ll7,k9n,QYl,Ehl,tiP,ytn,dit,IL,pY0,zOe,HN0,Mq,Uie,PxP,eO7,
e8,G9e,BSD,ohq,Sd7,$iB,gh0,sYt,Viq,Yde,hTP,ul7,cit,lnh,ZiB,kCB,Ku2,Ai7,Ful,mkn,Wu0,jCn,zT2,Hie,In7,Mol,P5B,Uk7,GC5,BtX,S1l,$kq,ga5,sCn,na2,VoP,Y1t,va5,fX5,cCP,rz,fn,R1,uj,XT5,Xr,Zkq,m77,yCn,tGh,e7q,GMh,Bjt,kMl,wTB,ACt,x7h,Sql,$7X,WfP,sr5,VGn,vdq,fse,RVP,QC,tN,Cn,lsh,ZqP,Aeh,as0,yen,N2P,bqt,pde,JeD,T27,zVX,M$0,UAn,$Ah,xAn,G5n,Sch,B22,gln,YcD,PL,XXn,uGq,ZI0,lZn,K_5,q7q,ek,AEX,wXl,mDn,Q6P,Ei0,W_7,o1,L_X,nn,pX7,j6B,YS,DD0,JEq,zg5,T3n,HIP,IZq,MXP,PgB,UD5,egD,GHh,B3B,oiB,xD0,S72,vL,$DD,gih,s65,nih,VX5,
Y7X,vi7,iIh,rEP,fAh,Ruh,uCP,R4,cUq,hue,lAh,qln,Fpn,wO0,m$P,WpB,tMn,CPe,yUq,lu,pOX,Lp2,j37,D$7,JUl,Het,IAn,MM7,U$t,tl,Glh,W2,oct,x$0,Cf,Sll,$$5,gch,s3h,d_,vcP,rUB,cqB,OY2,htn,ZY7,Jl,l77,kUn,qiB,a7h,FhX,mCX,QWl,AqD,Wh0,dC7,pP2,jWP,zJ,DCn,Jq0,Mbt,ztB,HYB,I75,oyn,UCh,xCB,$Cn,sWq,nye,Vbn,Yi2,vyl,iY0,f5B,RBq,uW7,OOh,cgn,hBP,l5t,qHD,wpD,WmP,tEB,dE5,ew,Nbq,Lml,bO7,ppP,jEh,Jge,zBh,TbX,HO7,I55,MEe,Psl,UEe,eBh,GKh,Bbn,xEe,oQ5,gQe,nQe,o4,VE5,iOD,vQ7,Sw,Ryn,uhn,hyn,kY2,ZyP,Xn7,A8t,qZh,QMt,aFq,VR,wn5,Nrn,tpq,Cat,
y8e,dF2,LI7,pnB,by0,Ys,v2,IFe,DFB,Hyt,Tre,J82,zyD,UFn,GYD,oAh,Brn,gAX,$F5,Vp7,YZD,iyX,r8h,vA2,fIh,uc7,Rrn,cX7,ZFh,Xy,lIq,k8X,AXB,Qol,dYl,Zz,Lch,DY7,HF0,Tye,JXP,zrn,A4,UYn,IIq,MUX,erD,Byn,G8n,SI0,$Y2,soq,nbB,VUP,YID,vbn,rX7,fft,LU,uKn,pU,OA2,ZAn,lf5,zW,ksX,qBn,tml,P7,wjl,EK7,mde,QOB,NiP,Lk7,ddP,bA7,pj0,zYn,jOn,Ti5,HAh,eQ,Mm7,Pbt,Ud7,Ift,Gst,eYX,GW,SB5,vKq,iAe,r05,fxn,R_l,uo0,h_B,cvn,X3P,OM2,lx2,qAh,F3q,w3X,QPP,tLB,W30,Een,Cpl,drl,NVD,L3B,bM7,p3l,jP7,Jv0,V0,z_h,Ix5,HMh,PpD,MLq,Ure,e_e,GkX,Yr,oeh,rvn,
veX,ubn,O1n,kZ2,Ke7,q6B,ABq,ac7,FeB,Qu2,WeD,EJl,tZl,dNn,Nge,Let,b1q,pw7,juP,DND,JBh,zCe,Tgn,Icn,MZD,PI7,GZB,oJt,gJD,$N2,S6t,xNh,Y65,nJn,i1n,rB7,RR7,wx,uR7,OHe,cPq,l42,Xu2,kbh,hR2,KU7,Ez,qN0,AP5,a42,ZHq,FU2,EUP,tcn,C8q,ym,yP2,dVP,NdP,LU7,bHn,pu2,DVX,JPl,zR5,Td2,Mc7,I4P,Bdh,HHq,NI,oU2,P8e,Gbn,$Vl,sv5,iHn,YN0,vUD,VcD,nUe,zw,rPn,RW7,uIn,Ozn,cc0,Xvl,KTX,ZzX,hWq,lT2,C2D,EFq,kjl,WTn,jBn,Dwt,Jcq,zWD,TXl,Hzn,ITh,Uwq,GjD,oF0,SSn,$w2,gFD,YSq,VJX,vFl,rc5,rx,up5,ODB,cah,X40,RA,uA,lQn,qwh,QZn,Con,ya2,dh0,NE7,LW5,
bD7,jZ2,Jan,DhB,zZ2,HDn,IQD,Mql,Pon,Uh2,eZh,lA,G7t,sZB,n10,Swn,xhq,g1D,$hn,uBn,rat,qp,Oxq,c60,XHe,h32,Zx2,lGe,kvl,KEn,q9D,aGD,wH7,QeX,EW0,C6t,LE7,bxP,pH7,J67,Db2,jeB,z3h,T10,IGe,MK2,P6P,UbP,Q5,Gvt,B15,oW5,S9q,xb2,$b0,seD,nW5,VK7,vWD,ix7,Y9P,czB,Zwq,l67,kFe,KKh,AzP,qo5,a6e,m3e,Qcq,WKe,ELn,CMB,tS5,d32,jcn,pSP,Jz7,zsD,TKe,U3h,es2,GF7,BK7,SoP,$3B,nLn,Yo7,VSn,vLP,Up,iwP,rze,O47,ud0,cDe,Xxh,Z4B,li0,qKe,ail,FLt,wx0,m9B,QRl,WL7,E2t,t_n,CF0,yDh,NMt,d9h,LL5,b4h,pxX,jR0,D9e,JDt,zb7,H4h,Iiq,TM7,$O,U9P,eb7,G37,
BM0,o22,SK7,g22,sRt,n2e,V_5,YK2,v27,rD0,fg0,umh,c3n,hi7,KgB,lgq,Zln,kGn,qGt,Fgq,A32,ag5,mT7,Ekh,tzh,CvB,dTB,Naq,Lge,pU2,DT5,bl0,J3n,zi7,TaB,Hl7,IgD,Mzn,UTe,Pvl,eih,GGB,BaX,ok5,xT7,SGD,$Tq,gkl,VzP,YG5,sKn,nk7,fUq,RX7,cB,hXe,Z2e,kEn,ARl,qtq,aUl,FS5,XZ,Zm,mo7,Q2n,K9,qm,CRn,WS7,Efe,N0P,p$t,Do5,JRD,zXn,T0t,H27,Mj0,PRq,UoX,eX0,GE5,B02,ofP,FZ,xoP,Stl,mG,$oh,gf0,s2e,nfB,Vjh,Yt7,EY,tF,vfh,i2n,C9,rRn,fyt,R$7,uJ7,cW2,XEq,ZXn,AWn,q5D,K7X,ay0,F7X,tsl,Qle,W7t,m0l,E9q,dh,No7,L7n,bXh,pE7,jlh,JWX,Iye,Ton,Nm,z$P,GVX,
o92,x07,S55,$0q,g9n,n9e,Vs7,Y50,v95,rWP,f_B,REn,OKh,c77,hEP,ZK0,A7B,Frl,a_2,m40,CYn,y7n,d4n,Nfn,bK0,Dm,zB,JF,pkn,jdB,D4n,J7X,Tf7,HKn,I_e,MfX,U4B,Gu0,Bf5,oqD,TB,x42,$4X,gq0,Vfn,Y47,HB,Im,r7n,vqh,fdq,O_7,Rk0,c$h,PB,hk5,Z_7,Kbe,A$X,UY,Fbq,waP,m8h,QTn,Wbl,EB7,tCn,y$2,b_7,pal,J$t,jTP,D85,zkt,MCq,TLe,Id5,P9t,U80,ekh,oB7,x82,Sg5,$8B,gB7,i_q,vB5,cGl,Z3n,YR,lJ5,jjB,kN2,KV2,AGn,FVt,wZ7,yG7,dJt,RG,N$e,LVn,b3l,pZe,jJ0,JGB,T$q,DJe,z1h,IJt,H37,PWD,UJX,e17,GNn,B$B,oXn,xJq,SRh,nX7,vX2,V32,i30,rG5,fon,Xx,R0X,uL5,
ZS,c2t,OVB,Xyt,h00,lo2,kr0,qMl,A27,aot,Fsn,wyn,WsP,CnX,NDP,d67,Lsn,bVX,D6B,GrD,HVB,opt,x6e,$6n,gpe,YMB,r2B,RPn,fh0,ObD,cQn,XAl,hP2,Zbn,lh7,K5t,ah5,F5n,wAX,mzq,E4q,W5D,dzn,N80,L5P,bb0,pAh,jQq,JQD,dI,T8n,pS,IhP,PDX,UzB,xz7,$z5,Vee,v4B,ibt,ft0,R6B,uEe,cb0,h6B,Zon,KR7,AbP,wDX,FRX,ath,H9,Qql,mnn,WRB,Egq,tB7,CGq,ybe,dnP,N6e,bon,pD2,jq0,JbB,HoP,Dnl,z6e,ItX,MBe,PGB,Unn,Gc7,B6n,VB2,Y37,vge,iol,rbX,uF5,B9,lbP,kyt,KjX,q_5,Awt,oG,xj,s8,tRq,gI,CmX,Ljt,pFn,b$7,sX,jN2,Dyn,$et;
_.R7=function(f,R){if(Error.captureStackTrace)Error.captureStackTrace(this,_.R7);else{var u=Error().stack;u&&(this.stack=u)}f&&(this.message=String(f));R!==void 0&&(this.cause=R)};
uB=function(){throw Error("B");};
fDe=function(f,R){R=String.fromCharCode.apply(null,R);return f==null?R:f+R};
cn5=function(f){var R=!1;R=R===void 0?!1:R;if(Rln){if(R&&(unt?!f.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(f)))throw Error("C");f=(Oh7||(Oh7=new TextEncoder)).encode(f)}else{for(var u=0,O=new Uint8Array(3*f.length),c=0;c<f.length;c++){var h=f.charCodeAt(c);if(h<128)O[u++]=h;else{if(h<2048)O[u++]=h>>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&c<f.length){var l=f.charCodeAt(++c);if(l>=56320&&l<=57343){h=(h-55296)*1024+l-56320+65536;O[u++]=h>>18|
240;O[u++]=h>>12&63|128;O[u++]=h>>6&63|128;O[u++]=h&63|128;continue}else c--}if(R)throw Error("C");h=65533}O[u++]=h>>12|224;O[u++]=h>>6&63|128}O[u++]=h&63|128}}f=u===O.length?O:O.subarray(0,u)}return f};
c0=function(f){_.Oe.setTimeout(function(){throw f;},0)};
_.hn=function(f,R){return f.lastIndexOf(R,0)==0};
lB=function(f,R){var u=f.length-R.length;return u>=0&&f.indexOf(R,u)==u};
_.Kh=function(f){return/^[\s\xa0]*$/.test(f)};
_.qX=function(f,R){return f.indexOf(R)!=-1};
_.a7=function(f,R){return _.qX(f.toLowerCase(),R.toLowerCase())};
_.w7=function(f,R){var u=0;f=Fn(String(f)).split(".");R=Fn(String(R)).split(".");for(var O=Math.max(f.length,R.length),c=0;u==0&&c<O;c++){var h=f[c]||"",l=R[c]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(h[0].length==0&&l[0].length==0)break;u=X0h(h[1].length==0?0:parseInt(h[1],10),l[1].length==0?0:parseInt(l[1],10))||X0h(h[2].length==0,l[2].length==0)||X0h(h[2],l[2]);h=h[3];l=l[3]}while(u==0)}return u};
X0h=function(f,R){return f<R?-1:f>R?1:0};
_.Q2=function(){var f=_.Oe.navigator;return f&&(f=f.userAgent)?f:""};
y2=function(f){if(!W0||!Ch)return!1;for(var R=0;R<Ch.brands.length;R++){var u=Ch.brands[R].brand;if(u&&_.qX(u,f))return!0}return!1};
d7=function(f){return _.qX(_.Q2(),f)};
bB=function(){return W0?!!Ch&&Ch.brands.length>0:!1};
ph=function(){return bB()?!1:d7("Opera")};
hln=function(){return bB()?!1:d7("Trident")||d7("MSIE")};
Zhh=function(){return bB()?y2("Microsoft Edge"):d7("Edg/")};
DD=function(){return d7("Firefox")||d7("FxiOS")};
_.H0=function(){return d7("Safari")&&!(_.Tq()||(bB()?0:d7("Coast"))||ph()||(bB()?0:d7("Edge"))||Zhh()||(bB()?y2("Opera"):d7("OPR"))||DD()||d7("Silk")||d7("Android"))};
_.Tq=function(){return bB()?y2("Chromium"):(d7("Chrome")||d7("CriOS"))&&!(bB()?0:d7("Edge"))||d7("Silk")};
_.lDB=function(){return d7("Android")&&!(_.Tq()||DD()||ph()||d7("Silk"))};
kql=function(f){var R={};f.forEach(function(u){R[u[0]]=u[1]});
return function(u){return R[u.find(function(O){return O in R})]||""}};
KPe=function(f){var R=_.Q2();if(f==="Internet Explorer"){if(hln())if((f=/rv: *([\d\.]*)/.exec(R))&&f[1])R=f[1];else{f="";var u=/MSIE +([\d\.]+)/.exec(R);if(u&&u[1])if(R=/Trident\/(\d.\d)/.exec(R),u[1]=="7.0")if(R&&R[1])switch(R[1]){case "4.0":f="8.0";break;case "5.0":f="9.0";break;case "6.0":f="10.0";break;case "7.0":f="11.0"}else f="7.0";else f=u[1];R=f}else R="";return R}var O=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");u=[];for(var c;c=O.exec(R);)u.push([c[1],c[2],c[3]||void 0]);
R=kql(u);switch(f){case "Opera":if(ph())return R(["Version","Opera"]);if(bB()?y2("Opera"):d7("OPR"))return R(["OPR"]);break;case "Microsoft Edge":if(bB()?0:d7("Edge"))return R(["Edge"]);if(Zhh())return R(["Edg"]);break;case "Chromium":if(_.Tq())return R(["Chrome","CriOS","HeadlessChrome"])}return f==="Firefox"&&DD()||f==="Safari"&&_.H0()||f==="Android Browser"&&_.lDB()||f==="Silk"&&d7("Silk")?(R=u[2])&&R[1]||"":""};
_.qeX=function(f){if(bB()&&f!=="Silk"){var R=Ch.brands.find(function(u){return u.brand===f});
if(!R||!R.version)return NaN;R=R.version.split(".")}else{R=KPe(f);if(R==="")return NaN;R=R.split(".")}return R.length===0?NaN:Number(R[0])};
I7=function(){return W0?!!Ch&&!!Ch.platform:!1};
_.An2=function(){return I7()?Ch.platform==="Android":d7("Android")};
aDt=function(){return d7("iPhone")&&!d7("iPod")&&!d7("iPad")};
_.P0=function(){return aDt()||d7("iPad")||d7("iPod")};
_.FP0=function(){return I7()?Ch.platform==="macOS":d7("Macintosh")};
_.w0q=function(){return I7()?Ch.platform==="Windows":d7("Windows")};
_.mXq=function(){return I7()?Ch.platform==="Chrome OS":d7("CrOS")};
_.Ue=function(f){return f[f.length-1]};
_.et=function(f,R,u){R=_.Q75(f,R,u);return R<0?null:typeof f==="string"?f.charAt(R):f[R]};
_.Q75=function(f,R,u){for(var O=f.length,c=typeof f==="string"?f.split(""):f,h=0;h<O;h++)if(h in c&&R.call(u,c[h],h,f))return h;return-1};
WP7=function(f){for(var R=_.B0,u=typeof f==="string"?f.split(""):f,O=f.length-1;O>=0;O--)if(O in u&&R.call(void 0,u[O],O,f))return O;return-1};
_.g7=function(f,R){return _.x5(f,R)>=0};
_.se=function(f,R){_.g7(f,R)||f.push(R)};
_.v0=function(f,R){R=_.x5(f,R);var u;(u=R>=0)&&_.nh(f,R);return u};
_.nh=function(f,R){Array.prototype.splice.call(f,R,1)};
_.iB=function(f){var R=f.length;if(R>0){for(var u=Array(R),O=0;O<R;O++)u[O]=f[O];return u}return[]};
_.uf=function(f,R){for(var u=1;u<arguments.length;u++){var O=arguments[u];if(_.Rk(O)){var c=f.length||0,h=O.length||0;f.length=c+h;for(var l=0;l<h;l++)f[c+l]=O[l]}else f.push(O)}};
_.tte=function(f,R,u,O){Array.prototype.splice.apply(f,E5t(arguments,1))};
E5t=function(f,R,u){return arguments.length<=2?Array.prototype.slice.call(f,R):Array.prototype.slice.call(f,R,u)};
Xi=function(f,R){R=R||f;for(var u=0,O=0,c={};O<f.length;){var h=f[O++],l=_.OE(h)?"o"+_.cG(h):(typeof h).charAt(0)+h;Object.prototype.hasOwnProperty.call(c,l)||(c[l]=!0,R[u++]=h)}R.length=u};
_.CBP=function(f,R,u){u=u||_.Zk;for(var O=0,c=f.length,h;O<c;){var l=O+(c-O>>>1);var K=u(R,f[l]);K>0?O=l+1:(c=l,h=!K)}return h?O:-O-1};
_.Af=function(f,R,u){if(!_.Rk(f)||!_.Rk(R)||f.length!=R.length)return!1;var O=f.length;u=u||yn7;for(var c=0;c<O;c++)if(!u(f[c],R[c]))return!1;return!0};
_.Zk=function(f,R){return f>R?1:f<R?-1:0};
yn7=function(f,R){return f===R};
dXl=function(f,R,u){R=Array.prototype.splice.call(f,R,1);Array.prototype.splice.call(f,u,0,R[0])};
LP0=function(f){return N7P[f]||""};
j72=function(f){if(!bhD)return _.Fi(f);f=p0q.test(f)?f.replace(p0q,LP0):f;f=atob(f);for(var R=new Uint8Array(f.length),u=0;u<f.length;u++)R[u]=f.charCodeAt(u);return R};
DX5=function(f,R){f.__closure__error__context__984382||(f.__closure__error__context__984382={});f.__closure__error__context__984382.severity=R};
_.QA=function(f){f=Error(f);DX5(f,"warning");return f};
WG=function(f,R){if(f!=null){var u;var O=(u=JnP)!=null?u:JnP={};u=O[f]||0;u>=R||(O[f]=u+1,f=Error(),DX5(f,"incident"),c0(f))}};
dH=function(f,R,u){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(u===void 0?0:u)&&Symbol.for&&f?Symbol.for(f):f!=null?Symbol(f):Symbol():R};
jY=function(f,R){Nt||_.pC in f||zl7(f,T7q);f[_.pC]|=R};
Dk=function(f,R){Nt||_.pC in f||zl7(f,T7q);f[_.pC]=R};
Hhe=function(f){if(4&f)return 512&f?512:1024&f?1024:0};
Jf=function(f){jY(f,34);return f};
IDn=function(f){jY(f,32);return f};
zI=function(){return typeof BigInt==="function"};
Ik=function(f,R){return R===void 0?f.copyOnWrite!==TI&&!!(2&(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pC]|0)):!!(2&R)&&f.copyOnWrite!==TI};
_.eY=function(f,R){if(f!=null)if(typeof f==="string")f=f?new Mt(f,PG):_.UE();else if(f.constructor!==Mt)if(MtD&&f!=null&&f instanceof Uint8Array)f=f.length?new Mt(new Uint8Array(f),PG):_.UE();else{if(!R)throw Error();f=void 0}return f};
ok=function(f,R){if(typeof R!=="number"||R<0||R>=f.length)throw Error();};
PBP=function(f,R,u){var O=R&128?0:-1,c=f.length,h;if(h=!!c)h=f[c-1],h=h!=null&&typeof h==="object"&&h.constructor===Object;var l=c+(h?-1:0);for(R=R&128?1:0;R<l;R++)u(R-O,f[R]);if(h){f=f[c-1];for(var K in f)!isNaN(K)&&u(+K,f[K])}};
SY=function(f){return f&128?xC:void 0};
sE=function(f){f.isGuard_doNotManuallySetPrettyPlease=!0;return f};
el2=function(){var f=UX0;return sE(function(R){for(var u in f)if(R===f[u]&&!/^[0-9]+$/.test(u))return!0;return!1})};
_.VA=function(f){var R=f;if(Gql(R)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(R))throw Error(String(R));}else if(B7q(R)&&!Number.isSafeInteger(R))throw Error(String(R));return nC?BigInt(f):f=o5e(f)?f?"1":"0":Gql(f)?f.trim()||"0":String(f)};
xX7=function(f,R){if(f.length>R.length)return!1;if(f.length<R.length||f===R)return!0;for(var u=0;u<f.length;u++){var O=f[u],c=R[u];if(O>c)return!1;if(O<c)return!0}};
SeD=function(f){var R=f>>>0;YC=R;vG=(f-R)/4294967296>>>0};
rH=function(f){if(f<0){SeD(-f);var R=_.Z($XD(YC,vG));f=R.next().value;R=R.next().value;YC=f>>>0;vG=R>>>0}else SeD(f)};
g5n=function(f,R){var u=R*4294967296+(f>>>0);return Number.isSafeInteger(u)?u:_.fm(f,R)};
uK=function(f,R){var u=R&2147483648;u&&(f=~f+1>>>0,R=~R>>>0,f==0&&(R=R+1>>>0));f=g5n(f,R);return typeof f==="number"?u?-f:f:u?"-"+f:f};
_.fm=function(f,R){R>>>=0;f>>>=0;if(R<=2097151)var u=""+(4294967296*R+f);else zI()?u=""+(BigInt(R)<<BigInt(32)|BigInt(f)):(u=(f>>>24|R<<8)&16777215,R=R>>16&65535,f=(f&16777215)+u*6777216+R*6710656,u+=R*8147497,R*=2,f>=1E7&&(u+=f/1E7>>>0,f%=1E7),u>=1E7&&(R+=u/1E7>>>0,u%=1E7),u=R+s77(u)+s77(f));return u};
s77=function(f){f=String(f);return"0000000".slice(f.length)+f};
_.Oh=function(f,R){R&2147483648?zI()?f=""+(BigInt(R|0)<<BigInt(32)|BigInt(f>>>0)):(R=_.Z($XD(f,R)),f=R.next().value,R=R.next().value,f="-"+_.fm(f,R)):f=_.fm(f,R);return f};
h9=function(f){if(f.length<16)rH(Number(f));else if(zI())f=BigInt(f),YC=Number(f&BigInt(4294967295))>>>0,vG=Number(f>>BigInt(32)&BigInt(4294967295));else{var R=+(f[0]==="-");vG=YC=0;for(var u=f.length,O=R,c=(u-R)%6+R;c<=u;O=c,c+=6)O=Number(f.slice(O,c)),vG*=1E6,YC=YC*1E6+O,YC>=4294967296&&(vG+=Math.trunc(YC/4294967296),vG>>>=0,YC>>>=0);R&&(R=_.Z($XD(YC,vG)),f=R.next().value,R=R.next().value,YC=f,vG=R)}};
$XD=function(f,R){R=~R;f?f=~f+1:R+=1;return[f,R]};
Ze=function(f){return Array.prototype.slice.call(f)};
_.km=function(f,R){throw Error(R===void 0?"unexpected value "+f+"!":R);};
_.Km=function(f){if(f!=null&&typeof f!=="number")throw Error("I`"+typeof f+"`"+f);return f};
_.qa=function(f){if(f==null||typeof f==="number")return f;if(f==="NaN"||f==="Infinity"||f==="-Infinity")return Number(f)};
n52=function(f){if(f!=null&&typeof f!=="boolean")throw Error("J`"+_.F5(f)+"`"+f);return f};
_.VtX=function(f){if(f==null||typeof f==="boolean")return f;if(typeof f==="number")return!!f};
_.t9=function(f){switch(typeof f){case "bigint":return!0;case "number":return QS(f);case "string":return Yen.test(f);default:return!1}};
_.Cm=function(f){if(!QS(f))throw _.QA("enum");return f|0};
_.yS=function(f){return f==null?f:QS(f)?f|0:void 0};
v5X=function(f){if(typeof f!=="number")throw _.QA("int32");if(!QS(f))throw _.QA("int32");return f|0};
_.dN=function(f){return f==null?f:v5X(f)};
_.Na=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return QS(f)?f|0:void 0};
_.Lm=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return QS(f)?f>>>0:void 0};
RFl=function(f){var R=0;R=R===void 0?0:R;if(!_.t9(f))throw _.QA("int64");var u=typeof f;switch(R){case 512:switch(u){case "string":return jl(f);case "bigint":return String(De(64,f));default:return ih7(f)}case 1024:switch(u){case "string":return rne(f);case "bigint":return _.VA(De(64,f));default:return fke(f)}case 0:switch(u){case "string":return jl(f);case "bigint":return _.VA(De(64,f));default:return J9(f)}default:return _.km(R,"Unknown format requested type for int64")}};
zX=function(f){return f==null?f:RFl(f)};
ui2=function(f){if(f[0]==="-")return!1;var R=f.length;return R<20?!0:R===20&&Number(f.substring(0,6))<184467};
OCl=function(f){var R=f.length;return f[0]==="-"?R<20?!0:R===20&&Number(f.substring(0,7))>-922337:R<19?!0:R===19&&Number(f.substring(0,6))<922337};
cf7=function(f){if(f<0){rH(f);var R=_.fm(YC,vG);f=Number(R);return TX(f)?f:R}R=String(f);if(ui2(R))return R;rH(f);return g5n(YC,vG)};
XGt=function(f){if(OCl(f))return f;h9(f);return _.Oh(YC,vG)};
hF2=function(f){if(ui2(f))return f;h9(f);return _.fm(YC,vG)};
J9=function(f){f=Ht(f);TX(f)||(rH(f),f=uK(YC,vG));return f};
_.ZCe=function(f){f=Ht(f);return f>=0&&TX(f)?f:cf7(f)};
ih7=function(f){f=Ht(f);if(TX(f))f=String(f);else{var R=String(f);OCl(R)?f=R:(rH(f),f=_.Oh(YC,vG))}return f};
_.lk5=function(f){f=Ht(f);if(f>=0&&TX(f))f=String(f);else{var R=String(f);ui2(R)?f=R:(rH(f),f=_.fm(YC,vG))}return f};
jl=function(f){var R=Ht(Number(f));if(TX(R))return String(R);R=f.indexOf(".");R!==-1&&(f=f.substring(0,R));return XGt(f)};
rne=function(f){var R=Ht(Number(f));if(TX(R))return _.VA(R);R=f.indexOf(".");R!==-1&&(f=f.substring(0,R));return zI()?_.VA(De(64,BigInt(f))):_.VA(XGt(f))};
fke=function(f){return TX(f)?_.VA(J9(f)):_.VA(ih7(f))};
_.kIh=function(f){return TX(f)?_.VA(_.ZCe(f)):_.VA(_.lk5(f))};
_.Kln=function(f){var R=Ht(Number(f));if(TX(R)&&R>=0)return String(R);R=f.indexOf(".");R!==-1&&(f=f.substring(0,R));return hF2(f)};
_.qEB=function(f){var R=Ht(Number(f));if(TX(R)&&R>=0)return _.VA(R);R=f.indexOf(".");R!==-1&&(f=f.substring(0,R));return zI()?_.VA((0,_.Iw)(64,BigInt(f))):_.VA(hF2(f))};
_.AfP=function(f){if(f==null)return f;if(typeof f==="bigint")return Ma(f)?f=Number(f):(f=De(64,f),f=Ma(f)?Number(f):String(f)),f;if(_.t9(f))return typeof f==="number"?J9(f):jl(f)};
ak7=function(f,R){R=R===void 0?!1:R;var u=typeof f;if(f==null)return f;if(u==="bigint")return String(De(64,f));if(_.t9(f))return u==="string"?jl(f):R?ih7(f):J9(f)};
_.FlB=function(f){var R=typeof f;if(f==null)return f;if(R==="bigint")return _.VA(De(64,f));if(_.t9(f))return R==="string"?rne(f):fke(f)};
wGD=function(f){if(f==null)return f;var R=typeof f;if(R==="bigint")return String(De(64,f));if(_.t9(f)){if(R==="string")return jl(f);if(R==="number")return J9(f)}};
mtB=function(f){if(f==null)return f;var R=typeof f;if(R==="bigint")return String((0,_.Iw)(64,f));if(_.t9(f)){if(R==="string")return _.Kln(f);if(R==="number")return _.ZCe(f)}};
_.Pt=function(f){if(typeof f!=="string")throw Error();return f};
el=function(f){if(f!=null&&typeof f!=="string")throw Error();return f};
_.Bt=function(f){return f==null||typeof f==="string"?f:void 0};
Qkq=function(f,R,u,O){if(f!=null&&f[ow]===xm)return f;if(!Array.isArray(f))return u?O&2?((f=R[Sl])||(f=new R,Jf(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),f=R[Sl]=f),R=f):R=new R:R=void 0,R;u=f[_.pC]|0;O=u|O&32|O&2;O!==u&&Dk(f,O);return new R(f)};
Wlh=function(f,R,u){f=R?v5X(f):_.Na(f);return f==null?u?0:void 0:f|0};
ECB=function(f){return f};
tYn=function(f){return f};
yfh=function(f,R,u,O,c,h){f=Qkq(f,O,u,h);c&&(f=CfD(f));return f};
dtD=function(f){return[f,this.get(f)]};
bCX=function(){return NH7||(NH7=new $m(Jf([]),void 0,void 0,void 0,Ll5))};
nm=function(f){var R=gN(sh);return R?f[R]:void 0};
Dt7=function(f,R){var u=u===void 0?!1:u;if(gN(pGD)&&gN(sh)&&void 0===pGD){var O=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=O[sh];if(!c)return;if(c=c.reviveUnknownFields)try{c(O,R,jkn);return}catch(h){c0(h)}}u&&(f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(u=gN(sh))&&u in f&&(f=f[u])&&delete f[R])};
zFn=function(f,R){var u=gN(sh),O;Nt&&u&&((O=f[u])==null?void 0:O[R])!=null&&WG(Jfq,3)};
HC5=function(f,R){R<100||WG(THD,1)};
Utl=function(f,R,u,O){var c=O!==void 0;O=!!O;var h=gN(sh),l;!c&&Nt&&h&&(l=f[h])&&VS(l,HC5);h=[];var K=f.length;l=4294967295;var q=!1,F=!!(R&64),w=F?R&128?0:-1:void 0;if(!(R&1)){var m=K&&f[K-1];m!=null&&typeof m==="object"&&m.constructor===Object?(K--,l=K):m=void 0;if(F&&!(R&128)&&!c){q=!0;var W;l=((W=Ik5)!=null?W:ECB)(l-w,w,f,m)+w}}R=void 0;for(W=0;W<K;W++){var C=f[W];if(C!=null&&(C=u(C,O))!=null)if(F&&W>=l){var d=W-w,p=void 0;((p=R)!=null?p:R={})[d]=C}else h[W]=C}if(m)for(var J in m)K=m[J],K!=null&&
(K=u(K,O))!=null&&(W=+J,C=void 0,F&&!Number.isNaN(W)&&(C=W+w)<l?h[C]=K:(W=void 0,((W=R)!=null?W:R={})[J]=K));R&&(q?h.push(R):h[l]=R);c&&gN(sh)&&(f=nm(f))&&f instanceof MYl&&(h[sh]=Pf5(f));return h};
eFt=function(f){f[0]=Ym(f[0]);f[1]=Ym(f[1]);return f};
Ym=function(f){switch(typeof f){case "number":return Number.isFinite(f)?f:""+f;case "bigint":return Ma(f)?Number(f):""+f;case "boolean":return f?1:0;case "object":if(Array.isArray(f)){var R=f[_.pC]|0;return f.length===0&&R&1?void 0:Utl(f,R,Ym)}if(f!=null&&f[ow]===xm)return GI7(f);if(f instanceof Mt){R=f.JSC$6819_value_;if(R==null)f="";else if(typeof R==="string")f=R;else{if(bhD){for(var u="",O=0,c=R.length-10240;O<c;)u+=String.fromCharCode.apply(null,R.subarray(O,O+=10240));u+=String.fromCharCode.apply(null,
O?R.subarray(O):R);R=btoa(u)}else R=_.fE(R);f=f.JSC$6819_value_=R}return f}if(f instanceof $m)return f=f.size!==0?Array.from(R8.prototype.entries.call(f),eFt):void 0,f;return}return f};
Ov=function(f,R){if(R){Ik5=R==null||R===ECB||R[BHn]!==oC5?ECB:R;try{return GI7(f)}finally{Ik5=void 0}}return GI7(f)};
GI7=function(f){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Utl(f,f[_.pC]|0,Ym)};
$tl=function(f){switch(typeof f){case "boolean":return xtl||(xtl=[0,void 0,!0]);case "number":return f>0?void 0:f===0?SEe||(SEe=[0,void 0]):[-f,void 0];case "string":return[0,f];case "object":return f}};
Xq=function(f,R,u){return f=_.cr(f,R[0],R[1],u?1:2)};
_.cr=function(f,R,u,O){O=O===void 0?0:O;if(f==null){var c=32;u?(f=[u],c|=128):f=[];R&&(c=c&-8380417|(R&1023)<<13)}else{if(!Array.isArray(f))throw Error("L");c=f[_.pC]|0;2048&c&&!(2&c)&&gCn();if(c&256)throw Error("N");if(c&64)return O!==0||c&2048||Dk(f,c|2048),f;if(u&&(c|=128,u!==f[0]))throw Error("O");a:{u=f;c|=64;var h=u.length;if(h){var l=h-1,K=u[l];if(K!=null&&typeof K==="object"&&K.constructor===Object){R=c&128?0:-1;l-=R;if(l>=1024)throw Error("Q");for(var q in K)h=+q,h<l&&(u[h+R]=K[q],delete K[q]);
c=c&-8380417|(l&1023)<<13;break a}}if(R){q=Math.max(R,h-(c&128?0:-1));if(q>1024)throw Error("R");c=c&-8380417|(q&1023)<<13}}}c|=64;O===0&&(c|=2048);Dk(f,c);return f};
gCn=function(){WG(ske,5)};
YE2=function(f,R){if(typeof f!=="object")return f;if(Array.isArray(f)){var u=f[_.pC]|0;return f.length===0&&u&1?void 0:nCe(f,u,R)}if(f!=null&&f[ow]===xm)return VYB(f);if(f instanceof $m){R=f.arrayState;if(R&2)return f;if(!f.size)return;u=Jf(Array.from(R8.prototype.entries.call(f)));if(f.valueCtor)for(f=0;f<u.length;f++){var O=u[f],c=O[1];c==null||typeof c!=="object"?c=void 0:c!=null&&c[ow]===xm?c=VYB(c):Array.isArray(c)?c=nCe(c,c[_.pC]|0,!!(R&32)):c=void 0;O[1]=c}return u}if(f instanceof Mt)return f};
nCe=function(f,R,u){if(R&2)return f;!u||4096&R||16&R?f=hT(f,R,!1,u&&!(R&16)):(jY(f,34),R&4&&Object.freeze(f));return f};
Zp=function(f,R,u){f=new f.constructor(R);u&&(f.copyOnWrite=TI);f.noLegacyNull=TI;return f};
VYB=function(f){var R=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=R[_.pC]|0;return Ik(f,u)?f:lr(f,R,u)?Zp(f,R):hT(R,u)};
hT=function(f,R,u,O){O!=null||(O=!!(34&R));f=Utl(f,R,YE2,O);O=32;u&&(O|=2);R=R&8380609|O;Dk(f,R);return f};
CfD=function(f){var R=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=R[_.pC]|0;return Ik(f,u)?lr(f,R,u)?Zp(f,R,!0):new f.constructor(hT(R,u,!1)):f};
Fq=function(f){if(f.copyOnWrite!==TI)return!1;var R=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=hT(R,R[_.pC]|0);jY(R,2048);f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=R;f.copyOnWrite=void 0;f.noLegacyNull=void 0;return!0};
wl=function(f){if(!Fq(f)&&Ik(f,f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pC]|0))throw Error();};
QH=function(f,R){R===void 0&&(R=f[_.pC]|0);R&32&&!(R&4096)&&Dk(f,R|4096)};
lr=function(f,R,u){return u&2?!0:u&32&&!(u&4096)?(Dk(R,u|2),f.copyOnWrite=TI,!0):!1};
Wr=function(f,R,u,O,c){var h=u+(c?0:-1),l=f.length-1;if(l>=1+(c?0:-1)&&h>=l){var K=f[l];if(K!=null&&typeof K==="object"&&K.constructor===Object)return K[u]=O,R}if(h<=l)return f[h]=O,R;if(O!==void 0){var q;l=((q=R)!=null?q:R=f[_.pC]|0)>>13&1023||536870912;u>=l?O!=null&&(h={},f[l+(c?0:-1)]=(h[u]=O,h)):f[h]=O}return R};
_.CE=function(f,R,u,O,c){var h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=h[_.pC]|0;O=Ik(f,l)?1:O;c=!!c||O===3;O===2&&Fq(f)&&(h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=h[_.pC]|0);f=vCP(h,R);var K=f===Ev?7:f[_.pC]|0,q=iC7(K,l);var F=4&q?!1:!0;if(F){4&q&&(f=Ze(f),K=0,q=tT(q,l),l=Wr(h,l,R,f));for(var w=0,m=0;w<f.length;w++){var W=u(f[w]);W!=null&&(f[m++]=W)}m<w&&(f.length=m);u=(q|4)&-513;q=u&=-1025;q&=-4097}q!==K&&(Dk(f,q),2&q&&Object.freeze(f));return f=rfB(f,q,h,
l,R,O,F,c)};
rfB=function(f,R,u,O,c,h,l,K){var q=R;h===1||(h!==4?0:2&R||!(16&R)&&32&O)?yH(R)||(R|=!f.length||l&&!(4096&R)||32&O&&!(4096&R||16&R)?2:256,R!==q&&Dk(f,R),Object.freeze(f)):(h===2&&yH(R)&&(f=Ze(f),q=0,R=tT(R,O),O=Wr(u,O,c,f)),yH(R)||(K||(R|=16),R!==q&&Dk(f,R)));2&R||!(4096&R||16&R)||QH(u,O);return f};
vCP=function(f,R,u){f=dl(f,R,u);return Array.isArray(f)?f:Ev};
iC7=function(f,R){2&R&&(f|=2);return f|1};
yH=function(f){return!!(2&f)&&!!(4&f)||!!(256&f)};
feq=function(f){return _.eY(f,!0)};
Rze=function(f,R){var u=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=u[_.pC]|0;a:{var c=O;O=Ik(f,O);!O&&Fq(f)&&(u=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=u[_.pC]|0);var h=dl(u,R);f=!1;if(h==null){if(O){R=bCX();break a}h=[]}else if(h.constructor===$m)if(h.arrayState&2&&!O)h=Array.from(R8.prototype.entries.call(h));else{R=h;break a}else Array.isArray(h)?f=!!((h[_.pC]|0)&2):h=[];if(O){if(!h.length){R=bCX();break a}f||(f=!0,Jf(h))}else if(f){f=!1;O=h;O=Ze(O);for(h=0;h<
O.length;h++){var l=O[h]=Ze(O[h]);Array.isArray(l[1])&&(l[1]=Jf(l[1]))}h=O}!f&&c&32&&IDn(h);O=new $m(h,void 0,Wlh,Wlh);c=Wr(u,c,R,O);f||QH(u,c);R=O}return R};
_.Ne=function(f,R,u,O){wl(f);var c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=c[_.pC]|0;if(u==null)return Wr(c,h,R),f;var l=u===Ev?7:u[_.pC]|0,K=l,q=yH(l),F=q||Object.isFrozen(u);q||(l=0);F||(u=Ze(u),K=0,l=tT(l,h),F=!1);l|=5;var w;q=(w=Hhe(l))!=null?w:0;for(w=0;w<u.length;w++){var m=u[w],W=O(m,q);Object.is(m,W)||(F&&(u=Ze(u),K=0,l=tT(l,h),F=!1),u[w]=W)}l!==K&&(F&&(u=Ze(u),l=tT(l,h)),Dk(u,l));Wr(c,h,R,u);return f};
_.br=function(f,R,u,O,c){wl(f);var h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Wr(h,h[_.pC]|0,R,(O==="0"?Number(u)===0:u===O)?void 0:u,c);return f};
_.pE=function(f,R,u){if(R&2)throw Error();var O=SY(R),c=vCP(f,u,O),h=c===Ev?7:c[_.pC]|0,l=iC7(h,R);if(2&l||yH(l)||16&l)c=Ze(c),h=0,l=tT(l,R),Wr(f,R,u,c,O);l&=-13;l!==h&&Dk(c,l);return c};
u5h=function(f){if(Nt){var R;return(R=f[j5])!=null?R:f[j5]=new Map}if(j5 in f)return f[j5];R=new Map;Object.defineProperty(f,j5,{value:R});return R};
c9l=function(f,R,u,O,c){var h=u5h(f),l=Om5(h,f,R,u,c);l!==O&&(l&&(R=Wr(f,R,l,void 0,c)),h.set(u,O));return R};
Om5=function(f,R,u,O,c){var h=f.get(O);if(h!=null)return h;for(var l=h=0;l<O.length;l++){var K=O[l];dl(R,K,c)!=null&&(h!==0&&(u=Wr(R,u,h,void 0,c)),h=K)}f.set(O,h);return h};
zz=function(f,R,u,O,c){var h=!1;O=dl(f,O,c,function(l){var K=Qkq(l,u,!1,R);h=K!==l&&K!=null;return K});
if(O!=null)return h&&!Ik(O)&&QH(f,R),O};
Xtt=function(f,R,u,O,c,h,l,K){var q=Ik(f,u);h=q?1:h;l=!!l||h===3;q=K&&!q;(h===2||q)&&Fq(f)&&(R=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=R[_.pC]|0);f=vCP(R,c);var F=f===Ev?7:f[_.pC]|0,w=iC7(F,u);if(K=!(4&w)){var m=f,W=u,C=!!(2&w);C&&(W|=2);for(var d=!C,p=!0,J=0,M=0;J<m.length;J++){var P=Qkq(m[J],O,!1,W);if(P instanceof O){if(!C){var g=Ik(P);d&&(d=!g);p&&(p=g)}m[M++]=P}}M<J&&(m.length=M);w|=4;w=p?w&-4097:w|4096;w=d?w|8:w&-9}w!==F&&(Dk(f,w),2&w&&Object.freeze(f));if(q&&!(8&w||!f.length&&
(h===1||(h!==4?0:2&w||!(16&w)&&32&u)))){yH(w)&&(f=Ze(f),w=tT(w,u),u=Wr(R,u,c,f));O=f;q=w;for(F=0;F<O.length;F++)m=O[F],w=CfD(m),m!==w&&(O[F]=w);q|=8;w=q=O.length?q|4096:q&-4097;Dk(f,w)}return f=rfB(f,w,R,u,c,h,K,l)};
hz2=function(f){f==null&&(f=void 0);return f};
tT=function(f,R){return f=(2&R?f|2:f&-3)&-273};
_.Zmn=function(f,R,u,O,c){wl(f);R=_.CE(f,R,c,2,!0);var h;c=(h=Hhe(R===Ev?7:R[_.pC]|0))!=null?h:0;R.push(u(O,c));return f};
leP=function(f,R,u,O,c,h,l){wl(f);var K=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=Xtt(f,K,K[_.pC]|0,u,R,2,!0);if(h&&l)c!=null||(c=f.length-1),ok(f,c),f.splice(c,h),f.length||(f[_.pC]&=-4097);else{if(h){if(typeof c!=="number"||c<0||c>f.length)throw Error();}else O=O!=null?O:new u;c!=void 0?f.splice(c,h,O):f.push(O);c=u=f===Ev?7:f[_.pC]|0;(O=Ik(O))?(u&=-9,f.length===1&&(u&=-4097)):u|=4096;u!==c&&Dk(f,u);O||QH(K)}};
kX0=function(f,R){if(typeof f==="string")return new Tz(j72(f),R);if(Array.isArray(f))return new Tz(new Uint8Array(f),R);if(f.constructor===Uint8Array)return new Tz(f,!1);if(f.constructor===ArrayBuffer)return f=new Uint8Array(f),new Tz(f,!1);if(f.constructor===Mt)return R=Hr(f)||new Uint8Array(0),new Tz(R,!0,f);if(f instanceof Uint8Array)return f=f.constructor===Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),new Tz(f,!1);throw Error();};
I8=function(){var f=function(){throw Error();};
Object.setPrototypeOf(f,f.prototype);return f};
qhP=function(f,R){var u=u===void 0?K2t:u;return new Pr(f,R,u)};
wtq=function(f,R,u,O,c){R=A9P(R,O);R!=null&&(u=_.aen(f,u),c(R,f),_.F20(f,u))};
Uv=function(f,R,u,O){var c=O[f];if(c)return c;c={};c.binaryFields=O;c.messageMetadata=$tl(O[0]);var h=O[1],l=1;h&&h.constructor===Object&&(c.extensions=h,h=O[++l],typeof h==="function"&&(c.isMessageSet=!0,mat!=null||(mat=h),QwX!=null||(QwX=O[l+1]),h=O[l+=2]));for(var K={};h&&Array.isArray(h)&&h.length&&typeof h[0]==="number"&&h[0]>0;){for(var q=0;q<h.length;q++)K[h[q]]=h;h=O[++l]}for(q=1;h!==void 0;){typeof h==="number"&&(q+=h,h=O[++l]);var F=void 0;if(h instanceof Pr)var w=h;else w=W2e,l--;h=void 0;
if((h=w)==null?0:h.$$isMsg){h=O[++l];F=O;var m=l;typeof h==="function"&&(h=h(),F[m]=h);F=h}h=O[++l];m=q+1;typeof h==="number"&&h<0&&(m-=h,h=O[++l]);for(;q<m;q++){var W=K[q];F?u(c,q,w,F,W):R(c,q,w,W)}}return O[f]=c};
tlD=function(f){return Array.isArray(f)?f[0]instanceof Pr?f:[EmB,f]:[f,void 0]};
A9P=function(f,R){if(f instanceof _.e5)return f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(f))return Xq(f,R,!1)};
CKt=function(f,R,u,O){var c=u.$$binaryReaderFn;f[R]=O?function(h,l,K){return c(h,l,K,O)}:c};
y9h=function(f,R,u,O,c){var h=u.$$binaryReaderFn,l,K;f[R]=function(q,F,w){return h(q,F,w,K||(K=Uv(Gz,CKt,y9h,O).messageMetadata),l||(l=dah(O)),c)}};
dah=function(f){var R=f[NNe];if(R!=null)return R;var u=Uv(Gz,CKt,y9h,f);R=u.isMessageSet?function(O,c){return mat(O,c,u)}:function(O,c){for(;L2l(c)&&c.nextWireType_!=4;){var h=c.nextField_,l=u[h];
if(l==null){var K=u.extensions;K&&(K=K[h])&&(K=bmn(K),K!=null&&(l=u[h]=K))}if(l==null||!l(c,O,h)){K=c;l=K.fieldCursor_;Br(K);if(K.discardUnknownFields)var q=void 0;else{var F=K.decoder_.cursor_-l;K.decoder_.cursor_=l;q=pt5(K.decoder_,F)}F=K=l=void 0;var w=O;q&&((l=(K=(F=w[sh])!=null?F:w[sh]=new MYl)[h])!=null?l:K[h]=[]).push(q)}}if(O=nm(O))O.reviveUnknownFields=u.binaryFields[jw2];return!0};
f[NNe]=R;f[jw2]=Da7.bind(f);return R};
Da7=function(f,R,u,O){var c=this[Gz],h=this[NNe],l=Xq(void 0,c.messageMetadata,!1),K=nm(f);if(K){var q=!1,F=c.extensions;if(F){c=function(d,p,J){if(J.length!==0)if(F[p])for(d=_.Z(J),p=d.next();!p.done;p=d.next()){p=J9q(p.value);try{q=!0,h(l,p)}finally{p.free()}}else O==null||O(f,p,J)};
if(R==null)VS(K,c);else if(K!=null){var w=K[R];w&&c(K,R,w)}if(q){var m=f[_.pC]|0;if(m&2&&m&2048&&(u==null||!u.reviveIntoImmutable))throw Error();var W=SY(m),C=function(d,p){if(dl(f,d,W)!=null)switch(u==null?void 0:u.resolutionBehavior){case 1:return;default:throw Error();}p!=null&&(m=Wr(f,m,d,p,W));delete K[d]};
R==null?PBP(l,l[_.pC]|0,function(d,p){C(d,p)}):C(R,dl(l,R,W))}}}};
bmn=function(f){f=tlD(f);var R=f[0].$$binaryReaderFn;if(f=f[1]){var u=dah(f),O=Uv(Gz,CKt,y9h,f).messageMetadata;return function(c,h,l){return R(c,h,l,O,u)}}return R};
o8=function(f,R,u){f[R]=u.$$binaryWriterFn};
S5=function(f,R,u,O){var c,h,l=u.$$binaryWriterFn;f[R]=function(K,q,F){return l(K,q,F,h||(h=Uv(x_,o8,S5,O).messageMetadata),c||(c=zzn(O)))}};
zzn=function(f){var R=f[TN7];if(!R){var u=Uv(x_,o8,S5,f);R=function(O,c){return HmP(O,c,u)};
f[TN7]=R}return R};
HmP=function(f,R,u){PBP(f,f[_.pC]|0,function(O,c){if(c!=null){var h=Iee(u,O);h?h(R,c,O):O<500||WG(Mln,3)}});
(f=nm(f))&&VS(f,function(O,c,h){$_(R,R.encoder_.end());for(O=0;O<h.length;O++)$_(R,Hr(h[O])||new Uint8Array(0))})};
Iee=function(f,R){var u=f[R];if(u)return u;if(u=f.extensions)if(u=u[R]){u=tlD(u);var O=u[0].$$binaryWriterFn;if(u=u[1]){var c=zzn(u),h=Uv(x_,o8,S5,u).messageMetadata;u=f.isMessageSet?QwX(h,c):function(l,K,q){return O(l,K,q,h,c)}}else u=O;
return f[R]=u}};
_.PK5=function(f,R,u){if(Array.isArray(R)){var O=R[_.pC]|0;if(O&4)return R;for(var c=0,h=0;c<R.length;c++){var l=f(R[c]);l!=null&&(R[h++]=l)}h<c&&(R.length=h);u&&(Dk(R,(O|5)&-1537),O&2&&Object.freeze(R));return R}};
_.gl=function(f,R,u){return new Pr(f,R,u)};
_.Uan=function(f,R,u){return new Pr(f,R,u)};
_.nE=function(f,R,u){Wr(f,f[_.pC]|0,R,u,SY(f[_.pC]|0))};
eze=function(f,R,u){R=_.qa(R);R!=null&&(_.VH(f,u,1),f=f.encoder_,u=Y_||(Y_=new DataView(new ArrayBuffer(8))),u.setFloat64(0,+R,!0),YC=u.getUint32(0,!0),vG=u.getUint32(4,!0),_.vr(f,YC),_.vr(f,vG))};
_.ir=function(f,R,u){R=wGD(R);if(R!=null){switch(typeof R){case "string":GXt(R)}if(R!=null)switch(_.VH(f,u,0),typeof R){case "number":f=f.encoder_;rH(R);BNq(f,YC,vG);break;case "bigint":u=BigInt.asUintN(64,R);u=new oml(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));BNq(f.encoder_,u.JSC$6871_lo,u.JSC$6871_hi);break;default:u=GXt(R),BNq(f.encoder_,u.JSC$6871_lo,u.JSC$6871_hi)}}};
$a7=function(f,R,u){R=_.Na(R);R!=null&&R!=null&&(_.VH(f,u,0),_.xan(f.encoder_,R))};
_.swX=function(f,R,u){gm5(f,u,mtB(R))};
_.nmn=function(f,R,u){R=_.VtX(R);R!=null&&(_.VH(f,u,0),f.encoder_.JSC$6873_buffer_.push(R?1:0))};
_.YhX=function(f,R,u){R=_.Bt(R);R!=null&&Vlt(f,u,cn5(R))};
vmn=function(f,R,u,O,c){R=A9P(R,O);R!=null&&(u=_.aen(f,u),c(R,f),_.F20(f,u))};
_.im7=function(f,R,u){R=R==null||typeof R=="string"||R instanceof Mt?R:void 0;R!=null&&Vlt(f,u,kX0(R,!0).buffer)};
_.r9P=function(f,R,u){R=_.Na(R);R!=null&&(R=parseInt(R,10),_.VH(f,u,0),_.xan(f.encoder_,R))};
_.rl=function(f,R){return function(u,O){var c={treatNewDataAsImmutable:!0};O&&Object.assign(c,O);u=J9q(u,void 0,void 0,c);try{var h=new f,l=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;dah(R)(l,u);var K=h}finally{u.free()}return K}};
_.fj=function(f){return function(R){return fpn(R,f)}};
Ren=function(f){return function(){return fpn(this,f)}};
_.uqh=function(f){return sE(function(R){return R instanceof f&&!Ik(R)})};
_.Ra=function(f){return function(R){return OE7(f,R)}};
ZED=function(f,R){return cT5({child:f,origin:R||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Xr7,getPayloadCase:function(u){return u.getPayloadCase()},
createInitMessage:function(u){var O=new uh,c=new he7;u=_.OO(c,1,u);return _.cz(O,5,X3,u)}})};
hm=function(f){return{valueOf:f}.valueOf()};
kzn=function(){var f=null;if(!lp5)return f;try{var R=function(u){return u};
f=lp5.createPolicy("goog#html",{createHTML:R,createScript:R,createScriptURL:R})}catch(u){}return f};
qv7=function(){KvB===void 0&&(KvB=kzn());return KvB};
_.lh=function(f){var R=qv7();f=R?R.createScriptURL(f):f;return new Z0(f)};
_.k3=function(f){if(f instanceof Z0)return f.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
Kj=function(f){return f.toString().indexOf("`")===-1};
Am=function(f){return new _.qu(AT0,f)};
aa=function(f){return f instanceof _.qu};
_.F3=function(f){if(aa(f))return f.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
wQ=function(f){return new apB(function(R){return R.substr(0,f.length+1).toLowerCase()===f+":"})};
mo=function(f,R){R=R===void 0?FvB:R;if(aa(f))return f;for(var u=0;u<R.length;++u){var O=R[u];if(O instanceof apB&&O.isValid(f))return Am(f)}};
_.EO=function(f,R){R=R===void 0?FvB:R;return mo(f,R)||Wz};
_.Cj=function(f){var R=window;if(typeof MediaSource!=="undefined"&&f instanceof MediaSource||typeof R.ManagedMediaSource!=="undefined"&&f instanceof R.ManagedMediaSource)return Am(URL.createObjectURL(f));R=f.type;R.toLowerCase()==="application/octet-stream"?R=!0:(R=R.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),R=(R==null?void 0:R.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(R[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(R[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(R[1])||/^font\/[\w-]+$/i.test(R[1])));if(!R)throw Error("da");return Am(URL.createObjectURL(f))};
_.dQ=function(f){for(var R=_.yK.apply(1,arguments),u=[f[0]],O=0;O<R.length;O++)u.push(String(R[O])),u.push(f[O+1]);return Am(u.join(""))};
_.met=function(f){if(!wrP){a:{var R=document.createElement("a");try{R.href=f}catch(u){f=void 0;break a}f=R.protocol;f=f===":"||f===""?"https:":f}return f}try{R=new URL(f)}catch(u){return"https:"}return R.protocol};
_.Nu=function(f){f instanceof _.qu?f=_.F3(f):f=Q8B.test(f)?f:void 0;return f};
Lj=function(f,R){R=_.Nu(R);R!==void 0&&(f.href=R)};
pj=function(f){var R=qv7();f=R?R.createHTML(f):f;return new bh(f)};
jy=function(f){if(f instanceof bh)return f.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.D0=function(f,R){f.src=_.k3(R).toString()};
Wv7=function(f,R){f.setAttribute("sandbox","");for(var u=0;u<R.length;u++)f.sandbox.supports&&!f.sandbox.supports(R[u])||f.sandbox.add(R[u])};
_.E_t=function(f,R,u){f.removeAttribute("srcdoc");switch(R){case 0:if(u instanceof Z0)throw new Jm("TrustedResourceUrl",0);Wv7(f,[]);R=_.Nu(u);R!==void 0&&(f.src=R);break;case 1:if(!(u instanceof Z0))throw new Jm(typeof u,1);Wv7(f,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.D0(f,u);break;case 2:if(u instanceof Z0)throw new Jm("TrustedResourceUrl",2);Wv7(f,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
R=_.Nu(u);R!==void 0&&(f.src=R);break;default:_.km(R)}};
_.zd=function(f,R,u,O){R=_.Nu(R);return R!==void 0?f.open(R,u,O):null};
_.Td=function(f){f=f===void 0?document:f;var R,u;f=(u=(R=f).querySelector)==null?void 0:u.call(R,"script[nonce]");return f==null?"":f.nonce||f.getAttribute("nonce")||""};
_.Ia=function(f){var R=qv7();f=R?R.createScript(f):f;return new _.Hz(f)};
Mu=function(f){if(f instanceof _.Hz)return f.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
t5X=function(f){var R=_.Td(f.ownerDocument);R&&f.setAttribute("nonce",R)};
_.Pz=function(f,R){f.textContent=Mu(R);t5X(f)};
_.UO=function(f,R){f.src=_.k3(R);t5X(f)};
_.ey=function(f,R){if(f.nodeType===1&&/^(script|style)$/i.test(f.tagName))throw Error("da");f.innerHTML=jy(R)};
_.Bz=function(f,R,u,O){if(f.length===0)throw Error("da");f=f.map(function(h){if(h instanceof Crq)h=h.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return h});
var c=u.toLowerCase();if(f.every(function(h){return c.indexOf(h)!==0}))throw Error("ea`"+u);
R.setAttribute(u,O)};
_.oa=function(f,R,u){if(R instanceof Z0)f.href=_.k3(R).toString(),f.rel=u;else{if(yT5.indexOf(u)===-1)throw Error("fa`"+u);R=_.Nu(R);R!==void 0&&(f.href=R,f.rel=u)}};
deB=function(f){return"function"==typeof _.Sy&&f instanceof _.Sy};
_.Nln=function(f){if(deB(f))return f.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.$3=function(f,R){R=_.Nu(R);R!==void 0&&(f.href=R)};
gQ=function(f,R){f&&(R=f.indexOf(R),0<=R&&f.splice(R,1))};
sO=function(f){return typeof f==="function"};
Lvl=function(f){return f instanceof nj||f&&"closed"in f&&sO(f.remove)&&sO(f.add)&&sO(f.unsubscribe)};
VK=function(){};
Y3=function(f){bED(function(){throw f;})};
vz=function(f){return f};
ih=function(){return prt(_.yK.apply(0,arguments))};
prt=function(f){return f.length===0?vz:f.length===1?f[0]:function(R){return f.reduce(function(u,O){return O(u)},R)}};
j85=function(f){var R;return(R=f!=null?f:void 0)!=null?R:Promise};
Deq=function(f,R){return new rQ(function(u){var O=0;return R.schedule(function(){O===f.length?u.complete():(u.next(f[O++]),u.closed||this.schedule())})})};
JTB=function(f,R){if(!f)throw Error("ga");return new rQ(function(u){var O=new nj;O.add(R.schedule(function(){var c=f[Symbol.asyncIterator]();O.add(R.schedule(function(){var h=this;c.next().then(function(l){l.done?u.complete():(u.next(l.value),h.schedule())})}))}));
return O})};
zeB=function(f,R,u){R=R.schedule(function(){try{u.call(this)}catch(O){f.error(O)}},0);
f.add(R)};
Tln=function(f,R){return new rQ(function(u){var O;u.add(R.schedule(function(){O=f[fG]();zeB(u,R,function(){var c=O.next(),h=c.value;c.done?u.complete():(u.next(h),this.schedule())})}));
return function(){var c;return sO((c=O)==null?void 0:c.return)&&O.return()}})};
HE2=function(f,R){return new rQ(function(u){var O=new nj;O.add(R.schedule(function(){var c=f[R5]();O.add(c.subscribe({next:function(h){O.add(R.schedule(function(){return u.next(h)}))},
error:function(h){O.add(R.schedule(function(){return u.error(h)}))},
complete:function(){O.add(R.schedule(function(){return u.complete()}))}}))}));
return O})};
Ip7=function(f,R){return new rQ(function(u){return R.schedule(function(){return f.then(function(O){u.add(R.schedule(function(){u.next(O);u.add(R.schedule(function(){return u.complete()}))}))},function(O){u.add(R.schedule(function(){return u.error(O)}))})})})};
M5X=function(f){return new TypeError("ha`"+(f!==null&&typeof f==="object"?"an invalid object":"'"+f+"'"))};
Ue2=function(f,R){if(f!=null){if(sO(f[R5]))return HE2(f,R);if(Prn(f))return Deq(f,R);if(sO(f==null?void 0:f.then))return Ip7(f,R);if(Symbol.asyncIterator&&sO(f==null?void 0:f[Symbol.asyncIterator]))return JTB(f,R);if(sO(f==null?void 0:f[fG]))return Tln(f,R)}throw M5X(f);};
Ok=function(f,R){return R?Ue2(f,R):uC(f)};
uC=function(f){if(f instanceof rQ)return f;if(f!=null){if(sO(f[R5]))return ee7(f);if(Prn(f))return Gzn(f);if(sO(f==null?void 0:f.then))return BlD(f);if(Symbol.asyncIterator&&sO(f==null?void 0:f[Symbol.asyncIterator]))return o_n(f);if(sO(f==null?void 0:f[fG]))return xe7(f)}throw M5X(f);};
ee7=function(f){return new rQ(function(R){var u=f[R5]();if(sO(u.subscribe))return u.subscribe(R);throw new TypeError("ia");})};
Gzn=function(f){return new rQ(function(R){for(var u=0;u<f.length&&!R.closed;u++)R.next(f[u]);R.complete()})};
BlD=function(f){return new rQ(function(R){f.then(function(u){R.closed||(R.next(u),R.complete())},function(u){return R.error(u)}).then(null,Y3)})};
xe7=function(f){return new rQ(function(R){for(var u=f[fG]();!R.closed;){var O=u.next(),c=O.value;O.done?R.complete():R.next(c)}return function(){return sO(u==null?void 0:u.return)&&u.return()}})};
o_n=function(f){return new rQ(function(R){Sv0(f,R).catch(function(u){return R.error(u)})})};
Sv0=function(f,R){var u,O,c,h,l,K;return _.k(function(q){switch(q.nextAddress){case 1:_.cl(q,2,3);var F=f[Symbol.asyncIterator];h=F!==void 0?F.call(f):new $et(_.Z(f));case 5:return _.A(q,h.next(),8);case 8:O=q.yieldResult;if(O.done){q.jumpTo(3);break}l=O.value;R.next(l);q.jumpTo(5);break;case 3:_.hu(q);_.Zu(q,9);if(!O||O.done||!(c=h.return)){q.jumpTo(9);break}return _.A(q,c.call(h),9);case 9:_.hu(q,0,0,1);if(u)throw u.error;_.lC(q,10,1);break;case 10:_.lC(q,4);break;case 2:K=_.ku(q);u={error:K};q.jumpTo(3);
break;case 4:R.complete(),_.KG(q)}})};
qc=function(f,R){return R?Deq(f,R):Gzn(f)};
g_n=function(f){return sO(f[f.length-1])?f.pop():void 0};
Au=function(f){var R=f[f.length-1];return R&&sO(R.schedule)?f.pop():void 0};
a5=function(){var f=_.yK.apply(0,arguments),R=Au(f);return R?Deq(f,R):qc(f)};
FV=function(f){var R=sO(f)?f:function(){return f};
return new rQ(function(u){return u.error(R())})};
wn=function(f){return function(R){if(sO(R==null?void 0:R.lift))return R.lift(function(u){try{return f(u,this)}catch(O){this.error(O)}});
throw new TypeError("ja");}};
Qq=function(){return wn(function(f,R){var u=null;f._refCount++;var O=new m1(R,void 0,void 0,void 0,function(){if(!f||f._refCount<=0||0<--f._refCount)u=null;else{var c=f._connection,h=u;u=null;!c||h&&c!==h||c.unsubscribe();R.unsubscribe()}});
f.subscribe(O);O.closed||(u=f.connect())})};
n_2=function(){var f=s87;var R=R===void 0?0:R;return wn(function(u,O){O.add(f.schedule(function(){return u.subscribe(O)},R))})};
CG=function(f){return wn(function(R,u){var O=0;R.subscribe(new m1(u,function(c){u.next(f.call(void 0,c,O++))}))})};
Yvh=function(f){return CG(function(R){return V5n(R)?f.apply(null,_.yq(R)):f(R)})};
R9h=function(f){if(f.length===1){var R=f[0];if(v_D(R))return{args:R,keys:null};if(R&&typeof R==="object"&&iE7(R)===rT2)return f=f0l(R),{args:f.map(function(u){return R[u]}),
keys:f}}return{args:f,keys:null}};
dn=function(){var f=_.yK.apply(0,arguments),R=Au(f),u=g_n(f);f=R9h(f);var O=f.args,c=f.keys;if(O.length===0)return Ok([],R);R=new rQ(u3B(O,R,c?function(h){for(var l={},K=0;K<h.length;K++)l[c[K]]=h[K];return l}:vz));
return u?R.pipe(Yvh(u)):R};
u3B=function(f,R,u){u=u===void 0?vz:u;return function(O){Ojn(R,function(){for(var c=f.length,h=Array(c),l=c,K=f.map(function(){return!1}),q=!0,F={i$jscomp$260:0};F.i$jscomp$260<c;F={i$jscomp$260:F.i$jscomp$260},F.i$jscomp$260++)Ojn(R,function(w){return function(){Ok(f[w.i$jscomp$260],R).subscribe(new Nc(O,function(m){h[w.i$jscomp$260]=m;
q&&(K[w.i$jscomp$260]=!0,q=!K.every(vz));q||O.next(u(h.slice()))},function(){return--l===0}))}}(F),O)},O)}};
Ojn=function(f,R,u){f?u.add(f.schedule(R)):R()};
cmq=function(f,R,u,O){var c=[],h=0,l=0,K=!1,q=function(F){h++;uC(u(F,l++)).subscribe(new m1(R,function(w){R.next(w)},void 0,function(){h--;
for(var w={};c.length&&h<O;w={bufferedValue:void 0})w.bufferedValue=c.shift(),q(w.bufferedValue);!K||c.length||h||R.complete()}))};
f.subscribe(new m1(R,function(F){return h<O?q(F):c.push(F)},void 0,function(){K=!0;
!K||c.length||h||R.complete()}));
return function(){c=null}};
LG=function(f,R){var u=u===void 0?Infinity:u;if(sO(R))return LG(function(O,c){return CG(function(h,l){return R(O,h,c,l)})(uC(f(O,c)))},u);
typeof R==="number"&&(u=R);return wn(function(O,c){return cmq(O,c,f,u)})};
Xzn=function(f){f=f===void 0?Infinity:f;return LG(vz,f)};
h95=function(){var f=_.yK.apply(0,arguments);return Xzn(1)(qc(f,Au(f)))};
pG=function(f){return new rQ(function(R){uC(f()).subscribe(R)})};
jW=function(f,R,u){if(sO(u)){var O=u;u=void 0}if(O)return jW(f,R,u).pipe(Yvh(O));O=_.Z(sO(f.addEventListener)&&sO(f.removeEventListener)?Zjn.map(function(l){return function(K){return f[l](R,K,u)}}):sO(f.addListener)&&sO(f.removeListener)?l0n.map(kdt(f,R)):sO(f.on)&&sO(f.off)?Kot.map(kdt(f,R)):[]);
var c=O.next().value,h=O.next().value;return!c&&Prn(f)?LG(function(l){return jW(l,R,u)})(qc(f)):new rQ(function(l){if(!c)throw new TypeError("ka");
var K=function(){var q=_.yK.apply(0,arguments);return l.next(1<q.length?q:q[0])};
c(K);return function(){return h(K)}})};
kdt=function(f,R){return function(u){return function(O){return f[u](R,O)}}};
Ju=function(){var f=_.yK.apply(0,arguments),R=Au(f);var u=typeof f[f.length-1]==="number"?f.pop():Infinity;return f.length?f.length===1?uC(f[0]):Xzn(u)(qc(f,R)):Du};
Amh=function(f){return f.length===1&&qOX(f[0])?f[0]:f};
a0e=function(){var f=Amh(_.yK.apply(0,arguments));return wn(function(R,u){var O=[R].concat(_.yq(f)),c=function(){if(!u.closed)if(O.length>0){try{var h=uC(O.shift())}catch(K){c();return}var l=new m1(u,void 0,VK,VK);u.add(h.subscribe(l));l.add(c)}else u.complete()};
c()})};
z_=function(f){return wn(function(R,u){var O=0;R.subscribe(new m1(u,function(c){return f.call(void 0,c,O++)&&u.next(c)}))})};
wz7=function(){var f=_.yK.apply(0,arguments);f=Amh(f);return f.length===1?uC(f[0]):new rQ(FoB(f))};
FoB=function(f){return function(R){for(var u=[],O={i$jscomp$263:0};u&&!R.closed&&O.i$jscomp$263<f.length;O={i$jscomp$263:O.i$jscomp$263},O.i$jscomp$263++)u.push(uC(f[O.i$jscomp$263]).subscribe(new m1(R,function(c){return function(h){if(u){for(var l=0;l<u.length;l++)l!==c.i$jscomp$263&&u[l].unsubscribe();u=null}R.next(h)}}(O))))}};
mu7=function(){var f=_.yK.apply(0,arguments),R=g_n(f),u=Amh(f);return u.length?new rQ(function(O){var c=u.map(function(){return[]}),h=u.map(function(){return!1});
O.add(function(){c=h=null});
for(var l={sourceIndex$jscomp$1:0};!O.closed&&l.sourceIndex$jscomp$1<u.length;l={sourceIndex$jscomp$1:l.sourceIndex$jscomp$1},l.sourceIndex$jscomp$1++)uC(u[l.sourceIndex$jscomp$1]).subscribe(new m1(O,function(K){return function(q){c[K.sourceIndex$jscomp$1].push(q);c.every(function(F){return F.length})&&(q=c.map(function(F){return F.shift()}),O.next(R?R.apply(null,_.yq(q)):q),c.some(function(F,w){return!F.length&&h[w]})&&O.complete())}}(l),void 0,function(K){return function(){h[K.sourceIndex$jscomp$1]=
!0;
!c[K.sourceIndex$jscomp$1].length&&O.complete()}}(l)));
return function(){c=h=null}}):Du};
QaB=function(f){var R,u,O;return!!f&&typeof f.active==="boolean"&&typeof((R=f.clock)==null?void 0:R.now)==="function"&&((u=f.clock)==null?void 0:u.timeline)!==void 0&&!((O=f.lastMeasurement)==null||!O.timestamp)&&typeof f.equivalentTo==="function"&&typeof f.extrapolateToNow==="function"&&typeof f.extrapolateToTime==="function"&&typeof f.map==="function"&&typeof f.joinWith==="function"};
Won=function(f){function R(u){return typeof u==="boolean"||typeof u==="string"||typeof u==="number"||u===void 0||u===null}
return R(f)?!0:Array.isArray(f)?f.every(R):typeof f==="object"?Object.keys(f).every(function(u){return typeof u==="string"})&&Object.values(f).every(function(u){return Array.isArray(u)?u.every(R):R(u)}):!1};
E3h=function(f){if(Won(f))return f;if(QaB(f))return{lastMeasurement:{value:E3h(f.lastMeasurement.value),timestamp:T_(f.lastMeasurement.timestamp,new Hl(0,f.lastMeasurement.timestamp.timeline))},active:f.active};try{return JSON.parse(JSON.stringify(f))}catch(R){}return String(f)};
I5=function(f,R){return function(u){return new rQ(function(O){return u.subscribe(function(c){f.timeExecution(R,function(){O.next(c)})()},function(c){f.timeExecution(R,function(){O.error(c)})()},function(){f.timeExecution(R,function(){O.complete()})()})})}};
ty5=function(f,R){var u=!1;return new rQ(function(O){var c=f.setTimeout(function(){u=!0;O.next(!0);O.complete()},R);
return function(){u||f.clearTimeout(c)}})};
ChD=function(f){f=f.global;if(f.fetchLater)return f.fetchLater.bind(f)};
Mc=function(f){return wn(function(R,u){var O=null,c=!1,h;O=R.subscribe(new m1(u,void 0,function(l){h=uC(f(l,Mc(f)(R)));O?(O.unsubscribe(),O=null,h.subscribe(u)):c=!0}));
c&&(O.unsubscribe(),O=null,h.subscribe(u))})};
ymX=function(f,R,u){return function(O,c){var h=u,l=R,K=0;O.subscribe(new m1(c,function(q){var F=K++;l=h?f(l,q,F):(h=!0,q);c.next(l)},void 0,void 0))}};
duB=function(f){f=f===void 0?null:f;return wn(function(R,u){var O=!1;R.subscribe(new m1(u,function(c){O=!0;u.next(c)},void 0,function(){O||u.next(f);
u.complete()}))})};
Pl=function(){return wn(function(f,R){f.subscribe(new m1(R,VK))})};
Uk=function(f){return wn(function(R,u){R.subscribe(new m1(u,function(){return u.next(f)}))})};
eW=function(f){return f<=0?function(){return Du}:wn(function(R,u){var O=0;
R.subscribe(new m1(u,function(c){++O<=f&&(u.next(c),f<=O&&u.complete())}))})};
G_=function(f){var R=R===void 0?vz:R;var u;f=(u=f)!=null?u:NQn;return wn(function(O,c){var h,l=!0;O.subscribe(new m1(c,function(K){var q=R(K);if(l||!f(h,q))l=!1,h=q,c.next(K)}))})};
NQn=function(f,R){return f===R};
bj7=function(f){f=f===void 0?LoP:f;return wn(function(R,u){var O=!1;R.subscribe(new m1(u,function(c){O=!0;u.next(c)},void 0,function(){return O?u.complete():u.error(f())}))})};
LoP=function(){return new pzn};
o5=function(){var f=_.yK.apply(0,arguments);return function(R){return h95(R,a5.apply(null,_.yq(f)))}};
jaD=function(f){return wn(function(R,u){var O=0;R.subscribe(new m1(u,function(c){f.call(void 0,c,O++,R)||(u.next(!1),u.complete())},void 0,function(){u.next(!0);
u.complete()}))})};
Dun=function(){return wn(function(f,R){var u=[];f.subscribe(new m1(R,function(O){u.push(O);1<u.length&&u.shift()},void 0,function(){for(var O=_.Z(u),c=O.next();!c.done;c=O.next())R.next(c.value);
R.complete()},function(){u=null}))})};
JmB=function(f,R){var u=arguments.length>=2;return function(O){return O.pipe(f?z_(function(c,h){return f(c,h,O)}):vz,Dun(),u?duB(R):bj7(function(){return new pzn}))}};
SW=function(f){var R=sO(f)?f:function(){return f};
return sO()?wn(function(u,O){var c=R();(void 0)(c).subscribe(O).add(u.subscribe(c))}):function(u){var O=new xu(u,R);
sO(u==null?void 0:u.lift)&&(O.lift=u.lift);O.source=u;O.subjectFactory=R;return O}};
gn=function(f){var R=new $u(f,void 0,void 0);return function(u){return SW(function(){return R})(u)}};
sk=function(f,R){return wn(ymX(f,R,arguments.length>=2))};
Vq=function(){var f=_.yK.apply(0,arguments),R=Au(f);return wn(function(u,O){(R?h95(f,u,R):h95(f,u)).subscribe(O)})};
Yu=function(f){return wn(function(R,u){var O=null,c=0,h=!1;R.subscribe(new m1(u,function(l){var K;(K=O)==null||K.unsubscribe();K=c++;uC(f(l,K)).subscribe(O=new m1(u,function(q){return u.next(q)},void 0,function(){O=null;
h&&!O&&u.complete()}))},void 0,function(){(h=!0,!O)&&u.complete()}))})};
vl=function(f,R){R=R===void 0?!1:R;return wn(function(u,O){var c=0;u.subscribe(new m1(O,function(h){var l=f(h,c++);(l||R)&&O.next(h);!l&&O.complete()}))})};
iC=function(f,R,u){var O=sO(f)||R||u?{next:f,error:R,complete:u}:f;return O?wn(function(c,h){c.subscribe(new m1(h,function(l){var K;(K=O.next)==null||K.call(O,l);h.next(l)},function(l){var K;
(K=O.error)==null||K.call(O,l);h.error(l)},function(){var l;
(l=O.complete)==null||l.call(O);h.complete()}))}):vz};
z9n=function(){var f=_.yK.apply(0,arguments),R=g_n(f);return wn(function(u,O){for(var c=f.length,h=Array(c),l=f.map(function(){return!1}),K=!1,q={i$jscomp$273:0};q.i$jscomp$273<c;q={i$jscomp$273:q.i$jscomp$273},q.i$jscomp$273++)uC(f[q.i$jscomp$273]).subscribe(new m1(O,function(F){return function(w){h[F.i$jscomp$273]=w;
K||l[F.i$jscomp$273]||(l[F.i$jscomp$273]=!0,(K=l.every(vz))&&(l=null))}}(q),void 0,VK));
u.subscribe(new m1(O,function(F){K&&(F=[F].concat(_.yq(h)),O.next(R?R.apply(null,_.yq(F)):F))}))})};
TQl=function(f){var R=[],u=0,O;for(O in f)R[u++]=O;return R};
Hjn=function(f,R){for(var u in f)if(f[u]==R)return!0;return!1};
I0t=function(f,R,u){for(var O in f)if(R.call(u,f[O],O,f))return O};
MyB=function(f){if(!f||typeof f!=="object")return f;if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);if(f instanceof Date)return new Date(f.getTime());var R=Array.isArray(f)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(f)||f instanceof DataView?{}:new f.constructor(f.length),u;for(u in f)R[u]=MyB(f[u]);return R};
Ph2=function(f){var R=arguments.length;if(R==1&&Array.isArray(arguments[0]))return Ph2.apply(null,arguments[0]);if(R%2)throw Error("oa");for(var u={},O=0;O<R;O+=2)u[arguments[O]]=arguments[O+1];return u};
Uun=function(f){var R=arguments.length;if(R==1&&Array.isArray(arguments[0]))return Uun.apply(null,arguments[0]);for(var u={},O=0;O<R;O++)u[arguments[O]]=!0;return u};
_.rn=function(f){return new Crq(f[0].toLowerCase())};
e9h=function(f){try{return new URL(f,window.document.baseURI)}catch(R){return new URL("about:invalid")}};
Gd0=function(f,R){var u=R.createRange();u.selectNode(R.body);f=pj(f);return u.createContextualFragment(jy(f))};
BQe=function(f){f=f.nodeName;return typeof f==="string"?f:"FORM"};
o3q=function(f){f=f.nodeType;return f===1||typeof f!=="number"};
f8=function(f,R,u){f.setAttribute(R,u)};
xuX=function(f){return f.parts.map(function(R){var u=R.descriptor;return""+R.url+(u?" "+u:"")}).join(" , ")};
_.R0=function(f){var R=_.yK.apply(1,arguments);if(R.length===0)return _.lh(f[0]);for(var u=f[0],O=0;O<R.length;O++)u+=encodeURIComponent(R[O])+f[O+1];return _.lh(u)};
_.u_=function(f,R){f=_.k3(f).toString();var u=f.split(/[?#]/),O=/[?]/.test(f)?"?"+u[1]:"";return SO5(u[0],O,/[#]/.test(f)?"#"+(O?u[2]:u[1]):"",R)};
SO5=function(f,R,u,O){function c(l,K){l!=null&&(Array.isArray(l)?l.forEach(function(q){return c(q,K)}):(R+=h+encodeURIComponent(K)+"="+encodeURIComponent(l),h="&"))}
var h=R.length?"&":"?";O.constructor===Object&&(O=Object.entries(O));Array.isArray(O)?O.forEach(function(l){return c(l[1],l[0])}):O.forEach(c);
return _.lh(f+R+u)};
Of=function(f,R,u,O){this.top=f;this.right=R;this.bottom=u;this.left=O};
$un=function(f){f=f.global;if(f.PendingGetBeacon)return f.PendingGetBeacon};
XH=function(f){return function(R){return R.pipe(g3t(f,SW(new cK)))}};
h5=function(f){return function(R){return R.pipe(g3t(f,gn(1)))}};
g3t=function(f,R){function u(O){return new rQ(function(c){return O.subscribe(function(h){Zw(f,function(){return void c.next(h)},3)},function(h){Zw(f,function(){return void c.error(h)},3)},function(){Zw(f,function(){return void c.complete()},3)})})}
return ih(u,n_2(),R,Qq(),u)};
Vyt=function(f){var R=san(f);return R===null?new l_(null):R.pipe(CG(function(u){u=u.serialize();if(n35)u=_.Oe.btoa(u);else{for(var O=[],c=0,h=0;h<u.length;h++){var l=u.charCodeAt(h);l>255&&(O[c++]=l&255,l>>=8);O[c++]=l}u=_.fE(O)}return u}),eW(1),h5(f.queue))};
YOB=function(f){var R=R===void 0?{}:R;if(typeof Event==="function")return new Event(f,R);if(typeof document!=="undefined"){var u=document.createEvent("CustomEvent");u.initCustomEvent(f,R.bubbles||!1,R.cancelable||!1,R.detail);return u}throw Error();};
v3n=function(f){return typeof f==="string"?document.getElementById(f):f};
rml=function(f){var R=!1;R=R===void 0?!1:R;if(f.tagName==="IMG"){if(f.complete&&(!f.naturalWidth||!f.naturalHeight))return!0;var u;if(R&&((u=f.style)==null?void 0:u.display)==="none")return!0}var O,c;return ij7.test((O=f.getAttribute("width"))!=null?O:"")&&ij7.test((c=f.getAttribute("height"))!=null?c:"")};
fu5=function(f,R){if(f.tagName==="IMG")return f.naturalWidth&&f.naturalHeight?!0:!1;try{if(f.readyState)var u=f.readyState;else{var O,c;u=(O=f.contentWindow)==null?void 0:(c=O.document)==null?void 0:c.readyState}return u==="complete"}catch(h){return R===void 0?!1:R}};
RwX=function(f){f||(f=function(R,u,O){R.addEventListener(u,O)});
return f};
Xle=function(f,R){var u=uV7();u=u===void 0?new OGB:u;if(f=v3n(f)){var O=RwX(O);for(var c=!1,h=function(J){c||(c=!0,R(J))},l,K=2,q=0;q<cuB.length;++q)if(cuB[q]===f.tagName){K=3;
l=[f];break}l||(l=f.querySelectorAll(cuB.join(",")));var F=0,w=0,m=!0,W=f=!1;q={};for(var C=0;C<l.length;q={isImg:void 0},C++){var d=l[C];if(!rml(d))if(q.isImg=d.tagName==="IMG",fu5(d,u.crossDomainLoadedDefault))f=!0,q.isImg&&(m=!0);else{F++;var p=function(J){return function(M){F--;!F&&m&&h(K);J.isImg&&(M=M&&M.type==="error",w--,M||(m=!0),!w&&W&&m&&h(K))}}(q);
O(d,"load",p);q.isImg&&(w++,O(d,"error",p))}}w===0&&(m=!0);l=null;l=_.Oe.document.readyState==="complete";if(F===0&&!f&&l)K=5;else if(F||!f){O(_.Oe,"load",function(){!u.pendingImagesBlockLoad||!w&&m?h(4):W=!0});
return}h(K)}};
hwe=function(f,R,u){if(f)for(var O=0;f!=null&&O<500&&!u(f);++O)f=R(f)};
ZG0=function(f,R){hwe(f,function(u){try{return u===u.parent?null:u.parent}catch(O){}return null},R)};
luD=function(f,R){if(f.tagName=="IFRAME")R(f);else{f=f.querySelectorAll("IFRAME");for(var u=0;u<f.length&&!R(f[u]);++u);}};
k_n=function(f){return(f=f.ownerDocument)&&(f.parentWindow||f.defaultView)||null};
K1t=function(f,R,u){try{var O=JSON.parse(u.data)}catch(l){}if(typeof O==="object"&&O&&O.type==="creativeLoad"){var c=k_n(f);if(u.source&&c){var h;ZG0(u.source,function(l){try{if(l.parent===c)return h=l,!0}catch(K){}});
h&&luD(f,function(l){if(l.contentWindow===h)return R(O),!0})}}};
qk7=function(f){return typeof f==="string"?document.getElementById(f):f};
wll=function(){var f={};return f[0]=_.R0(AuP,"current"),f[1]=_.R0(aut),f[2]=_.R0(F1e),f};
kD=function(f,R){return f.left===R.left&&f.top===R.top&&f.width===R.width&&f.height===R.height};
mc7=function(f,R){return{left:Math.max(f.left,R.left),top:Math.max(f.top,R.top),width:Math.max(0,Math.min(f.left+f.width,R.left+R.width)-Math.max(f.left,R.left)),height:Math.max(0,Math.min(f.top+f.height,R.top+R.height)-Math.max(f.top,R.top))}};
Q57=function(f,R){return{left:Math.round(f.left+R.x),top:Math.round(f.top+R.y),width:f.width,height:f.height}};
W1n=function(f,R,u){if(f&&R!==null&&R!=R.top){if(!R.top)return new _.K8(-12245933,-12245933);R=R.top}try{return(u===void 0?0:u)?(new _.K8(R.innerWidth,R.innerHeight)).round():_.qg(R).round()}catch(O){return new _.K8(-12245933,-12245933)}};
Euh=function(f,R,u){try{if(f){if(!R.top)return new Of(-12245933,-12245933,-12245933,-12245933);R=R.top}var O=W1n(f,R,u),c=O.height,h=O.width;if(h===-12245933)return new Of(h,h,h,h);var l=A5(a0(R.document)),K=l.x,q=l.y;return new Of(q,K+h,q+c,K)}catch(F){return new Of(-12245933,-12245933,-12245933,-12245933)}};
tWe=function(f){var R;return(R=f.google_tag_data)!=null?R:f.google_tag_data={}};
CCl=function(f){var R,u;return typeof((R=f.navigator)==null?void 0:(u=R.userAgentData)==null?void 0:u.getHighEntropyValues)==="function"};
dch=function(f){if(!CCl(f))return null;var R=tWe(f);if(R.uach_promise)return R.uach_promise;f=f.navigator.userAgentData.getHighEntropyValues(yun).then(function(u){R.uach!=null||(R.uach=u);return u});
return R.uach_promise=f};
MWe=function(f){var R;return Nnn(L1q(bG7(plX(j5X(DcD(JuB(zwl(TnX(new HGh,f.architecture||""),f.bitness||""),f.mobile||!1),f.model||""),f.platform||""),f.platformVersion||""),f.uaFullVersion||""),((R=f.fullVersionList)==null?void 0:R.map(function(u){var O=new Iu7;O=_.FH(O,1,u.brand);return _.FH(O,2,u.version)}))||[]),f.wow64||!1)};
PC5=function(f){var R,u;return(u=(R=dch(f))==null?void 0:R.then(function(O){return MWe(O)}))!=null?u:null};
Ucn=function(f,R){return new rQ(function(u){var O=!1,c=Array(R.length);c.fill(void 0);var h=new Set,l=new Set,K=function(m,W){f.running?(c[W]=m,h.add(W),O||(O=!0,Zw(f,function(){O=!1;u.next(_.iB(c))},1))):u.error(new wq(W))},q=function(m,W){l.add(W);
h.add(W);Zw(f,function(){u.error(m)},1)},F=function(m){l.add(m);
Zw(f,function(){l.size===R.length&&u.complete()},1)},w=R.map(function(m,W){return m.subscribe(function(C){return void K(C,W)},function(C){return void q(C,W)},function(){return void F(W)})});
return function(){w.forEach(function(m){return void m.unsubscribe()})}})};
G_7=function(f,R,u){function O(){if(R.debugChannel){var J=R.debugChannel,M=J.next;var P={creativeId:R.debugNames.getName(u),requiredSignals:c,signals:Object.assign({},h),hasPrematurelyCompleted:l,errorMessage:K,erroredSignalKey:q};P={specMajor:2,specMinor:0,specPatch:0,timestamp:T_(R.timeProvider.now(),new Hl(0,R.timeProvider.timeline)),instanceId:R.debugNames.getName(R.symbol),creativeState:P};M.call(J,P)}}
for(var c=Object.keys(f),h={},l=!1,K=null,q=null,F={},w=new Set,m=[],W=[],C=_.Z(c),d=C.next(),p={};!d.done;p={key$jscomp$374:void 0},d=C.next())p.key$jscomp$374=d.value,d=f[p.key$jscomp$374],d instanceof l_?(F[p.key$jscomp$374]=d.value,w.add(p.key$jscomp$374),R.debugChannel&&(h[String(p.key$jscomp$374)]=E3h(d.value))):(d=d.pipe(G_(function(J,M){return QaB(J)||QaB(M)?!1:J===M}),CG(function(J){return function(M){R.debugChannel&&(h[String(J.key$jscomp$374)]=E3h(M),O());
var P={};return P[J.key$jscomp$374]=M,P}}(p)),Mc(function(J){return function(M){if(M instanceof wq)throw new ewh(String(J.key$jscomp$374));
throw M;}}(p)),iC(function(J){return function(){w.add(J.key$jscomp$374)}}(p),function(J){return function(M){q=String(J.key$jscomp$374);
K=String(M);O()}}(p),function(J){return function(){w.has(J.key$jscomp$374)||(l=!0,O())}}(p))),W.push(p.key$jscomp$374),m.push(d));
(f=Object.keys(h).length>0)&&O();C=Ucn(R.queue,m).pipe(Mc(function(J){if(J instanceof wq)throw new Qw(String(W[J.inputObservableIndex]));throw J;}),CG(function(J){return Object.freeze(Object.assign.apply(Object,[{},
F].concat(_.yq(J))))}));
return(m=m.length>0)&&f?Ju(a5(Object.freeze(F)),C):m?C:a5(Object.freeze(F))};
Bn5=function(f,R,u,O,c){return f.performanceMonitor.timeExecution.bind(f.performanceMonitor)(733,function(){var h={};try{return R.pipe(Mc(function(l){O(Object.assign({},h,{error:l}));return Du}),LG(function(l){try{var K=u(f,l)}catch(F){return O(Object.assign({},h,{error:F instanceof Error?F:String(F)})),Du}var q={};
return G_7(K,f,l.symbol).pipe(iC(function(F){q=F}),gn(1),Qq()).pipe(c,Mc(function(F){O(Object.assign({},q,{error:F}));
return Du}),o5(void 0),CG(function(){return!0}))})).pipe(sk(function(l){return l+1},0),Mc(function(l){O(Object.assign({},h,{error:l}));
return Du}))}catch(l){return O(Object.assign({},h,{error:l})),Du}})()};
WK=function(f){var R=new Map;if(typeof f!=="object"||f===null)return R;Object.values(f).forEach(function(u){u&&typeof u.extrapolateToNow==="function"&&(R.has(u.clock.timeline)||R.set(u.clock.timeline,u.clock.now()))});
return R};
ou5=function(f,R){return typeof f==="string"?encodeURIComponent(f):typeof f==="number"?String(f):Array.isArray(f)?f.map(function(u){return ou5(u,R)}).join(","):f instanceof Hl?f.toString():f&&typeof f.extrapolateToNow==="function"?ou5(f.extrapolateUsingTimestampMap(R).value,R):f===!0?"1":f===!1?"0":f===void 0||f===null?null:f instanceof xcq?Skh(f):[f.top,
f.left,f.top+f.height,f.left+f.width].join()};
Ef=function(f,R){f=Object.entries(f).map(function(u){var O=_.Z(u);u=O.next().value;O=O.next().value;O=ou5(O,R);return O===null?"":u+"="+O}).filter(function(u){return u!==""});
return f.length?f.join("&"):""};
s5t=function(f,R){var u=$cB,O=gu7;R=R===void 0?.01:R;return function(c){R>0&&Math.random()<=R&&(f.global.HTMLFencedFrameElement&&f.global.fence&&typeof f.global.fence.reportEvent==="function"&&f.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),c=Object.assign({},c,{errorMessage:c.error instanceof Error&&c.error.message?c.error.message:String(c.error),errorStack:c.error instanceof Error&&c.error.stack?String(c.error.stack):null,errorName:c.error instanceof
Error&&c.error.name?String(c.error.name):null,errorContext:String(f.performanceMonitor.timedFunctionContext),errorEscapedQueryId:c.escapedQueryId}),u(Object.assign({},c,{payloadMapper:function(){return function(h){try{return O(Object.assign({},h))}catch(l){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),WK(c)).forEach(function(h){f.beaconFactory.makeBeacon(h).sendNow()}))}};
nuD=function(){var f=_.yK.apply(0,arguments);return function(R){var u=R.pipe(gn(1),Qq());R=f.map(function(O){return u.pipe(O,o5(!0))});
return dn(R).pipe(eW(1),Pl())}};
VWB=function(){var f=_.yK.apply(0,arguments);return function(R){var u=R.pipe(gn(1),Qq());R=f.map(function(O){return u.pipe(O,o5(!0))});
return Ju.apply(null,_.yq(R)).pipe(eW(1),Pl())}};
YkP=function(f,R){return function(u){var O=u.pipe(gn(1),Qq());u=O.pipe(f,o5(!0));O=O.pipe(ih(R,gn(),Qq()),o5(!0));u=dn([u,O]);return wz7(u,O).pipe(eW(1),Pl())}};
vul=function(f,R,u){u(!0)};
iG2=function(f,R){return ih(Yu(function(u){var O=f(u),c=R(u),h={};return O&&c&&h?new rQ(function(l){c(O,h,function(K){l.next(Object.assign({},u,{canEmit:K}));l.complete()});
return function(){}}):t5}),z_(function(u){return u.canEmit}))};
ruX=function(f){var R={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(u){return u.pipe(Yu(function(O){return new rQ(function(c){function h(){K.disconnect();q.unsubscribe()}
var l=f.MutationObserver;if(l&&O.ref!==void 0){var K=new l(function(F){c.next(F)});
K.observe(O.ref,R);var q=O.JSC$7368_released.subscribe(h);return h}})}))}};
fw2=function(f){if(f.measurementDeferralState===3)return null;if(f.timeOnScreenReason!==void 0){var R=f.creativeFound===!1?"n":null;if(R!==null)return R}return f.geometricMeasurementErrors instanceof C8?"msf":f.contextValidationErrors instanceof yw?"c":f.contextVisibilityKnown===!1?"pv":f.geometricMeasurementErrors||f.contextValidationErrors?"x":null};
Ng=function(f,R){return f.replace(Rf7,function(u,O){try{var c=_.dq.get(R,O);if(c==null||c.toString()==null)return u;c=c.toString();if(c==""||!_.Kh(c==null?"":String(c)))return encodeURIComponent(c).replace(/%2C/g,",")}catch(h){}return u})};
uHl=function(f,R){var u=Object.assign({},f),O=f.userAgentClientHints;u=(delete u.userAgentClientHints,u);u=f.payloadMapper(u);var c=Ef(u,R);return _.L8(f.urlPrefixes,function(h){var l="";typeof O==="string"&&(l="&"+Ef({uach:O},R));var K={};return Ng(h,(K.VIEWABILITY=c,K))+l})};
$cB=function(f,R){var u=f.payloadMapper(f),O=Ef(u,R);return O?_.L8(f.urlPrefixes,function(c){c=c.indexOf("?")>=0?c:c+"?";c="?&".indexOf(c.slice(-1))>=0?c:c+"&";return c+O}):f.urlPrefixes};
O8l=function(){return ih(z_(function(f){return f!==void 0}),CG(function(f){return f}))};
c50=function(f){return ih(CG(function(){return!0}),Vq(!1),h5(f))};
XK5=function(f){return f.length<=0?Du:dn(f.map(function(R){var u=0;return R.pipe(CG(function(O){return{index:u++,value:O}}))})).pipe(z_(function(R){return R.every(function(u){return u.index===R[0].index})}),CG(function(R){return R.map(function(u){return u.value})}))};
hf7=function(f,R){f.currentState&&(f.previousState=f.currentState);f.currentState=R;f.previousState&&f.previousState.value?(R=Math.max(0,T_(R.timestamp,f.previousState.timestamp)),f.totalTime+=R,f.consecutiveTime+=R):f.consecutiveTime=0;return f};
Z8D=function(){return ih(sk(hf7,{totalTime:0,consecutiveTime:0}),CG(function(f){return f.totalTime}))};
lw0=function(){return ih(sk(hf7,{totalTime:0,consecutiveTime:0}),CG(function(f){return f.consecutiveTime}))};
kxn=function(f,R){return function(u){return XK5(R.map(function(O){return u.pipe(f(O))}))}};
Ky7=function(){var f;return ih(iC(function(R){return void(f=R.timestamp)}),lw0(),CG(function(R){return{timestamp:f,
value:Math.round(R)}}))};
qfP=function(f,R){return kD(f.topWindowViewportExternalGeometry,R.topWindowViewportExternalGeometry)&&kD(f.elementGeometry,R.elementGeometry)&&kD(f.exposedViewportLocalGeometry,R.exposedViewportLocalGeometry)&&kD(f.intersectionGeometry,R.intersectionGeometry)&&f.elementGeometrySourceName===R.elementGeometrySourceName&&f.measurementRequests===R.measurementRequests&&f.viewportGeometrySourceName===R.viewportGeometrySourceName&&f.viewportLocalAppOffset.x===R.viewportLocalAppOffset.x&&f.viewportLocalAppOffset.y===
R.viewportLocalAppOffset.y};
Fyn=function(f,R){return function(u){return function(O){var c=O.pipe(SW(new cK),Qq());O=u.element.pipe(G_());c=c.pipe(CG(function(h){return h.value}));
return dn([O,c,R]).pipe(CG(function(h){var l=_.Z(h);h=l.next().value;var K=l.next().value;l=l.next().value;if(h.ref===void 0)var q={top:0,left:0,width:0,height:0};else{q=h.ref.getBoundingClientRect();var F=h.ref,w=f.global,m=new _.b_(0,0),W=p8(_.jF(F));if(Dw(W,"parent")){do{if(W==w)var C=_.J5(F);else C=A5B(F),C=new _.b_(C.left,C.top);m.x+=C.x;m.y+=C.y}while(W&&W!=w&&W!=W.parent&&(F=W.frameElement)&&(W=W.parent))}q={top:m.y,left:m.x,width:q.width,height:q.height}}q=Q57(q,K.viewportLocalAppOffset);
w=mc7(q,K.exposedViewportLocalGeometry);m=f.timeProvider.now();W=Object;F=W.assign;if(l!==2||f.inCrossDomainIframe||w.width<=0||w.height<=0)var d=!1;else try{var p=f.document.elementFromPoint(w.left+w.width/2,w.top+w.height/2);d=p?!awP(p,h):!1}catch(J){d=!1}return{timestamp:m,value:F.call(W,{},K,{elementGeometrySourceName:"geo",intersectionGeometry:d?zx.intersectionGeometry:w,elementGeometry:q})}}),XH(f.queue))}}};
awP=function(f,R,u){u=u===void 0?0:u;return f.ref===void 0||R.ref===void 0?!1:f.ref===R.ref||_.Tx(R.ref,function(O){return O===f.ref})?!0:R.ref.ownerDocument&&R.ref.ownerDocument.defaultView&&R.ref.ownerDocument.defaultView===R.ref.ownerDocument.defaultView.top?!1:u<10&&R.ref.ownerDocument&&R.ref.ownerDocument.defaultView&&R.ref.ownerDocument.defaultView.frameElement?awP(f,new HK(R.ref.ownerDocument.defaultView.frameElement),u+1):!0};
Q0P=function(f){return function(R){return R.pipe(f.ResizeObserver?wK2(f):mgn(f),gn(1),Qq())}};
wK2=function(f){return function(R){return R.pipe(Yu(function(u){var O=f.ResizeObserver;if(!O||u.ref===void 0)return a5(zx.elementGeometry);var c=(new rQ(function(h){function l(){u.ref!==void 0&&K.unobserve(u.ref);K.disconnect();q.unsubscribe()}
if(u.ref===void 0)return h.complete(),function(){};
var K=new O(function(F){F.forEach(function(w){h.next(w)})});
K.observe(u.ref);var q=u.JSC$7368_released.subscribe(l);return l})).pipe(I5(f.performanceMonitor,736),CG(function(h){return h.contentRect}));
return Ju(a5(u.ref.getBoundingClientRect()),c)}),G_(kD))}};
mgn=function(f){return function(R){var u=R.pipe(ruX(f)),O=f.onResize;u=Ju(R.pipe(CG(function(){return YOB("resize")})),u,O);
return dn(R,u).pipe(I5(f.performanceMonitor,737),CG(function(c){c=_.Z(c).next().value;return c.ref===void 0?void 0:c.ref.getBoundingClientRect()}),O8l(),G_(kD))}};
tFB=function(f,R){var u=Wy2(f,R).pipe(gn(1),Qq());return function(O){return function(c){c=c.pipe(Yu(function(h){return h.element}),G_());
return dn([u,c]).pipe(Yu(function(h){var l=_.Z(h);h=l.next().value;l=l.next().value;return ED2(f,h.intersectionObserver,Q0P(f),h.observations,O,h.flushRecords,l)}),XH(f.queue))}}};
C_D=function(f){return CG(function(R){return R.value.viewportGeometrySourceName!=="nio"?R:Object.assign({},R,{value:Object.assign({},R.value,{exposedViewportLocalGeometry:I0(f,!0),topWindowViewportExternalGeometry:I0(f,!0)})})})};
y5h=function(f,R){return a5(R).pipe(f,CG(function(){return R}))};
Wy2=function(f,R){return f.timeProvider.timeline!==dge?FV(new C8(2)):f.MutationObserver?typeof IntersectionObserver==="undefined"?FV(new C8(0)):(new rQ(function(u){var O=new cK,c=new Mg(O.next.bind(O),{threshold:[].concat(_.yq(R))});u.next({observations:O.pipe(I5(f.performanceMonitor,735)),intersectionObserver:c,flushRecords:function(h){h=c.takeRecords(h);h.length>0&&O.next(h)}})})).pipe(eW(1),gn(1),Qq()):FV(new C8(1))};
Nq7=function(f){return Ue2(f.sort(function(R,u){return R.time-u.time}),s87)};
ED2=function(f,R,u,O,c,h,l){return new rQ(function(K){function q(){d||(d=!0,l.ref!==void 0&&R.unobserve(c,l.ref),w.unsubscribe(),C.unsubscribe(),W.unsubscribe(),p.unsubscribe())}
if(l.ref!==void 0){Lyn(R,c);R.observe(c,l.ref);var F=new PK({timestamp:f.timeProvider.now(),value:Object.assign({},zx,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),w=O.pipe(LG(function(J){return Nq7(J)}),z_(function(J){return J.target===l.ref}),CG(function(J){return{timestamp:new Hl(J.time,dge),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:J.rootBounds||Uf,topWindowViewportExternalGeometry:J.rootBounds||I0(f,!0),measurementRequests:m,elementGeometrySourceName:"nio",intersectionGeometry:J.intersectionRect,elementGeometry:J.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:J.isIntersecting,isV2Visible:J.isVisible}}}),SW(F),Qq()).subscribe(K),m=new cK,W=m.subscribe(function(){h(c);
K.next({timestamp:f.timeProvider.now(),value:F.value.value});l.ref!==void 0&&(R.unobserve(c,l.ref),R.observe(c,l.ref))}),C=y5h(u,l).subscribe(function(){m.next()}),d=!1,p=l.JSC$7368_released.subscribe(function(){return q()});
return q}})};
b8q=function(f,R){var u=f.getOnBackgrounded().pipe(CG(function(){return"b"}));
return wz7(R,u).pipe(eW(1),h5(f.queue))};
eF=function(f){return function(R){var u;return R.pipe(iC(function(O){return void(u=O.timestamp)}),CG(function(O){return O.value}),f,CG(function(O){return{timestamp:u,
value:O}}))}};
pK7=function(f){return f.intersectionGeometry.width*f.intersectionGeometry.height/(f.elementGeometry.width*f.elementGeometry.height)};
Gx=function(f,R,u){u=u===void 0?function(O,c){return O===c}:u;
return f.timestamp.equals(R.timestamp)&&u(f.value,R.value)};
o0=function(f,R){return R.pipe(CG(function(u){return new BK(f.timeProvider,{timestamp:f.timeProvider.now(),value:u})}))};
j0B=function(f){return function(R){return R.pipe(z9n(f),CG(function(u){var O=_.Z(u);u=O.next().value;O=O.next().value;var c=u.value;return{timestamp:u.timestamp,value:c>=1?!0:c<=0?!1:c>=O}}))}};
J5q=function(){return ih(z_(function(f,R){return R>0}),Dg7,Vq(-1),G_())};
zfn=function(f,R,u){return f?dn([R,u]).pipe(z_(function(O){var c=_.Z(O);O=c.next().value;c=c.next().value;return O.timestamp.equals(c.timestamp)}),CG(function(O){var c=_.Z(O);
O=c.next().value;c=c.next().value;return O.value>c.value?O:c})):R};
IwB=function(f){return function(R){var u=R.pipe(Tq0),O=R.pipe(H87);return f instanceof rQ?f.pipe(Yu(function(c){return zfn(c,u,O)})):zfn(f.value,u,O)}};
$g7=function(f,R,u,O){var c=O.geometryIsOccluded,h=O.exposureThreshold,l=O.wasLargeAdAtRender,K=O.allowLargeAdThreshold,q=O.largeAdExposureThreshold,F=O.mayUseViewportShareExposure,w=O.hasMeasurementStarted;O=O.useIntersectionObserverV2;R=MFB(f,u,R);u=P_n(f,u);O=Ug5(R,O);var m=efn(f,c,F,R),W=m.pipe(CG(function(fh){return fh.value}),G_(),h5(f),sk(function(fh,V){return Math.max(fh,V)},0)),C=m.pipe(CG(function(fh){return fh.value}),J5q(),h5(f)),d=R.pipe(Gxh,CG(function(fh){return fh.value}),eW(2),G_(),
h5(f));
l=Bq7(f,R,l,K);var p=l.pipe(Vq(!1),G_(),CG(function(fh){return fh?q:h}));
K=m.pipe(j0B(p),G_(),h5(f));var J=dn([K,R]).pipe(z_(function(fh){var V=_.Z(fh);fh=V.next().value;V=V.next().value;return fh.timestamp.equals(V.timestamp)}),CG(function(fh){var V=_.Z(fh);
fh=V.next().value;V=V.next().value;return{visible:fh.value,geometry:V.value.elementGeometry}}),sk(function(fh,V){return!V.visible&&fh.visible?fh:V},{visible:!1,
geometry:Uf}),CG(function(fh){return fh.geometry}),Vq(Uf),h5(f),G_(kD));
F=F instanceof rQ?F.pipe(G_(),Uk()):t5;p=dn([F,p]).pipe(Uk());var M=R.pipe(z_(function(fh){return fh.value.viewportGeometrySourceName!=="ns"&&fh.value.elementGeometrySourceName!=="ns"}),sk(function(fh){return fh+1},0),Vq(0),h5(f)),P=u.pipe(Uk(!0),Vq(!1),h5(f));
P=dn([w,P]).pipe(CG(function(fh){var V=_.Z(fh);fh=V.next().value;V=V.next().value;return fh&&!V}),h5(f));
var g=R.pipe(oDq,G_()),x=g.pipe(CG(function(fh){return fh.value}),sk(function(fh,V){return Math.max(fh,V)},0),G_(),h5(f));
f=g.pipe(CG(function(fh){return fh.value}),J5q(),h5(f));
return{shouldResetExposureSignals:F,shouldResetViewabilitySignals:p,geometrySignals:{readyGeometryWithDefault:R,measurementStrategy:R.pipe(xg0),creativePosition:J.pipe(G_(kD)),visible:K.pipe(G_(Gx)),timestampedExposure:m.pipe(G_(Gx)),maximumExposure:W,minimumExposure:C,browserSize:R.pipe(Sf2,G_(_.Af)),timestampedScreenShare:g,maxScreenShare:x,minScreenShare:f,geometricMeasurementErrors:u,measurementRequests:R.pipe(CG(function(fh){return fh.value.measurementRequests})),
isLargeAd:l,geometryIsOccluded:c,hasMeasurementStarted:w,geometryMeasurable:P,validMeasurementCount:M,loadTimeExposure:d,v2VisibilityBitVector:O}}};
P_n=function(f,R){return R.pipe(z_(function(){return!1}),CG(function(u){return u}),Mc(function(u){return xD(new l_(u),f)}))};
MFB=function(f,R,u){return R.pipe(a0e(t5),h5(f)).pipe(G_(function(O,c){return Gx(O,c,qfP)}),Vq({timestamp:u.now(),
value:zx}),h5(f))};
efn=function(f,R,u,O){u=O.pipe(IwB(u),eF(CG(function(c){return Math.round(c*100)/100})),h5(f));
return R instanceof l_?u:dn([u,R]).pipe(CG(function(c){var h=_.Z(c);c=h.next().value;h=h.next().value;return{timestamp:h.timestamp.maximum(c.timestamp),value:h.value?0:c.value}}),G_(Gx),h5(f))};
Bq7=function(f,R,u,O){R=[R.pipe(CG(function(c){return c.value.elementGeometry.width*c.value.elementGeometry.height>=242500}))];
u instanceof rQ&&R.push(u.pipe(CG(function(c){return!!c})));
u=dn(R);return O?u.pipe(CG(function(c){return c.some(function(h){return h})}),Vq(!1),G_(),h5(f)):xD(new l_(!1),f)};
Ug5=function(f,R){f=dn([f,R]).pipe(CG(function(c){var h=_.Z(c);c=h.next().value;if(h.next().value&&c.value.isIntersecting)return c.value.isV2Visible}),G_());
var u=f.pipe(CG(function(c){return c===void 0?!0:c}),sk(function(c,h){return c||!h},!1)),O=f.pipe(sk(function(c,h){return h===void 0?c:h?!1:c!=null?c:!0},void 0),CG(function(c){return!!c}));
return dn([R,mu7(f,u,O)]).pipe(CG(function(c){var h=_.Z(c);c=h.next().value;var l=_.Z(h.next().value);h=l.next().value;var K=l.next().value;l=l.next().value;var q=0;if(!c)return 0;if(h===void 0)return 16;h&&(q|=1);h||(q|=2);K&&(q|=4);l&&(q|=8);return q}))};
VFP=function(f,R,u,O,c){var h=SF.timeThresholdMs;var l=l===void 0?new gDB(R,O):l;return(new rQ(function(K){var q=u.pipe(Vq(void 0),Yu(function(){return s07(c)})).pipe(CG(function(F){var w=F.value;
F=F.timestamp;var m=w.visible;w=w.consecutiveViewTime;var W=w>=h;W||!m?$D(l):(F=Math.max(0,T_(R.now(),F)),nD2(l,Math.max(0,h-w-F)));return W}),sk(function(F,w){return w||F},!1),G_()).subscribe(K);
return function(){l.dispose();q.unsubscribe()}})).pipe(vl(function(K){return!K},!0),h5(f))};
s07=function(f){return XK5([f,f.pipe(Ky7())]).pipe(CG(function(R){var u=_.Z(R);R=u.next().value;u=u.next().value;return{timestamp:R.timestamp,value:{visible:R.value,consecutiveViewTime:u.value}}}),G_(function(R,u){return Gx(R,u,function(O,c){return O.consecutiveViewTime===c.consecutiveViewTime&&O.visible===c.visible})}))};
Yfn=function(){return ih(lw0(),sk(function(f,R){return Math.max(f,R)},0),CG(function(f){return Math.round(f)}))};
vDD=function(f){return ih(j0B(a5(f)),Yfn())};
i8t=function(f,R){return R instanceof rQ?R.pipe(Yu(function(u){return(u=u?15:null)?FV(new C8(u)):f})):(R=R.value?15:null)?FV(new C8(R)):f};
r5B=function(f){var R=new C8(13);if(f.length<1)return{chain:Du,capturedErrors:Du};var u=new cK,O=f[0];return{chain:f.slice(1).reduce(function(c,h){return c.pipe(Mc(function(l){u.next(l);return h}))},O).pipe(Mc(function(c){u.next(c);
return FV(R)}),SW(new cK),Qq()),
capturedErrors:u}};
fN5=function(f,R){var u=f.pipe(SW(new cK),Qq());return Yu(function(O){return u.pipe(R(O))})};
u$7=function(f,R){if(f.inCrossDomainIframe)return FV(new C8(6));var u=new cK;return Ju(a5({}),R,u).pipe(CG(function(){return{timestamp:f.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Rdq(f),topWindowViewportExternalGeometry:I0(f,!0),measurementRequests:u,viewportLocalAppOffset:{x:0,y:0}}}}),XH(f.queue))};
Rdq=function(f){var R=I0(f,!1);if(!f.inIframe||!gq(f.global.parent)||f.global.parent===f.global)return R;var u=new sf(f.global.parent,f.debugChannel);u.beaconFactory=f.beaconFactory;u=Rdq(u);f=f.global.frameElement.getBoundingClientRect();return mc7(Q57(mc7(u,f),{x:R.left-f.left,y:R.top-f.top}),R)};
ORt=function(f){if(f.prerendering)return 3;var R;return(R={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||""])!=null?R:0};
cKl=function(f){return f.document.JSC$7379_onVisibilityChange.pipe(CG(function(R){return R==="visible"}),G_(),h5(f.queue))};
Xin=function(f,R,u){var O;return R.pipe(G_(),Yu(function(c){return u.pipe(CG(function(){if(!O){O=!0;try{c.next()}finally{O=!1}}return!0}))}),Vq(!1),h5(f.queue))};
hdD=function(f){return ih(eF(CG(function(R){return R>=1?!0:R<=0?!1:R>=f})),Z8D(),CG(function(R){return Math.round(R)}))};
lNB=function(f,R,u,O,c){var h=ZRB;if(h.length>1)for(var l=0;l<h.length-1;l++)if(h[l]<h[l+1])throw Error();l=c.pipe(Vq(void 0),Yu(function(){return u.pipe(Ky7())}),G_(),h5(f));
c=c.pipe(Vq(void 0),Yu(function(){return u.pipe(Yfn())}),G_(),h5(f));
return{totalMeasurementTime:O.pipe(Vq(void 0),Yu(function(){return R.pipe(CG(function(K){return{timestamp:K.timestamp,value:!0}}),Z8D())}),G_(),h5(f)),
totalUnviewedTime:O.pipe(Vq(void 0),Yu(function(){return R.pipe(CG(function(K){return{timestamp:K.timestamp,value:K.value===0}}),Z8D())}),G_(),h5(f)),
maxTimeOnScreen:O.pipe(Vq(void 0),Yu(function(){return R.pipe(kxn(vDD,h))}),G_(_.Af),h5(f)),
timeOnScreen:O.pipe(Vq(void 0),Yu(function(){return R.pipe(kxn(hdD,h),CG(function(K){return K.map(function(q,F){return F>0?q-K[F-1]:q})}))}),G_(_.Af),h5(f)),
maxConsecutiveViewTime:c,consecutiveViewTime:l.pipe(G_(Gx),h5(f))}};
KDD=function(f){var R=!0;R=R===void 0?!1:R;return ih(Yu(function(u){return kP7(f.document,u,R)}),h5(f.queue))};
q87=function(f,R,u){var O=u.pipe(CG(function(c){return{value:c,timestamp:f.timeProvider.now()}}),G_(Gx));
return R instanceof rQ?R.pipe(G_(),Yu(function(c){return c?xD(new l_({value:!1,timestamp:f.timeProvider.now()}),f.queue):O})):R.value===!1?O:new l_(!1)};
AK7=function(f,R,u,O,c,h,l){var K=SF;R=R instanceof rQ?R.pipe(Vq(!1),G_()):R;var q=!f.isMobile();u=q87(f,u,O);f=l.measurableCreative.pipe(c50(f.queue));return Object.assign({},K,{geometryIsOccluded:u,wasLargeAdAtRender:c,allowLargeAdThreshold:q,mayUseViewportShareExposure:R,hasMeasurementStarted:f,useIntersectionObserverV2:h})};
FDq=function(f,R,u,O,c,h){var l=1;h=h===void 0?!0:h;l=l===void 0?.01:l;var K=K===void 0?f.timeProvider.intervalObservable(100).pipe(h5(f.queue)):K;return f.performanceMonitor.timeExecution(916,function(){return aN0(f,R.pipe(XH(f.queue)),u.pipe(XH(f.queue)),O,c,h,l,K)})()};
aN0=function(f,R,u,O,c,h,l,K){var q=cKl(f).pipe(CG(function(w){return!w})),F=new wi5(f,[new mG0(f,ZRB),
new Qj0(f,K)]);K=nuD(WD7,E$l);return Bn5(f,R,function(w,m){var W=xD(new l_(m.element),w.queue).pipe(KDD(w),h5(w.queue)),C={loadedElement:W,shouldMeasure:W.pipe(Uk(!0)),measurableCreative:W.pipe(CG(function(fh){var V=V===void 0?Symbol():V;return Object.freeze({symbol:V,element:xD(new l_(fh),w.queue)})})),
creativeSearchResult:xD(new l_("mue"),w.queue)},d=new l_(!1),p=new l_(!1),J=new l_(17),M=new l_(!1),P=new l_(!1),g=xD(n8,w.queue);d=F.buildGeometrySource(C,{inApp:d,useV2:!1,requestSource:xD(J,w.queue)}).geometrySource;C=AK7(w,M,p,q,P,g,C);p=$g7(w.queue,w.timeProvider,d,C);C=p.geometrySignals;M=p.shouldResetViewabilitySignals;p=lNB(w.queue,C.timestampedExposure,C.visible,p.shouldResetExposureSignals,M);M=VFP(w.queue,w.timeProvider,M,C.measurementRequests,C.visible);P=u.pipe(z_(function(fh){return fh===
m.element.ref}),CG(function(){return"ur"}));
g=ty5(w.timeProvider,c).pipe(Uk("t"));P=b8q(w,Ju(P,g));g=Xin(w,C.measurementRequests,P.pipe(z_(function(fh){return fh!==null})));
d=P.pipe(z_(function(fh){return fh!==null}),CG(function(){return ORt(w.global.document)===1}));
var x=tr7(w.document);return Object.assign({},{beaconFactory:new l_(w.beaconFactory),context:new l_(w),inferredPingId:new l_("lidar2"),timeOnScreenPingId:new l_("lidartos"),binaryContext:new l_(17),binaryVersion:new l_(O),requestSource:J,contextValidationErrors:new l_(w.validate()?null:new yw),contextVisibilityKnown:new l_(x),payloadMapper:new l_(gu7),endOfSessionReason:P,timeOnScreenReason:P,requestMeasurementOnEndOfSession:g,hasImpressionFired:C37,crossDomainIframeState:new l_(w.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:n8,inFetchLaterBeaconExperiment:n8,isTurtlex:n8,turtlexReportEventData:new l_(""),reportFencedFrameEvent:t5,isViewableAttributionEnabled:n8,inViewableAttributionExperiment:new l_(0),fetchBeaconFactory:t5,supportsPendingBeacon:n8,supportsFetchLater:n8,emit:new l_(vul),beginToRenderEvent:new l_(Symbol()),activeViewUnmeasurableEvent:new l_(Symbol()),activeViewViewableEvent:new l_(Symbol()),creativeFound:C37,immediateUrlPrefixes:new l_(m.immediateUrls),timeOnScreenUrlPrefixes:new l_(m.timeOnScreenUrls),
cpmavUrls:t5,viewableRelayUrls:t5,measurementDeferralState:new l_(2),urlSerializer:new l_(uHl),viewUrlSerializer:new l_(yK7),isCreativeLoaded:W.pipe(c50(w.queue)),pageVisible:q.pipe(CG(function(fh){return!fh})),
eosPageVisible:d,timestampedExposureHistory:C.timestampedExposure.pipe(sk(function(fh,V){fh.push(V);return fh},[]))},C,{viewable:o0(w,M),
maxTimeOnScreen:o0(w,p.maxTimeOnScreen),timeOnScreen:o0(w,p.timeOnScreen),maxConsecutiveViewTime:o0(w,p.maxConsecutiveViewTime),consecutiveViewTime:p.consecutiveViewTime.pipe(CG(function(fh){return new BK(w.timeProvider,fh)})),
totalMeasurementTime:o0(w,p.totalMeasurementTime),totalUnviewedTime:o0(w,p.totalUnviewedTime),userAgentClientHints:Vyt(w),clientOrderPingCounter:new l_(new xcq)})},s5t(f,l),VWB(h?YkP(K,dGh):YkP(K,N97),LD0))};
bRe=function(f){var R=_.yK.apply(1,arguments).filter(Boolean).join("&");if(!R)return f;var u=f.match(/[?&]adurl=/);return u?f.slice(0,u.index+1)+R+"&"+f.slice(u.index+1):f+(f.indexOf("?")<0?"?":"&")+R};
Vw=function(f,R){return R?"&"+f+"="+encodeURIComponent(R):""};
pi0=function(){try{var f,R;return!!((f=window)==null?0:(R=f.top)==null?0:R.location.href)&&!1}catch(u){return!0}};
_.YD=function(f){f&&typeof f.dispose=="function"&&f.dispose()};
_.vK=function(f){for(var R=0,u=arguments.length;R<u;++R){var O=arguments[R];_.Rk(O)?_.vK.apply(null,O):_.YD(O)}};
DGP=function(){var f=jjB();f=f===void 0?"bevasrsg":f;return new Promise(function(R){var u=window===window.top?window:pi0()?window:window.top,O=u[f],c;((c=O)==null?0:c.bevasrs)?R(new i_(O.bevasrs)):(O||(O={},O=(O.nqfbel=[],O),u[f]=O),O.nqfbel.push(function(h){R(new i_(h))}))})};
JK2=function(f){var R={c:f.d5,e:f.tg3,mc:f.reH,me:f.jkL};f.rK&&(R.co={c:f.rK.ph0,a:f.rK.k7R,s:f.rK.xCs});return R};
zdt=function(f){var R,u,O={d5:f.c,tg3:f.e,reH:(R=f.mc)!=null?R:!1,jkL:(u=f.me)!=null?u:!1};f.co&&(O.rK={ph0:f.co.c,k7R:f.co.a,xCs:f.co.s});return O};
T9e=function(f){return function(){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f(),2);R=u.yieldResult;return u.return({f:function(){return R.cHp()},
c:function(O){return R.tkC(O)},
m:function(O){return R.g9(zdt(O))},
mws:function(O){return R.vN(zdt(O))}})})}};
HR7=function(f,R){var u=jjB();u=u===void 0?"bevasrsg":u;R={s:function(h){var l;return f.snapshot(Object.assign({},h.c&&{d5:h.c},h.s&&{uwX:h.s},{ybR:(l=h.p)!=null?l:!0}))},
e:function(h){var l;return void((l=f.xuF)==null?void 0:l.call(f,h))},
c:function(h,l){return f.pFy(h,l)},
p:f.pXF,l:function(){return f.imF()},
wpc:R?T9e(R):void 0};var O=window===window.top?window:pi0()?window:window.top,c=O[u];if(c){c.bevasrs=R;if(c.nqfbel!==void 0)for(u=_.Z(c.nqfbel),O=u.next();!O.done;O=u.next())O=O.value,O(R);c.nqfbel=void 0}else c={},c=(c.bevasrs=R,c.nqfbel=void 0,c),O[u]=c};
MrX=function(f){var R=R===void 0?49:R;var u=[];_.rq(f,INP,6,_.fR()).forEach(function(O){_.Rj(O,2)<=R&&u.push(_.Rj(O,1))});
return u};
P3D=function(f){var R=R===void 0?49:R;var u=[];_.rq(f,INP,6,_.fR()).forEach(function(O){_.Rj(O,2)>R&&u.push(_.Rj(O,1))});
return u};
UG7=function(f){f.then(function(){},function(){})};
u3=function(f){return{fieldType:1,fieldName:f}};
O8=function(f){return{fieldType:2,fieldName:f}};
_.ci=function(f){return{fieldType:3,fieldName:f}};
edP=function(){function f(){c[0]=1732584193;c[1]=4023233417;c[2]=2562383102;c[3]=271733878;c[4]=3285377520;w=F=0}
function R(m){for(var W=l,C=0;C<64;C+=4)W[C/4]=m[C]<<24|m[C+1]<<16|m[C+2]<<8|m[C+3];for(C=16;C<80;C++)m=W[C-3]^W[C-8]^W[C-14]^W[C-16],W[C]=(m<<1|m>>>31)&4294967295;m=c[0];var d=c[1],p=c[2],J=c[3],M=c[4];for(C=0;C<80;C++){if(C<40)if(C<20){var P=J^d&(p^J);var g=1518500249}else P=d^p^J,g=1859775393;else C<60?(P=d&p|J&(d|p),g=2400959708):(P=d^p^J,g=3395469782);P=((m<<5|m>>>27)&4294967295)+P+M+g+W[C]&4294967295;M=J;J=p;p=(d<<30|d>>>2)&4294967295;d=m;m=P}c[0]=c[0]+m&4294967295;c[1]=c[1]+d&4294967295;c[2]=
c[2]+p&4294967295;c[3]=c[3]+J&4294967295;c[4]=c[4]+M&4294967295}
function u(m,W){if(typeof m==="string"){m=unescape(encodeURIComponent(m));for(var C=[],d=0,p=m.length;d<p;++d)C.push(m.charCodeAt(d));m=C}W||(W=m.length);C=0;if(F==0)for(;C+64<W;)R(m.slice(C,C+64)),C+=64,w+=64;for(;C<W;)if(h[F++]=m[C++],w++,F==64)for(F=0,R(h);C+64<W;)R(m.slice(C,C+64)),C+=64,w+=64}
function O(){var m=[],W=w*8;F<56?u(K,56-F):u(K,64-(F-56));for(var C=63;C>=56;C--)h[C]=W&255,W>>>=8;R(h);for(C=W=0;C<5;C++)for(var d=24;d>=0;d-=8)m[W++]=c[C]>>d&255;return m}
for(var c=[],h=[],l=[],K=[128],q=1;q<64;++q)K[q]=0;var F,w;f();return{reset:f,update:u,digest:O,digestString:function(){for(var m=O(),W="",C=0;C<m.length;C++)W+="0123456789ABCDEF".charAt(Math.floor(m[C]/16))+"0123456789ABCDEF".charAt(m[C]%16);return W}}};
S8X=function(f,R){R=R===void 0?GPl:R;if(!B9q){var u;f=(u=f.navigator)==null?void 0:u.userAgentData;if(!f||typeof f.getHighEntropyValues!=="function"||f.brands&&typeof f.brands.map!=="function")return Promise.reject(Error("ya"));o$t((f.brands||[]).map(function(c){var h=new xG2;h=_.FH(h,1,c.brand);return _.FH(h,2,c.version)}));
typeof f.mobile==="boolean"&&_.X$(hK,2,f.mobile);B9q=f.getHighEntropyValues(R)}var O=new Set(R);return B9q.then(function(c){var h=hK.clone();O.has("platform")&&_.FH(h,3,c.platform);O.has("platformVersion")&&_.FH(h,4,c.platformVersion);O.has("architecture")&&_.FH(h,5,c.architecture);O.has("model")&&_.FH(h,6,c.model);O.has("uaFullVersion")&&_.FH(h,7,c.uaFullVersion);return h.serialize()}).catch(function(){return hK.serialize()})};
ZN=function(f,R,u,O){this.initialValue_=f;this.maxValue_=R;this.currBaseValue_=this.currValue_=f;this.randomFactor_=u||0;this.backoffFactor_=O||2};
l3=function(f){this.src=f;this.listeners={};this.typeCount_=0};
n$l=function(){for(var f;f=$GD.remove();){try{f.fn.call(f.scope)}catch(R){c0(R)}g$P.put(f)}sjP=!1};
_.k$=function(f){switch(f){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}};
VrP=function(f){switch(f){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""}};
_.Y85=function(){};
XQB=function(f){return{nH4:new v$n(f),errorCount:new iR0(f),eventCount:new rK7(f),n2r:new f1P(f),eUx:new Rm2(f),qVI:new uTn(f),o8s:new Ocq(f),gGD:new cy0(f)}};
zm7=function(f,R,u,O){f=hmP(Zc7(l15(new _.KR(1828,"0"),f),new ko7));R.length&&KMe(f,q$5(new DK2,R));O!==void 0&&(f.destinationUrl=O);var c=new JyX(1828,"","",!1,"",f.build());_.qG(c,f);var h=new AK({flush:function(l){try{c.flush(l)}catch(K){u(K)}}});
h.addOnDisposeCallback(function(){setTimeout(function(){try{h.snapshotAndFlush()}finally{c.dispose()}})});
h.invocationLimit=1E5;h.flushInterval=3E4;h.JSC$7795_flushTimer.setInterval(3E4);return h};
aj=function(){var f,R,u;return(u=(f=globalThis.performance)==null?void 0:(R=f.now)==null?void 0:R.call(f))!=null?u:Date.now()};
Hch=function(f,R,u){if(f.disable)return new TPt;R=R?MrX(R):[];if(u)return u.s1F(R),u.share();f={fB:f.fB,cji:f.o29,lvv:f.nPI,destinationUrl:f.destinationUrl,tjW:f.tjW,z4:f.z4};u=R;u=u===void 0?[]:u;return new F$(f,u)};
_.I1n=function(f){if(!f)return null;f=_.w9(f,4);return f===null||f===void 0?null:_.lh(f)};
UKB=function(f,R){return R?MNX(R):f?P4l(f):Promise.resolve()};
MNX=function(f){return new Promise(function(R,u){var O=_.mD("SCRIPT"),c=_.I1n(f);_.UO(O,c);O.onload=function(){_.Q1(O);R()};
O.onerror=function(){_.Q1(O);u(Error("Ja"))};
(Wi("HEAD")[0]||document.documentElement).appendChild(O)})};
P4l=function(f){return new Promise(function(R){var u=_.mD("SCRIPT");if(f){var O=_.w9(f,6);O=O===null||O===void 0?null:_.Ia(O)}else O=null;_.Pz(u,O);(Wi("HEAD")[0]||document.documentElement).appendChild(u);_.Q1(u);R()})};
E8=function(f,R,u){var O,c=new Promise(function(h){O=setTimeout(h,R)});
return Promise.race([f.finally(function(){return void clearTimeout(O)}),
c.then(u)])};
emP=function(f,R){try{return globalThis.sessionStorage.setItem(f,R),!0}catch(u){return!1}};
Gol=function(f,R,u,O){R=R===void 0?0:R;u=u===void 0?f.length:u;var c=0;for(O&&(c=Gol(O));R<u;R++)O=typeof f==="string"?f.charCodeAt(R):f[R],c=BPP(31,c)+O|0;return c};
on7=function(f,R){return[Gol(f,0,f.length>>1,R),Gol(f,f.length>>1)]};
xKD=function(f){var R=_.Z(on7(f,tK));f=R.next().value;R=R.next().value;return f.toString(16)+R.toString(16)};
S$n=function(f,R){var u=on7(R);f=new Uint32Array(f.buffer);R=f[0];var O=_.Z(u);u=O.next().value;O=O.next().value;for(var c=1;c<f.length;c+=2){for(var h=R,l=c,K=u,q=O,F=0;F<22;F++)l=l>>>8|l<<24,l+=h|0,l^=K+38293,h=h<<3|h>>>29,h^=l,q=q>>>8|q<<24,q+=K|0,q^=F+38293,K=K<<3|K>>>29,K^=q;h=[h,l];f[c]^=h[0];c+1<f.length&&(f[c+1]^=h[1])}};
$K5=function(f,R,u,O,c){var h=(4-(tK.length+u.length)%4)%4,l=new Uint8Array(4+h+tK.length+4+u.length),K=new DataView(l.buffer),q=0;K.setUint32(q,Math.random()*4294967295);q=q+4+h;l.set(tK,q);q+=tK.length;K.setUint32(q,c);l.set(u,q+4);S$n(l,O);return f.insert(R,function(F){return void globalThis.sessionStorage.removeItem(F)})?emP(R,_.fE(l))?"s":"t":"i"};
gn0=function(f,R){var u=globalThis.sessionStorage.getItem(f);if(!u)return["m"];try{var O=_.Fi(u);S$n(O,R)}catch(c){return globalThis.sessionStorage.removeItem(f),["c"]}for(R=4;R<7&&O[R]===0;)R++;for(u=0;u<tK.length;u++)if(O[R++]!==tK[u])return globalThis.sessionStorage.removeItem(f),["d"];u=(new DataView(O.buffer)).getUint32(R);return Math.floor(Date.now()/1E3)>=u?(globalThis.sessionStorage.removeItem(f),["e"]):["a",new Uint8Array(O.buffer,R+4)]};
ss7=function(f){return globalThis.TextEncoder?(new TextEncoder).encode(f):_.CR(f)};
nnD=function(f){var R=f,u;return function(){if(R){var O=R;R=void 0;u=O.apply(this,arguments)}return u}};
y1=function(f){return sE(function(R){if(R instanceof f)return!0;var u,O,c=R==null?void 0:(u=R.ownerDocument)==null?void 0:(O=u.defaultView)==null?void 0:O[f.name];return VN0(c)&&R instanceof c})};
_.LR=function(f,R,u){_.d9.call(this);this.JSC$8005_listener_=f;this.JSC$8005_interval_=R||0;this.handler_=u;this.callback_=(0,_.NG)(this.JSC$8007_doAction_,this)};
_.b3=function(f){f=Y$7(f);return _.lh(f)};
Y$7=function(f){return f===null?"null":f===void 0?"undefined":f};
ic7=function(f){if(f&&f.focus)if(f!==document.activeElement)f.focus();else return vnl(function(){return _.k(function(R){document.activeElement&&document.activeElement.blur();return R.return(vnl(function(){f.focus()}))})})};
_.ry7=function(f){var R=R===void 0?5:R;setTimeout(function(){var u;return _.k(function(O){O.nextAddress==1&&(u=document.activeElement);if(O.nextAddress!=5)return(document.activeElement===u||document.activeElement===document.body)&&R>=0&&f?_.A(O,ic7(f),5):O.jumpTo(0);if(document.activeElement===f)return O.return();f=f.parentElement;--R;return O.jumpTo(2)})},15)};
vnl=function(f){return new Promise(function(R){requestAnimationFrame(function(){R(f())})})};
fKX=function(f){if(_.pR)f(_.pR);else{var R;((R=jr)!=null?R:jr=[]).push(f)}};
JK=function(){!_.pR&&_.DN&&_.R87(_.DN());return _.pR};
_.R87=function(f){_.pR=f;var R;(R=jr)==null||R.forEach(fKX);jr=void 0};
_.zP=function(f){_.pR&&_.pR.beforeLoadModuleCode(f)};
_.TP=function(){_.pR&&_.pR.JSC$8948_setLoaded()};
Hi=function(f){return Ma(f)?Number(f):String(f)};
uM0=function(f){this.action=f;this.wfv=!1};
OQ7=function(f,R){uM0.call(this,"set-drive-options");this.appId=f;this.appOrigin=R};
c17=function(f){uM0.call(this,"visibility");this.visible=f};
XhP=function(f,R,u){Ij.call(this,f,R,u)};
h8l=function(f){MG.call(this,f)};
ZQh=function(f){f=f&&f.getWindow()||window;return f.gadgets&&f.gadgets.rpc};
kfe=function(f,R){var u=R&&R.getWindow()||window;if(ZQh(R))f();else if(lK7)lK7.push(f);else var O=lK7=[f],c=u.setInterval(function(){if(ZQh(R)){u.clearInterval(c);for(var h=0;h<O.length;h++)O[h]();lK7=null}},100)};
qC7=function(f,R){var u=new Pi(f);_.qG(R,u);var O={passive:!1};R.listen(u,"mousewheel",function(c){return void Kwe(f,c)},O).listen(f,"scroll",function(c){return void Kwe(f,c)},O)};
Kwe=function(f,R){var u;a:{for(u=R.target;u;){if(u.nodeType==1){var O=_.U8(u,"overflowY");if(O=="auto"||O=="scroll")break a}u=u.parentNode}u=null}if(!u||!_.er(f,u)||u.scrollHeight==u.clientHeight||R.deltaY>0&&Math.abs(u.scrollTop-(u.scrollHeight-u.clientHeight))<=1||R.deltaY<0&&u.scrollTop==0)R.preventDefault(),R.stopPropagation()};
g9=function(f,R,u,O,c,h,l,K,q){K=K===void 0?!1:K;q=q===void 0?!1:q;Ij.call(this,void 0,void 0,void 0);Ij.call(this,h?h+" picker modal-dialog":"picker modal-dialog",!0,u);_.GP(f,"protocol");this.iframeManager_=new A1D;this.targetId_=Bi();this.rpcToken_=Bi();f=_.oj(f);_.x$(f,"hostId");u=_.x$(f,"parent");this.useGapi_=!q&&!0||(u==null?void 0:u.includes("onepick.corp.google.com"));K&&_.Sr(f,"fv2","true");this.setUrl(f.toString());this.preferredDialogWidth_=O;this.preferredDialogHeight_=c;O!==void 0||
c!==void 0?O=!0:(O=_.x$(_.oj(f.toString()),"hostId"),aKt||(aKt=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),O=!aKt.has(O));this.autoSizeDialog_=O;this.JSC$8195_gadgetsDomHelper_=l||this.JSC$8146_dom_;R&&(l=this.JSC$8195_gadgetsDomHelper_,R=_.x$(_.oj(this.JSC$8197_url_),"grugl")=="true"?Fwt:wht,ZQh(l)||(l=l||a0(document),O=l.createElement("SCRIPT"),_.UO(O,R),O.type="text/javascript",l.JSC$7334_document_.body.appendChild(O)));
f=f.toString();R=null;l=f.indexOf("/picker?");l>-1?R=f.substring(0,l+8-1):lB(f,"/picker")&&(R=f);R&&this.setRelayUrl(R+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(f=this.buttons_,f.JSC$8180_element_=this.buttonEl_,f.render()):_.ey(this.buttonEl_,mW2),_.$$(this.buttonEl_,!!this.buttons_))};
_.t0P=function(f){var R=R===void 0?QSB:R;var u=_.cG(f),O=function(h){h=_.Z(h);h.next();h=s8(h);return R(u,h)},c=function(h){var l=_.Z(h);
h=l.next().value;l=s8(l);return f.apply(h,l)};
return function(){var h=_.yK.apply(0,arguments),l=this||_.Oe,K=WwD.get(l);K||(K={},WwD.set(l,K));return E8q(K,[this].concat(_.yq(h)),c,O)}};
nR=function(f){var R={};f=f.replace(/\r/g,"").split("\n");for(var u=0;u<f.length;u++){var O=f[u],c=O.indexOf(":");c<0||(R[O.substring(0,c)]=O.substring(c+2,O.length))}return R};
V1=function(f,R,u){u=u===void 0?function(){}:u;
return f?R():u()};
_.y1n=function(f){var R;return((R=Ct2.documentOverride)!=null?R:f).__wizdispatcher};
r9=function(f){var R=Y$;Y$=f;return R};
NvD=function(f){return f===dWl||(f==null?void 0:f.name)==="\u0275NotFound"};
Lw0=function(f,R){var u;if((u=f)==null?0:u.isDisposed)throw Error("nb`"+String(f.debugName));for(;f!==void 0;){u=f;if(u.retrieve)return u.retrieve(R,{optional:!0});f=f.parent}return dWl};
fc=function(f){return{"\u0275prov":{providedIn:"root",token:Symbol(f),factory:void 0,value:void 0}}};
bQX=function(f){var R=r9(f);f={};return f[Symbol.dispose]=function(){r9(R)},f};
phh=function(f,R){f.disposables||(f.disposables=[]);f.disposables.push(R)};
Rs=function(f){var R=Y$;R&&!R.isDisposed&&(phh(R,f),f.parent=R)};
DWq=function(f){if(f.disposables){for(var R=_.Z(f.disposables),u=R.next();!u.done;u=R.next())u=u.value,typeof u==="function"?u():jS0(u);f.disposables.length=0}};
jS0=function(f){if(!f.isDisposed){f.isDisposed=!0;var R;(R=f[Symbol.dispose])==null||R.call(f);delete f.parent;DWq(f)}};
e8e=function(f){var R={retrieve:function(u){switch(u.\u0275prov.token){case J10.\u0275prov.token:var O=f.asyncDeps;break;case z85.\u0275prov.token:O=f.rootElement;break;case TvB.\u0275prov.token:O=f.modelRootElement;break;case HQe.\u0275prov.token:O=f.appContext;break;case IK5.\u0275prov.token:O=f.rendererData;break;case M0D.\u0275prov.token:O=f.injectingConstructor;break;case PtP.\u0275prov.token:O=f.dispatcher}if(O)u=O;else a:{for(O=R.parent;O;){var c=O;if(c.retrieve){u=c.retrieve(u);break a}O=
O.parent}O=u.\u0275prov.token;c=UWn[O];c!==void 0?u=c:(c=u.\u0275prov.providedIn,u.\u0275prov.factory?(u=u.\u0275prov.factory(),O&&c==="root"&&(UWn[O]=u)):u=dWl)}return u}};
Rs(R);return R};
Gft=function(){var f=Y$;if(!f)throw Error("ob");var R=Lw0(f,HQe);NvD(R)&&(f=Lw0(f,PtP),NvD(f)||f.getOptionalAppContext())};
Bvh=function(f){if(typeof document!=="undefined"&&document&&document.getElementById&&(f=document.getElementById(f))){var R=f.tagName.toUpperCase();if(R=="SCRIPT"||R=="LINK")return f}return null};
xWX=function(f,R){if((f=f===void 0?"":f)&&R)throw Error("ub");var u="";var O=_.Oe._F_jsUrl;(f=R||Bvh(f))&&(u=f.src?f.src:f.getAttribute("href"));if(O&&u){if(O!=u)throw Error("vb`"+O+"`"+u);u=O}else u=O||u;if(!o8B(u))throw Error("wb");return u};
sSe=function(){if(!SCt){SCt=!0;try{var f=xWX(_.Oe._F_jsUrl?"":"base-js")}catch(O){return}var R=$WD(g8t(f)),u=Object.keys(R);u.length!==0&&fKX(function(O){for(var c=_.Z(u),h=c.next();!h.done;h=c.next()){h=h.value;for(var l=_.Z(Object.keys(R[h])),K=l.next();!K.done;K=l.next())O.addExtraEdge(h,K.value)}})}};
n85=function(f,R,u){var O;return f&&R?f+"__"+R:(O=f!=null?f:R)!=null?O:u};
YCe=function(){var f=Object.assign({},V0t);Object.getOwnPropertyNames(V0t).forEach(function(R){u4[R]!==void 0&&(f[R]=u4[R])});
return f};
v80=function(f,R){if(u4.enablePerformanceTiming){var u,O;(O=(u=performance).mark)==null||O.call(u,f+"Start__"+R)}};
iQ5=function(f,R){if(u4.enablePerformanceTiming){var u,O;(O=(u=performance).measure)==null||O.call(u,f+"__"+R,f+"Start__"+R)}};
fLl=function(f,R){var u=Object.create(r17);u.debugName=R;!Y$||Rs(u);R=r9(u);try{f(u)}finally{r9(R)}return function(){return void jS0(u)}};
ut5=function(f){return O$(f)&&RD2 in f};
OtX=function(f,R){return Object.is(f,R)};
XT=function(f){var R=cQ;cQ=f;return R};
Zt0=function(f){if(hy)throw Error("da");if(cQ!==null){var R=cQ.nextProducerIndex++;cs7(cQ);R<cQ.producerNode.length&&cQ.producerNode[R]!==f&&Z1(cQ)&&XfP(cQ.producerNode[R],cQ.producerIndexOfThis[R]);cQ.producerNode[R]!==f&&(cQ.producerNode[R]=f,cQ.producerIndexOfThis[R]=Z1(cQ)?hDD(f,cQ,R):0);cQ.producerLastReadVersion[R]=f.version}};
K$2=function(f){if(!Z1(f)||f.dirty)if(f.dirty||f.lastCleanEpoch!==lLn)(f.producerMustRecompute(f)||kA7(f))&&f.producerRecomputeValue(f),f.dirty=!1,f.lastCleanEpoch=lLn};
qb7=function(f){if(f.liveConsumerNode!==void 0){var R=hy;hy=!0;try{for(var u=_.Z(f.liveConsumerNode),O=u.next();!O.done;O=u.next()){var c=O.value;c.dirty||(f=void 0,c.dirty=!0,qb7(c),(f=c.consumerMarkedDirty)==null||f.call(c,c))}}finally{hy=R}}};
Ast=function(){var f;return((f=cQ)==null?void 0:f.consumerAllowSignalWrites)!==!1};
aLP=function(f){f&&(f.nextProducerIndex=0);return XT(f)};
F$B=function(f,R){XT(R);if(f&&f.producerNode!==void 0&&f.producerIndexOfThis!==void 0&&f.producerLastReadVersion!==void 0){if(Z1(f))for(R=f.nextProducerIndex;R<f.producerNode.length;R++)XfP(f.producerNode[R],f.producerIndexOfThis[R]);for(;f.producerNode.length>f.nextProducerIndex;)f.producerNode.pop(),f.producerLastReadVersion.pop(),f.producerIndexOfThis.pop()}};
kA7=function(f){cs7(f);for(var R=0;R<f.producerNode.length;R++){var u=f.producerNode[R],O=f.producerLastReadVersion[R];if(O!==u.version)return!0;K$2(u);if(O!==u.version)return!0}return!1};
hDD=function(f,R,u){wf5(f);if(f.liveConsumerNode.length===0&&f.producerNode!==void 0)for(var O=0;O<f.producerNode.length;O++)f.producerIndexOfThis[O]=hDD(f.producerNode[O],f,O);f.liveConsumerIndexOfThis.push(u);return f.liveConsumerNode.push(R)-1};
XfP=function(f,R){wf5(f);if(f.liveConsumerNode.length===1&&f.producerNode!==void 0)for(var u=0;u<f.producerNode.length;u++)XfP(f.producerNode[u],f.producerIndexOfThis[u]);u=f.liveConsumerNode.length-1;f.liveConsumerNode[R]=f.liveConsumerNode[u];f.liveConsumerIndexOfThis[R]=f.liveConsumerIndexOfThis[u];f.liveConsumerNode.length--;f.liveConsumerIndexOfThis.length--;R<f.liveConsumerNode.length&&(u=f.liveConsumerIndexOfThis[R],f=f.liveConsumerNode[R],cs7(f),f.producerIndexOfThis[u]=R)};
Z1=function(f){var R,u;return f.consumerIsAlwaysLive||((u=f==null?void 0:(R=f.liveConsumerNode)==null?void 0:R.length)!=null?u:0)>0};
cs7=function(f){f.producerNode!=null||(f.producerNode=[]);f.producerIndexOfThis!=null||(f.producerIndexOfThis=[]);f.producerLastReadVersion!=null||(f.producerLastReadVersion=[])};
wf5=function(f){f.liveConsumerNode!=null||(f.liveConsumerNode=[]);f.liveConsumerIndexOfThis!=null||(f.liveConsumerIndexOfThis=[])};
QVn=function(f){var R=Object.create(mv2);R.computation=f;f=function(){K$2(R);Zt0(R);if(R.value===l4)throw R.error;return R.value};
f[kn]=R;return f};
CZn=function(f,R){var u=Object.create(W$2);u.value=f;R!==void 0&&(u.equal=R);f=function(){Zt0(u);return u.value};
f[kn]=u;return[f,function(O){return Exn(u,O)},
function(O){Ast()||thl(u);Exn(u,O(u.value))}]};
Exn=function(f,R){Ast()||thl(f);if(!f.equal(f.value,R)){f.value=R;f.version++;lLn++;qb7(f);var u;(u=ysB)==null||u(f)}};
Kc=function(f){var R=XT(null);try{return f()}finally{XT(R)}};
_.qK=function(f,R,u){u=u===void 0?"":u;f=CZn(f,R==null?void 0:R.equals);var O=f[0],c=O[kn];c.debugName=n85(R==null?void 0:R.debugName,u,"[signal]");if(!u4.enablePerformanceTiming)return f;var h=f[1],l=f[2];return[O,function(K){dvX(function(){return void h(K)},c)},
function(K){dvX(function(){return void l(K)},c)}]};
dvX=function(f,R){v80("signalSet",R.debugName);try{f()}finally{iQ5("signalSet",R.debugName)}};
L$5=function(f,R){var u=_.Z(_.qK(f,void 0,"cPpJzc"));f=u.next().value;u=u.next().value;f[NUt]=u;f[Ay]=R;return f};
btP=function(f){return!!f&&typeof f==="object"&&Object.getPrototypeOf(f)===Object.prototype};
pf7=function(f){return typeof f==="function"&&NUt in f&&typeof f[NUt]==="function"};
jVD=function(f,R){Object.defineProperty(f,Ay,{get:function(){return R}})};
wP=function(f,R){if(as(f)){var u=f.map(function(h){return wP(h,R)});
jVD(u,R);return u}if(btP(f)){u={};f=_.Z(Object.entries(f));for(var O=f.next();!O.done;O=f.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;u[O]=wP(c,R)}jVD(u,R);return u}return L$5(f,R)};
Dvn=function(f){if(as(f))return f.map(function(c){return Dvn(c)});
if(btP(f)){var R={};f=_.Z(Object.entries(f));for(var u=f.next();!u.done;u=f.next()){var O=_.Z(u.value);u=O.next().value;O=O.next().value;R[u]=Dvn(O)}return R}return pf7(f)?f():f};
zD0=function(){var f={height:0,width:0};if(!btP(f))throw Error("Ib");var R=Symbol("Jb");return[wP(f,R),function(u,O){if(u[Ay]===R)if(typeof O==="function"){var c=[].concat(_.yq(Dvn(u)));O=O(c)||c;Js2(u,[].concat(_.yq(O)))}else Js2(u,O);else throw Error("Kb");}]};
Js2=function(f,R){if(pf7(f))f[NUt](R);else if(as(f)&&as(R))R=wP(R,f[Ay]),f.length=0,f.push.apply(f,_.yq(R));else if((btP(f)||as(f))&&(as(R)||typeof R==="object"&&R!==null)){R=_.Z(Object.entries(R));for(var u=R.next();!u.done;u=R.next()){var O=_.Z(u.value);u=O.next().value;O=O.next().value;var c=f,h=c[u];Object.hasOwn(f,u)?Js2(h,O):c[u]=wP(O,f[Ay])}}else throw Error("Lb");};
TUt=function(f){return Object.create(Object.assign({},mM,f))};
ILX=function(){var f;return(f=Htt)!=null?f:Htt=TUt({consumerAllowSignalWrites:!0})};
_.Qt=function(f,R,u){u=u===void 0?"":u;f=QVn(f);var O=f[kn];O.debugName=n85(R==null?void 0:R.debugName,u,"[computed]");(R==null?void 0:R.equals)!=null&&(O.equal=R.equals);return f};
WQ=function(f){var R=XT(Mh7);try{f()}finally{XT(R)}};
xvt=function(f){if(!f.isDisposed)switch(f.effectType){case PZn:Uv5.schedule(f);break;case eDq:GAP.schedule(f);break;case BU7:oxn.schedule(f);break;default:_.km(f.effectType)}};
$vD=function(f){SbD.push(f);return function(){var R=SbD.indexOf(f);R!==-1&&SbD.splice(R,1)}};
sV0=function(){if(ty>0)Uv5.flush();else for(var f=_.Z(gxh),R=f.next();!R.done;R=f.next())R.value.flush()};
Vht=function(f){for(var R=_.Z(f),u=R.next();!u.done;u=R.next()){var O=u.value;for(u=[O];O.parent!==void 0;)O=O.parent,nxX(O)&&f.has(O)&&u.push(O);for(;u.length>0;)O=u.pop(),f.delete(O),O.run()}};
Yb5=function(f){ty--;if(f){f=_.Z(gxh);for(var R=f.next();!R.done;R=f.next())R.value.clear()}else ty>0||sV0()};
itB=function(f,R,u){var O=vxB(f);Cc={name:u?O+" ("+u+")":O,isReactive:f.componentType!==dP,parent:Cc};f=R();Cc=Cc.parent;return f};
NK=function(){var f=Cc;return f?f.isReactive:!1};
b4=function(f,R){var u=Cc;R&&(Cc=R);try{return f()}catch(h){f=h;Lc(f,Cc);if(f!==rse){f9n=Cc;R=[];for(var O=Y$;O;){var c=void 0;R.push((c=O.debugName)!=null?c:"[context]");c=void 0;O=(c=O.parent)!=null?c:null}Rcn=R.reverse()}rse=f;throw f;}finally{Cc=u}};
Lc=function(f,R){try{var u=uNq(R);if(u&&!f.componentStack&&(f.componentStack=u,u4.enableComponentStacksInErrorMessages)){var O=f.message+"\n\nComponent stack: "+u;f.stack&&(f.stack=f.stack.replace(f.message,O));f.message=O}}catch(c){}};
uNq=function(f){if(O$(f)&&f.name!==void 0&&f.isReactive!==void 0&&f.parent!==void 0||f===null){for(var R=0,u="";R<20&&f;)u+=f.name+" > ",f=f.parent,R++;f=u.slice(0,-3)}else if(u4.enableContextBasedComponentStacks){a:{for(f=f===void 0?Y$:f;f;){if(ut5(f))break a;R=void 0;f=(R=f.parent)!=null?R:null}f=null}f=f.getComponentStack().slice(0,20).join(" > ")}else f="";return f};
vxB=function(f){return f.debugName||f.name||"[component]"};
OBl=function(f,R,u){R=Object.create(R);R.effectFn=f;u&&(R.debugName=u);Rs(R);R.componentStack=Cc;return R};
_.pc=function(f,R){f=OBl(f,cAt,R);xvt(f)};
_.jN=function(f){var R=Y$;if(R){var u=Cc;phh(R,function(){var O=XT(ILX());try{b4(function(){return void f()},u)}catch(c){throw u4.enableContextBasedComponentStacks&&Lc(c),c;
}finally{XT(O)}})}};
D1=function(f,R){var u={};(R===void 0||R)&&Rs(u);R=r9(u);try{f(u)}finally{r9(R)}return function(){return void jS0(u)}};
_.Jy=function(f){return typeof f==="function"?f():(f==null?0:f[XRP])?f.get():f};
_.zo=function(f,R){f=OBl(f,hcq,R);xvt(f)};
ZB2=function(f){if(Y$)throw Error("rb");D1(f,!1)};
To=function(f,R){f=r9(f);try{return Kc(R)}finally{r9(f)}};
HQ=function(f,R){var u=uNq(f9n),O,c;var h=(c=(O=Rcn)==null?void 0:O.slice())!=null?c:[];R={componentStack:u,contextTrace:h,errorSeverity:3,featureFlags:YCe(),tagName:R};return[f,R]};
Knh=function(f,R,u){if(Object.hasOwnProperty.call(l9X,f)&&(f=l9X[f],Object.hasOwnProperty.call(f,R)&&(f=f[R],f instanceof Array))){for(var O=null,c=!1,h=0,l=f.length;h<l;++h){var K=f[h],q=K.contingentAttribute;if(!q)return K.contract;O===null&&(O={});q=Object.hasOwnProperty.call(O,q)?O[q]:O[q]=u(q);if(q===K.requiredValue)return K.contract;q==null&&(c=!0)}if(c)return null}R=k2e[R];return typeof R==="number"?R:null};
a97=function(f,R,u){var O=null;(f=qLe[f])&&(O=f[R]);return typeof O!=="number"&&((f=qLe["*"])&&(O=f[R]),typeof O!=="number")?!1:!0===AAP[O][String(u).toLowerCase()]};
wRl=function(f,R){R=Knh(f.toLowerCase(),R,function(){var O;(O=u4.handleError)==null||O.call.apply(O,[u4].concat(_.yq(HQ(Error("Qb"),f.toLowerCase()))))});
if(R===null)return null;var u;return(u=Fn0[R])!=null?u:null};
mx2=function(f,R,u){if(u===null||u===void 0)return u;f=wRl(f,R);return f===null?u:f(R,u)};
Qyt=function(){};
Is=function(f,R){for(;f.length>R;)f.pop()};
Wne=function(f){f=Array(f);Is(f,0);return f};
EMl=function(f,R,u){if(u==null)f.removeAttribute(R);else{var O;(O=R.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":R.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?f.setAttributeNS(O,R,u):f.setAttribute(R,u)}};
tIh=function(f,R,u){f[R]=u};
yAD=function(f,R,u){f=f.style;if(typeof u==="string")f.cssText=u;else{f.cssText="";for(var O in u)if(CO2.call(u,O)){R=f;var c=O,h=u[O];c.indexOf("-")>=0?R.setProperty(c,h):R[c]=h}}};
dxX=function(f,R,u){var O=typeof u;O==="object"||O==="function"?f[R]=u:EMl(f,R,u)};
Ncl=function(){var f=new Qyt;f[MK.default]=dxX;f.style=yAD;return f};
LnX=function(f,R,u,O){(O[R]||O[MK.default])(f,R,u)};
pRh=function(f,R,u){R=new bBB(R,u);return f.__incrementalDOMData=R};
PQ=function(f,R){if(f.__incrementalDOMData)return f.__incrementalDOMData;var u=f.nodeType===1?f.localName:f.nodeName,O=f.nodeType===1?f.getAttribute("key"):null;R=pRh(f,u,f.nodeType===1?O||R:null);if(f.nodeType===1&&(f=f.attributes,u=f.length)){O=R._attrsArr||(R._attrsArr=Wne(u*2));for(var c=0,h=0;c<u;c+=1,h+=2){var l=f[c],K=l.value;O[h]=l.name;O[h+1]=K}}return R};
jyq=function(f,R,u,O,c){return R==u&&O==c};
DxP=function(f){for(var R=U$,u=eN();u!==f;){var O=u.nextSibling;R.removeChild(u);Go.deleted.push(u);u=O}};
eN=function(){return BQ?BQ.nextSibling:U$.firstChild};
os=function(){BQ=eN()};
Tcn=function(f,R,u){os();var O;a:{if(O=BQ){do{var c=O,h=f,l=R,K=PQ(c,l);if(JAe(c,h,K.nameOrCtor,l,K.key))break a}while(R&&(O=O.nextSibling))}O=null}O||(f==="#text"?(u=xn.createTextNode(""),pRh(u,"#text",null),f=u):(O=xn,c=U$,typeof f==="function"?O=new f:O=(c=f==="svg"?"http://www.w3.org/2000/svg":f==="math"?"http://www.w3.org/1998/Math/MathML":c==null||PQ(c).nameOrCtor==="foreignObject"?null:c.namespaceURI)?O.createElementNS(c,f):O.createElement(f),pRh(O,f,R),f=O,u&&f.setAttribute("nonce",u)),Go.created.push(f),
O=f);u=O;if(u!==BQ){if(zcl.indexOf(u)>=0)for(f=U$,R=u.nextSibling,O=BQ;O!==null&&O!==u;)c=O.nextSibling,f.insertBefore(O,R),O=c;else U$.insertBefore(u,BQ);BQ=u}};
HBe=function(f,R,u){Tcn(f,R,u);U$=BQ;BQ=null;return U$};
I95=function(){DxP(null);BQ=U$;U$=U$.parentNode};
gP=function(){BQ=U$.lastChild};
Ux2=function(f,R){R=R===void 0?{}:R;var u=R.matches===void 0?jyq:R.matches;return function(O,c,h){var l=Go,K=xn,q=zcl,F=s$,w=nc,m=BQ,W=U$,C=JAe;xn=O.ownerDocument;Go=new MIB(O);JAe=u;s$=[];nc=[];BQ=null;var d=U$=O.parentNode,p,J=POh.call(O);if((p=J.nodeType===11||J.nodeType===9?J.activeElement:null)&&O.contains(p)){for(J=[];p!==d;)J.push(p),p=p.parentNode||(d?p.host:null);d=J}else d=[];zcl=d;try{return f(O,c,h)}finally{O=Go,Vt&&O.deleted.length>0&&Vt(O.deleted),xn=K,Go=l,JAe=C,s$=F,nc=w,BQ=m,U$=W,
zcl=q}}};
ec2=function(f,R,u,O){Yn.push(LnX);Yn.push(f);Yn.push(R);Yn.push(u);Yn.push(O)};
BcD=function(f,R,u){var O=nc;R=R._attrsArr||(R._attrsArr=Wne(O.length));for(var c=!R.length||!1,h=0;h<O.length;h+=2){var l=O[h];if(c)R[h]=l;else if(R[h]!==l)break;var K=O[h+1];if(c||R[h+1]!==K)R[h+1]=K,ec2(f,l,K,u)}if(h<O.length||h<R.length){for(h=c=h;h<R.length;h+=2)vQ[R[h]]=R[h+1];for(h=c;h<O.length;h+=2)c=O[h],l=O[h+1],vQ[c]!==l&&ec2(f,c,l,u),R[h]=c,R[h+1]=l,delete vQ[c];Is(R,O.length);for(var q in vQ)ec2(f,q,void 0,u),delete vQ[q]}f=G2D;G2D=u=Yn.length;for(q=f;q<u;q+=5)(0,Yn[q])(Yn[q+1],Yn[q+
2],Yn[q+3],Yn[q+4]);G2D=f;Is(Yn,f);Is(O,0)};
i4=function(f){Tcn("#text",null);var R=BQ;var u=PQ(R);if(u.text!==f){u=u.text=f;for(var O=1;O<arguments.length;O+=1)u=(0,arguments[O])(u);R.data!==u&&(R.data=u)}};
sy7=function(f,R,u){if(u===!1&&oMn.has(R))EMl(f,R,null);else if(R!=="idomKey"&&R!=="skip"&&R!=="skipchildren"&&R!=="children"&&R!=="el"){if(R.startsWith("on"))if(R[2]===":"){if(u===void 0||u===null){var O;(O=u4.handleError)==null||O.call.apply(O,[u4].concat(_.yq(HQ(Error("Ub`"+R),f.tagName))));f[R]=void 0;return}if(typeof u!=="object"||u===null)throw Error("Vb`"+R+"`"+typeof u);if(typeof u.getFn!=="function")throw Error("Wb`"+R+"`"+Object.keys(u));var c=u.getFn(0),h=R.slice(3);if((O=NK())&&f["on"+
h]===void 0)f.addEventListener(h,c),_.jN(function(){return void f.removeEventListener(h,c)});
else if(O||!xx2.includes(h))f["on"+h]=c}else{SL2(f,R,u);return}else if(R.startsWith("data-")&&typeof u==="string")try{u=$xn(u)}catch(l){u="zSoyz"}typeof u!=="function"||f._disposeEffects!=null?(u4.enableAttributeSanitization&&(u=mx2(f.tagName,R,u)),R==="style"?gMB(f,R,u):R.startsWith("prop:")?(R=R.slice(5),f[R]=u):SL2(f,R,u)):(f._signalProps||(f._signalProps=[]),f._signalValues||(f._signalValues=[]),f._signalProps.push(R))}};
nMe=function(f,R,u){u=(u===void 0?{}:u).isReactive;if(R==null?0:R.el){var O=R.el;if(typeof O==="function")O(f);else{var c;(c=O.onRender)==null||c.call(O,f);f._disposeRef||(f._disposeRef=function(){var h;(h=O.onUnmount)==null||h.call(O);delete f._disposeRef},u&&_.jN(function(){var h;
return void((h=f._disposeRef)==null?void 0:h.call(f))}))}}};
VI2=function(f){return O$(f)&&rP in f};
YL2=function(f){return VI2(f)?f[rP].flattened:f};
vMP=function(f,R){var u=_.yK.apply(2,arguments),O;R=(O=R)!=null?O:{};O={};return O.type=f,O.props=R,O.children=u,O[fQ]=!0,O};
_.RS=function(f){return f.children};
ut=function(f){var R=iBP!==vMP;iBP=f?rAq:vMP;return R};
OC=function(f){return _.OE(f)?"nodeType"in f:!1};
ch=function(){return document.createTextNode("")};
XM=function(f){f=document.createTextNode(String(f));f._isSignalTextNode=!0;return f};
f87=function(f){var R=document.createElement("div");if(!(f instanceof bh)){if(f.contentKind!==h1)throw Error("Tb");f=pj(f.toString())}_.ey(R,f);f=_.Z(R.childNodes);for(var u=f.next();!u.done;u=f.next())u.value._isSafeOrSanitizedHtmlNode=!0;return R};
ZK=function(f){f=typeof f;return f==="string"||f==="number"||f==="boolean"};
RMq=function(f){return f instanceof Z0||aa(f)||"function"==typeof _.Sy&&f instanceof _.Sy||!1};
u0h=function(f,R){var u=f.parentElement;if(!u)return R;u.replaceChild(R,f);return R};
O0n=function(f,R){var u=f[0].parentElement;if(u)if(f[0].previousSibling||f[f.length-1].nextSibling){u.insertBefore(R,f[0]);for(var O=f.length-1;O>=0;O--)u.removeChild(f[O])}else u.textContent="",u.appendChild(R);return R};
crn=function(f,R){if(f[0].parentElement)for(var u=f[0].parentElement,O=R.length,c=f.length,h=O,l=0,K=0,q=f[c-1].nextSibling,F=null;l<c||K<h;)if(f[l]===R[K])l++,K++;else{for(;f[c-1]===R[h-1];)c--,h--;if(c===l)for(var w=h<O?K?R[K-1].nextSibling:R[h-K]:q;K<h;){var m=R[K++];u.insertBefore(m,w)}else if(h===K)for(;l<c;)w=f[l],F&&F.has(w)||u.removeChild(w),l++;else if(f[l]===R[h-1]&&R[K]===f[c-1])w=f[--c].nextSibling,u.insertBefore(R[K++],f[l++].nextSibling),u.insertBefore(R[--h],w),f[c]=R[h];else{if(!F)for(F=
new Map,w=K;w<h;)F.set(R[w],w++);w=F.get(f[l]);if(w==null)u.removeChild(f[l]),l++;else if(K<w&&w<h){m=l;for(var W=1,C=void 0;++m<c&&m<h&&(C=F.get(f[m]))!=null&&C===w+W;)W++;if(W>w-K)for(m=f[l];K<w;)u.insertBefore(R[K++],m);else u.replaceChild(R[K++],f[l++])}else l++}}return R};
l8h=function(f,R){var u;R!=null?u=R:u=_.y1n(document).getAppContext();u.get(X5n).JSC$25459_getEventTarget().dispatchEvent(new hMX(Z0e,f,h1))};
KYB=function(f){if(Array.isArray(f)){if(f.length>1)throw Error("ec`"+f.length+"`"+f.map(kL7).join(", "));f=f[0]}if(f==null)return null;if(!(f instanceof _.Hz)){var R,u;if((R=window)==null?0:(u=R.trustedTypes)==null?0:u.isScript(f))throw Error("dc");if(String(f).trim().length===0)return null;throw Error("fc`"+kL7(f));}return f};
qWt=function(f){if(Array.isArray(f)){if(f.length>1)throw Error("gc`"+f.length+"`"+f.map(kL7).join(", "));f=f[0]}if(f==null)return null;if(!deB(f)){if(String(f).trim().length===0)return null;throw Error("hc`"+kL7(f));}return f};
kL7=function(f){return"("+typeof f+") "+(f!=null&&typeof f==="object"?f.constructor.name:typeof f)+" "+f};
k8=function(f,R){function u(){c=!1;R.isControlFlowComponent&&ty++;var h=O[0],l=O[rP].flattened,K=ut(!0);try{var q=f(),F=Arq(h,q,O);Array.isArray(F)||(O[rP].flattened=[F]);var w=O[rP].flattened;if(l&&(!Array.isArray(l)||l.length!==0)){var m=Array.isArray(l)?l[0]:l,W=m[lt],C=m._disposeEffects;m._disposeEffects=void 0;m=Array.isArray(w)?w[0]:w;m[lt]=W;m[lt]&&(m[lt].numNodes=m===w?1:w.length);m._disposeEffects=C}O[0]=F;R.isControlFlowComponent&&Yb5(!1)}catch(d){throw R.isControlFlowComponent&&Yb5(!0),
d;}finally{ut(K)}}
R=R===void 0?{}:R;var O=a85(),c=!0;u4.legacyTriggerSoyRendererEvents&&Gft();_.zo(function(){(FY7==null?0:FY7.logger)&&!c?FY7.logger.logGraft(O[0],u):u()},R.debugName);
return O};
Arq=function(f,R,u){for(;typeof R==="function";)R=R();if(R!=null&&R[fQ]){var O,c,h;(h=u4.handleError)==null||h.call.apply(h,[u4].concat(_.yq(HQ(Error("ic`"+((O=R.type)==null?void 0:O.TAG_NAME)),(c=R.type)==null?void 0:c.TAG_NAME))))}if(f==null)return R==null?ch():ZK(R)?XM(R):RMq(R)?XM(R.toString()):OC(R)?R:R.length===0?ch():w5P(R,u);if(OC(f)){if(R==null)return u0h(f,ch());if(ZK(R))return mBq(f,R);if(RMq(R))return mBq(f,R.toString());if(OC(R))return u0h(f,R);if(R.length===0)return u0h(f,ch());R=w5P(R,
u);crn([f],u[rP].flattened);return R}f=KQ(f);if(R==null)return O0n(f,ch());if(ZK(R))return O0n(f,XM(R));if(RMq(R))return O0n(f,XM(R.toString()));if(OC(R))return crn(f,[R])[0];if(R.length===0)return O0n(f,ch());R=w5P(R,u);crn(f,u[rP].flattened);return R};
mBq=function(f,R){f.nodeType===Node.TEXT_NODE?f.textContent!==String(R)&&(f.textContent=String(R)):f=u0h(f,XM(R));return f};
KQ=function(f,R,u){return Qhe(f,R!=null?R:[],u===void 0?!1:u)};
w5P=function(f,R){var u=KQ(f,void 0,!0);if(u.length===0)return ch();R[rP].flattened=u;return f};
Qhe=function(f,R,u,O,c){R=R===void 0?[]:R;u=u===void 0?!1:u;c=c===void 0?-1:c;if(f==null)return R;if(f instanceof A1)return f=f.render(),Qhe(f,R,u,O,c);if(OC(R)&&R.nodeType===Node.ELEMENT_NODE)switch(R.tagName){case "SCRIPT":u=KYB(f);u!==null&&_.Pz(R,u);return;case "STYLE":u=qWt(f);u!==null&&(R.textContent=_.Nln(u));return}ZK(f)&&(f=XM(f),O&&u&&(O[c]=f));if(f!=null&&f.contentKind===h1||f instanceof bh){u=f87(f);u=Array.from(u.childNodes);u=_.Z(u);for(f=u.next();!f.done;f=u.next())WYn(R,f.value);return R}RMq(f)&&
(f=XM(f.toString()),O&&u&&(O[c]=f));if(OC(f))return WYn(R,f);if(Array.isArray(f)){for(var h=0;h<f.length;h++)Qhe(f[h],R,u,f,h);return R}if(typeof f==="function"){f=k8(f,{debugName:"qmF2ne"})[0];if(Array.isArray(f)){u=_.Z(f);for(f=u.next();!f.done;f=u.next())WYn(R,f.value);return R}O&&u&&(O[c]=f);return WYn(R,f)}if(f!=null&&f[fQ]){O=ut(!0);c=iBP;try{h=c.apply(null,[f.type,f.props].concat(_.yq(f.children)))}finally{ut(O)}return Qhe(h,R,u)}var l;(l=u4.handleError)==null||l.call.apply(l,[u4].concat(_.yq(HQ(Error("jc")))));
return R};
a85=function(f){var R={};R=Object.assign([],(R[rP]={flattened:[]},R));if(!f)return R;R[0]=w5P(f,R);return R};
WYn=function(f,R){Array.isArray(f)?f.push(R):f.appendChild(R);return f};
aS=function(f){if(!u4.enableLazyTsx)return f;if(Array.isArray(f)){for(var R=0;R<f.length;R++)f[R]=aS(f[R]);return f}return f instanceof A1?(f=f.render(),aS(f)):f};
tVl=function(f,R){var u,O,c=vxB(f),h=function(C){O=C;C=ut(!0);var d=XT(FM);v80("render",c);try{u=aS(f(R))}finally{iQ5("render",c),XT(d),ut(C)}};
h=u4.enableContextPerComponent?fLl(h,c):D1(h,u4.alwaysTrackContexts||!!Y$);ut5(O);if(!R.renderedFromIdom){var l=r9(O);try{return ENB(f,R,u),u}finally{r9(l)}}!VI2(u)&&Array.isArray(u)&&(u=a85(u));var K=YL2(u);l=Array.isArray(K)?K[0]:K;var q=!1;if(l){var F,w=(F=R==null?void 0:R.idomKey)!=null?F:f;F=K!==l;l._disposeEffects=h;var m=l[lt]||{},W=VI2(u)?u:m.sourceDynamicRange;Object.assign(m,{key:w,numNodes:F?K.length:1,context:O,higherOrder:!!l[lt],sourceDynamicRange:W});l[lt]=m}else q=!0;(function(){var C=
r9(O);try{ENB(f,R,K)}finally{r9(C)}})();
q&&h();return u};
Ccn=function(f){var R={},u;for(u in f)R={prev$jscomp$23:void 0,next$jscomp$32:void 0},R.prev$jscomp$23=wv[u],R.next$jscomp$32=f[u],wv[u]=function(O){return function(){var c=_.yK.apply(0,arguments);O.prev$jscomp$23.apply(null,_.yq(c));O.next$jscomp$32.apply(null,_.yq(c))}}(R)};
yrn=function(){if(NK())throw Error("kc");return mw};
dBn=function(f,R){if(!f.__unmounted&&R){f.__unmounted=!0;try{f.didUnmount()}catch(c){var u,O;(O=u4.handleError)==null||O.call.apply(O,[u4].concat(_.yq(HQ(c,(u=f.JSC$8269___type)==null?void 0:u.TAG_NAME))))}wv.didUnmount(f);f.el=null;R.__instance&&delete R.__instance}};
LY5=function(f,R,u){f._signalProps!=null&&f._disposeEffects==null&&((u===void 0?0:u)?f._disposeEffects=D1(function(){return void NJn(f,R)},u4.alwaysTrackContexts||!!Y$):NJn(f,R))};
NJn=function(f,R){_.zo(function(){for(var u=f._signalProps,O=f._signalValues,c=0;c<u.length;c++){var h=u[c],l=R[h]();O[c]!==l&&(O[c]=l,sy7(f,h,l))}},"e3YVbb")};
b0B=function(f,R,u){var O,c=[];f._disposeEffects=D1(function(){_.zo(function(){var h=u();if(h===null||h===void 0)h="";if(ZK(h)||h===null)O!=null||(O=document.createTextNode("")),O.parentNode!==f&&(O._isSignalTextNode=!0,f.insertBefore(O,R)),O.textContent=String(h);else if(h!=null&&h.contentKind===h1||h instanceof bh){for(var l=c.length>0?c[c.length-1].nextSibling:R,K=_.Z(c),q=K.next();!q.done;q=K.next())f.removeChild(q.value);h=f87(h);c=Array.from(h.childNodes);h=_.Z(c);for(K=h.next();!K.done;K=h.next())f.insertBefore(K.value,
l)}else throw q=(K=(l=Cc)==null?void 0:l.name)!=null?K:"unknown",Error("$b`"+q+"`"+typeof h);},"VvDgC")},u4.alwaysTrackContexts||!!Y$)};
DBX=function(f,R){var u=_.yK.apply(2,arguments);R!=null||(R={});return!u4.enableLazyTsx||Cc!=null&&!NK()?p5e(f,R,u):new jhl(f,R,u)};
p5e=function(f,R,u){if(f===_.RS)return u;if(typeof f==="function")return Cc&&!NK()&&(R.renderedFromIdom=!0),itB(f,function(){var h=Jre(f,R,u);if(h)return h;u.length>0&&(R.children=u.length===1?u[0]:u);if(f.componentType===dP){var l;fLl(function(){var K=R;if(f.componentType!==dP)l=!1;else{K||(K={});var q=new QM(K,f),F=XT(FM);try{var w=q.render(K)}finally{XT(F)}w instanceof HTMLElement?(w.__instance=q,q.el=w,q.JSC$8269___type=f,f.TAG_NAME=w.tagName.toLowerCase(),wv.didPatch(q),l=w):l=w}},f.name);
if(l)return l}return tVl(f,R)},R.debugInstance);
var O=zM5(f,R),c;for(c in R)sy7(O,c,R[c]);LY5(O,R);KQ(u,O);nMe(O,R,{isReactive:!0});TJq(O,R);return O};
zM5=function(f,R){f=(H0n.has(f.toLowerCase())?0:I82.has(f.startsWith("svg:")?f.replace("svg:",""):f))?document.createElementNS("http://www.w3.org/2000/svg",f.startsWith("svg:")?f.replace("svg:",""):f):MVn(f,R)||document.createElement(f);f[Pc7]=!0;return f};
UBq=function(f){if(f){var R;(R=f._disposeRef)==null||R.call(f);var u;(u=f._disposeEffects)==null||u.call(f);f.__instance&&f.__instance instanceof Wh&&(R=f.__instance,dBn(R,f),R instanceof QM&&R.disposeEffects());for(R=0;R<f.childNodes.length;R++)UBq(f.childNodes[R])}};
GLh=function(f){eM7.push(f)===1&&requestAnimationFrame(function(){setTimeout(function(){var R=[].concat(_.yq(eM7));eM7=[];R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;try{for(var O=0;O<u.length;O++)UBq(u[O])}catch(c){O=u=void 0,(O=(u=u4).handleError)==null||O.call.apply(O,[u].concat(_.yq(HQ(c))))}}})})};
_.a=function(f,R){return iBP.apply(null,[f,R].concat(_.yq(_.yK.apply(2,arguments))))};
oNX=function(){var f=document.body.firstElementChild;window.ng||f.__ngContext__||(f.__ngContext__={},f.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=BJh)};
_.Q=function(f){var R=f.cond;if(R===void 0)return f.else&&f.else();var u=_.Qt(function(){return!!R()},void 0,"JHVi8"),O=function(){var c=R();
if(!c){var h;(h=u4.handleError)==null||h.call.apply(h,[u4].concat(_.yq(HQ(xBn.nonNullableCondIsNull()))))}return c};
return k8(function(){var c=u(),h;D1(function(){var l=XT(FM);try{h=aS(c?f.then(O):f.else&&f.else())}finally{XT(l)}},!0);
return h},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
SWn=function(f){return _.Q(f)};
_.EC=function(f){return f.keyBy==="INDEX"?$Bn(f):gN7(f)};
sh0=function(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){var u=void 0;(u=R.value)==null||u()}};
gN7=function(f){var R=f.keyBy===void 0||f.keyBy==="REFERENCE",u=R?function(w){return w}:f.keyBy,O=[],c=[],h=[],l=[],K=[],q=[],F=!0;
_.jN(function(){sh0(l)});
return k8(function(){var w=f.each(),m=w.length;if(m===0){if(O.length===0&&!F)return h;sh0(l);O=w;c=[];for(w=0;w<O.length;w++)c.push(u(O[w]));h=[];l=[];K=[];q=[];f.fallback&&(l[0]=nN5(function(){h[0]=aS(f.fallback())}));
F=!1;return h}for(var W=new VVn,C=O.length-1;C>=0;C--)W.push(c[C],C);C=Array(m);for(var d=Array(m),p=Array(m),J=Array(m),M=Array(R?0:m),P={i$jscomp$486:0};P.i$jscomp$486<m;P={i$jscomp$486:P.i$jscomp$486,item$jscomp$103:void 0,key$jscomp$523:void 0},P.i$jscomp$486++){P.item$jscomp$103=w[P.i$jscomp$486];P.key$jscomp$523=u(P.item$jscomp$103);var g=W.pop(P.key$jscomp$523);g!=null?(p[P.i$jscomp$486]=h[g],d[P.i$jscomp$486]=c[g],C[P.i$jscomp$486]=l[g],J[P.i$jscomp$486]=K[g],R||(M[P.i$jscomp$486]=q[g]),WQ(function(x){return function(){J[x.i$jscomp$486](x.i$jscomp$486);
if(!R)M[x.i$jscomp$486](x.item$jscomp$103)}}(P)),delete l[g]):C[P.i$jscomp$486]=nN5(function(x){return function(){var fh=_.Z(_.qK(x.i$jscomp$486,void 0,"Fqk1zd")),V=fh.next().value;
fh=fh.next().value;J[x.i$jscomp$486]=fh;d[x.i$jscomp$486]=x.key$jscomp$523;if(R)p[x.i$jscomp$486]=aS(f.children(x.item$jscomp$103,V));else{var ZD=_.Z(_.qK(x.item$jscomp$103,void 0,"GBj5de"));fh=ZD.next().value;ZD=ZD.next().value;M[x.i$jscomp$486]=ZD;p[x.i$jscomp$486]=aS(f.children(fh,V))}}}(P))}sh0(l);
O=w;c=d;h=p;l=C;K=J;q=M;F=!1;return p},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
$Bn=function(f){var R=[],u=[],O=[],c=[],h=!1;_.jN(function(){for(var l=_.Z(c),K=l.next();!K.done;K=l.next())K=K.value,K()});
return k8(function(){var l=f.each();h&&l.length>0&&(c.pop()(),R.pop(),h=!1);for(var K=Array(l.length),q={i$jscomp$487:0};q.i$jscomp$487<l.length;q={i$jscomp$487:q.i$jscomp$487},q.i$jscomp$487++)if(q.i$jscomp$487<R.length)R[q.i$jscomp$487]!==l[q.i$jscomp$487]&&(WQ(function(w){return function(){return void u[w.i$jscomp$487](l[w.i$jscomp$487])}}(q)),R[q.i$jscomp$487]=l[q.i$jscomp$487]),K[q.i$jscomp$487]=O[q.i$jscomp$487];
else{var F=nN5(function(w){return function(){R[w.i$jscomp$487]=l[w.i$jscomp$487];var m=_.Z(_.qK(l[w.i$jscomp$487],void 0,"kGMqJe")),W=m.next().value;m=m.next().value;u[w.i$jscomp$487]=m;K[w.i$jscomp$487]=aS(f.children(W,w.i$jscomp$487))}}(q));
c[q.i$jscomp$487]=F}for(;R.length>l.length;)R.pop(),c.pop()(),u.pop();l.length===0&&!h&&f.fallback&&(q=nN5(function(){K[0]=aS(f.fallback())}),c[0]=q,h=!0);
return O=K},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
nN5=function(f){var R=Y$;return D1(function(u){var O=XT(FM);try{u.parent=R,f(u)}finally{XT(O)}},!1)};
_.t1=function(f){return f};
_.CQ=function(f){return{isDefault:!0,children:f.children}};
_.yM=function(f){var R=YW7(f),u=_.Qt(function(){return vNh(R)},void 0,"F1PF4");
return k8(function(){var O=u(),c;D1(function(){var h=XT(FM);try{c=aS(O())}finally{XT(h)}});
return c},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
YW7=function(f){f=f.children;return Array.isArray(f)?f:[f]};
i0q=function(f){var R=f.props;f=f.getChildren()[0];return R.when?{when:R.when,children:f}:{isDefault:!0,children:f}};
vNh=function(f){var R=function(){return null};
f=_.Z(f);for(var u=f.next();!u.done;u=f.next())if(u=u.value,u!=null&&u[fQ]&&(u=u.type===_.CQ?{isDefault:!0,children:u.children[0]}:{when:u.props.when,children:u.children[0]}),u instanceof A1&&(u=i0q(u)),u.isDefault)R=u.children;else if(u.when())return u.children;return R};
rr0=function(f){var R=null,u;return{value:null,onRender:function(O){if(u&&O!==u){var c;(c=R)==null||c();u._disposeRef=void 0}u=O;R=f(O)||null},
onUnmount:function(){var O;(O=R)==null||O();R=null}}};
Rhl=function(f){var R=yrn();if(R==null)throw fan.PRIMITIVE_INVALID_HOOK_CALL();var u=R.hookCounter++;R.hooks||(R.hooks=[]);var O=R.hooks;O[u]||(O[u]={key:f,host:R});if(f!==O[u].key){if(R.JSC$8269___type){var c;f=(c=R.JSC$8269___type)==null?void 0:c.name}else f=R instanceof QM?vxB(R.functionComponent):"<"+R.el.tagName.toLowerCase()+">";throw fan.OUT_OF_ORDER_HOOK_CALL(f);}return O[u]};
uP7=function(f,R){return!f||f.length!==(R==null?void 0:R.length)||f.some(function(u,O){return u!==R[O]})};
OTq=function(f,R){var u=Rhl("onChange"),O=yrn();uP7(u.deps,R)&&(u.deps=R,u.pendingEffect=f,O.__syncEffects||(O.__syncEffects=[]),O.__syncEffects.push(u))};
_.dv=function(f,R){var u=u===void 0?{enableDevtools:!1}:u;var O=u4.legacyTriggerSoyRendererEvents,c=u.appContext,h=b4(function(){var l=XT(FM);try{return D1(function(){var K=_.y1n(_.jF(f)),q;var F=e8e({rootElement:{value:f},appContext:c||(K==null?void 0:(q=K.getOptionalAppContext)==null?void 0:q.call(K)),dispatcher:K});K=r9(F);F=ut(!0);ty++;try{KQ(R(),f),Yb5(!1)}catch(w){throw Yb5(!0),w;}finally{ut(F),r9(K)}},!1)}catch(K){throw u4.enableContextBasedComponentStacks&&Lc(K),K;
}finally{XT(l)}});
f[cZP]=!0;O&&l8h(f,c);return function(){f.textContent="";h();f[cZP]=!1}};
_.NW=function(f){if(nxX(cQ)){var R;(R=u4.handleError)==null||R.call.apply(R,[u4].concat(_.yq(HQ(Error("Zb")))))}var u=Y$,O=Cc;Promise.resolve().then(function(){if(u&&!u.isDisposed){var c=r9(u);try{b4(function(){return void f()},O)}catch(h){throw u4.enableContextBasedComponentStacks&&Lc(h),h;
}finally{r9(c)}}})};
LQ=function(f,R){OTq(function(){return Kc(f)},R)};
_.bt=function(f){NK()?_.NW(function(){Kc(f)}):OTq(function(){return Kc(f)},[])};
hhq=function(f){var R=[].concat(_.yq(f));f.length=0;f=_.Z(R);for(R=f.next();!R.done;R=f.next()){R=R.value;XCP(R);var u=R.pendingEffect;R.pendingEffect=null;if(u=u==null?void 0:u())R.pendingCleanup=u}};
XCP=function(f){var R=f.pendingCleanup;f.pendingCleanup=null;R==null||R()};
ZTt=function(f,R){if(NK())return f();var u=Rhl("useMemoInternal");uP7(u.deps,R)&&(u.deps=R,u.value=f());return u.value};
laP=function(f,R){return ZTt(f,R)};
pQ=function(f){return ZTt(f,[])};
j0=function(f){return pQ(function(){return{value:f}})};
_.DK=function(f,R){if(!f)return null;f=Object.keys(f);f=_.Z(f);for(var u=f.next();!u.done;u=f.next()){u=u.value;var O=u.toLowerCase();if(O.indexOf(R,O.length-R.length)>-1)return u}return null};
_.zf=function(){var f=arguments,R=_.J1;f.length>1?R[f[0]]=f[1]:f.length===1&&Object.assign(R,f[0])};
_.Tf=function(f,R){return f in _.J1?_.J1[f]:R};
_.Hh=function(f,R){return!!_.Tf(f,R)};
kOX=function(f){var R=_.J1.EXPERIMENT_FLAGS;return R?R[f]:void 0};
qu2=function(f){KF7.forEach(function(R){return R(f)})};
_.MW=function(f){return f&&window.yterr?function(){try{return f.apply(this,arguments)}catch(R){_.IS(R)}}:f};
_.IS=function(f){var R=_.Ph("yt.logging.errors.log");R?R(f,"ERROR",void 0,void 0,void 0,void 0,void 0):(R=_.Tf("ERRORS",[]),R.push([f,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.zf("ERRORS",R));qu2(f)};
_.UC=function(f,R,u,O,c){var h=_.Ph("yt.logging.errors.log");h?h(f,"WARNING",R,u,O,void 0,c):(h=_.Tf("ERRORS",[]),h.push([f,"WARNING",R,u,O,void 0,c]),_.zf("ERRORS",h))};
aaB=function(f,R){R=f.split(R);for(var u={},O=0,c=R.length;O<c;O++){var h=R[O].split("=");if(h.length===1&&h[0]||h.length===2)try{var l=AZ0(h[0]||""),K=AZ0(h[1]||"");if(l in u){var q=u[l];Array.isArray(q)?_.uf(q,K):u[l]=[q,K]}else u[l]=K}catch(W){var F=W,w=h[0],m=String(aaB);F.args=[{key:w,value:h[1],query:f,method:FFX===m?"unchanged":m}];wCn.hasOwnProperty(w)||_.UC(F)}}return u};
m1t=function(f){var R=[];_.dq.forEach(f,function(u,O){var c=_.e0(O);_.Gf(Array.isArray(u)?u:[u],function(h){h==""?R.push(c):R.push(c+"="+_.e0(h))})});
return R.join("&")};
_.Bh=function(f){f.charAt(0)==="?"&&(f=f.substring(1));return aaB(f,"&")};
_.oS=function(f){return f.indexOf("?")!==-1?(f=(f||"").split("#")[0],f=f.split("?",2),_.Bh(f.length>1?f[1]:f[0])):{}};
_.x8=function(f,R){return QIP(f,R||{},!0)};
WFP=function(f,R){return QIP(f,R||{},!1)};
QIP=function(f,R,u){var O=f.split("#",2);f=O[0];O=O.length>1?"#"+O[1]:"";var c=f.split("?",2);f=c[0];c=_.Bh(c[1]||"");for(var h in R)if(u||!_.dq.containsKey(c,h))c[h]=R[h];return _.S0(f,c)+O};
nQ=function(f){if(!R)var R=window.location.href;var u=_.$8(f)[1]||null,O=_.gv(f);return u&&O?sC(f,R):O?_.gv(R)===O&&(Number(_.$8(R)[4]||null)||null)===(Number(_.$8(f)[4]||null)||null):!0};
_.t2n=function(f){f=EVq(f);return f===null?!1:f[0]==="com"&&f[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
EVq=function(f){f=_.gv(f);return f!==null?f.split(".").reverse():null};
AZ0=function(f){return f&&f.match(Cqn)?f:VM(f)};
_.Y8=function(f){return new yZn(f)};
_.vh=function(){d15||(d15=new Ne5);return d15};
bTe=function(f){var R=_.rv,u,O;_.k(function(c){u=_.vh();return(O=u.resolve(_.Y8(R)))?(f(O),c.return(Promise.resolve(O))):c.return(u.resolve(new LFX(R)).then(function(h){f(h);return h}))})};
_.E=function(f){f=ft(f);return typeof f==="string"&&f==="false"?!1:!!f};
_.RV=function(f,R){f=ft(f);return f===void 0&&R!==void 0?R:Number(f||0)};
pCq=function(f){f=ft(f);return Array.isArray(f)?_.L8(f,function(R){return Number(R||0)}):[Number(f||0)]};
_.uZ=function(f){f=ft(f);return f!==void 0?String(f):""};
_.Xt=function(f){f=ft(f);return Array.isArray(f)?_.L8(f,function(R){return String(R||"")}):[String(f||"")]};
jI2=function(){return _.Tf("EXPERIMENTS_TOKEN","")};
ft=function(f){return _.Tf("EXPERIMENT_FLAGS",{})[f]};
D1h=function(){for(var f=[],R=_.Tf("EXPERIMENTS_FORCED_FLAGS",{}),u=_.Z(Object.keys(R)),O=u.next();!O.done;O=u.next())O=O.value,f.push({key:O,value:String(R[O])});u=_.Tf("EXPERIMENT_FLAGS",{});O=_.Z(Object.keys(u));for(var c=O.next();!c.done;c=O.next())c=c.value,c.startsWith("force_")&&R[c]===void 0&&f.push({key:c,value:String(u[c])});return f};
zhn=function(){if(!JZ7)return null;var f=JZ7();return"open"in f?f:null};
_.Teq=function(f){switch(_.hs(f)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.hs=function(f){return f&&"status"in f?f.status:-1};
_.ZL=function(f,R){typeof f==="function"&&(f=_.MW(f));return window.setTimeout(f,R)};
_.lZ=function(f,R){typeof f==="function"&&(f=_.MW(f));return window.setInterval(f,R)};
_.kx=function(f){window.clearTimeout(f)};
Ia5=function(f){f=_.oS(f);for(var R=_.Z(HT0),u=R.next();!u.done;u=R.next())if(f[u.value]!==void 0)return!0;return!1};
U1X=function(f,R,u,O,c,h,l,K){u=u===void 0?"GET":u;O=O===void 0?"":O;K=K===void 0?!1:K;var q=zhn();if(!q)return null;var F=function(){(q&&"readyState"in q?q.readyState:0)===4&&R&&_.MW(R)(q)};
"onloadend"in q?q.addEventListener("loadend",F,!1):q.onreadystatechange=F;_.E("debug_forward_web_query_parameters")&&(f=M2P(f,window.location.search));q.open(u,f,!0);h&&(q.responseType=h);l&&(q.withCredentials=!0);u=u==="POST"&&(window.FormData===void 0||!(O instanceof FormData));if(c=Pqn(f,c))for(var w in c)q.setRequestHeader(w,c[w]),"content-type"===w.toLowerCase()&&(u=!1);u&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(K&&"setAttributionReporting"in XMLHttpRequest.prototype){f=
{eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(f)}catch(m){_.UC(m)}}q.send(O);return q};
Pqn=function(f,R){R=R===void 0?{}:R;var u=nQ(f),O=_.Tf("INNERTUBE_CLIENT_NAME"),c=_.E("web_ajax_ignore_global_headers_if_set"),h;for(h in ehX){var l=_.Tf(ehX[h]),K=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||l||(l=_.Tf("VISITOR_DATA"));var q;if(!(q=!l)){if(!(q=u||(_.gv(f)?!1:!0))){q=f;var F;if(F=_.E("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(O==="TVHTML5"||O==="TVHTML5_UNPLUGGED"||O==="TVHTML5_SIMPLY"))F=EVq(q),F=F===null?!1:F[1]==="google"?
!0:F[2]==="google"?F[0]==="au"&&F[1]==="com"?!0:F[0]==="uk"&&F[1]==="co"?!0:!1:!1;F&&(q=_.Kt(q)||"",q=q.split("/"),q="/"+(q.length>1?q[1]:""),F=q==="/pagead");q=F?!0:!1}q=!q}q||c&&R[h]!==void 0||O==="TVHTML5_UNPLUGGED"&&K||(R[h]=l)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];if(u||!_.gv(f))R["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(u||!_.gv(f)){try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}w&&(R["X-YouTube-Time-Zone"]=
w)}document.location.hostname.endsWith("youtubeeducation.com")||!u&&_.gv(f)||(R["X-YouTube-Ad-Signals"]=m1t(GOq()));return R};
_.BeP=function(f,R){var u=_.gv(f);_.E("debug_handle_relative_url_for_query_forward_killswitch")||!u&&nQ(f)&&(u=document.location.hostname);var O=_.Kt(f);O=(u=u&&(u.endsWith("youtube.com")||u.endsWith("youtube-nocookie.com")))&&O&&O.startsWith("/api/");if(!u||O)return f;var c=_.Bh(R),h={};_.Gf(HT0,function(l){c[l]&&(h[l]=c[l])});
return WFP(f,h)};
oV5=function(f,R){R.method="POST";R.postParams||(R.postParams={});return _.qv(f,R)};
x1t=function(f,R){var u=_.Tf("XSRF_FIELD_NAME"),O;R.headers&&(O=R.headers["Content-Type"]);return!R.excludeXsrf&&(!_.gv(f)||R.withCredentials||_.gv(f)===document.location.hostname)&&R.method==="POST"&&(!O||O==="application/x-www-form-urlencoded")&&!(R.postParams&&R.postParams[u])};
_.qv=function(f,R){var u=R.format||"JSON";f=SuB(f,R);var O=$17(f,R),c=!1,h=gVn(f,function(q){if(!c){c=!0;K&&_.kx(K);var F=_.Teq(q),w=null,m=400<=q.status&&q.status<500,W=500<=q.status&&q.status<600;if(F||m||W)w=sIl(f,u,q,R.convertToSafeHtml);F&&(F=nV7(u,q,w));w=w||{};m=R.context||_.Oe;F?R.onSuccess&&R.onSuccess.call(m,q,w):R.onError&&R.onError.call(m,q,w);R.onFinish&&R.onFinish.call(m,q,w)}},R.method,O,R.headers,R.responseType,R.withCredentials);
O=R.timeout||0;if(R.onTimeout&&O>0){var l=R.onTimeout;var K=_.ZL(function(){c||(c=!0,h.abort(),_.kx(K),l.call(R.context||_.Oe,h))},O)}return h};
SuB=function(f,R){R.includeDomain&&(f=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+f);var u=_.Tf("XSRF_FIELD_NAME");if(R=R.urlParams)R[u]&&delete R[u],f=_.x8(f,R);return f};
$17=function(f,R){var u=_.Tf("XSRF_FIELD_NAME"),O=_.Tf("XSRF_TOKEN"),c=R.postBody||"",h=R.postParams;x1t(f,R)&&(h||(h={}),h[u]=O);(_.E("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof c==="string"&&(c=_.Bh(c),_.dq.extend(c,h),c=R.postBodyFormat&&R.postBodyFormat==="JSON"?JSON.stringify(c):_.As(c));h=c||h&&!_.dq.isEmpty(h);!V2B&&h&&R.method!=="POST"&&(V2B=!0,_.IS(Error("Ec")));return c};
sIl=function(f,R,u,O){var c=null;switch(R){case "JSON":try{var h=u.responseText}catch(l){throw O=Error("Fc"),O.params=f,_.UC(O),l;}f=u.getResponseHeader("Content-Type")||"";h&&f.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),c=JSON.parse(h));break;case "XML":if(f=(f=u.responseXML)?Yun(f):null)c={},_.Gf(f.getElementsByTagName("*"),function(l){c[l.tagName]=vV5(l)})}O&&iTB(c);
return c};
iTB=function(f){if(_.OE(f))for(var R in f)R==="html_content"||lB(R,"_html")?f[R]=pj(f[R]):iTB(f[R])};
nV7=function(f,R,u){if(R&&R.status===204)return!0;switch(f){case "JSON":return!!u;case "XML":return Number(u&&u.return_code)===0;case "RAW":return!0;default:return!!u}};
Yun=function(f){return f?(f=("responseXML"in f?f.responseXML:f).getElementsByTagName("root"))&&f.length>0?f[0]:null:null};
vV5=function(f){var R="";_.Gf(f.childNodes,function(u){R+=u.nodeValue});
return R};
rZn=function(f){if(f.name==="JavaException")return!0;f=f.stack;return f.includes("chrome://")||f.includes("-extension://")||f.includes("webkit-masked-url://")};
fvn=function(f){if(!f.stack)return!0;var R=!f.stack.includes("\n");return R&&f.stack.includes("ErrorType: ")||R&&f.stack.includes("Anonymous function (Unknown script")||f.stack.toLowerCase()==="not available"||f.fileName==="user-script"||f.fileName.startsWith("user-script:")?!0:!1};
_.aV=function(f){_.d9.call(this);this.JSC$8440_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!f};
uO5=function(f,R){var u=f.length,O=0,c=function(){return f.charCodeAt(O++)};
do{var h=RaP(c);if(h===Infinity)break;var l=h>>3;switch(h&7){case 0:h=RaP(c);if(l===R)return h;break;case 1:if(l===R)return;O+=8;break;case 2:h=RaP(c);if(l===R)return f.substr(O,h);O+=h;break;case 5:if(l===R)return;O+=4;break;default:return}}while(O<u)};
RaP=function(f){var R=f(),u=R&127;if(R<128)return u;R=f();u|=(R&127)<<7;if(R<128)return u;R=f();u|=(R&127)<<14;if(R<128)return u;R=f();return R<128?u|(R&127)<<21:Infinity};
cjB=function(f,R,u,O){if(f)if(Array.isArray(f)){var c=O;for(O=0;O<f.length&&!(f[O]&&(c+=Oah(O,f[O],R,u),c>500));O++);O=c}else if(typeof f==="object")for(c in f){if(f[c]){var h=c;var l=f[c],K=R,q=u;h=typeof l!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(l=uO5(atob(l.replace(/-/g,"+").replace(/_/g,"/")),2))?Oah(h+".ve",l,K,q):0;O+=h;O+=Oah(c,f[c],R,u);if(O>500)break}}else u[R]=Ft(f),O+=u[R].length;else u[R]=Ft(f),O+=u[R].length;return O};
Oah=function(f,R,u,O){u+="."+f;f=Ft(R);O[u]=f;return u.length+f.length};
Ft=function(f){try{return(typeof f==="string"?f:String(JSON.stringify(f))).substr(0,500)}catch(R){return"unable to serialize "+typeof f+" ("+R.message+")"}};
Xcl=function(f){switch(f){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}};
_.m$=function(f,R,u,O,c){_.wU.set(f,R,{maxAge:u,path:"/",domain:O===void 0?"youtube.com":O,secure:c===void 0?!1:c})};
_.hae=function(f,R,u){_.wU.remove(f,R===void 0?"/":R,u===void 0?"youtube.com":u)};
_.Q4=function(){if(_.E("embeds_web_enable_cookie_detection_fix")){if(!_.Oe.navigator.cookieEnabled)return!1}else if(!_.wU.isEnabled())return!1;if(!_.wU.isEmpty())return!0;_.E("embeds_web_enable_cookie_detection_fix")?_.wU.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.wU.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.wU.get("TESTCOOKIESENABLED")!=="1")return!1;_.wU.remove("TESTCOOKIESENABLED");return!0};
Za7=function(){var f=_.Oe.navigator;return f?f.connection:void 0};
lve=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}};
_.Ka5=function(){var f=Za7();if(f){var R=k45[f.type||"unknown"]||"CONN_UNKNOWN";f=k45[f.effectiveType||"unknown"]||"CONN_UNKNOWN";R==="CONN_CELLULAR_UNKNOWN"&&f!=="CONN_UNKNOWN"&&(R=f);if(R!=="CONN_UNKNOWN")return R;if(f!=="CONN_UNKNOWN")return f}};
Ajl=function(){var f=Za7();if(f!=null&&f.effectiveType)return qm2.hasOwnProperty(f.effectiveType)?qm2[f.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Eb=function(){try{return _.Wf(),!0}catch(f){return!1}};
_.Wf=function(f){if(_.Tf("DATASYNC_ID")!==void 0)return _.Tf("DATASYNC_ID");throw new _.ts("Datasync ID not set",f===void 0?"unknown":f);};
_.y4=function(f){this.mechanism=f};
dU=function(f){this.mechanism=f};
Nv=function(f){this.storage_=f;this.cachedIsStorageAvailable_=null};
av0=function(){var f=null;try{f=_.Oe.localStorage||null}catch(R){}Nv.call(this,f)};
Fal=function(){var f=null;try{f=_.Oe.sessionStorage||null}catch(R){}Nv.call(this,f)};
Lt=function(f,R){this.mechanism_=f;this.JSC$8542_prefix_=R+"::"};
_.wc7=function(f){var R=new av0;return R.isAvailable()?f?new Lt(R,f):R:null};
_.ms0=function(f){var R=new Fal;return R.isAvailable()?f?new Lt(R,f):R:null};
Wae=function(){var f;return(f=Q$5())==null?void 0:f.get("LAST_RESULT_ENTRY_KEY",!0)};
_.jh=function(f){E77||(_.bZ?_.bZ.logError(f):(_.pt.push({type:"ERROR",payload:f}),_.pt.length>10&&_.pt.shift()))};
DL=function(f,R){E77||(_.bZ?_.bZ.logEvent(f,R):(_.pt.push({type:"EVENT",eventType:f,payload:R}),_.pt.length>10&&_.pt.shift()))};
Js=function(f){if(f.indexOf(":")>=0)throw Error("Mc");};
zA=function(f){return f.substr(0,f.indexOf(":"))||f};
yj2=function(){return(td2||CEl)&&TA("applewebkit")&&!TA("version")&&(!TA("safari")||TA("gsa/"))};
TA=function(f){var R=_.Q2();return R?R.toLowerCase().indexOf(f)>=0:!1};
LaB=function(f,R,u,O){R=zA(R);var c=f instanceof Error?f:Error("Nc`"+f);if(c instanceof Hf)return c;f={objectStoreNames:u,dbName:R,dbVersion:O};if(c.name==="QuotaExceededError")return new Hf("QUOTA_EXCEEDED",f);if(_.IV&&c.name==="UnknownError")return new Hf("QUOTA_MAYBE_EXCEEDED",f);if(c instanceof ds2)return new Hf("MISSING_INDEX",Object.assign({},f,{objectStore:c.objectStore,index:c.index}));if(c.name==="InvalidStateError"&&Nu7.some(function(h){return c.message.includes(h)}))return new Hf("EXECUTE_TRANSACTION_ON_CLOSED_DB",
f);
if(c.name==="AbortError")return new Hf("UNKNOWN_ABORT",f,c.message);c.args=[Object.assign({},f,{name:"IdbError",originalName:c.name})];c.level="WARNING";return c};
Mv=function(f,R,u){var O=Wae();return new Hf("IDB_NOT_SUPPORTED",{context:{caller:f,publicName:R,version:u,hasSucceededOnce:O==null?void 0:O.hasSucceededOnce}})};
baP=function(f){if(!f)throw Error();throw f;};
pc7=function(f){return f};
j$B=function(f,R,u){var O=function(){try{f.removeEventListener("success",c),f.removeEventListener("error",h)}catch(l){}},c=function(){R(f.result);
O()},h=function(){u(f.error);
O()};
f.addEventListener("success",c);f.addEventListener("error",h)};
Ds2=function(f){return new Promise(function(R,u){j$B(f,R,u)})};
eh=function(f){return new Pf(new Ub(function(R,u){j$B(f,R,u)}))};
Jj5=function(f,R){return new Pf(new Ub(function(u,O){var c=function(){var h=f?R(f):null;h?h.then(function(l){f=l;c()},O):u()};
c()}))};
TuD=function(f,R,u){return new Promise(function(O,c){var h=R!==void 0?self.indexedDB.open(f,R):self.indexedDB.open(f);var l=u.blocked,K=u.blocking,q=u.terminated,F=u.upgrade,w=u.closed,m,W=function(){m||(m=new GA(h.result,{closed:w}));return m};
h.addEventListener("upgradeneeded",function(C){try{if(C.newVersion===null)throw Error("Sc");if(h.transaction===null)throw Error("Tc");C.dataLoss&&C.dataLoss!=="none"&&DL("IDB_DATA_CORRUPTED",{reason:C.dataLossMessage||"unknown reason",dbName:zA(f)});var d=W(),p=new zan(h.transaction);F&&F(d,function(J){return C.oldVersion<J&&C.newVersion>=J},p);
p.done.catch(function(J){c(J)})}catch(J){c(J)}});
h.addEventListener("success",function(){var C=h.result;K&&C.addEventListener("versionchange",function(){K(W())});
C.addEventListener("close",function(){DL("IDB_UNEXPECTEDLY_CLOSED",{dbName:zA(f),dbVersion:C.version});q&&q()});
O(W())});
h.addEventListener("error",function(){c(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
HaB=function(f,R,u){u=u===void 0?{}:u;return TuD(f,R,u)};
_.oV=function(f,R){R=R===void 0?{}:R;var u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return _.cl(l,2),u=self.indexedDB.deleteDatabase(f),O=R,(c=O.blocked)&&u.addEventListener("blocked",function(){c()}),_.A(l,Ds2(u),4);
if(l.nextAddress!=2)return _.Bf(l,0);h=_.ku(l);throw LaB(h,f,"",-1);})};
Md2=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.xx(Ivn,R),2);u=O.yieldResult;return O.return(_.Sh(u,["databases"],{enableRetries:!0,mode:"readwrite"},function(c){var h=c.objectStore("databases");return h.get(f.actualName).then(function(l){if(l?f.actualName!==l.actualName||f.publicName!==l.publicName||f.userIdentifier!==l.userIdentifier:1)return h.put(f).then(function(){})})}))})};
_.$x=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1)return f?_.A(O,_.xx(Ivn,R),2):O.return();u=O.yieldResult;return O.return(u.delete("databases",f))})};
_.PEh=function(f,R){var u,O;return _.k(function(c){return c.nextAddress==1?(u=[],_.A(c,_.xx(Ivn,R),2)):c.nextAddress!=3?(O=c.yieldResult,_.A(c,_.Sh(O,["databases"],{enableRetries:!0,mode:"readonly"},function(h){u.length=0;return gU(h.objectStore("databases"),{},function(l){f(l.getValue())&&u.push(l.getValue());return l.continue()})}),3)):c.return(u)})};
UsP=function(f,R){return _.PEh(function(u){return u.publicName===f&&u.userIdentifier!==void 0},R)};
Bu2=function(){var f,R,u,O;return _.k(function(c){switch(c.nextAddress){case 1:f=Wae();if((R=f)==null?0:R.hasSucceededOnce)return c.return(!0);var h;if(h=eat)h=/WebKit\/([0-9]+)/.exec(_.Q2()),h=!!(h&&parseInt(h[1],10)>=600);h&&(h=/WebKit\/([0-9]+)/.exec(_.Q2()),h=!(h&&parseInt(h[1],10)>=602));if(h||sb)return c.return(!1);try{if(u=self,!(u.indexedDB&&u.IDBIndex&&u.IDBKeyRange&&u.IDBObjectStore))return c.return(!1)}catch(l){return c.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return c.return(!1);
_.cl(c,2);O={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.A(c,Md2(O,G4P),4);case 4:return _.A(c,_.$x("yt-idb-test-do-not-use",G4P),5);case 5:return c.return(!0);case 2:return _.ku(c),c.return(!1)}})};
xsn=function(){if(o7n!==void 0)return o7n;E77=!0;return o7n=Bu2().then(function(f){E77=!1;var R;if((R=Q$5())!=null&&R.expiringStorage_){var u;R={hasSucceededOnce:((u=Wae())==null?void 0:u.hasSucceededOnce)||f};var O;(O=Q$5())==null||O.set("LAST_RESULT_ENTRY_KEY",R,2592E3,!0)}return f})};
nt=function(){return _.Ph("ytglobal.idbToken_")||void 0};
_.Yx=function(){var f=nt();return f?Promise.resolve(f):xsn().then(function(R){(R=R?G4P:void 0)&&_.V4("ytglobal.idbToken_",R);return R})};
Sml=function(f){if(!_.Eb())throw f=new Hf("AUTH_INVALID",{dbName:f}),_.jh(f),f;var R=_.Wf();return{actualName:f+":"+R,publicName:f,userIdentifier:R}};
$s7=function(f,R,u,O){var c,h,l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:return h=(c=Error().stack)!=null?c:"",_.A(w,_.Yx(),2);case 2:l=w.yieldResult;if(!l)throw K=Mv("openDbImpl",f,R),_.E("ytidb_async_stack_killswitch")||(K.stack=K.stack+"\n"+h.substring(h.indexOf("\n")+1)),_.jh(K),K;Js(f);q=u?{actualName:f,publicName:f,userIdentifier:void 0}:Sml(f);_.cl(w,3);return _.A(w,Md2(q,l),5);case 5:return _.A(w,HaB(q.actualName,R,O),6);case 6:return w.return(w.yieldResult);case 3:return F=
_.ku(w),_.cl(w,7),_.A(w,_.$x(q.actualName,l),9);case 9:_.Bf(w,8);break;case 7:_.ku(w);case 8:throw F;}})};
g7B=function(f,R,u){u=u===void 0?{}:u;return $s7(f,R,!1,u)};
s$5=function(f,R,u){u=u===void 0?{}:u;return $s7(f,R,!0,u)};
n7P=function(f,R){R=R===void 0?{}:R;var u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,_.Yx(),2);if(c.nextAddress!=3){u=c.yieldResult;if(!u)return c.return();Js(f);O=Sml(f);return _.A(c,_.oV(O.actualName,R),3)}return _.A(c,_.$x(O.actualName,u),0)})};
Vdh=function(f,R,u){f=f.map(function(O){return _.k(function(c){return c.nextAddress==1?_.A(c,_.oV(O.actualName,R),2):_.A(c,_.$x(O.actualName,u),0)})});
return Promise.all(f).then(function(){})};
Ym7=function(f){var R=R===void 0?{}:R;var u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,_.Yx(),2);if(c.nextAddress!=3){u=c.yieldResult;if(!u)return c.return();Js(f);return _.A(c,UsP(f,u),3)}O=c.yieldResult;return _.A(c,Vdh(O,R,u),0)})};
v7t=function(f,R){R=R===void 0?{}:R;var u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.Yx(),2);if(O.nextAddress!=3){u=O.yieldResult;if(!u)return O.return();Js(f);return _.A(O,_.oV(f,R),3)}return _.A(O,_.$x(f,u),0)})};
vf=function(f,R){return ia7(f,R)};
fWl=function(f){return _.xx(rj2(),f)};
R4X=function(f,R,u,O){var c,h,l;return _.k(function(K){switch(K.nextAddress){case 1:return c={config:f,hashData:R,timestamp:O!==void 0?O:(0,_.iZ)()},_.A(K,fWl(u),2);case 2:return h=K.yieldResult,_.A(K,h.clear("hotConfigStore"),3);case 3:return _.A(K,h.put("hotConfigStore",c),4);case 4:return l=K.yieldResult,K.return(l)}})};
uat=function(f,R,u,O,c){var h,l,K;return _.k(function(q){switch(q.nextAddress){case 1:return h={config:f,hashData:R,configData:u,timestamp:c!==void 0?c:(0,_.iZ)()},_.A(q,fWl(O),2);case 2:return l=q.yieldResult,_.A(q,l.clear("coldConfigStore"),3);case 3:return _.A(q,l.put("coldConfigStore",h),4);case 4:return K=q.yieldResult,q.return(K)}})};
Ov2=function(f){var R,u;return _.k(function(O){return O.nextAddress==1?_.A(O,fWl(f),2):O.nextAddress!=3?(R=O.yieldResult,u=void 0,_.A(O,_.Sh(R,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(c){return _.rU(c.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){u=h.getValue()})}),3)):O.return(u)})};
cH2=function(f){var R,u;return _.k(function(O){return O.nextAddress==1?_.A(O,fWl(f),2):O.nextAddress!=3?(R=O.yieldResult,u=void 0,_.A(O,_.Sh(R,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(c){return _.rU(c.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){u=h.getValue()})}),3)):O.return(u)})};
X_P=function(){return _.k(function(f){return _.A(f,Ym7("ytGcfConfig"),0)})};
h42=function(){return"INNERTUBE_API_KEY"in _.J1&&"INNERTUBE_API_VERSION"in _.J1};
_.fB=function(){return{innertubeApiKey:_.Tf("INNERTUBE_API_KEY"),innertubeApiVersion:_.Tf("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Tf("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Tf("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Tf("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Tf("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Tf("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Hh("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Hh("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Tf("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.aW7=function(f){var R={client:{hl:f.innertubeContextHostLanguage,gl:f.innertubeContextGeoLocation,clientName:f.innertubeContextClientName,clientVersion:f.innertubeContextClientVersion,configInfo:f.innertubeContextClientConfigInfo}};navigator.userAgent&&(R.client.userAgent=String(navigator.userAgent));var u=_.Oe.devicePixelRatio;u&&u!=1&&(R.client.screenDensityFloat=String(u));u=jI2();u!==""&&(R.client.experimentsToken=u);u=D1h();u.length>0&&(R.request={internalExperimentFlags:u});Zvn(f,void 0,R);
lWh(void 0,R);kTq(void 0,R);Kxt(f,void 0,R);qJ5(void 0,R);_.E("start_client_gcf")&&AHP(void 0,R);_.Tf("DELEGATED_SESSION_ID")&&!_.E("pageid_as_header_web")&&(R.user={onBehalfOfUser:_.Tf("DELEGATED_SESSION_ID")});!_.E("fill_delegate_context_in_gel_killswitch")&&(f=_.Tf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R.user=Object.assign({},R.user,{serializedDelegationContext:f}));f=_.Tf("INNERTUBE_CONTEXT");var O;if(_.E("enable_persistent_device_token")&&(f==null?0:(O=f.client)==null?0:O.rolloutToken)){var c;
R.client.rolloutToken=f==null?void 0:(c=f.client)==null?void 0:c.rolloutToken}O=Object;c=O.assign;f=R.client;u={};for(var h=_.Z(Object.entries(_.Bh(_.Tf("DEVICE","")))),l=h.next();!l.done;l=h.next()){var K=_.Z(l.value);l=K.next().value;K=K.next().value;l==="cbrand"?u.deviceMake=K:l==="cmodel"?u.deviceModel=K:l==="cbr"?u.browserName=K:l==="cbrver"?u.browserVersion=K:l==="cos"?u.osName=K:l==="cosver"?u.osVersion=K:l==="cplatform"&&(u.platform=K)}R.client=c.call(O,f,u);return R};
Zvn=function(f,R,u){f=f.innertubeContextClientName;if(f==="WEB"||f==="MWEB"||f===1||f===2)if(R){u=_.Ry(R,FxD,96)||new FxD;var O=w_l();O=Object.keys(m52).indexOf(O);O=O===-1?null:O;O!==null&&_.uO(u,3,O);_.OO(R,96,u)}else u&&(u.client.mainAppWebInfo=(O=u.client.mainAppWebInfo)!=null?O:{},u.client.mainAppWebInfo.webDisplayMode=w_l())};
lWh=function(f,R){var u=_.Ph("yt.embedded_player.embed_url");u&&(f?(R=_.Ry(f,Qpt,7)||new Qpt,_.FH(R,4,u),_.OO(f,7,R)):R&&(R.thirdParty={embedUrl:u}))};
kTq=function(f,R){var u;if(_.E("web_log_memory_total_kbytes")&&((u=_.Oe.navigator)==null?0:u.deviceMemory)){var O;u=(O=_.Oe.navigator)==null?void 0:O.deviceMemory;f?_.OL(f,95,zX(u*1E6)):R&&(R.client.memoryTotalKbytes=""+u*1E6)}};
Kxt=function(f,R,u){if(f.appInstallData)if(R){var O;u=(O=_.Ry(R,cR,62))!=null?O:new cR;_.FH(u,6,f.appInstallData);_.OO(R,62,u)}else u&&(u.client.configInfo=u.client.configInfo||{},u.client.configInfo.appInstallData=f.appInstallData)};
qJ5=function(f,R){var u=_.Ka5();u&&(f?_.uO(f,61,Wxn[u]):R&&(R.client.connectionType=u));_.E("web_log_effective_connection_type")&&(u=Ajl())&&(f?_.uO(f,94,EE0[u]):R&&(R.client.effectiveConnectionType=u))};
_.yH7=function(f,R,u){u=u===void 0?{}:u;var O={};_.Tf("EOM_VISITOR_DATA")?O={"X-Goog-EOM-Visitor-Id":_.Tf("EOM_VISITOR_DATA")}:O={"X-Goog-Visitor-Id":u.visitorData||_.Tf("VISITOR_DATA","")};if(R&&R.includes("www.youtube-nocookie.com"))return O;R=u.authorization||_.Tf("AUTHORIZATION");R||(f?R="Bearer "+_.Ph("gapi.auth.getToken")().access_token:(ta7.instance||(ta7.instance=new ta7),f=ClD(),_.E("pageid_as_header_web")||delete f["X-Goog-PageId"],O=Object.assign({},O,f)));R&&(O.Authorization=R);return O};
AHP=function(f,R){var u=d5e();if(u){var O=u.coldConfigData,c=u.coldHashData;u=u.hotHashData;if(f){var h;R=(h=_.Ry(f,cR,62))!=null?h:new cR;O=_.FH(R,1,O);_.FH(O,3,c).setHotHashData(u);_.OO(f,62,R)}else R&&(R.client.configInfo=R.client.configInfo||{},O&&(R.client.configInfo.coldConfigData=O),c&&(R.client.configInfo.coldHashData=c),u&&(R.client.configInfo.hotHashData=u))}};
XN=function(f){for(var R=f.length;--R>=0;)f[R]=0};
NA5=function(f,R,u,O,c){this.static_tree=f;this.extra_bits=R;this.extra_base=u;this.elems=O;this.max_length=c;this.has_stree=f&&f.length};
LxX=function(f,R){this.dyn_tree=f;this.max_code=0;this.stat_desc=R};
hA=function(f,R){f.pending_buf[f.pending++]=R&255;f.pending_buf[f.pending++]=R>>>8&255};
Z9=function(f,R,u){f.bi_valid>16-u?(f.bi_buf|=R<<f.bi_valid&65535,hA(f,f.bi_buf),f.bi_buf=R>>16-f.bi_valid,f.bi_valid+=u-16):(f.bi_buf|=R<<f.bi_valid&65535,f.bi_valid+=u)};
lO=function(f,R,u){Z9(f,u[R*2],u[R*2+1])};
bv2=function(f,R){var u=0;do u|=f&1,f>>>=1,u<<=1;while(--R>0);return u>>>1};
p_7=function(f,R,u){var O=Array(16),c=0,h;for(h=1;h<=15;h++)O[h]=c=c+u[h-1]<<1;for(u=0;u<=R;u++)c=f[u*2+1],c!==0&&(f[u*2]=bv2(O[c]++,c))};
jpn=function(f){var R;for(R=0;R<286;R++)f.dyn_ltree[R*2]=0;for(R=0;R<30;R++)f.dyn_dtree[R*2]=0;for(R=0;R<19;R++)f.bl_tree[R*2]=0;f.dyn_ltree[512]=1;f.opt_len=f.static_len=0;f.last_lit=f.matches=0};
D5t=function(f){f.bi_valid>8?hA(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf);f.bi_buf=0;f.bi_valid=0};
JH7=function(f,R,u){D5t(f);hA(f,u);hA(f,~u);qx.arraySet(f.pending_buf,f.window,R,u,f.pending);f.pending+=u};
z4e=function(f,R,u,O){var c=R*2,h=u*2;return f[c]<f[h]||f[c]===f[h]&&O[R]<=O[u]};
TAD=function(f,R,u){for(var O=f.heap[u],c=u<<1;c<=f.heap_len;){c<f.heap_len&&z4e(R,f.heap[c+1],f.heap[c],f.depth)&&c++;if(z4e(R,O,f.heap[c],f.depth))break;f.heap[u]=f.heap[c];u=c;c<<=1}f.heap[u]=O};
U50=function(f,R,u){var O=0;if(f.last_lit!==0){do{var c=f.pending_buf[f.d_buf+O*2]<<8|f.pending_buf[f.d_buf+O*2+1];var h=f.pending_buf[f.l_buf+O];O++;if(c===0)lO(f,h,R);else{var l=ay[h];lO(f,l+256+1,R);var K=HvD[l];K!==0&&(h-=IWD[l],Z9(f,h,K));c--;l=c<256?FN[c]:FN[256+(c>>>7)];lO(f,l,u);K=Mae[l];K!==0&&(c-=Plq[l],Z9(f,c,K))}}while(O<f.last_lit)}lO(f,256,R)};
e4e=function(f,R){var u=R.dyn_tree,O=R.stat_desc.static_tree,c=R.stat_desc.has_stree,h=R.stat_desc.elems,l,K=-1;f.heap_len=0;f.heap_max=573;for(l=0;l<h;l++)u[l*2]!==0?(f.heap[++f.heap_len]=K=l,f.depth[l]=0):u[l*2+1]=0;for(;f.heap_len<2;){var q=f.heap[++f.heap_len]=K<2?++K:0;u[q*2]=1;f.depth[q]=0;f.opt_len--;c&&(f.static_len-=O[q*2+1])}R.max_code=K;for(l=f.heap_len>>1;l>=1;l--)TAD(f,u,l);q=h;do l=f.heap[1],f.heap[1]=f.heap[f.heap_len--],TAD(f,u,1),O=f.heap[1],f.heap[--f.heap_max]=l,f.heap[--f.heap_max]=
O,u[q*2]=u[l*2]+u[O*2],f.depth[q]=(f.depth[l]>=f.depth[O]?f.depth[l]:f.depth[O])+1,u[l*2+1]=u[O*2+1]=q,f.heap[1]=q++,TAD(f,u,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1];l=R.dyn_tree;q=R.max_code;O=R.stat_desc.static_tree;c=R.stat_desc.has_stree;h=R.stat_desc.extra_bits;var F=R.stat_desc.extra_base,w=R.stat_desc.max_length,m,W=0;for(m=0;m<=15;m++)f.bl_count[m]=0;l[f.heap[f.heap_max]*2+1]=0;for(R=f.heap_max+1;R<573;R++){var C=f.heap[R];m=l[l[C*2+1]*2+1]+1;m>w&&(m=w,W++);l[C*2+1]=m;if(!(C>
q)){f.bl_count[m]++;var d=0;C>=F&&(d=h[C-F]);var p=l[C*2];f.opt_len+=p*(m+d);c&&(f.static_len+=p*(O[C*2+1]+d))}}if(W!==0){do{for(m=w-1;f.bl_count[m]===0;)m--;f.bl_count[m]--;f.bl_count[m+1]+=2;f.bl_count[w]--;W-=2}while(W>0);for(m=w;m!==0;m--)for(C=f.bl_count[m];C!==0;)O=f.heap[--R],O>q||(l[O*2+1]!==m&&(f.opt_len+=(m-l[O*2+1])*l[O*2],l[O*2+1]=m),C--)}p_7(u,K,f.bl_count)};
GTP=function(f,R,u){var O,c=-1,h=R[1],l=0,K=7,q=4;h===0&&(K=138,q=3);R[(u+1)*2+1]=65535;for(O=0;O<=u;O++){var F=h;h=R[(O+1)*2+1];++l<K&&F===h||(l<q?f.bl_tree[F*2]+=l:F!==0?(F!==c&&f.bl_tree[F*2]++,f.bl_tree[32]++):l<=10?f.bl_tree[34]++:f.bl_tree[36]++,l=0,c=F,h===0?(K=138,q=3):F===h?(K=6,q=3):(K=7,q=4))}};
BAt=function(f,R,u){var O,c=-1,h=R[1],l=0,K=7,q=4;h===0&&(K=138,q=3);for(O=0;O<=u;O++){var F=h;h=R[(O+1)*2+1];if(!(++l<K&&F===h)){if(l<q){do lO(f,F,f.bl_tree);while(--l!==0)}else F!==0?(F!==c&&(lO(f,F,f.bl_tree),l--),lO(f,16,f.bl_tree),Z9(f,l-3,2)):l<=10?(lO(f,17,f.bl_tree),Z9(f,l-3,3)):(lO(f,18,f.bl_tree),Z9(f,l-11,7));l=0;c=F;h===0?(K=138,q=3):F===h?(K=6,q=3):(K=7,q=4)}}};
oEn=function(f){var R=4093624447,u;for(u=0;u<=31;u++,R>>>=1)if(R&1&&f.dyn_ltree[u*2]!==0)return 0;if(f.dyn_ltree[18]!==0||f.dyn_ltree[20]!==0||f.dyn_ltree[26]!==0)return 1;for(u=32;u<256;u++)if(f.dyn_ltree[u*2]!==0)return 1;return 0};
wc=function(f,R,u){f.pending_buf[f.d_buf+f.last_lit*2]=R>>>8&255;f.pending_buf[f.d_buf+f.last_lit*2+1]=R&255;f.pending_buf[f.l_buf+f.last_lit]=u&255;f.last_lit++;R===0?f.dyn_ltree[u*2]++:(f.matches++,R--,f.dyn_ltree[(ay[u]+256+1)*2]++,f.dyn_dtree[(R<256?FN[R]:FN[256+(R>>>7)])*2]++);return f.last_lit===f.lit_bufsize-1};
Qb=function(f,R){f.msg=mn[R];return R};
WR=function(f){for(var R=f.length;--R>=0;)f[R]=0};
EL=function(f){var R=f.state,u=R.pending;u>f.avail_out&&(u=f.avail_out);u!==0&&(qx.arraySet(f.output,R.pending_buf,R.pending_out,u,f.next_out),f.next_out+=u,R.pending_out+=u,f.total_out+=u,f.avail_out-=u,R.pending-=u,R.pending===0&&(R.pending_out=0))};
yb=function(f,R){var u=f.block_start>=0?f.block_start:-1,O=f.strstart-f.block_start,c=0;if(f.level>0){f.strm.data_type===2&&(f.strm.data_type=oEn(f));e4e(f,f.l_desc);e4e(f,f.d_desc);GTP(f,f.dyn_ltree,f.l_desc.max_code);GTP(f,f.dyn_dtree,f.d_desc.max_code);e4e(f,f.bl_desc);for(c=18;c>=3&&f.bl_tree[x57[c]*2+1]===0;c--);f.opt_len+=3*(c+1)+5+5+4;var h=f.opt_len+3+7>>>3;var l=f.static_len+3+7>>>3;l<=h&&(h=l)}else h=l=O+5;if(O+4<=h&&u!==-1)Z9(f,R?1:0,3),JH7(f,u,O);else if(f.strategy===4||l===h)Z9(f,2+(R?
1:0),3),U50(f,tA,CB);else{Z9(f,4+(R?1:0),3);u=f.l_desc.max_code+1;O=f.d_desc.max_code+1;c+=1;Z9(f,u-257,5);Z9(f,O-1,5);Z9(f,c-4,4);for(h=0;h<c;h++)Z9(f,f.bl_tree[x57[h]*2+1],3);BAt(f,f.dyn_ltree,u-1);BAt(f,f.dyn_dtree,O-1);U50(f,f.dyn_ltree,f.dyn_dtree)}jpn(f);R&&D5t(f);f.block_start=f.strstart;EL(f.strm)};
dc=function(f,R){f.pending_buf[f.pending++]=R};
Nx=function(f,R){f.pending_buf[f.pending++]=R>>>8&255;f.pending_buf[f.pending++]=R&255};
SJ0=function(f,R){var u=f.max_chain_length,O=f.strstart,c=f.prev_length,h=f.nice_match,l=f.strstart>f.w_size-262?f.strstart-(f.w_size-262):0,K=f.window,q=f.w_mask,F=f.prev,w=f.strstart+258,m=K[O+c-1],W=K[O+c];f.prev_length>=f.good_match&&(u>>=2);h>f.lookahead&&(h=f.lookahead);do{var C=R;if(K[C+c]===W&&K[C+c-1]===m&&K[C]===K[O]&&K[++C]===K[O+1]){O+=2;for(C++;K[++O]===K[++C]&&K[++O]===K[++C]&&K[++O]===K[++C]&&K[++O]===K[++C]&&K[++O]===K[++C]&&K[++O]===K[++C]&&K[++O]===K[++C]&&K[++O]===K[++C]&&O<w;);
C=258-(w-O);O=w-258;if(C>c){f.match_start=R;c=C;if(C>=h)break;m=K[O+c-1];W=K[O+c]}}}while((R=F[R&q])>l&&--u!==0);return c<=f.lookahead?c:f.lookahead};
bO=function(f){var R=f.w_size,u;do{var O=f.window_size-f.lookahead-f.strstart;if(f.strstart>=R+(R-262)){qx.arraySet(f.window,f.window,R,R,0);f.match_start-=R;f.strstart-=R;f.block_start-=R;var c=u=f.hash_size;do{var h=f.head[--c];f.head[c]=h>=R?h-R:0}while(--u);c=u=R;do h=f.prev[--c],f.prev[c]=h>=R?h-R:0;while(--u);O+=R}if(f.strm.avail_in===0)break;c=f.strm;u=f.window;h=f.strstart+f.lookahead;var l=c.avail_in;l>O&&(l=O);l===0?u=0:(c.avail_in-=l,qx.arraySet(u,c.input,c.next_in,l,h),c.state.wrap===
1?c.adler=$57(c.adler,u,l,h):c.state.wrap===2&&(c.adler=LB(c.adler,u,l,h)),c.next_in+=l,c.total_in+=l,u=l);f.lookahead+=u;if(f.lookahead+f.insert>=3)for(O=f.strstart-f.insert,f.ins_h=f.window[O],f.ins_h=(f.ins_h<<f.hash_shift^f.window[O+1])&f.hash_mask;f.insert&&!(f.ins_h=(f.ins_h<<f.hash_shift^f.window[O+3-1])&f.hash_mask,f.prev[O&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=O,O++,f.insert--,f.lookahead+f.insert<3););}while(f.lookahead<262&&f.strm.avail_in!==0)};
gEe=function(f,R){for(var u;;){if(f.lookahead<262){bO(f);if(f.lookahead<262&&R===0)return 1;if(f.lookahead===0)break}u=0;f.lookahead>=3&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,u=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);u!==0&&f.strstart-u<=f.w_size-262&&(f.match_length=SJ0(f,u));if(f.match_length>=3)if(u=wc(f,f.strstart-f.match_start,f.match_length-3),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=3){f.match_length--;
do f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else u=wc(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(u&&(yb(f,!1),f.strm.avail_out===0))return 1}f.insert=f.strstart<2?f.strstart:2;return R===4?(yb(f,
!0),f.strm.avail_out===0?3:4):f.last_lit&&(yb(f,!1),f.strm.avail_out===0)?1:2};
pB=function(f,R){for(var u,O;;){if(f.lookahead<262){bO(f);if(f.lookahead<262&&R===0)return 1;if(f.lookahead===0)break}u=0;f.lookahead>=3&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,u=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);f.prev_length=f.match_length;f.prev_match=f.match_start;f.match_length=2;u!==0&&f.prev_length<f.max_lazy_match&&f.strstart-u<=f.w_size-262&&(f.match_length=SJ0(f,u),f.match_length<=5&&(f.strategy===1||f.match_length===3&&
f.strstart-f.match_start>4096)&&(f.match_length=2));if(f.prev_length>=3&&f.match_length<=f.prev_length){O=f.strstart+f.lookahead-3;u=wc(f,f.strstart-1-f.prev_match,f.prev_length-3);f.lookahead-=f.prev_length-1;f.prev_length-=2;do++f.strstart<=O&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);f.match_available=0;f.match_length=2;f.strstart++;if(u&&(yb(f,!1),f.strm.avail_out===0))return 1}else if(f.match_available){if((u=
wc(f,0,f.window[f.strstart-1]))&&yb(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return 1}else f.match_available=1,f.strstart++,f.lookahead--}f.match_available&&(wc(f,0,f.window[f.strstart-1]),f.match_available=0);f.insert=f.strstart<2?f.strstart:2;return R===4?(yb(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(yb(f,!1),f.strm.avail_out===0)?1:2};
spt=function(f,R){for(var u,O,c,h=f.window;;){if(f.lookahead<=258){bO(f);if(f.lookahead<=258&&R===0)return 1;if(f.lookahead===0)break}f.match_length=0;if(f.lookahead>=3&&f.strstart>0&&(O=f.strstart-1,u=h[O],u===h[++O]&&u===h[++O]&&u===h[++O])){for(c=f.strstart+258;u===h[++O]&&u===h[++O]&&u===h[++O]&&u===h[++O]&&u===h[++O]&&u===h[++O]&&u===h[++O]&&u===h[++O]&&O<c;);f.match_length=258-(c-O);f.match_length>f.lookahead&&(f.match_length=f.lookahead)}f.match_length>=3?(u=wc(f,1,f.match_length-3),f.lookahead-=
f.match_length,f.strstart+=f.match_length,f.match_length=0):(u=wc(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++);if(u&&(yb(f,!1),f.strm.avail_out===0))return 1}f.insert=0;return R===4?(yb(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(yb(f,!1),f.strm.avail_out===0)?1:2};
nEe=function(f,R){for(var u;;){if(f.lookahead===0&&(bO(f),f.lookahead===0)){if(R===0)return 1;break}f.match_length=0;u=wc(f,0,f.window[f.strstart]);f.lookahead--;f.strstart++;if(u&&(yb(f,!1),f.strm.avail_out===0))return 1}f.insert=0;return R===4?(yb(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(yb(f,!1),f.strm.avail_out===0)?1:2};
jI=function(f,R,u,O,c){this.good_length=f;this.max_lazy=R;this.nice_length=u;this.max_chain=O;this.func=c};
VaB=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 qx.Buf16(1146);this.dyn_dtree=new qx.Buf16(122);this.bl_tree=new qx.Buf16(78);WR(this.dyn_ltree);WR(this.dyn_dtree);WR(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new qx.Buf16(16);this.heap=new qx.Buf16(573);WR(this.heap);this.heap_max=this.heap_len=0;this.depth=new qx.Buf16(573);WR(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};
YJq=function(f,R){if(!f||!f.state||R>5||R<0)return f?Qb(f,-2):-2;var u=f.state;if(!f.output||!f.input&&f.avail_in!==0||u.status===666&&R!==4)return Qb(f,f.avail_out===0?-5:-2);u.strm=f;var O=u.last_flush;u.last_flush=R;if(u.status===42)if(u.wrap===2)f.adler=0,dc(u,31),dc(u,139),dc(u,8),u.gzhead?(dc(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)),dc(u,u.gzhead.time&255),dc(u,u.gzhead.time>>8&255),dc(u,u.gzhead.time>>16&255),dc(u,u.gzhead.time>>
24&255),dc(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),dc(u,u.gzhead.os&255),u.gzhead.extra&&u.gzhead.extra.length&&(dc(u,u.gzhead.extra.length&255),dc(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(f.adler=LB(f.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(dc(u,0),dc(u,0),dc(u,0),dc(u,0),dc(u,0),dc(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),dc(u,3),u.status=113);else{var c=8+(u.w_bits-8<<4)<<8;c|=(u.strategy>=2||u.level<2?0:u.level<6?1:u.level===6?2:3)<<6;u.strstart!==0&&(c|=
32);u.status=113;Nx(u,c+(31-c%31));u.strstart!==0&&(Nx(u,f.adler>>>16),Nx(u,f.adler&65535));f.adler=1}if(u.status===69)if(u.gzhead.extra){for(c=u.pending;u.gzindex<(u.gzhead.extra.length&65535)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>c&&(f.adler=LB(f.adler,u.pending_buf,u.pending-c,c)),EL(f),c=u.pending,u.pending!==u.pending_buf_size));)dc(u,u.gzhead.extra[u.gzindex]&255),u.gzindex++;u.gzhead.hcrc&&u.pending>c&&(f.adler=LB(f.adler,u.pending_buf,u.pending-c,c));u.gzindex===u.gzhead.extra.length&&
(u.gzindex=0,u.status=73)}else u.status=73;if(u.status===73)if(u.gzhead.name){c=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>c&&(f.adler=LB(f.adler,u.pending_buf,u.pending-c,c)),EL(f),c=u.pending,u.pending===u.pending_buf_size)){var h=1;break}h=u.gzindex<u.gzhead.name.length?u.gzhead.name.charCodeAt(u.gzindex++)&255:0;dc(u,h)}while(h!==0);u.gzhead.hcrc&&u.pending>c&&(f.adler=LB(f.adler,u.pending_buf,u.pending-c,c));h===0&&(u.gzindex=0,u.status=91)}else u.status=91;if(u.status===
91)if(u.gzhead.comment){c=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>c&&(f.adler=LB(f.adler,u.pending_buf,u.pending-c,c)),EL(f),c=u.pending,u.pending===u.pending_buf_size)){h=1;break}h=u.gzindex<u.gzhead.comment.length?u.gzhead.comment.charCodeAt(u.gzindex++)&255:0;dc(u,h)}while(h!==0);u.gzhead.hcrc&&u.pending>c&&(f.adler=LB(f.adler,u.pending_buf,u.pending-c,c));h===0&&(u.status=103)}else u.status=103;u.status===103&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&EL(f),
u.pending+2<=u.pending_buf_size&&(dc(u,f.adler&255),dc(u,f.adler>>8&255),f.adler=0,u.status=113)):u.status=113);if(u.pending!==0){if(EL(f),f.avail_out===0)return u.last_flush=-1,0}else if(f.avail_in===0&&(R<<1)-(R>4?9:0)<=(O<<1)-(O>4?9:0)&&R!==4)return Qb(f,-5);if(u.status===666&&f.avail_in!==0)return Qb(f,-5);if(f.avail_in!==0||u.lookahead!==0||R!==0&&u.status!==666){O=u.strategy===2?nEe(u,R):u.strategy===3?spt(u,R):D9[u.level].func(u,R);if(O===3||O===4)u.status=666;if(O===1||O===3)return f.avail_out===
0&&(u.last_flush=-1),0;if(O===2&&(R===1?(Z9(u,2,3),lO(u,256,tA),u.bi_valid===16?(hA(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)):R!==5&&(Z9(u,0,3),JH7(u,0,0),R===3&&(WR(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),EL(f),f.avail_out===0))return u.last_flush=-1,0}if(R!==4)return 0;if(u.wrap<=0)return 1;u.wrap===2?(dc(u,f.adler&255),dc(u,f.adler>>8&255),dc(u,f.adler>>16&255),dc(u,f.adler>>24&255),dc(u,
f.total_in&255),dc(u,f.total_in>>8&255),dc(u,f.total_in>>16&255),dc(u,f.total_in>>24&255)):(Nx(u,f.adler>>>16),Nx(u,f.adler&65535));EL(f);u.wrap>0&&(u.wrap=-u.wrap);return u.pending!==0?0:1};
vEn=function(f){if(!(this instanceof vEn))return new vEn(f);f=this.options=qx.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},f||{});f.raw&&f.windowBits>0?f.windowBits=-f.windowBits:f.gzip&&f.windowBits>0&&f.windowBits<16&&(f.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new ivD;this.strm.avail_out=0;var R=this.strm;var u=f.level,O=f.method,c=f.windowBits,h=f.memLevel,l=f.strategy;if(R){var K=1;u===-1&&(u=6);c<0?(K=0,c=-c):c>15&&
(K=2,c-=16);if(h<1||h>9||O!==8||c<8||c>15||u<0||u>9||l<0||l>4)R=Qb(R,-2);else{c===8&&(c=9);var q=new VaB;R.state=q;q.strm=R;q.wrap=K;q.gzhead=null;q.w_bits=c;q.w_size=1<<q.w_bits;q.w_mask=q.w_size-1;q.hash_bits=h+7;q.hash_size=1<<q.hash_bits;q.hash_mask=q.hash_size-1;q.hash_shift=~~((q.hash_bits+3-1)/3);q.window=new qx.Buf8(q.w_size*2);q.head=new qx.Buf16(q.hash_size);q.prev=new qx.Buf16(q.w_size);q.lit_bufsize=1<<h+6;q.pending_buf_size=q.lit_bufsize*4;q.pending_buf=new qx.Buf8(q.pending_buf_size);
q.d_buf=q.lit_bufsize;q.l_buf=3*q.lit_bufsize;q.level=u;q.strategy=l;q.method=O;if(R&&R.state){R.total_in=R.total_out=0;R.data_type=2;u=R.state;u.pending=0;u.pending_out=0;u.wrap<0&&(u.wrap=-u.wrap);u.status=u.wrap?42:113;R.adler=u.wrap===2?0:1;u.last_flush=0;if(!rHn){O=Array(16);for(h=l=0;h<28;h++)for(IWD[h]=l,c=0;c<1<<HvD[h];c++)ay[l++]=h;ay[l-1]=h;for(h=l=0;h<16;h++)for(Plq[h]=l,c=0;c<1<<Mae[h];c++)FN[l++]=h;for(l>>=7;h<30;h++)for(Plq[h]=l<<7,c=0;c<1<<Mae[h]-7;c++)FN[256+l++]=h;for(c=0;c<=15;c++)O[c]=
0;for(c=0;c<=143;)tA[c*2+1]=8,c++,O[8]++;for(;c<=255;)tA[c*2+1]=9,c++,O[9]++;for(;c<=279;)tA[c*2+1]=7,c++,O[7]++;for(;c<=287;)tA[c*2+1]=8,c++,O[8]++;p_7(tA,287,O);for(c=0;c<30;c++)CB[c*2+1]=5,CB[c*2]=bv2(c,5);fHq=new NA5(tA,HvD,257,286,15);Rjt=new NA5(CB,Mae,0,30,15);uXq=new NA5([],Og5,0,19,7);rHn=!0}u.l_desc=new LxX(u.dyn_ltree,fHq);u.d_desc=new LxX(u.dyn_dtree,Rjt);u.bl_desc=new LxX(u.bl_tree,uXq);u.bi_buf=0;u.bi_valid=0;jpn(u);u=0}else u=Qb(R,-2);u===0&&(R=R.state,R.window_size=2*R.w_size,WR(R.head),
R.max_lazy_match=D9[R.level].max_lazy,R.good_match=D9[R.level].good_length,R.nice_match=D9[R.level].nice_length,R.max_chain_length=D9[R.level].max_chain,R.strstart=0,R.block_start=0,R.lookahead=0,R.insert=0,R.match_length=R.prev_length=2,R.match_available=0,R.ins_h=0);R=u}}else R=-2;if(R!==0)throw Error(mn[R]);f.header&&(R=this.strm)&&R.state&&R.state.wrap===2&&(R.state.gzhead=f.header);if(f.dictionary){var F;typeof f.dictionary==="string"?F=chn(f.dictionary):XW2.call(f.dictionary)==="[object ArrayBuffer]"?
F=new Uint8Array(f.dictionary):F=f.dictionary;f=this.strm;h=F;l=h.length;if(f&&f.state)if(F=f.state,R=F.wrap,R===2||R===1&&F.status!==42||F.lookahead)R=-2;else{R===1&&(f.adler=$57(f.adler,h,l,0));F.wrap=0;l>=F.w_size&&(R===0&&(WR(F.head),F.strstart=0,F.block_start=0,F.insert=0),u=new qx.Buf8(F.w_size),qx.arraySet(u,h,l-F.w_size,F.w_size,0),h=u,l=F.w_size);u=f.avail_in;O=f.next_in;c=f.input;f.avail_in=l;f.next_in=0;f.input=h;for(bO(F);F.lookahead>=3;){h=F.strstart;l=F.lookahead-2;do F.ins_h=(F.ins_h<<
F.hash_shift^F.window[h+3-1])&F.hash_mask,F.prev[h&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=h,h++;while(--l);F.strstart=h;F.lookahead=2;bO(F)}F.strstart+=F.lookahead;F.block_start=F.strstart;F.insert=F.lookahead;F.lookahead=0;F.match_length=F.prev_length=2;F.match_available=0;f.next_in=O;f.input=c;f.avail_in=u;F.wrap=R;R=0}else R=-2;if(R!==0)throw Error(mn[R]);this._dict_set=!0}};
hjh=function(f,R){R=R||{};R.gzip=!0;R=new vEn(R);R.push(f,!0);if(R.err)throw R.msg||mn[R.err];return R.result};
lHn=function(f,R){var u=Zgl();u&&u.publish.call(u,f.toString(),f,R)};
aHt=function(f,R,u){var O=Zgl();if(!O)return 0;var c=O.subscribe(f.toString(),function(h,l){var K=_.Ph("ytPubsub2Pubsub2SkipSubKey");K&&K==c||(K=function(){if(keB[c])try{if(l&&f instanceof KBl&&f!=h)try{var q=f.dataClass,F=l;if(!F.args||!F.version)throw Error("Vc");try{if(!q.version_){var w=new q;q.version_=w.version}var m=q.version_}catch(W){}if(!m||F.version!=m)throw Error("Wc");try{l=Reflect.construct(q,_.iB(F.args))}catch(W){throw W.message="yt.pubsub2.Data.deserialize(): "+W.message,W;}}catch(W){throw W.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+f.toString()+": "+W.message,W;}R.call(u||window,l)}catch(W){_.IS(W)}},qPX[f.toString()]?_.Ph("yt.scheduler.instance")?_.JA.addLowPriorityJob(K):_.ZL(K,0):K())});
keB[c]=!0;Ah2[f.toString()]||(Ah2[f.toString()]=[]);Ah2[f.toString()].push(c);return c};
QLn=function(){var f=FBt,R=aHt(wW2,function(u){f.apply(void 0,arguments);mq5(R)});
return R};
mq5=function(f){var R=Zgl();R&&(typeof f==="number"&&(f=[f]),_.Gf(f,function(u){R.unsubscribeByKey(u);delete keB[u]}))};
Zgl=function(){return _.Ph("ytPubsub2Pubsub2Instance")};
WB2=function(f,R,u){u=u===void 0?{sampleRate:.1}:u;Math.random()<Math.min(.02,u.sampleRate/100)&&lHn("meta_logging_csi_event",{timerName:f,timelineData:R})};
_.EZ2=function(f){return f?(f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Ia(f):null:null};
_.z2=function(f){return f?(f=f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.lh(f):null:null};
C$e=function(){t8n||(t8n=_.z2(_.Tf("WORKER_SERIALIZATION_URL")));return t8n||void 0};
_.dqh=function(){var f=C$e();yhn||f===void 0||(yhn=new Worker(_.k3(f),void 0));return yhn};
_.Nz7=function(){return typeof Worker==="function"&&C$e()?!0:!1};
_.jL2=function(){if(_.Nz7()&&!LBt){var f=function(u){u=u.data;if(u.op==="gzippedGelBatch"){var O=bgX.get(u.key);O&&(pWl(u.gzippedBatch,O.latencyPayload,O.url,O.options,O.sendFn),bgX.delete(u.key))}},R=_.dqh();
R&&(R.addEventListener("message",f),R.onerror=function(){bgX.clear()},LBt=!0)}};
M8e=function(f,R,u,O,c){c=c===void 0?!1:c;var h={startTime:(0,_.iZ)(),ticks:{},infos:{}};if(T2)try{var l=Dq7(R);if(l!=null&&(l>Jh7||l<zjD))O(f,u);else{if(_.E("gzip_gel_with_worker")&&(_.E("initial_gzip_use_main_thread")&&!Tz7||!_.E("initial_gzip_use_main_thread"))){LBt||_.jL2();var K=_.dqh();if(K&&!c){bgX.set(Hg0,{latencyPayload:h,url:f,options:u,sendFn:O});K.postMessage({op:"gelBatchToGzip",serializedBatch:R,key:Hg0});Hg0++;return}}var q=hjh(IHn(R));pWl(q,h,f,u,O)}}catch(F){_.UC(F),O(f,u)}else O(f,
u)};
pWl=function(f,R,u,O,c){Tz7=!1;var h=(0,_.iZ)();R.ticks.gelc=h;HR++;_.E("disable_compression_due_to_performance_degredation")&&h-R.startTime>=P$7&&(Uqn++,_.E("abandon_compression_after_N_slow_zips")?HR===_.RV("compression_disable_point")&&Uqn>eje&&(T2=!1):T2=!1);Ge5(R);O.headers||(O.headers={});O.headers["Content-Encoding"]="gzip";O.postBody=f;O.postParams=void 0;c(u,O)};
Bzn=function(f){var R=R===void 0?!1:R;var u=u===void 0?!1:u;var O=(0,_.iZ)(),c={startTime:O,ticks:{},infos:{}},h=R?_.Ph("yt.logging.gzipForFetch",!1):!0;if(T2&&h){if(!f.body)return f;try{var l=u?f.body:typeof f.body==="string"?f.body:JSON.stringify(f.body);h=l;if(!u&&typeof l==="string"){var K=Dq7(l);if(K!=null&&(K>Jh7||K<zjD))return f;u=R?{level:1}:void 0;h=hjh(IHn(l),u);var q=(0,_.iZ)();c.ticks.gelc=q;if(R){HR++;if((_.E("disable_compression_due_to_performance_degredation")||_.E("disable_compression_due_to_performance_degradation_lr"))&&
q-O>=P$7)if(Uqn++,_.E("abandon_compression_after_N_slow_zips")||_.E("abandon_compression_after_N_slow_zips_lr")){R=Uqn/HR;var F=eje/_.RV("compression_disable_point");HR>0&&HR%_.RV("compression_disable_point")===0&&R>=F&&(T2=!1)}else T2=!1;Ge5(c)}}f.headers=Object.assign({},{"Content-Encoding":"gzip"},f.headers||{});f.body=h;return f}catch(w){return _.UC(w),f}}else return f};
Dq7=function(f){try{return(new Blob(f.split(""))).size}catch(R){return _.UC(R),null}};
Ge5=function(f){_.E("gel_compression_csi_killswitch")||!_.E("log_gel_compression_latency")&&!_.E("log_gel_compression_latency_lr")||WB2("gel_compression",f,{sampleRate:.1})};
oZn=function(){this.blockSize=-1};
Iy=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var f=1;f<this.blockSize;++f)this.pad_[f]=0;this.total_=this.inbuf_=0;this.reset()};
SPl=function(f){f=Object.assign({},f);delete f.Authorization;var R=xqn();if(R){var u=new Iy;u.update(_.Tf("INNERTUBE_API_KEY"));u.update(R);f.hash=_.fE(u.digest(),3)}return f};
PR=function(){$qt||($qt=new _.Mx("yt.innertube"));return $qt};
gZ7=function(f,R,u,O){if(O)return null;O=PR().get("nextId",!0)||1;var c=PR().get("requests",!0)||{};c[O]={method:f,request:R,authState:SPl(u),requestTime:Math.round((0,_.iZ)())};PR().set("nextId",O+1,86400,!0);PR().set("requests",c,86400,!0);return O};
sLq=function(f){var R=PR().get("requests",!0)||{};delete R[f];PR().set("requests",R,86400,!0)};
V8P=function(f){var R=PR().get("requests",!0);if(R){for(var u in R){var O=R[u];if(!(Math.round((0,_.iZ)())-O.requestTime<6E4)){var c=O.authState,h=SPl(_.yH7(!1));_.dq.equals(c,h)&&(c=O.request,"requestTimeMs"in c&&(c.requestTimeMs=Math.round((0,_.iZ)())),nZn(f,O.method,c,{}));delete R[u]}}PR().set("requests",R,86400,!0)}};
YPl=function(f){var R;return(f=f==null?void 0:(R=f.error)==null?void 0:R.code)&&f>=400&&f<=599?!1:!0};
vZl=function(f){var R;f=f==null?void 0:(R=f.error)==null?void 0:R.code;return!(f!==400&&f!==415)};
rhl=function(){if(igh)return igh();var f={};igh=vf("LogsDatabaseV2",{objectStores:(f.LogsRequestsStore={addedAtVersion:2},f),shared:!1,upgrade:function(R,u,O){u(2)&&UL(R,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});u(3);u(5)&&(O=O.objectStore("LogsRequestsStore"),O.JSC$8601_wrapped.indexNames.contains("newRequest")&&O.JSC$8601_wrapped.deleteIndex("newRequest"),eI(O,"newRequestV2",["status","interface","timestamp"]));u(7)&&R.JSC$8586_wrapped.objectStoreNames.contains("sapisid")&&R.JSC$8586_wrapped.deleteObjectStore("sapisid");
u(9)&&R.JSC$8586_wrapped.objectStoreNames.contains("SWHealthLog")&&R.JSC$8586_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return igh()};
G2=function(f){return _.xx(rhl(),f)};
RGt=function(f,R){var u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return u={startTime:(0,_.iZ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.A(l,G2(R),2);if(l.nextAddress!=3)return O=l.yieldResult,c=Object.assign({},f,{options:JSON.parse(JSON.stringify(f.options)),interface:_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.A(l,O.put("LogsRequestsStore",c),3);h=l.yieldResult;u.ticks.tc=(0,_.iZ)();fMD(u);return l.return(h)})};
ur2=function(f,R){var u,O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1)return u={startTime:(0,_.iZ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.A(w,G2(R),2);if(w.nextAddress!=3)return O=w.yieldResult,c=_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[f,c,0],l=[f,c,(0,_.iZ)()],K=IDBKeyRange.bound(h,l),q="prev",_.E("use_fifo_for_networkless")&&(q="next"),F=void 0,_.A(w,_.Sh(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){return _.rU(m.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:K,direction:q},function(W){W.getValue()&&(F=W.getValue(),f==="NEW"&&(F.status="QUEUED",W.update(F)))})}),3);
u.ticks.tc=(0,_.iZ)();fMD(u);return w.return(F)})};
Onh=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,G2(R),2);u=O.yieldResult;return O.return(_.Sh(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){var h=c.objectStore("LogsRequestsStore");return h.get(f).then(function(l){if(l)return l.status="QUEUED",h.put(l).then(function(){return l})})}))})};
cNq=function(f,R,u,O){u=u===void 0?!0:u;var c;return _.k(function(h){if(h.nextAddress==1)return _.A(h,G2(R),2);c=h.yieldResult;return h.return(_.Sh(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(l){var K=l.objectStore("LogsRequestsStore");return K.get(f).then(function(q){return q?(q.status="NEW",u&&(q.sendCount+=1),O!==void 0&&(q.options.compress=O),K.put(q).then(function(){return q})):Pf.resolve(void 0)})}))})};
XLP=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,G2(R),2);u=O.yieldResult;return O.return(u.delete("LogsRequestsStore",f))})};
hGe=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,G2(f),2);R=O.yieldResult;u=(0,_.iZ)()-2592E6;return _.A(O,_.Sh(R,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){return gU(c.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=u)return h.delete().then(function(){return h.continue()})})}),0)})};
ZnX=function(){_.k(function(f){return _.A(f,Ym7("LogsDatabaseV2"),0)})};
fMD=function(f){_.E("nwl_csi_killswitch")||WB2("networkless_performance",f,{sampleRate:1})};
_.k$q=function(f){return _.xx(lMt(),f)};
K6n=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,_.k$q(f),2);R=O.yieldResult;u=(0,_.iZ)()-2592E6;return _.A(O,_.Sh(R,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(c){return gU(c.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=u)return h.delete().then(function(){return h.continue()})})}),0)})};
qy2=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,_.k$q(f),2);R=u.yieldResult;return _.A(u,R.clear("SWHealthLog"),0)})};
_.BR=function(f,R,u,O,c,h,l){c=c===void 0?"":c;h=h===void 0?!1:h;l=l===void 0?!1:l;if(f)if(u&&!TA("cobalt"))_.UC(new _.ts("Legacy referrer-scrubbed ping detected")),f&&AN7(f,void 0,{scrubReferrer:!0});else if(c)U1X(f,R,"POST",c,O);else if(_.Tf("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||O||l)U1X(f,R,"GET","",O,void 0,h,l);else{b:{try{c:{var K=new aMt({url:f});if(K.urlParamValues_.dsh==="1")var q=null;else{var F=K.urlParamValues_.ae;if(F==="1"){var w=K.urlParamValues_.adurl;if(w)try{q={version:3,directUrl:decodeURIComponent(w),
asyncUrl:bRe(K.JSC$7484_url_,"act=1","ri=1",F6n(K))};break c}catch(d){}}q=F==="2"?{version:4,directUrl:bRe(K.JSC$7484_url_,"dct=1","suid="+K.suid_,""),asyncUrl:bRe(K.JSC$7484_url_,"act=1","ri=1","suid="+K.suid_)}:null}}if(q){var m=_.Kt(f);var W=!(!m||!m.endsWith("/aclk")||_.GP(f,"ri")!=="1");break b}}catch(d){}W=!1}if(W){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(f,"")){var C=!0;break b}}catch(d){}C=!1}C?(R&&R(),u=!0):u=!1}else u=!1;u||AN7(f,R)}};
AN7=function(f,R,u){u=u===void 0?{}:u;var O=new Image,c=""+wLt++;mL5[c]=O;O.onload=O.onerror=function(){R&&mL5[c]&&R();delete mL5[c]};
u.scrubReferrer&&(O.referrerPolicy="no-referrer");O.src=f};
SI=function(f,R){Q1e(f,R==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
W6h=function(f){var R;return((R=document.featurePolicy)==null?0:R.allowedFeatures().includes("attribution-reporting"))?f+"&nis=6":f+"&nis=5"};
ES2=function(f){if(!f)return!1;try{var R;if(((R=_.Bh(f))==null?void 0:R.asm)==="4")return!0}catch(u){_.IS(u)}return!1};
Q1e=function(f,R){R?(f=W6h(f),_.BR(f,void 0,void 0,void 0,"",!0,!0)):_.BR(f)};
Cj5=function(){tkD||(tkD=new _.Mx("yt.offline"));return tkD};
yNt=function(f){if(_.E("offline_error_handling")){var R=Cj5().get("errors",!0)||{};R[f.message]={name:f.name,stack:f.stack};f.level&&(R[f.message].level=f.level);Cj5().set("errors",R,2592E3,!0)}};
NY5=function(f,R,u,O){O=O===void 0?!1:O;R=_.E("web_fp_via_jspb")?Object.assign({},R):R;_.E("use_cfr_monitor")&&dLn(f,R);if(_.E("use_request_time_ms_header"))R.headers&&nQ(f)&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.iZ)())));else{var c;if((c=R.postParams)==null?0:c.requestTimeMs)R.postParams.requestTimeMs=Math.round((0,_.iZ)())}u&&Object.keys(R).length===0?_.BR(f):R.compress?R.postBody?(typeof R.postBody!=="string"&&(R.postBody=JSON.stringify(R.postBody)),M8e(f,R.postBody,
R,_.qv,O)):M8e(f,JSON.stringify(R.postParams),R,oV5,O):_.qv(f,R)};
L6l=function(f,R){_.E("use_event_time_ms_header")&&nQ(f)&&(R.headers||(R.headers={}),R.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.iZ)())));return R};
_.pL2=function(){bn5||(bn5=new _.$M({logOfflineErrors:!0,enablePolling:!0}));return bn5};
dLn=function(f,R){var u=R.onError?R.onError:function(){};
R.onError=function(c,h){sL().requestComplete(f,!1);u(c,h)};
var O=R.onSuccess?R.onSuccess:function(){};
R.onSuccess=function(c,h){sL().requestComplete(f,!0);O(c,h)}};
_.j1n=function(){return _.gv(document.location.toString())!=="www.youtube-nocookie.com"};
_.zG0=function(){return _.Ph("ytNetworklessLoggingInitializationOptions")?_.DLq.isNwlInitialized:_.JNB};
TYn=function(f,R){if(_.E("polymer_on_demand_shady_dom")){var u;var O=(u=f.__shady_native_firstElementChild)!=null?u:f.firstElementChild}else O=f.firstElementChild;for(;O;){if(f=R(O)?O:TYn(O,R))return f;O=O.nextElementSibling}return null};
IM5=function(){var f=document;if("visibilityState"in f)return f.visibilityState;var R=Hn7+"VisibilityState";if(R in f)return f[R]};
_.Mkl=function(f,R){var u;nB(f,function(O){u=R[O];return!!u});
return u};
_.YM=function(f){var R=Pjt(f);R?R.focus():_.Vb(f)};
Pjt=function(f){return(f=TYn(f,function(R){return _.vR(R)?UL5(R)&&!!R.offsetParent:!1}))?f:null};
_.Vb=function(f,R){f.hasAttribute("tabindex")||f.setAttribute("tabindex","-1");f.focus(R)};
eGB=function(f,R,u,O){O=O===void 0?{}:O;f.addEventListener&&(R!="mouseenter"||"onmouseenter"in document?R!="mouseleave"||"onmouseenter"in document?R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"):R="mouseout":R="mouseover");return _.dq.findKey(iO,function(c){var h=typeof c[4]==="boolean"&&c[4]==!!O,l=_.OE(c[4])&&_.OE(O)&&_.dq.equals(c[4],O);return!!c.length&&c[0]==f&&c[1]==R&&c[2]==u&&(h||l)})};
_.f0=function(f,R,u,O){O=O===void 0?{}:O;if(!f||!f.addEventListener&&!f.attachEvent)return"";var c=eGB(f,R,u,O);if(c)return c;c=++G$2.count+"";var h=!(R!="mouseenter"&&R!="mouseleave"||!f.addEventListener||"onmouseenter"in document);var l=h?function(K){K=new rc(K);if(!_.Tx(K.relatedTarget,function(q){return q==f},!0))return K.currentTarget=f,K.type=R,u.call(f,K)}:function(K){K=new rc(K);
K.currentTarget=f;return u.call(f,K)};
l=_.MW(l);f.addEventListener?(R=="mouseenter"&&h?R="mouseover":R=="mouseleave"&&h?R="mouseout":R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"),BYX()||typeof O==="boolean"?f.addEventListener(R,l,O):f.addEventListener(R,l,!!O.capture)):f.attachEvent("on"+R,l);iO[c]=[f,R,u,l,O];return c};
_.xLh=function(f,R,u){var O=O===void 0?{}:O;var c=_.f0(f,R,function(){_.oSn(c);u.apply(f,arguments)},O)};
_.oSn=function(f){f&&(typeof f=="string"&&(f=[f]),_.Gf(f,function(R){if(R in iO){var u=iO[R],O=u[0],c=u[1],h=u[3];u=u[4];O.removeEventListener?BYX()||typeof u==="boolean"?O.removeEventListener(c,h,u):O.removeEventListener(c,h,!!u.capture):O.detachEvent&&O.detachEvent("on"+c,h);delete iO[R]}}))};
Rh=function(f){this.callback_=f;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(f=0;f<4;f++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.f0(window,"mousemove",(0,_.NG)(this.onMouseMove_,this));this.timerId_=_.lZ((0,_.NG)(this.checkPosition_,this),25)};
$L7=function(){var f={};var R=f.preferMobileEvents===void 0?!1:f.preferMobileEvents;f=f.enableScrollEventListener===void 0?!0:f.enableScrollEventListener;if(_.Ph("_lact",window)==null){var u=parseInt(_.Tf("LACT"),10);u=isFinite(u)?Date.now()-Math.max(u,0):-1;_.V4("_lact",u,window);_.V4("_fact",u,window);u==-1&&_.uc();_.f0(document,"keydown",_.uc);_.f0(document,"keyup",_.uc);_.f0(document,"mousedown",_.uc);_.f0(document,"mouseup",_.uc);R?_.f0(window,"touchmove",function(){Sy7("touchmove",200)},{passive:!0}):
(_.f0(window,"resize",function(){Sy7("resize",200)}),f&&_.f0(window,"scroll",function(){Sy7("scroll",200)}));
new Rh(function(){Sy7("mouse",100)});
_.f0(document,"touchstart",_.uc,{passive:!0});_.f0(document,"touchend",_.uc,{passive:!0})}};
Sy7=function(f,R){gSe[f]||(gSe[f]=!0,_.JA.addLowPriorityJob(function(){_.uc();gSe[f]=!1},R))};
_.uc=function(){_.Ph("_lact",window)==null&&$L7();var f=Date.now();_.V4("_lact",f,window);_.Ph("_fact",window)==-1&&_.V4("_fact",f,window);(f=_.Ph("ytglobal.ytUtilActivityCallback_"))&&f()};
_.OW=function(){var f=_.Ph("_lact",window);return f==null?-1:Math.max(Date.now()-f,0)};
_.Z8=function(f,R,u){var O=_.c5();if(O&&R){var c=O.subscribe(f,function(){var h=arguments,l=function(){X0[c]&&R.apply&&typeof R.apply=="function"&&R.apply(u||window,h)};
try{_.s17[f]?l():_.ZL(l,0)}catch(K){_.IS(K)}},u);
X0[c]=!0;hr[f]||(hr[f]=[]);hr[f].push(c);return c}return 0};
_.nS7=function(f){var R=_.c5();R&&(typeof f==="number"?f=[f]:typeof f==="string"&&(f=[parseInt(f,10)]),_.Gf(f,function(u){R.unsubscribeByKey(u);delete X0[u]}))};
_.Vke=function(f,R){var u=_.c5();u&&u.publish.apply(u,arguments)};
_.vSh=function(f){var R=_.c5();if(R)if(R.clear(f),f)YyX(f);else for(var u in hr)YyX(u)};
_.c5=function(){return _.Oe.ytPubsubPubsubInstance};
YyX=function(f){hr[f]&&(f=hr[f],_.Gf(f,function(R){X0[R]&&delete X0[R]}),f.length=0)};
ine=function(){var f,R;return"h5vcc"in lc&&((f=lc.h5vcc.traceEvent)==null?0:f.traceBegin)&&((R=lc.h5vcc.traceEvent)==null?0:R.traceEnd)?1:"performance"in lc&&lc.performance.mark&&lc.performance.measure?2:0};
rNB=function(f){var R=ine();switch(R){case 1:lc.h5vcc.traceEvent.traceBegin("YTLR",f);break;case 2:lc.performance.mark(f+"-start");break;case 0:break;default:_.km(R,"unknown trace type")}};
fO5=function(f){var R=ine();switch(R){case 1:lc.h5vcc.traceEvent.traceEnd("YTLR",f);break;case 2:R=f+"-start";var u=f+"-end";lc.performance.mark(u);lc.performance.measure(f,R,u);break;case 0:break;default:_.km(R,"unknown trace type")}};
Rpt=function(f){var R,u;(u=(R=window).onerror)==null||u.call(R,f.message,"",0,0,f)};
u4q=function(f){if(_.E("web_lifecycle_error_handling_killswitch"))return f();try{return f()}catch(R){Rpt(R)}};
Ofh=function(f){return[f.auth===void 0?"undefined":f.auth,f.isJspb===void 0?"undefined":f.isJspb,f.cttAuthInfo===void 0?"undefined":f.cttAuthInfo,f.tier===void 0?"undefined":f.tier].join("/")};
_.t=function(f,R){if(f)return f[R.name]};
K0=function(){var f=_.Ph("yt.logging.ims");f||(f=new kN,_.V4("yt.logging.ims",f));return f};
Al0=function(f,R){if(f.endpoint==="log_event"){cl2(f);var u=X27(f),O=hpP(f.payload)||"",c=Zfe(O),h=200;if(c){if(c.enabled===!1&&!_.E("web_payload_policy_disabled_killswitch"))return;h=lOl(c.tier);if(h===400){kJX(f,R);return}}qB[u]=!0;u={cttAuthInfo:u,isJspb:!1,tier:h};K0().storePayload(u,f.payload);KtB(R,!1,u,qUB(O))}};
Ftn=function(f,R,u){if(R.endpoint==="log_event"){cl2(void 0,R);var O=X27(R,!0),c=Zfe(f),h=200;if(c){if(c.enabled===!1&&!_.E("web_payload_policy_disabled_killswitch"))return;h=lOl(c.tier);if(h===400){aOD(f,R,u);return}}qB[O]=!0;O={cttAuthInfo:O,isJspb:!0,tier:h};K0().storePayload(O,Ov(R.payload));KtB(u,!0,O,qUB(f))}};
KtB=function(f,R,u,O){R=R===void 0?!1:R;O=O===void 0?!1:O;f&&(Ar=new f);f=_.RV("tvhtml5_logging_max_batch_ads_fork")||_.RV("tvhtml5_logging_max_batch")||_.RV("web_logging_max_batch")||100;var c=(0,_.iZ)(),h=w25(R,u.tier),l=h.lastDebounceQueueFromLogTimeMs;O&&(h.useVideoStatsEndPoint=!0);O=0;u&&(O=K0().getSequenceCount(u));var K=function(){mMn({writeThenSend:!0},R,u.tier)};
O>=1E3?K():O>=f?Q47||(Q47=Wt7(function(){K();Q47=void 0},0)):c-l>=10&&(Es0(R,u.tier),h.lastDebounceQueueFromLogTimeMs=c)};
kJX=function(f,R){if(f.endpoint==="log_event"){_.E("more_accurate_gel_parser")&&K0().storePayload({isJspb:!1},f.payload);cl2(f);var u=X27(f),O=new Map;O.set(u,[f.payload]);var c=hpP(f.payload)||"";R&&(Ar=new R);return new _.ah(function(h,l){Ar&&Ar.isReady()?twl(O,Ar,h,l,{bypassNetworkless:!0},!0,qUB(c)):h()})}};
aOD=function(f,R,u){if(R.endpoint==="log_event"){cl2(void 0,R);var O=X27(R,!0),c=new Map;c.set(O,[Ov(R.payload)]);u&&(Ar=new u);return new _.ah(function(h){Ar&&Ar.isReady()?Cue(c,Ar,h,{bypassNetworkless:!0},!0,qUB(f)):h()})}};
X27=function(f,R){var u="";if(f.dangerousLogToVisitorSession)u="visitorOnlyApprovedKey";else if(f.cttAuthInfo){if(R===void 0?0:R){R=f.cttAuthInfo.token;u=f.cttAuthInfo;var O=new yln;u.videoId?O.setVideoId(u.videoId):u.playlistId&&F0(O,2,dMh,el(u.playlistId));N_n[R]=O}else R=f.cttAuthInfo,u={},R.videoId?u.videoId=R.videoId:R.playlistId&&(u.playlistId=R.playlistId),Lte[f.cttAuthInfo.token]=u;u=f.cttAuthInfo.token}return u};
mMn=function(f,R,u){f=f===void 0?{}:f;R=R===void 0?!1:R;new _.ah(function(O,c){var h=w25(R,u),l=h.useVideoStatsEndPoint;h.useVideoStatsEndPoint=!1;bfB(h.queueTimer);bfB(h.queueMaxTimer);h.queueMaxTimer=0;Ar&&Ar.isReady()?u===void 0&&_.E("enable_web_tiered_gel")?p22(O,c,f,R,300,l):p22(O,c,f,R,u,l):(Es0(R,u),O())})};
p22=function(f,R,u,O,c,h){var l=Ar;u=u===void 0?{}:u;O=O===void 0?!1:O;c=c===void 0?200:c;h=h===void 0?!1:h;var K=new Map,q=new Map,F={isJspb:O,cttAuthInfo:void 0,tier:c},w={isJspb:O,cttAuthInfo:void 0};if(O){R=_.Z(Object.keys(qB));for(c=R.next();!c.done;c=R.next())c=c.value,q=_.E("enable_web_tiered_gel")?K0().smartExtractMatchingEntries({keys:[F,w],sizeLimit:1E3}):K0().extractMatchingEntries({isJspb:!0,cttAuthInfo:c}),q.length>0&&K.set(c,q),(_.E("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.E("web_fp_via_jspb_and_json"))&&
delete qB[c];Cue(K,l,f,u,!1,h)}else{K=_.Z(Object.keys(qB));for(F=K.next();!F.done;F=K.next())F=F.value,w=_.E("enable_web_tiered_gel")?K0().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:F,tier:c},{isJspb:!1,cttAuthInfo:F}],sizeLimit:1E3}):K0().extractMatchingEntries({isJspb:!1,cttAuthInfo:F}),w.length>0&&q.set(F,w),(_.E("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.E("web_fp_via_jspb_and_json"))&&delete qB[F];twl(q,l,f,R,u,!1,h)}};
Es0=function(f,R){f=f===void 0?!1:f;R=R===void 0?200:R;var u=function(){mMn({writeThenSend:!0},f,R)},O=w25(f,R),c=O===j40||O===DM7?5E3:Jl7;
_.E("web_gel_timeout_cap")&&!O.queueMaxTimer&&(c=Wt7(function(){u()},c),O.queueMaxTimer=c);
bfB(O.queueTimer);c=_.Tf("LOGGING_BATCH_TIMEOUT",_.RV("web_gel_debounce_ms",1E4));_.E("shorten_initial_gel_batch_timeout")&&zpn&&(c=T_7);c=Wt7(function(){_.RV("gel_min_batch_size")>0?K0().getSequenceCount({cttAuthInfo:void 0,isJspb:f,tier:R})>=HfB&&u():u()},c);
O.queueTimer=c};
twl=function(f,R,u,O,c,h,l){c=c===void 0?{}:c;var K=Math.round((0,_.iZ)()),q=f.size,F=IOe(l);f=_.Z(f);var w=f.next();for(l={};!w.done;l={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},w=f.next()){var m=_.Z(w.value);w=m.next().value;m=m.next().value;l.batchRequest=_.dq.unsafeClone({context:_.aW7(R.config_||_.fB())});if(!_.Rk(m)&&!_.E("throw_err_when_logevent_malformed_killswitch")){O();break}l.batchRequest.events=m;
(m=Lte[w])&&Mwn(l.batchRequest,w,m);delete Lte[w];l.dangerousLogToVisitorSession=w==="visitorOnlyApprovedKey";Pu7(l.batchRequest,K,l.dangerousLogToVisitorSession);UMe(c);l.onSuccess$jscomp$3=function(W){_.E("start_client_gcf")&&_.JA.addLowPriorityJob(function(){return _.k(function(C){return _.A(C,ep0(W),0)})});
q--;q||u()};
l.networkFailures=0;l.onError$jscomp$5=function(W){return function(){W.networkFailures++;if(c.bypassNetworkless&&W.networkFailures===1)try{nZn(R,F,W.batchRequest,GJX({writeThenSend:!0},W.dangerousLogToVisitorSession,W.onSuccess$jscomp$3,W.onError$jscomp$5,h)),zpn=!1}catch(C){_.IS(C),O()}q--;q||u()}}(l);
try{nZn(R,F,l.batchRequest,GJX(c,l.dangerousLogToVisitorSession,l.onSuccess$jscomp$3,l.onError$jscomp$5,h)),zpn=!1}catch(W){_.IS(W),O()}}};
Cue=function(f,R,u,O,c,h){O=O===void 0?{}:O;var l=Math.round((0,_.iZ)()),K={value:f.size},q=new Map([].concat(_.yq(f)));q=_.Z(q);for(var F=q.next();!F.done;F=q.next()){var w=_.Z(F.value).next().value,m=f.get(w);F=new B_7;var W=R.config_||_.fB(),C=new wJ,d=new osn;_.FH(d,1,W.innertubeContextHostLanguage);_.FH(d,2,W.innertubeContextGeoLocation);_.uO(d,16,W.innertubeContextClientNameFieldNumber);_.FH(d,17,W.innertubeContextClientVersion);if(W.innertubeContextClientConfigInfo){var p=W.innertubeContextClientConfigInfo,
J=new cR;p.coldConfigData&&_.FH(J,1,p.coldConfigData);p.appInstallData&&_.FH(J,6,p.appInstallData);p.coldHashData&&_.FH(J,3,p.coldHashData);p.hotHashData&&J.setHotHashData(p.hotHashData);_.OO(d,62,J)}(p=_.Oe.devicePixelRatio)&&p!=1&&_.OL(d,65,_.Km(p));p=jI2();p!==""&&_.FH(d,54,p);p=D1h();if(p.length>0){J=new xMt;for(var M=0;M<p.length;M++){var P=new mY;P.setKey(p[M].key);F0(P,2,SU7,el(p[M].value));QL(J,15,mY,P)}_.OO(C,5,J)}Zvn(W,d);lWh(C);kTq(d);Kxt(W,d);qJ5(d);_.E("start_client_gcf")&&AHP(d);_.Tf("DELEGATED_SESSION_ID")&&
!_.E("pageid_as_header_web")&&(W=new W5,_.FH(W,3,_.Tf("DELEGATED_SESSION_ID")));!_.E("fill_delegate_context_in_gel_killswitch")&&(p=_.Tf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J=_.Ry(C,W5,3)||new W5,W=C,p=_.FH(J,18,p),_.OO(W,3,p));W=d;p=_.Z(Object.entries(_.Bh(_.Tf("DEVICE",""))));for(J=p.next();!J.done;J=p.next())M=_.Z(J.value),J=M.next().value,M=M.next().value,J==="cbrand"?_.FH(W,12,M):J==="cmodel"?_.FH(W,13,M):J==="cbr"?_.FH(W,87,M):J==="cbrver"?_.FH(W,88,M):J==="cos"?_.FH(W,18,
M):J==="cosver"?_.FH(W,19,M):J==="cplatform"&&_.uO(W,42,Xcl(M));C.setClient(d);_.OO(F,1,C);if(d=N_n[w])a:{if(_.w9(d,EW(d,dMh,1)))C=1;else if(d.getPlaylistId())C=2;else break a;_.OO(F,4,d);d=F.getContext()||new wJ;W=_.Ry(d,W5,3)||new W5;p=new tr;p.setToken(w);_.uO(p,1,C);QL(W,12,tr,p);_.OO(d,3,W)}delete N_n[w];w=w==="visitorOnlyApprovedKey";$Mq()||_.C0(F,2,l);!w&&(C=_.Tf("EVENT_ID"))&&(d=gsP(),W=new s4h,_.FH(W,1,C),_.C0(W,2,d),_.OO(F,5,W));UMe(O);if(_.E("jspb_serialize_with_worker")&&(C=_.dqh())&&
O.writeThenSend){_.nsq.set(Vwl,{client:R,resolve:u,networklessOptions:O,isIsolated:c,useVSSEndpoint:h,dangerousLogToVisitorSession:w,requestsOutstanding:K});C.postMessage({op:"gelBatchToSerialize",batchRequest:Ov(F),clientEvents:m,key:Vwl});Vwl++;break}if(m){C=[];for(d=0;d<m.length;d++)try{C.push(new yL(m[d]))}catch(g){_.IS(new _.ts("Transport failed to deserialize "+String(m[d])))}m=C}else m=[];m=_.Z(m);for(C=m.next();!C.done;C=m.next())QL(F,3,yL,C.value);m={startTime:(0,_.iZ)(),ticks:{},infos:{}};
F=F.serialize();m.ticks.geljspc=(0,_.iZ)();_.E("log_jspb_serialize_latency")&&WB2("gel_jspb_serialize",m,{sampleRate:.1});_.YU2(F,R,u,O,c,h,w,K)}};
_.YU2=function(f,R,u,O,c,h,l,K){O=O===void 0?{}:O;K=K===void 0?{value:0}:K;h=IOe(h);O=GJX(O,l,function(q){_.E("start_client_gcf")&&_.JA.addLowPriorityJob(function(){return _.k(function(F){return _.A(F,ep0(q),0)})});
K.value--;K.value||u()},function(){K.value--;
K.value||u()},c);
O.headers["Content-Type"]="application/json+protobuf";O.postBodyFormat="JSPB";O.postBody=f;nZn(R,h,"",O);zpn=!1};
UMe=function(f){_.E("always_send_and_write")&&(f.writeThenSend=!1)};
GJX=function(f,R,u,O,c){f={retry:!0,onSuccess:u,onError:O,networklessOptions:f,dangerousLogToVisitorSession:R,bypassMonitoring:!!c,headers:{},postBodyFormat:"",postBody:"",compress:_.E("compress_gel")||_.E("compress_gel_lr")};$Mq()&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.iZ)())));return f};
Pu7=function(f,R,u){$Mq()||(f.requestTimeMs=String(R));_.E("unsplit_gel_payloads_in_logs")&&(f.unsplitGelPayloadsInLogs=!0);!u&&(R=_.Tf("EVENT_ID"))&&(u=gsP(),f.serializedClientEventId={serializedEventId:R,clientCounter:String(u)})};
gsP=function(){var f=_.Tf("BATCH_CLIENT_COUNTER")||0;f||(f=Math.floor(Math.random()*65535/2));f++;f>65535&&(f=1);_.zf("BATCH_CLIENT_COUNTER",f);return f};
Mwn=function(f,R,u){if(u.videoId)var O="VIDEO";else if(u.playlistId)O="PLAYLIST";else return;f.credentialTransferTokenTargetId=u;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:R,scope:O}]};
cl2=function(f,R){var u=_.uZ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Ph("yt.logging.transport.enableScrapingForTest"))if(u)vs2=[],_.V4("yt.logging.transport.enableScrapingForTest",!0),_.V4("yt.logging.transport.scrapedPayloadsForTesting",vs2),_.V4("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.V4("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.V4("yt.logging.transport.scrapeClientEvent",!0);else return;u=_.Ph("yt.logging.transport.scrapedPayloadsForTesting");var O=_.Ph("yt.logging.transport.payloadToScrape");R&&(R=_.Ph("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(R.payload)())&&u.push(R);R=_.Ph("yt.logging.transport.scrapeClientEvent");if(O&&O.length>=1)for(var c=0;c<O.length;c++)if(f&&f.payload[O[c]])if(R)u.push(f.payload);else{var h=void 0;u.push(((h=f)==null?void 0:h.payload)[O[c]])}_.V4("yt.logging.transport.scrapedPayloadsForTesting",
u)};
$Mq=function(){return _.E("use_request_time_ms_header")||_.E("lr_use_request_time_ms_header")};
Wt7=function(f,R){return _.E("transport_use_scheduler")===!1?_.ZL(f,R):_.E("logging_avoid_blocking_during_navigation")||_.E("lr_logging_avoid_blocking_during_navigation")?_.dJ(_.JA,function(){if(_.if7().currentState==="none")f();else{var u={};_.if7().install((u.none={callback:f},u))}},R):_.dJ(_.JA,f,R)};
bfB=function(f){_.E("transport_use_scheduler")?_.JA.cancelJob(f):_.kx(f)};
ep0=function(f){var R,u,O,c,h,l,K,q,F,w;return _.k(function(m){return m.nextAddress==1?(O=(R=f)==null?void 0:(u=R.responseContext)==null?void 0:u.globalConfigGroup,c=_.t(O,rl5),l=(h=O)==null?void 0:h.hotHashData,K=_.t(O,fz7),F=(q=O)==null?void 0:q.coldHashData,(w=_.vh().resolve(_.Y8(NB)))?l?c?_.A(m,Rq5(w,l,c),2):_.A(m,Rq5(w,l),2):m.jumpTo(2):m.return()):F?K?_.A(m,uyX(w,F,K),0):_.A(m,uyX(w,F),0):m.jumpTo(0)})};
w25=function(f,R){R=R===void 0?200:R;return f?R===300?j40:OUn:R===300?DM7:c4t};
Zfe=function(f){if(_.E("enable_web_tiered_gel")){f=X7P[f||""];var R,u,O,c=_.vh().resolve(_.Y8(NB))==null?void 0:(R=hqn())==null?void 0:(u=R.loggingHotConfig)==null?void 0:(O=u.eventLoggingConfig)==null?void 0:O.payloadPolicies;if(c)for(R=0;R<c.length;R++)if(c[R].payloadNumber===f)return c[R]}};
hpP=function(f){f=Object.keys(f);f=_.Z(f);for(var R=f.next();!R.done;R=f.next())if(R=R.value,X7P[R])return R};
lOl=function(f){switch(f){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}};
qUB=function(f){return f==="gelDebuggingEvent"};
IOe=function(f){return(f===void 0?0:f)&&_.E("vss_through_gel_video_stats")?"video_stats":"log_event"};
jV=function(f,R,u,O){O=O===void 0?{}:O;var c={},h=Math.round(O.timestamp||(0,_.iZ)());c.eventTimeMs=h<Number.MAX_SAFE_INTEGER?h:0;c[f]=R;f=_.OW();c.context={lastActivityMs:String(O.timestamp||!isFinite(f)?-1:f)};O.sequenceGroup&&!_.E("web_gel_sequence_info_killswitch")&&(f=c.context,R=O.sequenceGroup,R={index:ZU7(R),groupKey:R},f.sequence=R,O.endOfSequence&&delete L0[O.sequenceGroup]);(O.sendIsolatedPayload?kJX:Al0)({endpoint:"log_event",payload:c,cttAuthInfo:O.cttAuthInfo,dangerousLogToVisitorSession:O.dangerousLogToVisitorSession},
u)};
ZU7=function(f){L0[f]=f in L0?L0[f]+1:0;return L0[f]};
_.Jr=function(f,R,u){u=u===void 0?{}:u;var O=D8;_.Hh("ytLoggingEventsDefaultDisabled",!1)&&D8===D8&&(O=null);jV(f,R,O,u)};
_.zL=function(){if(_.E("web_fp_via_jspb")){var f=!0;f=f===void 0?!1:f;var R=lzq;lzq=[];if(R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,f?jV(u.payloadName,u.payload,D8,u.options):_.Jr(u.payloadName,u.payload,u.options)}mMn(void 0,!0);if(!_.E("web_fp_via_jspb_and_json"))return}mMn(void 0,!1)};
kWD=function(f,R){var u;if((u=R)==null?0:u.componentStack)return R;if(f=f.componentStack)R||(R={}),R.componentStack=f;return R};
Ki2=function(){_.Gf(_.Tf("ERRORS")||[],function(f){_.TL.apply(null,f)});
_.zf("ERRORS",[])};
_.H5=function(f){_.TL(f)};
_.Ih=function(f){_.TL(f,"WARNING")};
qxn=function(f){f instanceof Error?_.TL(f):(f=_.OE(f)?JSON.stringify(f):String(f),f=new _.ts(f),f.name="RejectedPromiseError",_.Ih(f))};
A4B=function(f,R,u,O,c,h){R=R===void 0?"Unknown file":R;u=u===void 0?0:u;var l=!1,K=kOX("log_window_onerror_fraction");if(K&&Math.random()<K)l=!0;else{K=document.getElementsByTagName("script");for(var q=0,F=K.length;q<F;q++)if(K[q].src.indexOf("/debug-")>0){l=!0;break}}l&&(l=!1,c?l=!0:(typeof f==="string"?K=f:ErrorEvent&&f instanceof ErrorEvent?(l=!0,K=f.message,R=f.filename,u=f.lineno,O=f.colno):(K="Unknown error",R="Unknown file",u=0),c=new _.ts(K),c.name="UnhandledWindowError",c.message=K,c.fileName=
R,c.lineNumber=u,isNaN(O)?delete c.columnNumber:c.columnNumber=O),_.E("wiz_enable_component_stack_propagation_killswitch")||(h=kWD(c,h)),h&&_.MB(c,h),l?_.TL(c):_.Ih(c))};
_.TL=function(f,R,u,O,c,h,l,K){h=h===void 0?{}:h;h.name=u||_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME",1);h.version=O||_.Tf("INNERTUBE_CONTEXT_CLIENT_VERSION");u=h;R=R===void 0?"ERROR":R;l=l===void 0?!1:l;R=R===void 0?"ERROR":R;l=l===void 0?!1:l;if(f&&(f.hasOwnProperty("level")&&f.level&&(R=f.level),_.E("console_log_js_exceptions")&&(O=[],O.push("Name: "+f.name),O.push("Message: "+f.message),f.hasOwnProperty("params")&&O.push("Error Params: "+JSON.stringify(f.params)),f.hasOwnProperty("args")&&O.push("Error args: "+
JSON.stringify(f.args)),O.push("File name: "+f.fileName),O.push("Stacktrace: "+f.stack),O=O.join("\n"),window.console.log(O,f)),!(az7>=5))){O=[];c=_.Z(Fi2);for(h=c.next();!h.done;h=c.next()){h=h.value;try{h()&&O.push(h())}catch(J){}}O=[].concat(_.yq(w77),_.yq(O));var q=mOh(f);c=q.message||"Unknown Error";h=q.name||"UnknownError";var F=q.stack||f.stacktrace||"Not available";if(F.startsWith(h+": "+c)){var w=F.split("\n");w.shift();F=w.join("\n")}w=q.lineNumber||"Not available";q=q.fileName||"Not available";
var m=0;if(f.hasOwnProperty("args")&&f.args&&f.args.length)for(var W=0;W<f.args.length&&!(m=cjB(f.args[W],"params."+W,u,m),m>=500);W++);else if(f.hasOwnProperty("params")&&f.params){var C=f.params;if(typeof f.params==="object")for(W in C){if(C[W]){var d="params."+W,p=Ft(C[W]);u[d]=p;m+=d.length+p.length;if(m>500)break}}else u.params=Ft(C)}if(O.length)for(W=0;W<O.length&&!(m=cjB(O[W],"params.context."+W,u,m),m>=500);W++);navigator.vendor&&!u.hasOwnProperty("vendor")&&(u["device.vendor"]=navigator.vendor);
W={message:c,name:h,lineNumber:w,fileName:q,stack:F,params:u,sampleWeight:1};u=Number(f.columnNumber);isNaN(u)||(W.lineNumber=W.lineNumber+":"+u);if(f.level==="IGNORED")f=0;else a:{f=QFe();u=_.Z(f.messageWeights);for(O=u.next();!O.done;O=u.next())if(O=O.value,W.message&&W.message.match(O.messageRegExp)){f=O.weight;break a}f=_.Z(f.callbackWeights);for(u=f.next();!u.done;u=f.next())if(u=u.value,u.callback(W)){f=u.weight;break a}f=1}W.sampleWeight=f;f=_.Z(Wi0);for(u=f.next();!u.done;u=f.next())if(u=
u.value,u.patternsForType[W.name])for(c=_.Z(u.patternsForType[W.name]),O=c.next();!O.done;O=c.next())if(h=O.value,O=W.message.match(h.regexp)){W.params["params.error.original"]=O[0];c=h.groups;h={};for(w=0;w<c.length;w++)h[c[w]]=O[w+1],W.params["params.error."+c[w]]=O[w+1];W.message=u.messageFn(h);break}W.params||(W.params={});f=QFe();W.params["params.errorServiceSignature"]="msg="+f.messageWeights.length+"&cb="+f.callbackWeights.length;W.params["params.serviceWorker"]="false";_.Oe.document&&_.Oe.document.querySelectorAll&&
(W.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new P5(Ern,"sample")).constructor!==P5&&(W.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(W);if(W.sampleWeight!==0&&!tQn.has(W.message)){if(l&&_.E("web_enable_error_204"))Ciq(R===void 0?"ERROR":R,W);else{R=R===void 0?"ERROR":R;R==="ERROR"?(y45.publish("handleError",W),_.E("record_app_crashed_web")&&dO2===0&&W.sampleWeight===1&&(dO2++,l={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.E("report_client_error_with_app_crash_ks")||(l.systemHealth={crashData:{clientError:{logMessage:{message:W.message}}}}),_.Jr("appCrashed",l)),NRD++):R==="WARNING"&&y45.publish("handleWarning",W);if(_.E("kevlar_gel_error_routing")){l=R;K=K===void 0?{}:K;b:{f=_.Z(Lit);for(u=f.next();!u.done;u=f.next())if(TA(u.value.toLowerCase())){f=!0;break b}f=!1}if(f)K=void 0;else{u={stackTrace:W.stack};W.fileName&&(u.filename=W.fileName);f=W.lineNumber&&W.lineNumber.split?W.lineNumber.split(":"):[];f.length!==
0&&(f.length!==1||isNaN(Number(f[0]))?f.length!==2||isNaN(Number(f[0]))||isNaN(Number(f[1]))||(u.lineNumber=Number(f[0]),u.columnNumber=Number(f[1])):u.lineNumber=Number(f[0]));f={level:"ERROR_LEVEL_UNKNOWN",message:W.message,errorClassName:W.name,sampleWeight:W.sampleWeight};l==="ERROR"?f.level="ERROR_LEVEL_ERROR":l==="WARNING"&&(f.level="ERROR_LEVEL_WARNNING");u={isObfuscated:!0,browserStackInfo:u};K.pageUrl=window.location.href;K.kvPairs=[];_.Tf("FEXP_EXPERIMENTS")&&(K.experimentIds=_.Tf("FEXP_EXPERIMENTS"));
O=_.Tf("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!kOX("web_disable_gel_stp_ecatcher_killswitch")&&O)for(c=_.Z(Object.keys(O)),h=c.next();!h.done;h=c.next())h=h.value,K.kvPairs.push({key:h,value:String(O[h])});if(O=W.params)for(c=_.Z(Object.keys(O)),h=c.next();!h.done;h=c.next())h=h.value,K.kvPairs.push({key:"client."+h,value:String(O[h])});O=_.Tf("SERVER_NAME");c=_.Tf("SERVER_VERSION");O&&c&&(K.kvPairs.push({key:"server.name",value:O}),K.kvPairs.push({key:"server.version",value:c}));K={errorMetadata:K,
stackTrace:u,logMessage:f}}K&&(_.Jr("clientError",K),(l==="ERROR"||_.E("errors_flush_gel_always_killswitch"))&&_.zL())}_.E("suppress_error_204_logging")||Ciq(R,W)}try{tQn.add(W.message)}catch(J){}az7++}}};
Ciq=function(f,R){var u=R.params||{};f={urlParams:{a:"logerror",t:"jserror",type:R.name,msg:R.message.substr(0,250),line:R.lineNumber,level:f,"client.name":u.name},postParams:{url:_.Tf("PAGE_NAME",window.location.href),file:R.fileName},method:"POST"};u.version&&(f["client.version"]=u.version);if(f.postParams){R.stack&&(f.postParams.stack=R.stack);R=_.Z(Object.keys(u));for(var O=R.next();!O.done;O=R.next())O=O.value,f.postParams["client."+O]=u[O];if(u=_.Tf("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(R=
_.Z(Object.keys(u)),O=R.next();!O.done;O=R.next())O=O.value,f.postParams[O]=u[O];(u=_.Tf("LAVA_VERSION"))&&(f.postParams["lava.version"]=u);u=_.Tf("SERVER_NAME");R=_.Tf("SERVER_VERSION");u&&R&&(f.postParams["server.name"]=u,f.postParams["server.version"]=R)}_.qv(_.Tf("ECATCHER_REPORT_HOST","")+"/error_204",f)};
_.bUt=function(f,R){R=R===void 0?"ERROR":R;var u=u===void 0?{}:u;var O=_.Ph("ytbin.polymer.shared.lib.tampering.info");O&&(O=O())&&(u["params.tamperingInfo"]=O.sort().join(","));_.TL(f,R,void 0,void 0,!0,u)};
_.MB=function(f){var R=_.yK.apply(1,arguments);f.args||(f.args=[]);Array.isArray(f.args)&&f.args.push.apply(f.args,_.yq(R))};
p75=function(f){f.level="IGNORED"};
jFl=function(f,R){w77.push(f);R();w77.pop()};
eV=function(f,R){for(var u in R)R.hasOwnProperty(u)&&(f=_.UW(f,u,R[u]));return f};
_.DOX=function(f,R,u){u=u===void 0?!1:u;if(!f)return null;if(f.adInfoDialogEndpoint||f.backstageImageUploadEndpoint||f.confirmDialogEndpoint||f.clientActionEndpoint||f.createBackstagePostDialogEndpoint||f.createCommentReplyDialogEndpoint||f.flowEndpoint||f.guideBuilderEndpoint||f.liveChatDialogEndpoint||f.modalEndpoint||f.openPopupAction||f.shareEndpoint||f.shareEntityEndpoint||f.showLiveChatItemEndpoint||f.subscriptionManagerEndpoint||f.unlimitedCreateFamilyEndpoint||f.unlimitedFamilyFlowEndpoint||
f.updateCommentDialogEndpoint||f.updateCommentReplyDialogEndpoint||f.userFeedbackEndpoint||f.videoEditorEndpoint||f.ypcCancelSurveyEndpoint)return R=_.RV("polymer_report_client_url_requested_rate"),!u&&Math.random()<R&&_.Ih(new _.ts("urlForEndpoint used on client endpoint",f)),null;var O=_.RV("polymer_report_missing_web_navigation_endpoint_rate");if(f.liveChatEndpoint||f.liveChatReplayEndpoint)O=0;if(!f.commandMetadata&&!f.clickTrackingParams&&Math.random()<O){var c={},h;for(h in f)c[h]="1";_.Ih(new _.ts("Missing navigation data",
c))}c="";if(f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url)c=f.commandMetadata.webCommandMetadata.url;else if(f.searchEndpoint)Math.random()<O&&_.Ih(new _.ts("Should not manually handle search",f)),c="/results?search_query="+encodeURIComponent(f.searchEndpoint.query).replace(/%20/g,"+"),f.searchEndpoint.params&&(c+="&sp="+f.searchEndpoint.params);else if(f.watchEndpoint)Math.random()<O&&_.Ih(new _.ts("Should not manually handle watch",f)),c="/watch?v="+
f.watchEndpoint.videoId,f.watchEndpoint.playlistId&&(c+="&list="+f.watchEndpoint.playlistId),f.watchEndpoint.index&&(c+="&index="+f.watchEndpoint.index),f.watchEndpoint.startTimeSeconds&&(c+="&t="+f.watchEndpoint.startTimeSeconds);else if(f.browseEndpoint)O=f.browseEndpoint.browseId,(h=f.browseEndpoint.canonicalBaseUrl)?c=h:O&&(c=O.substr(0,2),c=c==="FE"?O==="FEwhat_to_watch"?"/":O==="FEmy_videos"?"/my_videos":"/feed/"+O.substr(2):c==="VL"?"/playlist?list="+O.substr(2):"/channel/"+O),c&&f.browseEndpoint.query&&
(c=eV(c+"/search",{query:f.browseEndpoint.query})),c&&f.browseEndpoint.params&&(c=eV(c,{params:f.browseEndpoint.params}));else{if(f.urlEndpoint)return f.urlEndpoint.url;f.signInEndpoint?(c="https://accounts.google.com/ServiceLogin",O={},_.dq.extend(O,R||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),R=O):f.uploadEndpoint?c="//www.youtube.com/upload":f.liveChatEndpoint?(c=f.liveChatEndpoint,O=_.dq.clone(c),_.OE(c.continuation)&&(h=Object.keys(c.continuation)[0],
O.continuation=c.continuation[h].continuation),c=eV("/youtubei/v1/live_chat/get_live_chat",O)):f.liveChatReplayEndpoint?(c=_.dq.clone(f.liveChatReplayEndpoint),c.currentPlayerState&&(_.dq.extend(c,c.currentPlayerState),delete c.currentPlayerState),c=eV("/youtubei/v1/live_chat/get_live_chat_replay",c)):f.liveChatItemContextMenuEndpoint?c=eV("/youtubei/v1/live_chat/get_item_context_menu",f.liveChatItemContextMenuEndpoint):f.liveChatPurchaseMessageEndpoint?c=eV("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
f.liveChatPurchaseMessageEndpoint):f.openSuperStickerBuyFlowCommand?c=eV("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",f.openSuperStickerBuyFlowCommand):f.videoEditEndpoint?c=eV("/edit",{video_id:f.videoEditEndpoint.videoId}):f.liveDashboardEndpoint?c=f.liveDashboardEndpoint.videoId?eV("/live_dashboard",{v:f.liveDashboardEndpoint.videoId}):"/live_dashboard":f.signalNavigationEndpoint&&f.signalNavigationEndpoint.signal&&f.signalNavigationEndpoint.signal==="WEBCAM"?c="/webcam":f.getPdgBuyFlowCommand&&
(c=eV(f.getPdgBuyFlowCommand.buyflowApiPath,{params:f.getPdgBuyFlowCommand.params}))}return c||u?eV(c,R||{}):(_.Ih(new _.ts("Error: Can't construct url for endpoint","keys:"+Object.keys(f).sort().join(","),f)),null)};
J47=function(f){if(f){if(f.browseEndpoint)return!!f.browseEndpoint.nofollow;if(f.watchEndpoint)return!!f.watchEndpoint.nofollow;if(f.urlEndpoint)return!!f.urlEndpoint.nofollow}return!1};
_.TRh=function(f,R){var u=R+f,O=zqe.get(u);if(O)return O;f=R+"-"+f.replace(/([A-Z])/g,"-$1").toLowerCase();zqe.set(u,f);return f};
HUn=function(f){var R=_.DK(f,"action")||_.DK(f,"command")||_.DK(f,"endpoint");if(!R)return null;R=_.TRh(R,"yt");_.t(f,_.GL)&&(R+="-"+_.t(f,_.GL).signal.toLowerCase().replace(/_/g,"-"));return R};
UOn=function(f){try{var R=Object.keys(f)}catch(c){return[]}for(var u=0;u<R.length;u++){var O=R[u];if(Izq.test(O)||MQe.test(O))return PiD(f[O])}return[]};
PiD=function(f){return f.command?[f.command]:f.onExecutionAction?[f.onExecutionAction]:f.onResponseReceivedCommand?[f.onResponseReceivedCommand]:f.updateFlowCommand?[f.updateFlowCommand]:f.clientActions?f.clientActions:f.action?[f.action]:f.actions||f.commands||f.onResponseReceivedActions||f.onResponseReceivedCommands||f.onResponseReceivedEndpoints||[]};
GWq=function(f,R){R=R===void 0?!1:R;var u=_.vh().resolve(_.Y8(B5));u||(u=new eqD,_.vh().addProvider({provide:B5,useValue:u}));return u&&f&&!_.dq.isEmpty(f)?u.getUrl(f,R):""};
BRX=function(f,R,u){u=u===void 0?"":u;if(R){f.data=R;var O=GWq(R);O?(Lj(f,O),J47(R)||!nQ(O)?f.rel="nofollow":f.removeAttribute("rel"),_.t(R,_.oh)&&_.t(R,_.oh).target==="TARGET_NEW_WINDOW"?f.target="_blank":u?f.target=u:f.removeAttribute("target")):(f.removeAttribute("href"),f.removeAttribute("rel"),f.removeAttribute("target"))}};
_.gJ=function(f,R){var u=Y$;if(NK())or7(f,function(){var h=_.yK.apply(0,arguments);To(u,function(){R.apply(null,_.yq(h))})});
else{var O=_.xN.getInstance(),c=j0(R);OTq(function(){c.value=R});
_.bt(function(){var h={},l=_.SV(O,(h[f]=function(){var K=_.yK.apply(0,arguments);To(u,function(){c.value.apply(c,_.yq(K))})},h));
return function(){var K={};_.$N(O,(K[f]="",K),l)}})}};
_.sW=function(f){return NK()?xOn(f):SxX(f)};
_.n0=function(f){return NK()?xOn(f):SxX(f)};
SxX=function(f){return pQ(function(){return xOn(f)})};
xOn=function(f){var R=rr0(function(u){R.value&&R.value===u||(R.__count=R.__count?R.__count+1:1);R.value=u;var O=function(){var c=XT(null);try{return f==null?void 0:f(u)}finally{XT(c)}}();
return function(){O==null||O();R.value=null}});
return R};
$O0=function(f){var R=Y$,u=Cc;return{getFn:function(){return function(O){R.isDisposed||b4(function(){return Kc(function(){return f(O)})},u)!==!0&&O.stopPropagation()}}}};
VL=function(f){if(typeof f.children==="function")return f.children(),null;f=_.Z(f.children);for(var R=f.next();!R.done;R=f.next())R=R.value,R();return null};
gr7=function(f){var R;return((R=f.prototype)==null?void 0:R.render)===void 0};
sFl=function(f){f=f.items.map(f.children);return f.length>0&&typeof f[0]==="string"?f.join(""):f};
VQ0=function(f,R,u){u=u===void 0?!1:u;b4(function(){return nr7(f,R,u)})};
nr7=function(f,R,u){u=((u===void 0?0:u)?Yx7:vrP)(f,function(){YN(R)});
return u===null?f:u};
YN=function(f){if(f!==void 0&&f!==null)if(f instanceof A1)for(var R=U$;eN()!=null&&Pc7 in eN()&&R.contains(eN());)os();else if(Array.isArray(f))for(R=_.Z(f),f=R.next();!f.done;f=R.next())YN(f.value);else if(f instanceof Z0||"function"==typeof _.Sy&&f instanceof _.Sy)i4(f.toString());else if(OC(f)){if(eN()!==f){var u,O;R=(O=(u=Cc)==null?void 0:u.name)!=null?O:"unknown";throw Error("cc`"+f.tagName+"`"+R);}os()}else if(f!=null&&f.contentKind===h1||f instanceof bh)for(R=f87(f),R=Array.from(R.childNodes),
R=_.Z(R),f=R.next();!f.done;f=R.next())U$.appendChild(f.value),os();else if(aa(f)&&(f=f.toString()),u=typeof f,u==="boolean"||u==="number"||u==="string")i4(f);else if(typeof f==="function"){R=U$;var c=eN();c&&(c._isSignalTextNode||c._isSafeOrSanitizedHtmlNode)||b0B(R,c,f);os()}else if(f.type===sFl)YN(f.type(Object.assign({},f.props,{children:f.children[0]})));else{wv.beforeVisit(f);if(typeof f.type==="string"){a:{f.__open||HBe(f.type,f.props.idomKey);c=U$;for(R in f.props)if(f.props[R]!==iUh){var h=
f.props[R];u=nc;u.push(R);u.push(h)}R=u4.attributes;R=R===void 0?v5:R;h=U$;u=PQ(h);BcD(h,u,R);LY5(c,f.props,!0);if((f.props.skip||f.props.skipchildren)&&U$.hasChildNodes())gP();else{if(f.type==="style"&&qWt(f.children)===null){gP();R=void 0;break a}YN(f.children)}I95();f.__open&&(f.__open=!1);nMe(c,f.props);R=c}return R}if(f.type===_.RS)YN(f.children);else if(!r45(f)){R=f;try{fBt(R)}catch(l){f=l,(h=u4.handleError)==null||h.call.apply(h,[u4].concat(_.yq(HQ(f,(c=R.type)==null?void 0:c.TAG_NAME))))}R.__open&&
(I95(),R.__open=!1)}}};
R52=function(f,R){var u;gr7(f)?u=new QM(R,f):u=new f(R);u.JSC$8269___type=f;u.__updateContext={nextState:u.state,isForced:!1};return u};
fBt=function(f){var R=f.type,u=R.TAG_NAME;if(R===VL)f.props.children=f.children,R(f.props);else{f.children.length>0&&(f.props.children=f.children);var O;(O=f.props).idomKey||(O.idomKey=R);if(u){var c=HBe(u,f.props.idomKey);f.__open=!0;var h=c.__instance}h||(h=R52(R,f.props),h.props=null,c&&(c.__instance=h,h.el=c));var l;u=((l=h.__updateContext)!=null?l:{nextState:h.state,isForced:!1}).nextState;h.__updateContext=void 0;R.getDerivedStateFromProps&&(u=R.getDerivedStateFromProps(f.props,u));h.props=
f.props;h.state=u;l=function(){var K=h;wv.beforeRender(K);var q=K.render(K.props);wv.afterRender(K,q);q?(K.props.idomKey&&(q.props.idomKey=K.props.idomKey),K=q):K=void 0;if(q=K)if(q.__open=f.__open,K=YN(q),f.__open=q.__open,!R.TAG_NAME)if(K)R.TAG_NAME=K.tagName.toLowerCase(),K.__instance=h,h.el=K;else{var F;if((F=h.hooks)==null?0:F.length){var w;(w=u4.handleError)==null||w.call.apply(w,[u4].concat(_.yq(HQ(Error("id")))))}}h.didPatch();wv.didPatch(h)};
(u=h.functionComponent)?itB(u,l,h.props.debugInstance):l()}};
r45=function(f){var R=f.type;if(!gr7(R)||R===VL||R.componentType===dP)return!1;f.props.children=f.children.length>1?f.children:f.children[0];var u,O=(u=f.props.idomKey)!=null?u:f.type,c;if(eN()&&((c=eN()[lt])==null?void 0:c.key)===O){var h=eN(),l=h[lt];if(!l)throw Error("bc`"+h.tagName);var K;(K=l.updateSignalsFromIdomProps)==null||K.call(l,f.props);ufl(l);return!0}if(OLh.has(R.name))throw K=R.name,R=(l=(h=Cc)==null?void 0:h.name)!=null?l:"unknown",Error("ac`"+K+"`"+R);Jre(f.type,f.props,f.children);
f.props.renderedFromIdom=!0;(K=itB(f.type,function(){return tVl(f.type,f.props)},f.props.debugInstance))&&cS5(K);
return!0};
XMn=function(f){for(var R=0;R<KQ(f).length;R++)os()};
ufl=function(f){var R=h52();if(R)XMn(R);else for(var u=0;u<f.numNodes;u++)(R=h52())?XMn(R):os()};
h52=function(){var f;return(f=eN()[lt])==null?void 0:f.sourceDynamicRange};
cS5=function(f){f=YL2(f);f=Array.isArray(f)?f:[f];f=_.Z(f);for(var R=f.next();!R.done;R=f.next())U$.insertBefore(R.value,eN()),os()};
ZL7=function(f){var R=yrn(),u=pQ(function(){return{value:typeof f==="function"?f():f}});
return[u.value,function(O){if(mw!==null){var c;(c=u4.handleError)==null||c.call.apply(c,[u4].concat(_.yq(HQ(Error("jd")))))}u.value=typeof O==="function"?O(u.value):O;R.__updateContext={nextState:R.state,isForced:!0};O=r9(R.effectContext);c=ut(!1);try{if(R.el){var h,l={},K=(l.props=R.props,l.type=R.JSC$8269___type,l.children=(h=R.props.children)!=null?h:[],l[fQ]=!0,l);try{VQ0(R.el,K,!0)}catch(w){var q,F;(F=u4.handleError)==null||F.call.apply(F,[u4].concat(_.yq(HQ(w,(q=R.JSC$8269___type)==null?void 0:
q.TAG_NAME))))}}}finally{ut(c),r9(O)}}]};
ic=function(f,R){var u=Y$,O=function(c){To(u,function(){R(c)})};
window.addEventListener(f,O,void 0);_.jN(function(){window.removeEventListener(f,O,void 0)})};
_.fT=function(f,R){var u=Y$;_.bt(function(){var O,c=(O=R.observer)!=null?O:_.vh().resolve(rJ);if(O=f.value){var h=lB7(O),l=[];R.showOption&&l.push(c.observe(O,function(){To(u,function(){R.visibilityCallback(!0)})},R.showOption));
R.hideOption&&l.push(c.observe(O,function(){To(u,function(){R.visibilityCallback(!1)})},R.hideOption));
R.prescanOption&&R.prescanCallback&&l.push(c.observe(O,function(){To(u,function(){R.prescanCallback()})},R.prescanOption));
var K;h.visibilityMonitorKeys=((K=h.visibilityMonitorKeys)!=null?K:[]).concat(l)}})};
lB7=function(f){var R;return(R=f.polymerController)!=null?R:f};
_.RI=function(f){f.componentType=dP};
ASB=function(f,R){var u=kwe;return _.a(_.RS,null,V1(u4.enableLazyTsx,function(){return _.a(K8e,{id:u,value:f,children:R})},function(){var O=qzn(u,f);
Rs(O);O=r9(O);try{return R()}finally{r9(O)}}))};
K8e=function(f){var R=f.children;f=qzn(f.id,f.value);Rs(f);f=r9(f);try{return _.a(_.RS,null,aS(R()))}finally{r9(f)}};
qzn=function(f,R){return Object.assign(Object.create(aBP),{id:f,contextValue:R})};
F8t=function(f){var R,u=Y$;_.zo(function(){var O=r9(u),c=ut(!R);try{if(R)VQ0(R,f.children(),!0);else if(R=aS(f.children()),!(R instanceof Element))throw Error("kd");}finally{ut(c),r9(O)}});
return R};
wMP=function(f){var R,u=D1(function(){var O=ut(!0);try{R=KQ(f())}finally{ut(O)}},!1);
return[R,u]};
QXP=function(f){f=f.buf.charCodeAt(f.pos++);return mIq[f]};
uq=function(f){var R=0,u=0;do{var O=QXP(f);R|=(O&31)<<u;u+=5}while(O&32);return R<0?R+4294967296:R};
t67=function(f,R,u){W87(f,R);f[R][EG7].unshift(u)};
W87=function(f,R){if(!f[R]||!f[R][EG7]){var u=f[R],O=u?[u]:[];f[R]=function(){for(var c=_.Z(O),h=c.next();!h.done;h=c.next())h.value.apply(this,arguments)};
f[R][EG7]=O}};
Cet=function(f){if(!f)return[];var R=[];f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,Array.isArray(u)?R.push.apply(R,_.yq(Cet(u))):R.push(u);return R};
_.cC=function(f,R){if(f&&ySn.test(f)||f==="//")return f;if(dIB===void 0){dIB=!1;try{var u=new URL("b","http://a");u.pathname="c%20d";dIB=u.href==="http://a/c%20d"}catch(O){}}R||(R=document.baseURI||window.location.href);if(dIB)try{return(new URL(f,R)).href}catch(O){return f}Ou||(Ou=document.implementation.createHTMLDocument("temp"),Ou.base=Ou.createElement("base"),Ou.head.appendChild(Ou.base),Ou.anchor=Ou.createElement("a"),Ou.body.appendChild(Ou.anchor));Ou.base.href=R;Ou.anchor.href=f;return Ou.anchor.href||
f};
L85=function(f,R){return f.replace(NxB,function(u,O,c,h){return O+"'"+_.cC(c.replace(/["']/g,""),R)+"'"+h})};
bLP=function(f){return f.substring(0,f.lastIndexOf("/")+1)};
DID=function(){pMB=!1;for(var f=XP.length,R=0;R<f;R++){var u=XP[R];if(u)try{u()}catch(O){setTimeout(function(){throw O;})}}XP.splice(0,f);
jX7+=f};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(f){console.log("["+f.is+"]: registered")};
z55=function(f){JS7.push(f)};
hZ=function(f){return Txh[f]||(Txh[f]=f.indexOf("-")<0?f:f.replace(HLe,function(R){return R[1].toUpperCase()}))};
Za=function(f){return Txh[f]||(Txh[f]=f.replace(IBX,"-$1").toLowerCase())};
M6t=function(f,R){var u=R.parentInfo&&M6t(f,R.parentInfo);if(u)for(f=u.firstChild,u=0;f;f=f.nextSibling){if(R.parentIndex===u++)return f}else return f};
Pel=function(f,R){f=f._methodHost||f;return function(u){if(f[R])f[R](u,u.detail);else console.warn("listener method `"+R+"` not defined")}};
lq=function(f){return f.indexOf(".")>=0};
kV=function(f){var R=f.indexOf(".");return R===-1?f:f.slice(0,R)};
UI0=function(f,R){return f.indexOf(R+".")===0};
KT=function(f,R){return R.indexOf(f+".")===0};
q1=function(f,R,u){return R+u.slice(f.length)};
e57=function(f,R){return f===R||UI0(f,R)||KT(f,R)};
aI=function(f){if(Array.isArray(f)){for(var R=[],u=0;u<f.length;u++)for(var O=f[u].toString().split("."),c=0;c<O.length;c++)R.push(O[c]);return R.join(".")}return f};
Gwt=function(f){return Array.isArray(f)?aI(f).split("."):f.toString().split(".")};
FP=function(f,R,u){R=Gwt(R);for(var O=0;O<R.length;O++){if(!f)return;f=f[R[O]]}u&&(u.path=R.join("."));return f};
Bxt=function(f,R,u){var O=Gwt(R),c=O[O.length-1];if(O.length>1){for(R=0;R<O.length-1;R++)if(f=f[O[R]],!f)return;f[c]=u}else f[R]=u;return O.join(".")};
oGe=function(f,R,u){var O=f[R];if(!O)O=f[R]={};else if(!f.hasOwnProperty(R)&&(O=f[R]=Object.create(f[R]),u))for(var c in O)for(f=O[c],R=O[c]=Array(f.length),u=0;u<f.length;u++)R[u]=f[u];return O};
mF=function(f,R,u,O,c,h){if(R){var l=!1,K=we++,q;for(q in u){var F=c?kV(q):q;if(F=R[F])for(var w=0,m=F.length,W=void 0;w<m&&(W=F[w]);w++)W.info&&W.info.lastRun===K||c&&!xI0(q,W.trigger)||(W.info&&(W.info.lastRun=K),W.fn(f,q,u,O,W.info,c,h),l=!0)}return l}return!1};
xI0=function(f,R){if(R){var u=R.name;return u==f||!(!R.structured||!UI0(u,f))||!(!R.wildcard||!KT(u,f))}return!0};
Szl=function(f,R,u,O,c){R=typeof c.method==="string"?f[c.method]:c.method;u=c.property;R?R.call(f,f.__data[u],O[u]):c.dynamicFn||console.warn("observer method `"+c.method+"` not defined")};
$Il=function(f,R,u,O){u={value:u,queueProperty:!0};O&&(u.path=O);(0,_.Qy)(f).dispatchEvent(new CustomEvent(R,{detail:u}))};
gG7=function(f,R,u,O,c,h){h=(O=(h?kV(R):R)!=R?R:null)?FP(f,O):f.__data[R];O&&h===void 0&&(h=u[R]);$Il(f,c.eventName,h,O)};
sXe=function(f,R,u,O,c){u=f.__data[R];WC&&(u=WC(u,c.attrName,"attribute",f));f._propertyToAttribute(R,c.attrName,u)};
V67=function(f){var R=f.constructor.__orderedComputedDeps;if(!R){R=new Map;for(var u=f.__computeEffects,O=nGP(f),c=O.counts,h=O.ready,l=O.total;O=h.shift();)R.set(O,R.size),(O=u[O])&&O.forEach(function(K){K=K.info.methodInfo;--l;--c[K]===0&&h.push(K)});
l!==0&&console.warn("Computed graph for "+f.localName+" incomplete; circular?");f.constructor.__orderedComputedDeps=R}return R};
nGP=function(f){var R=f.__computeInfo,u={};f=f.__computeEffects;var O=[],c=0,h;for(h in R){var l=R[h];c+=u[h]=l.args.filter(function(q){return!q.literal}).length+(l.dynamicFn?1:0)}for(var K in f)R[K]||O.push(K);
return{counts:u,ready:O,total:c}};
vGt=function(f,R,u,O,c){R=YzX(f,R,u,O,c);if(R===Eu)return!1;c=c.methodInfo;if(f.__dataHasAccessor&&f.__dataHasAccessor[c])return f._setPendingProperty(c,R,!0);f[c]=R;return!1};
fR5=function(f,R,u,O,c,h,l){u.bindings=u.bindings||[];O={kind:O,target:c,parts:h,literal:l,isCompound:h.length!==1};u.bindings.push(O);O.target&&O.kind!="attribute"&&O.kind!="text"&&!O.isCompound&&O.parts[0].mode==="{"&&(u=O.parts[0],h=u.negate,O.listenerEvent=u.event||Za(c)+"-changed",O.listenerNegate=h);c=R.nodeInfoList.length;for(u=0;u<O.parts.length;u++){var K=O.parts[u];K.compoundIndex=u;h=f;l=R;var q=O,F=K,w=c;if(!F.literal)if(q.kind==="attribute"&&q.target[0]==="-")console.warn("Cannot set attribute "+
q.target+' because "-" is not a valid attribute starting character');else for(K=F.dependencies,q={index:w,binding:q,part:F,evaluator:h},F=0;F<K.length;F++)w=K[F],typeof w=="string"&&(w=iLB(w),w.wildcard=!0),h._addTemplatePropertyEffect(l,w.rootProperty,{fn:rSn,info:q,trigger:w})}};
rSn=function(f,R,u,O,c,h,l){l=l[c.index];var K=c.binding,q=c.part;h&&q.source&&R.length>q.source.length&&K.kind=="property"&&!K.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[K.target]?(u=u[R],R=q1(q.source,K.target,R),l._setPendingPropertyOrPath(R,u,!1,!0)&&f._enqueueClient(l)):(R=c.evaluator._evaluateBinding(f,q,R,u,O,h),R!==Eu&&(K.isCompound&&(u=l.__dataCompoundStorage[K.target],u[q.compoundIndex]=R,R=u.join("")),K.kind==="attribute"||K.target!=="textContent"&&
(K.target!=="value"||l.localName!=="input"&&l.localName!=="textarea")||(R=R==void 0?"":R),q=R,WC&&(q=WC(q,K.target,K.kind,l)),K.kind=="attribute"?f._valueToNodeAttribute(l,q,K.target):(K=K.target,l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[K]?l.__readOnly&&l.__readOnly[K]||l._setPendingProperty(K,q)&&f._enqueueClient(l):f._setUnmanagedPropertyToNode(l,K,q))))};
RAP=function(f,R,u){if(u.listenerEvent){var O=u.parts[0];f.addEventListener(u.listenerEvent,function(c){var h=u.target,l=O.source,K=O.negate,q=c.detail,F=q&&q.path;F?(l=q1(h,l,F),c=q&&q.value):c=c.currentTarget[h];R.__readOnly&&R.__readOnly[l]||!R._setPendingPropertyOrPath(l,K?!c:c,!0,!!F)||q&&q.queueProperty||R._invalidateProperties()})}};
ukn=function(f,R,u,O,c,h){h=R.static||h&&(typeof h!=="object"||h[R.methodName]);c={methodName:R.methodName,args:R.args,methodInfo:c,dynamicFn:h};for(var l=0,K=void 0;l<R.args.length&&(K=R.args[l]);l++)K.literal||f._addPropertyEffect(K.rootProperty,u,{fn:O,info:c,trigger:K});h&&f._addPropertyEffect(R.methodName,u,{fn:O,info:c});return c};
YzX=function(f,R,u,O,c){O=f._methodHost||f;var h=O[c.methodName];if(h)return f=f._marshalArgs(c.args,R,u),f===Eu?Eu:h.apply(O,f);c.dynamicFn||console.warn("method `"+c.methodName+"` not defined")};
OrB=function(f){for(var R="",u=0;u<f.length;u++)R+=f[u].literal||"";return R};
hAX=function(f){if(f=f.match(/([^\s]+?)\(([\s\S]*)\)/)){var R={methodName:f[1],static:!0,args:cxl};return f[2].trim()?XJn(f[2].replace(/\\,/g,"&comma;").split(","),R):R}return null};
XJn=function(f,R){R.args=f.map(function(u){u=iLB(u);u.literal||(R.static=!1);return u},this);
return R};
iLB=function(f){f=f.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var R={name:f,value:"",literal:!1},u=f[0];u==="-"&&(u=f[1]);u>="0"&&u<="9"&&(u="#");switch(u){case "'":case '"':R.value=f.slice(1,-1);R.literal=!0;break;case "#":R.value=Number(f),R.literal=!0}R.literal||(R.rootProperty=kV(f),R.structured=lq(f),R.structured&&(R.wildcard=f.slice(-2)==".*",R.wildcard&&(R.name=f.slice(0,-2))));return R};
ZrP=function(f,R,u){f=FP(f,u);f===void 0&&(f=R[u]);return f};
lR7=function(f,R,u,O){O={indexSplices:O};tZ&&!f._overrideLegacyUndefined&&(R.splices=O);f.notifyPath(u+".splices",O);f.notifyPath(u+".length",R.length);tZ&&!f._overrideLegacyUndefined&&(O.indexSplices=[])};
CT=function(f,R,u,O,c,h){lR7(f,R,u,[{index:O,addedCount:c,removed:h,object:R,type:"splice"}])};
kS2=function(f){f=L85((f.body?f.body:f).textContent,f.baseURI);var R=document.createElement("style");R.textContent=f;return R};
qp7=function(f){f=f.trim().split(/\s+/);for(var R=[],u=0;u<f.length;u++)R.push.apply(R,_.yq(KQ5(f[u])));return R};
KQ5=function(f){var R=yy.import(f);if(!R)return console.warn("Could not find style data in module named",f),[];if(R._styles===void 0){f=[];f.push.apply(f,_.yq(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R)));var u=R.querySelector("template");u&&f.push.apply(f,_.yq(Axt(u,R.assetpath)));R._styles=f}return R._styles};
Axt=function(f,R){if(!f._styles){for(var u=[],O=f.content.querySelectorAll("style"),c=0;c<O.length;c++){var h=O[c],l=h.getAttribute("include");l&&u.push.apply(u,_.yq(qp7(l).filter(function(K,q,F){return F.indexOf(K)===q})));
R&&(h.textContent=L85(h.textContent,R));u.push(h)}f._styles=u}return f._styles};
FQq=function(f){return(f=yy.import(f))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(f){var R=[];f=f.querySelectorAll("link[rel=import][type~=css]");for(var u=0;u<f.length;u++){var O=f[u];if(O.import){var c=O.import;if((O=O.hasAttribute("shady-unscoped"))&&!c._unscopedStyle){var h=kS2(c);h.setAttribute("shady-unscoped","");c._unscopedStyle=h}else c._style||(c._style=kS2(c));R.push(O?c._unscopedStyle:c._style)}}return R};
mp2=function(f){f=f.trim().split(/\s+/);for(var R="",u=0;u<f.length;u++)R+=wJB(f[u]);return R};
wJB=function(f){var R=yy.import(f);if(R&&R._cssText===void 0){var u=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R),O=R.querySelector("template");O&&(u+=QAt(O,R.assetpath));R._cssText=u||null}R||console.warn("Could not find style data in module named",f);return R&&R._cssText||""};
QAt=function(f,R){var u="";f=Axt(f,R);for(R=0;R<f.length;R++){var O=f[R];O.parentNode&&O.parentNode.removeChild(O);u+=O.textContent}return u};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(f){var R="";f=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f);for(var u=0;u<f.length;u++)R+=f[u].textContent;return R};
de=function(f,R){return{index:f,removed:[],addedCount:R}};
EOn=function(f,R,u,O){var c=0,h=0,l=0,K=0,q=Math.min(R-c,O-h);if(c==0&&h==0)a:{for(l=0;l<q;l++)if(f[l]!==u[l])break a;l=q}if(R==f.length&&O==u.length){K=f.length;for(var F=u.length,w=0;w<q-l&&WQD(f[--K],u[--F]);)w++;K=w}c+=l;h+=l;R-=K;O-=K;if(R-c==0&&O-h==0)return[];if(c==R){for(R=de(c,0);h<O;)R.removed.push(u[h++]);return[R]}if(h==O)return[de(c,R-c)];q=c;l=h;O=O-l+1;K=R-q+1;R=Array(O);for(F=0;F<O;F++)R[F]=Array(K),R[F][0]=F;for(F=0;F<K;F++)R[0][F]=F;for(F=1;F<O;F++)for(w=1;w<K;w++)if(f[q+w-1]===
u[l+F-1])R[F][w]=R[F-1][w-1];else{var m=R[F-1][w]+1,W=R[F][w-1]+1;R[F][w]=m<W?m:W}q=R.length-1;l=R[0].length-1;O=R[q][l];for(f=[];q>0||l>0;)q==0?(f.push(2),l--):l==0?(f.push(3),q--):(K=R[q-1][l-1],F=R[q-1][l],w=R[q][l-1],m=F<w?F<K?F:K:w<K?w:K,m==K?(K==O?f.push(0):(f.push(1),O=K),q--,l--):m==F?(f.push(3),q--,O=F):(f.push(2),l--,O=w));f.reverse();R=void 0;q=[];for(l=0;l<f.length;l++)switch(f[l]){case 0:R&&(q.push(R),R=void 0);c++;h++;break;case 1:R||(R=de(c,0));R.addedCount++;c++;R.removed.push(u[h]);
h++;break;case 2:R||(R=de(c,0));R.addedCount++;c++;break;case 3:R||(R=de(c,0)),R.removed.push(u[h]),h++}R&&q.push(R);return q};
tPt=function(f,R){return EOn(f,f.length,R,R.length)};
WQD=function(f,R){return f===R};
yxn=function(f){if(f instanceof CAq)return f.value;throw Error("Bd`"+f);};
dp2=function(f,R){for(var u in R)u===null?f.style.removeProperty(u):f.style.setProperty(u,R[u])};
NWn=function(f,R){return(f=window.getComputedStyle(f).getPropertyValue(R))?f.trim():""};
jAP=function(f){requestAnimationFrame(function(){LQ5?LQ5(f):(brl||(brl=new Promise(function(R){pJq=R}),document.readyState==="complete"?pJq():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&pJq()})),brl.then(function(){f&&f()}))})};
zA5=function(f){Dpq=f&&f.shimcssproperties?!1:Jxq||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
PAl=function(f){if(!(TW5.indexOf(f)>-1)&&f!=="touchend"&&Hr2&&IRD&&MPe)return{passive:!0}};
BW2=function(f){for(var R=Up0?["click"]:TW5,u=0,O;u<R.length;u++)O=R[u],f?(eA0.length=0,document.addEventListener(O,GSe,!0)):document.removeEventListener(O,GSe,!0)};
N1=function(f){var R=f.type;return TW5.indexOf(R)>-1?R==="mousemove"?(R=f.buttons===void 0?1:f.buttons,f instanceof window.MouseEvent&&!oOB&&(R=xpe[f.which]||0),!!(R&1)):(f.button===void 0?0:f.button)===0:!1};
Sp2=function(f){if(f.type==="click"){if(f.detail===0)return!0;var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);if(!R.nodeType||R.nodeType!==Node.ELEMENT_NODE)return!0;R=R.getBoundingClientRect();var u=f.pageX;f=f.pageY;return!(u>=R.left&&u<=R.right&&f>=R.top&&f<=R.bottom)}return!1};
$pB=function(f,R,u){f.movefn=R;f.upfn=u;document.addEventListener("mousemove",R);document.addEventListener("mouseup",u)};
LT=function(f){document.removeEventListener("mousemove",f.movefn);document.removeEventListener("mouseup",f.upfn);f.movefn=null;f.upfn=null};
gO7=function(f,R){for(var u=document.elementFromPoint(f,R),O=u;O&&O.shadowRoot&&!window.ShadyDOM;){var c=O;O=O.shadowRoot.elementFromPoint(f,R);if(c===O)break;O&&(u=O)}return u};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var R=sAD(f);return R.length>0?R[0]:f.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var R=f.type,u=f.currentTarget.__polymerGestures;if(u&&(u=u[R])){if(!f.__polymerGesturesHandled&&(f.__polymerGesturesHandled={},R.slice(0,5)==="touch")){var O=f.changedTouches[0];R==="touchstart"&&f.touches.length===1&&(nOl=O.identifier);if(nOl!==O.identifier)return;Hr2||(R==="touchstart"||R==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)}O=
f.__polymerGesturesHandled;if(!O.skip){for(var c=0,h;c<bq.length;c++)h=bq[c],u[h.name]&&!O[h.name]&&h.flow&&h.flow.start.indexOf(f.type)>-1&&h.reset&&h.reset();for(c=0;c<bq.length;c++)h=bq[c],u[h.name]&&!O[h.name]&&(O[h.name]=!0,h[R](f))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var R=f.changedTouches[0],u=f.type;if(u==="touchstart")VPt=R.clientX,Ype=R.clientY,vO5=!1;else if(u==="touchmove"&&!vO5){vO5=!0;u="auto";for(var O=sAD(f),c=0,h;c<O.length;c++)if(h=O[c],h.__polymerGesturesTouchAction){u=h.__polymerGesturesTouchAction;break}O=!1;c=Math.abs(VPt-R.clientX);R=Math.abs(Ype-R.clientY);f.cancelable&&(u==="none"?O=!0:u==="pan-x"?O=R>c:u==="pan-y"&&(O=c>R));O?f.preventDefault():
pT("track")}};
Da=function(f,R,u){return j2[R]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,R,u),!0):!1};
JZ=function(f,R,u){return j2[R]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,R,u),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,R,u){var O=j2[R],c=O.deps,h=O.name,l=f.__polymerGestures;l||(f.__polymerGestures=l={});for(var K=0,q,F;K<c.length;K++)q=c[K],Up0&&TW5.indexOf(q)>-1&&q!=="click"||((F=l[q])||(l[q]=F={_count:0}),F._count===0&&f.addEventListener(q,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,PAl(q)),F[h]=(F[h]||0)+1,F._count=(F._count||0)+1);f.addEventListener(R,u);O.touchAction&&_.zO(f,O.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,R,u){var O=j2[R],c=O.deps;O=O.name;var h=f.__polymerGestures;if(h)for(var l=0,K,q;l<c.length;l++)K=c[l],(q=h[K])&&q[O]&&(q[O]=(q[O]||1)-1,q._count=(q._count||1)-1,q._count===0&&f.removeEventListener(K,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,PAl(K)));f.removeEventListener(R,u)};
irt=function(f){bq.push(f);for(var R=0;R<f.emits.length;R++)j2[f.emits[R]]=f};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){for(var R=0,u;R<bq.length;R++){u=bq[R];for(var O=0,c;O<u.emits.length;O++)if(c=u.emits[O],c===f)return u}return null};
_.zO=function(f,R){Hr2&&f instanceof HTMLElement&&TO.run(function(){f.style.touchAction=R});
f.__polymerGesturesTouchAction=R};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,R,u){R=new Event(R,{bubbles:!0,cancelable:!0,composed:!0});R.detail=u;(0,_.Qy)(f).dispatchEvent(R);R.defaultPrevented&&(f=u.preventer||u.sourceEvent)&&f.preventDefault&&f.preventDefault()};
pT=function(f){f=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f.info&&(f.info.prevent=!0)};
HC=function(f,R,u,O){R&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,f,{x:u.clientX,y:u.clientY,sourceEvent:u,preventer:O,prevent:function(c){return pT(c)}})};
rx5=function(f,R,u){if(f.prevent)return!1;if(f.started)return!0;u=Math.abs(f.y-u);return Math.abs(f.x-R)>=5||u>=5};
fmB=function(f,R,u){if(R){var O=f.moves[f.moves.length-2],c=f.moves[f.moves.length-1],h=c.x-f.x,l=c.y-f.y,K=0;if(O){var q=c.x-O.x;K=c.y-O.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,"track",{state:f.state,x:u.clientX,y:u.clientY,dx:h,dy:l,ddx:q,ddy:K,sourceEvent:u,hover:function(){return gO7(u.clientX,u.clientY)}})}};
uZq=function(f,R,u){var O=Math.abs(R.clientX-f.x),c=Math.abs(R.clientY-f.y),h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u||R);!h||RLh[h.localName]&&h.hasAttribute("disabled")||!(isNaN(O)||isNaN(c)||O<=25&&c<=25||Sp2(R))||f.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,"tap",{x:R.clientX,y:R.clientY,sourceEvent:R,preventer:u})};
O92=function(f,R,u,O,c){var h;c&&(h=typeof u==="object"&&u!==null)&&(O=f.__dataTemp[R]);O=O!==u&&(O===O||u===u);h&&O&&(f.__dataTemp[R]=u);return O};
XBe=function(){if(II&&!M1){if(!cF0){cF0=!0;var f=document.createElement("style");f.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(f)}return!0}return!1};
Z9P=function(){return hL0};
lmt=function(f,R){hL0=f;Object.setPrototypeOf(f,R.prototype);new R;hL0=null};
kBn=function(f,R){for(var u=0;u<R.length;u++){var O=R[u];if(!!f!=!!O.__hideTemplateChildren__)if(O.nodeType===Node.TEXT_NODE)f?(O.__polymerTextContent__=O.textContent,O.textContent=""):O.textContent=O.__polymerTextContent__;else if(O.localName==="slot")if(f)O.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Qy)((0,_.Qy)(O).parentNode).replaceChild(O.__polymerReplaced__,O);else{var c=O.__polymerReplaced__;c&&(0,_.Qy)((0,_.Qy)(c).parentNode).replaceChild(O,c)}else O.style&&(f?(O.__polymerDisplay__=
O.style.display,O.style.display="none"):O.style.display=O.__polymerDisplay__);O.__hideTemplateChildren__=f;O._showHideChildren&&O._showHideChildren(f)}};
KGh=function(f){return(f=f.__dataHost)&&f._methodHost||f};
am7=function(f,R,u){var O=u.mutableData?qYP:PC;Uu.mixin&&(O=Uu.mixin(O));var c=function(){return O.apply(this,arguments)||this};
_.y(c,O);c.prototype.__templatizeOptions=u;c.prototype._bindTemplate(f);AF0(c,f,R,u);return c};
WGn=function(f,R,u,O){var c=u.forwardHostProp;if(c&&R.hasHostProps){var h=f.localName=="template",l=R.templatizeTemplateClass;if(!l){if(h){var K=u.mutableData?FGB:wBB;l=function(){return K.apply(this,arguments)||this};
_.y(l,K);l=R.templatizeTemplateClass=l}else{var q=f.constructor;l=function(){return q.apply(this,arguments)||this};
_.y(l,q);l=R.templatizeTemplateClass=l}var F=R.hostProps,w;for(w in F)l.prototype._addPropertyEffect("_host_"+w,l.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:mmt(c)}),l.prototype._createNotifyingProperty("_host_"+w);e2&&O&&Qml(R,u,O)}f.__dataProto&&Object.assign(f.__data,f.__dataProto);if(h)lmt(f,l),f.__dataTemp={},f.__dataPending=null,f.__dataOld=null,f._enableProperties();else{Object.setPrototypeOf(f,l.prototype);R=R.hostProps;for(var m in R)m="_host_"+m,m in f&&(R=f[m],delete f[m],f.__data[m]=
R)}}};
mmt=function(f){return function(R,u,O){f.call(R.__templatizeOwner,u.substring(6),O[u])}};
AF0=function(f,R,u,O){var c=u.hostProps||{},h;for(h in O.instanceProps){delete c[h];var l=O.notifyInstanceProp;l&&f.prototype._addPropertyEffect(h,f.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ERP(l)})}if(O.forwardHostProp&&R.__dataHost)for(var K in c)u.hasHostProps||(u.hasHostProps=!0),f.prototype._addPropertyEffect(K,f.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:tn7()})};
ERP=function(f){return function(R,u,O){f.call(R.__templatizeOwner,R,u,O[u])}};
tn7=function(){return function(f,R,u){f.__dataHost._setPendingPropertyOrPath("_host_"+R,u[R],!0,!0)}};
Uu=function(f,R,u){if(GO&&!KGh(f))throw Error("Hd");u=u||{};if(f.__templatizeOwner)throw Error("Id");f.__templatizeOwner=R;var O=(R?R.constructor:PC)._parseTemplate(f),c=O.templatizeInstanceClass;c||(c=am7(f,O,u),O.templatizeInstanceClass=c);var h=KGh(f);WGn(f,O,u,h);u=function(){return c.apply(this,arguments)||this};
_.y(u,c);u.prototype._methodHost=h;u.prototype.__dataHost=f;u.prototype.__templatizeOwner=R;u.prototype.__hostProps=O.hostProps;return u};
Qml=function(f,R,u){u=u.constructor._properties;f=f.propertyEffects;R=R.instanceProps;for(var O in f)if(!(u[O]||R&&R[O]))for(var c=f[O],h=0;h<c.length;h++){var l=c[h].info.part;if(!l.signature||!l.signature.static){console.warn("Property '"+O+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
CXn=function(f,R){for(var u;R;)if(u=R.__dataHost?R:R.__templatizeInstance)if(u.__dataHost!=f)R=u.__dataHost;else return u;else R=(0,_.Qy)(R).parentNode;return null};
BC=function(f){return f.localName==="slot"};
yF0=function(){for(var f=oI.prototype,R="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),u={},O=0;O<R.length;u={method$jscomp$30:void 0},O++)u.method$jscomp$30=R[O],f[u.method$jscomp$30]=function(c){return function(){return this.node[c.method$jscomp$30].apply(this.node,arguments)}}(u)};
dmn=function(f,R){for(var u={},O=0;O<R.length;u={name$jscomp$379:void 0},O++)u.name$jscomp$379=R[O],Object.defineProperty(f,u.name$jscomp$379,{get:function(c){return function(){return this.node[c.name$jscomp$379]}}(u),
configurable:!0})};
NhD=function(){for(var f=oI.prototype,R=["textContent","innerHTML","className"],u={},O=0;O<R.length;u={name$jscomp$380:void 0},O++)u.name$jscomp$380=R[O],Object.defineProperty(f,u.name$jscomp$380,{get:function(c){return function(){return this.node[c.name$jscomp$380]}}(u),
set:function(c){return function(h){this.node[c.name$jscomp$380]=h}}(u),
configurable:!0})};
LGD=function(){xV=document.documentElement.getAttribute("dir");xV=document.documentElement.getAttribute("dir");for(var f=0;f<S2.length;f++){var R=S2[f];R.__autoDirOptOut||R.setAttribute("dir",xV)}};
Dm7=function(){$V=!0;requestAnimationFrame(function(){$V=!1;b95(pBB);setTimeout(function(){for(var f=0,R=ge.length;f<R;f++)jmn(ge.shift())})})};
b95=function(f){for(;f.length;)jmn(f.shift())};
jmn=function(f){var R=f[0],u=f[1];f=f[2];try{u.apply(R,f)}catch(O){setTimeout(function(){throw O;})}};
_.JF0=function(f,R,u){$V||Dm7();pBB.push([f,R,u])};
_.su=function(f,R,u){$V||Dm7();ge.push([f,R,u])};
H97=function(f,R){R=R===void 0?!1:R;if(!zL0||!Thn||!zL0.handlesDynamicScoping)return null;var u=Thn.ScopingShim;if(!u)return null;var O=u.scopeForNode(f),c=(0,_.Qy)(f).getRootNode(),h=function(l){if((0,_.Qy)(l).getRootNode()===c){var K=Array.from(zL0.nativeMethods.querySelectorAll.call(l,"*"));K.push(l);for(l=0;l<K.length;l++){var q=K[l];if((0,_.Qy)(q).getRootNode()===c){var F=u.currentScopeForNode(q);F!==O&&(F!==""&&u.unscopeNode(q,F),u.scopeNode(q,O))}}}};
h(f);return R?(R=new MutationObserver(function(l){for(var K=0;K<l.length;K++)for(var q=l[K],F=0;F<q.addedNodes.length;F++){var w=q.addedNodes[F];w.nodeType===Node.ELEMENT_NODE&&h(w)}}),R.observe(f,{childList:!0,
subtree:!0}),R):null};
ImX=function(){document.body.removeAttribute("unresolved")};
GBq=function(f){var R=f=f.replace(Mnn,"").replace(PXe,""),u=new UmB;u.start=0;u.end=R.length;for(var O=u,c=0,h=R.length;c<h;c++)if(R[c]==="{"){O.rules||(O.rules=[]);var l=O,K=l.rules[l.rules.length-1]||null;O=new UmB;O.start=c+1;O.parent=l;O.previous=K;l.rules.push(O)}else R[c]==="}"&&(O.end=c+1,O=O.parent||u);return eLn(u,f)};
eLn=function(f,R){var u=R.substring(f.start,f.end-1);f.parsedCssText=f.cssText=u.trim();f.parent&&(u=R.substring(f.previous?f.previous.end:f.parent.start,f.start-1),u=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(u),u=u.replace(Bhn," "),u=u.substring(u.lastIndexOf(";")+1),u=f.parsedSelector=f.selector=u.trim(),f.atRule=u.indexOf("@")===0,f.atRule?u.indexOf("@media")===0?f.type=4:u.match(oRh)&&(f.type=7,f.keyframesName=f.selector.split(Bhn).pop()):u.indexOf("--")===
0?f.type=1E3:f.type=1);if(u=f.rules)for(var O=0,c=u.length,h=void 0;O<c&&(h=u[O]);O++)eLn(h,R);return f};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(f){return f.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var R=arguments[1],u=6-R.length;u--;)R="0"+R;return"\\"+R})};
xm5=function(f,R,u){u=u===void 0?"":u;var O="";if(f.cssText||f.rules){var c=f.rules;if(c&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c))for(var h=0,l=c.length,K=void 0;h<l&&(K=c[h]);h++)O=xm5(K,R,O);else R?R=f.cssText:(R=f.cssText,R=R.replace(SYe,"").replace($mD,""),R=R.replace(gRq,"").replace(smB,"")),(O=R.trim())&&(O="  "+O+"\n")}O&&(f.selector&&(u+=f.selector+" {\n"),u+=O,f.selector&&(u+="}\n\n"));return u};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(f){f=f[0];return!!f&&!!f.selector&&f.selector.indexOf("--")===0};
VnX=function(f){if(f=nRh[f])f._applyShimCurrentVersion=f._applyShimCurrentVersion||0,f._applyShimValidatingVersion=f._applyShimValidatingVersion||0,f._applyShimNextVersion=(f._applyShimNextVersion||0)+1};
YY7=function(f){return f._applyShimCurrentVersion===f._applyShimNextVersion};
i9B=function(f){f._applyShimValidatingVersion=f._applyShimNextVersion;f._validating||(f._validating=!0,vRe.then(function(){f._applyShimCurrentVersion=f._applyShimNextVersion;f._validating=!1}))};
fSD=function(f){if(!f)return"";typeof f==="string"&&(f=GBq(f));return xm5(f,rFh)};
RKe=function(f){!f.__cssRules&&f.textContent&&(f.__cssRules=GBq(f.textContent));return f.__cssRules||null};
OSe=function(f,R,u,O){if(f){var c=!1,h=f.type;if(O&&h===4){var l=f.selector.match(ux7);l&&(window.matchMedia(l[1]).matches||(c=!0))}h===1?R(f):u&&h===7?u(f):h===1E3&&(c=!0);if((f=f.rules)&&!c)for(c=0,h=f.length,l=void 0;c<h&&(l=f[c]);c++)OSe(l,R,u,O)}};
cdB=function(f,R){var u=f.indexOf("var(");if(u===-1)return R(f,"","","");a:{var O=0;var c=u+3;for(var h=f.length;c<h;c++)if(f[c]==="(")O++;else if(f[c]===")"&&--O===0)break a;c=-1}O=f.substring(u+4,c);u=f.substring(0,u);f=cdB(f.substring(c+1),R);h=O.indexOf(",");if(h===-1)return R(u,O.trim(),"",f);c=O.substring(0,h).trim();O=O.substring(h+1).trim();return R(u,c,O,f)};
X9t=function(f){if(nT!==void 0)return nT;if(f.__cssBuild===void 0){var R=f.getAttribute("css-build");if(R)f.__cssBuild=R;else{a:{R=f.localName==="template"?f.content.firstChild:f.firstChild;if(R instanceof Comment&&(R=R.textContent.trim().split(":"),R[0]==="css-build")){R=R[1];break a}R=""}if(R!==""){var u=f.localName==="template"?f.content.firstChild:f.firstChild;u.parentNode.removeChild(u)}f.__cssBuild=R}}return f.__cssBuild||""};
ZSq=function(f,R,u,O){for(var c=R._noAccessors,h=Object.getOwnPropertyNames(R),l=0;l<h.length;l++){var K=h[l];if(!(K in O))if(c)f[K]=R[K];else{var q=Object.getOwnPropertyDescriptor(R,K);q&&(q.configurable=!0,Object.defineProperty(f,K,q))}}for(var F in hK7)R[F]&&(u[F]=u[F]||[],u[F].push(R[F]))};
lSn=function(f,R,u){R=R||[];for(var O=f.length-1;O>=0;O--){var c=f[O];c?Array.isArray(c)?lSn(c,R):R.indexOf(c)<0&&(!u||u.indexOf(c)<0)&&R.unshift(c):console.warn("behavior is null, check for missing or 404 import")}return R};
kan=function(f,R){for(var u in R){var O=f[u],c=R[u];f[u]=!("value"in c)&&O&&"value"in O?Object.assign({value:O.value},c):c}};
Adt=function(f,R,u){var O={},c=function(){return R.apply(this,arguments)||this};
_.y(c,R);c._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(l)for(var q=0,F;q<l.length;q++)F=l[q],F.properties&&this.createProperties(F.properties),F.observers&&this.createObservers(F.observers,F.properties);f.properties&&this.createProperties(f.properties);f.observers&&this.createObservers(f.observers,f.properties);this._prepareTemplate()}else R._finalizeClass.call(this)};
c.prototype.created=function(){R.prototype.created.call(this);var q=O.created;if(q)for(var F=0;F<q.length;F++)q[F].call(this)};
c.prototype._registered=function(){var q=c.prototype;if(!q.hasOwnProperty("__hasRegisterFinished")){q.__hasRegisterFinished=!0;R.prototype._registered.call(this);II&&K(q);q=Object.getPrototypeOf(this);var F=O.beforeRegister;if(F)for(var w=0;w<F.length;w++)F[w].call(q);if(F=O.registered)for(w=0;w<F.length;w++)F[w].call(q)}};
c.prototype._applyListeners=function(){R.prototype._applyListeners.call(this);var q=O.listeners;if(q)for(var F=0;F<q.length;F++){var w=q[F];if(w)for(var m in w)this._addMethodEventListenerToNode(this,m,w[m])}};
c.prototype._ensureAttributes=function(){var q=O.hostAttributes;if(q)for(var F=q.length-1;F>=0;F--){var w=q[F],m;for(m in w)this._ensureAttribute(m,w[m])}R.prototype._ensureAttributes.call(this)};
c.prototype.ready=function(){R.prototype.ready.call(this);var q=O.ready;if(q)for(var F=0;F<q.length;F++)q[F].call(this)};
c.prototype.attached=function(){R.prototype.attached.call(this);var q=O.attached;if(q)for(var F=0;F<q.length;F++)q[F].call(this)};
c.prototype.detached=function(){R.prototype.detached.call(this);var q=O.detached;if(q)for(var F=0;F<q.length;F++)q[F].call(this)};
c.prototype.attributeChanged=function(q,F,w){R.prototype.attributeChanged.call(this);var m=O.attributeChanged;if(m)for(var W=0;W<m.length;W++)m[W].call(this,q,F,w)};
_.Vy.Object.defineProperties(c,{properties:{configurable:!0,enumerable:!0,get:function(){var q={};if(l)for(var F=0;F<l.length;F++)kan(q,l[F].properties);kan(q,f.properties);return q}},
observers:{configurable:!0,enumerable:!0,get:function(){var q=[];if(l)for(var F=0,w;F<l.length;F++)w=l[F],w.observers&&(q=q.concat(w.observers));f.observers&&(q=q.concat(f.observers));return q}}});
if(u){Array.isArray(u)||(u=[u]);var h=R.prototype.behaviors;var l=lSn(u,null,h);c.prototype.behaviors=h?h.concat(u):l}var K=function(q){if(l)for(var F=l,w=0;w<F.length;w++)ZSq(q,F[w],O,Kz7);ZSq(q,f,O,qXP)};
II||K(c.prototype);c.generatedFrom=f;return c};
mSX=function(f){var R=typeof f!=="string"?f:{is:f,notifyObserversOnUndefined:!0};R.fastInit===void 0&&(R.fastInit=!0);return function(u){if(!R.disableInheritanceCheck&&Object.getPrototypeOf(u.prototype).constructor!==_.YV)throw Error("Md");var O=u.prototype;O.is=R.is;t67(O,"created",function(){this.hostElement=this;this.polymerController=this});
aSl(O,u,R.fastInit);R.notifyObserversOnUndefined&&(O._overrideLegacyUndefined=!0);if(Fz7)for(var c=_.Z(Object.getOwnPropertyNames(O)),h=c.next();!h.done;h=c.next()){h=h.value;var l=Object.getOwnPropertyDescriptor(O,h);l.enumerable===!1&&(l.enumerable=!0,Object.defineProperty(O,h,l))}if("template"in u)var K=function(){return u.template};
else R.template!==void 0&&(K=R.template);if(K!==void 0){var q;Object.defineProperty(O,"_template",{get:function(){q===void 0&&(q=K());return q},
set:function(F){q=F},
configurable:!0,enumerable:!0})}Polymer(O);u[w92]=O}};
QG0=function(f){f=f===void 0?{}:f;f.fastInit===void 0&&(f.fastInit=!0);return function(R){if(!f.disableInheritanceCheck&&Object.getPrototypeOf(R.prototype).constructor!==vC)throw Error("Nd");aSl(R.prototype,R,f.fastInit)}};
aSl=function(f,R,u){u=u===void 0?!1:u;Wzq(R);u?t67(f,"created",function(){this.disableEnforceFastDefaultValuesCheck||Ej0(R,this)}):t67(f,"ready",function(){for(var O={},c=_.Z(Cet(this.behaviors)),h=c.next();!h.done;h=c.next())h=h.value,h.properties&&Object.assign(O,tgn(this,h.properties));
Object.assign(O,tgn(this,this.properties));Ej0(R,this);c=_.Z(Object.keys(O));for(h=c.next();!h.done;h=c.next())h=h.value,this[h]=O[h]})};
Ej0=function(f,R){if(Fz7){f=new f;for(var u=_.Z(Object.getOwnPropertyNames(f)),O=u.next();!O.done;O=u.next())O=O.value,R[O]=f[O];for(u=R;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){O=_.Z(Object.getOwnPropertyNames(u));for(var c=O.next();!c.done;c=O.next())c=c.value,f.hasOwnProperty(c)||Object.defineProperty(f,c,CkB(R,c))}}else f.apply(R)};
CkB=function(f,R){return{get:function(){var u=f[R];return u instanceof Function?u.bind(f):u},
set:function(u){f[R]=u}}};
tgn=function(f,R){if(!R)return{};for(var u={},O=_.Z(Object.keys(R)),c=O.next();!c.done;c=O.next())if(c=c.value,!R[c].readOnly){var h=f[c];h!==void 0&&(u[c]=h)}return u};
Wzq=function(f){var R=new f;f=f.prototype.properties||{};for(var u=_.Z(Object.keys(f)),O=u.next();!O.done;O=u.next())if(O=O.value,R.hasOwnProperty(O)){var c=f[O];typeof c==="function"&&(f[O]=c={type:c});R[O]!=null&&c.type===Object&&(c.type=ydq(R[O].constructor))}};
ydq=function(f){for(var R=_.Z(dSh),u=R.next();!u.done;u=R.next())if(u=u.value,f===u)return u;return Object};
NI2=function(f){return function(R,u){R.behaviors=R.behaviors||[];R.behaviors.push(f||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",R,u).prototype:void 0));Object.defineProperty(R,u,{get:function(){return this},
enumerable:!0,configurable:!0})}};
LzX=function(f){f=f===void 0?{}:f;return function(R,u){R.properties=R.properties||{};f.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?f.type=ydq(Reflect.getMetadata("design:type",R,u)):f.type=String);var O=f,c=R.properties[u];R.properties[u]=c?Object.assign({},c,O):O}};
bSP=function(f){return function(R,u){R.listeners=R.listeners||{};R.listeners[f]=u}};
p9B=function(){var f=_.yK.apply(0,arguments);if(f.length===0)throw Error("Od");return function(R,u){R.observers=R.observers||[];R.observers.push(u+"("+f.join(",")+")")}};
jG0=function(){var f=_.yK.apply(0,arguments);return function(R,u,O){var c=Object.getOwnPropertyDescriptor(R,u).get,h="__compute__"+u;Object.defineProperty(R,h,{value:c,enumerable:!0});R.properties=R.properties||{};c=R.properties[u];c||(c={},R.properties[u]=c);c.computed=h+"("+f.join(",")+")";O.get=void 0}};
_.iq=function(f,R,u){_.d9.call(this);this.JSC$9214_id_=null;this.usingListeners_=!1;this.JSC$9214_listener_=f;this.handler_=u;this.JSC$9214_win_=R||window;this.callback_=(0,_.NG)(this.JSC$9216_doAction_,this)};
re=function(f){this.range_=f};
fa=function(f){this.range_=f};
Om=function(f,R,u){_.d9.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=f;this.scrollTimer_=new _.R$(50);this.JSC$9293_eventHandler_=new _.uE(this);this.scrollDelta_=new _.b_;this.containerIsActuallyContent_=f.tagName==="BODY"||f.tagName==="HTML";this.containerBounds_=DSX(f);this.containerIsActuallyContent_&&(f=_.qg(),this.containerBounds_.height=f.height,this.containerBounds_.width=f.width);this.margin_=R||0;if(R){if(R=this.containerBounds_.clone(),f=this.margin_){var O=
Math.min(f,R.height*.25);R.top+=O;R.height-=2*O;f=Math.min(f,R.width*.25);R.left+=f;R.width-=2*f}}else R=this.containerBounds_;this.scrollBounds_=R;u||this.JSC$9293_eventHandler_.listen(_.jF(this.containerNode_),"mousemove",this.JSC$9295_onMouseMove);this.JSC$9293_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9295_onTick_)};
_.cc=function(f){this.mechanism=f};
XO=function(f,R){this.JSC$9391_key_=f;this.JSC$9391_value_=R};
zKq=function(f){if(f>=55296&&f<=57343||f>1114111)return"\ufffd";f in Jdq&&(f=Jdq[f]);var R="";f>65535&&(f-=65536,R+=String.fromCharCode(f>>>10&1023|55296),f=56320|f&1023);return R+=String.fromCharCode(f)};
TIn=function(f,R){return f<R?1:-1};
IS5=function(){return function(f){return f.charAt(1)==="#"?f.charAt(2)==="X"||f.charAt(2)==="x"?zKq(parseInt(f.substr(3),16)):zKq(parseInt(f.substr(2),10)):HS7[f.slice(1,-1)]}};
USn=function(f){return f.slice(1,f.length-1).trim().replace(Mgl,function(R){return Pk7[R]||" "})};
hj=function(f){return f===32||f===9};
Zv=function(f,R){return R<f.length?f.charCodeAt(R):-1};
eKl=function(f){for(;f;){if(f._lastLineBlank)return!0;var R=f.type;if(R==="list"||R==="item")f=f._lastChild;else break}return!1};
lE=function(f){if(Gat.test(f)){var R=1,u=0,O=0;for(f[u]=="|"&&u++;u<f.length;){switch(f[u]){case "|":O=1;break;case " ":break;case "\t":break;default:O&&(O=0,R++)}u++}return BI2.test(f)?-R:R}return 0};
oje=function(f){return f=="table"||f=="row"||f=="cell"};
xSt=function(){return new k7("document",[[1,1],[0,0]])};
SXe=function(){};
Ka=function(){var f={safe:!1};f=f||{};f.softbreak=f.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=f};
VgX=function(f,R){var u="";if(f)if(f=f.toLowerCase(),f===" "||$S7.test(f))u="space";else if(gjD.test(f))u="esc";else if(f.length==1){if(!R||sGn.test(f))u=f}else u=njD.test(f)?f.replace("arrow",""):f=="multiply"?"*":f;return u};
rd7=function(f,R){var u=f.hasModifiers;if(R.key)u=VgX(R.key,u);else if(R.detail&&R.detail.key)u=VgX(R.detail.key,u);else{u=R.keyIdentifier;var O="";u&&(u in YXl?O=YXl[u]:vje.test(u)?(u=parseInt(u.replace("U+","0x"),16),O=String.fromCharCode(u).toLowerCase()):O=u.toLowerCase());(u=O)||(u=R.keyCode,O="",Number(u)&&(u>=65&&u<=90?O=String.fromCharCode(32+u):u>=112&&u<=123?O="f"+(u-112+1):u>=48&&u<=57?O=String(u-48):u>=96&&u<=105?O=String(u-96):O=iSn[u]),u=O);u=u||""}return u===f.key&&(!f.hasModifiers||
!!R.shiftKey===!!f.shiftKey&&!!R.ctrlKey===!!f.ctrlKey&&!!R.altKey===!!f.altKey&&!!R.metaKey===!!f.metaKey)};
Rv0=function(f){return f.length===1?{combo:f,key:f,event:"keydown"}:f.split("+").reduce(function(R,u){var O=u.split(":");u=O[0];O=O[1];u in fYn?(R[fYn[u]]=!0,R.hasModifiers=!0):(R.key=u,R.event=O||"keydown");return R},{combo:f.split(":").shift()})};
uAh=function(f){return f.trim().split(" ").map(function(R){return Rv0(R)})};
O6B=function(f,R){if(f&&f.fn){var u=f.fn;f.fn=function(){try{u.apply(this,arguments)}catch(O){if(O instanceof qs)console.warn("Argument '"+O.arg+"'"+(R?" for method '"+R+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw O;}}}return f};
cMD=function(){var f=_.yK.apply(0,arguments);return f.length===0?function(R){return R}:f.length===1?f[0]:f.reduce(function(R,u){return function(){return R(u.apply(null,_.yq(_.yK.apply(0,arguments))))}})};
Xoq=function(){var f=_.yK.apply(0,arguments);return function(R){return function(u,O){u=R(u,O);var c=function(){throw Error("ye");},h={getState:u.getState,
dispatch:function(l){return c.apply(null,[l].concat(_.yq(_.yK.apply(1,arguments))))}};
O=f.map(function(l){return l(h)});
c=cMD.apply(null,_.yq(O))(u.dispatch);return Object.assign({},u,{dispatch:c})}}};
lYn=function(f){Object.keys(f).forEach(function(R){var u=f[R];if(typeof u(void 0,{type:hv7})==="undefined")throw Error("ze`"+R);if(typeof u(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Z62()})==="undefined")throw Error("Ae`"+R+"`"+hv7);})};
Aj=function(f){for(var R=Object.keys(f),u={},O=0;O<R.length;O++){var c=R[O];typeof f[c]==="function"&&(u[c]=f[c])}var h=Object.keys(u);try{lYn(u)}catch(K){var l=K}return function(K,q){K=K===void 0?{}:K;if(l)throw l;for(var F=!1,w={},m=0;m<h.length;m++){var W=h[m],C=K[W],d=(0,u[W])(C,q);if(typeof d==="undefined")throw K=q&&q.type,Error("Be`"+(K?'"'+String(K)+'"':"(unknown type)")+"`"+W);w[W]=d;F=F||d!==C}return(F=F||h.length!==Object.keys(K).length)?w:K}};
kRP=function(f,R,u){function O(){if(w)throw Error("Ce");return K}
function c(C){if(typeof C!=="function")throw Error("De`"+typeof C);if(w)throw Error("Ee");var d=!0;F===q&&(F=q.slice());F.push(C);return function(){if(d){if(w)throw Error("Fe");d=!1;F===q&&(F=q.slice());var p=F.indexOf(C);F.splice(p,1);q=null}}}
function h(C){if(typeof C!=="object"||C===null)var d=!1;else{for(d=C;Object.getPrototypeOf(d)!==null;)d=Object.getPrototypeOf(d);d=Object.getPrototypeOf(C)===d}if(!d)throw Error("Ge`"+typeof C);if(typeof C.type==="undefined")throw Error("He");if(w)throw Error("Ie");try{w=!0,K=l(K,C)}finally{w=!1}d=q=F;for(var p=0;p<d.length;p++)(0,d[p])();return C}
if(typeof R==="function"&&typeof u==="function"||typeof u==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof R==="function"&&typeof u==="undefined"&&(u=R,R=void 0);if(typeof u!=="undefined"){if(typeof u!=="function")throw Error("Ke`"+typeof u);return u(kRP)(f,R)}if(typeof f!=="function")throw Error("Le`"+typeof f);var l=f,K=R,q=[],F=q,w=!1;h({type:hv7});var m={},W=(m.dispatch=h,m.subscribe=c,m.getState=O,m.replaceReducer=function(C){if(typeof C!=="function")throw Error("Me`"+
typeof C);l=C;h({type:KO0});return W},m[q0q]=function(){var C={};
return C.subscribe=function(d){function p(){d.next&&d.next(O())}
if(typeof d!=="object"||d===null)throw new TypeError("Ne`"+typeof d);p();return{unsubscribe:c(p)}},C[q0q]=function(){return this},C},m);
return W};
AMB=function(f){function R(){c&&(c=!1,f());h&&O()}
function u(){requestAnimationFrame(R)}
function O(){var K=Date.now();if(c){if(K-l<2)return;h=!0}else c=!0,h=!1,setTimeout(u,20);l=K}
var c=!1,h=!1,l=0;return O};
a$=function(f){return typeof f==="number"?f:parseFloat(f)||0};
aYB=function(f){return _.yK.apply(1,arguments).reduce(function(R,u){return R+a$(f["border-"+u+"-width"])},0)};
_.N=function(f,R){R=jy(pj(R));f.innerHTML=R};
mHD=function(f){var R=FOh;R||(R=wo7(),R=FOh=_.dq.transpose(R));R=R[f];return typeof R==="string"?R:_.FO(f)};
Qtq=function(f){f=String(f).toLowerCase();var R=wo7()[f];return typeof R==="string"?R:_.wu(f)};
WOl=function(f){f=f.toLowerCase();f=wo7()[f];return typeof f==="string"?f:null};
wo7=function(){if(!ET2){for(var f=Object.assign({},tTe),R=_.Z(CHn),u=R.next();!u.done;u=R.next())u=u.value,f[u.toLowerCase()]=u;ET2=f}return ET2};
NZn=function(f,R){var u=window.customElements;return u&&u.get(f)||yMP[f]===!0?2:R.name==="HTMLUnknownElement"?1:R.name==="HTMLElement"&&dH2.test(f)?3:0};
poX=function(f,R){switch(R){case "innerHTML":return LOt(f)===1?2:null;case "textContent":return f=LOt(f),f===1||f===6?1:null;default:var u,O;return(O=(u=b60[f.localName])==null?void 0:u[R])!=null?O:null}};
LOt=function(f){var R=f.localName,u=NZn(R,f.constructor);switch(u){case 0:case 1:return jtX(R,f);case 3:case 2:return 1;default:_.km(u,"got an unknown element classification")}};
jtX=function(f,R){var u=Object.hasOwnProperty.call(DHh,f)?DHh[f]:null;return u!==null?u:Object.hasOwnProperty.call(JM5,f)&&R instanceof SVGElement?JM5[f]:null};
zv5=function(f,R){return R};
H6h=function(f){return(f=f.split(TZ2,2))?{url:f[0],metadata:f[1]}:null};
MTB=function(f){var R=String(f.url).replace(IYn,encodeURIComponent);if(f=f.metadata){IYn.lastIndex=0;if(IYn.test(f))return null;R+=" "+f}return R};
GR7=function(f){function R(F){var w=F.localName;if(!F.getAttribute("is")&&NZn(w,F.constructor)===2){var m;return(m=q)!=null?m:q=document.createElement("polyresinuncustomized")}(F=K[w])||(F=K[w]=document.createElement(w));return F}
var u=f.reportHandler||void 0,O=f.safeTypesBridge||PH2,c=/^$/;if(f=f.allowedIdentifierPrefixes){f=_.Z(f);for(var h=f.next();!h.done;h=f.next())c=new RegExp(c.source+"|^"+_.UHl(h.value))}u&&u(!1,"initResin",null);var l=evh(c,O,u),K={},q=null;return function(F,w,m){var W=F.nodeType;if(W!==Node.ELEMENT_NODE){if(W===Node.TEXT_NODE){w=F.parentElement;m=!w;if(w&&w.nodeType===Node.ELEMENT_NODE){W=w.localName;var C=NZn(W,w.constructor);switch(C){case 0:case 1:w=jtX(W,w);m=w===1||w===6;break;case 3:case 2:m=
!0;break;default:_.km(C,"got an unknown element classification")}}if(m)return function(M){return""+O(M,"STRING",M)}}return function(M){if(!M&&M!==document.all)return M;
u&&u(!0,"Failed to sanitize "+(F.parentElement&&F.parentElement.nodeName)+" #text node to value "+M,F.parentElement);return ma}}var d=F.localName;
W=R(F);var p=null;switch(m){case "attribute":if(Qtq(w)in W)break;return function(M){return M};
case "property":if(w in W){p=poX(W,w);break}if((C=WOl(w))&&C in W)break;return function(M){return M};
default:_.km(m,"got an unknown resin type, expected either 'property' or 'attribute'")}var J=m==="attribute"?w.toLowerCase():mHD(w);p||(p=Knh(d,J,function(M){var P=F.getAttribute(M);return!P||/[\[\{]/.test(M)?null:P}));
return function(M){var P=QP,g=null;if(!M&&M!==document.all)return M;if(p!=null){var x=l[p],fh=x.safeType;g=x.safeReplacement;fh&&(P=O(M,fh,QP));P===QP&&(x.filterString?(P=String(O(M,"STRING",M)),P=x.filterString(d,J,P)):x.filterRaw&&(P=x.filterRaw(d,J,M,F)),P===g&&(P=QP))}P===QP&&(P=g||ma,u&&u(!0,"Failed to sanitize attribute of <"+d+">: <"+d+" "+J+'="'+M+'">',F));return P}}};
evh=function(f,R,u){return[,{filterRaw:function(O,c,h){return h},
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:BZn,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:BZn,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ma,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:oT2,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(O,c,h){h=
String(h).toLowerCase();return a97(O,c,h)?h:ma},
safeReplacement:ma,safeType:void 0},,{filterRaw:void 0,filterString:function(O,c,h){return f.test(h)?h:ma},
safeReplacement:ma,safeType:"CONSTANT"},{filterRaw:function(O,c,h,l){if(typeof h==="string")var K=(K=h.match(xHl))?K.map(H6h).filter(Boolean):[];else if(Array.isArray(h))K=h;else return BZn;var q=K;K=[];var F=[],w={};if(Array.isArray(q))for(var m=0,W=q.length;m<W;++m){var C=q[m],d=C&&C.url;if(d){var p=R(d,"URL",w);if(p){var J=p!==w;(J?K:F).push({url:J?p:d,metadata:C.metadata})}}}else F.push(q);q=F.length?JSON.stringify(F):null;F=QP;if(K.length){if(!Array.isArray(K))throw Error();F=K.map(MTB).filter(Boolean).join(" , ")||
QP}q&&u&&u(!0,"Failed to sanitize attribute value of <"+O+">: <"+O+" "+c+'="'+h+'">: '+q,l);return F===QP?BZn:F},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
S0e=function(f){var R=GR7(f);return function(u,O,c,h){return h||h===document.all?R(u,O,c)(h):h}};
Em=function(f,R){function u(){function c(K,q,F){for(q=Reflect.getMetadata("parameters",K)||[];q.length<=F;)q.push(null);q[F]=q[F]||[];q[F].push(l);Reflect.defineMetadata(q,K);return K}
var h=_.yK.apply(0,arguments);if(this instanceof u)return O.apply(this,h),this;var l=new (Function.prototype.bind.apply(u,[null].concat(_.yq(h))));c.annotation=l;return c}
var O=$Hh(R);u.prototype.toString=function(){return"@"+f};
return u.annotationCls=u};
$Hh=function(f){return function(){var R=_.yK.apply(0,arguments),u=this;f.forEach(function(O,c){c=R[c];if(Array.isArray(O))u[O[0]]=c&&c!==void 0?c:O[1];else for(var h in O)u[h]=c&&c[h]!==void 0?c[h]:O[h]})}};
gT7=function(f){return f!==void 0&&f!==null};
tj=function(f){if(typeof f==="string")return f;if(f===void 0||f===null)return""+f;if(f.overriddenName)return f.overriddenName;if(f.name)return f.name;f=f.toString();var R=f.indexOf("\n");return R===-1?f:f.substring(0,R)};
stB=function(f){f.__forward_ref__=stB;f.toString=function(){return tj(this())};
return f};
Ca=function(f){return typeof f==="function"&&f.hasOwnProperty("__forward_ref__")&&f.__forward_ref__===stB?f():f};
nTe=function(f){return f?f.map(function(R){return new (Function.prototype.bind.apply(R.type.annotationCls,[null].concat(_.yq(R.args?R.args:[]))))}):[]};
VT7=function(f){for(var R=[],u=0;u<f.length;++u){if(R.indexOf(f[u])>-1){R.push(f[u]);break}R.push(f[u])}return R};
Y0t=function(f){return f.length>1?" ("+VT7(f.slice().reverse()).map(function(R){return tj(R.token)}).join(" -> ")+")":""};
i6n=function(f,R,u,O){if(O){var c=Error("Ue``"+(O instanceof Error?O.message:O));c.ngOriginalError=O}else c=Error();c.addKey=vT0;c.keys=[R];c.injectors=[f];c.constructResolvingMessage=u;c.message=c.constructResolvingMessage();c.ngOriginalError=O;return c};
vT0=function(f,R){this.injectors.push(f);this.keys.push(R);this.message=this.constructResolvingMessage()};
rMD=function(f,R){return i6n(f,R,function(){return"No provider for "+tj(this.keys[0].token)+"!"+Y0t(this.keys)})};
fjn=function(f,R){return i6n(f,R,function(){return"Cannot instantiate cyclic dependency!"+Y0t(this.keys)})};
RJ7=function(f,R,u){return i6n(f,u,function(){var O=tj(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+O+"!"+Y0t(this.keys)+"."},R)};
ue7=function(f,R){for(var u=[],O=0,c=R.length;O<c;O++){var h=R[O];h&&h.length!=0?u.push(h.map(tj).join(" ")):u.push("?")}return Error("Ye`"+tj(f)+"`"+u.join(", ")+"`"+tj(f))};
kDX=function(f){var R=void 0,u=void 0;if(f&&f.useClass!==void 0){R=f.useClass;var O=Ca(f.useClass);var c=OpX.factory(O);O=ck2(O)}else f&&f.useExisting!==void 0?(c=function(h){return h},O=[XI0(yP.get(Ca(f.useExisting)))]):f&&f.useFactory!==void 0?(c=f.useFactory,O=hJh(f.useFactory,f.deps)):(u=f.useValue,c=function(){return f.useValue},O=Zph);
return new ljn(c,O,R,u)};
q27=function(f){return new KCD(yP.get(Ca(f.provide)),[kDX(f)],f.multi)};
ajl=function(f){f=Akl(f,[]).map(q27);for(var R=new Map,u=0;u<f.length;u++){var O=f[u],c=R.get(O.key.id);if(c){if(O.multiProvider!==c.multiProvider)throw Error("$e`"+c+"`"+O);if(O.multiProvider)for(var h=0;h<O.resolvedFactories.length;h++)c.resolvedFactories.push(O.resolvedFactories[h]);else R.set(O.key.id,O)}else c=void 0,O.multiProvider?c=new KCD(O.key,O.resolvedFactories.slice(),O.multiProvider):c=O,R.set(O.key.id,c)}return Array.from(R.values())};
Akl=function(f,R){f.forEach(function(u){if(u instanceof FCX)R.push({provide:u,useClass:u});else if(u&&typeof u=="object"&&u.provide!==void 0)R.push(u);else if(u instanceof Array)Akl(u,R);else throw Error("Xe`"+u);});
return R};
hJh=function(f,R){if(R){var u=R.map(function(O){return[O]});
return R.map(function(O){return wID(f,O,u)})}return ck2(f)};
ck2=function(f){var R=OpX.parameters(f);if(!R)return[];if(R.some(function(u){return u==null}))throw ue7(f,R);
return R.map(function(u){return wID(f,u,R)})};
wID=function(f,R,u){var O=null,c=!1;if(!Array.isArray(R))return R instanceof mUe?QgX(R.token,c,null):QgX(R,c,null);for(var h=null,l=0;l<R.length;++l){var K=R[l];if(K instanceof FCX)O=K;else if(K instanceof mUe)O=K.token;else if(K instanceof WCD)c=!0;else if(K instanceof Ezn||K instanceof tA7)h=K}O=Ca(O);if(O!=null)return QgX(O,c,h);throw ue7(f,u);};
QgX=function(f,R,u){return new Cwt(yP.get(Ca(f)),R,u)};
yk7=function(f,R){for(var u=Array(f.providers.length),O=0;O<f.providers.length;++O){var c=O;if(O<0||O>=f.providers.length)throw Error("Ze`"+O);u[c]=R(f.providers[O])}return u};
dU7=function(f){return typeof f==="function"&&OpX.parameters(f).every(function(R){return!!R})};
bpl=function(f){var R=NBn;LCe.get(f)||LCe.set(f,new R);return LCe.get(f)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(f)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(f)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f,R){var u,O;if(f.contains(R))return!0;f=_.du(f).querySelectorAll("content,slot");for(u=0;u<f.length;++u){var c=_.du(f[u]).getDistributedNodes();for(O=0;O<c.length;++O)if(c[O].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(c[O],R))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){f.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f)&&f.preventDefault();f.targetTouches&&(f=f.targetTouches[0],pI5=f.pageX,jgn=f.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 f=0,R=Ns.length;f<R;f++)document.addEventListener(Ns[f],_._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 f=0,R=Ns.length;f<R;f++)document.removeEventListener(Ns[f],_._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(f){var R=_.du(f).rootTarget;f.type!=="touchmove"&&DUn!==R&&(DUn=R,Jk7=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.du(f).path));if(!Jk7.length)return!0;if(f.type==="touchstart")return!1;f=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Jk7,f.deltaX,f.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){for(var R=[],u=f.indexOf(zJq),O=0;O<=u;O++)if(f[O].nodeType===Node.ELEMENT_NODE){var c=f[O],h=c.style;h.overflow!=="scroll"&&h.overflow!=="auto"&&(h=window.getComputedStyle(c));h.overflow!=="scroll"&&h.overflow!=="auto"||R.push(c)}return R};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f,R,u){if(R||u)for(var O=Math.abs(u)>=Math.abs(R),c=0;c<f.length;c++){var h=f[c];if(O?u<0?h.scrollTop>0:h.scrollTop<h.scrollHeight-h.clientHeight:R<0?h.scrollLeft>0:h.scrollLeft<h.scrollWidth-h.clientWidth)return h}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){var R={deltaX:f.deltaX,deltaY:f.deltaY};"deltaX"in f||("wheelDeltaX"in f&&"wheelDeltaY"in f?(R.deltaX=-f.wheelDeltaX,R.deltaY=-f.wheelDeltaY):"wheelDelta"in f?(R.deltaX=0,R.deltaY=-f.wheelDelta):"axis"in f?(R.deltaX=f.axis===1?f.detail:0,R.deltaY=f.axis===2?f.detail:0):f.targetTouches&&(f=f.targetTouches[0],R.deltaX=pI5-f.pageX,R.deltaY=jgn-f.pageY));return R};
TBB=function(f){this.element=f;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Ijn=function(f){this.element=f;this.color=window.getComputedStyle(f).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");_.du(this.waveContainer).appendChild(this.wave);Hpn(this)};
La=function(f,R){for(var u in f)if(u.toLowerCase()===R.toLowerCase())return f[u]};
MAl=function(f,R){for(var u in f)if(u.toLowerCase()===R.toLowerCase()){delete f[u];break}};
UUq=function(f){f=_.dq.clone(f);for(var R=0;R<PwB.length;++R){var u=PwB[R],O=La(f,u);O&&(f["X-Goog-Upload-Header-"+u]=O,MAl(f,u))}return f};
eJn=function(f){f=_.dq.clone(f);MAl(f,"X-Goog-Upload-Status")};
BBh=function(f){return GDq.some(function(R){return R.test(f)})};
$Ul=function(f,R){var u;var O=(u=f.formContent)==null?void 0:u.locale;u=O==null?void 0:O.split("-")[0];O=O&&ozl.includes(O)?O:u&&ozl.includes(u)?u:void 0;O=(O!=null?O:"en").replaceAll("-","_").toLowerCase();var c;f=((c=f.initializationData)==null?0:c.useNightlyRelease)?"nightly":"live";var h;return(R==null?0:(h=R.getEnableAlohaBinarySplit)==null?0:h.call(R))?_.R0(xU2,f):_.R0(S2q,f,O)};
sge=function(f,R,u,O){if(gzl)return gzl;var c=$Ul(f,O);return gzl=R.feedbackV2GlobalObject?Promise.resolve(R.feedbackV2GlobalObject):new Promise(function(h,l){var K=_.mD("SCRIPT");_.UO(K,c);K.onload=function(){R.feedbackV2GlobalObject?h(R.feedbackV2GlobalObject):l(Error("cf"))};
K.onerror=function(){l(Error("df`"+c.toString()))};
u.body.appendChild(K)})};
VAP=function(f,R,u,O){if(nzq)return nzq;var c=$Ul(f,O);return nzq=R.feedbackV2GlobalObject?Promise.resolve(R.feedbackV2GlobalObject):new Promise(function(h,l){var K=_.mD("SCRIPT");_.UO(K,c);K.onload=function(){R.feedbackV2GlobalObject?h(R.feedbackV2GlobalObject):l(Error("cf"))};
K.onerror=function(){l(Error("df`"+c.toString()))};
u.body.appendChild(K)})};
Y2P=function(f,R,u,O,c){c=c===void 0?!0:c;var h,l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:return h=Date.now(),_.A(w,sge(f,u,O,R),2);case 2:l=w.yieldResult;if(!(c||((q=f.initializationData)==null?0:q.useNightlyRelease)||((F=f.initializationData)==null?0:F.isLocalServer))){K=l.initializeFeedbackClient(f,h,R);w.jumpTo(3);break}return _.A(w,l.initializeFeedbackClientAsync(f,h,R),4);case 4:K=w.yieldResult;case 3:return K.initiateAloha(),w.return(K)}})};
vzB=function(f,R,u,O){var c,h,l;return _.k(function(K){if(K.nextAddress==1)return c=Date.now(),_.A(K,VAP(f,u,O.document,R),2);if(K.nextAddress!=3)return h=K.yieldResult,_.A(K,h.initializeFeedbackClientAsync(f,c,R,O),3);l=K.yieldResult;l.initiateAloha();return K.return(l)})};
ip7=function(f,R,u){var O=!0;O=O===void 0?!0:O;var c,h,l,K,q,F,w,m,W,C;return _.k(function(d){c=u||_.Oe;if((h=R)==null?0:(K=(l=h).getEnableAlohaBinarySplit)==null?0:K.call(l)){q=c;if(q.isFormOpened)throw F=Error("ef"),F.name="DuplicateFormError",F;q.isFormOpened=!0;f.callbacks=f.callbacks||{};w=f.callbacks.onClose||function(){};
f.callbacks.onClose=function(p){q.isFormOpened=!1;w(p)};
try{return d.return(vzB(f,R,q,c))}catch(p){throw q.isFormOpened=!1,p;}}else{m=c;if(m.isFormOpened)throw W=Error("ef"),W.name="DuplicateFormError",W;m.isFormOpened=!0;f.callbacks=f.callbacks||{};C=f.callbacks.onClose||function(){};
f.callbacks.onClose=function(p){m.isFormOpened=!1;C(p)};
try{return d.return(Y2P(f,R,m,c.document,O))}catch(p){throw m.isFormOpened=!1,p;}}_.KG(d)})};
OdD=function(f,R){return _.k(function(u){return u.return(new Promise(function(O){var c=rk2(R!=null?R:"")+"/aloha_form_properties?productId="+f;fqe(c,function(h){h=h.target;var l=null;try{var K=JSON,q=K.stringify;if(h.JSC$7804_xhr_){var F=h.JSC$7804_xhr_.responseText;F.indexOf(")]}'\n")==0&&(F=F.substring(5));var w=(0,_.bE)(F)}else w=void 0;l=OE7(RIl,q.call(K,w))}catch(m){q=new RIl,w=uzB(),w=_.pa(w,13,!1),w=_.pa(w,14,!0),w=_.pa(w,15,!0),w=_.pa(w,20,!1),l=_.OO(q,1,w)}O(l)},"GET","",{},2E3,!0)}))})};
rk2=function(f){return BBh(f)?f:"https://www.google.com/tools/feedback"};
Zd7=function(f){f=f.match(new RegExp(co0,"gi"))||[];f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;a:{var u=_.Z(Xbn);for(var O=u.next();!O.done;O=u.next())if(O.value.test(R)){u=!1;break a}u=!0}if(!u)a:{u=_.Z(hIB);for(O=u.next();!O.done;O=u.next())if(O.value.test(R)){u=!0;break a}u=!1}if(u)return!0}return!1};
lqh=function(f){switch(f){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"}};
Kq7=function(f){if(window.crypto&&window.crypto.getRandomValues)try{var R=Array(f),u=new Uint8Array(f);window.crypto.getRandomValues(u);for(var O=0;O<R.length;O++)R[O]=u[O];return R}catch(h){}R=Array(f);for(u=0;u<f;u++){O=Date.now();for(var c=0;c<O%23;c++)R[u]=Math.random();R[u]=Math.floor(Math.random()*256)}if(k02)for(u=1,O=0;O<k02.length;O++)R[u%f]^=R[(u-1)%f]/4^k02.charCodeAt(O),u++;return R};
jd=function(f){f=Kq7(f);for(var R=[],u=0;u<f.length;u++)R.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(f[u]&63));return R.join("")};
Aoh=function(f){f&&_.Jr("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:qFX,clientScreenNonce:f})};
aq5=function(f){return _.Tf("client-screen-nonce-store",{})[f===void 0?0:f]};
Fql=function(f,R){R=R===void 0?0:R;var u=_.Tf("client-screen-nonce-store");u||(u={},_.zf("client-screen-nonce-store",u));u[R]=f};
wbP=function(f){f=f===void 0?0:f;return f===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+f};
mZq=function(f){return _.Tf(wbP(f===void 0?0:f))};
_.Jj=function(f){return(f=mZq(f===void 0?0:f))?new _.Dv({veType:f,youtubeData:void 0,jspbYoutubeData:void 0}):null};
QfD=function(){var f=_.Tf("csn-to-ctt-auth-info");f||(f={},_.zf("csn-to-ctt-auth-info",f));return f};
WqB=function(){return Object.values(_.Tf("client-screen-nonce-store",{})).filter(function(f){return f!==void 0})};
_.z4=function(f){f=aq5(f===void 0?0:f);if(!f&&!_.Hh("USE_CSN_FALLBACK",!0))return null;f||(f="UNDEFINED_CSN");return f?f:null};
tDl=function(f){for(var R=_.Z(Object.values(EIe)),u=R.next();!u.done;u=R.next())if(_.z4(u.value)===f)return!0;return!1};
CV0=function(f,R,u){var O=QfD();(u=_.z4(u))&&delete O[u];R&&(O[f]=R)};
T4=function(f){return QfD()[f]};
_.Hc=function(f,R,u,O){u=u===void 0?0:u;if(f!==aq5(u)||R!==_.Tf(wbP(u)))if(CV0(f,O,u),Fql(f,u),_.zf(wbP(u),R),R=function(){setTimeout(function(){Aoh(f)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(R)}catch(c){R()}else R()};
yoh=function(f,R){R=R===void 0?"":R;var u=[],O;for(O in f)if(f.hasOwnProperty(O)){var c=R!==""?R+"."+O:O;typeof f[O]==="object"?u.push.apply(u,_.yq(yoh(f[O],c))):u.push([c,f[O]])}u.sort();return u};
_.N4n=function(f){var R=_.yK.apply(1,arguments);if(!I$(f)||R.some(function(O){return!I$(O)}))throw Error("ff");
R=_.Z(R);for(var u=R.next();!u.done;u=R.next())dZD(f,u.value)};
dZD=function(f,R){for(var u in R)if(I$(R[u])){if(u in f&&!I$(f[u]))throw Error("gf");u in f||(f[u]={});dZD(f[u],R[u])}else if(Lq7(R[u])){if(u in f&&!Lq7(f[u]))throw Error("hf");u in f||(f[u]=[]);bd2(f[u],R[u])}else f[u]=R[u];return f};
bd2=function(f,R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,I$(u)?f.push(dZD({},u)):Lq7(u)?f.push(bd2([],u)):f.push(u);return f};
I$=function(f){return typeof f==="object"&&!Array.isArray(f)};
Lq7=function(f){return typeof f==="object"&&Array.isArray(f)};
jfe=function(f){for(var R=_.Z(Object.entries(pbl)),u=R.next();!u.done;u=R.next())if(u=_.Z(u.value),u.next(),u=u.next().value,u==="SLI_STATUS_"+f)return u;return"SLI_STATUS_UNKNOWN"};
_.Ms=function(f,R,u,O){return DZ7(f,R,function(){return new _.JoD(f,R,u,O)})};
_.zIX=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
T45=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Pc=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
HdB=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Iq2=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
MD2=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
eIh=function(f){f&&(f.dataset?f.dataset[PVe()]="true":_.Bz([_.rn(UZ7)],f,"data-loaded","true".toString()))};
G02=function(f){return f?f.dataset?f.dataset[PVe()]:f.getAttribute("data-loaded"):null};
PVe=function(){return B4t.loaded||(B4t.loaded="loaded".replace(/\-([a-z])/g,function(f,R){return R.toUpperCase()}))};
_.Um=function(f,R,u){oIB(f,R,u===void 0?null:u)};
_.SFD=function(f,R){f&&R&&(f=""+_.cG(R),(f=xZ2[f])&&_.nS7(f))};
oIB=function(f,R,u){u=u===void 0?null:u;var O=_.$Zl(f),c=document.getElementById(O),h=c&&G02(c),l=c&&!h;h?R&&R():(R&&(h=_.Z8(O,R),R=""+_.cG(R),xZ2[R]=h),l||(c=gI5(f,O,function(){G02(c)||(eIh(c),_.Vke(O),_.ZL(function(){_.vSh(O)},0))},u)))};
gI5=function(f,R,u,O){O=O===void 0?null:O;var c=_.mD("SCRIPT");c.id=R;c.onload=function(){u&&setTimeout(u,0)};
c.onreadystatechange=function(){switch(c.readyState){case "loaded":case "complete":c.onload()}};
O&&c.setAttribute("nonce",O);_.UO(c,_.b3(f));f=document.getElementsByTagName("head")[0]||document.body;f.insertBefore(c,f.firstChild);return c};
_.$Zl=function(f){var R=document.createElement("a");Lj(R,f);return"js-"+ed(R.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
sf5=function(f){var R=_.Tf("INNERTUBE_HOST_OVERRIDE");R&&(f=String(R)+String(_.G4(f)));return f};
nIt=function(f){var R={};_.E("json_condensed_response")&&(R.prettyPrint="false");return f=WFP(f,R)};
_.Bc=function(f){return nQ(f)?"same-origin":"include"};
_.o$=function(f){return nQ(f)?"same-origin":"cors"};
x7=function(f,R,u){u=u===void 0?{}:u;f={method:R===void 0?"POST":R,mode:_.o$(f),credentials:_.Bc(f)};R={};for(var O=_.Z(Object.keys(u)),c=O.next();!c.done;c=O.next())c=c.value,u[c]&&(R[c]=u[c]);Object.keys(R).length>0&&(f.headers=R);return f};
_.Sd=function(f,R){R=R===void 0?{}:R;return"service:"+f+"/"+Object.keys(R).sort().map(function(u){return u+":"+R[u]}).join("/")};
VDl=function(f){var R,u,O,c;f=(R=_.t(f,_.$7))==null?void 0:(u=R.watchEndpointSupportedOnesieConfig)==null?void 0:(O=u.html5PlaybackOnesieConfig)==null?void 0:(c=O.commonConfig)==null?void 0:c.url;if(!f)return[];R=new _.gu(f);return R.JSC$8036_domain_?["https://"+R.JSC$8036_domain_+"/generate_204"]:[]};
_.idh=function(){return YFt()||yj2()||vIq&&TA("version/")?!0:_.Tf("EOM_VISITOR_DATA")?!1:!0};
ro7=function(f){var R=f.docid||f.video_id||f.videoId||f.id;if(R)return R;R=f.raw_player_response;R||(f=f.player_response)&&(R=JSON.parse(f));return R&&R.videoDetails&&R.videoDetails.videoId||null};
fCe=function(f){return f.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
sm=function(f){return!isNaN(Number(f))&&!_.Kh(f)};
_.VP=function(f,R,u,O){O=O===void 0?!0:O;var c=_.Tf("VALID_SESSION_TEMPDATA_DOMAINS",[]),h=_.gv(window.location.href);h&&c.push(h);h=_.gv(f);if(_.g7(c,h)||!h&&_.hn(f,"/"))if(c=document.createElement("a"),Lj(c,f),f=c.href)if(f=_.G4(f),f=_.na(f))O&&!R.csn&&(R.itct||R.ved)&&(R=Object.assign({csn:_.z4()},R)),u?(u=parseInt(u,10),isFinite(u)&&u>0&&RoP(f,R,u)):RoP(f,R)};
OWh=function(f){var R=_.Tf("VALID_SESSION_TEMPDATA_DOMAINS",[]),u=_.gv(window.location.href);u&&R.push(u);u=_.gv(f);if(!(_.g7(R,u)||!u&&_.hn(f,"/")))return null;f=_.G4(f);(f=_.na(f))?(f=uwl(f),f=(f=_.wU.get(f,void 0)||null)?_.Bh(f):{}):f=null;return f};
RoP=function(f,R,u){f=uwl(f);R=R?_.As(R):"";u=u||5;_.idh()&&_.m$(f,R,u)};
uwl=function(f){for(var R=_.Z(c_0),u=R.next();!u.done;u=R.next())f=_.Y7(f,u.value);return"ST-"+ed(f).toString(36)};
XsX=function(f,R){f.commandMetadata&&_.t(f.commandMetadata,_.vc)&&_.t(f.commandMetadata,_.vc).url&&(f=_.oS(_.t(f.commandMetadata,_.vc).url).adurl)&&_.t2n(f)&&_.VP(_.G4(f),{encoded_ad_playback_context:R})};
_.hoq=function(f){if(f.requestFullscreen)f=f.requestFullscreen(void 0);else if(f.webkitRequestFullscreen)f=f.webkitRequestFullscreen();else if(f.mozRequestFullScreen)f=f.mozRequestFullScreen();else if(f.msRequestFullscreen)f=f.msRequestFullscreen();else if(f.webkitEnterFullscreen)f=f.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return f instanceof Promise?f:Promise.resolve()};
_.ru=function(f){var R;_.Mkl(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.iE()==f&&(R=document):R=f;if(R&&(f=_.Mkl(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],R))){f.call(R)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.iE=function(){var f=f===void 0?!1:f;var R=_.Mkl(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(f)for(;R&&R.shadowRoot;)R=R.shadowRoot.fullscreenElement;return R?R:null};
_.fv=function(f,R){R=R===void 0?!0:R;f.addEventListener("wheel",ZWP);f.overscrollConfig={cooldown:R}};
_.Rp=function(f){f.overscrollConfig=void 0;f.removeEventListener("wheel",ZWP)};
ZWP=function(f){var R=f.deltaY,u=f.target,O=null;if(window.Polymer&&window.Polymer.Element){if(u=f.path||f.composedPath&&f.composedPath()){u=_.Z(u);for(var c=u.next();!c.done&&(c=c.value,!lCt(c,R));c=u.next())if(c.overscrollConfig){O=c;break}}}else for(;u&&!lCt(u,R);){if(u.overscrollConfig){O=u;break}u=u.parentElement}O&&(R=O.overscrollConfig,R.cooldown?(O=f.deltaY,u=R.lastDeltaY||0,R.lastDeltaY=O,c=R.lastStopped||0,u&&c&&u>0==O>0?Math.abs(u)>=Math.abs(O)?(O=c+1200,u=!1):(O=c+600,u=!0):(O=Date.now()+
600,u=!0),O>Date.now()&&(f.preventDefault(),u&&(R.lastStopped=Date.now()))):f.preventDefault())};
lCt=function(f,R){return R<0&&f.scrollTop>0||R>0&&f.scrollTop<f.scrollHeight-f.clientHeight-1?(f=getComputedStyle(f).overflowY,f=="auto"||f=="scroll"):!1};
_.ul=function(f,R,u,O){O||(O={bubbles:!0,cancelable:!1,composed:!0});u!==null&&u!==void 0&&(O.detail=u);var c=new CustomEvent(R,O);_.E("untrack_fire_custom_event_killswitch")?f.dispatchEvent(c):Kc(function(){return void f.dispatchEvent(c)});
return c};
_.OJ=function(f,R,u,O){R=new ktt(R,!(O===void 0||!O),u);_.ul(f,"yt-action",R);return R.returnValue};
_.c_=function(f,R,u){return _.OJ(f,R,u,!0)};
_.Xa=function(f,R,u){return _.OJ(f,R,u)[0]};
_.ZW=function(f,R,u,O){R&&R.length&&R.forEach(function(c){var h=HUn(c);h&&(_.E("handle_service_request_actions")&&c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.sendPost?_.hH(u?u:f,[c]):_.c_(f,h,[c,u,O]))})};
_.hH=function(f,R){var u=[f];R&&u.push.apply(u,R);R=_.OJ(f,"yt-service-request",u);return R.length>0&&(R=R[0],_.ul(f,"yt-service-request-sent",R),R&&R.ajaxPromise)?(R.ajaxPromise.then(function(O){_.ul(f,"yt-service-request-completed",O)},function(O){_.ul(f,"yt-service-request-error",{error:O,
params:u})},f),R.ajaxPromise):_.ll()};
_.q5=function(f,R){if(_.E("handle_service_request_actions"))_.ZW(R,f,R);else{f=_.Z(f);for(var u=f.next();!u.done;u=f.next()){u=u.value;var O=void 0;((O=_.t(u,_.kE))==null?0:O.commands)?_.q5(_.t(u,_.kE).commands,R):(O=void 0,((O=_.t(u,_.AH))==null?0:O.actions)?_.q5(_.t(u,_.AH).actions,R):(O=void 0,((O=_.t(u.commandMetadata,_.vc))==null?0:O.sendPost)?_.hH(R,[u]):_.ZW(R,[u],R)))}}};
_.qV0=function(f,R,u){R=R===void 0?{}:R;typeof R==="function"&&(R={callback:R});u||R._c&&R._c.jsl&&R._c.jsl.h||_.dq.extend(R,{_c:{jsl:{h:_.Tf("GAPI_HINT_PARAMS")}}});(R.gapiHintOverride||_.Tf("GAPI_HINT_OVERRIDE"))&&(u=_.oS(document.location.href).gapi_jsh)&&_.dq.extend(R,{_c:{jsl:{h:u}}});K4n(f,R)};
_.Fa=function(f,R,u){R=R===void 0?{}:R;f=(f=f in ap?ap[f]:u)||"";u={};for(var O in R){u={key$jscomp$788:u.key$jscomp$788};u.key$jscomp$788=O;var c=function(h){return function(){return String(R[h.key$jscomp$788])}}(u);
f=f.replace(new RegExp("\\$\\{"+u.key$jscomp$788+"\\}","gi"),c);f=f.replace(new RegExp("\\$"+u.key$jscomp$788,"gi"),c)}return f};
_.wA=function(f,R){return A_7(f in ap?ap[f]:{},R)};
A_7=function(f,R){var u=_.Tf("I18N_PLURAL_RULES");u||(u=function(O){return O==1?"one":"other"});
return(f=f["case"+R]||f[u(R)])?f.replace("#",R.toString()):R+""};
wsn=function(f){var R=aC2(f),u=document.getElementById(R),O=u&&G02(u);O||u&&!O||(u=F4q(f,R,function(){if(!G02(u)){eIh(u);_.Vke(R);var c=_.mx(_.vSh,R);_.ZL(c,0)}}))};
F4q=function(f,R,u){var O=document.createElement("link");O.id=R;O.onload=function(){u&&setTimeout(u,0)};
f=_.b3(f);_.oa(O,f,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(O);return O};
aC2=function(f){var R=_.mD("A");Lj(R,Am(f));return"css-"+ed(R.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Qnn=function(f){var R=m2X();f!==R&&(R=_.Qu(),!_.E("web_autonav_allow_off_by_default")&&f||_.W_(0,141,!0),_.W_(0,140,!f),R.save())};
m2X=function(){var f=_.Qu();return _.E("web_autonav_allow_off_by_default")&&!f.getFlag(141)&&_.Tf("AUTONAV_OFF_BY_DEFAULT")?!1:!f.getFlag(140)};
W4t=function(f,R){var u,O;f=((u=f.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(O=u.videoAuthorizationToken)==null?void 0:O.credentialTransferTokens)||[];for(u=0;u<f.length;++u)if(f[u].scope===R)return f[u].token||void 0};
Ev7=function(f){for(var R=0,u=0;u<f.length;u++)R=R*31+f.charCodeAt(u),u<f.length-1&&(R%=0x800000000000);return R%1E5};
_.EJ=function(f){return _.Ph("ytcsi."+(f||"")+"data_")||t4l(f)};
_.Cz0=function(f){f=_.EJ(f);f.metadata||(f.metadata={});return f.metadata};
_.y_7=function(f){f=_.EJ(f);f.tick||(f.tick={});return f.tick};
_.d2n=function(f){f=_.EJ(f);if(f.gel){var R=f.gel;R.gelInfos||(R.gelInfos={});R.gelTicks||(R.gelTicks={})}else f.gel={gelTicks:{},gelInfos:{}};return f.gel};
_.Nw2=function(f){f=_.d2n(f);f.gelInfos||(f.gelInfos={});return f.gelInfos};
L40=function(f){var R=_.EJ(f).nonce;R||(R=jd(16),_.EJ(f).nonce=R);return R};
t4l=function(f){var R={tick:{},info:{}};_.V4("ytcsi."+(f||"")+"data_",R);return R};
bW0=function(){var f=_.Ph("ytcsi.debug");f||(f=[],_.V4("ytcsi.debug",f),_.V4("ytcsi.reference",{}));return f};
_.jn7=function(f){f=f||"";var R=ps7();if(R[f])return R[f];var u=bW0(),O={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};u.push(O);return R[f]=O};
D20=function(f){f=f||"";var R=ps7();R[f]&&delete R[f];var u=bW0(),O={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};u.push(O);R[f]=O};
ps7=function(){var f=_.Ph("ytcsi.reference");if(f)return f;bW0();return _.Ph("ytcsi.reference")};
_.zot=function(f){return J_5[f]||"LATENCY_ACTION_UNKNOWN"};
M4P=function(f,R,u){u=u===void 0?{}:u;var O=!1;_.Hh("ytLoggingEventsDefaultDisabled",!1)&&(O=!0);O=O?null:D8;u=u===void 0?{}:u;var c=Math.round(u.timestamp||(0,_.iZ)());_.C0(R,1,c<Number.MAX_SAFE_INTEGER?c:0);c=new TwX;if(u.lact)_.C0(c,1,isFinite(u.lact)?u.lact:-1);else if(u.timestamp)_.C0(c,1,-1);else{var h=_.OW();_.C0(c,1,isFinite(h)?h:-1)}if(u.sequenceGroup&&!_.E("web_gel_sequence_info_killswitch")){h=u.sequenceGroup;var l=ZU7(h),K=new HWh;_.C0(K,2,l);_.FH(K,1,h);_.OO(c,3,K);u.endOfSequence&&delete ICn[u.sequenceGroup]}_.OO(R,
33,c);(u.sendIsolatedPayload?aOD:Ftn)(f,{endpoint:"log_event",payload:R,cttAuthInfo:u.cttAuthInfo,dangerousLogToVisitorSession:u.dangerousLogToVisitorSession},O)};
_.Cv=function(){return(_.E("csi_use_time_origin")||_.E("csi_use_time_origin_tvhtml5"))&&_.tH.timeOrigin?Math.floor(_.tH.timeOrigin):_.tH.timing.navigationStart};
_.PzP=function(f,R){_.N5("_start",f,R)};
_.Lv=function(f,R){if(!_.E("web_csi_action_sampling_enabled")||!_.EJ(R).actionDisabled){var u=_.jn7(R||"");_.N4n(u.info,f);f.loadType&&(u=f.loadType,_.Cz0(R).loadType=u);_.N4n(_.Nw2(R),f);u=L40(R);R=_.EJ(R).cttAuthInfo;U2X().info(f,u,R)}};
eoD=function(){var f,R,u,O;return((O=_.vh().resolve(_.Y8(NB))==null?void 0:(f=hqn())==null?void 0:(R=f.loggingHotConfig)==null?void 0:(u=R.csiConfig)==null?void 0:u.debugTicks)!=null?O:[]).map(function(c){return Object.values(c)[0]})};
_.N5=function(f,R,u){if(!_.E("web_csi_action_sampling_enabled")||!_.EJ(u).actionDisabled){var O=L40(u),c;if(c=_.E("web_csi_debug_sample_enabled")&&O){(_.vh().resolve(_.Y8(NB))==null?0:hqn())&&!GtX&&(GtX=!0,_.N5("gcfl",(0,_.iZ)(),u));var h,l,K;c=(_.vh().resolve(_.Y8(NB))==null?void 0:(h=hqn())==null?void 0:(l=h.loggingHotConfig)==null?void 0:(K=l.csiConfig)==null?void 0:K.debugSampleWeight)||0;if(h=c!==0)b:{h=eoD();if(h.length>0)for(l=0;l<h.length;l++)if(f===h[l]){h=!0;break b}h=!1}h?(c=Ev7(O)%c!==
0,_.EJ(u).debugTicksExcludedLogged||(h={},h.debugTicksExcluded=c,_.Lv(h,u)),_.EJ(u).debugTicksExcludedLogged=!0):c=!1}if(!c){f[0]!=="_"&&Bw7(f,u,R);c=_.jn7(u||"");c.tick[f]=R||(0,_.iZ)();if(c.callback&&c.callback[f])for(c=_.Z(c.callback[f]),h=c.next();!h.done;h=c.next())h=h.value,h();c=_.d2n(u);c.gelTicks&&(c.gelTicks[f]=!0);h=_.y_7(u);c=R||(0,_.iZ)();_.E("log_repeated_ytcsi_ticks")?f in h||(h[f]=c):h[f]=c;h=_.EJ(u).cttAuthInfo;f==="_start"?U2X().baseline(O,R,h):U2X().tick(f,O,R,h);_.ovh(u);return c}}};
Bw7=function(f,R,u){if(_.tH.mark)if(f.startsWith("mark_")||(f="mark_"+f),R&&(f+=" ("+R+")"),u===void 0||_.E("web_csi_disable_alt_time_performance_mark"))_.tH.mark(f);else{u=_.E("csi_use_performance_navigation_timing")?u-_.tH.timeOrigin:u-(_.tH.timeOrigin||_.tH.timing.navigationStart);try{_.tH.mark(f,{startTime:u})}catch(O){}}};
x2e=function(){var f,R=(f=_.tH.getEntriesByType)==null?void 0:f.call(_.tH,"mark");R&&R.forEach(function(u){if(u.name.startsWith("mark_")){var O;(O=_.tH.clearMarks)==null||O.call(_.tH,u.name)}})};
_.SVD=function(){switch(IM5()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.$2n=function(f){var R={},u=function(h,l,K){l=l.match("_rid")?l.split("_rid")[0]:l;typeof K==="number"&&(K=JSON.stringify(K));h.requestIds?h.requestIds.push({endpoint:l,id:K}):h.requestIds=[{endpoint:l,id:K}]};
f=_.Z(Object.entries(f));for(var O=f.next();!O.done;O=f.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;switch(O){case "GetBrowse_rid":u(R,O,c);break;case "GetGuide_rid":u(R,O,c);break;case "GetHome_rid":u(R,O,c);break;case "GetPlayer_rid":u(R,O,c);break;case "GetSearch_rid":u(R,O,c);break;case "GetSettings_rid":u(R,O,c);break;case "GetTrending_rid":u(R,O,c);break;case "GetWatchNext_rid":u(R,O,c);break;case "yt_red":R.isRedSubscriber=!!c;break;case "yt_ad":R.isMonetized=!!c}}return R};
_.gve=function(f){var R=_.bl("aft",f);if(R)return R;R=_.Tf((f||"")+"TIMING_AFT_KEYS",["ol"]);for(var u=R.length,O=0;O<u;O++){var c=_.bl(R[O],f);if(c)return c}return NaN};
_.sn7=function(f,R){_.V4("ytglobal.timing"+(R||"")+"ready_",f)};
_.bl=function(f,R){if(f=_.y_7(R)[f])return typeof f==="number"?f:f[f.length-1]};
_.ovh=function(f){var R=_.bl("_start",f),u=_.gve(f),O=!nv5;R&&u&&O&&(lHn(V4X,new YVP(Math.round(u-R),f)),nv5=!0)};
iWP=function(f){t4l(f);vvn();x2e();f||(_.Tf("TIMING_ACTION")&&_.zf("PREVIOUS_ACTION",_.Tf("TIMING_ACTION")),_.zf("TIMING_ACTION",""))};
_.r_2=function(f){f=f===void 0?{}:f;_.MW(function(){pv();D20();iWP();_.sn7(!1);f.cttAuthInfo&&(_.EJ().cttAuthInfo=f.cttAuthInfo);_.zf("TIMING_AFT_KEYS",[]);f.isHot?_.ja({loadType:"hot"}):_.ja({loadType:"warm"});_.zf("TIMING_ACTION","");delete _.Tf("TIMING_INFO",{}).yt_lt;_.MW(_.PzP)(f.startTime,void 0)})()};
_.DW=function(f,R,u,O){R=R===void 0?{}:R;_.MW(function(){var c=u?u:f;f22(c);var h=R.sampleRate;if(!_.E("web_csi_action_sampling_enabled")||h===void 0||h<=1)h=!1;else{var l=L40(c);h=Ev7(l)%h!==0}h&&(_.EJ(c).actionDisabled=!0);_.jn7(c||"").info.actionType=f;R.cttAuthInfo&&(_.EJ(c).cttAuthInfo=R.cttAuthInfo);_.zf(c+"TIMING_ACTION",f);_.MW(_.PzP)(R.startTime,c);h={actionType:O||_.zot(f)};R.logPreviousAction&&(h.previousAction=_.zot(_.Tf("TIMING_ACTION")));(l=_.z4())&&l!=="UNDEFINED_CSN"&&(h.clientScreenNonce=
l);_.ja(h,c);_.sn7(!0,c)})()};
f22=function(f){_.MW(function(){pv(f);D20(f);iWP(f)})()};
RUn=function(){_.MW(function(){var f=[],R;for(R in _.Ph("ytcsi.".slice(0,-1)))R.endsWith("data_")&&f.push(R.slice(0,-5));f=_.Z(f);for(R=f.next();!R.done;R=f.next())f22(R.value);pv()})()};
_.O5h=function(f){return _.MW(function(){return _.uSh("_start",f)})()};
_.ja=function(f,R,u){_.MW(_.Lv)(f,R,u===void 0?!1:u)};
_.JH=function(f,R,u){return _.MW(_.N5)(f,R,u)};
_.uSh=function(f,R){return _.MW(function(){var u=_.y_7(R);return f in u})()};
Xq5=function(f){if(!_.E("universal_csi_network_ticks"))return"";f=_.Kt(f)||"";for(var R=Object.keys(cV7),u=0;u<R.length;u++){var O=R[u];if(f.includes(O))return O}return""};
Z57=function(f){if(!_.E("universal_csi_network_ticks"))return function(){};
var R=cV7[f];return R?(_.zT(R),function(){var u=_.E("universal_csi_network_ticks")?(u=hUX[f])?_.zT(u):!1:!1;return u}):function(){}};
_.zT=function(f,R,u){return _.MW(function(){if(_.uSh(f,u))return!1;_.JH(f,R,u);return!0})()};
_.TT=function(f,R,u){_.MW(function(){if(!_.O5h(u)||_.uSh(f,u))return!1;_.JH(f,R,u);return!0})()};
_.H_=function(f){return _.MW(_.bl)(f,void 0)};
pv=function(f){_.O5h(f)&&_.JH("aa",void 0,f)};
_.AVq=function(f,R,u,O,c,h,l,K,q){var F=l22();K=new _.Dv({veType:R,youtubeData:h,jspbYoutubeData:K});h=Ip({},F);c&&(h.cttAuthInfo=c);c={csn:F,pageVe:K.getAsJson()};_.E("expectation_logging")&&q&&q.screenCreatedLoggingExpectations&&(c.screenCreatedLoggingExpectations=q.screenCreatedLoggingExpectations);u&&u.visualElement?(c.implicitGesture={parentCsn:u.clientScreenNonce,gesturedVe:u.visualElement.getAsJson()},l&&(c.implicitGesture.gestureType=l)):u&&_.Ih(new _.ts("newScreen() parent element does not have a VE - rootVe",
R));O&&(c.cloneCsn=O);f?jV("screenCreated",c,f,h):_.Jr("screenCreated",c,h);lHn(wW2,new kgq(F));M5.clear();KNh.clear();qQ2.clear();return F};
P_=function(f,R,u,O,c){a25(f,R,u,[O],c===void 0?!1:c)};
a25=function(f,R,u,O,c){c=c===void 0?!1:c;for(var h=Ip({cttAuthInfo:T4(R)||void 0},R),l=_.Z(O),K=l.next();!K.done;K=l.next()){K=K.value;var q=K.getAsJson();(_.dq.isEmpty(q)||!q.trackingParams&&!q.veType)&&_.Ih(Error("sf"));if(_.E("no_client_ve_attach_unless_shown")){var F=FNB(K,R);if(q.veType&&!KNh.has(F)&&!qQ2.has(F)&&!c){if(!_.E("il_attach_cache_limit")||M5.size<1E3){M5.set(F,[f,R,u,K]);return}_.E("il_attach_cache_limit")&&M5.size>1E3&&_.Ih(new _.ts("IL Attach cache exceeded limit"))}K=FNB(u,R);
M5.has(K)?wqB(u,R):qQ2.set(K,!0)}}O=O.filter(function(w){w.csn!==R?(w.csn=R,w=!0):w=!1;return w});
u={csn:R,parentVe:u.getAsJson(),childVes:_.L8(O,function(w){return w.getAsJson()})};
R==="UNDEFINED_CSN"?UJ("visualElementAttached",h,u):f?jV("visualElementAttached",u,f,h):_.Jr("visualElementAttached",u,h)};
QzD=function(f,R,u,O,c){m_n(f,R,u,c)};
m_n=function(f,R,u,O){WNt(u,R);var c=Ip({cttAuthInfo:T4(R)||void 0},R);u={csn:R,ve:u.getAsJson(),eventType:1};O&&(u.clientData=O);R==="UNDEFINED_CSN"?UJ("visualElementShown",c,u):f?jV("visualElementShown",u,f,c):_.Jr("visualElementShown",u,c)};
Ewq=function(f,R,u,O){WNt(u,R);var c=Ip({cttAuthInfo:T4(R)||void 0},R);u={csn:R,ve:u.getAsJson(),eventType:4};O&&(u.clientData=O);R==="UNDEFINED_CSN"?UJ("visualElementShown",c,u):f?jV("visualElementShown",u,f,c):_.Jr("visualElementShown",u,c)};
tHn=function(f,R,u,O,c){var h=(O=O===void 0?!1:O)?16:8;O=Ip({cttAuthInfo:T4(R)||void 0,endOfSequence:O},R);u={csn:R,ve:u.getAsJson(),eventType:h};c&&(u.clientData=c);R==="UNDEFINED_CSN"?UJ("visualElementHidden",O,u):f?jV("visualElementHidden",u,f,O):_.Jr("visualElementHidden",u,O)};
yVh=function(f,R,u,O,c){C0B(f,R,u,void 0,O,c)};
C0B=function(f,R,u,O,c){WNt(u,R);O=O||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=Ip({cttAuthInfo:T4(R)||void 0},R);u={csn:R,ve:u.getAsJson(),gestureType:O};c&&(u.clientData=c);R==="UNDEFINED_CSN"?UJ("visualElementGestured",h,u):f?jV("visualElementGestured",u,f,h):_.Jr("visualElementGestured",u,h)};
d_l=function(f,R,u,O){var c=Ip({cttAuthInfo:T4(R)||void 0},R);u={csn:R,ve:u.getAsJson(),clientData:O};R==="UNDEFINED_CSN"?UJ("visualElementStateChanged",c,u):f?jV("visualElementStateChanged",u,f,c):_.Jr("visualElementStateChanged",u,c)};
N57=function(){var f=Kq7(16);for(var R=[],u=0;u<f.length;u++)R.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(f[u]&63));return R.join("")};
UJ=function(f,R,u){LN7.push({payloadName:f,payload:u,jspbPayload:void 0,options:R});b5h||(b5h=QLn())};
FBt=function(f){if(LN7){for(var R=_.Z(LN7),u=R.next();!u.done;u=R.next())u=u.value,u.payload&&(u.payload.csn=f.csn,_.Jr(u.payloadName,u.payload,u.options));LN7.length=0}b5h=0};
FNB=function(f,R){return""+f.getAsJson().veType+f.getAsJson().veCounter+R};
WNt=function(f,R){if(_.E("no_client_ve_attach_unless_shown")){var u=FNB(f,R);KNh.set(u,!0);wqB(f,R)}};
wqB=function(f,R){f=FNB(f,R);M5.has(f)&&(R=M5.get(f)||[],P_(R[0],R[1],R[2],R[3],!0),M5.delete(f))};
Ip=function(f,R){_.E("log_sequence_info_on_gel_web")&&(f.sequenceGroup=R);return f};
_.ea=function(f,R,u){_.MW(P_)(void 0,f,R,u)};
_.GT=function(f,R,u){_.MW(a25)(void 0,f,R,u)};
_.B_=function(f,R){_.MW(QzD)(void 0,f,R,void 0,void 0,void 0)};
_.op=function(f,R,u){_.MW(function(){_.Gf(R,function(O){Ewq(void 0,f,O,u)})})()};
_.xE=function(f,R,u,O){_.MW(function(){_.Gf(R,function(c){tHn(void 0,f,c,u,O)})})()};
_.Sa=function(f,R,u){_.MW(yVh)(void 0,f,R,u,void 0)};
_.$E=function(f,R,u,O){_.MW(C0B)(void 0,f,R,u,O,void 0)};
_.gA=function(f,R,u){_.MW(d_l)(void 0,f,R,u,void 0)};
nv=function(f){return sJ.get(f)};
pqh=function(f,R){sJ.set(f,R)};
jz0=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(f){return(+f^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+f/4).toString(16)})};
T52=function(f,R){if(Vu&&Vu.sample(f,R)){var u=D_e++,O,c;f=new JVe(f,R,performance.now(),u,zUn,(c=(O=YE)==null?void 0:O.traceId)!=null?c:u);if(YE){var h;(h=YE).children||(h.children=[]);YE.children.push(f)}u=_.Z(Vu.spanProcessors);for(O=u.next();!O.done;O=u.next())h=c=void 0,(h=(c=O.value).onSpanStart)==null||h.call(c,f);return YE=f}};
H5B=function(f){zUn=jz0();Vu=f};
I20=function(f,R,u){if(!f)return R(u);var O=void 0;try{return R(u)}catch(c){throw O="error",c;}finally{f==null||f.close(O)}};
MH0=function(f,R){var u=Object.keys(f);f=new _.ts("[Command Handler] "+R,{filteredCommandNames:u,originalCommand:f});_.TL(f)};
P0h=function(f,R){MH0(f,R+" was called but not set")};
U_B=function(f){return function(){return new f}};
v_=function(f){return function(){return _.vh().resolve(f)}};
eUt=function(f,R){var u=_.t(f,_.GL);if(u&&(u=R[u.signal]))return u();f=_.Z(Object.keys(f));for(u=f.next();!u.done;u=f.next())if(u=u.value,R[u]&&(u=R[u]))return u()};
il=function(f,R,u,O){return{browseEndpoint:{browseId:f},commandMetadata:{webCommandMetadata:{url:R,rootVe:u,webPageType:O===void 0?"WEB_PAGE_TYPE_BROWSE":O}}}};
Ggl=function(f,R,u){var O=R=R===void 0?0:R;u=u===void 0?0:u;var c=u-O;return _.rA(f,"PPSV",void 0,void 0,(c>600?0:c<60||u<=0||O/u>.9)?0:R)};
_.rA=function(f,R,u,O,c){var h="/watch?v="+f;f={videoId:f};R&&(f.playlistId=R,h+="&list="+R);O&&(h+="&pp="+O);c&&(f.startTimeSeconds=c,h+="&t="+c+"s");R={watchEndpoint:f,commandMetadata:{webCommandMetadata:{url:h,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};u&&(R.clickTrackingParams=u);O&&(_.t(R,_.$7).playerParams=O);return R};
B5P=function(f){return{browseEndpoint:{browseId:"VL"+f},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+f,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
ow2=function(f){if(f){var R;if(f){var u=(R=_.t(f.commandMetadata,_.vc))==null?void 0:R.url;R=!(!u||u==="/service_ajax")}else R=!1;if(R)return f;var O;if(f=(O=_.t(f,_.kE))==null?void 0:O.commands)for(O=_.Z(f),f=O.next();!f.done;f=O.next())if(f=ow2(f.value))return f}};
_.fg=function(f){return{runs:[{text:f}]}};
x_7=function(f,R){return f&&R?{runs:[{text:f,navigationEndpoint:R}]}:void 0};
RL=function(f){return f?_.fg(f):void 0};
_.u$=function(f){return f?{simpleText:f}:void 0};
_.OP=function(f){var R=f.type;f=f.payload;R={type:R};f!==void 0&&(R.payload=f);return R};
SQl=function(f,R,u){for(var O=Object.assign({},f),c=_.Z(Object.keys(R)),h=c.next();!h.done;h=c.next()){h=h.value;var l=f[h],K=R[h];if(K===void 0)delete O[h];else if(l===void 0)O[h]=K;else if(Array.isArray(K)&&Array.isArray(l))O[h]=u?[].concat(_.yq(l),_.yq(K)):K;else if(!Array.isArray(K)&&_.OE(K)&&!Array.isArray(l)&&_.OE(l))O[h]=SQl(l,K,u);else if(typeof K===typeof l)O[h]=K;else return R=new _.ts("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,originalValue:l,updateValue:K}),
_.TL(R),f}return O};
szP=function(f){if(!f.length)return"";try{if($_l)return $_l.decode(f);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(f)}catch(l){}for(var R=0,u=[],O=f.length;R<O;){for(var c=0;c<1024&&R<O;){var h=f[R++];if(h<128)gwt[c++]=h;else{if(h<224)h=(h&31)<<6|f[R++]&63;else if(h<240)h=(h&15)<<12|(f[R++]&63)<<6|f[R++]&63;else{if(c+1===1024){--R;break}h=(h&7)<<18|(f[R++]&63)<<12|(f[R++]&63)<<6|f[R++]&63;h-=65536;gwt[c++]=55296|h>>10;h=56320|h&1023}gwt[c++]=h}}h=String.fromCharCode.apply(String,
gwt);c<1024&&(h=h.substring(0,c));u.push(h)}return u.join("")};
VHB=function(f,R){var u;if((u=nw7)==null?0:u.encodeInto)return R=nw7.encodeInto(f,R),R.read<f.length?f.length*4:R.written;for(var O=u=0;O<f.length;O++){var c=f.charCodeAt(O);c<128?R[u++]=c:(c<2048?R[u++]=c>>6|192:((c&64512)===55296&&O+1<f.length&&(f.charCodeAt(O+1)&64512)===56320?(c=65536+((c&1023)<<10)+(f.charCodeAt(++O)&1023),R[u++]=c>>18|240,R[u++]=c>>12&63|128):R[u++]=c>>12|224,R[u++]=c>>6&63|128),R[u++]=c&63|128)}return u};
YQ2=function(f,R){f=new Uint8Array(f);R&&f.set(R);return f};
_.XX=function(f){f=new vwl(new i5n([_.Fi(decodeURIComponent(f))]));if(rVe(f,2)){var R=cW(f);var u=f.pos;var O=f.arrayView;u=u===void 0?0:u;var c=R===void 0?-1:R;u=u===void 0?0:u;c=c===void 0?-1:c;if(O.totalLength&&c){c<0&&(c=O.totalLength-u);O.focus(u);if(!(u-O.arrayPos+c<=O.arrays[O.arrayIdx].length)){var h=O.arrayIdx,l=O.arrayPos;O.focus(u+c-1);l=new Uint8Array(O.arrayPos+O.arrays[O.arrayIdx].length-l);for(var K=0,q=h;q<=O.arrayIdx;q++)l.set(O.arrays[q],K),K+=O.arrays[q].length;O.arrays.splice(h,
O.arrayIdx-h+1,l);O.arrayIdx=0;O.arrayPos=0;O.focus(u)}h=O.arrays[O.arrayIdx];O=new DataView(h.buffer,h.byteOffset+u-O.arrayPos,c)}else O=new DataView(new ArrayBuffer(0));O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength);f.pos+=R;R=O}else R=void 0;R=R?szP(R):void 0;f=rVe(f,4)?cW(f):void 0;O=f$7[f];if(typeof O==="undefined")throw f=new _.ts("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:f}),_.TL(f),f;return{entityTypeFieldNumber:f,entityType:O,entityId:R}};
_.l$=function(f,R,u){u=u===void 0?0:u;var O=new Rx2;if(nw7)f=nw7.encode(f);else{var c=new Uint8Array(Math.ceil(f.length*1.2)),h=VHB(f,c);c.length<h&&(c=new Uint8Array(h),h=VHB(f,c));c.length>h&&(c=c.subarray(0,h));f=c}f!==void 0&&(hh(O,18),c=f.length,hh(O,c),ZH(O,c),O.buf.set(f,O.pos),O.pos+=c);f=u17[R];if(typeof f==="undefined")throw u=new _.ts("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:R}),_.TL(u),u;f!==void 0&&(hh(O,32),hh(O,f));hh(O,40);hh(O,1);R=new Uint8Array(O.buf.buffer,
O.buf.byteOffset,O.pos);return encodeURIComponent(_.fE(R,u))};
OJ5=function(f){f=f.key||f.id;if(!f)throw Error("xf");return f};
Xe2=function(f,R){f=f===void 0?{}:f;return cOe(f,R)};
hxe=function(f,R,u,O){if(O===void 0)return O=Object.assign({},f[R]||{}),u=(delete O[u],O),O={},Object.assign({},f,(O[R]=u,O));var c={},h={};return Object.assign({},f,(h[R]=Object.assign({},f[R],(c[u]=O,c)),h))};
ZJX=function(f,R,u,O,c){var h=f[R];if(h==null||!h[u])return f;O=SQl(h[u],O,c==="REPEATED_FIELDS_MERGE_OPTION_APPEND");c={};h={};return Object.assign({},f,(h[R]=Object.assign({},f[R],(c[u]=O,c)),h))};
_.kZ=function(f,R,u){return f[R]?f[R][u]||null:null};
kpX=function(){if(l$t)return l$t();var f={};l$t=vf("PersistentEntityStoreDb",{objectStores:(f.EntityStore={addedAtVersion:1},f.EntityAssociationStore={addedAtVersion:2},f),shared:!1,upgrade:function(R,u){u(1)&&eI(UL(R,"EntityStore",{keyPath:"key"}),"entityType","entityType");u(2)&&(R=UL(R,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),eI(R,"byParentEntityKey","parentEntityKey"),eI(R,"byChildEntityKey","childEntityKey"))},
version:3});return l$t()};
K07=function(f){return _.xx(kpX(),f)};
Kg=function(f){return window.Int32Array?new Int32Array(f):Array(f)};
AOl=function(f){return _.xx(qre(),f)};
a$X=function(f){return new qq("WRONG_DATA_TYPE",{encoderVersion:f})};
F0l=function(f){return f instanceof Error?new qq("UNKNOWN_ENCODE_ERROR",{originalMessage:f.message}):new qq("UNKNOWN_ENCODE_ERROR")};
wet=function(f){return f instanceof Error?new qq("UNKNOWN_DECODE_ERROR",{originalMessage:f.message}):new qq("UNKNOWN_DECODE_ERROR")};
mfP=function(f,R){f=f instanceof qq?f:R(f);_.TL(f);throw f;};
Qbe=function(f){f=(new TextEncoder).encode(f).subarray(0,16);var R=new Uint8Array(16);R.set(f);return R};
EP7=function(f){var R=W0D[f];if(R)return R;_.Ih(new _.ts("Entity model not found.",{entityType:f}))};
_.Ah=function(){t7P||(t7P=CQ7());return t7P};
CQ7=function(){var f,R,u;return _.k(function(O){if(O.nextAddress==1)return _.cl(O,2),_.A(O,_.Yx(),4);if(O.nextAddress!=2){f=O.yieldResult;if(!f||!_.Eb()||typeof _.Oe.BroadcastChannel==="undefined")return O.return();R=new yO0;return O.return(new aL(f,R))}u=_.ku(O);u instanceof Error&&_.TL(u);return O.return()})};
_.FX=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1){u=f.mutations;if(!u||u.length<=0)return O.return();R&&R.dispatch(_.OP({type:"ENTITY_LOADED",payload:u}));return _.A(O,df5(u),2)}u.length=0;_.KG(O)})};
df5=function(f){var R;return _.k(function(u){return u.nextAddress==1?_.A(u,_.Ah(),2):(R=u.yieldResult)?_.A(u,_.wz(R,"readwrite",function(O){for(var c={},h=_.Z(f),l=h.next(),K={};!l.done;K={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},l=h.next())K.mutation$jscomp$4=l.value,K.mutation$jscomp$4.entityKey&&NFt(K.mutation$jscomp$4)&&(K.mutationEntityType$jscomp$3=(0,_.dq.getAnyKey)(K.mutation$jscomp$4.payload),l=void 0,K.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(l=function(q){return function(){return _.uUX(O,
q.mutation$jscomp$4.payload[q.mutationEntityType$jscomp$3],q.mutationEntityType$jscomp$3)}}(K)),K.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(l=function(q){return function(){return Ou7(O,q.mutation$jscomp$4.entityKey)}}(K)),K.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(l=function(q){return function(){return cLX(O,q.mutation$jscomp$4.entityKey,q.mutation$jscomp$4.payload[q.mutationEntityType$jscomp$3],q.mutationEntityType$jscomp$3)}}(K)),l&&(c[K.mutation$jscomp$4.entityKey]=
c[K.mutation$jscomp$4.entityKey]?c[K.mutation$jscomp$4.entityKey].then(l):l()));
return Pf.all(Object.values(c))}),0):u.return()})};
NFt=function(f){var R;f=(R=f.options)==null?void 0:R.persistenceOption;return f==="ENTITY_PERSISTENCE_OPTION_PERSIST"||f==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Zuh=function(f,R){var u,O;_.k(function(c){if(c.nextAddress==1)return _.A(c,_.Ah(),2);if(c.nextAddress!=3)return(u=c.yieldResult)?_.A(c,_.wz(u,"readonly",function(h){var l={},K=Object.keys(R).map(function(q){var F=R[q]?[].concat(_.yq(R[q])):[];return Xmh(h,q,F,l)});
return Pf.all(K).then(function(){return l})}),3):c.return();
O=c.yieldResult;Object.keys(O).length>0&&f.dispatch(hnt(O));_.KG(c)})};
Xmh=function(f,R,u,O){return mB(f,R,u).then(function(c){O[R]=lVe(u,c)})};
lVe=function(f,R){if(R.length!==f.length)throw Error("Af");return R.reduce(function(u,O,c){u[f[c]]=O;return u},{})};
qTP=function(f){var R=f.filter(function(c){var h;return(c==null?void 0:(h=c.transferEntity)==null?void 0:h.transferState)==="TRANSFER_STATE_COMPLETE"}).length,u=f.filter(function(c){var h;
return(c==null?void 0:(h=c.transferEntity)==null?void 0:h.transferState)==="TRANSFER_STATE_FAILED"}).length,O=f.filter(function(c){var h;
return(c==null?void 0:(h=c.transferEntity)==null?void 0:h.transferState)&&khP.includes(c.transferEntity.transferState)});
if(!(R||O!=null&&O.length))return 0;R=_.KJB(O)+R;f=f.length-u;return f===0?0:Math.round(R*100/f)/100};
_.KJB=function(f){var R=[];R=R.concat.apply(R,_.yq(f.filter(function(h){return h.streamEntity}).map(function(h){var l=Object.assign({},h.streamEntity),K,q=(K=h.transferEntity)==null?void 0:K.transferState;
l.streamsProgress=l.streamsProgress||[];l.streamsProgress=l.streamsProgress.map(function(F){var w=Object.assign({},F);w.numBytesDownloaded=q==="TRANSFER_STATE_COMPLETE"?F.numTotalBytes:F.numBytesDownloaded;return w});
return l}).map(function(h){return h.streamsProgress})));
var u=f=0;R=_.Z(R);for(var O=R.next();!O.done;O=R.next()){var c=O.value;O=Number(c.numBytesDownloaded);c=Number(c.numTotalBytes);u+=isNaN(O)?0:O;f+=isNaN(c)?0:c}return f===0?0:Math.round(u*100/f)/100};
AL7=function(f){if(!f||!f.expirationTimestamp||!f.action)return!1;var R=(0,_.iZ)()/1E3;return Number(f.expirationTimestamp)>=R};
Qe=function(f){return f&&f.expirationTimestamp&&f.action?AL7(f)&&f.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.WW=function(f){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(f||"TRANSFER_STATE_UNKNOWN")};
aVl=function(f){var R=new Rx2;if(f!==void 0){var u=Math.ceil(Math.log2(f.length*4+2)/7);u=u===void 0?2:u;hh(R,10);R.submessagePosStack.push(R.pos);R.submessagePosStack.push(u);R.pos+=u;ZH(R,f.length*1.2);u=VHB(f,R.buf.subarray(R.pos));R.pos+u>R.buf.length&&(ZH(R,u),u=VHB(f,R.buf.subarray(R.pos)));R.pos+=u;f=R.submessagePosStack.pop();u=R.submessagePosStack.pop();for(var O=R.pos-u-f;f--;){var c=f?128:0;R.view.setUint8(u++,O&127|c);O>>=7}}R=new Uint8Array(R.buf.buffer,R.buf.byteOffset,R.pos);return(new TextDecoder("utf-8")).decode(R)};
_.EP=function(f){var R=0;f=_.Z(f);for(var u=f.next(),O={};!u.done;O={transferState$jscomp$3:void 0},u=f.next()){var c=u.value,h=void 0;u=(h=c.streamEntity)!=null?h:{};h=void 0;O.transferState$jscomp$3=(h=c.transferEntity)==null?void 0:h.transferState;h=c=void 0;((c=u)==null?0:(h=c.streamsProgress)==null?0:h.length)&&u.streamsProgress.forEach(function(l){return function(K){K=Number(l.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?K.numTotalBytes:K.numBytesDownloaded);isFinite(K)&&(R+=K)}}(O))}return R};
FJe=function(f){return f.some(function(R){var u;if(!(R==null?0:(u=R.transferEntity)==null?0:u.transferState)){var O;return!(R==null?0:(O=R.policyEntity)==null?0:O.action)||R.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return khP.includes(R.transferEntity.transferState)})};
wm7=function(f,R){if(!R)return!1;if(_.E("of_pb_en_po_ks"))return!0;var u;f=(u=_.kZ(f,"offlineVideoPolicy",_.l$(R,"offlineVideoPolicy")))!=null?u:void 0;return!!f&&Qe(f)};
_.QU0=function(f){var R=["TRANSFER_STATE_COMPLETE"];R=R===void 0?mjh:R;return f.filter(function(u){var O,c;return R.includes((c=(O=u.transferEntity)==null?void 0:O.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN")})};
WJP=function(f,R){if(R){var u,O=(u=_.kZ(f,"playbackData",_.l$(R,"playbackData")))!=null?u:null,c;u=(c=_.kZ(f,"transfer",_.l$(R,"transfer")))!=null?c:null;var h;c=(h=_.kZ(f,"offlineVideoStreams",_.l$(R,"offlineVideoStreams")))!=null?h:null;var l;f=(l=_.kZ(f,"offlineVideoPolicy",_.l$(R,"offlineVideoPolicy")))!=null?l:null;if(O||u||c||f)return{playbackDataEntity:O,transferEntity:u,streamEntity:c,policyEntity:f}}};
_.th=function(f){var R=f.playbackData;if(!R)return[];var u=[];R=_.Z(Object.keys(R));for(var O=R.next();!O.done;O=R.next()){var c=O.value;if(!EHn(f,_.XX(c).entityId)&&(O=WJP(f,_.XX(c).entityId))){var h=void 0,l=void 0;c=(l=Number((h=_.kZ(f,"playbackData",c))==null?void 0:h.streamDownloadTimestampSeconds))!=null?l:(0,_.iZ)();u.push({entity:O,streamDownloadTimestamp:c})}}return u.sort(function(K,q){var F=K.streamDownloadTimestamp,w=q.streamDownloadTimestamp;return w===F?K.entity.streamEntity&&!q.entity.streamEntity?
1:-1:w-F}).map(function(K){return K.entity})};
tvn=function(f){return _.QU0(_.th(f))};
_.CLX=function(f){return _.th(f).filter(function(R){var u;if(((u=R.policyEntity)==null?0:u.action)&&R.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var O;if((O=R.transferEntity)==null?0:O.transferState){var c;return khP.includes((c=R.transferEntity)==null?void 0:c.transferState)}return!0})};
EHn=function(f,R){var u;return((u=_.kZ(f,"downloadStatusEntity",_.l$(R,"downloadStatusEntity")))==null?void 0:u.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
yLD=function(f){var R;if(f==null?0:(R=f.playbackDataEntity)==null?0:R.key)return _.XX(f.playbackDataEntity.key).entityId;var u;if(f==null?0:(u=f.transferEntity)==null?0:u.key)return _.XX(f.transferEntity.key).entityId;var O;if(f==null?0:(O=f.streamEntity)==null?0:O.key)return _.XX(f.streamEntity.key).entityId;var c;if(f==null?0:(c=f.policyEntity)==null?0:c.key)return _.XX(f.policyEntity.key).entityId};
Nmh=function(f){var R=new Set,u;f=(u=f.mainDownloadsListEntity)==null?void 0:u[dj7];var O;if(!(f==null?0:(O=f.downloads)==null?0:O.length))return R;var c;f==null||(c=f.downloads)==null||c.forEach(function(h){(h==null?0:h.videoItem)&&R.add(h.videoItem)});
return R};
Cg=function(f,R){if(R){var u=_.kZ(f,"mainVideoEntity",_.l$(R,"mainVideoEntity")),O=_.kZ(f,"downloadStatusEntity",_.l$(R,"downloadStatusEntity")),c=_.kZ(f,"ytMainChannelEntity",_.l$(R,"ytMainChannelEntity")),h={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};f=WJP(f,R);O=(O==null?void 0:O.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.E("woffle_render_failed_download_state_ks")&&(O==null?void 0:O.downloadState)==="DOWNLOAD_STATE_FAILED";!f&&O&&(f=h);if(f&&u&&
c)return Object.assign({},{videoEntity:u,channelEntity:c},f)}};
bu2=function(f,R){return LJl(f,R)==="TRANSFER_STATE_COMPLETE"&&wm7(f,R)};
pmn=function(f,R){if(!R)return!1;var u;f=(u=_.kZ(f,"playbackData",_.l$(R,"playbackData")))!=null?u:void 0;return!!f&&!!f.playerResponseJson};
LJl=function(f,R){if(!R)return"TRANSFER_STATE_UNKNOWN";var u=_.kZ(f,"transfer",_.l$(R,"transfer"));if(u){var O;return(O=u.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN"}u=_.kZ(f,"offlineOrchestrationActionWrapperEntity",_.l$(R,"offlineOrchestrationActionWrapperEntity"));f=_.kZ(f,"mainVideoEntity",_.l$(R,"mainVideoEntity"));return u||f?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
jUt=function(f,R){if(!R)return"TRANSFER_STATE_UNKNOWN";if(f=_.kZ(f,"transfer",_.l$(R,"transfer"))){var u;return(u=f.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Dj5=function(f,R){return R&&(f=_.kZ(f,"videoPlaybackPositionEntity",_.l$(R,"videoPlaybackPositionEntity")),f==null?0:f.lastPlaybackPositionSeconds)?Number(f.lastPlaybackPositionSeconds):0};
znh=function(f,R){return JLe(f).some(function(u){var O;return(u==null?void 0:(O=u.mainPlaylistEntity)==null?void 0:O.playlistId)===R})};
Huq=function(f,R,u){var O=Tm7(f,R);if(!O.length)return[];R=[];O=_.Z(O);for(var c=O.next();!c.done;c=O.next()){c=c.value;var h=Cg(f,c);u&&LJl(f,c)!=="TRANSFER_STATE_COMPLETE"||h&&R.push(h)}return R};
Tm7=function(f,R){if(!R)return[];var u=_.l$(R,"mainPlaylistEntity"),O;R=(O=f.mainPlaylistEntity)==null?void 0:O[u];O=[];if(R==null||!R.videos)return O;R=_.Z(R.videos);for(u=R.next();!u.done;u=R.next()){u=u.value;var c=void 0,h=void 0,l=void 0,K=(c=f)==null?void 0:(h=c.mainPlaylistVideoEntity)==null?void 0:(l=h[u])==null?void 0:l.video;K&&(u=_.XX(K).entityId)&&O.push(u)}return O};
IVe=function(f,R){if(R){var u=_.kZ(f,"mainPlaylistEntity",_.l$(R,"mainPlaylistEntity")),O=_.kZ(f,"mainPlaylistDownloadStateEntity",_.l$(R,"mainPlaylistDownloadStateEntity"));f=_.kZ(f,"ytMainChannelEntity",_.l$(R,"ytMainChannelEntity"));if(O&&u)return Object.assign({},{mainPlaylistEntity:u,mainPlaylistDownloadStateEntity:O},!!f&&{channelEntity:f})}};
JLe=function(f){return MvP(f).sort(function(R,u){return u.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return R.downloadedPlaylistEntities})};
MvP=function(f){var R=f.mainPlaylistDownloadStateEntity,u=[];if(!R)return u;for(var O=_.Z(Object.keys(R)),c=O.next();!c.done;c=O.next()){var h=c.value;c=IVe(f,_.XX(h).entityId);var l=void 0;h=Number((l=R[h])==null?void 0:l.addedTimestampMillis);l=isNaN(h)?(0,_.iZ)():h;c!==void 0&&u.push({downloadedPlaylistEntities:c,addedTimestampMillis:l})}return u};
PL7=function(f){var R,u=(R=f.mainPlaylistVideoEntity)!=null?R:{};return new Set(JLe(f).reduce(function(O,c){O=O===void 0?[]:O;var h,l;c==null||(h=c.mainPlaylistEntity)==null||(l=h.videos)==null||l.forEach(function(K){var q;(K=(q=u[K])==null?void 0:q.video)&&O.push(K)});
return O},[]))};
Uje=function(f){return"downloadedMusicPlaylistEntities"in f};
enn=function(f){return"mainPlaylistEntity"in f&&"mainPlaylistDownloadStateEntity"in f};
GhX=function(f){return"videoEntity"in f&&"channelEntity"in f};
Bm2=function(f){var R=f.musicPlaylistDownloadMetadataEntity,u=[];if(!R)return u;for(var O=_.Z(Object.keys(R)),c=O.next();!c.done;c=O.next()){c=c.value;a:{var h=f,l=_.XX(c).entityId;if(l){var K=_.kZ(h,"musicPlaylist",_.l$(l,"musicPlaylist"));h=_.kZ(h,"musicPlaylistDownloadMetadataEntity",_.l$(l,"musicPlaylistDownloadMetadataEntity"));if(K&&h){K={musicPlaylistEntity:K,musicPlaylistDownloadStateEntity:h};break a}}K=void 0}h=void 0;c=Number((h=R[c])==null?void 0:h.addedTimestampMillis);c=isNaN(c)?(0,_.iZ)():
c;K!==void 0&&u.push({downloadedMusicPlaylistEntities:K,addedTimestampMillis:c})}return u};
oH0=function(f){var R=new Set;f=_.Z(f);for(var u=f.next();!u.done;u=f.next())if(u=u.value,"musicPlaylistEntity"in u&&"musicPlaylistDownloadStateEntity"in u){u=_.Z(u.musicPlaylistEntity.tracks);for(var O=u.next();!O.done;O=u.next())R.add(O.value)}return R};
xj2=function(f,R){if(R){var u=_.kZ(f,"musicTrack",_.l$(R,"musicTrack")),O=_.kZ(f,"musicArtist",_.l$(R,"musicArtist"))||{};if((f=WJP(f,R))&&u&&O)return Object.assign({},{musicTrackEntity:u,musicArtistEntity:O},f)}};
ST7=function(f){var R=f.musicTrackDownloadMetadataEntity,u=[];if(!R)return[];R=_.Z(Object.keys(R));for(var O=R.next();!O.done;O=R.next()){var c=O.value;O=xj2(f,_.XX(c).entityId);var h=void 0;c=Number((h=_.kZ(f,"musicTrackDownloadMetadataEntity",c))==null?void 0:h.addedTimestampMillis);h=isNaN(c)?(0,_.iZ)():c;O!==void 0&&u.push({downloadedMusicEntities:O,addedTimestampMillis:h})}return u};
sUP=function(f,R){if(!R)return[];if(Object.values($j0).includes(R))return gHh(f,R);R=_.l$(R,"musicPlaylist");var u;f=(u=f.musicPlaylist)==null?void 0:u[R];u=[];if(f==null||!f.tracks)return u;f=_.Z(f.tracks);for(R=f.next();!R.done;R=f.next())(R=_.XX(R.value).entityId)&&u.push(R);return u};
gHh=function(f,R){var u=new Set,O=Bm2(f).map(function(h){return h.downloadedMusicPlaylistEntities});
O=oH0(O);O=_.Z(O);for(var c=O.next();!c.done;c=O.next())(c=_.XX(c.value).entityId)&&u.add(c);return nHB(f).downloadedMusicEntities.filter(function(h){var l;if((l=h.musicTrackEntity)!=null&&l.videoId){h=h.musicTrackEntity;if(l=R==="PPOM"?!0:!u.has(h.videoId))b:switch(h=h.musicVideoType,R){case "PPSE":l=h==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:l=h!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}h=l}else h=!1;return h}).map(function(h){var l;
return(l=h.musicTrackEntity)==null?void 0:l.videoId})};
nHB=function(f){var R=ST7(f).sort(function(u,O){return O.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:Uje(u)?u.downloadedMusicPlaylistEntities:{}});
f=Bm2(f).sort(function(u,O){return O.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:Uje(u)?u.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:R,downloadedMusicPlaylistEntities:f}};
YTt=function(f,R){R=_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?sUP(f,R):Tm7(f,R);if(!R.length)return"TRANSFER_STATE_UNKNOWN";R=R.map(function(u){return jUt(f,u)});
return Vvh(R)};
Vvh=function(f){var R=new Set(f);if(R.has("TRANSFER_STATE_FAILED")&&R.size===1)return"TRANSFER_STATE_FAILED";R.delete("TRANSFER_STATE_FAILED");if(R.has("TRANSFER_STATE_UNKNOWN")&&R.size===1)return"TRANSFER_STATE_PRE_TRANSFER";R.delete("TRANSFER_STATE_UNKNOWN");if(R.has("TRANSFER_STATE_PRE_TRANSFER")&&R.size===1||R.size===0)return"TRANSFER_STATE_PRE_TRANSFER";f=R.has("TRANSFER_STATE_TRANSFERRING");R=R.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return f||R?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
ye=function(f){var R=f.mainVideoDownloadStateEntity,u=[];if(!R)return[];R=_.Z(Object.keys(R));for(var O=R.next();!O.done;O=R.next()){var c=O.value;if(!EHn(f,_.XX(c).entityId)){O=Cg(f,_.XX(c).entityId);var h=void 0,l=void 0;c=(l=Number((h=_.kZ(f,"mainVideoDownloadStateEntity",c))==null?void 0:h.addedTimestampMillis))!=null?l:(0,_.iZ)();O!==void 0&&u.push({downloadedVideoEntities:O,addedTimestampMillis:c})}}return u};
vHq=function(f){return ye(f).sort(function(R,u){return u.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return R.downloadedVideoEntities})};
_.rLe=function(f){var R=PL7(f),u=_.dz(f),O=Nmh(f),c=ye(f).filter(function(l){var K,q;if((l==null?void 0:(K=l.downloadedVideoEntities)==null?void 0:(q=K.transferEntity)==null?void 0:q.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var F,w;l=l==null?void 0:(F=l.downloadedVideoEntities)==null?void 0:(w=F.videoEntity)==null?void 0:w.key;return _.E("kevlar_use_library_entity")?l&&(O.has(l)||u[l]):l&&!R.has(l)}),h=MvP(f).filter(function(l){return YTt(f,l.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.yq(c),_.yq(h)).sort(function(l,K){return K.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return iuq(l)})};
fl2=function(f,R){if(R&&wm7(f,R)){var u,O,c=(O=(u=_.kZ(f,"playbackData",_.l$(R,"playbackData")))!=null?u:void 0)==null?void 0:O.playerResponseJson;if(c){try{var h=JSON.parse(c);var l=_.kZ(f,"transfer",_.l$(R,"transfer")),K=Dj5(f,R);K&&(h=Object.assign({},h,{playerConfig:Object.assign({},h.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+K*1E3}}})}));h.cotn=l==null?void 0:l.cotn}catch(q){}return h}}};
_.ONt=function(f){var R,u,O;f=(O=(u=((R=f.downloadsPageViewConfigurationEntity)!=null?R:{})[ROD])==null?void 0:u.smartDownloadsOptInBannerVisibility)!=null?O:{};var c;return(c=_.t(f,uuq))!=null?c:{}};
_.dz=function(f){var R,u,O;f=(O=(u=((R=f.mainDownloadsListEntity)!=null?R:{})[_.ct0])==null?void 0:u.downloads)!=null?O:[];R={};u=_.Z(f);for(O=u.next();!O.done;O=u.next())f=void 0,R[(f=O.value.videoItem)!=null?f:""]=!0;return R};
XYn=function(f){var R=_.dz(f);if(Object.keys(R).length===0)return!1;var u=f.mainVideoEntity;if(!u)return!0;u=_.Z(Object.keys(u));for(var O=u.next();!O.done;O=u.next()){O=O.value;var c=_.XX(O).entityId;if(R[O]&&!EHn(f,c))return!1}return!0};
_.Nq=function(f){var R=_.dz(f);return ye(f).sort(function(u,O){return u.addedTimestampMillis-O.addedTimestampMillis}).map(function(u){return u.downloadedVideoEntities}).filter(function(u){var O;
return(u=u==null?void 0:(O=u.videoEntity)==null?void 0:O.key)&&!!R[u]})};
iuq=function(f){return"downloadedVideoEntities"in f?f.downloadedVideoEntities:"downloadedPlaylistEntities"in f?f.downloadedPlaylistEntities:{}};
hOh=function(f){var R=_.dz(f),u=PL7(f),O=ye(f).filter(function(c){var h,l;return(c=c==null?void 0:(h=c.downloadedVideoEntities)==null?void 0:(l=h.videoEntity)==null?void 0:l.key)&&!R[c]&&!u.has(c)});
f=MvP(f);return[].concat(_.yq(O),_.yq(f)).sort(function(c,h){return h.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return iuq(c)})};
_.Lg=function(f){if(!_.E("kevlar_use_library_entity"))return hOh(f);var R=ye(f).filter(function(O){var c,h;if(c=O=O==null?void 0:(c=O.downloadedVideoEntities)==null?void 0:(h=c.videoEntity)==null?void 0:h.key){var l,K,q;c=((K=(l=f.mainDownloadsListEntity)==null?void 0:l[dj7])==null?0:(q=K.downloads)==null?0:q.length)?Nmh(f).has(O):!1}return c}),u=MvP(f);
return[].concat(_.yq(R),_.yq(u)).sort(function(O,c){return c.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return iuq(O)})};
ZNt=function(f){var R=_.dz(f),u=PL7(f);return vHq(f).filter(function(O){var c;return(O=O==null?void 0:(c=O.videoEntity)==null?void 0:c.key)&&!R[O]&&!u.has(O)})};
ll7=function(f){if(!_.E("kevlar_use_library_entity"))return ZNt(f);var R=_.dz(f),u=Nmh(f);return vHq(f).filter(function(O){var c;return(O=O==null?void 0:(c=O.videoEntity)==null?void 0:c.key)&&!R[O]&&u.has(O)})};
k9n=function(f,R){R=_.l$(R,"settingEntity");var u,O,c;return!!((c=(O=((u=f.settingEntity)!=null?u:{})[R])==null?void 0:O.settingOptionValue)!=null?c:{}).boolValue};
_.b$=function(f){var R=_.Nq(f);if(FJe(R))return 0;var u=[];R=_.Z(R);for(var O=R.next();!O.done;O=R.next()){O=O.value;var c=void 0,h=void 0;if((c=O)==null?0:(h=c.videoEntity)==null?0:h.key)c=_.XX(O.videoEntity.key).entityId,O=f,c=_.l$(c,"mainVideoDownloadStateEntity"),O=_.kZ(O,"mainVideoDownloadStateEntity",c),(O=Number(O==null?void 0:O.addedTimestampMillis))&&u.push(O)}return Math.max.apply(Math,_.yq(u))};
_.pg=function(f){return f.ui.richGridMiniMode};
_.DH=function(f){return f.ui.richGridItemsPerRow};
_.KZe=function(f){return f.ui.richGridSlimItemsPerRow};
_.qd7=function(f){return f.ui.guideIsExpanded};
_.Jh=function(f){return f.ui.miniplayerIsActive};
_.Atl=function(f){return f.ui.singleOptionSurveyIsActive};
_.ze=function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.alB=function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.FZD=function(f){return f.ui.inlinePreviewIsActive};
_.wY0=function(f){return f.ui.inlinePreviewIsEnabled};
_.miD=function(f){return f.ui.miniplayerPlaybackState};
QYl=function(f){return f.ui.isOnline};
_.WZl=function(f){return f.ui.frostedGlassMode};
_.Te=function(f,R){return LJl(f.entities,R)};
_.HW=function(f,R){return YTt(f.entities,R)};
Ehl=function(f,R){var u;if(R){var O;f=(O=_.kZ(f.entities,"offlineVideoPolicy",_.l$(R,"offlineVideoPolicy")))==null?void 0:O.action}else f=void 0;return(u=f)!=null?u:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
tiP=function(f,R){var u;R?(f=_.kZ(f.entities,"offlineVideoPolicy",_.l$(R,"offlineVideoPolicy")),f=Number(f==null?void 0:f.expirationTimestamp)):f=void 0;return(u=f)!=null?u:0};
_.Cxl=function(f){return _.th(f.entities).length};
ytn=function(f,R){return Cg(f.entities,R)};
dit=function(f,R){return IVe(f.entities,R)};
IL=function(f,R){return(f=Cg(f.entities,R))?_.KJB([f]):0};
_.NSl=function(f,R){var u=_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(u){var O=f.entities;var c=sUP(O,R);if(c.length){var h=[];c=_.Z(c);for(var l=c.next();!l.done;l=c.next())(l=xj2(O,l.value))&&h.push(l);O=h}else O=[]}else O=Huq(f.entities,R);var K;if(u){var q=f.entities;R?(R=_.l$(R,"musicPlaylist"),q=(K=q.musicPlaylist)==null?void 0:K[R],K=q!=null&&q.tracks?q.tracks.length:0):K=0}else K=f.entities,R?(R=_.l$(R,"mainPlaylistEntity"),K=(q=K.mainPlaylistEntity)==null?void 0:q[R],K=K!=null&&K.videos?
K.videos.length:0):K=0;return O.length!==K?0:O?qTP(O):0};
_.LZq=function(f){return f.download.isLeaderTab};
_.bNt=function(f,R,u){if(!R&&u){var O=f.entities;if(u){var c=aVl(u),h,l;R=(l=(h=_.kZ(O,"offlineabilityEntity",_.l$(c,"offlineabilityEntity")))==null?void 0:h.addToOfflineButtonState)!=null?l:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else R="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else h=f.entities,R?(l=aVl(R),R=(c=(O=_.kZ(h,"offlineabilityEntity",_.l$(l,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):R="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return R};
pY0=function(f,R){f=f.entities;if(R){R=aVl(R);var u,O;R=(O=(u=_.kZ(f,"offlineabilityEntity",_.l$(R,"offlineabilityEntity")))==null?void 0:u.addToOfflineButtonState)!=null?O:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else R="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return R};
_.jYD=function(f){var R=f.entities;f=QYl(f);var u=k9n(R,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.E("kevlar_modern_downloads_page")&&u)var O=!1;else{var c,h;R=(h=(c=((O=R.downloadsPageViewConfigurationEntity)!=null?O:{})[ROD])==null?void 0:c.smartDownloadsOptInBannerVisibility)!=null?h:{};O=f?!!R.visibleWithConnection:!!R.visibleWithoutConnection}return O};
_.DiB=function(f){return k9n(f.entities,"SMART_DOWNLOADS_ENABLED")};
_.Jt2=function(f){return XYn(f.entities)};
zOe=function(f){return _.Nq(f.entities).every(function(R){var u;return(R==null?void 0:(u=R.transferEntity)==null?void 0:u.transferState)&&!khP.includes(R.transferEntity.transferState)})};
_.TSe=function(f,R){return EHn(f.entities,R)};
HN0=function(f,R){if(R){var u,O;f=(O=(u=_.kZ(f.entities,"downloadStatusEntity",_.l$(R,"downloadStatusEntity")))==null?void 0:u.downloadState)!=null?O:"DOWNLOAD_STATE_UNKNOWN"}else f="DOWNLOAD_STATE_UNKNOWN";return f};
Mq=function(f,R){return Dj5(f.entities,R)};
Uie=function(f){f=_.Il2(f);var R=f.hours===void 0?0:f.hours,u=f.minutes===void 0?0:f.minutes,O=f.seconds===void 0?0:f.seconds,c=R>0;f=[];c&&(R=_.MiX(R),f.push(R));R=c;R=R===void 0?!1:R;u=(["af","be","lt"].includes(_.PW)||R)&&u<10?PxP().format(u):(new Intl.NumberFormat("en-u-nu-latn")).format(u);f.push(u);u=PxP().format(O);f.push(u);u=":";"da fi id si sr sr-Latn".split(" ").includes(_.PW)&&(u=".");return f.join(u)};
_.Il2=function(f){var R=f.hours||0,u=f.minutes||0,O=f.seconds||0;R=O+u*60+R*3600+(f.days||0)*86400+(f.weeks||0)*604800+(f.months||0)*2629800+(f.years||0)*31557600;if(R<=0)return{hours:0,minutes:0,seconds:0};f=R;R=Math.floor(f/3600);f%=3600;u=Math.floor(f/60);O=Math.floor(f%60);return{hours:R,minutes:u,seconds:O}};
_.MiX=function(f){f=(new Intl.NumberFormat("en-u-nu-latn")).format(f);var R=["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(_.PW)?f.replace(",","\u00a0"):R.includes(_.PW)?f.replace(",","\u202f"):u.includes(_.PW)?f.replace(",","."):f};
PxP=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
eO7=function(f){try{return(new _.UP(5)).format(f)}catch(R){}};
e8=function(f){return{thumbnailOverlayDownloadingRenderer:{state:f}}};
G9e=function(f){if(f=eO7(f))return{thumbnailOverlaySidePanelRenderer:{text:_.fg(f),icon:{iconType:"PLAYLISTS"}}}};
BSD=function(){var f=_.Fa("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.fg(f),icon:{iconType:"PLAY_ALL"}}}};
ohq=function(f){f=_.Ge(f,2);return _.PW!=="ru"&&_.PW!=="es_419"&&_.PW!=="es-419"&&_.PW!=="es"&&_.PW!=="es_US"&&_.PW!=="es-US"&&_.PW!=="fr"&&_.PW!=="pl"&&_.PW!=="it"&&_.PW!=="nl"&&_.PW!=="uk"&&_.PW!=="fr_CA"&&_.PW!=="fr-CA"||f===""?f:f[0].toLocaleUpperCase()+f.substring(1)};
Sd7=function(f){return function(R){var u=f(),O=_.Ge(R,u.dateFormat);R=_.Ge(R,u.timeFormat);var c=xil.DATETIMEFORMATS[u.joinerStyle];c=c.replace(/'(?!')/g,"");c=c.replace("{0}",R);c=c.replace("{1}",O);return u.capitalize(c)}};
$iB=function(f){return f?typeof f.seconds==="string"&&(f.nanos===void 0||typeof f.nanos==="number"):!1};
gh0=function(f){return new Date(Number(f.seconds)*1E3+(f.nanos||0)*1E-6)};
_.Ge=function(f,R){if(typeof f.getTime==="function")f={date:f};else if($iB(f))f={date:gh0(f)};else if(typeof $iB(f.timestamp)&&typeof f.i18nInternalSecondsEastOfUtc==="number")f={date:gh0(f.timestamp),timeZone:BW(-f.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(f));var u=f;f=u.date;u=u.timeZone;R=sYt(R).format(f,u);_.PW==="zh-TW"&&(f=u?Number(sYt("H").format(f,u)):f.getHours(),R=f<5?R.replace("\u4e0a\u5348","\u51cc\u6668"):f<8?R.replace("\u4e0a\u5348","\u65e9\u4e0a"):f<12?
R.replace("\u4e0a\u5348","\u4e0a\u5348"):f<13?R.replace("\u4e0b\u5348","\u4e2d\u5348"):f<19?R.replace("\u4e0b\u5348","\u4e0b\u5348"):R.replace("\u4e0b\u5348","\u665a\u4e0a"));return R};
sYt=function(f){if(nht.has(f))return nht.get(f);var R=Viq(f);R=Yde(R);vhq!==!0&&(vhq=!0);iNB=!0;iNB=!1;R=new oL(R,xil);nht.set(f,R);return R};
Viq=function(f){return(new oL(f,xil)).patternParts_.map(function(R){return R.type===0?"'"+R.text+"'":R.text}).join("")};
Yde=function(f){return _.PW==="en"||_.PW==="es_US"||_.PW==="es-US"?f:f.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(R,u,O){return"H".repeat(u.length)+O})};
hTP=function(f,R){rtt||(_.xZ=_.fn2,rtt=new RTn);var u=rtt;a:if(f=ul7(f),R=ul7(R||new Date),f>R)u=f.getTime()-R.getTime()>6048E5?_.Ge(f,1):OiB(f);else{for(var O=0;cit(f,12*(O+1))<R;)++O;if(O>0)u=u.format(-O,0);else{for(O=0;cit(f,O+1)<R;)++O;if(O>0)u=u.format(-O,2);else{f=R.getTime()-f.getTime();R=_.Z(X1X);for(O=R.next();!O.done;O=R.next()){O=O.value;var c=O.unit,h=Math.floor(f/O.unitDuration);if(h>=(O.threshold===void 0?1:O.threshold)){u=u.format(-h,c);break a}}u=u.format(-0,7)}}}return u};
ul7=function(f){if(typeof f.getTime==="function")return f;if($iB(f))return gh0(f);throw Error("Cf`"+JSON.stringify(f));};
cit=function(f,R){for(var u=0,O;;++u)if(O=new Date(f.getFullYear(),f.getMonth()+R,f.getDate()-u,f.getHours(),f.getMinutes(),f.getSeconds()),O.getMonth()===(f.getMonth()+R)%12)return O};
_.S8=function(f){return{runs:[{text:f}]}};
_.$Z=function(f){if(f&&f.simpleText)return f.simpleText;var R="";if(f&&f.runs)for(var u=0;u<f.runs.length;u++)f.runs[u].text&&(R+=f.runs[u].text);return R};
lnh=function(f,R,u,O){return f.videoEntity&&!f.policyEntity&&u!=="DOWNLOAD_STATE_FAILED"?[e8("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Qe(f.policyEntity)&&R!=="TRANSFER_STATE_FAILED"&&R!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?R==="TRANSFER_STATE_PAUSED_BY_USER"?[e8("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.WW(R)?[e8("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:f.videoEntity.lengthSeconds?ZiB(f.videoEntity.lengthSeconds,O):[]:
[e8("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
ZiB=function(f,R){var u=[{thumbnailOverlayTimeStatusRenderer:{text:_.fg(Uie({seconds:f})),style:"DEFAULT"}}];R&&(f=R<=0||f<=0?0:R>=f?100:Math.ceil(R*100/f),f>0&&u.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:f}}));return u};
kCB=function(f,R,u,O,c){if(R==="TRANSFER_STATE_UNKNOWN"||!f)return{};if(_.WW(R)||R==="TRANSFER_STATE_PRE_TRANSFER")var h=[e8("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var l,K;if(R==="TRANSFER_STATE_COMPLETE"&&((l=f.mainPlaylistEntity)==null?0:(K=l.videos)==null?0:K.length)){if(_.E("web_modern_collections_v2")){var q;var F=(h=f.mainPlaylistEntity)==null?void 0:(q=h.videos)==null?void 0:q.length;h=(h=eO7(F))?{thumbnailOverlayBottomPanelRenderer:{text:_.fg(h),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var w;h=G9e((F=f.mainPlaylistEntity)==null?void 0:(w=F.videos)==null?void 0:w.length)}var m;h=[BSD(),Object.assign({},(m=h)!=null?m:{})]}else h=[]}m=h;a:if(R==="TRANSFER_STATE_PRE_TRANSFER")u=RL(_.Fa("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(R==="TRANSFER_STATE_TRANSFER_IN_QUEUE")u=RL(_.Fa("WAITING_TO_DOWNLOAD"));else if(_.WW(R))u=Math.floor(u*100).toString(),u=RL(_.Fa("DOWNLOADING_PERCENT",{percent:u},"Downloading... "+u+"%"));else{if(O&&(_.E("playlist_is_offline_selector_killswitch")&&
(c=_.vh().resolve(_.$M).isNetworkAvailable()),c)){u=x_7(_.Fa("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),B5P(O));break a}u=void 0}R=R==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Fa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},m.length?{thumbnailOverlays:m}:{},u?{viewPlaylistText:u}:{viewPlaylistText:_.S8("")},R.length?{badges:R}:{})};
Ku2=function(f,R,u,O,c,h){if(R==="TRANSFER_STATE_UNKNOWN"||!f)return{};if(O==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var l=lnh(f,R,O);if(f.videoEntity&&!f.policyEntity&&O!=="DOWNLOAD_STATE_FAILED"){var K=_.Fa("WAITING_TO_DOWNLOAD");if(K)return{shortViewCountText:_.S8(K),publishedTimeText:void 0,thumbnailOverlays:l}}if(!Qe(f.policyEntity)){h=f.policyEntity&&!AL7(f.policyEntity)?_.Fa("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Fa("TRANSFER_FAILED",{},"Download failed");var q;if((q=f.policyEntity)==null?0:q.shortMessageForDisabledAction)h=f.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:RL(h),publishedTimeText:void 0,thumbnailOverlays:l}}if(R==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.S8(_.Fa("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:l};if(R==="TRANSFER_STATE_FAILED"||R==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.S8(_.Fa("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:l};if(R==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(q=_.Fa("WAITING_TO_DOWNLOAD"),O==="DOWNLOAD_STATE_PAUSED"&&(q=_.Fa("DOWNLOAD_PAUSED",{},"Download paused")),q))return{shortViewCountText:_.S8(q),publishedTimeText:void 0,thumbnailOverlays:l};if(_.WW(R))return f=Math.floor(u*100).toString(),{shortViewCountText:_.S8(_.Fa("DOWNLOADING_PERCENT",{percent:f},"Downloading... "+f+"%")),publishedTimeText:void 0,thumbnailOverlays:l};R=void 0;f.videoEntity.publishedTimestampMillis&&
(R=new Date,c&&(R=new Date(c)),R=RL(hTP(new Date(Number(f.videoEntity.publishedTimestampMillis)),R)));c=[];_.E("kevlar_woffle_badge_killswitch")||(c=[{metadataBadgeRenderer:{label:_.Fa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var F;f=RL((F=f.videoEntity.localizedStrings)==null?void 0:F.viewCount);return Object.assign({},h?{shortViewCountText:void 0}:{shortViewCountText:f},h?{}:{publishedTimeText:R},{badges:c,thumbnailOverlays:l})};
Ai7=function(f,R){f=f===void 0?q1t:f;switch(R.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:R.payload.playlistId,inviteLinkURL:R.payload.inviteLinkUrl};default:return f}};
Ful=function(f,R){f=f===void 0?anX:f;switch(R.type){case "SET_CURRENT_FORM_ID":return R=R.payload.formId,f.currentFormId===R?f:{currentFormId:R,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var u=R.payload;R=u.groupId;u=u.command;if(f.currentFormId){var O=Object.assign({},f.commandsMap);O[R]=u;f=Object.assign({},f,{commandsMap:O})}return f;case "RESET_COMMAND_MAP":return Object.assign({},f,{commandsMap:{}});default:return f}};
mkn=function(f,R){f=f===void 0?w1P:f;switch(R.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},f,{guideIsExpanded:R.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},f,{scrollAtTop:R.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},f,{guideIsVisibleButNotPersistent:R.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},f,{miniplayerIsActive:R.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},f,{singleOptionSurveyIsActive:R.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},f,{slimlineSurveyRatingSelectedIndex:R.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},f,{richGridMiniMode:R.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},f,{richGridItemsPerRow:R.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},f,{richGridSlimItemsPerRow:R.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},f,{richGridContainerWidth:R.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},f,{richGridStyle:R.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},f,{currentPageType:R.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},f,{inlinePreviewIsActive:R.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},f,{inlinePreviewIsEnabled:R.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},f,{darkModeIsEnabled:R.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
f,{miniplayerPlaybackState:R.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},f,{tabGesturesIsActive:R.payload});case "SET_ONLINE_STATUS":return Object.assign({},f,{isOnline:R.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},f,{chipBarIsSticky:R.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},f,{frostedGlassMode:R.payload});default:return f}};
Wu0=function(f,R){f=f===void 0?QCX:f;switch(R.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},f,{transcription:R.payload});case "SET_OVERLAY_STATE":return Object.assign({},f,{overlay:R.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return f}};
jCn=function(){return Aj(Object.assign({},{continuation:Eah,entities:Xe2,download:to0,reportChannelAbuse:C57,share:yih,talkToRecs:dkh,ui:mkn,voiceSearch:Wu0,watch:Ntl,ypc:LuD,shorts:bit,radioButtonGroup:Ful,collabInviteLink:Ai7},p1X))};
zT2=function(){return _.E("web_player_entities_middleware")?new gz(jCn(),[Dk0,Ji0]):new gz(jCn(),[Dk0])};
_.sP=function(){Ttn||(Ttn=zT2());return Ttn};
Hie=function(f,R,u){if(f.length)return{titleText:_.fg(R!=null?R:_.Fa("DOWNLOADS",void 0,"Downloads")),contents:f.map(function(O){var c=O.videoEntity;O={videoId:c.videoId,title:RL(c.title),shortBylineText:RL(O.channelEntity.title),thumbnail:c.thumbnail};var h=c.videoId?Mq(_.sP().getState(),c.videoId):0;c.videoId&&u?O.navigationEndpoint=_.rA(c.videoId,u,void 0,void 0,h):c.videoId&&(O.navigationEndpoint=Ggl(c.videoId,h,c.lengthSeconds));c.lengthSeconds&&(O.thumbnailOverlays=ZiB(c.lengthSeconds,h));return{playlistPanelVideoRenderer:O}}),
totalVideos:f.length}};
In7=function(f){return(f=(0,_.dq.getValueByKeys)(f,"playlistId"))?{playlistId:f}:null};
Mol=function(){return{}};
P5B=function(f,R){return new _.ah(function(u,O){f.then(function(c){if(c){if(c=R(c))return u(c);O()}},O)})};
Uk7=function(f){var R,u,O,c=(R=f.contents)==null?void 0:(u=R.twoColumnWatchNextResults)==null?void 0:(O=u.autoplay)==null?void 0:O.autoplay,h,l,K;R=(h=f.contents)==null?void 0:(l=h.twoColumnWatchNextResults)==null?void 0:(K=l.playlist)==null?void 0:K.playlist;return c&&R&&R.playlistId?{rawResponse:f,autoplayRenderer:c,playlistPanelRenderer:R,playlistId:R.playlistId}:null};
GC5=function(f){var R=R===void 0?"UNKNOWN_INTERFACE":R;if(f.length===1)return f[0];var u=eTn[R];if(u){u=new RegExp(u);for(var O=_.Z(f),c=O.next();!c.done;c=O.next())if(c=c.value,u.exec(c))return c}var h=[];Object.entries(eTn).forEach(function(l){var K=_.Z(l);l=K.next().value;K=K.next().value;R!==l&&h.push(K)});
u=new RegExp(h.join("|"));f.sort(function(l,K){return l.length-K.length});
O=_.Z(f);for(c=O.next();!c.done;c=O.next())if(c=c.value,!u.exec(c))return c;return f[0]};
_.Ve=function(f){return"/youtubei/v1/"+GC5(f)};
_.YZ=function(f){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:f}}}}};
_.vW=function(f){return _.YZ(_.S8(f))};
BtX=function(f,R){var u={mode:"NORMAL"};f&&(u.autoplayVideo=f.navigationEndpoint,u.nextButtonVideo=f.navigationEndpoint);R&&(u.previousButtonVideo=R.navigationEndpoint);return u};
S1l=function(f,R,u){if(!u||!u.sets)return{sets:[BtX(f,R)]};var O=u.sets.find(function(l){return l.mode==="NORMAL"}),c=(0,_.dq.unsafeClone)(u);
if(!O)return c.sets.push(BtX(f,R)),c;if(!f)return u;O=_.dq.getValueByKeys.apply(null,[O].concat(_.yq(oah)));var h=_.dq.getValueByKeys.apply(null,[f].concat(_.yq(xkh)));if(O===h)return u;c.sets=c.sets.filter(function(l){return l.mode!=="NORMAL"});
c.sets.push(BtX(f,R));return c};
$kq=function(f){return!!f.playlistPanelVideoRenderer&&!f.playlistPanelVideoRenderer.unplayableText};
ga5=function(f){return!!f.playlistPanelVideoRenderer&&!!f.playlistPanelVideoRenderer.title};
sCn=function(f,R){if(R.contents&&!(f>=R.contents.length)&&(f=R.contents.slice(f).find($kq)))return f.playlistPanelVideoRenderer};
na2=function(f,R){if(R.contents)return(R=R.contents.find(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===f}))?R.playlistPanelVideoRenderer:void 0};
VoP=function(f,R){return R.contents?R.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===f}):-1};
Y1t=function(f,R){return R.contents?R.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.playlistSetVideoId===f}):-1};
va5=function(f,R){f.contents&&R!==-1&&f.contents.splice(R,1).length===1&&f.totalVideos!==void 0&&(--f.totalVideos,delete f.videoCountText)};
_.iiB=function(f){var R=[];if(!f||!f.contents)return R;f=_.Z(f.contents);for(var u=f.next();!u.done;u=f.next())u=u.value,u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId&&R.push(u.playlistPanelVideoRenderer.videoId);return R};
_.riq=function(f){if(f&&f.contents)return(f=f.contents.find(function(R){return!!R.playlistPanelVideoRenderer&&!!R.playlistPanelVideoRenderer.selected})||f.contents[f.currentIndex])?f.playlistPanelVideoRenderer:void 0};
fX5=function(f,R,u,O,c,h,l){c=c===void 0?!1:c;h=h===void 0?!1:h;l=l===void 0?!1:l;if(f.contents&&f.contents.length!==0){O&&(f.contents=f.contents.filter(O));O=f.contents.length;for(var K=0;K<O;K++){var q=f.contents[K].playlistPanelVideoRenderer;q&&(K===R?(h&&delete q.menu,q.indexText=_.S8("\u25b6")):c||f.isInfinite||q.indexText===void 0?delete q.indexText:q.indexText=_.S8((K+1+u).toString()))}f.currentIndex=R+u;l&&(delete f.videoCountText,f.totalVideos=O)}};
_.i$=function(f){f=R7t(f);if(f){var R=f.length;var u=-77%R;u<0&&(u=R+u);f=f.slice(R-u)+f.slice(0,R-u)}else f="";u="";for(R=0;R<f.length&&f[R]!==usP;R++)u+=f[R];return u};
_.Okt=function(f,R){var u=document.body;R=R===void 0?function(K){return K}:R;
var O,c=null;f=_.Z(f);for(O=f.next();!O.done;O=f.next()){var h=O.value;O=document.createElement("div");c||(c=O);var l=h[0];h=h[1];l&&(O.id=R(l));if(h)for(l=_.Z(h),h=l.next();!h.done;h=l.next())O.classList.add(R(h.value));u.appendChild(O);u=O}return[c,u]};
cCP=function(f,R){for(var u="",O=0;O<R;O++)u+=f.charAt(Math.floor(Math.random()*f.length));return u};
rz=function(f){return cCP("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",f)};
fn=function(f){return cCP("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",f)};
R1=function(f){return cCP("0123456789",f)};
uj=function(){var f=performance.now(),R=new Date;var u="2."+R.getFullYear()+String(R.getMonth()+1).padStart(2,"0")+String(R.getDate()).padStart(2,"0");for(var O,c=Math.floor(Math.random()*11)+15,h=[],l=0;l<c;l++)h.push(Math.floor(Math.random()*26476865)+24547720);O=h.join(",");var K=rz(10),q=rz(100),F=rz(102),w=rz(106),m=rz(108),W=rz(11),C=rz(1140),d=rz(123),p=rz(14),J=rz(16),M=rz(1900),P=rz(23),g=rz(26),x=rz(34),fh=rz(397),V=rz(44),ZD=rz(5),mP=rz(72),NX=rz(74),jt=rz(75),Jn=rz(88),zq=rz(91),St="rr1---sn-5hne6nzs rr3---sn-t0a7ln7d rr3---sn-q4fl6nsd rr1---sn-q4fl6nsy rr4---sn-aigzrnz7 rr5---sn-q4flrn7k rr2---sn-q4fl6nde rr1---sn-4g5edndk rr2---sn-4g5lznez rr3---sn-q4fl6nsk rr3---sn-q4flrnes rr2---sn-q4fl6ns6 rr1---sn-q4fl6nd7 rr3---sn-5hne6nzd rr5---sn-5hneknek rr1---sn-q4fl6nds rr5---sn-q4fl6nss rr3---sn-q4fl6n6d rr2---sn-q4fl6nsk rr5---sn-q4fl6nz6".split(" ");
var Gq=St[Math.floor(Math.random()*St.length)];var LC=(new Date("2010-01-01")).getTime();var wN=(new Date(LC+Math.random()*((new Date).getTime()-LC))).toISOString().split("T")[0];for(var GI,ak=[],kC=0;kC<4;kC++)ak.push(Math.floor(Math.random()*100));GI=ak.join(".");var Rw=Number(R1(5)),KC=Number(R1(6)),qe=Number(R1(7)),LE=Number(R1(9)),k5=R1(1),yA=R1(10),HG=R1(16),GX=R1(19),bf=R1(2),$C=R1(20),Bl=R1(21),qt=R1(3),Y5=R1(4),tf=R1(5),lK=R1(6),CC=R1(7),Eh=R1(8),k_=R1(9);var kM=cCP("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Uh=[fn(5),fn(5),fn(5)].join("%2C"),Wl=[R1(3),R1(5),R1(5)].join("%2C"),Kv=fn(0),BG=fn(1),bK=fn(10),vt=fn(108),iK=fn(11),Ob=fn(12),Ek=fn(13),cf=fn(14),Ct=fn(15),Gd=fn(16),AZ=fn(17),tn=fn(18),MX=fn(19),o7=fn(2),ml=fn(20),X5=fn(22),Dp=fn(23),A9=fn(24),EE=fn(266),wH=fn(3),Wt=fn(30),a8=fn(34),hf=fn(35),QK=fn(36),FT=fn(4),Me=fn(40),tu=fn(43),KB=fn(47),Gw=fn(5),$5=fn(6),ct=fn(7),KE=fn(75),rN=fn(8),bC=fn(80),nG=fn(9),JT="https://www."+fn(12)+".com",E0={},tM={},EH={},Sht={},tg={},od={},xq={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:O}]},{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"+fn(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:O}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Bl+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+fn(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Me,ypcGetOfflineUpsellEndpoint:{params:bC}},trackingParams:hf+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&cnr="+bf+"&ratebypass=yes&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&c=WEB&txp="+CC+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:KC,width:640,height:360,lastModified:HG,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:CC,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Wl+"&mn="+
Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&cnr="+bf+"&ratebypass=yes&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&c=WEB&txp="+CC+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+vt+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:KC,width:1280,
height:720,lastModified:HG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:CC,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+Wl+"&mn="+Uh+"&ms="+
Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+k_+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&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="+m,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:qe,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:k_,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:qe,approxDurationMs:CC},{itag:248,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+
BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+k_+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:qe,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:k_,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:qe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:399,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+k_+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&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="+m,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:qe,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:k_,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:qe,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:136,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+k_+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:qe,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:k_,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KC,approxDurationMs:CC},{itag:247,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+Wl+"&mn="+
Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+k_+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:qe,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:k_,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:398,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+k_+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:qe,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:k_,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:135,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:KC,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KC,approxDurationMs:CC},{itag:244,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+Wl+"&mn="+
Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+vt+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KC,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:397,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&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="+m,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:KC,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:134,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:KC,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KC,highReplication:!0,approxDurationMs:CC},{itag:243,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KC,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:396,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:KC,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:133,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:KC,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KC,approxDurationMs:CC},{itag:242,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+Wl+"&mn="+
Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KC,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:395,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:KC,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:160,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:KC,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rw,approxDurationMs:CC},{itag:278,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+Wl+"&mn="+
Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KC,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:394,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&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="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=video%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&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="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Rw,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CC},{itag:140,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=audio%2Fmp4&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:KC,
initRange:{start:"0",end:"631"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KC,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:CC,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+
bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=audio%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+CC+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:Rw,initRange:{start:"0",end:"265"},indexRange:{start:qt,
end:Y5},lastModified:HG,contentLength:CC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rw,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:CC,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=audio%2Fwebm&ns="+
A9+"&gir="+wH+"&clen="+CC+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+CC+"&n="+Gd+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:Rw,initRange:{start:"0",end:"265"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:CC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rw,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:CC,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Gq+".googlevideo.com/videoplayback?expire="+yA+"&ei="+P+"&ip="+GI+"&id=o-AF"+tu+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Wl+"&mn="+Uh+"&ms="+Uh+"&mv="+BG+"&mvi="+k5+"&pl="+bf+"&initcwndbps="+CC+"&siu="+k5+"&spc="+V+"&vprv="+k5+"&svpuc="+k5+"&mime=audio%2Fwebm&ns="+A9+"&gir="+wH+"&clen="+Eh+"&dur="+Eh+"&lmt="+HG+"&mt="+yA+"&fvip=3&keepalive="+wH+"&c=WEB&txp="+
CC+"&n="+Gd+"&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="+m,mimeType:'audio/webm; codecs="opus"',bitrate:KC,initRange:{start:"0",end:"265"},indexRange:{start:qt,end:Y5},lastModified:HG,contentLength:Eh,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KC,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:CC,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="+k_+"&docid="+W+"&ei="+P+"&feature="+K+"&fexp="+Kv+"&ns="+o7+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+BG+"&el="+bK+"&len="+Y5+"&of="+X5+
"&uga="+bf+"&vm="+EE},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+k_+"&docid="+W+"&ei="+P+"&feature="+K+"&fexp="+Kv+"&ns="+o7+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+BG+"&el="+bK+"&len="+Y5+"&of="+X5+"&uga="+bf+"&vm="+EE},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+k_+"&docid="+W+"&ei="+P+"&feature="+K+"&fexp="+Kv+"&ns="+o7+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
BG+"&el="+bK+"&len="+Y5+"&of="+X5+"&uga="+bf+"&vm="+EE},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+P+"&m="+Jn+"&oid="+X5+"&plid="+J+"&pltype="+ct+"&ptchn="+X5+"&ptk="+p+"&video_id="+W},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+k_+"&docid="+W+"&ei="+P+"&event="+cf+"&feature="+K+"&fexp="+Kv+"&ns="+o7+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+BG},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+W+"&ei="+P+"&feature="+
K+"&len="+Y5+"&ns="+o7+"&plid="+J+"&ver="+k5,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+W+"&caps="+wH+"&opi="+k_+"&xoaf="+k5+"&hl="+o7+"&ip="+GI+"&ipbits="+k5+"&expire="+yA+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+GI+"&key="+wH+"&lang="+ZD,name:{simpleText:MX},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+W+"&caps="+wH+"&opi="+k_+"&xoaf="+k5+"&hl="+o7+"&ip="+GI+"&ipbits="+k5+"&expire="+yA+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+GI+"&key="+wH+"&kind="+wH+"&lang="+o7,name:{simpleText:Ct},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:iK,title:AZ,lengthSeconds:"1155",keywords:[AZ,MX,rN,MX],
channelId:A9,isOwnerViewing:!1,shortDescription:FT,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+a8,width:168,height:94},{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+a8,width:196,height:110},{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+x,width:246,height:138},{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+x,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
W+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:CC,author:Ek,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:CC,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+X5+"/featured_channel.jpg?v="+rN,width:40,height:40}]},trackingParams:hf+"=",navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"/channel/"+A9,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:A9}},channelName:Ek,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:iK}]},subscribed:!1,enabled:!0,type:"FREE",channelId:A9,showPreferences:!1,subscribedButtonText:{runs:[{text:FT}]},unsubscribedButtonText:{runs:[{text:tn}]},trackingParams:hf+"=",unsubscribeButtonText:{runs:[{text:ct}]},serviceEndpoints:[{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[A9],params:rN}},{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Me,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:hf+"=",dialogMessages:[{runs:[{text:ct},{text:tn},{text:iK}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Gd}]},serviceEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[A9],params:rN}},accessibility:{label:AZ},trackingParams:hf+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:AZ}]},accessibility:{label:ml},trackingParams:hf+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ct}},unsubscribeAccessibility:{accessibilityData:{label:iK}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Eh},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[A9],params:rN}},unsubscribeCommand:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[A9],params:rN}},addToWatchLaterCommand:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:iK,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:iK}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+W+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+QK+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
W+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+iK,width:1280,height:720},title:{simpleText:AZ},description:{simpleText:tn},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+cf,externalChannelId:A9,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:CC,category:"Travel & Events",publishDate:wN,ownerChannelName:Ek,uploadDate:wN}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:MX},trackingParams:hf+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Me,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:hf+"="}}],headerText:{simpleText:Ek},icon:{infoCardIconRenderer:{trackingParams:hf+"="}},closeButton:{infoCardIconRenderer:{trackingParams:hf+"="}},trackingParams:hf+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:hf+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+iK+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:kM,interpreterSafeUrl:(E0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Wt+".js",E0),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ml},{text:iK,bold:!0}]},endpoint:{clickTrackingParams:Me,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:hf+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Ek}]},actionButton:{buttonRenderer:{text:{runs:[{text:FT}]},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+W,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
W,target:"TARGET_NEW_WINDOW"}},trackingParams:hf+"="}},trackingParams:hf+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+mP+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+mP+"=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:CC,endMs:CC,title:{accessibility:{accessibilityData:{label:ct}},simpleText:bK},metadata:{simpleText:Gd},callToAction:{simpleText:ct},dismiss:{simpleText:$5},endpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"/channel/"+A9,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:A9}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Gw}]},subscribed:!1,enabled:!0,type:"FREE",channelId:A9,showPreferences:!1,
subscribedButtonText:{runs:[{text:cf}]},unsubscribedButtonText:{runs:[{text:iK}]},trackingParams:hf+"=",unsubscribeButtonText:{runs:[{text:tn}]},serviceEndpoints:[{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[A9],params:rN}},{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Me,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:hf+
"=",dialogMessages:[{runs:[{text:Ct},{text:tn},{text:FT}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Gw}]},serviceEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[A9],params:rN}},accessibility:{label:iK},trackingParams:hf+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Gw}]},
accessibility:{label:nG},trackingParams:hf+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Ek}},unsubscribeAccessibility:{accessibilityData:{label:Gw}}}},trackingParams:hf+"=",isSubscribe:!0,id:$C}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+x,width:168,height:94},{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+a8,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+x,width:246,height:138},{url:"https://i.ytimg.com/vi/"+W+"/hqdefault.jpg?sqp=-oaymwE"+QK+"G&rs="+x,width:336,height:188},{url:"https://i.ytimg.com/vi/"+W+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:CC,endMs:CC,title:{accessibility:{accessibilityData:{label:tn}},simpleText:Ek},metadata:{simpleText:Gw},endpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
iK,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:iK,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Gq+".googlevideo.com/videoplayback?source=youtube&oeis="+k5+"&c=WEB&oad="+Y5+"&ovd="+Y5+"&oaad="+tf+"&oavd="+tf+"&ocs="+qt+"&oewis="+k5+"&oputc="+k5+"&ofpcc="+k5+"&siu="+k5+"&msp="+k5+"&odepv="+k5+
"&id=o-AF"+tu+"&ip="+GI+"&initcwndbps="+CC+"&mt="+yA+"&oweuc="+Kv}}}}},trackingParams:hf+"=",id:$C,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:rN}},simpleText:Ek},style:"DEFAULT"}}]}}],startMs:CC,trackingParams:hf+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:k5,offsetEndMilliseconds:tf},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";ord="+yA+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+qt+";dc_sk="+k5+";dc_ctype="+bf+";dc_ref=http://www.youtube.com/video/"+iK+";dc_pubid="+k5+";dc_btype=23?gclid="+zq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+k5+"&ns="+k5+"&event="+k5+"&device="+k5+"&content_v="+W+"&el="+bK+"&ei="+P+"&devicever="+u+"&bti="+CC+"&format="+lK+"&break_type="+k5+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+k5+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+GI+"&slot_pos="+k5+"&slot_len="+k5+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Wl+"&ad_len="+tf+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
iK+"&aqi="+P+"&ad_rmp="+k5+"&sli="+k5}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+
";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+CC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&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"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&ctype="+qt+"&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"+
C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_engaged_view&ctype="+qt+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+GX+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+Dp+"&ad_cpn=[AD_CPN]&id="+$5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$5+"&dc_pubid="+k5+"&dc_exteid="+$C+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+Dp+"&ad_cpn=[AD_CPN]&id="+$5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+k5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$5+"&avm="+k5+"&dc_pubid="+k5+"&dc_exteid="+
$C+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&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="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
F+"&sig="+Dp+"&ad_cpn=[AD_CPN]&id="+$5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+k5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$5+"&dc_pubid="+k5+"&dc_exteid="+$C+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Me,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+
qt+"&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/"+W+"/mqdefault.jpg",width:320,height:180}]},trackingParams:hf+"="},trackingParams:hf+
"=",templatedCountdown:{templatedAdText:{text:nG,isTemplated:!0,trackingParams:hf+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:tn,isTemplated:!1,trackingParams:hf+"="},trackingParams:hf+"="}},trackingParams:hf+"=",skipOffsetMilliseconds:5E3}},trackingParams:hf+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:iK},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hf+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:iK,isTemplated:!1,trackingParams:hf+"="},trackingParams:hf+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:tn,isTemplated:!0,trackingParams:hf+"="}},trackingParams:hf+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Me,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+o7+"&origin=www.youtube.com&ata_theme="+FT,tM),trackingParams:hf+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:hf+"="}},hoverText:{runs:[{text:$5}]},trackingParams:hf+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hf+"="},headline:{text:rN,isTemplated:!1,trackingParams:hf+"="},description:{text:Gd,
trackingParams:hf+"="},actionButton:{buttonRenderer:{text:{simpleText:MX},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hf+"="}},startMs:k5,trackingParams:hf+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Gw},elementId:$5}},elementId:FT,trackingParams:hf+"=",legacyInfoCardVastExtension:nG,sodarExtensionData:{siub:bK,bgub:bK,scs:MX,bgp:AZ},externalVideoId:iK,adLayoutLoggingData:{serializedAdServingDataEntry:cf},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hf+"="},
headline:{text:ct,isTemplated:!1,trackingParams:hf+"="},description:{text:Ct,isTemplated:!1,trackingParams:hf+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ml},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+
$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+
k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:hf+"="}},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+
k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hf+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:hf+"="},abandonCommands:{commands:[{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&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="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+
k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Me,commandExecutorCommand:{commands:[{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:tn,isTemplated:!1,trackingParams:hf+
"="},trackingParams:hf+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ml},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+CC+";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="+k_+";dc_trk_cid="+k_+";ord="+yA+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+qt+";dc_sk="+k5+";dc_ctype="+bf+";dc_ref=http://www.youtube.com/video/"+iK+";dc_pubid="+k5+";dc_btype=23?gclid="+zq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+k5+"&ns="+k5+"&event="+k5+"&device="+k5+"&content_v="+W+"&el="+bK+"&ei="+P+"&devicever="+u+"&bti="+CC+"&format="+lK+"&break_type="+k5+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+k5+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+GI+"&slot_pos="+k5+"&slot_len="+k5+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Wl+"&ad_len="+tf+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+iK+"&aqi="+P+"&ad_rmp="+k5+"&sli="+k5}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+
g+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+CC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&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"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&ctype="+qt+"&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"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_engaged_view&ctype="+qt+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+Dp+"&ad_cpn=[AD_CPN]&id="+
$5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$5+"&dc_pubid="+k5+"&dc_exteid="+$C+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+
"&sig="+Dp+"&ad_cpn=[AD_CPN]&id="+$5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+k5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$5+"&avm="+k5+"&dc_pubid="+k5+"&dc_exteid="+$C+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&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="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+Dp+"&ad_cpn=[AD_CPN]&id="+$5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+k5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$5+"&dc_pubid="+k5+"&dc_exteid="+$C+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+lK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+
qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&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/"+W+"/mqdefault.jpg",width:320,height:180}]},trackingParams:hf+"="},trackingParams:hf+"=",templatedCountdown:{templatedAdText:{text:$5,isTemplated:!0,trackingParams:hf+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:cf,isTemplated:!1,trackingParams:hf+"="},trackingParams:hf+"="}},
trackingParams:hf+"=",skipOffsetMilliseconds:5E3}},trackingParams:hf+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:cf},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ct,isTemplated:!1,trackingParams:hf+"="},trackingParams:hf+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Ek,
isTemplated:!0,trackingParams:hf+"="}},trackingParams:hf+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Me,openPopupAction:{popup:{aboutThisAdRenderer:{url:(EH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+o7+"&origin=www.youtube.com&ata_theme="+FT,EH),trackingParams:hf+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:hf+"="}},hoverText:{runs:[{text:FT}]},trackingParams:hf+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NX+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hf+"="},headline:{text:Ct,isTemplated:!1,trackingParams:hf+"="},description:{text:Ek,trackingParams:hf+"="},actionButton:{buttonRenderer:{text:{simpleText:MX},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hf+"="}},startMs:k5,trackingParams:hf+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ob},elementId:ct}},elementId:nG,trackingParams:hf+"=",legacyInfoCardVastExtension:MX,sodarExtensionData:{siub:$5,bgub:tn,scs:cf,bgp:Gd},externalVideoId:iK,adLayoutLoggingData:{serializedAdServingDataEntry:Gd},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NX+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hf+"="},headline:{text:tn,
isTemplated:!1,trackingParams:hf+"="},description:{text:AZ,isTemplated:!1,trackingParams:hf+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:bK},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:hf+"="}},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+
k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:hf+"="},abandonCommands:{commands:[{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&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="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+bf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Me,commandExecutorCommand:{commands:[{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:bK,isTemplated:!1,trackingParams:hf+"="},trackingParams:hf+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Gd},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+k5+";dc_exteid="+$C+";met="+k5+";ecn"+k5+"="+k5+";etm1="+k5+";eid1="+
CC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:rN}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ob}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:tf,offsetEndMilliseconds:lK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+bf+"&token=ALHj"+fh+"&index="+k5+"&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="+tf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ct}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:lK,offsetEndMilliseconds:lK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+qt+"&token=ALHj"+fh+"&index="+k5+"&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="+lK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lK,offsetEndMilliseconds:lK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+qt+"&token=ALHj"+fh+"&index="+k5+"&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="+lK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lK,offsetEndMilliseconds:lK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+qt+"&token=ALHj"+fh+"&index="+k5+"&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="+lK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lK,offsetEndMilliseconds:bf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+qt+"&token=ALHj"+fh+"&index="+k5+"&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="+lK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ml}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:bf,offsetEndMilliseconds:bf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+P+"&m_pos="+bf+"&token=ALHj"+fh+"&index="+k5+"&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="+bf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Ob,isTemplated:!1,trackingParams:hf+"="},description:{text:Gw,isTemplated:!1,trackingParams:hf+"="},actionButton:{buttonRenderer:{text:{simpleText:rN},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KB+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:hf+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+jt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:hf+"="},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+
";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Me,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Sht.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+o7+"&origin=www.youtube.com&ata_theme="+FT,Sht),trackingParams:hf+"="}},popupType:"DIALOG"}},trackingParams:hf+"="}},hoverText:{runs:[{text:Gd}]},trackingParams:hf+"="}},adVideoId:iK,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nG},associatedCompositePlayerBytesLayoutId:Gd}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Ct}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Ek,isTemplated:!1,trackingParams:hf+"="},description:{text:Gd,isTemplated:!1,trackingParams:hf+"="},actionButton:{buttonRenderer:{text:{simpleText:rN},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hf+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NX+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:hf+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+KE+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:hf+"="},navigationEndpoint:{clickTrackingParams:Me,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+
k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Me,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+o7+"&origin=www.youtube.com&ata_theme="+FT,tg),trackingParams:hf+"="}},popupType:"DIALOG"}},trackingParams:hf+"="}},
hoverText:{runs:[{text:Ek}]},trackingParams:hf+"="}},adVideoId:iK,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+iK+"&cid="+g+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:cf},associatedCompositePlayerBytesLayoutId:Gd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:MX,
isTemplated:!1,trackingParams:hf+"="},description:{text:Ob,isTemplated:!1,trackingParams:hf+"="},actionButton:{buttonRenderer:{text:{simpleText:Ob},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+
bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+
x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hf+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KB+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:hf+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+jt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:hf+
"="},navigationEndpoint:{clickTrackingParams:Me,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+k_+";dc_trk_cid="+k_+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+k5+";ord="+k_+";dc_rui="+k5+";dc_exteid="+$C+";dc_av="+k5+";dc_sk="+k5+";dc_ctype="+bf+";dc_pubid="+k5+";dc_btype=3?gclid="+zq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+k5+"&cid="+g+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+JT+"&label=video_click_to_advertiser_site&ctype="+qt+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hf+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Me,openPopupAction:{popup:{aboutThisAdRenderer:{url:(od.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+o7+"&origin=www.youtube.com&ata_theme="+FT,od),trackingParams:hf+"="}},popupType:"DIALOG"}},trackingParams:hf+
"="}},hoverText:{runs:[{text:FT}]},trackingParams:hf+"="}},adVideoId:iK,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+W+"&cid="+g+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ek},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Gd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tn}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Wt,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Wt,command:{innertubeCommand:{clickTrackingParams:Me,ypcGetOfflineUpsellEndpoint:{params:bC}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:hf+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:yA,nanos:LE}}}},aRP=JSON.stringify(xq),Sf=performance.now()-f;return{objectRepresentation:xq,jsonRepresentation:aRP,generationTime:Sf}};
XT5=function(f,R){if(f===R)return!0;if(!f||!R||typeof f!==typeof R)return!1;if(f instanceof Array&&R instanceof Array){if(f.length!==R.length)return!1;for(var u=0;u<f.length;u++)if(!XT5(f[u],R[u]))return!1;return!0}if(typeof f==="object"&&typeof R==="object"&&f&&R){for(u in f)if(!(u in R&&XT5(f[u],R[u])))return!1;for(var O in R)if(!(O in f))return!1;return!0}return!1};
_.cL=function(){if(!Oy){Oy=new AK(new h75);var f=_.RV("client_streamz_web_flush_count",-1);f!==-1&&(Oy.invocationLimit=f)}return Oy};
Xr=function(f,R,u,O){if(f===R)return!0;if(Array.isArray(f)&&Array.isArray(R)){if(f.length!==R.length)return!1;for(var c=0;c<f.length;c++)if(!Xr(f[c],R[c],u,O))return!1;return!0}if(f instanceof Set||R instanceof Set){if(f instanceof Set&&R instanceof Set){if(f.size!==R.size)return!1;O=_.Z(f.values());for(c=O.next();!c.done;c=O.next())if(!R.has(c.value))return!1;return!0}return!1}if(f instanceof Function){if(O)return!0;f.name===""&&_.TL(Error("Gf"),"ERROR");return!1}if(f instanceof Date&&R instanceof
Date)return f.getTime()===R.getTime();if(f instanceof Object&&R instanceof Object){if(Zkq(f)&&Zkq(R))try{return f.equals(R)}catch(l){_.TL(Error("Hf`"+l),"ERROR")}c=Object.getOwnPropertyNames(f).filter(function(l){return u?f[l]!==void 0:!0});
var h=Object.getOwnPropertyNames(R).filter(function(l){return u?R[l]!==void 0:!0});
if(c.length!==h.length)return!1;c=_.Z(c);for(h=c.next();!h.done;h=c.next())if(h=h.value,!Xr(f[h],R[h],u,O))return!1;return!0}return!1};
Zkq=function(f){f=Object.getPrototypeOf(f).equals;return f instanceof Function&&f.length===1};
_.Kfl=function(){return _.k(function(f){if(f.nextAddress==1)return lX7!==2?f.jumpTo(2):_.A(f,kMl(),3);f.nextAddress!=2&&(lX7=f.yieldResult);return f.return(lX7)})};
_.aX7=function(){return _.k(function(f){if(f.nextAddress==1)return _.E("ab_pl_man")?qq0!==2?f.jumpTo(2):_.A(f,ACt(),3):f.return(1);f.nextAddress!=2&&(qq0=f.yieldResult);return f.return(qq0)})};
m77=function(){return _.k(function(f){if(f.nextAddress==1)return _.E("ab_fk_sk_cl")?Ff7!==2?f.jumpTo(2):_.A(f,wTB(),3):f.return(1);f.nextAddress!=2&&(Ff7=f.yieldResult);return f.return(Ff7)})};
_.Edn=function(){return _.k(function(f){if(f.nextAddress==1)return _.E("ab_det_apb_b")?Qrn!==2?f.jumpTo(2):_.A(f,WfP(),3):f.return(1);f.nextAddress!=2&&(Qrn=f.yieldResult);return f.return(Qrn)})};
yCn=function(){var f;return _.k(function(R){if(R.nextAddress==1)return _.A(R,Promise.all([_.Kfl(),_.Edn(),_.aX7(),m77()]),2);if(R.nextAddress!=3)return tGh()?R.return(!0):_.A(R,_.CU5(),3);f=R.yieldResult;return R.return(f===0)})};
tGh=function(){var f=!1,R=function(u,O){d7B.increment(O,u);u===0&&(f=!0)};
R(_.Njh(),"j.s_");R(lX7,"f.i_");R(Qrn,"a.b_");R(qq0,"p.m_");R(Ff7,"i.f_");LfB===2&&(LfB=_.bkn(pTn));R(LfB,"e.h_");_.E("ks_det_gpbl")||R(_.jr5(),"p.i_");_.E("ks_get_o_pp")||R(_.D7X(),"g.o_");_.E("ab_deg_unex_thr")||R(_.JCn(),"a.o_");R(z7t,"s.t_");_.E("ab_det_sc_inj_enf")&&R(_.Tj7(),"s.i_");R(Hk7,"d.p_");R(_.IXD(_.hN),"o.p_");R(_.MGP()===0?0:_.PUn(),"o.a_");return _.E("debug_sk_em_precheck")?!0:f};
e7q=function(){var f=[].concat(_.yq(U7P));try{var R=uj();f.push({jsonRepresentation:R.jsonRepresentation,objectRepresentation:R.objectRepresentation})}catch(u){f=[].concat(_.yq(U7P))}return f};
GMh=function(){var f=["adPlacements","adSlots"];try{return f.filter(function(){return!0}).length!==f.length?0:1}catch(R){return 0}};
_.D7X=function(){if(GMh()===0)return 0;var f=uj(),R=f.objectRepresentation,u=(0,_.dq.unsafeClone)(R),O=[];if(R&&typeof R==="object")for(var c in R)O.push(c);else return 4;f=f.objectRepresentation.adPlacements;if(!(f&&f.length>0))return 4;try{if(!XT5(O,Object.getOwnPropertyNames(R)))return 0}catch(h){return 0}return XT5(u,R)?1:0};
_.IXD=function(f){if(!f||!f.length||typeof f==="string")return 0;for(var R=Object.getOwnPropertyNames(Object.prototype),u=0;u<f.length;u++)for(var O=_.i$(f[u]),c=_.Z(R),h=c.next();!h.done;h=c.next())if(O===h.value)return 0;return 1};
Bjt=function(f){var R=_.i$(f[1]);if(f[0]===null)return R;f=f[0];for(var u={},O=0;O<f.length;O++){var c=_.i$(f[O]);if(O===0)u[c]=R;else{var h={};h[c]=u;u=h}}return u};
_.MGP=function(){for(var f=_.ZM,R=0;R<f.length;R++){var u=Bjt(f[R]),O=[];O.push(u);if(O.length===0)return 0}return 1};
_.PUn=function(){for(var f=_.ZM,R={},u=0;u<f.length;R={erf:void 0},u++){var O=[Bjt(f[u])];R.erf=[];O.forEach(function(c){return function(h){c.erf[c.erf.length]=h}}(R));
if(R.erf.length===0)return 0}return 1};
_.Njh=function(){for(var f=_.Z(e7q()),R=f.next();!R.done;R=f.next()){var u=R.value;R=u.jsonRepresentation;u=u.objectRepresentation;try{var O=JSON.parse(R);if(!Xr(O,u,!1,!1))return 0}catch(c){return 0}}return 1};
_.Tj7=function(){try{var f=_.Xt("ab_det_sc_inj_val");f.length===1&&f[0]===""&&(f=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var R=document.querySelectorAll("script"),u=_.Z(R),O=u.next();!O.done;O=u.next())for(var c=O.value,h=_.Z(f),l=h.next();!l.done;l=h.next()){var K=l.value;R=void 0;if((R=c.textContent)==null?0:R.includes(K))return 0}}catch(q){return 4}return 1};
_.CU5=function(){var f,R,u,O,c,h,l;return _.k(function(K){switch(K.nextAddress){case 1:_.cl(K,2),f=_.Z(U7P),R=f.next();case 4:if(R.done)return K.return(1);O=u=R.value;c=O.jsonRepresentation;h=O.objectRepresentation;return _.A(K,(new Response(c,{status:200})).json(),7);case 7:l=K.yieldResult;if(!Xr(l,h,!1,!1))return K.return(0);R=f.next();K.jumpTo(4);break;case 2:return _.ku(K),K.return(4)}})};
_.JCn=function(){try{btoa("abc")}catch(f){return 0}return 1};
kMl=function(){var f,R,u,O,c,h,l,K,q,F,w;return _.k(function(m){switch(m.nextAddress){case 1:_.cl(m,2),f=_.Z(e7q()),R=f.next();case 4:if(R.done)return m.return(1);O=u=R.value;c=O.jsonRepresentation;h=O.objectRepresentation;l=btoa(c);K="data:application/json;base64,"+l;q=new Request(K);Object.defineProperty(q,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(q,"method",{get:function(){return"POST"}});
Object.defineProperty(q,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(q,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(q,"body",{get:function(){return new ReadableStream}});
return _.A(m,fetch(q),7);case 7:return F=m.yieldResult,_.A(m,F.json(),8);case 8:w=m.yieldResult;if(!Xr(w,h,!1,!1))return m.return(0);R=f.next();m.jumpTo(4);break;case 2:return _.ku(m),m.return(4)}})};
_.bkn=function(f){if(!f||!f.length||typeof f==="string")return 0;for(var R=function(c){return _.i$(c)},u=2,O=0;O<f.length&&(u=_.od0(_.Okt(f[O],R)),u!==0);O++);
return u};
_.od0=function(f){var R=_.Z(f);f=R.next().value;R=R.next().value;try{var u=document.createElement("div");document.body.appendChild(u);var O=getComputedStyle(u).display;document.body.removeChild(u);if(O==="none")return 4;var c=getComputedStyle(R).display==="none"?0:1;document.body.removeChild(f);return c}catch(h){return 4}};
wTB=function(){var f,R,u;return _.k(function(O){f=new _.lj;R=document.createElement("button");R.classList.add("ytp-ad-skip-button");R.style.opacity="0";R.style.height="0px";R.style.width="0px";R.style.padding="0px";R.style.border="none";u=function(){R.parentElement&&R.parentElement.removeChild(R)};
R.onclick=function(){f.resolve(0);u()};
document.body.appendChild(R);setTimeout(function(){u();f.resolve(1)},50);
return O.return(f.promise)})};
ACt=function(){var f,R,u,O,c,h,l;return _.k(function(K){f=new _.lj;R=document.createElement("ytd-player");try{document.body.prepend(R)}catch(q){return K.return(4)}u=function(){R.parentElement&&R.parentElement.removeChild(R)};
R.getElementsByTagName("div").length>0?O=R.getElementsByTagName("div")[0]:(O=document.createElement("div"),R.appendChild(O));c=document.createElement("div");O.appendChild(c);h=document.createElement("video");l=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"});h.src=_.F3(_.Cj(l));h.ontimeupdate=function(){u();f.resolve(0)};
c.appendChild(h);h.classList.add("html5-main-video");setTimeout(function(){c.classList.add("ad-interrupting")},200);
setTimeout(function(){u();f.resolve(1)},5E3);
return K.return(f.promise)})};
x7h=function(f,R){var u,O;return _.k(function(c){switch(c.nextAddress){case 1:u=[],O=0;case 2:if(!(O<3)){c.jumpTo(4);break}return _.A(c,fetch(f,{cache:"no-store",method:R}).then(function(h){u.push(h.status)}).catch(function(){u.push(-1)}),3);
case 3:O++;c.jumpTo(2);break;case 4:return c.return(u)}})};
Sql=function(f){return f.domainLookupStart===0&&f.domainLookupEnd===0&&f.connectStart===0&&f.connectEnd===0};
$7X=function(f,R,u){u=u===void 0?"GET":u;var O,c,h,l,K,q,F,w,m,W;return _.k(function(C){if(C.nextAddress==1)return _.A(C,Promise.all([x7h(f,u),x7h(R,u)]),2);O=C.yieldResult;c=_.Z(O);h=c.next().value;l=c.next().value;K=h;q=l;if(Math.min.apply(Math,_.yq(q))!==Math.max.apply(Math,_.yq(q))||Math.min.apply(Math,_.yq(K))!==Math.max.apply(Math,_.yq(K)))return C.return(2);if(Math.min.apply(Math,_.yq(q))===Math.min.apply(Math,_.yq(K)))return C.return(1);w=(F=performance.getEntriesByName(f))==null?void 0:F[0];
W=(m=performance.getEntriesByName(R))==null?void 0:m[0];return w&&W?Sql(W)?C.return(1):Sql(w)?C.return(0):C.return(1):C.return(2)})};
WfP=function(){var f;return _.k(function(R){var u=[];var O;var c,h,l;(c=O=(c=uj().objectRepresentation.streamingData)==null?void 0:(h=c.formats)==null?void 0:(l=h[0])==null?void 0:l.url)&&c&&!O.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(c=c.replace("initcwndbps","ctier=L&initcwndbps"),c=c.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),O={testUrl:c,baseUrl:O,method:"GET"}):O=void 0;O&&u.push(O);_.E("ab_net_tp_e")&&u.push({testUrl:_.Oe.location.origin+"/ad_companion",baseUrl:_.Oe.location.origin+
"/generate_204",method:"OPTIONS"});if(_.E("ad_net_pb_ab")){var K;b:{O=/api\/stats\/ads/;var q,F,w,m;c=(K=uj().objectRepresentation.adPlacements)==null?void 0:(q=K[0])==null?void 0:(F=q.adPlacementRenderer)==null?void 0:(w=F.renderer)==null?void 0:(m=w.linearAdSequenceRenderer)==null?void 0:m.linearAds;if(c!=null&&c.length&&(K=_.t(c[0],gdh))&&(K=K.pings,K!=null&&K.impressionPings))for(q=[].concat(_.yq(K.impressionPings)),K.progressPings&&(q=[].concat(_.yq(q),_.yq(K.progressPings))),K=_.Z(q),q=K.next();!q.done;q=
K.next())if(q=q.value,q.baseUrl&&O.test(q.baseUrl)){K=q.baseUrl.replace("https://www.youtube.com","");break b}K=void 0}K&&u.push({testUrl:_.Oe.location.origin+K,baseUrl:_.Oe.location.origin+"/feed/download",method:"GET"})}if(_.E("ad_net_pb_pbp")){var W;b:{K=/api\/stats\/qoe/;if(q=uj().objectRepresentation.playbackTracking){F=[];F.push(q==null?void 0:(W=q.videostatsPlaybackUrl)==null?void 0:W.baseUrl);var C;F.push(q==null?void 0:(C=q.videostatsDelayplayUrl)==null?void 0:C.baseUrl);var d;F.push(q==
null?void 0:(d=q.videostatsWatchtimeUrl)==null?void 0:d.baseUrl);var p;F.push(q==null?void 0:(p=q.ptrackingUrl)==null?void 0:p.baseUrl);var J;F.push(q==null?void 0:(J=q.qoeUrl)==null?void 0:J.baseUrl);var M;F.push(q==null?void 0:(M=q.atrUrl)==null?void 0:M.baseUrl);W=_.Z(F);for(C=W.next();!C.done;C=W.next())if((C=C.value)&&K.test(C)){W=C.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}W=void 0}W&&u.push({testUrl:_.Oe.location.origin+W,baseUrl:_.Oe.location.origin+
"/feed/download",method:"GET"})}u=u.length!==0?u[Math.floor(Math.random()*u.length)]:void 0;return(f=u)?R.return($7X(f.testUrl,f.baseUrl,f.method)):R.return(4)})};
_.jr5=function(){if(_.Oe.uEh===void 0||_.Oe.uEh===null||typeof _.Oe.uEh!=="function")return 2;try{return _.Oe.uEh()===!0?0:1}catch(f){return 0}};
sr5=function(f){switch(f){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.km(f,"unknown result type")}};
_.ndl=function(f,R){var u=Number(_.Tf("CATSTAT",0));if(R.jhX===void 0)return u;R=R.jhX;f=sr5(f);return u&~(3<<R)|f<<R};
VGn=function(f){var R,u;if((f=(R=f.auxiliaryUi)==null?void 0:(u=R.messageRenderers)==null?void 0:u.bkaEnforcementMessageViewModel)&&f.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return f};
vdq=function(){for(var f=_.Z(Object.values(_.Yq2)),R=f.next();!R.done;R=f.next())R=R.value,R.isAsync&&R.jhX&&_.zf("CATSTAT",_.ndl(2,R))};
_.AN=function(f,R){f=_.kS("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",f);(R===void 0?0:R)?_.ik0(f,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Kn(_.qL(),f,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
fse=function(){if(!rCP){if(Polymer.Base){var f=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{f.apply(this,arguments)}catch(m){_.IS(m)}};
var R=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{R.apply(this,arguments)}catch(m){_.IS(m)}};
var u=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{u.apply(this,arguments)}catch(m){_.IS(m)}};
var O=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{O.apply(this,arguments)}catch(m){_.IS(m)}};
var c=Polymer.Base._listen,h=new WeakMap;Polymer.Base._listen=function(m,W,C){var d=function(){try{C.apply(this,arguments)}catch(p){_.IS(p)}};
h.set(C,d);c.call(this,m,W,d)};
var l=Polymer.Base._unlisten;Polymer.Base._unlisten=function(m,W,C){l.call(this,m,W,h.get(C))}}if(Polymer.Async){var K=Polymer.Async,q=K._atEndOfMicrotask;
K._atEndOfMicrotask=function(){try{q.apply(K,arguments)}catch(m){_.IS(m)}}}if(Polymer.RenderStatus){var F=Polymer.RenderStatus,w=F.afterNextRender;
F.afterNextRender=function(m,W,C){w.call(F,m,function(){try{W.apply(this,arguments)}catch(d){_.IS(d)}},C)}}rCP=!0}};
_.a1=function(f){var R=f?_.Kt(f):"";if(R){if(R.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(R.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(R.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(R.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(R.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(R.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";R=R.toLowerCase();if(R==="/")return"home";if(R===
"/channel_memberships")return"channel-memberships-shopfront";if(R.indexOf("/feed/trending")===0)return"trending";if(R.indexOf("/feed/explore")===0)return"explore";if(R.indexOf("/live")===0)return"live";if(R.indexOf("/results")===0)return"search";if(R.indexOf("/sports")===0)return"sports";if(R.indexOf("/fashion")===0||R.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(R))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(R))return"learning";
if(R.indexOf("/channel/")===0||R.indexOf("/user/")===0||R.indexOf("/gaming")===0||R.indexOf("/post/")===0)return"channel";if(RVP(f))return"show";if(R==="/playlist"||R.indexOf("/playlist/")===0||R==="/view_play_list"||R.indexOf("/view_play_list/")===0||R.indexOf("/show/")===0)return"playlist";if(R==="/feed/history"||R.indexOf("/feed/history/")===0)return"history";if(R==="/new")return"labs";if(R==="/feed/subscriptions")return"subscriptions";if(R.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(R==="/history_controls")return"standalone";if(R.indexOf("/account")===0||R==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(R.indexOf("/paid_memberships")===0||R.indexOf("/refund")===0||R.indexOf("/purchases")===0||R.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(R.indexOf("/product")===0)return"yts-products";if(R.indexOf("/premium")===0||R.indexOf("/musicpremium")===0)return R.indexOf("/premium/offers")===0||R.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(R===
"/cart/checkout"||R==="/cart")return"ypc-checkout";if(R.indexOf("/feed/downloads")===0||R.indexOf("/redeem")===0||R.indexOf("/reporthistory")===0)return"browse";if(R.indexOf("/hashtag")===0)return"hashtag-landing-page";if(R.indexOf("/handle")===0)return"handle";if(R.indexOf("/source")===0)return"audio-pivot";if(R.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(R.indexOf("/playables")===0)return"playables";if(R.indexOf("/create/live/join")===0)return"open-in-app";if(R.indexOf("/shorts")===
0)return"shorts";if(R.indexOf("/feed/channels")===0)return"subscriptions-channels";(R=f?_.Kt(f):"")&&R.indexOf("/watch")===0&&_.E("web_watch_enable_learning_journey")?(f=_.oS(f),f=!!f.list&&f.list.indexOf("LJPP")===0):f=!1;if(f)return"learning_journey_watch"}};
_.Fr=function(f){var R,u;(f=(u=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:u.url)&&(R=_.a1(f));return R};
RVP=function(f){var R=f?_.Kt(f):"";if(!R)return!1;R=R.toLowerCase();return R.indexOf("/show/")===0||R.indexOf("/playlist")===0&&(f=_.oS(f),f.list&&f.list.indexOf("EL")===0)?!0:!1};
QC=function(f){var R="unknown",u;var O=((u=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:u.webPageType)||"";O?(u=O.toLowerCase(),u.startsWith("web_page_type_")&&(u=u.slice(14))):u=O;u&&u7h[u.toUpperCase()]?R=u7h[u.toUpperCase()]:_.t(f,_.wY)||_.t(f,OqB)?R="browse":_.t(f,_.m6)?R="search":_.t(f,_.$7)&&(R="watch");R==="watch"&&_.Fr(f||null)==="learning_journey_watch"&&(R="learning_journey_watch");R==="unknown"&&_.Ih(Error("Jf`"+JSON.stringify({clickTrackingParams:f==null?void 0:f.clickTrackingParams,
commandMetadata:f==null?void 0:f.commandMetadata,allEndpointKeys:Object.keys(f||[])})));return R};
_.WL=function(f){if(!_.ceq||f)_.ceq=_.qg();return _.ceq};
_.Xd5=function(f){return!!_.t(f,_.$7)||!!_.t(f,_.Ey)&&_.E("kevlar_enable_shorts_prefetch")};
_.hV7=function(f,R){f=_.t(f,_.$7)||_.t(f,_.Ey);return"v"+f.videoId+(f.playlistId?"-pl"+f.playlistId:"")+(R?"-an1":"")+(f.params?"-pr"+f.params:"")};
tN=function(f){return function(){return new f}};
Cn=function(f){var R=_.vh();return function(){return R.resolve(f)}};
lsh=function(f){var R=_.RV("web_pbj_log_warning_rate",0);R=R>0&&Math.random()<R;if(!_.t(f,_.Ey))return R&&_.Ih(Error("Mf")),!1;var u;return _.E("shorts_controller_retrieve_seedless_sequence_v2")&&((u=_.t(f,_.Ey))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:ZqP(f)?!0:(R&&_.Ih(Error("Nf")),!1)};
ZqP=function(f){var R=(_.t(f,_.$7)||_.t(f,_.Ey)).videoId;if(!R||!k50.test(R))return!1;var u;return(f=(u=_.t(f.commandMetadata,_.vc))==null?void 0:u.url)&&(f.includes(R)||f.startsWith("/clip"))?!0:!1};
_.qct=function(){var f=_.Qu();return f.getFlag(192)?f.getFlag(190):!(_.E("web_watch_cinematics_disabled_by_default")||_.E("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&K97())};
_.yC=function(f,R,u){var O={};O.currentUrl=R;O.vis=f.vis!==void 0?f.vis:0;O.splay=!1;R=_.Qu();O.autoCaptionsDefaultOn=R.getFlag(66);R.getFlag(141)?R.getFlag(140)?O.autonavState="STATE_OFF":O.autonavState="STATE_ON":O.autonavState="STATE_NONE";O.html5Preference="HTML5_PREF_WANTS";isNaN(_.Tf("STS"))||(O.signatureTimestamp=_.Tf("STS"));f.autonav&&(O.autoplay=!0,O.autonav=!0);f.mutedAutoplay&&(O.autoplay=!0,O.mutedAutoplay=!0);f.inlinePlayback&&(O.autoplay=!0,O.autonav=!1,O.isInlineUnmutedPlayback=!!f.inlineUnmuted);
O.referer=u;O.lactMilliseconds=f.lact!==void 0?f.lact.toString():"-1";_.E("enable_unknown_lact_fix_on_html5")&&O.lactMilliseconds==="-1"&&_.Ih(new _.ts("Unknown LACT is set in playbackContext.",{"lact in tempData":f.lact||"undefined",autonav:f.autonav||"undefined"}));f={};R.getFlag(194)&&(f.hasShownAmbientMode=!0);R.getFlag(192)&&(f.hasToggledOffAmbientMode=!0);_.qct()&&(f.watchAmbientModeEnabled=!0);O.watchAmbientModeContext=f;return O};
Aeh=function(f){var R={},u=f.pbis||0;u&&(R.playbackBeginsInSeconds=u);f.prefetch_reason&&f.prefetch_reason==="hc_pbis"&&(R.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return R};
_.NL=function(f){f=f===void 0?!1:f;var R=_.Qu(),u="USER_INTERFACE_THEME_LIGHT";R.getFlag(165)?u="USER_INTERFACE_THEME_DARK":R.getFlag(174)?u="USER_INTERFACE_THEME_LIGHT":_.dY()&&(u="USER_INTERFACE_THEME_DARK");return f?u:as0()||u};
_.F9t=function(){return!_.E("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.dY=function(){return _.F9t()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Ln=function(){var f=_.Qu();return _.F9t()&&!f.getFlag(165)&&!f.getFlag(174)};
as0=function(){var f=f===void 0?window.location.href:f;if(_.E("kevlar_disable_theme_param"))return null;var R=_.Kt(f);if(_.wdD(R))return"USER_INTERFACE_THEME_DARK";try{var u=_.oS(f).theme;return mAP.get(u)||null}catch(O){}return null};
_.wdD=function(f){return _.E("enable_dark_theme_only_on_shorts")?!(f==null||!f.startsWith("/shorts/")):!1};
_.Eln=function(f,R,u,O,c){R=R===void 0?!1:R;u=u===void 0?!1:u;var h=_.Tf("INNERTUBE_CONTEXT");if(!h)return _.TL(Error("Qf")),{};h=(0,_.dq.unsafeClone)(h);_.E("web_no_tracking_params_in_shell_killswitch")||delete h.clickTracking;h.client||(h.client={});var l=h.client;l.clientName==="MWEB"&&l.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(l.clientFormFactor=_.Tf("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");l.screenWidthPoints=window.innerWidth;l.screenHeightPoints=window.innerHeight;l.screenPixelDensity=
Math.round(window.devicePixelRatio||1);l.screenDensityFloat=window.devicePixelRatio||1;l.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());l.userInterfaceTheme=_.NL();if(!R){var K=_.Ka5();K&&(l.connectionType=K);_.E("web_log_effective_connection_type")&&(K=Ajl())&&(h.client.effectiveConnectionType=K)}var q;if(_.E("web_log_memory_total_kbytes")&&((q=_.Oe.navigator)==null?0:q.deviceMemory)){var F;q=(F=_.Oe.navigator)==null?void 0:F.deviceMemory;h.client.memoryTotalKbytes=""+q*1E6}R&&O&&!_.E("web_it_context_set_original_url_ks")&&
(l.originalUrl=QDP(_.Oe.location.href,O).toString());_.E("web_gcf_hashes_innertube")&&(K=d5e())&&(F=K.coldConfigData,q=K.coldHashData,K=K.hotHashData,h.client.configInfo=h.client.configInfo||{},F&&(h.client.configInfo.coldConfigData=F),q&&(h.client.configInfo.coldHashData=q),K&&(h.client.configInfo.hotHashData=K));F=_.oS(_.Oe.location.href);!_.E("web_populate_internal_geo_killswitch")&&F.internalcountrycode&&(l.internalGeo=F.internalcountrycode);!_.E("web_populate_client_screen_killswitch")&&c&&(l.clientScreen=
c);l.clientName==="MWEB"||l.clientName==="WEB"?(l.mainAppWebInfo={graftUrl:O||_.Oe.location.href},_.E("kevlar_woffle")&&_.bj.instance&&(O=_.bj.instance,l.mainAppWebInfo.pwaInstallabilityStatus=!O.appInstalledEventFired&&O.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),l.mainAppWebInfo.webDisplayMode=w_l(),l.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):l.clientName==="TVHTML5"&&(!_.E("web_lr_app_quality_killswitch")&&
(O=_.Tf("LIVING_ROOM_APP_QUALITY"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{appQuality:O})),O=_.Tf("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{certificationScope:O}));!_.E("web_populate_time_zone_itc_killswitch")&&(O=lve())&&(l.timeZone=O);(O=jI2())?l.experimentsToken=O:delete l.experimentsToken;l=D1h();O=_.W90();O=(0,_.dq.getValues)(O.tokenJars);h.request=Object.assign({},h.request,{internalExperimentFlags:l,consistencyTokenJars:O});!_.E("web_prequest_context_killswitch")&&
(l=_.Tf("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(h.request.externalPrequestContext=l);O=_.Qu();l=O.getFlag(58);O=O.get("gsml","");h.user=Object.assign({},h.user);l&&(h.user.enableSafetyMode=l);O&&(h.user.lockedSafetyMode=!0);_.E("warm_op_csn_cleanup")?u&&(R=_.z4())&&(h.clientScreenNonce=R):!R&&(R=_.z4())&&(h.clientScreenNonce=R);f&&(h.clickTracking={clickTrackingParams:f});if(f=_.Ph("yt.mdx.remote.remoteClient_"))h.remoteClient=f;_.pn.getInstance().setLocationOnInnerTubeContext(h);try{var w=GOq(),
m=w.bid;delete w.bid;h.adSignalsInfo={params:[],bid:m};for(var W=_.Z(Object.entries(w)),C=W.next();!C.done;C=W.next()){var d=_.Z(C.value),p=d.next().value,J=d.next().value;w=p;m=J;f=void 0;(f=h.adSignalsInfo.params)==null||f.push({key:w,value:""+m})}var M,P;if(((M=h.client)==null?void 0:M.clientName)==="TVHTML5"||((P=h.client)==null?void 0:P.clientName)==="TVHTML5_UNPLUGGED"){var g=_.Tf("INNERTUBE_CONTEXT");g.adSignalsInfo&&(h.adSignalsInfo.advertisingId=g.adSignalsInfo.advertisingId,h.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",h.adSignalsInfo.limitAdTracking=g.adSignalsInfo.limitAdTracking)}}catch(x){_.TL(x)}return h};
_.t$q=function(f){var R=new jk(_.Tf("ONE_PICK_URL",""));R.urlParamMap_.set("hostId",f);(f=_.Tf("GAPI_LOCALE"))&&R.urlParamMap_.set("hl",f);(f=_.Tf("SESSION_INDEX"))&&R.urlParamMap_.set("authuser",f);(f=_.Tf("DELEGATED_SESSION_ID"))&&R.urlParamMap_.set("groupId",f);return R};
yen=function(){var f=_.vh(),R=f.resolve(_.DM);f=f.resolve(_.JN);return new Cd2(R,f)};
N2P=function(f){if(window.IntersectionObserver)return new dAn(f,400);throw new TypeError("Xf");};
bqt=function(){var f=Hammer.TouchAction,R=f.prototype.preventDefaults;f.prototype.preventDefaults=function(u){var O=this.actions.indexOf("pan-down")>-1;if(!O)return R.call(this,u);if(!L9B){var c=u.srcEvent;u=u.direction;var h;if((h=this.manager)==null?0:h.session.prevented)c.preventDefault();else if(O&&u&Hammer.DIRECTION_DOWN)return this.preventSrc(c)}}};
pde=function(f){if(!f||f.size===0)return Hammer.DIRECTION_ALL;if(f.size===2){if(f.has("up")&&f.has("down"))return Hammer.DIRECTION_VERTICAL;if(f.has("right")&&f.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(f.size===1){if(f.has("up"))return Hammer.DIRECTION_UP;if(f.has("down"))return Hammer.DIRECTION_DOWN;if(f.has("right"))return Hammer.DIRECTION_RIGHT;if(f.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.DAD=function(){return jD5?Promise.resolve(jD5):new Promise(function(f,R){var u=self.indexedDB.open("swpushnotificationsdb");u.onerror=R;u.onsuccess=function(){var O=u.result;if(O.objectStoreNames.contains("swpushnotificationsstore"))jD5=O,f(jD5);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.DAD()};
u.onupgradeneeded=JeD})};
JeD=function(f){f=f.target.result;f.objectStoreNames.contains("swpushnotificationsstore")&&f.deleteObjectStore("swpushnotificationsstore");f.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
T27=function(f){var R=zVX(),u;return _.k(function(O){switch(O.nextAddress){case 1:return _.cl(O,2),_.A(O,f.match(R,{cacheName:"yt-appshell-assets"}),4);case 4:u=O.yieldResult;_.Bf(O,3);break;case 2:_.ku(O);case 3:return O.return(u)}})};
zVX=function(){var f=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Hqn.registration.scope:Is7;f.endsWith("/")&&(f=f.slice(0,-1));return f+"/app_shell_home"};
M$0=function(f){f.map(function(R){return R.source}).join("|")};
_.Pd0=function(f){return _.k(function(R){return R.return(T27(f))})};
UAn=function(){var f=window.caches,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,_.Pd0(f),2);R=u.yieldResult;return u.return(!!R)})};
$Ah=function(){_.k(function(f){if(f.nextAddress==1){if(eVt)return f.jumpTo(0);eVt=!0;if(_.E("enable_system_health_primes_monitoring"))return _.lZ(G5n,3E4),B22(),f.return();if(!(Math.random()<_.RV("web_system_health_fraction")))return f.jumpTo(0);ole={heightPixels:screen.height,widthPixels:screen.width};z$&&!isNaN(z$.jsHeapSizeLimit)&&(ole.memoryTotalKbytes=String(Math.round(z$.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(ole.devicePixelRatio=window.devicePixelRatio);return _.A(f,xAn(),4)}_.lZ(G5n,
3E4);return _.A(f,Sch(),0)})};
xAn=function(){return _.k(function(f){if(f.nextAddress==1)return T$.intersectionObserverPresent="IntersectionObserver"in window,T$.serviceWorkerPresent="serviceWorker"in navigator,T$.webSharePresent="share"in navigator,T$.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,T$.cacheStoragePresent="caches"in window,T$.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,T$.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
T$.webkitTemporaryStoragePresent="webkitTemporaryStorage"in HL&&HL.webkitTemporaryStorage&&"queryUsageAndQuota"in HL.webkitTemporaryStorage,T$.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.A(f,xsn(),2);T$.indexedDbPresent=f.yieldResult;T$.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;T$.broadcastChannelPresent="BroadcastChannel"in window;T$.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(T$.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,T$.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.KG(f)})};
G5n=function(){var f=9E4+Math.random()*2E3;_.OW()>f||(_.E("enable_system_health_primes_monitoring")?B22():Sch())};
Sch=function(){var f;return _.k(function(R){if(R.nextAddress==1)return _.A(R,gln(),2);f=R.yieldResult;_.Jr("systemHealthCaptured",f);_.KG(R)})};
B22=function(){var f={metric:{}},R=sDn();R.networkEvents.length&&(f.metric.networkEvents=nlD(R));_.Jr("systemHealthCaptured",f)};
gln=function(){var f,R,u,O,c,h,l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:f={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)};R=window.screen;_.E("enable_is_extended_monitoring")&&R&&"isExtended"in R&&(f.isExtended=!!R.isExtended);u={metric:{staticContext:ole,dynamicContext:f,webMetric:V$2,webApiSupport:T$}};
if(O=_.z4())u.csn=O;z$&&(u.metric.webMetric.currentHeapKbytes=Math.round(z$.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 HL&&typeof HL.getBattery==="function")){w.jumpTo(2);break}return _.A(w,HL.getBattery(),3);case 3:if(c=
w.yieldResult)u.metric.dynamicContext.chargingStatus=c.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(u.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(T$.storageEstimatePresent)return _.A(w,navigator.storage.estimate(),8);if(!T$.webkitTemporaryStoragePresent){w.jumpTo(5);break}return _.A(w,YcD(),7);case 7:h=w.yieldResult;w.jumpTo(5);break;case 8:h=w.yieldResult;case 5:return u.metric.dynamicContext.deviceStorageQuotaMbytes=((l=h)==null?0:l.quota)?String(Math.round(h.quota/
1048576/10)*10):"-1",u.metric.dynamicContext.deviceStorageUsageMbytes=((K=h)==null?0:K.usage)?String(Math.round(h.usage/1048576/10)*10):"-1",q=u.metric.dynamicContext,_.A(w,UAn(),9);case 9:return q.hasAppShell=w.yieldResult,F=sDn(),F.networkEvents.length&&(u.metric.networkEvents=nlD(F)),w.return(u)}})};
YcD=function(){return new Promise(function(f){var R;T$.webkitTemporaryStoragePresent&&(R=HL.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?HL.webkitTemporaryStorage.queryUsageAndQuota(function(u,O){f({usage:u,quota:O})}):f(void 0)})};
_.I1=function(f){f&=16777215;f=[(f&16711680)>>16,(f&65280)>>8,f&255];return vl7(f[0],f[1],f[2])};
_.ML=function(f){f=[(f&16711680)>>>16,(f&65280)>>>8,f&255,(f&4278190080)>>>24];var R=_.iqh(f,function(u){return u==(u&255)});
f[3]=(f[3]/255).toFixed(3);if(!R)throw Error("Yf`"+f.join(","));return"rgba("+f.join(",")+")"};
_.reP=function(f){return[(f&16711680)>>>16,(f&65280)>>>8,f&255]};
_.fZq=function(f){f=f.map(function(R){R/=255;return R<=.03928?R/12.92:Math.pow((R+.05)/1.05,2.4)});
return f[0]*.2126+f[1]*.7152+f[2]*.0722};
PL=function(f,R){f=_.reP(f);return"rgba("+f[0]+", "+f[1]+", "+f[2]+", "+R+")"};
_.Rgt=function(){try{return!!self.localStorage}catch(f){return!1}};
XXn=function(){if(uGq())_.Ih(Error("Zf"));else{var f=document.createElement("iframe");f.style.display="none";var R=R===void 0?window.location.href:R;var u=_.z2(_.Tf("PERSIST_IDENTITY_IFRAME_URL"));R=u?u:(new URL(R)).host.indexOf("studio")===0?_.R0(OI2,"persist_identity"):_.R0(cE7,"persist_identity");_.E_t(f,1,R);f.id="persist_identity";var O;(O=document.body)==null||O.appendChild(f)}};
uGq=function(){var f=hgP;f||(f=document.querySelector("#persist_identity"));return f};
ZI0=function(){var f=!1;try{f=!!window.sessionStorage.getItem("session_logininfo")}catch(R){f=!0}return(_.Tf("INNERTUBE_CLIENT_NAME")==="WEB"||_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&f};
lZn=function(f,R){if(!ZI0())return!1;R||(R=_.Tf("LOGIN_INFO"));return R?(f.session_logininfo=R,!0):!1};
K_5=function(f,R){f=f===void 0?!1:f;if((R===void 0||!R)&&kH7!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Hh("LOG_STICKINESS",!1)){R=_.z4();var u=_.Jj(),O={identityStickinessData:{initialState:kH7}};R&&u&&_.gA(R,u,O)}if(R=uGq())if(u=R.src?(new URL(R.src)).origin:"*",f){var c;(c=R.contentWindow)==null||c.postMessage({action:"clear"},u)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(f=window.sessionStorage.getItem("session_logininfo"))){var h;(h=R.contentWindow)==null||h.postMessage({loginInfo:f},u)}};
_.Uy=function(f){f=f===void 0?!0:f;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.zf("LOGIN_INFO",""),f&&window.sessionStorage.setItem("from_switch_account","1"),K_5(!0,f)}catch(R){}};
q7q=function(f){f&&(f.startsWith("https://accounts.google.com/AddSession")?_.Uy():f.startsWith("https://accounts.google.com/ServiceLogin")?_.Uy():f.startsWith("https://myaccount.google.com")&&_.oj(f).getPath().endsWith("/youtubeoptions")&&_.Uy())};
ek=function(f,R){q7q(f);if(_.Hh("LOGGED_IN",!0)&&ZI0()){var u=OWh(f);u==null&&(u={});lZn(u,R)&&_.VP(f,u)}};
AEX=function(){function f(R){for(R=R.target;R&&R.nodeName!=="A";)if(R=R.parentNode,!(R&&R instanceof HTMLElement))return;if(R&&!R.hasAttribute("download")&&R.getAttribute("rel")!=="external"&&R.href)return R.href}
document.addEventListener("mousedown",function(R){R.button!==0&&(R=f(R))&&ek(R)});
document.addEventListener("click",function(R){(R=f(R))&&ek(R)})};
wXl=function(){var f=new aZB;try{if(_.Hh("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(K){f.increment(5,!1);return}if(_.Tf("LOGIN_INFO")){var R=F_t?F_t:window.location;_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&XXn();var u=OWh(R.href);u==null&&(u={});var O=u.session_logininfo,c=Number(window.sessionStorage.getItem("stickiness_reload")),h=O===_.Tf("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
c>=2||h)c>=2?f.increment(2,h):h?f.increment(7,h):window.sessionStorage.getItem("session_logininfo")||(f.increment(3,h),kH7="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Tf("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Tf("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))f.increment(4,h),window.sessionStorage.removeItem("stickiness_reload");
else if(c<2){window.sessionStorage.setItem("stickiness_reload",String(c+1));var l=R.href;l=_.Y7(l,"sttick");ek(l,window.sessionStorage.getItem("session_logininfo"));l=_.x8(l,{sttick:c});f.increment(c,h);_.$3(R,l)}}else f.increment(6,!1)}else _.Uy(!1)}catch(K){}};
_.G$=function(f,R,u,O,c){R=R===void 0?{}:R;u=u===void 0?"":u;O=O===void 0?window:O;f=_.S0(f,R);ek(f);u=_.EO(f+u,c);_.$3(O.location,u)};
mDn=function(f){if(f.urlEndpoint){if(f=_.oS(f.urlEndpoint.url),f.adurl)return VM(f.adurl)}else if(f.watchEndpoint)return"//www.youtube.com/watch?v="+f.watchEndpoint.videoId;return null};
Q6P=function(f){if(!f||!f.reportingPings)return null;var R={};f.reportingPings.forEach(function(u){u.pingType in R?R[u.pingType].push(u.url):R[u.pingType]=[u.url]});
return{adpings:m1t(R)}};
_.BL=function(){return{isShellLoad:_.Hh("IS_SHELL_LOAD",!1)}};
Ei0=function(){navigator.serviceWorker.getRegistrations().then(function(f){f.forEach(W_7)})};
W_7=function(f){f&&_.tXt(Cgh,f.scope)};
_.tXt=function(f,R){R={scope:R||_.uZ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.k3(f),R)};
o1=function(f,R,u,O){if(R&&R.serializedYpcCujLoggingParams){if(u){var c={};c.transactionErrorType=u;O&&(c.errorMessage=O);R.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:c}}}u={};u.ypcCujContext=R;f=_.kS("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",f,u);_.Kn(_.qL(),f,"FLOW_TYPE_YPC_ACQUISITION")}};
_.yE5=function(f,R,u,O){var c={};c.serializedTransactionFlowLoggingParams=R;u&&(c.errorType=u);O&&(c.errorMessage=O);_.Jr(f,c);_.zL()};
_.dDq=function(f){f&&_.yE5("transactionFlowStarted",f)};
_.N37=function(f){f&&_.yE5("transactionFlowCancelled",f)};
_.xS=function(f,R,u){R&&_.yE5("transactionFlowFailed",R,f,u)};
L_X=function(f){if(_.E("enable_setting_app_inert_when_buy_flow_opens")){var R=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");R&&(R.inert=f)}};
_.Sk=function(){this.megabloxUrl_=null};
_.$S=function(f){try{var R=bIt==null?void 0:bIt.composedPath(f)}catch(u){R=f.composedPath?f.composedPath():[]}return R&&R.length>0?R:f.composedPath?f.composedPath():[]};
_.gY=function(f){return _.$S(f)[0]};
_.sy=function(f){if(!(f instanceof Element))return null;f=f.classList?Array.from(f.classList):void 0;if(!f)return null;var R=f.indexOf("style-scope");return R>-1&&R+1<f.length?f[R+1]:null};
nn=function(f){if(!(f instanceof HTMLElement))return null;var R=f&&(f.$$||f.polymerController)?f.tagName.toLowerCase():null;return R?R:_.sy(f)};
pX7=function(f,R){return f.replace(/[^a-z]*[^\s]+/g,function(u){return u+".style-scope."+R})};
j6B=function(f,R){return R?f.split(",").map(function(u){return pX7(u.trim(),R)}).join(", "):f};
_.VC=function(f){var R,u,O,c;return(c=(O=(u=(R=f.root)!=null?R:f.shadowRoot)!=null?u:f.__shady_native_shadowRoot)!=null?O:f.__shady_shadowRoot)!=null?c:f};
YS=function(f){return f instanceof ShadowRoot?ShadowRoot:f instanceof DocumentFragment?DocumentFragment:f instanceof Document?Document:HTMLElement};
DD0=function(f){var R,u,O;return(O=(u=(R=f.parentElement)!=null?R:f.__shady_native_parentElement)!=null?u:f.__shady_parentElement)!=null?O:null};
JEq=function(f){var R,u,O;return(O=(u=(R=f.parentNode)!=null?R:f.__shady_native_parentNode)!=null?u:f.__shady_parentNode)!=null?O:null};
zg5=function(f){var R,u,O;return(O=(u=(R=f.__shady_parentNode)!=null?R:f.__shady_native_parentNode)!=null?u:f.parentNode)!=null?O:null};
T3n=function(f){var R,u;return(u=(R=JEq(f))!=null?R:f.host)!=null?u:null};
HIP=function(f){var R,u,O;return(O=(u=(R=f.nextSibling)!=null?R:f.__shady_native_nextSibling)!=null?u:f.__shady_nextSibling)!=null?O:null};
IZq=function(f){var R,u,O;return(O=(u=(R=f.previousSibling)!=null?R:f.__shady_native_previousSibling)!=null?u:f.__shady_previousSibling)!=null?O:null};
MXP=function(f){var R,u,O;return(O=(u=(R=f.nextElementSibling)!=null?R:f.__shady_native_nextElementSibling)!=null?u:f.__shady_nextElementSibling)!=null?O:null};
PgB=function(f){var R,u,O;return(O=(u=(R=f.previousElementSibling)!=null?R:f.__shady_native_previousElementSibling)!=null?u:f.__shady_previousElementSibling)!=null?O:null};
UD5=function(f){var R,u,O;return new Set([].concat(_.yq((R=f.children)!=null?R:[]),_.yq((u=f.__shady_native_children)!=null?u:[]),_.yq((O=f.__shady_children)!=null?O:[])))};
egD=function(f){var R,u,O;return new Set([].concat(_.yq((R=f.childNodes)!=null?R:[]),_.yq((u=f.__shady_native_childNodes)!=null?u:[]),_.yq((O=f.__shady_childNodes)!=null?O:[])))};
GHh=function(f){if(!f)return null;var R=_.sy(f);if(!R){var u;return(u=Node.prototype.getRootNode)==null?void 0:u.call(f)}R=R.toUpperCase();for(f=DD0(f);f&&f.tagName!==R;)f=DD0(f);return f?_.VC(f):null};
B3B=function(f){for(;f&&!(f instanceof HTMLElement);)f=T3n(f);return f};
oiB=function(f){var R=B3B(f);return f===R?_.sy(f):R?nn(R):null};
xD0=function(f){return(f=B3B(f))?nn(f):null};
S72=function(f){if(f instanceof Comment)return!1;if(f instanceof Text){var R,u;if(((u=(R=f.textContent)==null?void 0:R.trim())!=null?u:"")==="")return!1}return!0};
vL=function(f,R,u){var O=R(f);for(u=u===void 0?xD0(f):u;O&&(oiB(O)!==u||!S72(O));)f=O,O=R(f);return O};
$DD=function(f,R,u){if(!R)return null;f=xD0(f);return oiB(R)===f&&S72(R)?R:vL(R,u,f)};
gih=function(f){return vL(f,zg5,_.sy(f))};
s65=function(f){return vL(f,MXP)};
nih=function(f){return vL(f,HIP)};
VX5=function(f){return vL(f,PgB)};
Y7X=function(f){return vL(f,IZq)};
vi7=function(f){return $DD(f,f.firstChild||f.__shady_native_firstChild||f.__shady_firstChild||null,HIP)};
iIh=function(f){var R,u,O;var c=(O=(u=(R=f.firstElementChild)!=null?R:f.__shady_native_firstElementChild)!=null?u:f.__shady_firstElementChild)!=null?O:null;return $DD(f,c,MXP)};
rEP=function(f){var R,u,O;var c=(O=(u=(R=f.lastChild)!=null?R:f.__shady_native_lastChild)!=null?u:f.__shady_lastChild)!=null?O:null;return $DD(f,c,IZq)};
fAh=function(f){var R,u,O;var c=(O=(u=(R=f.lastElementChild)!=null?R:f.__shady_native_lastElementChild)!=null?u:f.__shady_lastElementChild)!=null?O:null;return $DD(f,c,PgB)};
Ruh=function(f){var R=xD0(f);return Array.from(egD(f)).filter(function(u){return oiB(u)===R})};
uCP=function(f){var R=nn(f);return Array.from(UD5(f)).filter(function(u){return _.sy(u)===R})};
_.ij=function(f,R,u){if(f instanceof HTMLElement&&_.sy(f)===u){var O=Array.from(f.classList).indexOf("style-scope");if(O===-1)f.classList.add("style-scope"),f.classList.add(R);else if(!(O+1>=f.classList.length)){O=f.classList[O+1];var c,h;f==null||(c=f.classList)==null||(h=c.replace)==null||h.call(c,O,R)}}if(f instanceof HTMLElement||f instanceof DocumentFragment)for(c=_.Z(UD5(f)),h=c.next();!h.done;h=c.next())_.ij(h.value,R,u);return f};
R4=function(f,R){if(f instanceof HTMLElement&&_.sy(f)===R){var u=Array.from(f.classList).indexOf("style-scope");u===-1||u+1>=f.classList.length||f.classList.remove("style-scope",f.classList[u+1])}if(f instanceof HTMLElement||f instanceof DocumentFragment){u=_.Z(f.children);for(var O=u.next();!O.done;O=u.next())R4(O.value,R)}return f};
_.OeX=function(f,R){return YS(f).prototype.appendChild.call(f,R)};
cUq=function(f,R){if(f===R)return!0;f=egD(f);return Array.from(f).some(function(u){return cUq(u,R)})};
_.b=function(f,R){if(f instanceof uu)return f;(R==null?0:R.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(f,"ownerDocument")&&Object.defineProperty(f,"ownerDocument",{get:function(){return window.document}});
return new uu(f)};
hue=function(){var f=uu.prototype,R=[].concat(_.yq(XOq?[]:["getRootNode"]),["setAttribute","removeAttribute"]);R=_.Z(R);for(var u=R.next(),O={};!u.done;O={method$jscomp$48:void 0},u=R.next())O.method$jscomp$48=u.value,f[O.method$jscomp$48]=function(c){return function(){return this.host[c.method$jscomp$48].apply(this.host,arguments)}}(O)};
lAh=function(){var f=uu.prototype,R=[].concat(_.yq(XOq?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.yq(Zee?[]:["querySelector","querySelectorAll"]));R=_.Z(R);for(var u=R.next(),O={};!u.done;O={method$jscomp$49:void 0},u=R.next())O.method$jscomp$49=u.value,f[O.method$jscomp$49]=function(c){return function(){return this.root[c.method$jscomp$49].apply(this.root,arguments)}}(O)};
qln=function(){var f=uu.prototype,R=[].concat(_.yq(klq?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.yq(Kpn?[]:["parentNode"]));R=_.Z(R);for(var u=R.next(),O={};!u.done;O={prop$jscomp$62:void 0},u=R.next())O.prop$jscomp$62=u.value,Object.defineProperty(f,O.prop$jscomp$62,{get:function(c){return function(){return this.host[c.prop$jscomp$62]}}(O),
configurable:!0})};
Fpn=function(){var f=uu.prototype,R=["activeElement"].concat(_.yq(klq?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.yq(AU5?[]:["children"]),_.yq(aAe?[]:["lastChild"]));R=_.Z(R);for(var u=R.next(),O={};!u.done;O={prop$jscomp$63:void 0},u=R.next())O.prop$jscomp$63=u.value,Object.defineProperty(f,O.prop$jscomp$63,{get:function(c){return function(){return this.root[c.prop$jscomp$63]}}(O),
configurable:!0})};
wO0=function(){for(var f=uu.prototype,R=_.Z(["innerHTML","textContent"]),u=R.next(),O={};!u.done;O={prop$jscomp$64:void 0},u=R.next())O.prop$jscomp$64=u.value,Object.defineProperty(f,O.prop$jscomp$64,{get:function(c){return function(){return this.root[c.prop$jscomp$64]}}(O),
set:function(c){return function(h){this.root[c.prop$jscomp$64]=h}}(O),
configurable:!0})};
m$P=function(f){var R=uu.prototype;f=_.Z(Object.entries(f));for(var u=f.next(),O={};!u.done;O={fn$jscomp$360:void 0},u=f.next()){var c=_.Z(u.value);u=c.next().value;c=c.next().value;O.fn$jscomp$360=c;R[u]=function(h){return function(){return h.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.yq(arguments)))}}(O)}};
WpB=function(){for(var f=uu.prototype,R=_.Z(Object.entries(Q3D)),u=R.next(),O={};!u.done;O={fn$jscomp$361:void 0},u=R.next()){var c=_.Z(u.value);u=c.next().value;c=c.next().value;O.fn$jscomp$361=c;Object.defineProperty(f,u,{get:function(h){return function(){return h.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.yq(arguments)))}}(O),
configurable:!0})}};
_.OU=function(f){return f instanceof Ecl||f instanceof Document?f:new Ecl(f)};
tMn=function(){for(var f=Ecl.prototype,R=_.Z("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),u=R.next(),O={};!u.done;O={method$jscomp$50:void 0},u=R.next())O.method$jscomp$50=u.value,f[O.method$jscomp$50]=function(c){return function(){return HTMLElement.prototype[c.method$jscomp$50].call.apply(HTMLElement.prototype[c.method$jscomp$50],[this.node].concat(_.yq(arguments)))}}(O)};
CPe=function(){for(var f=Ecl.prototype,R=_.Z("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),u=R.next(),O={};!u.done;O={prop$jscomp$65:void 0},u=R.next())O.prop$jscomp$65=u.value,Object.defineProperty(f,O.prop$jscomp$65,{get:function(c){return function(){var h;return(h=this.node["__shady_native_"+c.prop$jscomp$65])!=null?h:this.node[c.prop$jscomp$65]}}(O),
configurable:!0})};
_.c2=function(f,R,u){u===void 0&&(u=!f.classList.contains(R));u?f.classList.add(R):f.classList.remove(R)};
_.X4=function(f,R,u){u===void 0&&(u=!f.hasAttribute(R));if(R==="class")throw Error("dg");u?_.OU(f).setAttribute(R,""):_.OU(f).removeAttribute(R)};
yUq=function(f){return(f.localName!=="slot"?[]:(0,_.hl)(f).assignedNodes({flatten:!0})).filter(function(R){return R.nodeType===Node.ELEMENT_NODE})};
_.d$P=function(f){return(f=_.b(f).querySelector("slot"))&&f.localName==="slot"?yUq(f):[]};
_.ZO=function(f,R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(f,R)};
lu=function(f,R){var u=R.bind(f);return function(O){u(O,O.detail)}};
_.ks=function(f,R){var u=Np2.get(f);u||(u=new WeakMap,Np2.set(f,u));if(u.has(R))return u.get(R);if(_.E("web_fi_listen_disable_bound_fn_helper")){var O=R.bind(f);f=function(c){O(c,c==null?void 0:c.detail)}}else f=lu(f,R);
u.set(R,f);return f};
pOX=function(f,R){Lp2(f);f.created[be7].push(R)};
Lp2=function(f){if(!f.created||!f.created[be7]){var R=f.created,u=R?[R]:[];f.created=function(){for(var O=_.Z(u),c=O.next();!c.done;c=O.next())c.value.apply(this)};
f.created[be7]=u}};
j37=function(f){return function(){var R=_.yK.apply(0,arguments);return function(u,O,c){f.apply(null,_.yq(R))(u,O,c)}}};
D$7=function(){return function(){var f=_.yK.apply(0,arguments);return function(R,u,O){NI2.apply(null,_.yq(f))(R,u,O)}}};
_.z=function(f){return D$7()(f)};
_.T=function(){return j37(jG0).apply(null,_.yq(_.yK.apply(0,arguments)))};
_.Kf=function(f){return _.E("pbcm_fi_listen_decorators")?JUl(f):j37(bSP)(f)};
JUl=function(f){return function(R,u){pOX(R,function(){var O=this[u],c=_.E("web_fi_listen_disable_bound_fn_helper")?function(h){O(h,h.detail)}.bind(this):lu(this,O);
zuB.has(f)?Da(this.hostElement,f,c):this.hostElement.addEventListener(f,c)})}};
_.qM=function(){return j37(p9B).apply(null,_.yq(_.yK.apply(0,arguments)))};
_.I=function(f){f=f===void 0?{}:f;return j37(LzX)(f)};
_.Al=function(f){if(f.hostElement&&f!==f.hostElement){var R=_.du(f.hostElement);R=f.renderIdom?R:R.shadowRoot}R||(f=f.root,R=f instanceof Node?_.du(f):null);return R};
_.a4=function(f){return Tpq?Het(f):function(R,u){Object.defineProperty(R,u,{get:function(){var O;return(O=_.Al(this))==null?void 0:O.querySelector(f)},
enumerable:!0,configurable:!0})}};
Het=function(f){return function(R,u){Object.defineProperty(R,u,{get:function(){var O,c=(O=_.b(this.hostElement))==null?void 0:O.querySelector(f);if(c)return c;var h;return(h=_.Al(this))==null?void 0:h.querySelector(f)},
enumerable:!0,configurable:!0})}};
_.F4=function(f){return Tpq?IAn(f):function(R,u){Object.defineProperty(R,u,{get:function(){var O;return(O=_.Al(this))==null?void 0:O.querySelectorAll(f)},
enumerable:!0,configurable:!0})}};
IAn=function(f){return function(R,u){Object.defineProperty(R,u,{get:function(){var O,c=(O=_.b(this.hostElement))==null?void 0:O.querySelectorAll(f);if(c==null?0:c.length)return c;var h;return(h=_.Al(this))==null?void 0:h.querySelectorAll(f)},
enumerable:!0,configurable:!0})}};
MM7=function(f){return function(R){if(![_.YV,_.U].includes(Object.getPrototypeOf(R.prototype).constructor))throw Error("eg");mSX(Object.assign({},typeof f!=="string"?f:{is:f,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(R)}};
_.mt=function(){var f=f===void 0?{}:f;return function(R){if(![vC,_.w_].includes(Object.getPrototypeOf(R.prototype).constructor))throw Error("fg");QG0(Object.assign({},f,{disableInheritanceCheck:!0}))(R)}};
U$t=function(f,R){PPD[f]!=null||(PPD[f]=new Set);PPD[f].add(R)};
_.QR=function(){var f=_.qM.apply(null,_.yq(_.yK.apply(0,arguments)));return function(R,u){U$t(R.is,u);f(R,u)}};
tl=function(f,R,u){if(W2(f)&&!eu5.has(R)){R=R.replace(/^JSC\$[\d]+_/,"");R=R.replace(/\.\d+(\.|$)/g,function(h,l){return".#"+l});
EU[f]!=null||(EU[f]={});var O,c;(O=EU[f])[c=R]!=null||(O[c]=new Set);EU[f][R].has(u)||(EU[f][R].add(u),_.Jr("polymerPropertyAccessEvent",{componentName:f,propertyName:R,accessType:u}))}};
Glh=function(){return _.E("polymer_property_access_logging_debug")||_.E("polymer_enable_property_access_logging")};
W2=function(f){if(_.E("polymer_property_access_logging_debug"))return!0;if(!_.E("polymer_enable_property_access_logging"))return!1;Bph||(Bph=Date.now());return(ed(f)+Bph)%100<_.RV("polymer_property_access_logging_percent")};
oct=function(f,R){return W2(R)&&f.hostElement.loggingStatus?new Proxy(f,{get:function(u,O,c){if(u.hostElement.loggingStatus.bypassProxyController)return u[O];u.hostElement.loggingStatus.isExternalGet=!0;var h=u[O];u.hostElement.loggingStatus.isExternalGet=!1;if(h instanceof Function)return function(){var l=_.yK.apply(0,arguments);try{return u.hostElement.loggingStatus.currentExternalCall=O,tl(R,O,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),h.apply(this===c?u:this,l)}finally{u.hostElement.loggingStatus.currentExternalCall=
void 0}};
tl(R,O,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return h},
set:function(u,O,c){if(u.hostElement.loggingStatus.bypassProxyController)return u[O]=c,!0;u.hostElement.loggingStatus.isRendererStamper?tl(R,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):u.hostElement.loggingStatus.isDeclarativeExternal||tl(R,O,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{u.hostElement.loggingStatus.currentExternalSet=O,u[O]=c}finally{u.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):f};
x$0=function(f,R){f&&f.loggingStatus&&!f.loggingStatus.isDeclarativeExternal&&!f.loggingStatus.isExternalGet&&f.loggingStatus.currentExternalSet!==R&&tl(f.tagName.toLowerCase(),R,"PROPERTY_ACCESS_GET_INTERNAL")};
Cf=function(f,R,u){f&&(u||f.loggingStatus&&!f.loggingStatus.isInitializing&&!f.loggingStatus.isDefiningPropertyAccessor&&f.loggingStatus.currentExternalSet!==R)&&tl(f.tagName.toLowerCase(),R,"PROPERTY_ACCESS_SET_INTERNAL")};
Sll=function(){return{_definePropertyAccessor:function(f,R){var u=this,O=u.hostElement.loggingStatus;O&&(O.isDefiningPropertyAccessor=!0);var c=u[f];c!==void 0&&(u.__data?u._setPendingProperty(f,c):(u.__dataProto!=null||(u.__dataProto={}),u.__dataProto[f]=c));O&&(O.isDefiningPropertyAccessor=!1);Object.defineProperty(this,f,{get:function(){x$0(u.hostElement,f);return this.__data[f]},
set:function(h){R||this._setPendingProperty(f,h,!0)&&this._invalidateProperties()}})},
created:function(){var f=this._setPendingProperty.bind(this);this._setPendingProperty=function(R,u,O){Cf(this.hostElement,R);return f.apply(this,[R,u,O])}}}};
$$5=function(f){Glh()&&_.z(yR.prototype)(f.prototype,"__templateBindingLoggingBehavior")};
gch=function(f,R){if(R.resolvedFactories.length!==f.resolvedFactories.length)return!0;R=_.Z(R.resolvedFactories.entries());for(var u=R.next();!u.done;u=R.next()){var O=_.Z(u.value);u=O.next().value;O=O.next().value;if(O.providerClass){if(O.providerClass!==f.resolvedFactories[u].providerClass)return!0}else if(O.providerValue){if(O.providerValue!==f.resolvedFactories[u].providerValue)return!0}else if(O.factory!==f.resolvedFactories[u].factory)return!0}return!1};
s3h=function(f,R){f=_.Z(f);for(var u=f.next();!u.done;u=f.next())if(u=u.value,u.constructor===Array)s3h(u,R);else{var O=R;O.has(u)||(u.inject&&O.add(u),u.behaviors&&s3h(u.behaviors,O))}};
d_=function(f,R){var u=f[R];f[R]=function(){var O=_.yK.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(u)return u.apply(this,O)}};
vcP=function(){_.NM.Class=function(u,O){u=nc2(u,O);d_(u.prototype,"created");return u};
d_(Lf.prototype,"_initializeProperties");d_(_.bu.prototype,"_initializeProperties");if(VMB)d_(Yle,"created");else{var f=function(){d_(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))f();else{var R=customElements.define;customElements.define=function(u,O,c){R.call(customElements,u,O,c);u==="tp-yt-iron-list"&&(f(),customElements.define=R)}}}};
rUB=function(f,R){f.prototype.behaviors=f.prototype.behaviors||[];f.prototype.behaviors.unshift(ieX.InjectBehavior);f.prototype.provide=R};
_.DO=function(f){return function(R){if(!f.disableElementRegistration){f.noInjection||rUB(R,f.providers);var u=R.prototype;u.__templateHelpers||NI2(pf.prototype)(u,"__templateHelpers");u=f.is;f7B||(f7B=Date.now());(ed(u)+f7B)%100<_.RV("polymer_log_prop_change_observer_percent")&&NI2(jw.prototype)(R.prototype,"__propertyObserverObserver");R.prototype.behaviors=R.prototype.behaviors||[];R.prototype.behaviors.unshift(_.Rtn.YtHostElementBehavior);$$5(R);MM7({is:f.is,notifyObserversOnUndefined:f.notifyObserversOnUndefined!==
!1,fastInit:f.fastInit,template:f.template,disableEnforceFastDefaultValuesCheck:!0})(R)}}};
_.e=function(f){return _.DO({is:f.is,template:f.template,disableElementRegistration:f.disableElementRegistration,cssBuildOptOut:f.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
cqB=function(f,R){if(u_h){f=new f;for(var u=_.Z(Object.getOwnPropertyNames(f)),O=u.next();!O.done;O=u.next())O=O.value,R[O]=f[O];for(u=R;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){O=_.Z(Object.getOwnPropertyNames(u));for(var c=O.next();!c.done;c=O.next())c=c.value,f.hasOwnProperty(c)||Object.defineProperty(f,c,OY2(R,c))}}else f.apply(R)};
OY2=function(f,R){return{get:function(){var u=f[R];return u instanceof Function?u.bind(f):u},
set:function(u){f[R]=u}}};
htn=function(f,R){for(var u=f._noAccessors,O=_.Z(Object.getOwnPropertyNames(f)),c=O.next();!c.done;c=O.next())if(c=c.value,!XPn.has(c))if(u)R[c]=f[c];else{var h=Object.getOwnPropertyDescriptor(f,c);h&&(h.configurable=!0,Object.defineProperty(R,c,h))}};
ZY7=function(f,R,u){return function(O){if(u){var c=u();O.model=c}if(f[R])f[R](O,O.detail)}};
Jl=function(f){var R=[];if(typeof f==="string")f.length>0&&R.push.apply(R,_.yq(f.split(".")));else{f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,typeof u==="string"?R.push.apply(R,_.yq(u.split("."))):R.push(u)}return R};
l77=function(f,R){if(R[R.length-1]!=="*"&&R[R.length-1]!=="splices"){for(var u=0;u<R.length;u++){if(!f)return;f=f[R[u]]}return f}};
kUn=function(f,R){if(f.length>R.length)return!1;for(var u=0;u<f.length;u++)if(f[u]!==R[u])return!1;return!0};
qiB=function(f,R,u){if(R.type==="compute"){var O=R.getter.bind(u);var c=R.args}else O=function(){return u[R.method.methodName].apply(u,_.yq(_.yK.apply(0,arguments)))},c=R.method.args;
Kh5(f,R.propertyKey,O,c,R.value)};
a7h=function(f,R){if(R.readOnly){var u=Object.getOwnPropertyDescriptor(f.model,R.propertyKey);Object.defineProperty(f.model,R.propertyKey,{get:u.get,set:function(){}});
f.model[AqD(R.propertyKey)]=u.set}};
FhX=function(f,R,u){if(u){var O=R.propertyKey,c=R.selector;R=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.yq(R.selectorArgs.map(function(h){return{type:"path",path:h}})));
Kh5(f,O,function(h){var l=_.yK.apply(1,arguments);return c.apply(null,[u.getState()].concat(_.yq(l)))},R)}};
mCX=function(f,R,u){var O=_.FO(R.propertyKey)+"-changed";wPD(f,function(c){var h={value:c.value,queueProperty:!0};c.path.split(".").length>1&&(h.path=c.path);u.dispatchEvent(new CustomEvent(O,{detail:h}))},[{type:"wildcard",
path:R.propertyKey}])};
QWl=function(f,R,u){wPD(f,function(){u[R.method.methodName].apply(u,_.yq(_.yK.apply(0,arguments)))},R.method.args)};
AqD=function(f){return"_set"+(f.charAt(0).toUpperCase()+f.slice(1))};
Wh0=function(){var f,R=D1(function(u){f=u},!1);
return[f,R]};
dC7=function(f){f=f.trim().replace(Ey5,",").replace(tb0,"$1");var R=f[0];R==="-"&&(R=f[1]);if(R>="0"&&R<="9")return{type:"literal",value:Number(f)};if(R==="'"||R==='"')return{type:"literal",value:f.slice(1,-1)};if(R=f.match(CS2)){R=R[1];var u=yqD[R];if(u)return{type:u,path:f.slice(0,-(R.length+1))}}return{type:"path",path:f}};
pP2=function(f){var R=f.match(NGe);if(R)return f={methodName:R[1],args:Lhh},R[2].trim()&&(R=R[2].replace(bY7,"&comma;").split(","),f.args=R.map(dC7)),f};
jWP=function(f,R,u,O){O=O===void 0?!1:O;R=_.FO(R);var c=WC;c&&(u=c(u,R,"attribute",f));zJ(f,u,R,O)};
zJ=function(f,R,u,O){R=DCn(R,O===void 0?!1:O);R===void 0?f.removeAttribute(u):f.setAttribute(u,R)};
DCn=function(f,R){switch(typeof f){case "object":case "function":if(f instanceof Date)return f.toString();if(f){if((R===void 0?0:R)&&!_.E("polymer_reflect_objects_as_boolean_killswitch"))return f?"":void 0;R=window.trustedTypes?window.trustedTypes.isHTML(f)||window.trustedTypes.isScript(f)||window.trustedTypes.isScriptURL(f):void 0;if(R)return f;try{return JSON.stringify(f)}catch(u){_.Ih(Error("Bg`"+f))}}break;case "boolean":return f?"":void 0;default:return f!==null&&f!==void 0?f.toString():void 0}};
Jq0=function(f){if(f===void 0)throw Error("Cg");return f};
Mbt=function(f,R,u,O){var c=ztB(O);if(c.length){O=u;var h="property";TGn.test(u)?h="attribute":u[u.length-1]==="$"&&(u=u.slice(0,-1),h="attribute");var l=HYB(c);l&&h==="attribute"&&(u==="class"&&f.hasAttribute("class")&&(l+=" "+f.getAttribute(u)),zJ(f,l,u));h==="attribute"&&O==="disable-upgrade$"&&f.setAttribute("disable-upgrade","");f.localName==="input"&&O==="value"&&f.setAttribute("value","");f.removeAttribute(O);h==="property"&&(u=_.wu(u));R=Jq0(R);I75(R,h,u,c);return!0}return u.slice(0,3)===
"on-"?(f.removeAttribute(u),(h=R).events!=null||(h.events=[]),R.events.push({name:u.slice(3),value:O}),!0):u==="id"?(R.id=O,!0):!1};
ztB=function(f){for(var R=[],u=0,O;(O=PS5.exec(f))!==null;){O.index>u&&R.push({type:"literal",value:f.slice(u,O.index)});var c=O[1][0];u=!!O[2];O=O[3].trim();if(c==="{")throw Error("Dg");(c=pP2(O))?R.push({type:"method",negate:u,signature:c}):R.push({type:"path",negate:u,path:O});u=PS5.lastIndex}u&&u<f.length&&(f=f.substring(u))&&R.push({type:"literal",value:f});return R};
HYB=function(f){for(var R="",u=0;u<f.length;u++){var O=f[u];O.type==="literal"&&(R+=O.value)}return R};
I75=function(f,R,u,O){f.bindings!=null||(f.bindings=[]);f.bindings.push({kind:R,target:u,parts:O})};
oyn=function(f,R,u){var O=!1;if(f.localName==="template"){O=u;var c=R.stripWhitespace;c=UCh(f,c===void 0?!1:c);var h=f.content.ownerDocument.createDocumentFragment();c.content=h;h.appendChild(f.content);O&&(O.templateInfo=c);O=!0}else f.localName==="slot"&&(R.hasInsertionPoint=!0);if(f.firstChild&&(c=u,f.localName!=="script"&&f.localName!=="style")){h=0;for(var l=f.firstChild;l;){var K=l;if(K.localName==="template"){var q=K.getAttribute("is");if((l=q==="dom-if")||q==="dom-repeat"){K.removeAttribute("is");
q=K.ownerDocument.createElement("ps-"+q);K.parentNode.replaceChild(q,K);q.appendChild(K);var F=Array.from(K.attributes);F=_.Z(F);for(var w=F.next();!w.done;w=F.next())w=w.value,l?et5.has(w.name)&&zJ(q,w.value,w.name):GUD.has(w.name)?zJ(q,w.value,w.name):BGl.has(w.name),K.removeAttribute(w.name);l=q}else l=K}if(l.nodeType===Node.TEXT_NODE){K=void 0;q=f;for(F=l;((K=F.nextSibling)==null?void 0:K.nodeType)===Node.TEXT_NODE;)w=void 0,(w=F).textContent!=null||(w.textContent=""),F.nextSibling.textContent&&
(F.textContent+=F.nextSibling.textContent),q.removeChild(F.nextSibling);if(R.stripWhitespace&&l.textContent&&!l.textContent.trim()){f.removeChild(l);l=l.nextSibling;continue}}oyn(l,R,{parentIndex:h,parentInfo:c});l.parentNode&&h++;l=l.nextSibling}}var m;if((m=f.hasAttributes)==null?0:m.call(f)){m=u=Jq0(u);c=!1;h=Array.from(f.attributes);h=_.Z(h);for(K=h.next();!K.done;K=h.next())K=K.value,c=Mbt(f,m,K.name,K.value)||c;O=c||O}f.nodeType===Node.TEXT_NODE&&(m=ztB(f.textContent),m.length&&(f.textContent=
HYB(m)||" ",u=Jq0(u),I75(u,"text","textContent",m),O=!0));u&&O&&(u.infoIndex=R.nodeInfoList.push(u)-1)};
UCh=function(f,R){R={nodeInfoList:[],stripWhitespace:(R===void 0?!1:R)||f.hasAttribute("strip-whitespace")};oyn(f.content,R);return R};
xCB=function(f){Object.assign(f,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
$Cn=function(f,R,u){R.signalCache!=null||(R.signalCache={});var O=R.signalCache[u];if(!O){var c=u.split(".");O=!Sin(f,c[0]);if(c.length>1&&O){var h=f.getPathMutationSignal(c);O=function(){var l=To(f.owner,function(){return f.getWithPath([c[0]])}),K,q=(K=h())==null?void 0:K.value;
return{rootWasDefined:l!==void 0,value:q}}}else O=function(){var l=f.getWithPath(c);
return{rootWasDefined:l!==void 0,value:l}};
R.signalCache[u]=O}return O()};
sWq=function(f,R,u,O,c){R=R.parts.map(function(l,K){if(l.type==="literal"){u.partWasDefined!=null||(u.partWasDefined=[]);var q;(q=u.partWasDefined)[K]||(q[K]=l.value!==void 0);return l.value}var F;if(l.type==="method"){var w,m=(w=(F=u.partWasDefined)==null?void 0:F[K])!=null?w:!1;m||(m=l.signature.args.every(function(d){return d.type==="literal"}));
var W=!1,C=!0;F=l.signature.args.map(function(d){if(d.type==="literal")return d.value;if(d.type!=="path")throw Error("Eg`"+d.type);var p=$Cn(f,u,d.path);d=p.value;p=p.rootWasDefined;W||(W=p);C&&(C=p);return d});
m||(m=c===1?C:W);u.partWasDefined!=null||(u.partWasDefined={});u.partWasDefined[K]=m;if(!m)return;F=(K=$Cn(f,u,l.signature.methodName).value)&&typeof K==="function"?K.apply(O,F):void 0}else w=$Cn(f,u,l.path),F=w.value,u.partWasDefined!=null||(u.partWasDefined={}),(m=u.partWasDefined)[K]||(m[K]=F!==void 0||w.rootWasDefined);l.negate&&(F=!F);return F});
if(R.length===1){var h;return((h=u.partWasDefined)==null?0:h[0])?R[0]:gyD}return R.join("")};
nye=function(f){return typeof f==="object"&&!!f&&"notifyPath"in f&&"canNotifyPath"in f};
Vbn=function(f){return typeof f==="object"&&!!f&&"notifyPath"in f};
Yi2=function(f){return"polymerController"in f};
vyl=function(f,R){R=""+Jl(R)[0];if(nye(f))return f.canNotifyPath(R);if(Yi2(f)&&nye(f.polymerController))return f.polymerController.canNotifyPath(R);if(Vbn(f)){var u;return!((u=f.properties)==null||!u[R])}if(Yi2(f)&&Vbn(f.polymerController)){var O;return!((O=f.polymerController.properties)==null||!O[R])}return!1};
iY0=function(f,R,u){nye(f)||Vbn(f)?f.notifyPath(R,u):Yi2(f)&&(nye(f.polymerController)||Vbn(f.polymerController))&&f.polymerController.notifyPath(R,u)};
f5B=function(f,R,u){if(u!==gyD){f.kind==="attribute"||f.target!=="textContent"&&(f.target!=="value"||R.localName!=="input"&&R.localName!=="textarea")||(u=u===void 0?"":u);var O,c=(O=rq0.Polymer)==null?void 0:O.sanitizeDOMValue;c&&(u=c(u,f.target,f.kind,R));if(f.kind==="attribute"){f=f.target;if(f==="class"||f==="name"||f==="slot")R=(0,_.hl)(R);zJ(R,u,f)}else if(f=f.target,u!==R[f]||typeof u==="object")R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!0,tl(R.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
R[f]=u,R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!1)}};
RBq=function(f,R,u,O){var c=R.parts[0];if(R.parts.length!==1||c.type!=="path"||!vyl(u,R.target))return!1;var h=_.Z(c.path.split(".")),l=h.next().value,K=s8(h);if(Sin(f,l))return!1;O.signalCache!=null||(O.signalCache={});h=O.signalCache[c.path];var q;h=(q=h)==null?void 0:q().value;if((h==null?void 0:h.path)!==void 0){O=Jl(h.path);var F=Jl(c.path);O=[R.target].concat(_.yq(O.slice(F.length-1)));iY0(u,O,c.negate?!h.value:h.value);return!0}var w=TJ(f,l);var m=w.getChangeRecordSignal(K),W=!1;h=function(){if(!W){var d=
To(f.owner,function(){return w.getWithPath([])});
W||(W=d!==void 0)}return{value:m(),rootWasDefined:W}};
O.signalCache[c.path]=h;O.partWasDefined!=null||(O.partWasDefined={});h=h();(F=O.partWasDefined)[0]||(F[0]=h.rootWasDefined);var C=To(f.owner,function(){return w.getWithPath(K)});
O.partWasDefined[0]&&To(f.owner,function(){return void f5B(R,u,c.negate?!C:C)});
return!0};
uW7=function(f,R,u,O,c,h){if(!RBq(f,R,u,O)){var l=sWq(f,R,O,c,h);To(f.owner,function(){return void f5B(R,u,l)})}};
OOh=function(f,R,u,O,c,h){u=_.Z(u);for(var l=u.next(),K={};!l.done;K={infoIndex:void 0},l=u.next()){l=l.value;var q=l.bindings;K.infoIndex=l.infoIndex;l=l.parentInfo;if(q){q=_.Z(q);for(var F=q.next(),w={};!F.done;w={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},F=q.next()){w.b$jscomp$254=F.value;if(K.infoIndex===void 0)throw Error("Fg");w.bindingCtx$jscomp$4={};f.effect(function(m,W){return function(){c&&!c()||uW7(f,m.b$jscomp$254,R[W.infoIndex],m.bindingCtx$jscomp$4,O,h)}}(w,K))}}l&&OOh(f,R,[l],
O,c,h)}};
cgn=function(f,R){f=(R.parentInfo?cgn(f,R.parentInfo):f).firstChild;for(var u=0;f;f=f.nextSibling)if(R.parentIndex===u++)return f;throw Error("Gg");};
hBP=function(f,R,u,O){f=document.importNode(f.content,!0);f.__noInsertionPoint=!(O==null?0:O.hasInsertionPoint);for(var c=Array(R.length),h={},l=0;l<R.length;l++){var K=R[l],q=cgn(f,K);c[l]=q;K.id&&(h[K.id]=q);if(K.templateInfo){var F=q.parentElement;F&&(F.templateInfo=K.templateInfo,F.parentSignalProxy=u,F.eventListenerHost=O.eventListenerHost,F.stampingEnabled=O.enabledSignal)}F=void 0;if((F=K.events)==null?0:F.length)for(F=0;F<K.events.length;F++){var w=K.events[F];Xpn(O.eventListenerHost,q,w.name,
w.value,O.getModel)}}OOh(u,c,R,O.thisCtx,O.enabledSignal,O.methodInvocationRequirement);return{root:f,nodes:c,nodesById:h}};
l5t=function(f,R){f=f();var u;(u=ZOD.ShadyCSS)==null||u.prepareTemplate(f,R);R=UCh(f);return{template:f,nodeInfoList:R.nodeInfoList,hasInsertionPoint:R.hasInsertionPoint}};
qHD=function(){kKB=!1;for(var f=H2.length,R=0;R<f;R++){var u=H2[R];if(u)try{u()}catch(O){Promise.resolve().then(function(){throw O;})}}H2.splice(0,f);
KmD+=f};
wpD=function(f){kKB||(kKB=!0,Ag7.textContent=(a57++).toString());H2.push(f);return FmP++};
_.P2=function(f,R,u){I4++;f=R?new mEe(I4,f,R,u):new QEe(I4,f);MM.set(I4,f);return I4};
WmP=function(f){(f=MM.get(f))&&f.cancel()};
tEB=function(f,R){f=EQl.get(f);return f?(R=f.get(R))?R:null:null};
_.UU=function(f,R,u,O){var c=tEB(f,R);if(!c){c=new Cs7;var h=EQl.get(f);h||(h=new Map,EQl.set(f,h));h.set(R,c)}f=u.bind(f);c.run(f,O,void 0)};
_.yge=function(f,R){var u;(u=tEB(f,R))==null||u.cancel()};
dE5=function(f){var R;(R=tEB(f,"doRender"))==null||R.flush()};
ew=function(f){var R;return(R=f.hostElement)!=null?R:f};
Nbq=function(f){var R=f.indexOf(".");return R===-1?f:f.slice(0,R)};
Lml=function(f,R,u,O,c,h){h=(c=(O=h?Nbq(R):R)?R:null)?f.get(c):f.__data[R];c&&h===void 0&&(h=u[R]);_.ul(f.hostElement,fCe(O)+"-changed",{value:h,queueProperty:!0,path:c!=null?c:void 0},{bubbles:!1,composed:!1})};
bO7=function(f,R){f.__isReflecting=!0;jWP(f.hostElement,R,f.__data[R]);f.__isReflecting=!1};
ppP=function(f){if(f._onIronRequestResizeNotifications){var R=f._onIronRequestResizeNotifications.bind(f);f._onIronRequestResizeNotifications=function(u){_.gY(u)!==f.hostElement&&R(u)}}f._ariaActiveAttributeChanged&&(f._ariaActiveAttributeChanged=f._ariaActiveAttributeChanged.bind(f.hostElement));
f._activeChanged&&(f._activeChanged=function(u){f.toggles?zJ(f.hostElement,u?"true":"false",f.ariaActiveAttribute):f.hostElement.removeAttribute(f.ariaActiveAttribute);f._changedButtonState()});
f._asyncClick&&(f._asyncClick=function(){_.P2(function(){f.hostElement.click()},1)});
!f.keyEventTarget||f.keyEventTarget instanceof EventTarget||(f.keyEventTarget=ew(f.keyEventTarget));f._disabledChanged&&(f._disabledChanged=f._disabledChanged.bind(f.hostElement));f._observeItems&&(f._observeItems=function(u){var O=ew(u);return _.du(O).observeNodes(function(c){f._updateItems();f._updateSelected();_.ul(O,"iron-items-changed",c,{bubbles:!1,cancelable:!1})})});
f._updateItems&&f._updateItems===_.GJ._updateItems&&(f._updateItems=function(){var u=_.du(f.hostElement).queryDistributedElements(f.selectable||"*");u=Array.prototype.filter.call(u,f._bindFilterItem);f._setItems(u)});
f._computeKeyboardClass&&(f._computeKeyboardClass=function(u){_.c2(f.hostElement,"keyboard-focus",u)});
f.ensureRipple&&(f.ensureRipple=function(u){if(f.hasRipple&&!f.hasRipple()){if(!f._createRipple)return;f._ripple=f._createRipple();f._ripple.noink=f.noink;var O=f._rippleContainer||f.hostElement;O&&_.b(O).appendChild(f._ripple)}var c;if(u&&((c=f._ripple)==null?0:c.uiDownAction)){O=_.b(f._rippleContainer||f.hostElement);var h;c=(h=u.composedPath())==null?void 0:h[0];O.contains(c)&&f._ripple.uiDownAction(u)}});
f._updateMultiselectable&&(f._updateMultiselectable=function(u){u?f.hostElement.setAttribute("aria-multiselectable","true"):f.hostElement.removeAttribute("aria-multiselectable")})};
jEh=function(f,R,u){u=_.Z(u);for(var O=u.next();!O.done;O=u.next())cqB(O.value.constructor,f);cqB(R.constructor,f)};
Jge=function(f,R){f=_.Z(f);for(var u=f.next();!u.done;u=f.next())if(u=u.value,u.type==="signal"){var O=u.propertyKey;if(R.hasOwnProperty(O)&&R[O]!=null&&u.attributeType===Object){a:{O=R[O].constructor;for(var c=_.Z(DEB),h=c.next();!h.done;h=c.next())if(h=h.value,O===h){O=h;break a}O=Object}u.attributeType=O}}};
zBh=function(){};
TbX=function(f){var R;return(R=f.hostElement)!=null?R:f};
HO7=function(){throw Error("Kg");};
I55=function(f,R){f.constructor.prototype.useSignals=!0;var u=new f.constructor;jEh(u,f,R.behaviors);Jge(R.reactiveSchemas,u);u={};for(var O=_.Z(R.reactiveSchemas),c=O.next();!c.done;c=O.next())c=c.value,c.type==="signal"&&(u[c.propertyKey]=c.attributeType);var h={copyPropertiesToProto:HO7,didRegister:!1,typesForSignals:u},l=["disable-upgrade"].concat(_.yq(R.observedAttributes)),K=function(q){B2.call(this,f,R,h,q)};
_.y(K,B2);_.Vy.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l}}});
h.copyPropertiesToProto=function(){for(var q=0;q<R.behaviors.length;q++)htn(R.behaviors[q],K.prototype);htn(f,K.prototype)};
R.legacyOptimizations||h.copyPropertiesToProto();K.prototype.is=f.is;return K};
MEe=function(f,R){if(Object.getPrototypeOf(R.prototype).constructor!==_.U)throw Error("Lg");R.prototype.is=f.is;return I55(R.prototype,f)};
Psl=function(f){return f.type==="compute"||f.type==="computeWithMethod"};
UEe=function(f){for(var R=f.reactiveSchemas.filter(Psl),u=new Map,O=new Map,c=new Map,h=_.Z(R),l=h.next();!l.done;l=h.next())l=l.value,u.set(l.propertyKey,l),O.set(l.propertyKey,[]),c.set(l.propertyKey,0);h=0;R=_.Z(R);for(l=R.next();!l.done;l=R.next()){l=l.value;for(var K=_.Z(l.type==="computeWithMethod"?l.method.args:l.args),q=K.next();!q.done;q=K.next())q=q.value,q.type!=="literal"&&(q=q.path.split(".")[0],O.has(q)&&(O.get(q).push(l.propertyKey),c.set(l.propertyKey,c.get(l.propertyKey)+1),h++))}l=
[].concat(_.yq(O.keys())).filter(function(F){return c.get(F)===0});
for(R=[];l.length;)for(K=l.shift(),R.push(u.get(K)),K=_.Z(O.get(K)),q=K.next();!q.done;q=K.next())q=q.value,c.set(q,c.get(q)-1),h--,c.get(q)===0&&l.push(q);u=f.reactiveSchemas.filter(function(F){return!Psl(F)});
f.reactiveSchemas=[].concat(_.yq(u),_.yq(R))};
eBh=function(f,R){if(R.properties)for(var u=_.Z(Object.entries(R.properties)),O=u.next();!O.done;O=u.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;f.properties[O]=typeof c==="function"?{type:c}:c}R.observers&&f.observers.push.apply(f.observers,_.yq(R.observers));R.disabledPolySiReactions&&f.disabledPolySiReactions.push.apply(f.disabledPolySiReactions,_.yq(R.disabledPolySiReactions))};
GKh=function(f,R){for(var u=R.length-1;u>=0;u--){var O=R[u];Array.isArray(O)?GKh(f,O):f.indexOf(O)<0&&f.unshift(O)}};
Bbn=function(f,R){f.reactiveSchemas=f.reactiveSchemas.filter(function(u){return u.type==="observe"&&R.includes(u.method.methodName)||Psl(u)&&R.includes(u.propertyKey)?!1:!0})};
xEe=function(f,R){var u=R.prototype,O,c,h={is:f.is,reactiveSchemas:[],observedAttributes:[],behaviors:[ieX.InjectBehavior,pf.prototype],disableElementRegistration:f.disableElementRegistration,provide:(O=f.providers)!=null?O:[],reactivityMode:f.reactivityMode,signalProperties:(c=u.signalProperties)!=null?c:[]};"template"in R?h.templateGetter=function(){return R.template}:f.getTemplate&&(h.templateGetter=f.getTemplate);
u.behaviors&&GKh(h.behaviors,u.behaviors);oQ5(h,R);return h};
oQ5=function(f,R){for(var u=R.prototype,O={properties:{},observers:[],disabledPolySiReactions:[]},c=_.Z(f.behaviors),h=c.next();!h.done;h=c.next())eBh(O,h.value);eBh(O,u);if(f.signalProperties)for(u=_.Z(f.signalProperties),c=u.next();!c.done;c=u.next())delete O.properties[c.value];u=_.Z(Object.entries(O.properties));for(c=u.next();!c.done;c=u.next()){h=_.Z(c.value);c=h.next().value;h=h.next().value;var l=void 0;if((l=f.signalProperties)==null||!l.includes(c)){l=void 0;var K=f,q=h.type;if(!q)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{q=Reflect.getMetadata("design:type",R,c);for(var F=_.Z(SHX),w=F.next();!w.done;w=F.next())if(w=w.value,q===w){q=w;break a}q=Object}else q=String;h.computed||h.selector||(K.reactiveSchemas.push({type:"signal",propertyKey:c,value:h.value,attributeType:q,readOnly:h.readOnly}),K.observedAttributes.push(_.FO(c)));h.reflectToAttribute&&K.reactiveSchemas.push({type:"reflect",propertyKey:c});if(h.computed){q=pP2(h.computed);if(!q)throw Error("Mg");K.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:c,method:q,value:h.value})}h.observer&&K.reactiveSchemas.push({type:"observe",method:{methodName:h.observer,args:[{type:"path",path:c}]}});h.notify&&K.reactiveSchemas.push({type:"notify",propertyKey:c});h.selector&&K.reactiveSchemas.push({type:"redux",propertyKey:c,selector:h.selector,selectorArgs:(l=h.selectorArgs)!=null?l:[]})}}$Eh&&UEe(f);R=_.Z(O.observers);for(c=R.next();!c.done;c=R.next())u=f,c=c.value,(h=pP2(c))?u.reactiveSchemas.push({type:"observe",method:h}):console.log('Warning: unable to parse observe declaration: "'+
c+'"');Bbn(f,O.disabledPolySiReactions)};
gQe=function(f,R){for(var u=0;u<R.length;u++){var O=R[u],c=void 0;(c=O).showHideApi!=null||(c.showHideApi={});c=void 0;!!f!==!((c=O.showHideApi)==null||!c.hideTemplateChildren)&&(O.nodeType===Node.TEXT_NODE?f?(O.showHideApi.polymerTextContent=O.textContent,O.textContent=""):(c=void 0,O.textContent=(c=O.showHideApi.polymerTextContent)!=null?c:null):O instanceof Element&&O.localName==="slot"?f?(O.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.hl)((0,_.hl)(O).parentNode).replaceChild(O.showHideApi.polymerReplaced,
O)):(c=O.showHideApi.polymerReplaced)&&(0,_.hl)((0,_.hl)(c).parentNode).replaceChild(O,c):O instanceof HTMLElement&&O.style&&(f?(O.showHideApi.polymerDisplay=O.style.display,O.style.display="none"):O.style.display=O.showHideApi.polymerDisplay));O.showHideApi.hideTemplateChildren=f;O.showHideChildren&&O.showHideChildren(f)}};
nQe=function(){if(!sE0){var f=document.createElement("style");f.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(f);sE0=!0}};
o4=function(){return _.E("disable_hidden_dom_if_using_stamper")||_.E("creator_disable_hidden_dom_if_using_stamper")};
VE5=function(f,R){var u=_.xs().getState();return R?f.apply(null,[u].concat(_.yq(R))):f(u)};
iOD=function(){if(YHX)return YHX;var f=_.Z(_.qK(0,void 0,"Nl6eIe")),R=f.next().value;f.next();var u=f.next().value;_.xs().subscribe(function(){vQ7(u)});
return YHX=R};
vQ7=function(f){_.E("delay_redux_signal_update_killswitch")?f(function(R){return R+1}):rgt||(rgt=!0,Promise.resolve().then(function(){f(function(R){return R+1});
rgt=!1}))};
_.xs=function(){return fFX.getAppStore()};
Sw=function(f,R){return fFX.getSelectFn()(f,R)};
_.$s=function(f){fFX.getDispatchFn()(f)};
Ryn=function(f,R){var u={},O;for(O in f)u[O]=R(f[O],O);return u};
_.g_=function(f,R){return function(){var u;return(u=_.Jy(f))!=null?u:R}};
_.sU=function(f,R){var u=Object.assign({},f),O;for(O in R)R.hasOwnProperty(O)&&(u[O]=_.g_(f[O],R[O]));return u};
uhn=function(f,R,u){f instanceof Element&&(u.debugName||(u.debugName="<"+f.tagName.toLowerCase()+(f.tagName.includes("-")?">":"."+f.className+">")),_.E("ytwiz_enable_debug_component_props")&&(f.debugProps||(f.debugProps=Ryn(R,function(O){return function(){return O()}}))))};
_.nf=function(f,R){var u=function(O){var c={stack:[],error:void 0,hasError:!1};try{var h=Oy0={};var l=c8P(c,T52("ytComponent",{})),K;if(((K=u)==null?0:K.idomCompat)&&O.renderedFromIdom){l==null||l.attr("idomCompat",!0);var q,F=typeof u.idomCompat==="object"?(q=u)==null?void 0:q.idomCompat.callbacks:{},w=_.Z(Xn7(O,F,u.debugName)),m=w.next().value;w.next();var W=w.next().value,C=hyn(f,m);h.privateValue=C;Oy0=void 0;uhn(C,m,u);l==null||l.attr("debugName",u.debugName);var d=YL2(C),p=Array.isArray(d)?
d[0]:d;p[lt]||(p[lt]={});p[lt].updateSignalsFromIdomProps=W;return C}var J=Ryn(O,ZyP);var M=hyn(f,J);h.privateValue=M;Oy0=void 0;uhn(M,J,u);l==null||l.attr("debugName",u.debugName);return M}catch(P){c.error=P,c.hasError=!0}finally{lF2(c)}};
u.debugName=R===void 0?"":R;return u};
hyn=function(f,R){f=f(R);return aS(f)};
kY2=function(f,R){f[R]||(f=new _.ts("IDOM interop setter undefined. Key:",R),_.TL(f))};
ZyP=function(f,R){return R==="children"||R==="ref"||typeof f==="function"||f===void 0?f:function(){return _.Jy(f)}};
Xn7=function(f,R,u){var O={},c={},h={},l={},K;for(K in f){l={key$jscomp$891:l.key$jscomp$891};l.key$jscomp$891=K;var q=f[l.key$jscomp$891];if(l.key$jscomp$891==="children"||l.key$jscomp$891==="ref")O[l.key$jscomp$891]=q;else if(typeof q==="function")l.key$jscomp$891 in R||q.length>0?(h[l.key$jscomp$891]=q,O[l.key$jscomp$891]=function(w){return function(){return h[w.key$jscomp$891].apply(h,_.yq(_.yK.apply(0,arguments)))}}(l)):O[l.key$jscomp$891]=q;
else if(!(f[l.key$jscomp$891]===void 0&&l.key$jscomp$891 in R)){var F=_.Z(_.qK(f[l.key$jscomp$891],{debugName:"__cwis:"+u+":"+l.key$jscomp$891},"cEBU8c"));q=F.next().value;F=F.next().value;O[l.key$jscomp$891]=q;c[l.key$jscomp$891]=F}}return[O,c,function(w){var m={},W;for(W in w)m={key$jscomp$892:m.key$jscomp$892,val$jscomp$117:void 0},m.key$jscomp$892=W,m.val$jscomp$117=w[m.key$jscomp$892],m.key$jscomp$892!=="children"&&m.key$jscomp$892!=="ref"&&(typeof m.val$jscomp$117==="function"?m.key$jscomp$892 in
R?h[m.key$jscomp$892]=m.val$jscomp$117:m.val$jscomp$117.length>0&&(h[m.key$jscomp$892]=m.val$jscomp$117,_.Ih(new _.ts("Callback detected that was not set in the idomCompat callbacks map. Key:",m.key$jscomp$892))):m.key$jscomp$892 in R&&m.val$jscomp$117===void 0||(kY2(c,m.key$jscomp$892),WQ(function(C){return function(){c[C.key$jscomp$892](C.val$jscomp$117)}}(m))))}]};
A8t=function(f,R,u){var O=Adt(f.prototype,KID,f.prototype.behaviors);O.prototype.is=R;O.prototype.localName=R;u&&qZh(O,u);return function(c){c&&(O.prototype.hostElement=c);var h=new O;h.root=h;h.hostElement=c;return h}};
qZh=function(f,R){var u;Object.defineProperty(f.prototype,"_template",{get:function(){u===void 0&&(u=R());return u},
set:function(O){u=O},
configurable:!0,enumerable:!0})};
QMt=function(f,R,u,O){function c(){if(!C){for(var d=new Set,p=_.Z(w),J=p.next();!J.done;J=p.next()){J=J.value;for(var M=_.Z(Object.getOwnPropertyNames(J)),P=M.next();!P.done;P=M.next()){P=P.value;var g=void 0,x=(g=Object.getOwnPropertyDescriptor(J,P))==null?void 0:g.value;x&&x instanceof Function&&!VR(P)&&(!K[P]||_.E("polymer_forward_method_killswitch"))&&d.add(P)}}p=_.Z(Object.entries(Object.getOwnPropertyDescriptors(f.prototype)));for(J=p.next();!J.done;J=p.next())M=_.Z(J.value),J=M.next().value,
M=M.next().value,M.value instanceof Function&&!VR(J)&&d.add(J);C=d}return C}
aFq(f,R,O==null?void 0:O.providers);aSl(f.prototype,f,!0);var h=A8t(f,R,u),l,K=(l=f.prototype.properties)!=null?l:{},q,F,w=(F=(q=f.prototype.behaviors)==null?void 0:q.flat(Infinity))!=null?F:[];u=_.Z(w);for(l=u.next();!l.done;l=u.next())K=Object.assign({},l.value.properties,K);var m=[].concat(_.yq(FID),_.yq(Object.keys(K).map(function(d){return _.FO(d)}))),W=!1,C;
return{ctor:function(d,p){var J=h(d),M,P;d=[].concat(_.yq((M=O==null?void 0:O.allowedProps)!=null?M:[]),_.yq((P=O==null?void 0:O.allowedPropsFromBehaviors)!=null?P:[]));J.allowedProps=d.length>0?d:void 0;M={};P=_.Z(m);for(d=P.next();!d.done;d=P.next())d=d.value,M[d]=_.wu(d);J.__dataAttributes=M;var g=J.ready.bind(J);J.ready=function(){p.beforeReady();g();if(W2(R)&&!W){var x=J.__templateInfo;if(x==null?0:x.hostProps){x=_.Z(Object.keys(x.hostProps));for(var fh=x.next();!fh.done;fh=x.next())tl(R,fh.value,
"PROPERTY_ACCESS_GET_INTERNAL")}W=!0}};
J._overrideLegacyUndefined=!0;return J},
props:K,observedAttributes:m,getInitialMethods:c,getPropsToForwardBeforeRegister:function(){for(var d=[],p=new Set,J=_.Z(Object.keys(K)),M=J.next();!M.done;M=J.next())M=M.value,d.push([M,K[M].readOnly]),p.add(M);J=c();M=_.Z(Object.keys(Object.getOwnPropertyDescriptors(f.prototype)));for(var P=M.next();!P.done;P=M.next())P=P.value,!wn5(P)||J.has(P)||p.has(P)||(d.push([P,!1]),p.add(P));p=_.Z(mF7);for(J=p.next();!J.done;J=p.next())d.push([J.value,!0]);return d},
getPropsToForwardBeforeReady:function(d){for(var p=[],J=_.Z(Object.entries(d)),M=J.next();!M.done;M=J.next()){var P=_.Z(M.value);M=P.next().value;P=P.next().value;if(wn5(M)&&!(P instanceof Function)&&(p.push([M,!1]),W2(R))){var g=P=void 0;(g=(P=d)._createPropertyAccessor)==null||g.call(P,M)}}return p},
shouldForwardProp:wn5,shouldLog:W2}};
aFq=function(f,R,u){rUB(f,u);f.prototype.behaviors.unshift(WIl);if(Glh()){if(W2(R)){var O;(O=f.prototype).behaviors!=null||(O.behaviors=[]);f.prototype.behaviors.unshift(Sll())}$$5(f)}_.z(pf.prototype)(f.prototype,"__templateHelpers")};
VR=function(f){return EA7.has(f)||f.startsWith("__compute__")};
wn5=function(f){return!VR(f)&&!f.startsWith("_")&&!f.endsWith("_")};
Nrn=function(f,R){function u(){var W=q();W=_.Z(W);for(var C=W.next();!C.done;C=W.next()){var d=_.Z(C.value);C=d.next().value;d=d.next().value;tpq(m.prototype,C,d)}O=!0}
var O=!1,c=f.ctor,h=f.getInitialMethods,l=f.observedAttributes,K=f.getPropsToForwardBeforeReady,q=f.getPropsToForwardBeforeRegister,F=f.shouldForwardProp,w=f.shouldLog,m=function(){var W=HTMLElement.call(this)||this;W.didForwardDynamicProps=!1;W.loggingStatus={};O||u();W.inst=c(W,{beforeReady:function(){W.didForwardDynamicProps||(W.forwardDynamicProps(),W.didForwardDynamicProps=!0)}});
W.controllerProxy=oct(W.inst,R);W.forwardMethods();return W};
_.y(m,HTMLElement);m.prototype.forwardMethods=function(){for(var W=this,C=_.Z(this.inst.getExtraMethodsToForward()),d=C.next(),p={};!d.done;p={method$jscomp$60:void 0},d=C.next()){var J=_.Z(d.value);d=J.next().value;J=J.next().value;p.method$jscomp$60=J;this[d]=function(M){return function(){return M.method$jscomp$60.call.apply(M.method$jscomp$60,[W.inst].concat(_.yq(_.yK.apply(0,arguments))))}}(p)}C=_.Z(h());
for(p=C.next();!p.done;p=C.next())p=p.value,F(p)&&Cat(this,p),w(R)&&!VR(p)&&y8e(this.inst,p)};
m.prototype.forwardDynamicProps=function(){var W=K(this.inst);W=_.Z(W);for(var C=W.next();!C.done;C=W.next()){var d=_.Z(C.value);C=d.next().value;d=d.next().value;tpq(this,C,d);w(R)&&!VR(C)&&dF2(this.inst,C)}};
m.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
m.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
m.prototype.attributeChangedCallback=function(W,C,d){this.inst.attributeChangedCallbackWrapper(W,C,d)};
_.Vy.Object.defineProperties(m.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return R}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Vy.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l}}});
customElements.define(R,m)};
tpq=function(f,R,u){f.hasOwnProperty(R)||Object.defineProperty(f,R,{get:function(){var O,c=((O=f.is)!=null?O:f.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||tl(c,R,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,O=this.polymerController[R],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,O},
set:function(O){if(!u){var c,h=((c=f.is)!=null?c:f.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||tl(h,R,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=R,this.loggingStatus.bypassProxyController=!0,this.polymerController[R]!==O&&(c={},this.polymerController.setProperties((c[R]=O,c)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Cat=function(f,R,u){var O=f.polymerController;f[R]=function(){var c=_.yK.apply(0,arguments);f.loggingStatus.currentExternalCall=R;f.loggingStatus.bypassProxyController=!0;var h,l=((h=f.is)!=null?h:f.tagName).toLowerCase();tl(l,R,"PROPERTY_ACCESS_CALL_EXTERNAL");var K;h=(K=u!=null?u:O[R])==null?void 0:K.call.apply(K,[O].concat(_.yq(c)));f.loggingStatus.currentExternalCall=void 0;f.loggingStatus.bypassProxyController=!1;return h}};
y8e=function(f,R){var u=f.hostElement,O=f[R];f[R]=function(){var c=_.yK.apply(0,arguments);if(u.loggingStatus.currentExternalCall!==R){var h,l=((h=u.is)!=null?h:u.tagName).toLowerCase();tl(l,R,"PROPERTY_ACCESS_CALL_INTERNAL")}return O==null?void 0:O.apply(f,c)}};
dF2=function(f,R){var u=Object.getOwnPropertyDescriptor(f,R);u&&!u.get&&Object.defineProperty(f,R,{get:function(){x$0(f.hostElement,R);return u.value},
set:function(O){Cf(f.hostElement,R);u.value=O}})};
LI7=function(f){return _.E("poly_si_dom_repeat_detached_fix_killswitch")||f.tagName!=="PS-DOM-REPEAT"?f.tagName==="DOM-REPEAT":!0};
pnB=function(f,R){var u=by0(f);f instanceof Element&&u.unshift(f);f=_.Z(u.filter(LI7));for(var O=f.next();!O.done;O=f.next()){var c=void 0;O=_.Z((c=O.value.__instances)!=null?c:[]);for(c=O.next();!c.done;c=O.next())if(c=c.value,c.root){c=Array.from(c.root.children);c=_.Z(c);for(var h=c.next();!h.done;h=c.next())u.push.apply(u,_.yq(pnB(h.value,R)))}}return u.filter(function(l){return l.usePatchedLifecycles&&l.lifecycleIsConnected===R})};
by0=function(f){var R=null;f instanceof Element?R=Element.prototype.querySelectorAll:f instanceof DocumentFragment&&(R=DocumentFragment.prototype.querySelectorAll);return R?Array.from(R.call(f,"*")):[]};
Ys=function(f){Kc(function(){for(var R=_.Z(pnB(f,!1)),u=R.next();!u.done;u=R.next()){u=u.value;u.lifecycleIsConnected=!0;try{var O=void 0,c=void 0,h=void 0,l=void 0;(O=(l=u.polymerController)!=null?l:u)==null||(h=(c=O).connectedCallback)==null||h.call(c)}catch(K){_.TL(K)}}})};
v2=function(f){Kc(function(){for(var R=_.Z(pnB(f,!0)),u=R.next();!u.done;u=R.next()){u=u.value;u.lifecycleIsConnected=!1;try{var O=void 0,c=void 0,h=void 0,l=void 0;(O=(l=u.polymerController)!=null?l:u)==null||(h=(c=O).disconnectedCallback)==null||h.call(c)}catch(K){_.TL(K)}}})};
IFe=function(){if(!jMn){jMn=!0;var f=[Node];iu&&f.push(iu.Wrapper);var R=Node.prototype.insertBefore,u=Node.prototype.removeChild;f=_.Z(f);for(var O=f.next(),c={};!O.done;c={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},O=f.next())O=O.value,c.nativeInsertBefore=O.prototype.insertBefore,O.prototype.insertBefore=function(l){return function(K,q){if(K instanceof DocumentFragment){var F=Array.from(K.children);K=l.nativeInsertBefore.call(this,K,q);
if(this.isConnected&&l.nativeInsertBefore===R)for(q=_.Z(F),F=q.next();!F.done;F=q.next())Ys(F.value);return K}F=K instanceof Element&&K.isConnected;q=l.nativeInsertBefore.call(this,K,q);F&&v2(K);this.isConnected&&Ys(K);return q}}(c),c.nativeAppendChild=O.prototype.appendChild,O.prototype.appendChild=function(l){return function(K){if(K instanceof DocumentFragment){var q=Array.from(K.children);
K=l.nativeAppendChild.call(this,K);if(this.isConnected){q=_.Z(q);for(var F=q.next();!F.done;F=q.next())Ys(F.value)}return K}q=K instanceof Element&&K.isConnected;F=l.nativeAppendChild.call(this,K);q&&v2(K);this.isConnected&&Ys(K);return F}}(c),c.nativeRemoveChild=O.prototype.removeChild,O.prototype.removeChild=function(l){return function(K){var q=K instanceof Element&&K.isConnected,F=l.nativeRemoveChild.call(this,K);
q&&u===l.nativeRemoveChild&&v2(K);return F}}(c),c.nativeReplaceChild=O.prototype.replaceChild,O.prototype.replaceChild=function(l){return function(K,q){if(K instanceof DocumentFragment){var F=Array.from(K.children);
K=l.nativeReplaceChild.call(this,K,q);if(this.isConnected)for(v2(q),q=_.Z(F),F=q.next();!F.done;F=q.next())Ys(F.value);return K}F=K instanceof Element&&K.isConnected;var w=this.isConnected,m=l.nativeReplaceChild.call(this,K,q);w&&v2(q);F&&v2(K);w&&Ys(K);return m}}(c);
f=[Element];iu&&f.push(iu.Wrapper);f=_.Z(f);O=f.next();for(c={};!O.done;c={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},O=f.next())O=O.value,O.prototype.before=DFB(O.prototype.before),O.prototype.after=DFB(O.prototype.after),c.nativeReplaceWith=O.prototype.replaceWith,O.prototype.replaceWith=function(l){return function(){var K=_.yK.apply(0,arguments),q=_.Z(J82(K)),F=q.next().value,
w=q.next().value;q=this.isConnected;l.nativeReplaceWith.apply(this,K);K=_.Z(w);for(w=K.next();!w.done;w=K.next())v2(w.value);if(q)for(v2(this),F=_.Z(F),q=F.next();!q.done;q=F.next())q=q.value,q instanceof Element&&Ys(q)}}(c),c.nativeRemove=O.prototype.remove,O.prototype.remove=function(l){return function(){var K=this.isConnected;
l.nativeRemove.call(this);K&&v2(this)}}(c),c.nativeInsertAdjacentElement=O.prototype.insertAdjacentElement,O.prototype.insertAdjacentElement=function(l){return function(K,q){var F=q.isConnected;
K=l.nativeInsertAdjacentElement.call(this,K,q);F&&v2(q);K.isConnected&&Ys(K);return K}}(c),c.nativeSetAttribute=O.prototype.setAttribute,O.prototype.setAttribute=function(l){return function(K,q){var F=zyD(this);
if(!F.usePatchedLifecycles)return l.nativeSetAttribute.call(this,K,q);var w=this.getAttribute(K);l.nativeSetAttribute.call(this,K,q);q=this.getAttribute(K);Tre(F,K,w,q)}}(c),c.nativeRemoveAttribute=O.prototype.removeAttribute,O.prototype.removeAttribute=function(l){return function(K){var q=zyD(this);
if(!q.usePatchedLifecycles)return l.nativeRemoveAttribute.call(this,K);var F=this.getAttribute(K);l.nativeRemoveAttribute.call(this,K);F!==null&&Tre(q,K,F,null)}}(c),c.nativeToggleAttribute=O.prototype.toggleAttribute,O.prototype.toggleAttribute=function(l){return function(K,q){var F=zyD(this);
if(!this.usePatchedLifecycles)return l.nativeToggleAttribute.call(this,K,q);var w=this.getAttribute(K),m=w!==null;q=l.nativeToggleAttribute.call(this,K,q);q!==m&&Tre(F,K,w,q?"":null);return q}}(c);
f=[Document,DocumentFragment,Element,ShadowRoot];iu&&f.push(iu.Wrapper);f=_.Z(f);for(c=f.next();!c.done;c=f.next())c=c.value,c.prototype.prepend=DFB(c.prototype.prepend),c.prototype.append=DFB(c.prototype.append);(iu==null?void 0:iu.noPatch)===!0&&Hyt();document.readyState==="complete"?Ys(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ys(document.body)});
var h=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");h&&h.get&&h.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:h.enumerable,configurable:!0,get:h.get,set:function(l){l||v2(this);h.set.call(this,l);return l}})}};
DFB=function(f){return function(){var R=_.yK.apply(0,arguments),u=_.Z(J82(R)),O=u.next().value;u=u.next().value;f.apply(this,R);R=_.Z(u);for(u=R.next();!u.done;u=R.next())v2(u.value);if(this.isConnected)for(O=_.Z(O),R=O.next();!R.done;R=O.next())R=R.value,R instanceof Element&&Ys(R)}};
Hyt=function(){for(var f=_.Z(Mp7),R=f.next();!R.done;R=f.next()){R=R.value.prototype;for(var u=_.Z(PaB),O=u.next();!O.done;O=u.next()){O=O.value;var c=Object.getOwnPropertyDescriptor(R,O);c&&Object.defineProperty(R,"__shady_native_"+O,c)}}};
Tre=function(f,R,u,O){var c,h;if((c=f.polymerController)==null?0:(h=c.observedAttributes)==null?0:h.includes(R))if(f=f.polymerController,f.attributeChangedCallbackWrapper)f.attributeChangedCallbackWrapper.call(f,R,u,O);else{var l;(l=f.attributeChangedCallback)==null||l.call(f,R,u,O)}};
J82=function(f){var R=[],u=[];f=_.Z(f);for(var O=f.next();!O.done;O=f.next())O=O.value,O instanceof Element&&O.isConnected&&u.push(O),O instanceof DocumentFragment?R.push.apply(R,_.yq(Array.from(O.children))):R.push(O);return[R,u]};
zyD=function(f){return!(f instanceof Element)&&f.node instanceof Element?f.node:f};
UFn=function(f,R){var u=R?["children"].concat(_.yq(R)):["children"];R=[];u=_.Z(u);for(var O=u.next();!O.done;O=u.next()){var c=O.value;if(f.hasOwnProperty(c)){O=f[c];O=typeof O==="function"?O():O;O=aS(Array.isArray(O)?O:[O]).flat();if(c!=="children"){c=fCe(c);for(var h=_.Z(O),l=h.next();!l.done;l=h.next())l=l.value,l instanceof Element&&l.setAttribute("slot",c)}R.push(O)}}R.length===0?f=[]:(f=aS(_.a("div",null,R)),f=Array.from(f.childNodes));return f};
GYD=function(f,R,u){var O={};_.zo(function(){var c={},h;for(h in R)if(R.hasOwnProperty(h)){var l=void 0,K=void 0;if(!(((l=u.slotProps)==null?0:l.includes(h))||h==="children"||((K=u.callbackProps)==null?0:K.includes(h))||h==="ref")&&(l=_.Jy(R[h]),O[h]!==l)){O[h]=l;K=void 0;var q=(K=f.hostElement)!=null?K:f;ey2.has(h)&&(q[h]=l);c[h]=l}}WQ(function(){if(f.setProperties)f.setProperties(c);else for(var F=_.Z(Object.entries(c)),w=F.next();!w.done;w=F.next()){var m=_.Z(w.value);w=m.next().value;m=m.next().value;
f[w]=m}})})};
oAh=function(f,R,u,O){var c=UFn(u,O.slotProps),h=(0,_.hl)(f);c=_.Z(c);for(var l=c.next();!l.done;l=c.next())h.appendChild(l.value);GYD(R,u,O);O=_.Z(O.callbackProps||[]);c=O.next();for(h={};!c.done;h={kebabEventName:void 0,eventListener:void 0},c=O.next())l=c=c.value,String(c).substring(0,2)==="on"&&u[l]?(h.kebabEventName=fCe(String(c).substring(2)),h.eventListener=u[l],f.addEventListener(h.kebabEventName,h.eventListener),_.jN(function(w){return function(){f.removeEventListener(w.kebabEventName,w.eventListener)}}(h))):
R[l]=u[l];
if(u.ref){u=_.Z(Brn(u.ref));var K=u.next().value,q=u.next().value,F=R.attached.bind(R);R.attached=function(){K(f);F()};
_.jN(function(){q()})}};
Brn=function(f){if(typeof f==="function"){var R;return[function(u){R=f(u)},
function(){var u;(u=R)==null||u()}]}if(!f.onRender||!f.onUnmount)throw Error("Qg");
return[f.onRender,f.onUnmount]};
gAX=function(f,R,u,O,c){O=O===void 0?{}:O;var h=xFB,l=!1;h?(l=!0,xFB=void 0):(SZe=R,h=document.createElement(R),SZe=void 0);var K=h;K.usePatchedLifecycles=!0;K.lifecycleIsConnected=!1;h.loggingStatus={};var q=$F5(f,R,h,O,c);_.jN(function(){K.lifecycleIsConnected&&(K.lifecycleIsConnected=!1,q.disconnectedCallback())});
l||oAh(h,q,u,O);return h};
$F5=function(f,R,u,O,c){c=c===void 0?QMt:c;sM5[R]!=null||(sM5[R]=c(f,R,O==null?void 0:O.getTemplate,O));var h=sM5[R],l=h.ctor;c=h.getInitialMethods;var K=h.getPropsToForwardBeforeReady;f=h.getPropsToForwardBeforeRegister;O=h.shouldForwardProp;var q=h.observedAttributes,F=h.shouldLog,w=l(u,{beforeReady:function(){var m=w;m._takeAttributes?m._takeAttributes():m.setPropertiesFromInitialAttributeValues&&m.setPropertiesFromInitialAttributeValues();m=_.Z(K(u.polymerController));for(var W=m.next();!W.done;W=
m.next()){var C=_.Z(W.value);W=C.next().value;C=C.next().value;tpq(u,W,C);F(R)&&!VR(W)&&dF2(u.polymerController,W)}u.polymerController=oct(w,R)}});
u.polymerController=w;u.polymerController.observedAttributes=q;h=_.Z(w.getExtraMethodsToForward());for(l=h.next();!l.done;l=h.next())q=_.Z(l.value),l=q.next().value,q=q.next().value,Cat(u,l,q);c=_.Z(c());for(h=c.next();!h.done;h=c.next())h=h.value,O(h)&&Cat(u,h),F(R)&&!VR(h)&&y8e(w,h);f=_.Z(f());for(O=f.next();!O.done;O=f.next())c=_.Z(O.value),O=c.next().value,c=c.next().value,tpq(u,O,c);return w};
Vp7=function(f,R){return r_===R?(f.isInert=!0,r_="",!0):nAB===R?(f.isInert=!0,nAB="",!0):!1};
YZD=function(f){var R=fU;fU=f;return R};
iyX=function(f){if(RF.has(f))nAB=f;else if(ui.has(f)&&fU&&vA2(fU)===f){var R;(R=fU)._numRenders!=null||(R._numRenders=0);fU._numRenders++;if(fU._numRenders>1)throw Error("Rg");return fU}};
r8h=function(f){RF.has(vA2(f))?nAB=vA2(f):ui.has(vA2(f))&&fU!==f&&(f._isInert=!0)};
vA2=function(f){var R;return(R=f==null?void 0:f.tagName.toLowerCase())!=null?R:""};
fIh=function(f,R){if(f.componentType===dP)throw Error("Sg");ui.add(R);var u=function(){var O=HTMLElement.call(this)||this;O.is=R;if(SZe===R)return O.isInert=!0,O;O.createElement();return O};
_.y(u,HTMLElement);u.prototype.createElement=function(){if(!this.isInert){xFB=this;var O=_.Z(wMP(function(){return _.a(f,null)})).next().value;
xFB=void 0;xCB(this);return O}};
customElements.define(R,u)};
uc7=function(f,R,u,O,c){f.prototype.is=R;(O==null?0:O.useSink)?Rrn(f,R,u,O,c):(u=QMt(f,R,u,O),Nrn(u,R));return f};
Rrn=function(f,R,u,O,c){IFe();var h=_.nf(function(l){return gAX(f,R,l,Object.assign({},O,{getTemplate:u}),c)},"a");
fIh(h,R);return h};
cX7=function(f){return!OF7.has(f)};
ZFh=function(f,R,u,O){function c(){if(!m){for(var W=new Set(XVD),C=_.Z(h.behaviors),d=C.next();!d.done;d=C.next()){d=d.value;for(var p=_.Z(Object.getOwnPropertyNames(d)),J=p.next();!J.done;J=p.next()){J=J.value;var M=void 0,P=(M=Object.getOwnPropertyDescriptor(d,J))==null?void 0:M.value;P&&P instanceof Function&&(!F[J]||_.E("polymer_forward_method_killswitch"))&&W.add(J)}}C=_.Z(Object.entries(Object.getOwnPropertyDescriptors(f.prototype)));for(d=C.next();!d.done;d=C.next())p=_.Z(d.value),d=p.next().value,
p=p.next().value,p.value instanceof Function&&W.add(d);m=W}return m}
var h=xEe({is:R,disableElementRegistration:!1,getTemplate:u,providers:O==null?void 0:O.providers,reactivityMode:O==null?void 0:O.reactivityMode},f);if((O==null?0:O.allowedProps)||(O==null?0:O.allowedPropsFromBehaviors)){var l,K;h.allowedProps=[].concat(_.yq((l=O.allowedProps)!=null?l:[]),_.yq((K=O.allowedPropsFromBehaviors)!=null?K:[]))}var q=MEe(h,f);R=q.observedAttributes;var F={};u=_.Z(h.reactiveSchemas);for(O=u.next();!O.done;O=u.next())if(O=O.value,O.type==="signal")F[O.propertyKey]={readOnly:O.readOnly},
O.readOnly&&(F[AqD(O.propertyKey)]={readOnly:!0});else if(O.type==="compute"||O.type==="computeWithMethod"||O.type==="redux")F[O.propertyKey]={readOnly:!0};var w=h.reactiveSchemas.length,m;return{ctor:function(W,C){W=new q(W);W.beforeReady=C.beforeReady;return W},
props:F,observedAttributes:R,getInitialMethods:c,getPropsToForwardBeforeRegister:function(){for(var W=[],C=new Set,d=_.Z(hr5),p=d.next();!p.done;p=d.next())p=p.value,W.push([p,p!=="observers"&&p!=="properties"]),C.add(p);d=_.Z(Object.keys(F));for(p=d.next();!p.done;p=d.next())p=p.value,W.push([p,F[p].readOnly]),C.add(p);d=c();p=_.Z(Object.keys(Object.getOwnPropertyDescriptors(f.prototype)));for(var J=p.next();!J.done;J=p.next())J=J.value,!cX7(J)||d.has(J)||C.has(J)||(W.push([J,!1]),C.add(J));W.push(["allowedProps",
!0]);return W},
getPropsToForwardBeforeReady:function(W){var C=[];W=_.Z(Object.keys(W));for(var d=W.next();!d.done;d=W.next()){d=d.value;var p=c();cX7(d)&&!p.has(d)&&C.push([d,!1])}W=_.Z(h.reactiveSchemas.slice(w));for(d=W.next();!d.done;d=W.next())d=d.value,d.type!=="compute"&&d.type!=="computeWithMethod"&&d.type!=="redux"&&d.type!=="signal"||C.push([d.propertyKey,d.type==="signal"?d.readOnly:!0]);return C},
shouldForwardProp:cX7,shouldLog:W2}};
_.G=function(f,R,u,O){var c,h,l=(h=(c=O)==null?void 0:c.mode)!=null?h:0;O!=null||(O={});var K;(K=O).reactivityMode!=null||(K.reactivityMode=0);l===1&&_.Xt("creator_poly_si_disable_list").includes(R)&&(l=2);return l===1?uc7(f,R,u,Object.assign({},O,{useSink:!0}),ZFh):uc7(f,R,u,Object.assign({},O,{useSink:l===2}))};
_.Ox=function(){return function(f,R,u,O){var c,h,l=(h=(c=O)==null?void 0:c.mode)!=null?h:2;O!=null||(O={});var K;(K=O).reactivityMode!=null||(K.reactivityMode=0);if(l===0)throw Error("Tg`"+l);return Rrn(f,R,u,O,l===1?ZFh:void 0)}};
_.c7=function(f){return _.E("creator_poly_si_killswitch")?!1:_.E("force_all_poly_si_batches")&&(f==="poly_si_all_on_test_check"||f==="creator_poly_si_batch_050"?0:f)||document.documentElement.hasAttribute("use-signals")?!0:!f||_.E(f+"_holdback_enabled")&&_.E("kevlar_polysi_holdback")?!1:_.E(f)};
Xy=function(f){return f?f.icon?f.icon.iconType.toLowerCase():f.customThumbnail?"member":"":""};
lIq=function(f){if(!f)return"";f=_.Z(f);for(var R=f.next();!R.done;R=f.next())if((R=R.value)&&R.liveChatAuthorBadgeRenderer&&(R=Xy(R.liveChatAuthorBadgeRenderer))&&R!=="verified")return R;return""};
k8X=function(f,R){if(!f)return null;var u;return((u=f.find(function(O){return O&&O.liveChatAuthorBadgeRenderer?Xy(O.liveChatAuthorBadgeRenderer)===R:!1}))==null?void 0:u.liveChatAuthorBadgeRenderer)||null};
_.wV0=function(f){var R=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;f=Kcn(f);R=Kcn(R);var u=qIe(f.hex);R=qIe(R.hex);var O=R[0]/255;var c=R[1]/255,h=R[2]/255,l=Math.max(O,c,h),K=Math.min(O,c,h),q=0,F=0,w=.5*(l+K);l!=K&&(l==O?q=60*(c-h)/(l-K):l==c?q=60*(h-O)/(l-K)+120:l==h&&(q=60*(O-c)/(l-K)+240),F=0<w&&w<=.5?(l-K)/(2*w):(l-K)/(2-2*w));O=[Math.round(q+360)%360,F,w];u=AXB(u,R);for(f=aI0(f.hex);u<4.5;){f=O[2]>=.5?f.darker((4.5-u)/2):f.brighter((4.5-u)/2);u=f.toString();
c=Fcq(u);if(!c.length)throw Error("Qd`"+u);u=c;u=AXB(u,R)}return f.hex()};
AXB=function(f,R){f=_.fZq(f);R=_.fZq(R);return(Math.max(f,R)+.05)/(Math.min(f,R)+.05)};
_.h4=function(f){return"#"+("000000"+(f&16777215).toString(16)).slice(-6)};
_.mYe=function(f){for(var R=0,u=0;u<f.length;u++)R=f.charCodeAt(u)+((R<<5)-R);f="#";for(u=0;u<3;u++)f+=("00"+(R>>u*8&255).toString(16)).slice(-2);return f};
Qol=function(f){f=(f||"").split(":");f.length===1&&f.unshift("yt-icons");f[1]=f[1].toLowerCase();return f};
dYl=function(f,R){var u=(R=R===void 0?!1:R)?Wc7:Eb5,O=R?tUn:CNB;f.getIconNames().forEach(function(c){c=R?c:c.substring(c.indexOf(":")+1);f.name==="yt-icons"?yXl.add(c):c.includes("-filled")?u.add(c):O.add(c)})};
Zz=function(f,R,u,O){u=u===void 0?!1:u;O=O===void 0?!1:O;var c,h,l;return _.k(function(K){if(K.nextAddress==1)return _.A(K,NyD,2);if(O)return K.return(yXl.has(f));c=u?Wc7:Eb5;h=u?tUn:CNB;return R?(l=f.includes("-filled")?f:f.concat("-filled"),K.return(c.has(l))):K.return(h.has(f))})};
_.pVl=function(f){if(Lch(f))return f;var R=f=f.toLowerCase();(f=bF2.get(f))&&(R=f);return R};
_.li=function(f){if(Lch(f))return f.toString();var R=jon.get(f);if(R)return R;R=f.toLowerCase();var u="yt-icons",O=R.replace(/_/g,"-");switch(f){case "MY_CHANNEL":R="account_circle";break;case "ADD_TO_LIBRARY":R="add";break;case "ALERT_WARN_RED":R="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":R="person_music";break;case "BLOCK_USER":R="block";break;case "CAPTIONS":R="closed_caption";break;case "CLOSED_CAPTION":u="av";R="closed-caption";break;case "COLLECTION":u="maps";R="layers";break;case "CONTACT":u=
"icons";R="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="ytcp-icons";R=O.split("creator-studio-")[1];break;case "DISMISSAL":R="close";break;case "DO_NOT_DISTURB":R="block";break;case "DOGFOOD":u="icons";R="pets";break;case "DRAFT":R="paper_corner_folded";break;
case "EMPTY_LIKE":R="like_outline";break;case "EXIT_APP":R="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":R=O;break;case "GAMES":u="ytg";R="my-games";break;case "GO_TO_PAGE":R="arrow-forward";break;case "GROUP":u="social";break;case "HIDE":R="not_interested";break;case "INPUT_COMPONENT":u="icons";R="settings-input-component";break;case "KIDS_BLOCK":R="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":u="ytg";R="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":u=
"ytg";R="membership-post-purchase";break;case "MULTIVIEW":R="screen_multi_view";break;case "MY_LOCATION":u="maps";R=O;break;case "NOTIFICATIONS_INBOX":R="NOTIFICATIONS";break;case "NEXT":R="chevron_right";break;case "OFFLINE":R="power-settings-new";break;case "PAUSE":u="miniplayer";break;case "PAYMENT":u="icons";break;case "PHONE_DOWNLOAD":R="phone_download";break;case "PREMIUM_STANDALONE":u="yt-logos";R="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":u="yt-logos";R="premium_standalone_cairo";
break;case "QUESTION_ANSWER":R="question_answer";break;case "REDEEM":u="icons";R="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":R="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":R="library_add";break;case "SCHOOL":u="yt-sys-icons";R="creator_academy";break;case "SETTINGS_LIGHT":R="settings_applications";break;case "SETTINGS_MATERIAL":R="settings";break;case "SEARCH_HISTORY":R="watch_history";break;case "SHOPPING_BAG":R="bag";break;case "SOCIAL":case "PEOPLE":u=
"yt-icons";R="people";break;case "STAFF_PICK":u="ytg";R="spotlight";break;case "START_DVR":R="add";break;case "STOP_DVR":u="av";R="stop";break;case "TAB_LIKED":R="like";break;case "TAB_INBOX":R="mail";break;case "TERMS_OF_SERVICE":u="icons";R="description";break;case "TRENDING":R="fire";break;case "UNBLOCK_USER":R="remove";break;case "UNPLUGGED_DARK_THEME":u="image";R="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":R="live";break;case "UNPLUGGED_SPORTS":u="ytu";R="visibility-off";break;
case "VIDEOS":u="av";R="play-circle-filled";break;case "YOUTUBE":u="yt-logos";R="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":u="yt-logos-ext";R="yt-logo-red-updated";break;case "YOUTUBE_LOGO":u="yt-logos-ext";R="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";R=O;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":u="yt-sys-icons";R="youtube_improve_tv";break;case "OUTLINE_BAG":u=
"yt-sys-icons";R="bag";break;case "QUEUE_PLAY_LAST":u="yt-sys-icons";R="list_queue_last";break;case "SLASH_CIRCLE_LEFT":R="slash_circle_left";break;case "SPEED_1_POINT_2X":R="1_point_2x";break;case "SPEED_1_POINT_5X":R="1_point_5x";break;case "SPEED_1_POINT_8X":R="1_point_8x";break;case "SPEED_POINT_2X":R="point_2x";break;case "SPEED_POINT_5X":R="point_5x";break;case "SPEED_POINT_8X":R="point_8x";break;case "SPEED_1X":R="1x";break;case "SPEED_2X":R="2x";break;case "TAB_BOOKMARK":R="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":u="yt-sys-icons";R="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":u="yt-sys-icons";R="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":u="yt-sys-icons",R="tic_tac_toe"}R=u+":"+R;jon.set(f,R);return R};
Lch=function(f){var R;_.E("kevlar_use_wil_icons")?R=!!_.vh().resolve(_.kr).resolveIcon({iconName:f.toString()}):R=!1;return R};
_.qO=function(f,R,u,O){u=u===void 0?{}:u;O=O===void 0?!1:O;u===null&&(u={});var c=_.Xt("kevlar_command_handler_command_banlist");c=_.Z(c);for(var h=c.next();!h.done;h=c.next())if(h=f?f.hasOwnProperty(h.value):void 0,h)return!1;c=_.t(f.commandMetadata,_.vc);return O&&c!=null&&c.url?!1:!R.disableCommandHandlerOverride&&_.KU.instance?(O=_.KU.instance,u.form||(u.form={element:R}),u.form.element||(u.form.element=R),!u.clickedVisualElement&&R.visualElement&&(u.clickedVisualElement=R.visualElement),O.resolveCommand(f,
u),!0):!1};
DY7=function(f,R){f=A4(f);for(var u=_.Z(f.visibilityMonitorKeys||[]),O=u.next();!O.done;O=u.next())R.unobserveByKey(O.value);f.visibilityMonitorKeys=void 0};
HF0=function(f,R){if(_.z4()){if(_.E("kevlar_vimio_use_shared_monitor"))JXP(f,R.data);else if(!JXP(f,R.data))return;var u=R.data,O=zrn(u);if(_.E("enable_client_ve_spec_logging"))DY7(f,R.observer);else{var c=A4(f);c.trackedParams&&c.trackedParams!==O&&DY7(f,R.observer)}c=A4(f);!u||c.data&&c.data===u||(c.data=u);Tye(f,R);c.trackedParams=O}};
Tye=function(f,R){var u=R.observer;if(!u&&_.E("web_skip_missing_vimio_observer")){var O,c;_.Ih(new _.ts("VisibilityObserver is not defined.",f.tagName,f.trackedParams,(O=R.data)==null?void 0:O.trackingParams,(c=R.data)==null?void 0:c.loggingDirectives))}else{var h=R.layer,l=R.visibilityCallback||function(){},K=R.prescanCallback,q=A4(f);
O=[];R.showOption&&O.push(u.observe(f,function(){R.skipLogging&&R.skipLogging()||_.aF().reportShown(q,void 0,h);l(!0)},R.showOption));
R.hideOption&&O.push(u.observe(f,function(){_.aF().reportHidden(q,void 0,h);l(!1)},R.hideOption));
R.prescanOption&&K&&O.push(u.observe(f,function(){K()},R.prescanOption));
q.visibilityMonitorKeys=O}};
JXP=function(f,R){f=A4(f);if(f.visualElement&&!R)return!0;if(!R)return!1;var u=!1;if(_.E("enable_client_ve_spec_logging")){var O,c;u=!!((O=R.loggingDirectives)==null?0:(c=O.clientVeSpec)==null?0:c.uiType)}O=zrn(R);if(!O&&!u)return!1;_.E("mweb_component_visibility_logging")&&(f.veContainer||(f.veContainer={}),f.veContainer.trackingParams=O);if(f.trackedParams&&f.trackedParams===O)return!1;var h;if(_.E("enable_client_ve_spec_logging")&&((h=f.visualElement)==null?0:h.isClientVe())){var l;h=(l=f.visualElement)==
null?void 0:l.getAsJspb();var K,q,F,w;if(_.Rj(h,2)===((K=R.loggingDirectives)==null?void 0:(q=K.clientVeSpec)==null?void 0:q.uiType)&&_.Rj(h,3,-1)===((F=R.loggingDirectives)==null?void 0:(w=F.clientVeSpec)==null?void 0:w.elementIndex))return!1}if(_.E("enable_client_ve_spec_logging")){var m,W;!f.visualElement&&((m=R.loggingDirectives)==null?0:(W=m.clientVeSpec)==null?0:W.uiType)&&(K=R.loggingDirectives.clientVeSpec,R=K.uiType,l=K.elementIndex,K=K.clientYoutubeData,f.visualElement=_.Fy(_.wR(),{veType:R,
elementIndex:l,clientYouTubeData:K}))}return!0};
zrn=function(f){if(f==null?0:f.rendererContext){var R=_.t(f.rendererContext,_.mi);if(R==null?0:R.loggingDirectives)return R.loggingDirectives.trackingParams}return(f==null?0:f.loggingDirectives)?f.loggingDirectives.trackingParams:f==null?void 0:f.trackingParams};
A4=function(f){var R;return(R=f.polymerController)!=null?R:f};
UYn=function(f){_.aF();if(_.MW(Q0().JSC$10464_elementShouldLogGesture).bind(Q0())(f,4)){IIq(f);var R=MUX(f);PNt.set(f,R)}};
IIq=function(f){PNt.has(f)&&(PNt.get(f).cancel("untrack hover element"),PNt.delete(f))};
MUX=function(f){var R,u=[],O=!1,c=new _.ah(function(h,l){W7(f,"mouseenter",_.MW(function(){var K,q,F;return _.k(function(w){if(w.nextAddress==1)return R=(0,_.iZ)(),K=erD(f),u.push(K),q=G8n(f,function(){O=!0;l(Error("Ug"))}),_.A(w,K,2);
if(w.nextAddress!=3)return q&&Ex(q),F=Byn(f),u.push(F),_.A(w,F,3);h();_.KG(w)})}))});
c.then(function(){var h=(0,_.iZ)()-R;h=Math.round(h);if(!(500>h||6E5<=h)){var l=f.getScreenLayer?f.getScreenLayer():void 0;l=_.z4(l)||"";var K=obB(_.aF(),f);_.$E(l,f.visualElement?f.visualElement:_.t4(K),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:h}})}UYn(f)},function(){CU&&(CU(),CU=null);
O&&(IIq(f),UYn(f))});
return c};
erD=function(f){var R;return(new _.ah(function(u,O){CU=function(){O(Error("Vg"))};
R=_.JA.debounce(_.MW(function(){Ex(c);u()}),1,100);
var c=_.y0(f,"mousemove",R)})).thenCatch(function(){var u=_.JA.cancelDebouncedJobMap.get(R);
u&&_.JA.cancelJob(u)})};
Byn=function(f){var R;return(new _.ah(function(u,O){CU=function(){O(Error("Wg"))};
R=W7(f,"mouseleave",_.MW(function(){u()}))})).thenCatch(function(){Ex(R)})};
G8n=function(f,R){return W7(f,"mouseleave",_.MW(R))};
SI0=function(f){xYq&&_.dR.cancel(xYq);xYq=_.dR.run(function(){_.ul(f,"yt-visibility-refresh");xYq=0})};
$Y2=function(f){f=Number(f);return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
soq=function(f){if(!f)return!1;if(_.t(f,_.gbt))return!0;var R;if(f=(R=_.t(f,_.kE))==null?void 0:R.commands)for(R=_.Z(f),f=R.next();!f.done;f=R.next())if(_.t(f.value,_.gbt))return!0;return!1};
nbB=function(f){var R=!0;R=R===void 0?!0:R;if(!f.useSignals&&!f.experimentalPropertiesChanged||_.E("experimental_templating_behavior_nopatch_killswitch")){var u=f._propertiesChanged;f._propertiesChanged=function(O,c,h){R?f.debounceRender():f.doRender();u&&u.call(f,O,c,h)}}};
VUP=function(f,R){if(f.useSignals||f.experimentalPropertiesChanged)if(_.E("experimental_templating_behavior_nopatch_killswitch"))f.experimentalPropertiesChanged=function(){};
else return;var u=new Set,O=[f].concat(_.yq(f.behaviors));O=_.Z(O);for(var c=O.next();!c.done;c=O.next()){c=c.value;for(var h in c.properties)u.has(h)||(f._addPropertyEffect(h,"function",R),u.add(h))}};
YID=function(){var f=Polymer.Element,R=f._prepareTemplate;f._prepareTemplate=function(){R.call(this);var u=this.prototype;if(u.experimentalTemplatingInUse&&u.experimentalTemplatingInUse()&&u.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.TL(Error("Xg"));else{u=this.template.content.childNodes;for(var O=u.length-1;O>=0;O--){var c=u[O];c.nodeName!=="STYLE"&&c.nodeName!=="LINK"&&c.nodeName!=="SCRIPT"&&c.nodeName!=="#comment"&&c.remove()}}}};
vbn=function(f){var R=!0;R=R===void 0?!0:R;YID();var u=f.ready;f.ready=function(){this._template=null;u.call(this)};
VUP(f,R?f.debounceRender:f.doRender)};
rX7=function(f,R,u){if(u===null||u===void 0)return u;var O=Knh(f.tagName.toLowerCase(),R,function(){throw Error("Qb");});
if(O===null)return u;O=iFt[O];var c;if((c=O.isUnwrappable)==null?0:c.call(O,u)){if(O.unwrap)return O.unwrap(u);throw Error("$g");}return O.filterString?O.filterString(f.tagName,R,String(u)):u};
fft=function(f,R,u){var O=R[R.length-1]!=="$",c=rX7(f,R,u);if(O)if(typeof c==="function"&&R.startsWith("reactiveon")&&R===R.toLowerCase()){var h=Y$;tIh(f,R.slice(8),function(l){To(h,function(){c(l)})})}else f[R]=c;
else u=c==null?null:String(c),EMl(f,R.slice(0,-1),u)};
LU=function(f){RYe.length===0&&requestAnimationFrame(function(){setTimeout(function(){var R=RYe.slice();RYe.length=0;R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;try{u()}catch(O){_.NO(O)}}})});
RYe.push(f)};
uKn=function(f){if(f){var R=f.component;if(R){var u;R==null||(u=R.events)==null||u.publish("DISCONNECTED");var O;R==null||(O=R.onDisconnected)==null||O.call(R)}var c,h;(c=f.__spec)==null||(h=c.didUnmount)==null||h.call(c);for(R=0;R<f.childNodes.length;R++)uKn(f.childNodes[R])}};
pU=function(f,R,u){var O=R&&R.key,c=s$;c[0]=f;c[1]=O;c[2]=void 0;for(var h in R)R.hasOwnProperty(h)&&(f=R[h],O=nc,O.push(h),O.push(f));R=s$;a:{if(h=s$[2])for(f=0;f<h.length;f+=2)if(h[f]==="nonce"){h=h[f+1];break a}h=""}h=HBe(R[0],R[1],h);f=PQ(h);O=R[2];if(!f.staticsApplied&&(f.staticsApplied=!0,O&&O.length))if((c=f._attrsArr)&&c.length){for(c=0;c<O.length;c+=2)bi[O[c]]=c+1;c=f._attrsArr||(f._attrsArr=Wne(0));for(var l=0,K=0;K<c.length;K+=2){var q=c[K],F=c[K+1],w=bi[q];w?O[w]===F&&delete bi[q]:(c[l]=
q,c[l+1]=F,l+=2)}Is(c,l);for(var m in bi)LnX(h,m,O[bi[m]],v5),delete bi[m]}else for(m=0;m<O.length;m+=2)LnX(h,O[m],O[m+1],v5);BcD(h,f,v5);Is(R,0);u&&u(U$);I95()};
OA2=function(f){var R=f.toString().toLowerCase();return function(u,O){pU(R,u,O)}};
_.jQ=function(f,R,u){u===void 0?delete f[R.name]:f[R.name]=u};
_.Dz=function(f){var R={androidIncludeFontPadding:!1},u=0,O=[],c=[],h=[];if(f.simpleText)return R.content=f.simpleText,R;if(f.runs===void 0)return R.content="",R;f=_.Z(f.runs);for(var l=f.next();!l.done;l=f.next()){l=l.value;var K=l.text,q=void 0,F=(q=K)==null?void 0:q.length;if(K&&F){O.push(K);if(l.bold||l.italics||l.strikethrough||l.underline||l.textColor!=null&&l.textColor!==0||l.deemphasize){K=c;q=K.push;var w={startIndex:u,length:F};l.bold&&(w.weightLabel="FONT_WEIGHT_MEDIUM");l.italics&&(w.italic=
!0);l.strikethrough&&(w.strikethrough="LINE_STYLE_SINGLE");l.underline&&(w.underline="LINE_STYLE_SINGLE");l.textColor!=null&&l.textColor!==0?document.documentElement.hasAttribute("dark")?w.fontColor=l.darkModeTextColor||l.textColor:w.fontColor=l.textColor:l.deemphasize&&(document.documentElement.hasAttribute("dark")?w.fontColor=parseInt("ff"+c0q("#aaa").substring(1),16):w.fontColor=parseInt("ff"+c0q("#606060").substring(1),16));q.call(K,w)}l.navigationEndpoint&&(K=h,q=K.push,w={startIndex:u,length:F,
onTap:{innertubeCommand:l.navigationEndpoint}},l.loggingDirectives&&_.jQ(w,XjB,l.loggingDirectives),q.call(K,w));u+=F}}R.content=O.join("");R.styleRuns=c.length?c:void 0;R.commandRuns=h.length?h:void 0;return R};
ZAn=function(f){if(f==null||!f.runs)return!0;f=_.Z(f.runs);for(var R=f.next();!R.done;R=f.next())if(R=R.value,R.bracket||R.errorUnderline||R.deemphasize||_.t(R,J4)||_.t(R,hY0))return!1;return!0};
lf5=function(f,R){return function(u){var O=R.unit;if(O!==u)throw Error("ch`"+f+"`"+O+"`"+u);return R}};
zW=function(f){if(!((f==null?0:f.value)&&(f==null?0:f.unit)))return"";switch(f.unit){case "DIMENSION_UNIT_FRACTION":var R="%";break;default:R="px"}f=f.value;R==="%"&&(f*=100);return""+f+R};
ksX=function(f){try{return f()}catch(R){_.Ih(R)}};
_.H7=function(f){var R=_.t(f,_.TW);if(R)return R;if((R=_.t(f,Kkn))&&R.commands)return qBn(R.commands);if((R=_.t(f,A02))&&R.commands)return qBn(R.commands);if((f=_.t(f,afh))&&f.identifier&&f.command&&(Fk2||(Fk2=[]),!Fk2.includes(f.identifier)))return Fk2.push(f.identifier),_.t(f.command,_.TW)};
qBn=function(f){if(f.length!==0){var R=[];f=_.Z(f);for(var u=f.next();!u.done;u=f.next())(u=_.H7(u.value))&&R.push(u);return{commandExecutorCommand:{commands:R}}}};
_.MO=function(f){var R=f.defaultTarget,u=f.elementConfig,O=f.elementsCommand,c=f.skipOnClick,h=f.forceNewState,l=f.additionalCommandArgs,K=f.innertubeCommand||_.H7(O);if(K){f={};var q=wjl(K);O=q.navigatingCommand;q=q.href;O&&q?(f.href$=q,mde(f,O,q,R),_.E("web_atagconfig_pointerdown")&&QOB(f,O),h&&(f["force-new-state$"]=!0)):(f.role$="button",f.href$="javascript:void(0);");_.t(K,Wkh)&&(f["aria-haspopup$"]=!0);c||(f.onclick=function(F){if(EK7(F)){var w=Object.assign({},{form:{element:F.target,event:F}},
l);F.preventDefault();_.IF(K,w)}});
return Object.assign({},u,f)}};
tml=function(f){if(f.length){if(f.length===1)return f[0];var R={};_.jQ(R,_.kE,{commands:f});return R}};
P7=function(f){return f&&f.href$!=="javascript:void(0);"};
wjl=function(f){var R,u=((R=_.t(f,_.kE))==null?void 0:R.commands)||[f];f=_.Z(u);for(R=f.next();!R.done;R=f.next()){R=R.value;var O=void 0,c=void 0;u=(c=_.t((O=R)==null?void 0:O.commandMetadata,_.vc))==null?void 0:c.url;_.E("web_remove_web_navigation_endpoint_data")||(O=void 0,u=u||((O=_.t(R,Cbh))==null?void 0:O.url));if(u&&u!=="/service_ajax"){if(O=mo(u,y0n))return f=_.F3(O),{navigatingCommand:R,href:f};_.Ih(new _.ts("AttributedString URL could not be sanitized",u))}}return{}};
EK7=function(f){return f.button!==void 0?f.button===0&&!(f.shiftKey||f.altKey||f.metaKey||f.ctrlKey):!(f.shiftKey||f.altKey||f.metaKey||f.ctrlKey)};
mde=function(f,R,u,O){u=!nQ(u);var c,h,l;if((c=_.t(R,_.wY))!=null&&c.nofollow||(h=_.t(R,_.$7))!=null&&h.nofollow||(l=_.t(R,_.oh))!=null&&l.nofollow||u)f.rel$="nofollow";var K;R=((K=_.t(R,_.oh))==null?void 0:K.target)==="TARGET_NEW_WINDOW"?"_blank":O===void 0?"":O;f.target$=R};
QOB=function(f,R){R.clickTrackingParams&&(f.params={itct:R.clickTrackingParams});f.onpointerdown=function(u){ddP(u)};
f._data=R};
NiP=function(f){(f.loggingUrls||[]).forEach(function(R){SI(R.baseUrl,R.attributionSrcMode)})};
Lk7=function(f){f.currentTarget._data&&NiP(f.currentTarget._data)};
ddP=function(f){var R=f.currentTarget;f=ksX(function(){return R.href});
var u=R.params;f&&_.VP(f,u||{},8,!0)};
bA7=function(f,R){if(R=_.t(R,_.oh))(R==null?void 0:R.target)==="TARGET_NEW_WINDOW"&&(f.target="_blank"),R.nofollow&&(f.rel="nofollow")};
pj0=function(f){f=_.t(f==null?void 0:f.commandMetadata,_.vc);return(f==null?0:f.url)?f.url:null};
_.Ux=function(f,R){(f=_.H7(f))&&_.IF(f,R)};
_.IF=function(f,R){bTe(function(u){R?u.resolveCommand(f,R):u.resolveCommand(f)})};
zYn=function(f,R){var u=["yt-core-attributed-string__link"];R!=null&&R.noLinkColor||((R==null?0:R.isOverlay)?u.push("yt-core-attributed-string__link--overlay-call-to-action-color"):u.push("yt-core-attributed-string__link--call-to-action-color"),(R==null?0:R.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color"));u={className:u.join(" "),tabindex$:"0"};var O=f.onTap||f.onLongPress;if(!O)return u;var c=jOn(f);c&&(u["aria-label$"]=c);R=_.MO({elementsCommand:O,elementConfig:u,skipOnClick:!(R==
null||!R.skipOnClick),forceNewState:!0});f.onLongPress&&(O=new DdP(function(){var h=_.H7(f.onLongPress);h&&_.vh().resolve(_.rv).resolveCommand(h)}),R&&J07(O,R));
return R||u};
jOn=function(f){var R,u;return(R=f.onTapOptions)==null?void 0:(u=R.accessibilityInfo)==null?void 0:u.accessibilityLabel};
Ti5=function(f){var R=f;f<=16777215&&(R+=parseInt("ff000000",16));return _.ML(R)};
HAh=function(f){var R=f.isDarkTheme;var u=f.extension;f=f.runColor;var O=void 0;if(u=u==null?void 0:u.colorMap){R=R?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";u=_.Z(u);for(var c=u.next();!c.done;c=u.next())if(c=c.value,R===c.key){O=c.value;break}}O==null&&f&&(O=f);if(O)return Ti5(O)};
eQ=function(f){var R=f.config;var u=f.image;var O=f.imageConfig;var c=f.imageWrapperConfig;var h=f.run;var l=f.tag;var K=f.textLength;var q=f.startIndex===void 0?0:f.startIndex;f=f.length;q===void 0&&(q=0);h={run:h,startIndex:q,endIndex:f!==void 0?q+f:K,tag:l};u&&(h.image=u);O&&(h.imageConfig=O);c&&(h.imageWrapperConfig=c);R&&(h.config=R);return h};
Mm7=function(f,R){var u=[];u.push("yt-core-attributed-string");(R==null?0:R.className)&&u.push(R==null?void 0:R.className);(R==null?0:R.ellipsisTruncate)?u.push("yt-core-attributed-string--ellipsis-truncate"):(R==null?0:R.noWrap)?u.push("yt-core-attributed-string--white-space-no-wrap"):(R==null?0:R.noPreWrap)||u.push("yt-core-attributed-string--white-space-pre-wrap");(R==null?0:R.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color");f.alignment&&u.push(Ift(f.alignment));f.lineBreakMode&&
u.push("yt-core-attributed-string--word-wrapping");return u.join(" ")};
Pbt=function(f){if(f.weight)return f.weight;switch(f.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Ud7=function(f){switch(f){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"}};
Ift=function(f){switch(f){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"}};
Gst=function(f,R,u){var O=R;f.content&&u&&(u=f.content.indexOf("\n"),u!==-1&&(O=Math.min(R,u)));if(!f.content||f.content.length<=O)R=f;else if(f.attachmentRuns||f.commandRuns||f.decorationRuns||f.styleRuns||f.paragraphStyleRuns){R=GW(f.content,O);u=O;var c=f.attachmentRuns;if(c){var h=[];c=_.Z(c);for(var l=c.next();!l.done;l=c.next())l=Object.assign({},l.value),l.startIndex===void 0||l.startIndex>=u||(l.length||(l.length=0),l.length+l.startIndex>u&&(l.length=u-l.startIndex),h.push(l));u=h}else u=
void 0;h=eYX(O,f.commandRuns);c=O;var K=f.decorationRuns;if(K){l=[];K=_.Z(K);for(var q=K.next();!q.done;q=K.next()){q=q.value;var F=_.t(q.textDecorator,B7);if(F&&F.startIndex!==void 0&&!(F.startIndex>=c)){q=Object.assign({},q,{textDecorator:{highlightTextDecorator:Object.assign({},F)}});F=_.t(q.textDecorator,B7);if(!F.length||F.length+F.startIndex>c)F.length=c-F.startIndex;l.push(q)}}c=l}else c=void 0;l=eYX(O,f.styleRuns);if(K=f.paragraphStyleRuns)for(f=[],K=_.Z(K),q=K.next();!q.done;q=K.next()){var w=
q.value;q=Object.assign({},w);if(!(q.startIndex===void 0||q.startIndex>=O)){if(!q.length||q.length+q.startIndex>O)q.length=O-q.startIndex;F=[];var m=void 0,W=void 0;if((m=w)==null?0:(W=m.listGroup)==null?0:W.listItems)for(w=_.Z(w.listGroup.listItems),m=w.next();!m.done;m=w.next())if(m=Object.assign({},m.value),!(m.startIndex===void 0||m.startIndex>=O)){if(!m.length||m.length+m.startIndex>O)m.length=O-m.startIndex;F.push(m)}F.length>0&&(q.listGroup||(q.listGroup={}),q.listGroup=Object.assign({},q.listGroup,
{listItems:F}));f.push(q)}}else f=void 0;R={content:R,attachmentRuns:u,commandRuns:h,decorationRuns:c,styleRuns:l,paragraphStyleRuns:f}}else R=Object.assign({},f,{content:GW(f.content,O)});return R};
eYX=function(f,R){if(R){var u=[];R=_.Z(R);for(var O=R.next();!O.done;O=R.next())if(O=Object.assign({},O.value),!(O.startIndex===void 0||O.startIndex>=f)){if(!O.length||O.length+O.startIndex>f)O.length=f-O.startIndex;u.push(O)}return u}};
GW=function(f,R){var u=R,O;if(O=u>0)O=f.charCodeAt(u-1),O=O>=55296&&O<=56319;O&&(u=f.charCodeAt(u),O=u>=56320&&u<=57343);O&&--R;return f.substring(0,R)};
SB5=function(f,R,u){u=u===void 0?Bi7:u;if(f){var O=_.vh().resolve(rJ);O||_.E("mweb_no_observer_killswitch")?HF0(f,{data:R,observer:O,visibilityCallback:u,hideOption:oKX,showOption:xdn,layer:f.layer}):_.Ih(new _.ts("Warning: monitorVisibility called with null observer",f.tagName,R==null?void 0:R.loggingDirectives,R==null?void 0:R.trackingParams))}else _.Ih(new _.ts("Warning: monitorVisibility called with null element",R==null?void 0:R.loggingDirectives,R==null?void 0:R.trackingParams,R==null?void 0:
R.rendererContext))};
vKq=function(f,R){var u=[],O=f.content.length,c,h=(c=_.vh().resolve(_.Y8(_.oF)))==null?void 0:c();if(f.paragraphStyleRuns){c=_.Z(f.paragraphStyleRuns);for(var l=c.next();!l.done;l=c.next()){var K=u.push,q=K.apply;var F=void 0;l=l.value;if((F=l.listGroup)!=null&&F.listItems){F=[];b:switch(l.listGroup.listType){case "LIST_TYPE_BULLET":var w="ul";break b;default:w="span"}F.push(eQ({run:l,textLength:O,tag:w,config:{className:"yt-core-attributed-string__list-group"},startIndex:l.startIndex,length:l.length}));
w=_.Z(l.listGroup.listItems);for(var m=w.next();!m.done;m=w.next()){m=m.value;b:switch(l.listGroup.listType){case "LIST_TYPE_BULLET":var W="li";break b;default:W="span"}F.push(eQ({run:l,textLength:O,tag:W,startIndex:m.startIndex,length:m.length}))}l=F}else l=[];q.call(K,u,_.yq(l))}}if(f.styleRuns&&(R==null||!R.noStyleRuns))for(c=_.Z(f.styleRuns),K=c.next();!K.done;K=c.next()){K=K.value;q=HAh({extension:_.t(K.styleRunExtensions,$d5),isDarkTheme:h===void 0?!1:h,runColor:K.fontColor});F=[];q&&F.push("yt-core-attributed-string--link-inherit-color");
K.italic&&F.push("yt-core-attributed-string--italicized");K.underline&&K.strikethrough?F.push("yt-core-attributed-string--underline-strikethrough",Ud7(K.underline)):K.underline?F.push("yt-core-attributed-string--underlined",Ud7(K.underline)):K.strikethrough&&F.push("yt-core-attributed-string--strikethrough",Ud7(K.strikethrough));if(K.baselineOffset){a:switch(K.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":l="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":l=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:l="yt-core-attributed-string--baseline-offset-unknown"}F.push(l)}l=F.join(" ");F=K;w={};if(F.weight||F.weightLabel)w.fontWeight=Pbt(F).toString();q&&(w.color=q);u.push(eQ({run:K,textLength:O,tag:"span",config:{className:l,style:w},startIndex:K.startIndex,length:K.length}))}if(f.decorationRuns)for(c=_.Z(f.decorationRuns),K=c.next();!K.done;K=c.next())K=K.value,q={},K.textDecorator&&(w=K.textDecorator,l=h===void 0?!1:h,m=[],F=
_.t(w,B7),w=_.t(w,gKh),F?(w=m,m=w.concat,W=[],(l=HAh({extension:_.t(F.highlightTextDecoratorExtensions,sOl),isDarkTheme:l,runColor:F.backgroundColor}))&&W.push("background-color: "+l+";"),F.backgroundCornerRadius!==void 0&&W.push("border-radius: "+F.backgroundCornerRadius+"px;"),F.leftPadding!==void 0&&W.push("padding-left: "+F.leftPadding+"px;"),F.rightPadding!==void 0&&W.push("padding-right: "+F.rightPadding+"px;"),F.topPadding!==void 0&&W.push("padding-top: "+F.topPadding+"px;"),F.bottomPadding!==
void 0&&W.push("padding-bottom: "+F.bottomPadding+"px;"),m=m.call(w,W)):w&&(F=m,m=F.concat,l=l?"#2ba640":"#107516",l=w.color?Ti5(w.color):l,l=["padding: 2px;","border-top: solid "+l+" 2px;","border-bottom: solid "+l+" 2px;","background: linear-gradient(135deg, "+l+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+l+" 3px, rgba(0, 0, 0, 0) 3px);"],m=m.call(F,l)),l=m.join(" "),q.style$=l,l=K.textDecorator,F=[],w=_.t(l,gKh),_.t(l,B7)?F.push("yt-core-attributed-string--highlight-text-decorator"):
w&&F.push("yt-core-attributed-string--bracket-text-decorator"),l=F.join(" "),q.className=l,q.dir="auto"),l=_.t(K.textDecorator,B7),F=_.t(K.textDecorator,gKh),w=_.t(K.textDecorator,B7),m=_.t(K.textDecorator,gKh),u.push(eQ({run:K,textLength:O,tag:"span",config:q,startIndex:(l==null?void 0:l.startIndex)||(F==null?void 0:F.startIndex)||0,length:(w==null?void 0:w.length)||(m==null?void 0:m.length)||0}));if(f.commandRuns&&(R==null||!R.noEndpoints))for(h=_.Z(f.commandRuns),c=h.next();!c.done;c=h.next())c=
c.value,K=zYn(c,R),u.push(eQ({run:c,textLength:O,tag:"a",config:K,startIndex:c.startIndex,length:c.length}));if(f.attachmentRuns)for(f=_.Z(f.attachmentRuns),h=f.next();!h.done;h=f.next()){h=h.value;q=K=void 0;c={className:"yt-core-attributed-string--inline-block-mod"};if((q=h.element)==null?0:q.properties){q=(K=h.element)==null?void 0:K.properties;K=[];q=_.t(q,nKX);if(q==null?0:q.margin)q=q.margin,q.left&&K.push("margin-left: "+zW(q.left)+";"),q.right&&K.push("margin-right: "+zW(q.right)+";"),q.top&&
K.push("margin-top: "+zW(q.top)+";"),q.bottom&&K.push("margin-bottom: "+zW(q.bottom)+";");K=K.length!==0?K.join(" "):void 0;c.style$=K}l=void 0;K={alt:"",preserveHeight:!0,preserveWidth:!0};q=["yt-core-attributed-string__image-element"];if(h.alignment){a:switch(h.alignment){case "ALIGNMENT_BASELINE":F="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":F="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:F=
"yt-core-attributed-string__image-element--image-alignment-bottom"}q.push(F)}if((l=h.element)==null?0:l.properties)l=[],F=_.t(h.element.properties,nKX),(F==null?0:F.height)&&l.push("height: "+zW(F.height)+";"),(F==null?0:F.width)&&l.push("width: "+zW(F.width)+";"),l=l.length!==0?l.join(" "):void 0,K.style$=l,F=void 0,l=((F=_.t(h.element.properties,Vmh))==null?void 0:F.label)||"",K.alt=l;K.className=q.join(" ");q=void 0;w=F=void 0;l=((w=h.element)==null?0:w.type)?(F=_.t(h.element.type,YBX))==null?
void 0:F.image:void 0;u.push(eQ({run:h,textLength:O,tag:"img",image:l,imageConfig:K,imageWrapperConfig:c,startIndex:h.startIndex,length:(q=h.length)!=null?q:0}))}if(R==null?0:R.headerRuns)for(R=_.Z(R.headerRuns),f=R.next();!f.done;f=R.next())if(f=f.value,f.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(f.headerMapping)){a:{switch(f.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":h=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":h="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":h="yt-core-attributed-string--heading-3";break a}h=void 0}u.push(eQ({run:f,textLength:O,tag:"span",config:h?{className:h}:void 0,startIndex:f.startIndex,length:f.length}))}return u};
_.xr=function(f){return(f==null?void 0:f.content)!==void 0};
iAe=function(f){return _.xr(f)?f:_.Dz(f)};
r05=function(f){return f.image!==void 0&&f.imageConfig!==void 0};
fxn=function(f,R){if(R==null?0:R.userInput)for(f=_.Z(f),R=f.next();!R.done;R=f.next())if(R=R.value,R.tag!=="a"&&R.tag!=="li"){var u=void 0;(u=R).config||(u.config={});R.config.dir=R.tag==="ul"?_.vh().resolve(_.SQ):"auto"}};
R_l=function(f){return function(R){var u=f.run;(u.onTap!==void 0||u.onLongPress!==void 0)&&_.t(u,XjB)&&SB5(R,{loggingDirectives:_.t(u,XjB)})}};
uo0=function(f){return function(R){for(var u in f)(v5[u]||v5[MK["default"]])(R,u,f[u])}};
h_B=function(f,R){OM2(R);var u={data:null,start:0,end:f.length,parts:[]};R=_.Z(R);for(var O=R.next();!O.done;O=R.next())O=O.value,cvn(u,O.startIndex,O.endIndex,O);X3P(f,u);return u};
cvn=function(f,R,u,O){for(var c=_.Z(f.parts),h=c.next();!h.done;h=c.next()){h=h.value;if(typeof h==="string")throw Error("eh");if(h.start<=R&&u<=h.end){cvn(h,R,u,O);return}}f.parts.push({data:O,parts:[],start:R,end:u})};
X3P=function(f,R){for(var u=R.parts.length;u>=0;u--){var O=R.parts[u],c=R.parts[u-1],h=u===R.parts.length?R.end:O.start;c=u===0?R.start:c.end;h!==c&&R.parts.splice(u,0,f.slice(c,h));O&&X3P(f,O)}};
OM2=function(f){f.sort(function(R,u){if(R.startIndex<u.startIndex)return-1;if(u.startIndex<R.startIndex)return 1;R=R.endIndex-R.startIndex;u=u.endIndex-u.startIndex;return R>u?-1:u>R?1:0})};
_.ZM2=function(f){var R=f.thumbnails;if(R){f={sources:[]};R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O={};O.url=u.url;O.width=u.width;O.height=u.height;f.sources.push(O)}return f}};
lx2=function(f,R,u,O){if(!R)return f.length>=1?f[f.length-1]:null;if(O)for(var c=_.Z(f),h=c.next();!h.done;h=c.next()){h=h.value;var l=void 0,K=(l=h.url)==null?void 0:l.indexOf(O);if(K!==void 0&&K>=0)return h}O=_.Z(f);for(c=O.next();!c.done;c=O.next())if(c=c.value,c.width&&c.height&&(u&&c.width>=R||!u&&c.height>=R))return c;for(R=f.length-1;R>=0;R--)if(u&&f[R].width||!u&&f[R].height)return f[R];return f[0]};
_.kke=function(f){var R;return(f=(R=f.sources)==null?void 0:R[0])?f.width/f.height:0};
_.K3t=function(f){if(f.sources){f=_.Z(f.sources);for(var R=f.next();!R.done;R=f.next()){R=R.value;var u=void 0;if((u=R.clientResource)==null?0:u.imageName)return R}}};
qAh=function(f){var R;if((R=f.clientResource)!=null&&R.imageColor)return _.ML(f.clientResource.imageColor)};
_.ax2=function(f,R,u,O,c,h,l){if(!R||R.length===0||R[0].clientResource)return null;if(u&&R[0].url)return R[0].url;O===void 0&&(O=!0);if(O){var K;f=Av2*(c||(f==null?void 0:(K=f.getBoundingClientRect())==null?void 0:K.width)||0)}else{var q;f=Av2*(h||(f==null?void 0:(q=f.getBoundingClientRect())==null?void 0:q.height)||0)}R=lx2(R,f,O,l);return(R==null?0:R.url)?R.url:(R==null?0:R.imageData)?R.imageData:null};
F3q=function(f,R,u){u=u?[u]:[];f.opacity&&u.push("opacity: "+f.opacity+";");R&&f.placeholderColor?(f=_.ML(f.placeholderColor),u.push("background-color: "+f+";")):u.push("background-color: transparent;");return u.join(" ")};
w3X=function(f,R,u,O,c){var h=["yt-core-image"];R&&h.push(R);u||h.push("yt-core-image--fill-parent-height");O||h.push("yt-core-image--fill-parent-width");switch(f.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":h.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":h.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":h.push("yt-core-image--content-mode-center");break;default:h.push("yt-core-image--content-mode-scale-to-fill")}f.flipForRtlLayout&&
h.push("yt-core-image--flip-rtl");switch(c){case "TOP_START":var l;h.push(((l=document.body)==null?void 0:l.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return h.join(" ")};
QPP=function(f){var R;if(f==null?0:(R=f.clientResource)==null?0:R.imageName){var u;f=(u=f.clientResource)==null?void 0:u.imageName;a:{switch(f){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||mr2.get(f)||f}};
tLB=function(f){return _.E("mweb_wiz_skip_render")?W30(f):Een(f)};
W30=function(f){return function(R){var u=HBe("wink-root");gP();I95();VQ0(u,_.a(f,R))}};
Een=function(f){var R=R===void 0?!1:R;return function(u){if(!R||!_.E("mweb_skip_keto_to_c3_if_no_data")||u.data!==void 0){var O=ut(!1);try{var c=u.children;_.E("mweb_render_outside_patch_killswitch")||U$?c?YN(_.a(f,u,c)):YN(_.a(f,u)):_.Ih(new _.ts("ketoToC3 called outside of a patch",{tagName:f.TAG_NAME}))}finally{ut(O)}}}};
Cpl=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
drl=function(f,R){f.onViewportEntered=R;yvP.observe(f)};
NVD=function(){var f={rootMargin:"10%",threshold:.01};_.E("mweb_enable_set_io_root_to_null_safari")?f.root=null:_.E("mweb_enable_set_io_root_to_body_safari")&&(f.root=document.body);return new IntersectionObserver(function(R,u){R.filter(function(O){return O.intersectionRect.height>0}).forEach(function(O){O=O.target;
if(!_.E("mweb_enable_only_update_image_when_connected")||O.isConnected!==!1){var c;(c=O.onViewportEntered)==null||c.call(O);u.unobserve(O)}})},f)};
L3B=function(f,R,u,O,c){function h(){if(O){var K=O.loadedClass,q=O.notifyOnUnloaded;K&&_.$r(f,K);q&&f.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function l(){var K=u(R,f);K&&f.getAttribute("src")!==K&&(_.E("mweb_enable_only_update_image_when_connected")&&f.isConnected===!1||K===f.src||(f.src=K),h())}
c=c===void 0?!0:c;f.removeAttribute("src");h();R&&(c?drl(f,l):l())};
bM7=function(f,R,u){if(!R)return!1;R=u(R,f);u=f.getAttribute("src");return R&&R===u&&f.complete};
p3l=function(f,R){for(var u in R)u==="className"?f.className=R[u]:(v5[u]||v5[MK.default])(f,u,R[u])};
jP7=function(f,R,u,O){tLB(_.gR)({contentMode:R.contentMode,loadedClass:R.loadedClass,isPreloaded:R.isPreloaded,notifyOnLoaded:R.notifyOnLoaded,notifyOnUnloaded:R.notifyOnUnloaded,preferredThumbnail:R.preferredThumbnail,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,objectPosition:R.objectPosition,targetWidth:R.targetWidth,targetHeight:R.targetHeight,shouldShowPlaceholder:R.shouldShowPlaceholder,useWidth:R.useWidth,alt:R.alt,className:R.className,onerror:R.onerror,onload:R.onload,style$:R.style$,
color:R.color,width:R.width,height:R.height,"aria-hidden$":R["aria-hidden$"],draggable:R.draggable,"data-disabled$":R["data-disabled$"],data:f,callback:u,renderLazy:O===void 0?!0:O,hideOn404:!1})};
Jv0=function(f,R,u){u=u===void 0?!1:u;var O=f.sources!==void 0?f:_.ZM2(f);if(O){var c=R.onload;R.onload=function(q){var F=q.target;u&&F.naturalWidth===120||_.sx(F,"yt-core-image--loaded");R.notifyOnLoaded&&F.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));c==null||c(q)};
R.targetWidth&&R.preserveWidth&&(R.width=R.targetWidth);R.targetHeight&&R.preserveHeight&&(R.height=R.targetHeight);var h=_.K3t(O),l=h&&QPP(h);if(l)return(f=qAh(h))&&(R.color=f),{type:"icon",iconName:l,config:Object.assign({},R,R.alt?{}:{"aria-hidden$":"true"},{"aria-label$":R.alt,role:"img"})};if(f.sources===void 0){R.alt=f.accessibility&&f.accessibility.accessibilityData&&f.accessibility.accessibilityData.label||R.alt;R.style$=F3q(f,R.shouldShowPlaceholder,R.style$);var K;R.isPreloaded=!((K=_.t(f,
Dr0))==null||!K.isPreloaded)}R.contentMode&&!O.contentMode&&(O.contentMode=R.contentMode);R.className=w3X(O,R.className,R.preserveHeight,R.preserveWidth,R.objectPosition);R.loadedClass="yt-core-image--loaded";return{type:"image",image:O,config:R}}};
_.nU=function(){var f=_.yK.apply(0,arguments);return _.n0(function(R){var u=f.map(function(O){return O(R)});
return function(){return void u.forEach(function(O){return void(O==null?void 0:O())})}})};
V0=function(f,R){var u=R==null?void 0:R.initial;return _.Qt(function(){_.Jy(!0);return u=f(u)},{equals:R==null?void 0:R.isEqual},"rSlKsc")};
z_h=function(f,R){if(f===R)return!0;if(f===void 0||R===void 0)return!1;var u,O,c,h,l,K,q,F;return f.content===R.content&&((u=f.styleRuns)==null?void 0:u.length)===((O=R.styleRuns)==null?void 0:O.length)&&((c=f.commandRuns)==null?void 0:c.length)===((h=R.commandRuns)==null?void 0:h.length)&&((l=f.attachmentRuns)==null?void 0:l.length)===((K=R.attachmentRuns)==null?void 0:K.length)&&((q=f.decorationRuns)==null?void 0:q.length)===((F=R.decorationRuns)==null?void 0:F.length)};
Ix5=function(f,R){if(f){var u=iAe(f);if(u!=null&&u.content)if(_.E("attr_string_reactive"))tLB(TVn)({text:f,config:R});else{var O=!(R==null||!R.ariaLabel)||!(u.commandRuns&&u.commandRuns.length!==0||u.paragraphStyleRuns&&u.paragraphStyleRuns.length!==0);f=O?R==null?void 0:R.ariaLabel:null;O=O?"text":null;pU("span",{className:Mm7(u,R),dir$:(R==null?0:R.userInput)?"auto":void 0,"aria-label$":f,role$:O},function(){if(u.styleRuns||u.commandRuns||u.attachmentRuns||u.decorationRuns){var c=vKq(u,R);fxn(c,
R);c=h_B(u.content,c);c=_.Z(c.parts);for(var h=c.next();!h.done;h=c.next())HMh(h.value)}else i4(u.content)})}}};
HMh=function(f){typeof f==="string"?i4(f):r05(f.data)?pU("span",f.data.imageWrapperConfig,function(){jP7(f.data.image,f.data.imageConfig)}):pU(f.data.tag,f.data.config,function(R){R_l(f.data)(R);
R=_.Z(f.parts);for(var u=R.next();!u.done;u=R.next())HMh(u.value)})};
PpD=function(f){return f.parts.map(MLq)};
MLq=function(f){if(typeof f==="string")return f;f=r05(f.data)?_.a("span",{el:_.nU(uo0(f.data.imageWrapperConfig))},_.a(_.gR,Object.assign({},{data:f.data.image},f.data.imageConfig))):_.a(f.data.tag,{el:_.nU(R_l(f.data),uo0(f.data.config))},f.parts.map(MLq));return aS(f)};
Ure=function(f,R){return f===R?!0:f===void 0||R===void 0?!1:f.noStyleRuns===R.noStyleRuns&&f.noLinkColor===R.noLinkColor&&f.noEndpoints===R.noEndpoints&&f.headerRuns===R.headerRuns&&f.isOverlay===R.isOverlay&&f.linkInheritColor===R.linkInheritColor&&f.userInput===R.userInput};
e_e=function(f){return function(){var R,u,O,c,h,l,K,q,F,w,m,W,C,d;return{ariaLabel:(R=f.ariaLabel)==null?void 0:R.call(f),className:(u=f.className)==null?void 0:u.call(f),ellipsisTruncate:(O=f.ellipsisTruncate)==null?void 0:O.call(f),isOverlay:(c=f.isOverlay)==null?void 0:c.call(f),linkInheritColor:(h=f.linkInheritColor)==null?void 0:h.call(f),noEndpoints:(l=f.noEndpoints)==null?void 0:l.call(f),noStyleRuns:(K=f.noStyleRuns)==null?void 0:K.call(f),noLinkColor:(q=f.noLinkColor)==null?void 0:q.call(f),
noPreWrap:(F=f.noPreWrap)==null?void 0:F.call(f),noWrap:(w=f.noWrap)==null?void 0:w.call(f),skipOnClick:(m=f.skipOnClick)==null?void 0:m.call(f),stopPropagation:(W=f.stopPropagation)==null?void 0:W.call(f),userInput:(C=f.userInput)==null?void 0:C.call(f),headerRuns:(d=f.headerRuns)==null?void 0:d.call(f)}}};
GkX=function(f){return f.value===""||f.value==="true"?!0:f.value==="false"?!1:isNaN(Number(f.value))?f.value:Number(f.value)};
Yr=function(f,R){f=new BVt(f,R);_.TL(f);throw f;};
oeh=function(f,R,u){var O=YZD(f);f._numRenders=0;try{var c=wMP(function(){return _.a(R,Object.assign({},u))})}catch(l){var h=function(K){K.args||(K.args=[]);
K.args.push("Error in web component wrapper");K.args.push(f.tagName.toLowerCase());return K};
_.H5(l instanceof Error?h(l):new BVt("Wiz rendering error",f.tagName.toLowerCase()));throw l;}finally{YZD(O)}return c};
_.ii=function(f,R,u){function O(w){var m={};w=_.Z(w);for(var W=w.next();!W.done;W=w.next()){W=W.value;var C=void 0,d=void 0,p=void 0,J=_.wu((p=(d=(C=W).getAttribute)==null?void 0:d.call(C,"slot"))!=null?p:"children");if(C=m[J])C.push(W);else if(J in h||J==="children")m[J]=[W]}w=_.Z(Object.keys(m));J=w.next();for(W={};!J.done;W={content$jscomp$55:void 0},J=w.next())J=J.value,J!=="children"&&(W.content$jscomp$55=m[J],m[J]=function(M){return function(){return M.content$jscomp$55}}(W));
return m}
u=u===void 0?{}:u;f.componentType!==dP||Yr("Components must be marked reactive to be used from web component wrapper.",R);RF.has(R)&&Yr("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",R);var c,h=(c=u.props)!=null?c:{};ui.add(R);var l=xrh();c=function(){var w=l.apply(this,arguments)||this;w.rawProps={};w.queuingRender=!1;w.dispose=function(){};
w.isWebComponentWrapper=!0;w.isReparenting=!1;w.hasRendered=!1;return w};
_.y(c,l);c.prototype.render=function(){this.hasRendered=!0;for(var w=_.Z([].concat(_.yq(this.attributes))),m=w.next();!m.done;m=w.next())m=m.value,m.name!=="slot"&&this.removeAttribute(m.name);w=Object.assign({},this.componentProps,this.slotProps);m=_.Z(oeh(this,f,w));w=m.next().value;m=m.next().value;!(w[0]instanceof Element)||w.length>1?Yr("Wrapped Wiz components must return a single root element.",R):(w=w[0].tagName.toLowerCase(),w!==R&&Yr("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(w+" !== '"+R),R),this.dispose=m)};
c.prototype.setUpProps=function(){for(var w=this.rawProps,m=this.attributes,W=_.Z(Object.keys(h)),C=W.next();!C.done;C=W.next()){C=C.value;var d=void 0;((d=this)==null?0:d[C])&&this[C]!==SAD&&w[C]===void 0&&(w[C]=this[C],(d=Object.getOwnPropertyDescriptor(this.constructor.prototype,C))&&Object.defineProperty(this,C,d))}W=_.Z(m);for(C=W.next();!C.done;C=W.next()){d=C.value;C=_.wu(d.name);var p=C==="class"&&!m.getNamedItem("class-name");if(C in h||p)d=GkX(d),C!=="class"||w.className?w[C]=d:w.className=
d}m={};for(var J in h)h[J]!==_.v7&&h[J]!==$rl&&(w[J]instanceof Function&&Yr("Function props must be configured as STATIC, not SIGNAL.",R),C=_.Z(_.qK(w[J],void 0,"Ri8MSe")),W=C.next().value,C=C.next().value,m[J]=C,w[J]=W);w=_.Z([w,m]);this.componentProps=w.next().value;this.setters=w.next().value;this.slotProps=O(this.childNodes)};
c.prototype.connectedCallback=function(){r_===R&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in h&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
c.prototype.disconnectedCallback=function(){if(!this._isInert){var w;a:{if(_.gen)for(w=this;w;){if(_.sP5.has(w)){w=!0;break a}w=w.parentElement}w=!1}if(w)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){w=_.Z([].concat(_.yq(this.attributes)));for(var m=w.next();!m.done;m=w.next())m=m.value,m.name!=="slot"&&this.removeAttribute(m.name)}this.innerText="";xCB(this)}}};
c.prototype._setPendingPropertyOrPath=function(){};
c.prototype.notifyPath=function(){};
_.Vy.Object.defineProperties(c.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var K=_.Z(Object.keys(h)),q=K.next(),F={};!q.done;F={prop$jscomp$104:void 0},q=K.next())F.prop$jscomp$104=q.value,q=void 0,((q=u.legacyPolymer)==null?0:q.forwardHostProps)&&ey2.has(F.prop$jscomp$104)||Object.defineProperty(c.prototype,F.prop$jscomp$104,{set:function(w){return function(m){var W=this;this._isInert||(this.setters?WQ(function(){var C,d;return void((d=(C=W.setters)[w.prop$jscomp$104])==null?void 0:d.call(C,m))}):(this.rawProps[w.prop$jscomp$104]=m,this.queuingRender&&w.prop$jscomp$104===
"data"&&m!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(F),
get:neP.has(F.prop$jscomp$104)?void 0:function(){return SAD}});
customElements.define(R,c)};
_.VLl=function(f,R){return(f=_.rR(f,R))?_.F3(_.EO(f)):null};
_.fL=function(f){if(f=_.rR(f,Number.MAX_VALUE,void 0,"width"))return _.EO(f)};
_.rR=function(f,R,u,O){O=O===void 0?"width":O;if(!f||!f.length)return null;if(_.E("kevlar_tuner_should_always_use_device_pixel_ratio")){var c=window.devicePixelRatio;_.E("kevlar_tuner_should_clamp_device_pixel_ratio")?c=Math.min(c,_.RV("kevlar_tuner_clamp_device_pixel_ratio")):_.E("kevlar_tuner_should_use_thumbnail_factor")&&(c=_.RV("kevlar_tuner_thumbnail_factor"));YAD=c}else YAD||(YAD=window.devicePixelRatio);c=YAD;_.E("kevlar_tuner_should_always_use_device_pixel_ratio")?R*=c:c>1&&(R*=c);if(_.E("kevlar_tuner_min_thumbnail_quality"))return f[0].url||
null;c=f.length;if(_.E("kevlar_tuner_max_thumbnail_quality"))return f[c-1].url||null;if(u)for(var h=0;h<c;h++)if(f[h].url.indexOf(u)>=0)return f[h].url||null;for(u=0;u<c;u++)if(f[u][O]>=R)return f[u].url||null;for(R=c-1;R>0;R--)if(f[R][O])return f[R].url||null;return f[0].url||null};
rvn=function(){RX.size?setTimeout(function(){ue(veX)},0):iMB=0};
veX=function(){var f=(0,_.iZ)(),R=null,u=!1;RX.forEach(function(c){c.loaded=!0;c.loadTime=f;c.pendingPaint=!1;var h=fch.get(c);h&&h.resolve(f);R=c;u||!c.ftlEligible&&c.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(u=!0)});
var O;((O=R)==null?0:O.markDirty)&&R.markDirty();RX.clear();iMB=0;u&&RCt(f)};
ubn=function(f){RX.add(f);f.pendingPaint=!0;iMB||(iMB=_.Oz(_.JA,rvn))};
O1n=function(f){f.loaded=!1;f.loadTime=Infinity;var R=fch.get(f);R&&(R.reject(Error("kh")),fch.delete(f));f.pendingPaint&&(RX.delete(f),f.pendingPaint=!1)};
_.cBX=function(f){var R=f.indexOf(":");return R===-1?{originalName:f}:{originalName:f.substring(0,R),datasyncId:f.substring(R+1)}};
_.hCB=function(){return _.k(function(f){if(Xwt!==void 0)return f.return(Xwt);Xwt=new Promise(function(R){var u;return _.k(function(O){switch(O.nextAddress){case 1:return _.cl(O,2),_.A(O,_.cM.open("test-only"),4);case 4:return _.A(O,_.cM.delete("test-only"),5);case 5:_.Bf(O,3);break;case 2:if(u=_.ku(O),u instanceof Error&&u.name==="SecurityError")return R(!1),O.return();case 3:R("caches"in window),_.KG(O)}})});
return f.return(Xwt)})};
kZ2=function(){return _.k(function(f){if(f.nextAddress==1)return _.A(f,_.hCB(),2);if(!f.yieldResult)return f.return(void 0);Z12||(Z12=new lc7);return f.return(Z12)})};
Ke7=function(f){var R,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return _.A(h,kZ2(),2);case 2:R=h.yieldResult;if(!R)throw Error("mh");return _.A(h,R.open("yt-player-local-img"),3);case 3:return u=h.yieldResult,_.A(h,u.match(f),4);case 4:O=h.yieldResult;if(!O)throw Error("nh");return _.A(h,O.blob(),5);case 5:return c=h.yieldResult,h.return(c)}})};
q6B=function(f,R){for(var u in f)if(f.hasOwnProperty(u)&&R[u])return u;return null};
ABq=function(f){return"stamp"+f.replace("-","_")+"_"};
ac7=function(f){var R=f.match(/\[\[([\w\.]+)\]\]/);if(R&&R.length>1)return R[1];_.TL(Error("ph`"+f));return null};
FeB=function(f){return f===void 0?_.Hh("REUSE_COMPONENTS",!1):f||!1};
Qu2=function(f,R,u){u&&(R.is?(wwP.has(R)&&(f=wwP.get(R),u=f.listener,delete R[f.property],u.type==="element"&&R.removeEventListener(u.eventName,u.handler),wwP.delete(R)),mN7(R)):R.__proto__==HTMLElement.prototype&&(R=new _.ts("Rendererstamper removed a non custom element","Stamper: "+f+" element: "+(R&&R.nodeName)),_.Ih(R)))};
WeD=function(f,R,u,O){var c=R.node?R.node:R;_.b(u).parentNode===c&&(R.removeChild(u),Qu2(f,u,O));if(f=Xf.get(u))Xf.delete(u),_.JA.cancelJob(f);u.hidden=!1};
EJl=function(f,R,u,O){if(R&&R.children&&(u=R.children[u]))if(_.Hh("DEFERRED_DETACH"))for(;u&&!Xf.has(u);){var c=f,h=R,l=u,K=O;l.hidden=!0;c=_.dJ(_.JA,WeD.bind(null,c,h,l,K),0);Xf.set(l,c);u=u.nextElementSibling}else for(;(l=R.lastElementChild)&&(R.removeChild(l),Qu2(f,l,O),l!=u););};
tZl=function(f){var R=_.sW();_.bt(function(){for(var u=_.Z(f.slotContent),O=u.next();!O.done;O=u.next())R.value.appendChild(O.value)});
return _.a("__slot-el",{el:R,skip:!0})};
_.hS=function(f,R,u){u=u===void 0?CI0:u;RF.add(R);var O;(O=u).propNames!=null||(O.propNames=[]);var c=new Set(u.propNames),h=xrh();O=function(){var F=h.call(this)||this;F.props={};F.isUpdating=!1;F.hasAttached=!1;F.isInert=!1;F.updateQueued=!1;F.initialClasses=[];Vp7(F,R);return F};
_.y(O,h);O.prototype.forwardKebabCaseProp=function(F,w){F=_.wu(F);if(c.has(F)||F==="children")this.props[F]=w};
O.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var F=_.Z(this.initialClasses),w=F.next();!w.done;w=F.next())(w=w.value)&&this.classList.add(w);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
O.prototype.handleSlottedContent=function(){for(var F=new Map,w=_.Z(this.children),m=w.next();!m.done;m=w.next()){m=m.value;var W=void 0,C=(W=m.getAttribute("slot"))!=null?W:"children";(W=F.get(C))?W.push(m):F.set(C,[m]);if(!m.getAttribute("key")){var d=void 0,p=void 0;m.setAttribute("key",C+"_"+((p=(d=W)==null?void 0:d.length)!=null?p:0))}}F=_.Z(F);for(w=F.next();!w.done;w=F.next())m=_.Z(w.value),w=m.next().value,m=m.next().value,this.forwardKebabCaseProp(w,_.a(tZl,{slotContent:m}))};
O.prototype.connectedCallback=function(){var F=this;if(!Vp7(this,R)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var w=_.Z(this.attributes),m=w.next();!m.done;m=w.next())m=m.value,this.forwardKebabCaseProp(m.name,GkX(m));this.handleSlottedContent();u.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){F.afterFirstPatch()});
this.hasAttached=!0}};
O.prototype.attributeChangedCallback=function(F,w,m){this.isInert||this.isUpdating||this.isConnected||F!=="class"||this.initialClasses.push.apply(this.initialClasses,_.yq(m.split(" ")))};
O.prototype.disconnectedCallback=function(){UBq(this)};
O.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var F,w;VQ0(this,_.a(f,Object.assign({},this.props,{idomKey:(w=(F=this.__incrementalDOMData)==null?void 0:F.key)!=null?w:R})),!0)}catch(W){var m=W instanceof Error?W:new _.ts("Wiz rendering error");m.args||(m.args=[]);m.args.push("Error in deprecated web component wrapper");m.args.push(R.toLowerCase());_.TL(m);throw W;}finally{this.updateQueued=this.isUpdating=!1}}};
O.prototype.enqueueUpdate=function(){var F=this;return _.k(function(w){if(u.synchronous)return F.update(),w.return();if(F.updateQueued)return w.return();F.updateQueued=!0;return w.return(Promise.resolve().then(function(){F.update()}))})};
O.prototype.notifyPath=function(){u.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Vy.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var l=_.Z(u.propNames),K=l.next(),q={};!K.done;q={prop$jscomp$106:void 0},K=l.next())q.prop$jscomp$106=K.value,Object.defineProperty(O.prototype,q.prop$jscomp$106,{set:function(F){return function(w){this.isInert||w===this.props[F.prop$jscomp$106]||(this.props[F.prop$jscomp$106]=w,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(q)});
customElements.define(R,O)};
_.yB2=function(f,R){return _.kZ(f.entities,"markersEngagementPanelSyncEntity",R)};
dNn=function(f,R){return _.kZ(f.entities,"fantasyWinProbabilityEntity",R)};
Nge=function(f,R){return _.kZ(f.entities,"fantasyTeamEntity",R)};
Let=function(f,R){return _.kZ(f.entities,"fantasyPlayerEntity",R)};
b1q=function(f,R){return _.kZ(f.entities,"booleanEntity",R)};
pw7=function(f,R){return _.kZ(f.entities,"qrCodeEntity",R)};
juP=function(f){return _.kZ(f.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
DND=function(){if(ZB)return ZB;if(window.lottie)return ZB=Promise.resolve(window.lottie);var f=_.z2(_.Tf("LOTTIE_URL"));return f?ZB=new Promise(function(R,u){var O=document.createElement("script");O.addEventListener("load",function(){R(lottie)});
O.addEventListener("error",function(c){var h="Lottie library failed to load.";c?c.message&&(h+=" Original description: "+c.message,_.MB(c,h)):c=Error(h);_.Ih(c);u(c)});
O.setAttribute("async","");_.UO(O,f);document.head.appendChild(O)}):Promise.reject(Error("qh"))};
JBh=function(){return ZB?ZB:DND()};
zCe=function(f){if(f)switch(f){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.E("kevlar_use_wil_icons"))return f=(f=juP(_.sP().getState()))&&f.animationLightUrl&&f.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:f.animationLightUrl,pathDarkTheme:f.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,f?f:le.get("LIKE")}};
Tgn=function(f){var R=zCe(f);if(R)return R;switch(f){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return le.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return le.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return le.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return le.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return le.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return le.get("NOTIFICATION_BELL")}};
Icn=function(f,R){if(!f||H17)R=!1;else{if(f.closest){var u=!!zCe(R);u=_.Tf("ID_TOKEN")&&u?!!f.closest("segmented-like-dislike-button-view-model"):!1}else u=!1;if(!u)if(f.closest)if(u=!_.Tf("ID_TOKEN"),f=f.closest("ytd-subscription-notification-toggle-button-renderer-next"),u||!f)u=!1;else{var O;u=((O=f.data)==null?void 0:O.targetId)==="notification-bell"&&R!=="EXPAND_MORE"}else u=!1;R=u}return R};
MZD=function(f){var R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.cl(O,2),_.A(O,fetch(f),4);case 4:return R=O.yieldResult,_.A(O,R.json(),5);case 5:return O.return(O.yieldResult);case 2:u=_.ku(O),_.Ih(u),_.KG(O)}})};
PI7=function(f,R){var u,O,c;return _.k(function(h){if(h.nextAddress==1)return(u=R?f.pathDarkTheme:f.path)?_.A(h,Promise.all([MZD(u),DND()]),2):h.return();O=h.yieldResult;c=O[0];kG.set(u,c);_.KG(h)})};
_.KL=function(){var f=_.yK.apply(0,arguments);return function(){for(var R="",u=_.Z(f),O=u.next();!O.done;O=u.next())if(O=O.value,typeof O==="function"&&(O=O()),O)if(typeof O==="string")R+=" "+O;else for(var c in O)if(O.hasOwnProperty(c)){var h=O[c];typeof h==="function"&&(h=h());h&&(R+=" "+c)}R=R.trim()||void 0;return _.Jy(R)}};
_.qI=function(f){var R;var u=f.data;var O=f.className;var c=f.animationName;var h=f.animationRef;var l=(R=f.elRefForInterop)||_.sW(),K;_.jN(function(){var w;return void((w=K)==null?void 0:w.destroy())});
var q;_.pc(function(){var w=_.Jy(c);if(w!==q){q=w;var m=Object.assign({},{animationName:w,animationRef:_.Jy(h)},_.Jy(u));try{_.vh().resolve(UNn)().then(function(d){var p;(p=K)==null||p.destroy();p=m.animationRef;var J=m.listeners;d=d.loadAnimation(Object.assign({},{container:l.value},m.animationConfig));p&&(p.lottieEl=d);if(J)for(p=_.Z(Object.entries(J)),J=p.next();!J.done;J=p.next()){var M=_.Z(J.value);J=M.next().value;(M=M.next().value)&&d.addEventListener(J,M)}K=d})}catch(d){w=d;
var W="LottieComponent error.";w.message&&(W+=" Original description: "+w.message);_.MB(w,W);_.Ih(w);var C;((C=m.listeners)==null?0:C.error)&&m.listeners.error(w)}}});
var F=_.KL("ytLottieComponentHost",O);return _.a(SWn,{cond:function(){return!R},
then:function(){return _.a("lottie-component",{class:F,el:l})}})};
GZB=function(f,R,u,O){function c(l,K){if(R.value===K&&f!=null&&f.value){for(;f.value.firstChild;)f.value.removeChild(f.value.firstChild);f.value.classList.add("yt-spec-icon-shape");l(f.value,O)}}
u=_.eCt(_.vh().resolve(_.kr),u);if(typeof u==="function")R.value=null,c(u,null);else{var h=new _.ah(u.then,u);R.value=h;h.then(function(l){c(l,h)})}};
oJt=function(f,R){var u=document.createElement("div"),O=_.dv(u,function(){return _.a(_.Q,{cond:f,then:function(c){return _.a(Bg7,{data:c,options:R})}})});
return[u,O]};
_.AS=function(){for(var f=[],R=_.Z(_.yK.apply(0,arguments)),u=R.next();!u.done;u=R.next())if(u=u.value)if(typeof u==="string")f.push(u);else{u=_.Z(Object.entries(u));for(var O=u.next();!O.done;O=u.next()){var c=_.Z(O.value);O=c.next().value;(c=c.next().value)&&f.push(O)}}return f.join(" ")};
gJD=function(f){var R=_.sW(),u=j0(),O=sm(f.character)||sm(f.previousCharacter);OTq(function(){if(f.marginMultiplier){var c;(c=u.value)==null||c.cancel();O?(c=f.previousCharacter?Number(f.previousCharacter)+10:f.rollUp?0:30,f.shouldAnimate||(c-=xNh(f,c))):(c=f.rollUp?0:2,f.shouldAnimate||(c-=f.rollUp?-1:1));R.value.style.marginTop="-"+c*f.marginMultiplier+"px";f.shouldAnimate?u.value=S6t(R.value,f,c,O):R.value.style.display=f.character?"":"none"}});
return _.a("animated-rolling-character",{el:R,class:"animated-rolling-character-wiz"},V1(O,function(){for(var c=[],h=1;h<30;h++)c.push(_.a("div",null,h%10));return _.a(_.RS,null,_.a("div",null,"\u00a0"),c,_.a("div",null,"\u00a0"))},function(){return $N2(f.character)}))};
$N2=function(f){return _.a(_.RS,null,_.a("div",null,"\u00a0"),_.a(_.RS,null,V1(!f||_.Kh(f),function(){return _.a("div",null,"\u00a0")},function(){return _.a("div",null,f)})),_.a("div",null,"\u00a0"))};
S6t=function(f,R,u,O){u=new Animation(new KeyframeEffect(f,[{transform:"translateY(0px)"},{transform:"translateY("+(O?xNh(R,u):R.rollUp?-1:1)*R.marginMultiplier+"px)"}],su7),document.timeline);R.character?(f.style.display="",u.onfinish=null):u.onfinish=function(){f.style.display="none"};
u.play();return u};
xNh=function(f,R){var u=Number(f.character)+10;if(f.previousCharacter)if(f.character){var O=Number(f.character),c=Number(f.previousCharacter);f=f.rollUp?c<O?u:u+10:c<O?u-10:u}else f=f.rollUp?30:0;else f=f.character==="0"?u:f.rollUp?u-10:u+10;return R-f};
_.aX=function(f,R){return function(u){var O={},c;for(c in u){var h=void 0,l=void 0;((h=R)==null?0:(l=h.callbacks)==null?0:l[c])||(O[c]=u[c])}return _.a(F8t,null,function(){for(var K in O)u[K]=_.Jy(O[K]);u.disableReactiveLogging=!0;return _.a(f,Object.assign({},u))})}};
Y65=function(f,R,u,O,c,h,l){u=new Animation(new KeyframeEffect(f,[{transform:"translateY(0px)"},{transform:"translateY("+(h?nJn(R,u,O,c):O?-1:1)*l+"px)"}],VZn),document.timeline);R?(f.style.display="",u.onfinish=null):u.onfinish=function(){f.style.display="none"};
u.play();return u};
nJn=function(f,R,u,O){var c=Number(f)+10;R?f?(f=Number(f),R=Number(R),u=u?R<f?c:c+10:R<f?c-10:c):u=u?30:0:u=f==="0"?c:u?c-10:c+10;return O-u};
i1n=function(f){var R=j0(),u=j0();LQ(function(){R.value=f.numberText;u.value=f.numberValue},[f.numberText]);
var O=f.fontSizeMultiplier?f.heightPx*f.fontSizeMultiplier:f.heightPx,c=laP(function(){if(f.numberText){var l=f.numberText;var K=f.forceRollUp||!u.value||!f.numberValue||u.value<f.numberValue;var q=!!f.shouldAnimate,F=R.value,w=[],m=0,W=0,C=(F?F.replace(/\D/g,"").length:0)-(l?l.replace(/\D/g,"").length:0);F=F?F.split(/(\d)/).filter(Boolean):[];for(l=l.split(/(\d)/).filter(Boolean);C<0;){var d=l[W];w.push({character:d,rollUp:K,marginMultiplier:O,shouldAnimate:q});W++;sm(d)&&C++}for(;m<C;)d=F[m],w.push({previousCharacter:d,
rollUp:K,marginMultiplier:O,shouldAnimate:q}),m++,sm(d)||C++;for(;W<l.length;)C=l[W],d=F[m],sm(C)===sm(d)?(W++,m++):sm(C)?(m++,C=void 0):sm(d)&&(W++,d=void 0),w.push({character:C,previousCharacter:d,rollUp:K,marginMultiplier:O,shouldAnimate:q});K=w}else K=[];return K},[f.numberText]),h=f.numberText?["height: "+O+"px;",
"line-height: "+f.heightPx+"px;"].join(" "):"";return _.a("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:h,dir:"ltr","aria-hidden":"true"},c.map(function(l){return _.a(vJ7,Object.assign({},l))}))};
rB7=function(f){var R=f.nodeName;if(f.id)return R+="#"+f.id;if(f.classList)for(var u=_.Z(f.classList),O=u.next();!O.done;O=u.next())R+="."+O.value;f.parentElement&&(R=rB7(f.parentElement)+" > "+R);return R};
RR7=function(f){return function(R){var u;var O=(u=f45[R.type])!=null?u:"EVENT_SPAN_TYPE_UNKNOWN";O=T52("event",{type:O,nodepath:R.target instanceof Element?rB7(R.target):void 0});return I20(O,f,R)}};
_.Ff=function(f){f&&Vu&&(Vu.enabledSpans?Vu.enabledSpans.event:1)&&(f=RR7(f));return $O0(function(R){var u,O=(u=f)==null?void 0:u(R);return typeof O==="boolean"?O:!0})};
wx=function(f){return function(){return f()?f():void 0}};
uR7=function(f){return new KeyframeEffect(f,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
OHe=function(f){return new KeyframeEffect(f,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.m8=function(f){var R=V0(function(u){u=u?Kc(u[0]):void 0;return _.qK(f(u),void 0,"AwTxXe")},{isEqual:function(u,O){return Kc(u[0])===Kc(O[0])}});
return[function(){return R()[0]()},
function(u){return void R()[1](u)}]};
_.Qm=function(f){return function(){var R="",u;for(u in f){for(var O=f[u];typeof O==="function";)O=O();O!==void 0&&O!==null&&(R+="; "+u+": "+O)}return R.length>0?_.Jy(R.slice(2)):_.Jy()}};
cPq=function(f){switch(f){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"}};
l42=function(f,R,u,O,c,h){var l=Xu2(f),K=l.disabled,q=l.iconPosition,F=l.style,w=l.focused,m=function(){return!!d()&&q()==="icon-only"},W=function(){return!!d()&&q()==="icon-only-40"},C=function(){return!!d()&&q()==="icon-with-label"},d=function(){return!!R||!(O==null||!O())};
return{type:function(){return F()==="call-to-action-inverse"?"text":F()==="overlay-dark"&&f().type!=="filled"&&f().type!=="tonal"?"tonal":f().type},
shouldFocus:function(){return(w()||(h==null?void 0:h()))&&!K()},
hasIconLeading:function(){return!!d()&&q()==="leading"},
hasIconTrailing:function(){return!!d()&&q()==="trailing"},
hasIconLeadingTrailing:function(){return!!d()&&!!(u||c!=null&&c())&&q()==="leading-trailing"},
hasIconOnly:m,hasIconOnly40:W,hasIconWithLabel:C,iconButton:function(){return m()||W()||C()},
visiblyDisabled:function(){return(K()?"disabled":f().state)==="disabled"||K()},
overrideSmallSizeIcon:function(){return hR2(f(),d())},
iconToRender:R?R:function(){return _.a(_.WM,{icon:O,size:function(){return Ez(f(),!0)},
active:function(){return f().toggled},
iconFilter:function(){return ZHq(f())}})},
secondaryIconToRender:u?u:function(){return _.a(_.WM,{icon:c,size:function(){return Ez(f(),!0)},
active:function(){return f().toggled},
iconFilter:function(){return ZHq(f())}})}}};
Xu2=function(f){return{size:function(){return f().size},
style:function(){return f().style},
focused:function(){return f().focused},
disabled:function(){return f().disabled},
onTap:function(R){var u,O;return(O=(u=f()).onTap)==null?void 0:O.call(u,R)},
alignByText:function(){return f().alignByText},
aTagConfig:function(){return f().aTagConfig},
customColors:function(){return f().customColors},
segmentedPosition:function(){return f().segmentedPosition},
toggled:function(){return f().toggled},
toggleable:function(){return f().toggleable},
accessibilityLabel:function(){return f().accessibilityLabel},
onToggle:function(R){var u,O;return(O=(u=f()).onToggle)==null?void 0:O.call(u,R)},
iconPosition:function(){return f().iconPosition},
oneOffCustomTextWrap:function(){return f().oneOffCustomTextWrap},
disableTextEllipsis:function(){return f().disableTextEllipsis},
disableBackdropFilter:function(){return f().disableBackdropFilter},
tooltipText:function(){return f().tooltipText},
ariaHidden:function(){return f().ariaHidden},
tabIndex:function(){return f().tabIndex},
buttonText:function(){return f().buttonText},
formattedButtonText:function(){return f().formattedButtonText},
animatedTextProps:function(){return f().animatedTextProps}}};
kbh=function(f){return f.style==="overlay-dark"?4:f.style==="overlay"?f.type==="filled"?4:3:f.type==="filled"||f.style==="call-to-action-inverse"||f.style==="mono-inverse"?2:1};
hR2=function(f,R){R=(f.iconPosition==="icon-only"||f.iconPosition==="icon-only-40"||f.iconPosition==="icon-with-label")&&R;return!f.segmentedPosition&&R&&f.size==="S"};
KU7=function(){return!_.E("web_disable_backdrop_filter")};
Ez=function(f,R){switch(f.size){case "XS":return 16;case "S":return hR2(f,R)?24:16;default:return 24}};
qN0=function(f){switch(f){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"}};
AP5=function(f){switch(f){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"}};
a42=function(f){switch(f){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"}};
ZHq=function(f){if(f.style==="overlay-dark"&&f.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
FU2=function(f){if(!f)return{};var R=f.color,u=f.backgroundColor;f=f.borderColor;var O="";R&&(O+="color: "+R+";");u&&(O+="background-color: "+u+";");f&&(O+="border-color: "+f+";");return{style:O}};
EUP=function(f,R,u){var O=f.buttonText,c=f.formattedButtonText,h=f.formattedButtonTextLegacy,l=f.animatedTextProps,K=f.style,q=f.size,F=f.focused,w=f.disabled,m=f.onTap,W=f.alignByText,C=f.aTagConfig,d=f.customColors,p=f.segmentedPosition,J=f.toggled,M=f.toggleable,P=f.accessibilityLabel,g=f.onToggle,x=f.iconPosition,fh=f.oneOffCustomTextWrap,V=f.disableTextEllipsis,ZD=f.disableBackdropFilter,mP=f.tooltipText,NX=f.ariaHidden,jt=f.tabIndex,Jn=f.state,zq=f.type;K==="call-to-action-inverse"&&(zq="text");
K==="overlay-dark"&&zq!=="filled"&&zq!=="tonal"&&(zq="tonal");var St=!!R&&x==="leading",Gq=!!R&&x==="trailing",LC=!!R&&!!u&&x==="leading-trailing",wN=!!R&&x==="icon-only",GI=!!R&&x==="icon-only-40",ak=!!R&&x==="icon-with-label",kC=wN||GI||ak;w&&(Jn="disabled");var Rw=Jn==="disabled"||w;Jn=hR2(f,!!R);var KC={},qe=(KC["yt-spec-button-shape-next"]=!0,KC[qN0(zq)]=!0,KC[AP5(K)]=!Rw,KC["yt-spec-button-shape-next--disabled"]=!!Rw,KC[a42(q)]=!0,KC["yt-spec-button-shape-next--focused"]=!!F&&!w,KC["yt-spec-button-shape-next--icon-trailing"]=
Gq,KC["yt-spec-button-shape-next--icon-leading"]=St,KC["yt-spec-button-shape-next--icon-leading-trailing"]=LC,KC["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=LC&&!(O||c),KC["yt-spec-button-shape-next--icon-button"]=wN||ak,KC["yt-spec-button-shape-next--icon-only-default"]=GI,KC["yt-spec-button-shape-next--align-by-text"]=!!W,KC["yt-spec-button-shape-next--segmented-start"]=p==="start",KC["yt-spec-button-shape-next--segmented-end"]=p==="end",KC["yt-spec-button-shape-next--override-small-size-icon"]=
Jn,KC["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!fh,KC["yt-spec-button-shape-next--disable-text-ellipsis"]=!!V,KC["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!ZD&&KU7(),KC),LE=function(){if(l)tLB(_.wuB)(l);else if(h)h(x==="icon-with-label"||fh?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(c){var $C=x==="icon-with-label"||fh;Ix5(Object.assign({},c,$C?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",
alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!$C})}else O&&i4(O)},k5=function($C){m==null||m($C);
M&&(g==null||g($C))},yA=C?mVP:Qvn,HG=C?"aria-current$":"aria-pressed$",GX=function(){R&&(St||LC||kC)&&function(){tS({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){R()})}();
(O||c||h||l)&&!kC&&function(){tS({className:"yt-spec-button-shape-next__button-text-content"},function(){LE()})}();
Gq&&function(){tS({className:"yt-spec-button-shape-next__icon"},function(){R()})}();
LC&&function(){tS({className:"yt-spec-button-shape-next__secondary-icon"},function(){u()})}();
w||tLB(_.CL)({model:{color:kbh(f)}})},bf=function(){var $C={};
yA(Object.assign({},($C.className=_.AS(qe),$C.onclick=C?void 0:k5,$C.disabled=w,$C["aria-disabled$"]=Rw,$C.style=w&&C?"pointer-events:none":void 0,$C[HG]=M?!!J:void 0,$C["aria-label$"]=P,$C.title$=mP!=null?mP:"",$C["aria-hidden$"]=NX,$C.tabindex$=jt,$C),C,FU2(d)),function(){GX()})};
ak?(q={},K=(q["yt-spec-button-shape-with-label"]=!0,q["yt-spec-button-shape-with-label--is-overlay"]=K==="overlay"||K==="overlay-dark",q),WU0({className:_.AS(K)},function(){bf();tS({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},LE)})):bf()};
tcn=function(f,R){if(!Y$){var u;ZB2(function(){return u=ASB(f,R)});
return u}return ASB(f,R)};
C8q=function(){var f=Lw0(Y$||void 0,kwe);return NvD(f)?void 0:f};
ym=function(f,R){_.IF(f,Object.assign({},R,{forceClickLogging:!0}))};
yP2=function(f,R,u,O){var c=void 0;return function(h){var l=_.H7(u?f==null?void 0:f.onDisabledTap:f==null?void 0:f.onTap);if(l){var K;c=(K=c)!=null?K:R==null?void 0:R.value;if(l)if(_.E("web_button_vm_click_client_ve_killswitch"))ym(l,Object.assign({},{form:{element:c,event:h}},void 0));else{var q;K=l==null?void 0:l.clickTrackingParams;var F,w=f==null?void 0:(q=f.loggingDirectives)==null?void 0:(F=q.clientVeSpec)==null?void 0:F.uiType;q=w&&!K?_.dx(w):void 0;ym(l,Object.assign({},{form:{element:c,event:h}},
{clickedVisualElement:q}))}}O&&O(h)}};
dVP=function(f){switch(f){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"}};
NdP=function(f){switch(f){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"}};
LU7=function(f){switch(f){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"}};
bHn=function(f){switch(f){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"}};
pu2=function(f,R){return _.kZ(f.entities,"engagementToolbarStateEntityPayload",R)};
DVX=function(f){(f=_.t4(f))&&_.jvl(f)};
_.jvl=function(f){var R=_.z4();R&&_.B_(R,f)};
JPl=function(f,R,u){_.OJ(f,"yt-open-popup-action",[R,u||f])};
zR5=function(f,R){var u=_.DK(f,"endpoint"),O=_.DK(f,"action");return(u=O?O:u)&&R&&(u=R.navigationEndpointPopupMap[u])&&(f=_.Ph(u,f),(u=_.DK(f,"renderer"))&&R.supportedPopups.hasOwnProperty(u))?{openPopupAction:{popupType:R.popupTypeMap[u],popup:f}}:null};
Td2=function(f,R,u,O){if(O){var c;u=u==null?void 0:(c=u.data)==null?void 0:c.contents;(c=u instanceof Array&&u.length?u[0]:u)&&(u=_.DK(c,"renderer"))&&O.supportedPopups.hasOwnProperty(u)&&(R.stopPropagation(),JPl(f,{openPopupAction:{popupType:O.popupTypeMap[u],popup:c}}))}};
Mc7=function(f,R,u,O){O=O===void 0?!1:O;var c=HHq(R);if(c){c.href&&ek(c.href);var h=R.button;h=h!==void 0?h===0&&!NI(R):!NI(R);c.data&&h&&I4P(f,c,R,u,O)}};
I4P=function(f,R,u,O,c){c=c===void 0?!1:c;var h=_.RV("pbj_navigate_limit",-1)===0;P8e(R);_.vh().resolve(_.Y8(B5));var l=R.data;if(Object.keys(l).length!==0)if(!_.E("unplugged_web_disable_actions_for_cec_endpoint")&&_.t(l,_.kE))_.E("endpoint_behavior_command_executor_fix_killswitch")||(u.preventDefault(),u.stopPropagation()),_.ZW(f,[l],f);else if(O=zR5(l,O))l.loggingUrls&&l.loggingUrls.forEach(function(q){q.baseUrl&&_.BR(q.baseUrl)}),u.preventDefault(),u.stopPropagation(),JPl(f,O,R);
else{var K=UV7(0,R.data,u);if(f=R.getForm)f=f(),K.tempData=K.tempData||{},K.tempData=Object.assign({},K.tempData,f);f=_.$S(u);if(O=f.find(function(q){return!!q.visualElement}))K.createScreenConfig=K.createScreenConfig||{},K.createScreenConfig.clickedVisualElement=O.visualElement;
if(!h)if(u.preventDefault(),u.stopPropagation(),_.t(l,_.eR0)&&!c&&_.KU.instance)_.KU.instance.resolveCommand(l,K);else if(_.E("kevlar_command_handler_formatted_string")&&!c&&_.KU.instance&&Gbn(l))c=f.find(function(q){return!!q.is})||u.target,u={form:Object.assign({},K,{event:u,
element:c,originatingNode:R})},_.KU.instance.resolveCommand(l,u);else{l=_.$S(u);u=[];for(c=0;c<l.length;c++)(h=l[c].is)&&u.push(h);jFl({parents:u.join(","),text:R.innerText},function(){_.ul(R,"yt-navigate",K)})}}};
Bdh=function(f){if(f=HHq(f))P8e(f),q7q(f.href)};
HHq=function(f){f=_.$S(f);for(var R,u=0;u<f.length;u++)if(R=f[u],R.tagName==="A"&&R.classList.contains("yt-simple-endpoint")){if(!R.data)break;return R}return null};
NI=function(f){return f.shiftKey||f.altKey||f.metaKey||f.ctrlKey};
oU2=function(f,R){var u={itct:R.clickTrackingParams};_.E("kevlar_client_side_screens")&&(!_.t(R,_.Ey)||_.E("kevlar_exclude_endpoint_killswitch"))&&(u.endpoint=JSON.stringify(R));_.E("enable_unknown_lact_fix_on_html5")&&_.vh().resolve(_.Y8(_.LL))&&(u.lact=_.OW());lZn(u);_.VP(f,u)};
P8e=function(f){f.href&&Object.keys(f.data).length!==0&&oU2(f.href,f.data)};
Gbn=function(f){for(var R=_.Z(xVn),u=R.next();!u.done;u=R.next())if(f[u.value])return!1;return!0};
_.be=function(f,R){if(R){var u={};SNB.forEach(function(O){O=$Vl(R,O,"--yt-lightsource-");Object.assign(u,O)});
gU7.forEach(function(O){O=$Vl(R,O,"--yt-basic-");Object.assign(u,O)});
_.ZO(f,u)}};
$Vl=function(f,R,u){var O={};O[u+_.FO(R)]=f&&f[R]?_.ML(f[R]):"";return O};
_.j6=function(f,R,u){pL[f]||(pL[f]={});pL[f][R]=u};
_.DB=function(f){pL[f]||(pL[f]={});return pL[f]};
sv5=function(f){if(!f)return{};var R=f.foregroundTitleColor,u=f.backgroundColor;f=f.borderColor;var O="text";f?O="outline":u&&(O="filled");return{type:O,customColors:{color:R?_.ML(R):void 0,backgroundColor:u?_.ML(u):void 0,borderColor:f?_.ML(f):void 0}}};
iHn=function(f){var R=f.renderer;var u=f.element;var O=f.commandController;var c=f.onTapCallback;var h=f.skipCommandHandling;var l=f.overrides;var K=f.forceIcon;var q=f.forceModernIconButton;var F=f.forceDisabled;var w=f.isSubscribe===void 0?!1:f.isSubscribe;var m=f.isPressed===void 0?!1:f.isPressed;var W=f.useButtonSize===void 0?!1:f.useButtonSize;f=nUe(R);w&&(f.style="mono",f.type="filled");K=!R.icon||!K&&R.text?R.icon?R.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:q?"icon-only":"icon-only-40";K==="icon-only-40"&&(f.type="text");var C;q=Object;w=q.assign;W=VcD(R,W);m=!!R.isSelected||!_.E("web_propagate_is_pressed_killswitch")&&!!m;var d=R.isSelected!==void 0;F=F===void 0?R.isDisabled:F;var p=R.text?_.Dz(R.text):void 0;var J,M,P,g=((J=R.accessibilityData)==null?void 0:(M=J.accessibilityData)==null?void 0:M.label)||((P=R.accessibility)==null?void 0:P.label);J=g?g:_.$Z(R.text);u=YN0(R,u,O,c,h);O=vUD(R);O!=null&&O.length?(O=_.MO({innertubeCommand:tml(O),
forceNewState:!0}),O=P7(O)?O:void 0):O=void 0;return w.call(q,{},f,W,{iconPosition:K},l,{focused:!1,toggled:m,toggleable:d,disabled:F,formattedButtonText:p,accessibilityLabel:J,onTap:u,aTagConfig:O},sv5((C=R.colorData)==null?void 0:C.basicColorPaletteData),{oneOffCustomTextWrap:R.oneOffCustomTextWrap})};
YN0=function(f,R,u,O,c){return function(h){var l=vUD(f);O(l,h);if(!c){l=_.Z(l);for(var K=l.next();!K.done;K=l.next())ym(K.value,{form:{element:R,event:h},commandController:u})}}};
vUD=function(f){var R=[];f.command&&R.push(f.command);f.serviceEndpoint&&R.push(f.serviceEndpoint);f.navigationEndpoint&&R.push(f.navigationEndpoint);return R};
VcD=function(f,R){if(R)switch(f.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(f.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
nUe=function(f){switch(f.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.JS=function(f){return _.Qt(function(){iOD()();return Sw(f)},void 0,"Icv7j")};
zw=function(f,R){return _.kZ(f.entities,"likeStatusEntity",R)};
rPn=function(f,R){return _.kZ(f.entities,"likeCountEntity",R)};
_.fTh=function(f,R){return _.kZ(f.entities,"stringEntity",R)};
RW7=function(f,R){if(!f)return!1;var u,O=(u=_.t(f,_.AH))==null?void 0:u.signal;if(O&&R.signalEndpointMap)return!!R.signalEndpointMap[O];var c;if((u=(c=_.t(f,_.Tw))==null?void 0:c.request)&&R.continuationEndpointMap)return!!R.continuationEndpointMap[u];for(var h in f)if(R.commandEndpointMap[h])return!0;return!1};
uIn=function(f,R){if(R.streamingEndpointMap)for(var u in f)if(R.streamingEndpointMap[u]&&(f=R.streamingEndpointMap[u]))return f()};
Ozn=function(f,R){var u,O=(u=_.t(f,_.AH))==null?void 0:u.signal;if(O&&R.signalEndpointMap&&(u=R.signalEndpointMap[O]))return u();var c;if((u=(c=_.t(f,_.Tw))==null?void 0:c.request)&&R.continuationEndpointMap&&(c=R.continuationEndpointMap[u]))return c();for(var h in f)if(R.commandEndpointMap[h]&&(f=R.commandEndpointMap[h]))return f()};
cc0=function(f){var R={"Content-Type":"application/json"};_.Tf("EOM_VISITOR_DATA")?R["X-Goog-EOM-Visitor-Id"]=_.Tf("EOM_VISITOR_DATA"):_.Tf("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=_.Tf("VISITOR_DATA"));R["X-Youtube-Bootstrap-Logged-In"]=_.Tf("LOGGED_IN",!1);_.Tf("DEBUG_SETTINGS_METADATA")&&(R["X-Debug-Settings-Metadata"]=_.Tf("DEBUG_SETTINGS_METADATA"));f!=="cors"&&((f=_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(R["X-Youtube-Client-Name"]=f),(f=_.Tf("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(R["X-Youtube-Client-Version"]=
f),(f=_.Tf("CHROME_CONNECTED_HEADER"))&&(R["X-Youtube-Chrome-Connected"]=f),(f=_.Tf("DOMAIN_ADMIN_STATE"))&&(R["X-Youtube-Domain-Admin-State"]=f),_.Hh("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(f=_.Tf("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(R["X-YouTube-Lava-Device-Context"]=f));return R};
Xvl=function(f,R){R.watchNextResponse||R.reelItemWatchResponse?R.watchNextResponse?f.content=R.watchNextResponse:f.content=R.reelItemWatchResponse:R.playerResponse?f.player=R.playerResponse:R.reelWatchSequenceResponse&&(f.reelSequence=R.reelWatchSequenceResponse)};
_.HM=function(f){if(!f)return null;for(var R=[],u=0;u<f.textSegments.length;u++){var O=f.textSegments[u];O.text?R.push(O):O.emojiId&&R.push({emoji_id:O.emojiId})}return{text_segments:R}};
KTX=function(f,R,u,O,c,h,l){h=h===void 0?[]:h;var K=new _.IX;K.endpoint=u;if(!u)return _.H5(new _.ts("handle undefined endpoint",R.tagName)),K;var q=UOn(u);q.length&&(_.ZW(f,q,R,O),K.actions=q);u.loggingUrls&&u.loggingUrls.forEach(function(w){w.baseUrl&&SI(w.baseUrl,w.attributionSrcMode)});
q=!_.E("web_skip_impression_click_killswitch")&&O&&O.impression;if(u.clickTrackingParams&&!hWq(u)&&!ZzX(R)&&!q&&(q=_.wR(),!_.MI(q,R))){var F=R.getScreenLayer&&R.getScreenLayer();F?q.clickCommand(u,null,F):q.clickCommand(u,null)}q=!1;for(F=0;F<h.length;F++)if((0,h[F])(R,u,O)){q=!0;break}!q&&lT2(u)&&(K.ajaxPromise=kjl(f,R,u,O,c,l));return K};
ZzX=function(f){var R;return(f=(R=f.data)==null?void 0:R.navigationEndpoint)&&!!f.clickTrackingParams};
hWq=function(f){var R=_.t(f,_.AH);if(R&&(R=R.signal)&&qSe.indexOf(R)>=0)return!0;for(var u in f)if(Ac0.indexOf(u)>=0)return!0;return!1};
lT2=function(f){var R;if(((R=_.t(f,_.AH))==null?void 0:R.signal)==="CLIENT_SIGNAL")return!1;for(var u in f)if(aT5.indexOf(u)>=0)return!1;f=Object.keys(f);return f.length===1&&f[0]==="loggingUrls"?!1:!0};
C2D=function(f,R,u,O,c,h,l){var K=_.PM.instance;if(K&&_.Uz(K,O))var q=_.e6(K,O,c).then(function(w){return(w==null?0:w.data)?w:{data:w}});
else q=f.requestDataForServiceEndpoint(O,c),_.t(O,FTh)||_.t(O,wvn)||_.t(O,_.mw7)||_.t(O,QB7)||_.Ih(new _.ts("No RequestBuilder for endpoint",O));var F=_.BM();F.promise.thenCatch(function(){var w=_.DK(O,"action")||_.DK(O,"command")||_.DK(O,"endpoint");w&&(w=O[w],w.hasOwnProperty("onFailureAction")?_.ZW(R,[w.onFailureAction],u):w.hasOwnProperty("onFailureCommand")&&_.ZW(R,w.onFailureCommand,u));q.cancel("Resolver promise rejected")});
q.then(function(w){if(w){var m=w.error;if(m){if(h&&h.onServerError)h.onServerError(O,w);F.reject(new _.ts("Response error",O,m))}else if(w=w.data)if(m=w.error){if(h&&h.onServerError)h.onServerError(O,w);F.reject(new _.ts("Returned error",O,m))}else{WTn(R,u,w,O);EFq(w);if(m=PiD(w))for(var W=_.Z(m),C=W.next();!C.done;C=W.next()){C=C.value;var d=_.vh().resolve(_.Y8(tJP))||oX;if(!_.PM.instance||!d.some(function(J){return!!_.t(O,J)})||_.E("kevlar_response_processor_allowlist_killswitch")){var p=d=void 0;
((p=_.t((d=C)==null?void 0:d.commandMetadata,_.vc))==null?0:p.sendPost)?_.hH(R,[C]):_.ZW(R,[C],u)}}(W=_.t(w==null?void 0:w.frameworkUpdates,xG))&&l&&l(W);if(h&&h.onSuccess)h.onSuccess(O,w);F.resolve(new _.S6(w,m))}}else F.reject(new _.ts("Invalid service endpoint provided",O))},function(w){F.reject(w)});
return F.promise};
EFq=function(f){var R;(f=(R=_.t(f==null?void 0:f.onResponseReceivedCommand,_.yc5))==null?void 0:R.continuationItems)&&(f==null?void 0:f.length)===1&&_.t(f[0],dwh)&&_.JH("so_r",void 0,"search_overview_answer")};
kjl=function(f,R,u,O,c,h){var l;return(l=R.getNetworkManager&&R.getNetworkManager()?R.getNetworkManager():_.vh().resolve(_.Y8(_.DM)))?C2D(l,f,R,u,O,c,h):_.NO("No network manager.")};
WTn=function(f,R,u,O){if(u=u.trackingParams||u.loggingDirectives&&u.loggingDirectives.trackingParams){var c;(_.t(O,NXn)||_.t(O,LTq)||_.t(O,bzh))&&O.clickTrackingParams?c=_.t4(O.clickTrackingParams):_.E("web_graft_to_parent_command")&&O.clickTrackingParams&&(c=_.t4(O.clickTrackingParams));var h;O=(h=R.getScreenLayer)==null?void 0:h.call(R);R=_.wR().graftServerVe(u,c,O);_.c_(f,"yt-store-grafted-ve-action",[R])}};
_.pvX=function(f){var R=new Image;return new _.ah(function(u,O){R.addEventListener("load",function(){u()});
R.addEventListener("error",function(){O()});
R.src=f})};
jBn=function(f){return!!f};
Dwt=function(f){return!!f};
Jcq=function(f,R,u){var O=f.rowIndex;O!==void 0&&_.c_(f.hostElement,"yt-section-reactive-dismissal",[O,R,u])};
_.$G=function(f,R,u){f=_.Z(f);for(var O=f.next();!O.done;O=f.next()){O=O.value;if(O===R)break;for(var c=_.Z(u),h=c.next();!h.done;h=c.next())if(h=h.value,O.tagName===h||!_.E("web_event_button_role_check_killswitch")&&O.role==="button"&&h==="BUTTON")return!0}return!1};
_.gx=function(f,R,u){f=_.Z(f);for(var O=f.next();!O.done;O=f.next()){O=O.value;if(O===R)break;for(var c=_.Z(u),h=c.next();!h.done;h=c.next())if(O.id===h.value)return!0}return!1};
zWD=function(f,R){if(!f&&!R)return"medium";f=Math.max(f||0,R||0);return f>=256?"large":f>=96?"medium":"small"};
TXl=function(f){switch(f){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Vm=function(){var f=_.vh().resolve(_.Y8(_.sz));return f?(f=f.getCurrentPage())?_.nL(f):null:null};
_.YG=function(){var f=_.Vm();if(!f){var R=_.vh().resolve(_.Y8(_.sz)),u=R?typeof R:"no page manager";R=R?R.getCurrentPage():null;u=new _.ts("Player is missing when requested.",u,R?R.tagName:"no page");_.TL(u)}return f};
_.nL=function(f){return f&&f.getPlayer?f.getPlayer():null};
Hzn=function(f,R){f={args:{raw_player_response:f}};R&&(f.args=Object.assign({},f.args,R));return f};
ITh=function(f){if(f.args){if(f.args.raw_player_response)return f.args.raw_player_response;if(f.args.player_response)return JSON.parse(f.args.player_response)}};
_.MJX=function(f,R){var u={url:"/watch?v="+f.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};f.playlistId&&(u.url+="&list="+f.playlistId);f.playerParams&&(u.url+="&pp="+f.playerParams);f={watchEndpoint:f,commandMetadata:{webCommandMetadata:u}};R&&(f.clickTrackingParams=R);return f};
Uwq=function(){return P2h||!!_.Ph("yt.player.Application")};
GjD=function(){return eWe||!!document.querySelector("link#player-css")};
oF0=function(){function f(){P2h=!0;BXh.resolve()}
var R,u;return _.k(function(O){BXh||(BXh=new _.lj,Uwq()?f():(R=document.createElement("script"),R.addEventListener("load",f),u=_.b3(_.Tf("PLAYER_JS_URL")),_.UO(R,u),document.head.appendChild(R)));return O.return(BXh.promise)})};
SSn=function(){function f(){eWe=!0;xw5.resolve()}
if(!xw5)if(xw5=new _.lj,GjD())f();else{var R=document.createElement("link");R.id="player-css";R.addEventListener("load",f);var u=_.b3(_.Tf("PLAYER_CSS_URL"));_.oa(R,u,"stylesheet");document.head.appendChild(R)}return xw5.promise};
$w2=function(){return Uwq()&&GjD()?Promise.resolve([]):Promise.all([oF0(),SSn()])};
gFD=function(f,R,u){var O={args:{}};f&&(O.args.raw_player_response=f);R&&(O.args.raw_watch_next_response=R);u&&(O.args=Object.assign({},O.args,u));return O};
YSq=function(f,R,u){var O=!1;O=O===void 0?!0:O;f=typeof f==="string"?_.vM(document,f):f;var c=sBB+"_"+_.cG(f),h=nFP[c];if(h&&O)return VJX(R,u)?h.api.loadVideoByPlayerVars(R.args||null):h.loadNewVideoConfig(R),h.api;h=new ie(f,c,R,u,void 0);nFP[c]=h;h.addOnDisposeCallback(function(){delete nFP[h.getId()]});
return h.api};
VJX=function(f,R){return R&&R.serializedExperimentFlags?R.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):f&&f.args&&f.args.fflags?f.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
vFl=function(){var f=new _.lj;f.resolved=!1;var R=f.resolve;f.resolve=function(u){f.resolved=!0;R(u)};
return f};
rc5=function(f){var R={};izP().install((R.document_disposed={callback:f},R))};
rx=function(f,R){if(!f&&Math.random()<=_.RV("kevlar_unified_player_logging_threshold")){f=Error("sh`"+(R?R:"Unspecified error"));if(_.E("kevlar_unified_player_throw_errors"))throw f;_.Ih(f)}};
_.fQn=function(){var f=_.Ph("ytDebugData.callbacks");f||(f={},_.V4("ytDebugData.callbacks",f));return f};
up5=function(f,R){var u=_.fQn();if(_.E("web_dd_iu")||RZn.includes(f))u[f]=R};
ODB=function(){return _.k(function(f){return f.return({isLeader:_.LZq(_.sP().getState()),c:_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Tf("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
cah=function(){var f;_.k(function(R){if(R.nextAddress==1)return up5("APP_STATE",ODB),_.A(R,_.vh().resolve(_.fr),2);f=R.yieldResult;up5("PI",function(){return _.k(function(u){return u.return(f.getVideoStats())})});
_.KG(R)})};
X40=function(f){var R=_.na(_.G4(_.Oe.location.href));f=_.na(_.G4(f));return _.E("kevlar_clear_non_displayable_url_params")?R==RA(f):RA(R)==RA(f)};
RA=function(f){var R=_.hZ7(f);f=f.slice(0);var u=["frags"];_.E("kevlar_hide_pp_url_param")&&u.push("pp");_.E("kevlar_hide_time_continue_url_param")&&u.push("time_continue");u=_.Z(u);for(var O=u.next();!O.done;O=u.next())O=O.value,f=_.Y7(_.na(f),O);return _.na(f)+(R?"#"+R:"")};
uA=function(f,R){R=Number(R)*1E3;var u=Math.round((0,_.iZ)()),O=u.toString();f={innertubeResponse:f,serverDateTimestampMs:O,lastModifiedTimestampMs:O,expireTimestampMs:(u+R).toString()};if(R=_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME"))f.clientName=R;return f};
lQn=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++ZDl};
_.k77=function(){var f=_.Jj(),R=_.z4();R&&f&&_.xE(R,[f],!0)};
qwh=function(f){return f&&KWt.some(function(R){return f.includes(R)})};
QZn=function(f){var R=_.t(f,_.oh);if(!R)return!1;var u=R.url,O=R.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!u)return _.TL(Error("xh")),!1;if(R.target==="TARGET_NEW_WINDOW"){var c={};_.E("resolve_url_parent_tracking_params")&&(!_.gv(u)||sC(window.location.href,u))&&(c={endpoint:f,itct:f.clickTrackingParams});lZn(c);f=null;try{if(O){a:{var h=u,l=c;O=O===void 0?!1:O;l&&_.VP(h,l);var K=_.EO(h),q=_.F3(K);h!=q&&_.UC(Error("$f`"+h));h=q;try{if(O){q=h;q=W6h(q);ek(q);f=_.zd(window,q,"_blank",
"attributionsrc");break a}}catch(W){_.IS(W)}ek(h);f=_.zd(window,K,"_blank")}Aa5(_.vh().resolve(aQP),f,u);return!0}}catch(W){_.TL(W)}_.VP(u,c);c={target:"_blank",noopener:_.E("set_window_noopener_ks")&&!R.allowOpener};R=window;K=aa(u)?u:_.EO(typeof u.href!="undefined"?u.href:String(u));f=self.crossOriginIsolated!==void 0;h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);q=c.noreferrer;if(f&&q&&h==="unsafe-url")throw Error("oe");h=q&&!f;q=c.target||u.target;O=
[];l=[];var F=!1;for(m in c){var w=c[m];switch(m){case "width":case "height":case "top":case "left":O.push(m+"="+w);break;case "target":break;case "noopener":case "noreferrer":w?l.push(m):(F=!0,l.push(m+"=false"));break;case "attributionsrc":O.push(m+(w?"="+w:""));break;default:O.push(m+"="+(w?1:0))}}var m=q!==void 0&&!["_blank","_self","_top","_parent",""].includes(q);m=DD()&&m;FW0&&f&&O.length===0&&l.length>0&&!m&&!F?(l.length===2&&(l=["noreferrer"]),_.zd(R,K,q,l[0]),f=w47()):(m=O.join(","),_.P0()&&
R.navigator&&R.navigator.standalone&&q&&q!="_self"?(m=_.mD("A"),Lj(m,K),m.target=q,h&&(m.rel="noreferrer"),((c=c.attributionsrc)||c==="")&&m.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"),c.initMouseEvent("click",!0,!0,R,1),m.dispatchEvent(c),m=w47()):h?(m=_.zd(R,"",q,m),R=_.F3(K),m&&(m.opener=null,R===""&&(R="javascript:''"),R='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Op(R)+'">',R=pj(R),(c=m.document)&&c.write&&(c.write(jy(R)),
c.close()))):((m=_.zd(R,K,q,m))&&c.noopener&&(m.opener=null),m&&c.noreferrer&&(m.opener=null)),f=m);Aa5(_.vh().resolve(aQP),f,u);return!0}m=_.Kt(u);m=qwh(m)||u==="https://studio.youtube.com/";R=!(!_.gv(u)||sC(window.location.href,u));c=u.indexOf("disable_polymer=1")>=0;if(R||c||m)ek(u),pv(),_.G$(u,void 0,void 0,window.top,mhe);else return _.Ih(new _.ts("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",f)),!1;return!0};
_.tqh=function(f,R){R=R===void 0?0:R;if(!(_.t(f,WW7)||_.t(f,E12)||_.t(f,_.oh)&&_.t(f,_.oh).url))return!1;var u,O=(u=_.t(f,_.oh))==null?void 0:u.url;u=O?{externalLinkData:{url:O}}:null;return _.wR().clickCommand(f,u,R)};
Con=function(f,R){return _.kZ(f.entities,"subscriptionStateEntity",R)};
ya2=function(f,R){return _.kZ(f.entities,"subscriptionNotificationStateEntity",R)};
dh0=function(f,R){return _.kZ(f.entities,"upcomingEventReminderStateEntity",R)};
NE7=function(f,R){return _.kZ(f.entities,"engagementToolbarSurfaceEntityPayload",R)};
LW5=function(f,R){return _.kZ(f.entities,"triStateButtonStateEntityPayload",R)};
bD7=function(f,R){return _.kZ(f.entities,"commerceCartCheckoutButtonEntity",R)};
_.p4n=function(f,R){return _.kZ(f.entities,"playlistLoopStateEntity",R)};
jZ2=function(f,R){return _.kZ(f.entities,"commandEntity",R)};
Jan=function(f,R,u,O,c){c=c===void 0?{}:c;return function(h){var l,K;var q=((l=f.loggingDirectives)==null?0:(K=l.clientVeSpec)==null?0:K.uiType)?_.dx(f.loggingDirectives.clientVeSpec.uiType):void 0;c.clickedVisualElement||(c.clickedVisualElement=q);q=DhB(f,R);u(q,h);q=_.Z(q);for(l=q.next();!l.done;l=q.next()){l=l.value;K=O;var F=h,w=c;w.form?w.form.event=F:w.form={element:K,event:F};ym(l,w)}}};
DhB=function(f,R){var u=[];R?(f.toggledCommand&&u.push(f.toggledCommand),f.toggledServiceEndpoint&&u.push(f.toggledServiceEndpoint)):(f.defaultCommand&&u.push(f.defaultCommand),f.defaultServiceEndpoint&&u.push(f.defaultServiceEndpoint),f.defaultNavigationEndpoint&&u.push(f.defaultNavigationEndpoint));return u};
zZ2=function(f,R){var u=f.toggledStyle||f.style,O;switch((O=R?u:f.style)==null?void 0:O.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"}}};
_.cJ=function(){return _.k(function(f){return f.nextAddress==1?_.A(f,_.vh().resolve(_.fr),2):f.return(_.vh().resolve(TE5)())})};
_.Xk=function(){return _.vh().resolve(TE5)()};
_.ZR=function(){return pQ(function(){return{lottieEl:void 0}})};
HDn=function(f,R){return f.startsWith(R.uniqueId)};
IQD=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,_.cJ(),2);R=O.yieldResult;if((u=R)==null||!u.addEventListener)return lA(),O.return();R.addEventListener("onCueRangeEnter",f);_.KG(O)})};
Mql=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,_.cJ(),2);R=O.yieldResult;if((u=R)==null||!u.removeEventListener)return lA(),O.return();R.removeEventListener("onCueRangeEnter",f);_.KG(O)})};
Pon=function(f){var R,u,O,c,h;_.k(function(l){if(l.nextAddress==1)return _.A(l,_.cJ(),2);R=l.yieldResult;if((u=R)==null||!u.addCueRange)return lA(),l.return();O=_.Z(f.timings);for(c=O.next();!c.done;c=O.next())h=c.value,R.addCueRange(f.uniqueId+"-"+h,h/1E3,(h+100)/1E3);_.KG(l)})};
Uh2=function(f){var R,u,O,c,h;_.k(function(l){if(l.nextAddress==1)return _.A(l,_.cJ(),2);R=l.yieldResult;if((u=R)==null||!u.removeCueRange)return lA(),l.return();O=_.Z(f.timings);for(c=O.next();!c.done;c=O.next())h=c.value,R.removeCueRange(f.uniqueId+"-"+h);_.KG(l)})};
eZh=function(){var f,R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.cJ(),2);f=O.yieldResult;if((R=f)==null||!R.getPlayerState)return lA(),O.return();u=f.getPlayerState();return O.return(u===2)})};
lA=function(){_.Ih(new _.ts("Smartimation player does not exist or is corrupted"))};
G7t=function(){try{var f;return(f=window.CSS)!=null&&f.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(R){return _.Ih(new _.ts("Smartimation CSS.supports threw an error")),!1}};
sZB=function(f,R,u,O,c){var h=f.playlistId?BEq:o12;R=R();u=u();c=!!f.videoId&&c()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.WW(R))return xhq({data:f,actionType:h,disabled:c},u);if(f.videoId&&O())return Swn({data:f,actionType:h,disabled:c});switch(R){case "TRANSFER_STATE_UNKNOWN":return Swn({data:f,actionType:h,disabled:c});case "TRANSFER_STATE_FAILED":return f.videoId?$hn({data:f,actionType:h,disabled:c}):g1D({data:f,actionType:h,disabled:c});case "TRANSFER_STATE_COMPLETE":return g1D({data:f,
actionType:h,disabled:c});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return xhq({data:f,actionType:h,disabled:c},u);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return f.videoId?$hn({data:f,actionType:h,disabled:c}):Swn({data:f,actionType:h,disabled:c});default:return Swn({data:f,actionType:h,disabled:c})}};
n10=function(f,R){var u=f.onTapCommand,O=_.H7(u);if(f.videoId&&_.t(O,_.kO))return _.t(O,_.kO).action=R,u;f.playlistId&&_.t(O,_.Kr)&&(_.t(O,_.Kr).action=R);return u};
Swn=function(f){var R=f.data;var u=f.actionType;f=f.disabled;return{text:Vql,iconType:"OFFLINE_DOWNLOAD",onTap:n10(R,u.ACTION_ADD),disabled:f}};
xhq=function(f,R){var u=f.data;var O=f.actionType;f=f.disabled;var c="OFFLINE_DOWNLOAD";R>=0&&R<=.1?c="OFFLINE_DOWNLOADING_ZERO":R>.1&&R<=.3?c="OFFLINE_DOWNLOADING_TWENTY":R>.3&&R<=.5?c="OFFLINE_DOWNLOADING_FORTY":R>.5&&R<=.7?c="OFFLINE_DOWNLOADING_SIXTY":R>.7&&R<1?c="OFFLINE_DOWNLOADING_EIGHTY":R===1&&(c="OFFLINE_PIN");return{text:YwX,iconType:c,onTap:n10(u,O.ACTION_REMOVE_WITH_PROMPT),disabled:f}};
g1D=function(f){var R=f.data;var u=f.actionType;f=f.disabled;return{text:v1P,iconType:"OFFLINE_PIN",onTap:n10(R,u.ACTION_REMOVE_WITH_PROMPT),disabled:f}};
$hn=function(f){var R=f.data;var u=f.actionType;f=f.disabled;return{text:iDP,iconType:"OFFLINE_DOWNLOAD",onTap:n10(R,u.ACTION_RETRY),disabled:f}};
uBn=function(f){var R=rat;fGP.push(f);R3q||(R(function(){for(var u=_.Z(fGP),O=u.next();!O.done;O=u.next())O=O.value,O();fGP.length=0;R3q=!1}),R3q=!0)};
rat=function(f){Promise.resolve().then(f)};
qp=function(f){f=_.Z(ZL7(f));var R=f.next().value,u=f.next().value,O=!1;_.bt(function(){return function(){O=!0}});
return[R,function(c){uBn(function(){O&&!_.E("cow_prevent_state_setter_after_cleanup_killswitch")||u(c)})}]};
Oxq=function(){var f=_.Z(qp(!1)),R=f.next().value,u=f.next().value;return function(){u(!R)}};
c60=function(f){return pQ(function(){return{value:f}})};
XHe=function(f,R){var u=c60(f),O=c60(R);LQ(function(){u.value=f},[f]);
LQ(function(){O.value=R},R&&R.length>=1?R:[void 0]);
var c=pQ(function(){return{value:void 0}});
if(f!==u.value||O.value!==R||c.value===void 0)c.value=Sw(f,R);var h=Oxq();_.bt(function(){function l(){var q=Sw(u.value,R);q!==c.value&&(c.value=q,h())}
var K=_.xs().subscribe(l);l();return K});
return c.value};
_.Ax=function(f,R){var u=iOD();return _.Qt(function(){u();return Sw(f,[_.Jy(R)||""])},void 0,"HaeHEc")};
h32=function(f){var R=_.Ax(_.Te,function(){return f().videoId}),u=_.Ax(_.HW,function(){return f().playlistId});
return function(){return f().videoId?R:f().playlistId?u:_.Z(_.qK("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Zx2=function(f){var R=_.Ax(IL,function(){return f().videoId}),u=_.Ax(_.NSl,function(){return f().playlistId});
return function(){return f().videoId?R:f().playlistId?u:_.Z(_.qK(0,void 0,"K4tgOc")).next().value}};
lGe=function(f){var R=_.Ax(_.TSe,function(){return f().videoId});
return function(){return f().videoId?R:_.Z(_.qK(!1,void 0,"Oaxwcf")).next().value}};
kvl=function(f){var R=_.Ax(pY0,function(){return f().videoId});
return function(){return f().videoId?R:_.Z(_.qK("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
KEn=function(){return{}};
q9D=function(){var f,R;return(R=(f=_.vh().resolve(_.Y8(_.oF)))==null?void 0:f())!=null?R:!1};
aGD=function(f,R){f=f===void 0?A62:f;switch(R.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},f,{isOpen:R.payload});default:return f}};
wH7=function(f,R){f=f===void 0?FE0:f;switch(R.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},f,{isAllowed:R.payload});default:return f}};
QeX=function(f,R){f=f===void 0?mbl:f;switch(R.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},f,{errorMessage:R.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},f,{title:R.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},f,{privacy:R.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},f,{isDisabled:R.payload});default:return f}};
EW0=function(f,R){f=f===void 0?WEX:f;switch(R.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},f,{isOpen:R.payload});default:return f}};
C6t=function(f,R){f=f===void 0?tKl:f;switch(R.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},f,{isFullscreen:R.payload});case "SET_NAVIGATION_BUTTON":var u=R.payload.targetId,O=Object.assign({},f.navigationButtons);O[u]=R.payload.button;return Object.assign({},f,{navigationButtons:O});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},f,{topPanelId:R.payload});case "SET_SECONDARY_HEADER":return u=R.payload.panelId,O=Object.assign({},f.secondaryHeader),O[u]=R.payload.secondaryHeader,
Object.assign({},f,{secondaryHeader:O});default:return f}};
LE7=function(){return Aj(Object.assign({},{entities:Xe2,voiceSearch:Wu0,engagementPanel:C6t,bottomSheet:aGD,cinematicSetting:wH7,shorts:bit,drawerLayout:EW0,createPlaylist:QeX,locationCollection:y60,reportChannel:dbP,reportForm:N1q},p1X))};
bxP=function(f,R){_.JA.addLowPriorityJob(function(){var u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return _.cl(h,2),_.A(h,DND(),4);case 4:return _.A(h,fetch(f),5);case 5:return u=h.yieldResult,_.A(h,u.json(),6);case 6:O=h.yieldResult;kG.set(f,O);requestAnimationFrame(function(){R(O)});
_.Bf(h,0);break;case 2:c=_.ku(h),_.Ih(c),_.KG(h)}})})};
pH7=function(f){var R={animationConfig:{},listeners:{}},u=function(){f(!0)};
R.listeners.data_failed=u;R.listeners.error=u;R.listeners.data_ready=function(){f(!1)};
return R};
J67=function(f){var R=f.model;var u=f.subscribed;var O=f.isOverlay;var c=f.element;var h=f.commandController;var l=f.notificationState;if(u){var K,q;var F=(R==null?void 0:(K=R.buttonStyle)==null?void 0:K.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:R==null?void 0:(q=R.unsubscribeButtonContent)==null?void 0:q.buttonText}else{var w;F=R==null?void 0:(w=R.subscribeButtonContent)==null?void 0:w.buttonText}a:{var m;switch(R==null?void 0:(m=R.buttonStyle)==
null?void 0:m.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":K="S";break a;default:K="M"}}a:if(O)O="overlay";else switch(R.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":O="overlay";break a;default:O="mono"}a:if(u)var W="tonal";else switch((W=R.buttonStyle)==
null?void 0:W.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":W="tonal";break a;default:W="filled"}return{style:O,type:W,state:R.disableSubscribeButton?"disabled":"active",size:K,focused:f.focused,toggled:u,accessibilityLabel:jeB(R,u,l),buttonText:F,iconPosition:R.disableNotificationBell?"none":"leading-trailing",onTap:Db2(R,u,c,h),disableTextEllipsis:!!f.disableTextEllipsis}};
Db2=function(f,R,u,O){return function(c){if(R){var h;var l=f.disableNotificationBell?_.H7(f==null?void 0:(h=f.unsubscribeButtonContent)==null?void 0:h.onTapCommand):_.H7(f==null?void 0:f.onShowSubscriptionOptions)}else{var K;l=_.H7(f==null?void 0:(K=f.subscribeButtonContent)==null?void 0:K.onTapCommand)}l&&ym(l,{form:{element:u==null?void 0:u.value},commandController:O});c.stopPropagation()}};
jeB=function(f,R,u){if(R){if(f==null?0:f.disableNotificationBell){var O;return f==null?void 0:(O=f.unsubscribeButtonContent)==null?void 0:O.accessibilityText}switch(u){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var c;return f==null?void 0:(c=f.bellAccessibilityData)==null?void 0:c.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var h;return f==null?void 0:(h=f.bellAccessibilityData)==null?void 0:h.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var l;return f==null?void 0:(l=
f.bellAccessibilityData)==null?void 0:l.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var K;return f==null?void 0:(K=f.bellAccessibilityData)==null?void 0:K.disabledLabel;default:var q;return f==null?void 0:(q=f.unsubscribeButtonContent)==null?void 0:q.accessibilityText}}else{var F;return f==null?void 0:(F=f.subscribeButtonContent)==null?void 0:F.accessibilityText}};
z3h=function(f){if(f){switch(f){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":f="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":f="NOTIFICATIONS_OFF";break;default:f="NOTIFICATIONS_NONE"}return f}};
T10=function(f,R,u){u.subscribed!==R&&((u=u.key)&&_.$s(_.aA("subscriptionStateEntity",u,{key:u,subscribed:R})),f.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:R})),R||_.OJ(f,"yt-unsubscribe-action"))};
IGe=function(f){f=_.t(_.H7(f),_.Fk);var R,u,O,c;return(c=_.t(f==null?void 0:(R=f.panelLoadingStrategy)==null?void 0:(u=R.inlineContent)==null?void 0:(O=u.sheetViewModel)==null?void 0:O.content,Hx7))==null?void 0:c.listItems};
MK2=function(f,R){if(f.onShowSubscriptionOptions&&R&&(f=IGe(f.onShowSubscriptionOptions),f!=null&&f.length)){var u=z3h(R);f.forEach(function(O){O=_.t(O,_.wW);var c,h,l,K,q=O==null?void 0:(c=O.leadingImage)==null?void 0:(h=c.sources)==null?void 0:(l=h[0])==null?void 0:(K=l.clientResource)==null?void 0:K.imageName;O&&q&&(O.isSelected=q===u)})}};
P6P=function(f,R,u,O){R&&u?f.style.width=u+"px":!R&&O&&(f.style.width=O+"px")};
UbP=function(f,R,u){var O;(O=f.lottieEl)==null||O.goToAndPlay(0);var c;(c=R.lottieEl)==null||c.goToAndPlay(0);_.mQ(_.JA,function(){var h;(h=u.lottieEl)==null||h.goToAndPlay(0)},300)};
Q5=function(){return _.vh().resolve(_.Y8(e37))||{}};
Gvt=function(f){return typeof f==="function"};
_.WJ=function(f){Object.keys(f);var R=function(u,O){var c=R.mapping||f;if(!u)return _.a(_.RS,null);if(Array.isArray(u)&&(u=B15(c,R,u),Array.isArray(u))){if(!u.length)return _.a(_.RS,null);if(u.length>1){for(var h=!1,l=!1,K=[],q={},F=0;F<u.length;q={data$jscomp$1841:void 0},F++)if(q.data$jscomp$1841=u[F],q.data$jscomp$1841){var w=oW5(q.data$jscomp$1841,c),m=w.mappingEntry;w=w.rendererName;m&&w&&(m&&(!Gvt(m)&&xb2(m)&&(l=!0),!Gvt(m)&&m.asyncId||(h=!0)),K.push(S9q(q.data$jscomp$1841,m,w,R,O)))}return l&&
!h?_.a(_.RS,null,$b0()):_.a(_.RS,null,K)}u=u[0]}if(!u)return _.a(_.RS,null);u=B15(c,R,[u])[0];if(!u)return _.a(_.RS,null);h=oW5(u,c);c=h.mappingEntry;h=h.rendererName;return c&&h?_.a(_.RS,null,S9q(u,c,h,R,O)):_.a(_.RS,null)};
R.mapping=f;return R};
_.gWh=function(f){var R=void 0,u;for(u in f)if(f.hasOwnProperty(u)){R=u;break}return R};
B15=function(f,R,u){var O,c=(O=Q5().preProcessOptions)==null?void 0:O.idomOptions;if(!c)return u;Q5();return c.preProcessPropsIdom(f,u,R.triggerRerender)};
oW5=function(f,R){return(f=_.gWh(f))?{mappingEntry:R[f],rendererName:f}:{mappingEntry:void 0,rendererName:void 0}};
S9q=function(f,R,u,O,c){if(!R)return _.a(_.RS,null);var h={};c&&c[u]&&(h=Object.assign({},c[u]));f[u]!==void 0&&(h.data=f[u]);if(Gvt(R))return R.debugName||(R.debugName=u),_.a(R,h);R.asyncId&&(O.pendingIdsMap=O.pendingIdsMap||{},O.pendingIdsMap[u]=R.asyncId);return R.templateFn?R.templateFn(h):xb2(R)?$b0():_.a(_.RS,null)};
xb2=function(f){var R;return(R=f.showPlaceholder)!=null?R:Q5().defaultShowPlaceholder};
$b0=function(){var f=Q5().placeholder;return f()};
seD=function(f,R){R=R===void 0?{shouldPersist:!0}:R;return{useUpdatableData:function(u,O){var c=[],h=_.Z(_.m8(function(){var F=u();if(O!=null&&O.length&&c){var w=c.length>0;for(var m=!1,W=0;W<O.length;W++){var C=O[W]();w&&C!==c[W]&&(m=!0);c[W]=C}w=m}else w=!1;if(w)_.Ep.remove(q());else if(w=_.Ep.get(q()))return w;return F})),l=h.next().value,K=h.next().value,q=_.Qt(function(){return f(u())},void 0,"VFraLb");
_.pc(function(){if(q()!=null){tx.set(q(),[l,K,!1]);var F=q();_.jN(function(){tx.delete(F)})}});
return[l,function(F){K(F);R.shouldPersist&&_.Ep.set(q(),F)}]},
getData:function(u){var O;return(O=tx.get(f(u)))==null?void 0:O[0]()},
updateData:function(u,O){u=f(u);var c=tx.get(u);if(!c)return!1;var h=_.Z(c);c=h.next().value;h=h.next().value;O=O(c());h(O);R.shouldPersist&&_.Ep.set(u,O);return!0},
useUpdatableDataIdom:function(u,O){var c=f(u),h=_.Ep.get(c),l=_.Z(qp(h!=null?h:u)),K=l.next().value,q=l.next().value,F=j0(h!=null?h:u);LQ(function(){if(c!=null)return tx.set(c,[function(){return F.value},
function(w){q(w);F.value=w},
tx.has(c)]),_.JA.addJob(function(){_.Cr(_.JA,function(){var w=tx.get(c);w&&(w[2]=!1)},0)},8),function(){var w;
((w=tx.get(c))==null?0:w[2])||tx.delete(c)}},[c]);
LQ(function(){K!==u&&(q(u),F.value=u)},O?[].concat(_.yq(O),[c]):[c]);
return[K,q]}}};
nW5=function(f){var R=_.Z(_.qK(!0,void 0,"bKtO6d")),u=R.next().value;R.next();return function(){var O=aS(f.children());return _.a(_.Q,{cond:u,then:function(){return O},
else:f.fallback})}()};
_.y5=function(f){var R=VK7(f),u=R.data,O=R.mapping,c=R.wrapper;R=R.pendingFallback;var h=function(){return Y9P(_.Jy(u))},l=function(){var K=h(),q=[];
K=_.Z(K);for(var F=K.next();!F.done;F=K.next()){var w=void 0;F=F.value;var m=void 0;for(w in F)if(!(!F).hasOwnProperty(w)){m=w;break}(w=m)&&q.push(w)}return q};
return f.data?_.a(nW5,{fallback:R},function(){return _.a(_.EC,{each:l},function(K,q){var F=c?function(m){return c(function(){return O[K](m,q)},w,q)}:function(m){return O[K](m,q)};
F.debugName||(F.debugName=String(K));if(!O[String(K)])return document.createComment("");var w=vWD(h,K,q);return _.a(F,{data:w})})}):_.a(_.RS,null)};
VK7=function(f){var R=f.targetId||ix7(f.children);if(!f.data||!R||_.E("mweb_new_replaceables_killswitch"))return Object.assign({},f,{mapping:f.children,wrapper:void 0});var u="stamper-"+r6e++,O=function(){var K;return(K=_.Jy(f.targetId))!=null?K:u};
R=_.Z(f6n(function(){var K=Y9P(f.data());K.targetId=O;return K})).next().value;
var c=Object.assign({},Q5().replaceableMapping,f.children);if(f.replacementWrapper){var h=c.notificationTextRenderer,l=c.notificationMultiActionRenderer;h&&(c.notificationTextRenderer=function(K,q){return f.replacementWrapper(h({data:K.data},q))});
l&&(c.notificationMultiActionRenderer=function(K,q){return f.replacementWrapper(l({data:K.data},q))})}return Object.assign({},f,{data:R,
mapping:c,wrapper:function(K,q,F){return tcn({targetId:O,stamperIndex:F},K)}})};
vWD=function(f,R,u){var O;return _.Qt(function(){var c=f()[u()];if(c)O=c[R];else return _.Ih(new _.ts("Stamper failed to find "+String(R)+" at index "+u()+" of data array of length "+(f().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),O;return c[R]},void 0,"DHuMIe")};
ix7=function(f){f=_.Z(Object.keys(f));for(var R=f.next();!R.done;R=f.next())if(R=R.value,RsB.includes(R)||u9t.includes(R)||Ow7.includes(R))return!0;return!1};
Y9P=function(f){return f?Array.isArray(f)?f:[f]:[]};
czB=function(f){f=_.t(f,_.dW);return(f==null?void 0:f.iconName)&&!(f==null?0:f.title)};
Zwq=function(f,R,u){var O;return _.a(_.RS,null,f==null?void 0:(O=f.actions)==null?void 0:O.map(function(c){return _.a("div",{class:function(){var h={"yt-flexible-actions-view-model-wiz__action":!0};h["yt-flexible-actions-view-model-wiz__action--row-action"]=R;h["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(czB(c))var l=!0;else if(l=_.t(c,_.Np),(l==null?0:l.isToggled)&&czB(l==null?void 0:l.toggledButtonViewModel)||(l==null||!l.isToggled)&&czB(l==null?void 0:l.defaultButtonViewModel))l=
!0;else{var K;l=((K=_.t(c,XSn))==null?0:K.playlistId)?!0:!1}h=(h["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=l,h["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=u,h);return _.AS(h)}},hse([c],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!R}}))}))};
l67=function(f){var R=f.layout===1,u,O=((u=f.data)==null?void 0:u.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";u={};O=(u["yt-flexible-actions-view-model-wiz"]=!0,u["yt-flexible-actions-view-model-wiz--inline"]=!R,u["yt-flexible-actions-view-model-wiz--scrollable"]=O,u);var c,h;return _.a("yt-flexible-actions-view-model",{class:_.AS(f.className,O)},(c=f.data)==null?void 0:(h=c.actionsRows)==null?void 0:h.map(function(l){if(R){var K;return _.a("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Zwq(l,R,!((K=f.data)==null||!K.respectActionIntrinsicWidth)))}return Zwq(l,R,!1)}))};
kFe=function(f){return!(f==null||!f.iconName||(f==null?0:f.title))};
KKh=function(f){var R=_.t(f.data.toggleButtonViewModel,_.Np),u,O=(u=f.data.dislikeEntityKey)!=null?u:"",c=XHe(zw,[O]);R=Object.assign({},R,{isToggled:c?c.likeStatus==="DISLIKE":R.isToggled});return _.a("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.a(_.Lr,{data:R,buttonShapeOverrides:f.buttonShapeOverrideables,onToggle:function(h){c&&h!==(c.likeStatus==="DISLIKE")&&c.key&&_.$s(_.bA("likeStatusEntity",c.key,{likeStatus:h?"DISLIKE":"INDIFFERENT",hadUserInteraction:h}))}}))};
AzP=function(f){var R=_.E("web_supports_animations_api"),u=_.t(f.data.toggleButtonViewModel,_.Np),O,c,h,l,K=_.Z(qp({numberText:(l=(O=f.likeCountEntity)==null?void 0:(c=O.likeCountIfIndifferent)==null?void 0:c.content)!=null?l:"",numberValue:Number((h=f.likeCountEntity)==null?void 0:h.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),q=K.next().value,F=K.next().value,w,m,W,C;O=_.Z(qp({numberText:(C=(w=f.likeCountEntity)==null?void 0:(m=w.likeCountIfLiked)==null?void 0:m.content)!=null?
C:"",numberValue:Number((W=f.likeCountEntity)==null?void 0:W.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));w=O.next().value;var d=O.next().value;m=_.Z(qp());var p=m.next().value,J=m.next().value,M;m=(M=f.data.likeStatusEntityKey)!=null?M:"";var P,g;M=(g=(P=f.likeCountEntity)==null?void 0:P.key)!=null?g:"";var x=XHe(zw,[m]),fh=XHe(rPn,[M]);P=laP(function(){return(x==null?void 0:x.likeStatus)==="LIKE"},[x]);
LQ(function(){var V,ZD=fh&&((V=fh.likeCountIfIndifferent)==null?void 0:V.content)!==q.numberText;if(!p&&ZD){var mP,NX;F({numberText:(NX=fh==null?void 0:(mP=fh.likeCountIfIndifferent)==null?void 0:mP.content)!=null?NX:"",numberValue:Number(fh==null?void 0:fh.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var jt,Jn;d({numberText:(Jn=fh==null?void 0:(jt=fh.likeCountIfLiked)==null?void 0:jt.content)!=null?Jn:"",numberValue:Number(fh==null?void 0:fh.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[fh]);
u=Object.assign({},u,{isToggled:P});R=R&&f.likeCountEntity;return _.a("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.a(_.Lr,{data:u,buttonShapeOverrides:f.buttonShapeOverrideables,animatedTextPropsDefault:R?q:void 0,animatedTextPropsToggled:R?w:void 0,onToggle:function(V){qo5(V,x,p,J)},
style:function(){return f.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
qo5=function(f,R,u,O){u&&_.JA.cancelJob(u);u=_.JA.addLowPriorityJob(function(){O(void 0)},5E3);
O(u);R&&f!==(R.likeStatus==="LIKE")&&R.key&&_.$s(_.aA("likeStatusEntity",R.key,{key:R.key,likeStatus:f?"LIKE":"INDIFFERENT",hadUserInteraction:f}))};
a6e=function(f,R,u,O){u&&_.JA.cancelJob(u);u=_.JA.addLowPriorityJob(function(){O(void 0)},5E3);
O(u);R&&f!==(R.likeStatus==="LIKE")&&R.key&&_.$s(_.aA("likeStatusEntity",R.key,{key:R.key,likeStatus:f?"LIKE":"INDIFFERENT",hadUserInteraction:f}))};
m3e=function(f){var R,u=_.t((R=f.data)==null?void 0:R.likeButtonViewModel,_.pr),O;R=_.t((O=f.data)==null?void 0:O.dislikeButtonViewModel,_.jP);var c,h=(c=XHe(zw,[(u==null?void 0:u.likeStatusEntityKey)||""]))!=null?c:u==null?void 0:u.likeStatusEntity;O=laP(function(){var l=f.data,K;l=(l==null?void 0:(K=l.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:l,enabled:(h==null?void 0:h.likeStatus)==="INDIFFERENT"&&l.length>0,experimentEnabled:l.length>0}},[f.data,
h]);return _.a("segmented-like-dislike-button-view-model",{class:_.AS(f.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.a(DR,{settings:O},_.a("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},u?_.a(FK7,{data:u,likeCountEntity:f.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,R?_.a(wSt,{data:R,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Qcq=function(f,R){var u=nv(f)||{layerNode:R};u.layerNode=R;pqh(f,u);f.getScreenLayer=function(){return Jx(u.layerNode)}};
WKe=function(f){var R;f=f.parentNode;for(var u;f&&((R=nv(f))==null||!R.isRenderer)&&!((u=f.polymerController)!=null?u:f).isRenderer_;)f=f.parentNode||f.host;if(R=f)return nv(R)};
ELn=function(f){if(f){sJ.delete(f);var R=_.vh().resolve(rJ);DY7(f,R)}};
CMB=function(f,R,u){if(u===void 0?0:u){if(u=f.getAttribute("client-ve-type"),R.data&&!R.disableReactiveLogging||u)_.zo(function(){tS5(f,_.Jy(R.data))}),_.jN(function(){return void ELn(f)})}else typeof R.data!=="function"&&tS5(f,R.data)};
tS5=function(f,R){yzq++;d32(f,R)&&_.JA.addJob(function(){_.Cr(_.JA,function(){if(d32(f,R)&&f.ownerDocument.documentElement===document.documentElement&&f){var u;if(f.getAttribute("layer")){var O=u=Number(f.getAttribute("layer")),c=nv(f);c?c.layerNode.layer=O:Qcq(f,new NKB(O));(O=WKe(f))&&(c=nv(f))!=null&&(c.layerNode.parent=O.layerNode)}else if(u=nv(f))u=Jx(u.layerNode);else{u=Jx;O=new NKB;if(c=WKe(f))O.parent=c.layerNode;Qcq(f,O);u=u(O)}u!=null||(u=0);O=f.getAttribute("client-ve-type");c=Number(O);
var h=!1;O=!1;var l=nv(f),K;if((K=l)&&!(K=l[zS]!==R)&&(K=c)){var q;K=((q=sJ.get(f))==null?void 0:q.clientVeType)===void 0}K&&(l[zS]=R,h=O=l.isRenderer=!0);sJ.has(f)&&(sJ.get(f).clientVeType=c);f.visualElement&&(O=!0);if(_.E("wiz_next_ld_fix_client_ve_spec")){var F;q=((F=_.t(R==null?void 0:R.rendererContext,_.mi))==null?void 0:F.loggingDirectives)||(R==null?void 0:R.loggingDirectives)}else q=R==null?void 0:R.loggingDirectives;q&&q.clientVeSpec&&(F=LKt(_.aF(),f),F=_.bw7(_.wR(),q,F||void 0,u))&&(f.visualElement=
F);!f.visualElement&&c&&h&&(f.veType=c,F=void 0,_.E("wiz_next_client_ve_parent_fix")&&(F=LKt(_.aF(),f)),F=_.Fy(_.wR(),f,F,u),f.visualElement=F);O&&(F=_.vh().resolve(rJ),HF0(f,{data:R,observer:F,layer:u,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
d32=function(f,R){return(R==null?0:R.trackingParams)||(R==null?0:R.loggingDirectives)||_.t(R==null?void 0:R.rendererContext,_.mi)||f.getAttribute("client-ve-type")?!0:!1};
jcn=function(f){return _.E("cow_logging_in_component_wrapper")?function(R){CMB(R,f,!0)}:pSP};
pSP=function(){};
_.D3D=function(f,R){return _.kZ(f.entities,"accountLinkStatusEntity",R)};
Jz7=function(f,R){return _.kZ(f.entities,"hatsSurveyEntity",R)};
zsD=function(f,R){return _.kZ(f.entities,"hatsSurveyStateEntity",R)};
TKe=function(f,R){return _.kZ(f.entities,"quantityIncrementerEntity",R)};
U3h=function(f){var R=f.data;var u=f.className===void 0?"":f.className;var O=f.setMinWidth;f=f.forceIconOnly;var c=_.sW(jcn({data:R}));O=O?"ytwAccountLinkButtonViewModelHostMinWidth":"";var h=_.Ax(_.D3D,function(){var m;return(m=_.Jy(R).accountLinkStatusEntityKey)!=null?m:""}),l=_.Ax(_.D3D,function(){var m;
return(m=_.Jy(R).accountLinkStatusSecondaryEntityKey)!=null?m:""}),K=function(){if(!_.E("web_account_link_secondary_killswitch")){var m,W;
return((m=h())==null?void 0:m.linked)||((W=l())==null?void 0:W.linked)}var C;return(C=h())==null?void 0:C.linked};
_.pc(function(){var m=h();if(m){var W=Hwq(new I60,MSl(new PM2,!!m.linked));_.cJ().then(function(C){C&&(C.setAccountLinkState(_.fE(W.JSC$10068_serializeBinary(),4)),C.updateAccountLinkingConfig(!!m.linked))})}});
var q=function(){return _.t(_.Jy(R).toggleButtonViewModel,_.Np)};
_.gJ("yt-signal-action-show-account-link-dialog",function(){if(q()){var m=K()?q().toggledButtonViewModel:q().defaultButtonViewModel;m=_.t(m,_.dW);var W;if((W=h())==null?0:W.isWarning){W=_.t(_.Jy(R).warningButtonViewModel,_.dW);if(!W){_.UC(Error("yh"));return}m=W}var C;(W=_.H7((C=m)==null?void 0:C.onTap))&&_.q5([W],c.value)}else _.UC(Error("zh"))});
var F=function(){var m=q();return Object.assign({},m,{isToggled:K()})},w=f?{iconPosition:"icon-only"}:{};
return _.a("account-link-button-view-model",{class:_.KL("ytwAccountLinkButtonViewModelHost",function(){return _.Jy(u)},O),
el:c,"button-renderer":!0},_.a("div",null,_.a(_.Q,{cond:function(){var m;if((m=h())==null?0:m.isWarning)return(m=_.t(_.Jy(R).warningButtonViewModel,_.dW))||_.UC(Error("yh")),m},
then:function(m){return _.a(_.TS,{data:m,buttonOverrides:w})},
else:function(){return _.a(_.Lr,{data:F,buttonShapeOverrides:w})}})))};
es2=function(f){switch(f){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
GF7=function(f){switch(f){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}};
BK7=function(f){switch(f){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.x3q=function(f){var R=_.RV("web_generic_client_event_wait_period ",0);R||(R=3E5);var u=oL7.get(f);!_.E("enable_web_client_experiment_event_timeout_killswitch")&&u&&(0,_.iZ)()-u<R||(oL7.set(f,(0,_.iZ)()),_.Jr("genericClientExperimentEvent",{eventType:f}))};
SoP=function(f){switch(f){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
$3B=function(f){if(!f)return"";var R,u=(R=_.vh().resolve(_.Y8(_.oF)))==null?void 0:R(),O;if(!u&&((O=f.vibrantColorPalette)==null?0:O.iconInactiveColor))return PL(f.vibrantColorPalette.iconInactiveColor,"1");var c;return u&&((c=f.darkColorPalette)==null?0:c.iconInactiveColor)?PL(f.darkColorPalette.iconInactiveColor,"1"):f.color?PL(f.color,"1"):f.sampledThumbnailColor?(f=f.sampledThumbnailColor,"rgba("+f.red+","+f.green+","+f.blue+");"):""};
_.HJ=function(f,R){if(!f.includes("DATE_PLACEHOLDER"))return f;var u=new Date(0);u.setUTCSeconds(R);return f.replace("DATE_PLACEHOLDER",gL0(u))};
_.IA=function(f){return f!=null&&f.watch?f.watch.isTheaterMode:!1};
_.Mp=function(f){return f!=null&&f.watch?f.watch.isWatchFullscreen:!1};
_.PJ=function(f){f=_.sc2(f);return _.E("web_watch_enable_single_column_grid_view")?f:!1};
_.sc2=function(f){return f.watch.isWatchNarrowWidth};
nLn=function(f,R,u){return function(O){var c=f.command;c&&(ym(c,{form:{element:u}}),R([c],O))}};
Yo7=function(f,R,u,O,c){return function(h){var l=VSn(f,u);l&&ym(l,{form:{element:O},commandController:c});R&&R.stopPropagation&&h.stopPropagation()}};
VSn=function(f,R){if(f.signInEndpoint&&!_.E("web_subscribe_sign_in_endpoint_killswitch"))return f.signInEndpoint;if(R){if(f.serviceEndpoints)return f.serviceEndpoints[1];if(f.onUnsubscribeEndpoints)return f.onUnsubscribeEndpoints[0]}else{if(f.serviceEndpoints)return f.serviceEndpoints[0];if(f.onSubscribeEndpoints)return f.onSubscribeEndpoints[0]}};
vLP=function(f,R){var u,O,c,h;R=R&&((u=f.unsubscribeAccessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)||((c=f.subscribeAccessibility)==null?void 0:(h=c.accessibilityData)==null?void 0:h.label);return f.longSubscriberCountText?[R,_.$Z(f.longSubscriberCountText)].filter(function(l){return l}).join(" "):R};
Up=function(f,R){return R||(f==null?0:f.isChannelDelegate)?"disabled":"active"};
iwP=function(f,R){var u;switch((u=f.style)==null?void 0:u.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Up(f)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Up(f)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Up(f,!0)};case "OVERLAY":return R?{style:"overlay",type:"tonal",state:Up(f)}:{style:"overlay",type:"filled",state:Up(f)};default:return R?{style:"mono",type:"tonal",state:Up(f)}:{style:"mono",type:"filled",state:Up(f)}}};
rze=function(f,R){var u=f.map(function(O){return O.toString()});
return _.Ff(function(O){if(u.includes(O.key)){R&&O.preventDefault();var c;(c=O.currentTarget)==null||c.click()}})};
_.fiB=function(){return rze(["Enter"])};
_.RbB=function(){return rze(["Enter"," "],!0)};
_.eP=function(f){if(f.composedPath)return f.composedPath();if(!f.__composedPath){for(var R=[],u=f.target;u;)R.push(u),u=u.parentNode;R.push(window);f.__composedPath=R}return f.__composedPath};
_.GS=function(f,R,u){f=_.Z(f);for(var O=f.next();!O.done;O=f.next()){O=O.value;if(O===R)break;for(var c=_.Z(u),h=c.next();!h.done;h=c.next())if(h=h.value,O.tagName===h||O.role==="button"&&h==="BUTTON")return!0}return!1};
O47=function(f,R){var u,O=(u=R.observer)!=null?u:_.vh().resolve(rJ);if(f){u=ud0(f);var c=[];R.showOption&&c.push(O.observe(f,function(){R.visibilityCallback(!0)},R.showOption));
R.hideOption&&c.push(O.observe(f,function(){R.visibilityCallback(!1)},R.hideOption));
R.prescanOption&&R.prescanCallback&&c.push(O.observe(f,function(){R.prescanCallback()},R.prescanOption));
var h;u.visibilityMonitorKeys=((h=u.visibilityMonitorKeys)!=null?h:[]).concat(c)}};
ud0=function(f){var R;return(R=f.polymerController)!=null?R:f};
_.oA=function(f){return!!_.BJ(f)};
_.hb2=function(f,R){var u=C8q();LQ(function(){var O=f.value;if(O)return cDe(O,R),Xxh(O,R,void 0,void 0,void 0,u)},[R])};
_.xO=function(f,R,u,O,c,h){var l=C8q();_.pc(function(){var K=f.value;K&&(cDe(K,R(),h),K=Xxh(K,R(),u,O,c,l),_.jN(K))})};
cDe=function(f,R,u){var O=Z4B(R),c=li0(R);R=O&&k37;var h=c&&KL0;(O||c)&&O47(f,{visibilityCallback:function(l){var K=_.vh().resolve(_.rv);l&&O?K.resolveCommand(O,{form:{element:u?f:void 0},disableClickTracking:!0}):!l&&c&&K.resolveCommand(c,{form:{element:u?f:void 0},disableClickTracking:!0})},
showOption:R,hideOption:h})};
Xxh=function(f,R,u,O,c,h){var l=new Map;if(R=_.BJ(R)){var K;f=(O==null?void 0:(K=O.onTap)==null?void 0:K.value)||f;u=qKe(R,f,u==null?void 0:u.onTap,c,h);f.addEventListener("click",u);l.set("click",u)}return function(){for(var q=_.Z(l),F=q.next();!F.done;F=q.next()){var w=_.Z(F.value);F=w.next().value;w=w.next().value;f.removeEventListener(F,w)}}};
_.BJ=function(f){var R;return(f=(R=_.t(f,AD7))==null?void 0:R.onTap)&&_.H7(f)};
Z4B=function(f){var R;return(f=(R=_.t(f,AD7))==null?void 0:R.onVisible)&&_.H7(f)};
li0=function(f){var R;return(f=(R=_.t(f,AD7))==null?void 0:R.onHidden)&&_.H7(f)};
qKe=function(f,R,u,O,c){var h=function(K){_.vh().resolve(_.rv).resolveCommand(f,K)},l=function(K){O&&_.GS(_.eP(K),R,O)||h(K.target?{form:{element:K.target,
sourceData:f,mutationContext:c}}:void 0)};
u&&(l=function(K){u(K,h)});
return l};
ail=function(f){switch(f){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}};
FLt=function(f){var R=f.numAvatarsInCluster;switch(f.clusterSize){case "small":return R===2?22:18;case "40":return R===2?24:22;default:return R===2?24:20}};
wx0=function(f,R){return function(u){var O=Object.keys(R);_.pc(function(){if(f()){for(var c=_.Z(O),h=c.next();!h.done;h=c.next())h=h.value,u.addEventListener(h,R[h]);_.jN(function(){for(var l=_.Z(O),K=l.next();!K.done;K=l.next())K=K.value,u.removeEventListener(K,R[K])})}})}};
m9B=function(f){switch(FLt(f)){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""}};
QRl=function(f){switch(f){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""}};
WL7=function(f){switch(FLt(f)){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""}};
E2t=function(f){switch(f){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""}};
t_n=function(f){switch(f){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}};
CF0=function(f){return f==="medium"||f==="48"||f==="large"||f==="extra-large"||f==="extra-extra-large"||f==="giant"};
yDh=function(f){return!!((f==null?0:f.includes(3))||(f==null?0:f.includes(5)))};
NMt=function(f){return{size:d9h(f.data.avatarImageSize),onTap:f.onTap,decorations:f.decorations||[],badgeText:f.badgeText,accessibilityText:f.accessibilityText,avatarButtonCustomClassName:f.avatarButtonCustomClassName,clusterLayoutConfig:f.clusterLayoutConfig}};
d9h=function(f){switch(f){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"}};
LL5=function(f){switch(f){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}};
b4h=function(f){switch(f){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
pxX=function(f){var R=f.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",u,O=f.avatars&&f.avatars.length>0?(u=_.t(f.avatars[0],_.SP))==null?void 0:u.avatarImageSize:"AVATAR_SIZE_UNKNOWN";u=LL5(O)||0;if(R){var c,h=(c=f.avatarClusterSize)!=null?c:"AVATAR_SIZE_M";R=LL5(h);var l,K,q=Math.min((K=(l=f.avatars)==null?void 0:l.length)!=null?K:0,4),F;return{avatars:((F=f.avatars)==null?void 0:F.slice(0,4))||[],avatarSizeInPx:u,avatarStackStyle:{width:R+"px",height:R+"px",position:"relative"},avatarStyle:function(m){var W=
FLt({clusterSize:d9h(h),numAvatarsInCluster:q,avatarIndex:m});var C=LL5(h);q===3&&m===2?(C=(C-W)/2,C=(_.Tf("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*C):C=void 0;return{position:"absolute",top:q===2&&m===1||q===3&&m===2||q===4&&m>=2?"0":void 0,bottom:q===2&&m===0||q>2&&m<2?"0":void 0,left:q===2&&m===1||q>2&&(m===1||m===3)?"0":void 0,right:q<=3&&m===0||q===4&&(m===0||m===2)?"0":void 0,transform:C?"translateX("+C+"px)":void 0,width:W+"px",height:W+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(m){return{clusterSize:d9h(f.avatarClusterSize),numAvatarsInCluster:q,avatarIndex:m}},
avatarButtonCustomClassName:void 0}}var w;return{avatars:((w=f.avatars)==null?void 0:w.slice())||[],avatarSizeInPx:u,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:b4h(O),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
jR0=function(f,R,u){return function(){ym(f,{form:{element:R},commandController:u})}};
D9e=function(f){switch(f){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
JDt=function(f){switch(f){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
zb7=function(f){var R=f.data;f=f.hidden===void 0?!1:f.hidden;var u={};f={class:_.AS("yt-page-indicator-view-model",(u["yt-page-indicator-view-model__indicator--hidden"]=!R.indicatorCount,u)),hidden:f};if(R.indicatorCount){u=[];for(var O=0;O<R.indicatorCount;O++){var c={};c=_.AS("yt-page-indicator-view-model__indicator",(c["yt-page-indicator-view-model__indicator--selected"]=R.selectedIndex===O,c));u.push(_.a("div",{class:c}))}R=_.a(_.RS,null,u)}else R=_.a(_.RS,null);return _.a("yt-page-indicator-view-model",
f,R)};
H4h=function(f){f&&(TM7(f)?delete f.inlinePlayerData:"inlinePlaybackEndpoint"in f&&delete f.inlinePlaybackEndpoint)};
Iiq=function(f){if("accessibilityText"in f)return f.accessibilityText||"";if("title"in f){var R,u,O;return((R=f.title)==null?void 0:(u=R.accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)||""}if("accessibility"in f){var c,h;return((c=f.accessibility)==null?void 0:(h=c.accessibilityData)==null?void 0:h.label)||""}return""};
TM7=function(f){return"inlinePlayerData"in f};
$O=function(f){return new M_e(f)};
_.PFn=function(f,R,u,O,c,h){var l=function(F){F.preventDefault()},K=function(){var F=f.value;
if(F)return(F._data=R)?(F.addEventListener("touchstart",ddP,{passive:!0}),F.addEventListener("click",Lk7),R.clickTrackingParams&&(F.params={itct:R.clickTrackingParams}),bA7(F,R),Lj(F,pj0(R)||"")):F.addEventListener("click",l),function(){R?(F.removeEventListener("touchstart",ddP,{passive:!0}),F.removeEventListener("click",Lk7)):F.removeEventListener("click",l)}},q=function(){var F=f.value;
if(F){var w=_.MO({innertubeCommand:R,elementsCommand:u,forceNewState:O,stopPropagation:h});if(w)return F._data=w._data,w["aria-haspopup$"]&&F.setAttribute("aria-haspopup",w["aria-haspopup$"].toString()),w["force-new-state$"]&&F.setAttribute("force-new-state",w["force-new-state$"].toString()),w.href$&&Lj(F,w.href$),w.rel$&&(F.rel=w.rel$),w.role$&&F.setAttribute("role",w.role$),w.target$&&(F.target=w.target$),F.params=w.params,w.onclick&&F.addEventListener("click",w.onclick),w.onpointerdown&&F.addEventListener("onpointerdown",
w.onpointerdown),function(){w.onclick&&F.removeEventListener("click",w.onclick);w.onpointerdown&&F.removeEventListener("onpointerdown",w.onpointerdown)}}};
LQ(c?q:K,[R,u])};
U9P=function(f){var R=f.children;var u=f.className;var O=f.dir;var c=f.style;var h=f.role;var l=f.ariaSelected;var K=f.ariaLabel;var q=f.ariaHidden;var F=f.ariaLabelledby;var w=f.ariaDescribedby;var m=f.command;var W=f.elementsCommand;var C=f.forceNewState;var d=f.isPlaceholder;var p=f.tabIdentifier;var J=f.target;var M=f.tabIndex;var P=f.useATagConfig;var g=f.stopPropagation;f=_.sW();_.PFn(f,m,W,C,P,g);return _.a("a",{el:f,"on:click":_.Ff(function(){return g===!1}),
class:u,style:c,dir:O,role:h?h:m?void 0:"group","aria-hidden":q?!0:void 0,"aria-label":K,"aria-labelledby":F,"aria-describedby":w,"aria-selected":l,tabindex:M!==void 0?M:void 0,target:J,"tab-identifier":p,"force-new-state":C?!0:void 0,"is-placeholder":d?!0:void 0},R)};
eb7=function(f){var R=f.data;f=_.Ff(function(){var c=_.t(R.onTap,_.TW);c&&_.vh().resolve(_.rv).resolveCommand(c);return!1});
var u={sources:[{url:R.thumbnailUrl,width:120,height:90}]},O=R.rating&&R.ratingA11yLabel&&R.reviewsCount&&R.reviewsCountA11yLabel;return _.a("place-data-view-model",null,R.placeName&&R.placeCategory?_.a("div",{class:"yt-spec-place-data-view-model-shape","on:click":f},_.a(_.gR,{data:u,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.a(U9P,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.t(R.onTap,_.TW),forceNewState:!0,useATagConfig:!0},
_.a("h3",{class:"yt-spec-place-data-view-model-shape__name",title:R.placeName},R.placeName)),_.a("div",{class:"yt-spec-place-data-view-model-shape__metadata"},O?_.a("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.a("span",{class:"score",title:R.ratingA11yLabel},R.rating),_.a("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.a(_.WM,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.a("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:R.reviewsCountA11yLabel},R.reviewsCount)):_.a("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.a("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.a("span",{class:"category",title:R.placeCategory},R.placeCategory)))):null)};
G37=function(f){return function(R){f&&(f.thumbnailElRef=R.thumbnailElRef,f.thumbnail=R.thumbnail,f.thumbnailOverlays=R.thumbnailOverlays,f.thumbnailSize=R.thumbnailSize)}};
BM0=function(f){var R;return(R=f.sharedUi)==null?void 0:R.animatedThumbnailEnabled};
o22=function(f){var R;return(R=f.sharedUi)==null?void 0:R.inlinePreviewEnabled};
_.x92=function(f){var R;return(R=f.sharedUi)==null?void 0:R.currentPageSubType};
SK7=function(f){switch(f){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
g22=function(f){var R=_.Z(_.qK(!1,void 0,"RIOonf")),u=R.next().value,O=R.next().value;_.bt(function(){var c=f==null?void 0:f();if(c){var h=_.vh().resolve(_.Y8($92));if(h){var l={triggeringElement:c,onDwellTriggeredFn:function(){O(!0)},
onDwellEndFn:function(){O(!1)}};
h.registerElement(l);_.jN(function(){h.unregisterElement(l)})}}});
return u};
sRt=function(f,R,u){u?u(R):_.Ux(R,f.target?{form:{element:f.target}}:void 0)};
_.gW=function(f,R,u,O){_.pc(function(){var c=f.value;if(c){var h=new Map,l,K=(l=R())==null?void 0:l.onTap;K&&(l=function(q){a:{var F=q.composedPath();F=_.Z(F);for(var w=F.next();!w.done;w=F.next()){w=w.value;if(w===c)break;if(w.className.indexOf("HostIsClickableAdComponent")>=0||w.tagName==="A".toString()||w.tagName==="BUTTON".toString()){F=!0;break a}}F=!1}F||(_.E("enable_square_image_components_ui_web_with_float_button")?_.ul(f.value,"yt-navigate",{endpoint:_.H7(K)}):sRt(q,K,u))},(O==null?0:O())||
_.E("enable_web_home_top_landscape_image_layout_level_click")?(c.addEventListener("tap",l),h.set("tap",l)):(c.addEventListener("click",l),h.set("click",l)));
_.jN(function(){for(var q=_.Z(h),F=q.next();!F.done;F=q.next()){var w=_.Z(F.value);F=w.next().value;w=w.next().value;c.removeEventListener(F,w)}})}})};
n2e=function(f,R){var u,O=(u=f.interaction)==null?void 0:u.onTap;if(f=_.MO({elementsCommand:O,forceNewState:!0,skipOnClick:!0}))return f.onclick=function(c){EK7(c)&&(c.preventDefault(),O&&sRt(c,O,R))},P7(f)?f:void 0};
V_5=function(f){switch(f){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
YK2=function(f){switch(f){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"}};
v27=function(f){switch(f){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"}};
_.i4t=function(f){return _.E("rich_grid_enable_dynamic_offset")&&f?Math.max(Math.round((f-_.RV("rich_grid_dynamic_offset_anchor_width",1300))/100*_.RV("rich_grid_dynamic_offset_offset_per_100",10)),_.RV("rich_grid_dynamic_offset_lower_bound",-60)):0};
rD0=function(f,R){switch(R){case 4:return 16;case 1:return f<528?16:f<1024?32:48;case 2:return(f>=528?16:8)/2;case 3:return(f<528?16:f<1024?32:48)+(f>=528?16:8)/2;default:return 0}};
fg0=function(f){var R=f.originalContainerWidth;var u=f.sizing;var O=f.standardUnit;if(f.isCompactList&&R<528)return 1;switch(u){case "STANDARD":return O;case "COMPACT":return O+1;case "EXTRA_COMPACT":return _.E("web_responsive_extra_compact_2x")?O*2:_.E("web_responsive_current")?O===1?2:O%2===0?O/2*3:O+2:O<4?O*2:Math.ceil(O*3/2);case "MINI":return O>1?O*2:3;default:return O}};
umh=function(f){var R=f.containerWidth;var u=f.peek;var O=f.gutter;var c=f.numItems;f=f.ignoreMaxWidthLimit;R=u?Math.max((R-u-O*c)/c,0):Math.max((R-O*(c-1))/c,0);return f?R:Math.min(R,Rit)};
_.sp=function(f){var R=f.containerWidth;var u=f.hasPeek;var O=f.sizing;var c=f.marginSettings;var h=f.isCompactList;var l=f.enableFullBleedForSingleCol;var K=f.standardUnitMinWidth;O=O||"STANDARD";u=!!u;f=R>=528?16:8;var q=u?R>=528?48:24:0;c=rD0(R,c);var F=Math.max(R-c*2,0);K=_.E("kevlar_disable_min_width_override")?void 0:K;K=Math.min(Math.max(Math.floor((F-q+f)/((K!=null?K:Oll)+_.i4t(R)+f)),1),6);var w=(l=!!l&&K===1)||K===1&&O!=="STANDARD";u=u||w?F:Math.min(F,(Rit+f)*K-f);O=fg0({originalContainerWidth:R,
sizing:O,standardUnit:K,isCompactList:h});return{itemWidth:umh({containerWidth:u,peek:q,gutter:f,numItems:O,ignoreMaxWidthLimit:w}),gutter:f,maxContainerWidth:u,numItems:O,margin:l?0:c,contentMargin:rD0(R,1),typographyBump:umh({containerWidth:u,peek:q,gutter:f,numItems:K,ignoreMaxWidthLimit:w})>400&&!(h&&R<528),standardUnit:K}};
c3n=function(f){switch(f){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.XUP=function(f){if(f){var R;if((R=f.responsiveContainerConfiguration)==null?0:R.responsiveSize)return c3n(f.responsiveContainerConfiguration.responsiveSize);if(f.layoutSizing)switch(f.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"}}};
hi7=function(f){if(f.fullbleed)return 1;switch(f.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
KgB=function(f,R,u,O,c,h,l,K){a:switch(f){case 4:h=!!(h&&h<100);break a;default:h=!1}a:switch(f){case 3:case 4:var q=O==="LOCKUP_CONTENT_TYPE_CHANNEL"||O==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:q=!1}a:switch(f){case 5:var F=!0;break a;case 4:F=!1;break a;default:F=!1}a:if(f===4&&O==="LOCKUP_CONTENT_TYPE_SOURCE")var w=1;else switch(f){case 3:w=1;break a;default:w=0}return{isOverlay:F,isCard:Zln(O,l),sizing:R!=null?R:"STANDARD",typographyBump:u!=null?u:!1,isTiny:h,isCentered:q,isCollection:lgq(O),
arrangement:w,addMarginForFullbleed:f===1&&O!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:f===1&&O==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:kGn(O,c,K),disableRounding:f===5||Zln(O,l)||f===1&&O==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:lgq(O)?2:0,useLegacyTypography:!(K==null||!K.useLegacyTypography),useRichGridLegacyTypography:!(K==null||!K.useRichGridLegacyTypography)&&!_.E("web_enable_typography_bump")}};
lgq=function(f){switch(f){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
Zln=function(f,R){if(R&&f==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(f){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
kGn=function(f,R,u){if(R&&(u==null||!u.alwaysRespectPodcastShowAspectRatio||f!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(f){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}};
qGt=function(f){switch(f){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"}};
Fgq=function(f,R,u){a:switch(f.badgeStyle){case "BADGE_OVERLAY":var O=!0;break a;default:O=!1}return{type:R?16:A32(f.badgeStyle),brNzRatingBadgeType:ag5(f.badgeStyle),text:f.badgeText,icon:f.iconName,isOverlay:O,modern:u||_.E("web_modern_badge_view_model")}};
A32=function(f){switch(f){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
ag5=function(f){switch(f){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}};
mT7=function(f){var R=f.data?Fgq(f.data,!!f.workaroundShortsIsThumbnailBadge,f.modern):void 0;return _.a("yt-badge-view-model",{class:_.AS("yt-badge-view-model-wiz",f.class)},V1(R==null?void 0:R.brNzRatingBadgeType,function(){return _.a(wUl,{data:R})}),V1(R&&!R.brNzRatingBadgeType,function(){return _.a(_.nr,{data:R})}))};
_.V5=function(f){if(f){var R;return((R=_.vh().resolve(_.Y8(_.oF)))==null?0:R())?f.darkThemeImage:f.image}};
Ekh=function(f,R,u,O,c,h){if(c&&h&&R==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:c,height:h};if(!u)return{};c=u.size;u=u.allowFullWidth;if(R==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&u)return{fullWidth:!0};if(c===void 0)return{};switch(f){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:c,height:c};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:c,height:1/QKB*c};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:c*
Wg5,height:c};default:return(O==null?0:O.height)&&(O==null?0:O.width)?O.width/O.height>1?{maxWidth:c*Wg5}:{maxWidth:c}:{maxWidth:c}}};
tzh=function(f){var R;return f&&((R=_.V5(f.themedImage))!=null?R:f.image)};
CvB=function(f){var R;return f==null?void 0:(R=f.sources)==null?void 0:R[0]};
dTB=function(f,R){var u,O;return!!((f==null?0:(u=f.byline)==null?0:u.hideAvatar)&&((O=_.t(R,y37))==null?void 0:O.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Naq=function(f,R){var u,O;return!!((f==null?0:(u=f.byline)==null?0:u.addPadding)&&((O=_.t(R,y37))==null?void 0:O.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Lge=function(f,R,u,O){var c={},h=(c["yt-content-metadata-view-model-wiz__delimiter"]=!0,c["yt-content-metadata-view-model-wiz__delimiter--standalone"]=O,c);return V1(R-1>u,function(){return _.a("span",{class:_.AS(h),"aria-hidden":!0},f)})};
pU2=function(f,R){return _.a(_.YO,{text:f.text,linkInheritColor:!0,className:bl0(R),userInput:!0})};
DT5=function(f){var R=f.metadataPart;var u=f.isOverlay;var O=f.useMediumText;var c=f.hideAvatar;var h=1;R.maxLines!==void 0&&(h=R.maxLines);return _.a(_.RS,null,V1(R.avatarStack,function(){return jKD(R.avatarStack,{avatarStackViewModel:{isOverlay:u,useMediumText:O,hideAvatar:c}})}),V1(R.text,function(){var l=h;
return _.a(_.RS,null,R.tooltip?_.a("span",{title:R.tooltip,role:"tooltip"},pU2(R,l)):pU2(R,l))}))};
bl0=function(f){switch(f){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
J3n=function(f){var R=f.metadataRow;var u=f.isInline;var O=f.delimiter;var c=f.isOverlay;var h=f.useMediumText;var l=f.extensions;var K=dTB(l==null?void 0:l.lockupMetadata,R);f=Naq(l==null?void 0:l.lockupMetadata,R);l=!(!((l==null?0:l.lockupMetadata)&&R.badges)||R.metadataParts);var q={};f=(q["yt-content-metadata-view-model-wiz__metadata-row"]=!0,q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=u,q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
f,q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=l,q);var F,w;return _.a("div",{class:_.AS(f)},(F=R.badges)==null?void 0:F.map(function(m){return _.a("div",{class:"yt-content-metadata-view-model-wiz__badge"},jKD(m))}),(w=R.metadataParts)==null?void 0:w.map(function(m,W){return _.a(_.RS,null,DT5({metadataPart:m,
isOverlay:c,useMediumText:h,hideAvatar:K}),Lge(O,R.metadataParts.length,W,!1))}),V1(R.isSpacerRow&&!u,function(){return _.a("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
zi7=function(f){var R=f.className;var u=f.data;var O=f.layout===void 0?0:f.layout;var c=f.isOverlay===void 0?!1:f.isOverlay;var h=f.useMediumText;var l=f.extensions;f=_.sW();var K=O===0;O={};O=(O["yt-content-metadata-view-model-wiz"]=!0,O["yt-content-metadata-view-model-wiz--inline"]=K,O["yt-content-metadata-view-model-wiz--tappable"]=_.oA(u.rendererContext),O["yt-content-metadata-view-model-wiz--medium-text"]=h,O);_.hb2(f,u.rendererContext);return _.a("yt-content-metadata-view-model",{class:_.AS(R,
O),el:f},V1(u.metadataRows,function(){return u.metadataRows.map(function(q,F){return _.a(_.RS,null,J3n({metadataRow:q,isInline:K,delimiter:u.delimiter,isOverlay:c,useMediumText:h,extensions:l}),V1(K&&!q.isSpacerRow,function(){return Lge(u.delimiter,u.metadataRows.length,F,!0)}))})}))};
TaB=function(f){switch(f){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
Hl7=function(f){switch(f.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"}}};
IgD=function(f){var R=_.x92(_.xs().getState())||"";return f?f+R:""};
Mzn=function(f){switch(f){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
UTe=function(f){var R=_.Z(_.qK(void 0,void 0,"BIquNb")),u=R.next().value,O=R.next().value,c=_.Z(_.qK(void 0,void 0,"eR0GH"));R=c.next().value;var h=c.next().value;c=_.Z(_.qK(void 0,void 0,"UmkP0"));var l=c.next().value,K=c.next().value;return{touchFeedbackEvents:{pointerUpEvent:u,pointerDownEvent:R,pointerLeaveEvent:l},touchFeedbackOnPointerUp:_.Ff(function(q){if(Pvl(_.eP(q)))return!1;O(q);h(void 0);K(void 0);return!0}),
touchFeedbackOnPointerDown:_.Ff(function(q){f==null||f(q);if(Pvl(_.eP(q)))return!1;h(q);O(void 0);K(void 0);return!0}),
touchFeedbackOnPointerLeave:_.Ff(function(q){Pvl(_.eP(q))||(K(q),h(void 0),O(void 0))})}};
Pvl=function(f){var R=["BUTTON".toString()];f=_.Z(f);for(var u=f.next();!u.done;u=f.next()){u=u.value;for(var O=_.Z(R),c=O.next();!c.done;c=O.next())if(u.tagName===c.value)return!0}return!1};
eih=function(f){switch(f){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"}};
GGB=function(f,R){var u;return Gst(f,((u=f.content)==null?void 0:u.length)||0,!R)};
BaX=function(f,R){R=GGB(f,R);var u,O;return(((u=f.content)==null?void 0:u.length)||0)>(((O=R.content)==null?void 0:O.length)||0)};
ok5=function(f){var R=f.isTruncated;var u=f.isAbsoluteButton;var O=f.lineHeight;var c=f.contentRef.value,h=f.placeholderTruncationTextRef.value,l=f.truncationTextRef.value;f=f.appDirection==="rtl";if(c&&h){var K=h.offsetLeft;f&&(K=c.offsetWidth-h.offsetWidth-h.offsetLeft);if(R){R=h.offsetWidth;h=c.offsetWidth;var q=u?h-R-70:K-70;O="linear-gradient(\n      to top, transparent 0%,\n      transparent "+O+"px,\n      #000 "+O+"px,\n      #000 100%), linear-gradient(\n      to "+((f?"left":"right")+",\n      #000 0px,\n      #000 "+
q+"px,\n      transparent "+(u?h-R:q+70)+"px)");c.style.setProperty("-webkit-mask-image",O);c.style.setProperty("mask-image",O)}else c.style.setProperty("-webkit-mask-image",""),c.style.setProperty("mask-image","");u?f?(l.style.setProperty("left","0"),l.style.setProperty("right","unset")):(l.style.setProperty("left",""),l.style.setProperty("right","0")):f?(l.style.setProperty("left","unset"),l.style.setProperty("right",K+"px")):(l.style.setProperty("left",K+"px"),l.style.setProperty("right","unset"))}};
xT7=function(f,R,u,O,c,h,l){var K=_.sW(),q=_.sW(),F=_.sW(),w=GGB(f,c),m=_.vh().resolve(_.SQ),W=_.Z(qp(BaX(f,c))),C=W.next().value,d=W.next().value,p=j0(null);LQ(function(){function J(){if(K.value&&q.value&&F.value){var g=K.value;g.scrollHeight-g.offsetHeight>1?(d(!0),O||ok5({isTruncated:!0,isAbsoluteButton:!0,lineHeight:u,contentRef:K,placeholderTruncationTextRef:q,truncationTextRef:F,appDirection:m})):(g=BaX(f,c),d(g),O||ok5({isTruncated:g,isAbsoluteButton:!1,lineHeight:u,contentRef:K,placeholderTruncationTextRef:q,
truncationTextRef:F,appDirection:m}))}}
var M,P;(M=p.value)==null||(P=M.stop)==null||P.call(M);M=new _.vJ(J,17);J();p.value=M},[f.content,
R,u,m,O,h,l,c]);_.bt(function(){var J=function(){var P,g;(P=p.value)==null||(g=P.fire)==null||g.call(P)};
if(window.ResizeObserver){var M=new ResizeObserver(J);M.observe(K.value);return function(){var P,g;(P=p.value)==null||(g=P.stop)==null||g.call(P);M.disconnect()}}window.addEventListener("resize",J);
return function(){var P,g;(P=p.value)==null||(g=P.stop)==null||g.call(P);window.removeEventListener("resize",J)}});
return{isTruncated:C,displayText:w,contentRef:K,placeholderTruncationTextRef:q,truncationTextRef:F}};
SGD=function(f){return _.a("button",{"aria-disabled":!0,disabled:!0,class:f.className,el:f.elRef,style:"line-height: "+f.lineHeight+"px;"},_.a(_.YO,{text:f.text}))};
$Tq=function(f){var R=f.text;var u=f.alwaysShowTruncationText;var O=f.truncationText;var c=f.onExpandClick;var h=f.lineHeight===void 0?16:f.lineHeight;var l=f.maxLines===void 0?2:f.maxLines;var K=f.disableTextMask===void 0?!1:f.disableTextMask;var q=f.textStyle===void 0?"default":f.textStyle;var F=f.accessibilityLabel===void 0?"":f.accessibilityLabel;var w=f.textSize===void 0?"small":f.textSize;var m=_.Ff(function(){return void(c==null?void 0:c())}),W=xT7(R,l,h,K,f.alwaysTruncateAtMaxLines===void 0?
!1:f.alwaysTruncateAtMaxLines,w,q),C=W.isTruncated;
f=W.displayText;R=W.contentRef;var d=W.placeholderTruncationTextRef;W=W.truncationTextRef;var p={};u=_.AS((p["truncated-text-wiz__absolute-button"]=!K,p["truncated-text-wiz__bottom-button"]=K,p["truncated-text-wiz--hidden"]=!(u||C),p));K={};q=_.AS((K["truncated-text-wiz"]=!0,K["truncated-text-wiz--overlay"]=q==="overlay",K["truncated-text-wiz--medium-text"]=w==="medium",K["truncated-text-wiz--large-text"]=w==="large",K["truncated-text-wiz--primary-text"]=q==="primary-text",K));return _.a("truncated-text",
{class:q,"on:click":m,style:"line-height: "+h+"px;"},_.a("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:R,style:"max-height: "+l*h+"px;"},_.a(_.YO,{text:f}),_.a(SGD,{text:O,lineHeight:h,elRef:d,className:"truncated-text-wiz__inline-button"})),_.a("button",{"aria-label":F,class:u,el:W,style:"line-height: "+h+"px;"},_.a(_.YO,{text:O})))};
gkl=function(f){return{content:f!=null?f:""}};
VzP=function(f){var R=f.data;var u;f={class:f.className};a:switch(R.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var O="yt-video-attribute-view-model--vertical";break a;default:O="yt-video-attribute-view-model--horizontal"}a:switch(R.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(R.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(R.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var l="yt-video-attribute-view-model--metadata-header";break a;default:l=""}a:switch(R.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var K="yt-video-attribute-view-model--container-card";break a;default:K=""}var q=_.H7(R.onTap)||_.BJ(R.rendererContext)?"yt-video-attribute-view-model--clickable":"";
O=["yt-video-attribute-view-model",O,c,h,l,K,q].join(" ");if(R.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var F="";else c=R.lightColorPalette,h=R.darkColorPalette,l=((F=_.vh().resolve(_.Y8(_.oF)))==null?0:F())&&h?h:c,F=(F=l==null?void 0:l.section2Color)?_.ML(F):"";return _.a("yt-video-attribute-view-model",f,_.a("div",{class:O,style:_.Qm({"background-color":F})},_.a(U9P,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(u=_.H7(R.onTap))!=
null?u:_.BJ(R.rendererContext),role:"group",ariaLabel:R.title,forceNewState:!0},R.heroText||R.image?_.a(sKn,{data:R}):null,_.a(nk7,{data:R,sizeSmall:R.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
YG5=function(f){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:f.overflowMenuA11yLabel,onTap:function(R){R.preventDefault();R.stopPropagation();if(f.overflowMenuOnTap){var u=_.MO({elementsCommand:f.overflowMenuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(R)}}}};
sKn=function(f){f=f.data;var R,u=((R=_.vh().resolve(_.Y8(_.oF)))==null?0:R())&&f.darkThemeImage?f.darkThemeImage:f.image;R=YG5(f);return _.a("div",{class:"yt-video-attribute-view-model__hero-section"},u?_.a(_.gR,{data:u,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):f.heroText?_.a("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.a("span",{class:"yt-video-attribute-view-model__hero-text"},f.heroText)):null,f.overflowMenuOnTap?
_.a("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.a(iA,{data:R,iconName:"MORE_VERT"})):null)};
nk7=function(f){var R=f.data;f=f.sizeSmall;var u=R.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",O=_.H7(R.onTap)||_.BJ(R.rendererContext);O=_.MO({innertubeCommand:O});O=P7(O);var c={};f={class:_.AS("yt-video-attribute-view-model__metadata",(c["yt-video-attribute-view-model--small-font"]=f,c)),role:O?"link":"group"};O=_.a("h1",{class:"yt-video-attribute-view-model__title"},R.title);u=R.subtitle?_.a("h4",{class:"yt-video-attribute-view-model__subtitle"},u?_.a($Tq,{text:gkl(R.subtitle),truncationText:gkl(R.subtitleTruncationText),
maxLines:2}):_.a("span",null,R.subtitle)):null;if(R.secondarySubtitle){c=R.secondarySubtitle;if(c!=null&&c.attachmentRuns){for(var h=[],l=_.Z(c.attachmentRuns),K=l.next();!K.done;K=l.next())K=K.value,K.element&&h.push(Object.assign({},K,{element:Object.assign({},K.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));c=Object.assign({},c,{attachmentRuns:h})}c=_.a("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.a(_.YO,{text:c}))}else c=null;return _.a("div",f,O,u,c,R.buttonViewModel?vke(R.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.rW=function(f,R,u,O,c){O=O===void 0?{}:O;if(!c||Math.random()<5E-4){R=R||null;u=u||null;f=f instanceof Error?f:new _.ts(f);if(f.args)for(var h=_.Z(f.args),l=h.next();!l.done;l=h.next())l=l.value,l instanceof Object&&(O=Object.assign({},l,O));O.category="H5 Ads Control Flow";R&&(O.slot=R?"slot:  "+R.slotType:"");u&&(O.layout=u?"layout:  "+u.layoutType:"",O.layoutId=u.layoutId);c&&(O.known_error_aggressively_sampled=!0);f.args=[O];_.Ih(f)}};
_.iln=function(f,R){_.OJ(f,"yt-open-popup-action",[_.YZ(R),f])};
_.f9=function(f,R){_.iln(f,_.S8(R))};
fUq=function(f){if(!f)return"";if(r30[f])return r30[f];Rm||(Rm=_.mD("A"));Rm.href!==f&&Lj(Rm,f);var R=Rm.pathname;r30[f]=R.startsWith("/")?R:"/"+R;return r30[f]};
RX7=function(){var f=fUq(window.location.href);if(f==="/")return"home";if(f.startsWith("/results"))return"search";if(f.startsWith("/watch"))return"watch";if(f.startsWith("/shorts"))return"shorts";if(f.startsWith("/hashtag"))return"hashtag";if(f.startsWith("/create_channel"))return"create_channel";if(f.startsWith("/@")||f.startsWith("/user/")||f.startsWith("/channel/"))return"channel";if(f.startsWith("/experiments"))return"experiments";if(f.startsWith("/sponsor_channel"))return"sponsorship";if(f.startsWith("/select_site"))return"settings";
if(f.startsWith("/locate"))return"locate";if(f.startsWith("/redeem"))return"redeem";if(f.startsWith("/musicpremium")||f.startsWith("/premium")||f.startsWith("/red"))return"premium";if(f.startsWith("/paid_memberships"))return"paid_memberships";if(f.startsWith("/oops"))return"oops";if(f.startsWith("/clip"))return"clip";var R;return(uX==null?void 0:(R=uX.response)==null?void 0:R.page)==="404"?"404":f.startsWith("/feed/history")?"history":f.startsWith("/feed/library")?"library":f.startsWith("/feed/subscriptions")?
"subscriptions":f.startsWith("/feed/trending")?"trending":f.startsWith("/feed/news_destination")?"news":f.startsWith("/playlist")?"playlist":f.startsWith("/minor_moment")?"minor_moment":f.startsWith("/playable/")||f.match("^/playables/(?!saved).")?"mini_app":f.startsWith("/playables")?"playables":f.startsWith("/create/live/join")?"open_in_app":f.startsWith("/feed/explore")?"explore":"browse"};
_.X$5=function(){var f=uX==null?void 0:uX.response,R=f==null?void 0:f.endpoint;if(!R)return(f==null?void 0:f.page)==="watch"?"watch":RX7();var u;f=(u=_.t(R==null?void 0:R.commandMetadata,_.vc))==null?void 0:u.webPageType;u=!1;if(f&&!u20.includes(f))switch(f){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 O;return((O=_.t(R==null?void 0:R.commandMetadata,_.vc))==null?0:O.url)&&fUq(_.t(R.commandMetadata,_.vc).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var c;return(R=(c=_.t(R,_.wY))==null?void 0:c.browseId)?O2h[R]||"browse":"browse";default:u=!0}if(_.t(R,_.OY)||_.t(R,cRq))return"sponsorship";c=fUq(window.location.href);if(c.startsWith("/experiments"))return"experiments";if(c.startsWith("/create_channel"))return"create_channel";
if(_.t(R,_.oh)&&c.startsWith("/shorts"))return"shorts";if(_.t(R,_.oh)&&c.startsWith("/watch"))return"watch";u&&(R=new _.ts("Unsupported mWeb page type",{pathname:c,webPageType:f}),_.TL(R));return"browse"};
cB=function(f,R,u,O){return f&&R?f!==u||R!==O?(_.rW(Error("Fh"),void 0,void 0,{"stored-slot":f,"stored-layout":R,"latest-slot":u,"latest-layout":O}),!1):!0:!1};
hXe=function(f,R,u){return f({targetId:R},function(O){return u.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},O,{header:u.continuationItems?u.continuationItems[0]:void 0}):Object.assign({},O,{contents:u.continuationItems?u.continuationItems:[]})})};
Z2e=function(f,R,u,O){if(R=R.trackingParams){var c,h=(c=u.getScreenLayer)==null?void 0:c.call(u);u=_.z4(h);c=_.Jj(h);if(u&&c){var l=_.t4(R);_.E("combine_ve_grafts")?f.graftServerVe(R,c,h):_.ea(u,c,l);O==null||O(l)}}};
kEn=function(f){var R;return((R=lU7.get(f))==null?void 0:R.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ARl=function(f,R){var u={type:R.slotType,controlFlowManagerLayer:KSD.get(R.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R.slotEntryTrigger&&(u.entryTriggerType=R.slotEntryTrigger.triggerType);R.slotPhysicalPosition!==1&&(u.slotPhysicalPosition=R.slotPhysicalPosition);if(f){u.debugData={slotId:R.slotId};if(f=R.slotEntryTrigger)u.debugData.slotEntryTriggerData=qtq(f);f=R.slotFulfillmentTriggers;u.debugData.fulfillmentTriggerData=[];f=_.Z(f);for(var O=f.next();!O.done;O=f.next())u.debugData.fulfillmentTriggerData.push(qtq(O.value));
R=R.slotExpirationTriggers;u.debugData.expirationTriggerData=[];R=_.Z(R);for(f=R.next();!f.done;f=R.next())u.debugData.expirationTriggerData.push(qtq(f.value))}return u};
qtq=function(f,R){var u={type:f.triggerType};R!=null&&(u.category=R);f.triggeringSlotId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedSlotId=f.triggeringSlotId);f.triggeringLayoutId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedLayoutId=f.triggeringLayoutId);return u};
aUl=function(f,R,u,O){R={opportunityType:R};f&&(O||u)&&(O=_.L8(O||[],function(c){return ARl(f,c)}),R.debugData=Object.assign({},u&&u.length>0?{associatedSlotId:u}:{},O.length>0?{slots:O}:{}));
return R};
FS5=function(f){return XZ(f.opportunityAdapterMap).concat(XZ(f.triggerAdapterMap)).concat(XZ(f.fulfillmentAdapterFactoryMap)).concat(XZ(f.slotAdapterFactoryMap)).concat(XZ(f.layoutRenderingAdapterFactoryMap))};
XZ=function(f){var R=[];f=_.Z(f.values());for(var u=f.next();!u.done;u=f.next())u=u.value,u.isAdsControlFlowEventListener&&R.push(u);return R};
Zm=function(f){var R=f.slotId,u=f.slotType,O=f.slotPhysicalPosition;return R===void 0?new hF("Cannot construct a slot due to the missing id.",{adSlotMetadata:f}):u===void 0?new hF("Cannot construct a slot due to the missing type.",{adSlotMetadata:f}):O===void 0?new hF("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:f}):{slotId:R,slotType:u,slotPhysicalPosition:O,managerLayer:"external",adSlotLoggingData:f.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new w$q}};
mo7=function(f){var R=f.layoutId,u=f.layoutType;return R===void 0?new lX("Cannot construct a layout due to the missing id.",{adLayoutMetadata:f}):u===void 0?new lX("Cannot construct a layout due to the missing type.",{adLayoutMetadata:f}):{layoutId:R,layoutType:u,managerLayer:"external",adLayoutLoggingData:f.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new w$q,interactionLoggingAdsClientData:{}}};
Q2n=function(f){if((f=f.value)&&f.querySelector("img")){var R=f.querySelector("img");R.addEventListener("error",function(){Ke7(R.src).then(function(u){(u=_.Cj(u).toString())?R.src=u:R.removeAttribute("src")}).catch(function(){R.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
K9=function(f,R){if(R&&(WS7(R.viewableCommand)||WS7(R.endOfSessionCommand))){f=f.value;var u=Efe(R==null?void 0:R.viewableCommand);R=Efe(R==null?void 0:R.endOfSessionCommand);if(!kR){var O=_.RV("custom_active_view_tos_timeout_ms");kR=O>0&&O!==36E5?new tjt(CRn(),O):new tjt(CRn())}yRD(kR,f);doq(kR,f,u,R)}};
qm=function(f){kR&&yRD(kR,f.value)};
CRn=function(){var f=_.Tf("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(f==null?void 0:f.length)===2?f[1]:null};
WS7=function(f){f=_.H7(f);return!(f==null||!f.loggingUrls)&&f.loggingUrls.length>0};
Efe=function(f){if(!f)return[];var R=[],u,O;((O=(u=_.H7(f))==null?void 0:u.loggingUrls)!=null?O:[]).forEach(function(c){c.baseUrl&&R.push(c.baseUrl)});
return R};
N0P=function(f){return f.shorts.isDesktopSmallWidth};
_.LSD=function(f){return f.shorts.isWatchWhileMode};
_.AF=function(f){return f.shorts.isFullscreen};
_.am=function(f){return f.shorts.isShortsPipActive};
p$t=function(f){var R,u;if(f=(R=_.t(f.reelsAdCardButtoned,b2n))==null?void 0:(u=R.animatedRenderingConfig)==null?void 0:u.easeOutSeconds)return f+"s"};
Do5=function(f,R,u){return _.k(function(O){return O.return(new Promise(function(c){var h=new Image;h.onload=function(){c(new j20(f,R,u,h.naturalWidth,h.naturalHeight))};
h.src=u.toString()}))})};
JRD=function(f,R){return Math.round(f/1E-5)===Math.round(R/1E-5)};
zXn=function(f,R){return Math.round(f/1E-5)===Math.round(R/1E-5)};
T0t=function(f,R){return f.year===R.year&&f.month===R.month&&f.day===R.day};
H27=function(f,R){return f.year!==R.year?f.year<R.year:f.month!==R.month?f.month<R.month:f.day<R.day};
Mj0=function(f){return f.day===IUe(f.year,f.month)?f.month===11?{year:f.year+1,month:0,day:1}:{year:f.year,month:f.month+1,day:1}:{year:f.year,month:f.month,day:f.day+1}};
PRq=function(){var f=new Date,R={year:f.getFullYear(),month:f.getMonth(),day:f.getDate()};return{start:R,end:{year:f.getFullYear()+2,month:f.getMonth(),day:f.getDate()},selectedDate:Mj0(R)}};
UoX=function(f){return(new oL(2)).format(new Date(f.year,f.month,f.day))};
eX0=function(f){return{year:f.getFullYear(),month:f.getMonth(),day:f.getDate()}};
GE5=function(f,R){f=(f+(Number(R.utcOffsetSec)+(new Date(f*1E3)).getTimezoneOffset()*60))*1E3;R=eX0(new Date(f));return{date:R,secondsSinceMidnight:Math.floor((f-(new Date(R.year,R.month,R.day)).getTime())/1E3)}};
B02=function(f,R){R=R.months.findIndex(function(u){return u.year===f.year&&u.month===f.month});
return R>=0?R:void 0};
ofP=function(f){if(!f)return!1;try{if(f.host&&f.host.tagName==="YT-FORMATTED-STRING"&&f.host.id==="contenteditable-textarea"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="YTD-COMMENTBOX")return!0}catch(R){return!1}return ofP(f.parentNode)};
FZ=function(f){return f?!(f.tagName!=="A"||!f.href||!f.classList.contains("yt-simple-endpoint")):!1};
xoP=function(f){return f?f.tagName==="IMG"&&f.classList.contains("emoji"):!1};
Stl=function(f,R,u){if(!f)return null;var O=FZ(f);if(O&&u)return R=f.pathname.substring(f.pathname.indexOf("/channel/")+9),document.createTextNode("@"+R);if(O&&!u)return document.createTextNode("");if(xoP(f))return u=f.alt,f=f.dataset.emojiId,!f&&R&&(R=_.wh(R,u))&&R.isCustomEmoji&&(f=R.emojiId),f?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+f+">"):document.createTextNode(u);O=f.cloneNode(!1);for(var c=0;c<f.childNodes.length;++c){var h=Stl(f.childNodes[c],R,u);h&&O.appendChild(h)}return O};
mG=function(f){return f?FZ(f)?f:mG(f.lastChild):null};
$oh=function(f){return f?FZ(f)?f:$oh(f.firstChild):null};
gf0=function(f){if(!f)return null;for(var R=f.previousSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.previousSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.previousSibling;else break;(R=mG(R))?f=R:f=(f=f.parentNode)?mG(f.previousElementSibling):null;return f};
s2e=function(f){if(!f)return null;for(var R=f.nextSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.nextSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.nextSibling;else break;return(R=$oh(R))?R:s2e(f.parentNode)};
nfB=function(f){var R=_.Qo(),u=R.JSC$9247_getStartNode();if(!ofP(u.parentNode))return null;R=R.JSC$9247_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var O=_.Tx(u,FZ);if(O){if(f&&R===0||!f&&R===u.length)return O}else{if(f&&R===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.WB(u.nextElementSibling,"display")==="block"?null:$oh(u.nextElementSibling);if(!f&&R===0)return u?mG(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(f){if(0<=R&&R<u.childNodes.length)return $oh(u.childNodes[R])}else if(0<
R&&R<=u.childNodes.length)return mG(u.childNodes[R-1]);return null};
Vjh=function(f,R,u){if(!f)return null;if(f.nodeType===Node.TEXT_NODE)if(u){var O=gf0(f);if(O&&!/^\s+\S/.test(f.wholeText.substr(0,R)))return O}else if((O=s2e(f))&&!/\S\s+/.test(f.wholeText.substr(R,f.wholeText.length)))return O;return f.nodeType===Node.ELEMENT_NODE?u?gf0(f.childNodes[R]):s2e(f.childNodes[R]):Vjh(f.parentNode,R,u)};
Yt7=function(f){if(f.hasChildNodes())switch(f.tagName){case "DIV":case "A":case "SPAN":var R="";for(f=f.firstChild;f;f=f.nextSibling)R+=Yt7(f);return R;default:return""}else switch(f.nodeType){case 3:return f.textContent;default:return""}};
EY=function(f,R){return f.year===R.year&&f.month===R.month&&f.day===R.day};
tF=function(f,R){return f.year!==R.year?f.year<R.year:f.month!==R.month?f.month<R.month:f.day<R.day};
vfh=function(f){return{year:f.getFullYear(),month:f.getMonth(),day:f.getDate()}};
i2n=function(f){var R=ohq;R=R===void 0?ohq:R;R(new Date(f.year,f.month,f.day))};
C9=function(f){return vfh(new Date(Number(f.seconds)*1E3))};
rRn=function(f){return f.year!==void 0&&f.month!==void 0&&f.day!==void 0};
fyt=function(f){return f.start!==void 0&&f.end!==void 0};
R$7=function(f){return fyt(f)?f.start:f};
uJ7=function(f){return fyt(f)?f.end:void 0};
cW2=function(f,R){for(var u=[],O=new Date(f.start.year,f.start.month);O.getFullYear()<f.end.year||O.getFullYear()===f.end.year&&O.getMonth()<=f.end.month;){var c=u,h=c.push,l=O.getFullYear(),K=O.getMonth(),q=f,F=R,w=void 0,m=[],W=Object.freeze({extraCssClass:"invisible"}),C=new Date(l,K),d=vfh(C);C=C.getDay();for(var p=vfh(new Date);d.month===K;){C!==OX5&&w||(w=Array.from({length:7}).fill(W),m.push(w));var J={date:{year:l,month:K,day:d.day},extraCssClass:"",debugClass:""};J.extraCssClass=F(J.date,
d,p,q).trim();w[(C-OX5+7)%7]=J;d=d.day===IUe(d.year,d.month)?d.month===11?{year:d.year+1,month:0,day:1}:{year:d.year,month:d.month+1,day:1}:{year:d.year,month:d.month,day:d.day+1};C=(C+1)%7}h.call(c,{weeks:m,monthLabel:yo.SHORTMONTHS[K]+" "+l,year:l,month:K,monthLabelExtraCssClass:m[0][2]===W?"shift-down-label":""});O.setMonth(O.getMonth()+1)}return u};
XEq=function(f,R){R=R.months.findIndex(function(u){return u.year===f.year&&u.month===f.month});
return R>=0?R:void 0};
ZXn=function(f,R){a:{var u=u===void 0?[2,3]:u;u=_.Z(u);for(var O=u.next();!O.done;O=u.next()){var c=new Date;if((new h$P(O.value)).parse(R,c,{validate:!0})){c.setHours(0,0,0,0);R=c;break a}}R=null}if(!R)return{isValid:!1,value:void 0};R=vfh(R);u=f.end;return tF(R,f.start)||tF(u,R)?{isValid:!1,value:void 0}:{isValid:!0,value:R}};
AWn=function(f){var R=ly5;R=R===void 0?kVn:R;var u=f.columnsToShow||[],O=K7X(f.columnDimensions,f.columnsToShow,f.leftFloatingColumns,R);return u.map(function(c,h){var l=f.columns[c];if(l===void 0)throw Error("Lh");var K=O?O[h]:"";var q=f.getCustomTooltip?f.getCustomTooltip(c,l.headerTooltipParagraphs):l.headerTooltipParagraphs;var F=q5D(f,c);return{type:c,index:h,style:K,classes:F,headerName:l.headerName||"",headerIcon:l.headerIcon,headerTooltipParagraphs:q||[],headerTooltipHelpContext:l.headerTooltipHelpContext,
sortOrders:l.sortOrders||[],selectionState:l.isSelectionCheckbox?f.selectionState:void 0}})};
q5D=function(f,R){var u=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],O=f.columns[R];if(O===void 0)return"";var c=u.includes("DEFAULTS")&&O.cssClass?[O.cssClass]:[];if(u.includes("SORTING")){O.sortOrders&&O.sortOrders.length&&c.push("sortable");if(f.sorting&&f.sorting.columnType===R)a:switch(f.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var h="column-sorted";break a;default:h=""}else h="";h&&c.push(h)}u.includes("FLOATING")&&(R=f.columnsToShow.indexOf(R),f.leftFloatingColumns&&R<f.leftFloatingColumns&&
c.push("floating-column"),f.leftFloatingColumns&&R===f.leftFloatingColumns-1&&c.push("last-floating-column"));u.includes("RIGHT_ALIGN")&&O.rightAlignHeader&&c.push("right-align");return c.filter(function(l){return l}).join(" ")};
K7X=function(f,R,u,O){u=u===void 0?0:u;O=O===void 0?kVn:O;if(f){var c=[],h=0;ay0(f,R,O).forEach(function(l,K){var q="min-width:"+l.minWidth+"px;padding-left:"+l.paddingLeft+"px;padding-right:"+l.paddingRight+"px;flex:"+l.flexGrow+" 0 "+l.minWidth+"px;";l.maxWidth!==Infinity&&(q=[q,"max-width:"+l.maxWidth+"px;"].join(""));h>0&&K<u&&(q=[q,"left:"+h+"px;"].join(""));c.push(q);h+=l.minWidth+l.paddingLeft+l.paddingRight});
return c}};
ay0=function(f,R,u){u=u===void 0?kVn:u;return R.map(function(O,c){O=f&&f[O]||{};var h=c===0?u.paddingLeftFirstColumn:u.padding;O.paddingLeft!==void 0&&(h=O.paddingLeft);c=c===R.length-1?u.paddingRightLastColumn:u.padding;O.paddingRight!==void 0&&(c=O.paddingRight);return{paddingLeft:h,paddingRight:c,minWidth:O.minWidth!==void 0?O.minWidth:u.minWidth,maxWidth:O.maxWidth!==void 0?O.maxWidth:u.maxWidth,flexGrow:O.flexGrow!==void 0?O.flexGrow:u.flexGrow}})};
F7X=function(f){var R=f.reduce(function(O,c){var h=c.columnId,l={};c.headerText&&(l.headerName=_.$Z(c.headerText));c.rightAlignHeader&&(l.rightAlignHeader=c.rightAlignHeader);var K;if((K=c.headerIcon)==null?0:K.iconType)l.headerIcon=_.li(c.headerIcon.iconType);O[h]=l;return O},{}),u=f.filter(function(O){return!O.hideColumn}).map(function(O){return O.columnId});
f=f.filter(function(O){return!!O.dimensions}).reduce(function(O,c){O[c.columnId]=c.dimensions;
return O},{});
return{columns:R,columnsToShow:u,columnDimensions:f}};
_.wEl=function(f){return f?f.simpleText?f.simpleText:f.runs?f.runs.map(function(R){return R.text}).join(""):"":""};
tsl=function(f){var R=f.data;var u=f.onTap;var O=f.isSelected;var c=f.onFocusIn;if(!R)return{};f=m0l(R);O===void 0&&(O=R==null?void 0:R.isSelected);var h;return{text:Qle(R,f),startIcon:(h=R.icon)==null?void 0:h.iconType,state:O?0:2,type:0,onTap:W7t(R,u),accessibilityLabel:E9q(R,f),onFocusIn:function(){return c==null?void 0:c()}}};
Qle=function(f,R){if(!R)return f.text?_.wEl(f.text):void 0};
W7t=function(f,R){return function(u){R==null||R(u,f)}};
m0l=function(f){f=f.style&&f.style.styleType;return!CJn&&f==="STYLE_EXPLORE_LAUNCHER_CHIP"};
E9q=function(f,R){if(R){var u,O,c;return(c=(u=f.accessibilityData)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?c:Qle(f,!1)}};
dh=function(f){return{signalAction:{signal:f}}};
No7=function(){return _.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?yWl:_.d0q};
L7n=function(f,R){f=f===void 0?"SOFT_RELOAD_PAGE":f;R=R===void 0?49504:R;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.fg(_.Fa("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:R}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:f}}]}}}};
bXh=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.fg(_.Fa("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:No7()}};
pE7=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.fg(_.Fa("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:No7()}};
jlh=function(f,R){var u=_.fg(_.Fa("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),O=_.fg(_.Fa("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),c={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.fg(_.Fa("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};c.serviceEndpoint=f?f:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[dh("SOFT_RELOAD_PAGE")]}};return{title:u,bodyText:O,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:c},
style:{value:R!=null?R:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
JWX=function(f){f=f===void 0?{}:f;return{title:_.fg(f.localizedZeroStateTitleText===void 0?"":f.localizedZeroStateTitleText),bodyText:_.fg(f.localizedZeroStateMessage===void 0?"":f.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fg(f.localizedZeroStateButtonText===void 0?"":f.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[D07]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.HX5=function(f,R,u,O,c,h,l,K){O=O===void 0?!1:O;c=c===void 0?!1:c;h=h===void 0?0:h;l=l===void 0?-Infinity:l;K=K===void 0?!1:K;var q=[],F=_.fg(_.Fa("SMART_DOWNLOADS",void 0,"Smart downloads"));l=_.fg(z$P(h,l,f.length));h=void 0;O?h=f.length>0?Ton(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.E("kevlar_manual_downloads_above"),F,l):K?{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:_.Fa("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Fa("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:_.ct0}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.fg(_.Fa("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"}}}:c&&(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:_.Fa("TURN_ON",void 0,"Turn on"),accessibilityText:_.Fa("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=_.fg(_.Fa("YOUR_DOWNLOADS",void 0,"Your downloads"));c=void 0;R.length>0?(c=void 0,_.E("kevlar_display_downloads_numbers")&&(c=_.fg(_.wA("VIDEO_COUNT",R.length))),c=Ton(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,u,c)):O||f.length||(c={backgroundPromoRenderer:{bodyText:_.fg(_.Fa("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}}}});h&&!_.E("kevlar_manual_downloads_above")&&q.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});c&&q.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:51721}}}});h&&_.E("kevlar_manual_downloads_above")&&q.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(R.length>0||O&&f.length>0)&&q.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.fg(_.Fa("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:q}};
_.Ms7=function(f){return Iye(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.PJl=function(f){return Iye(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Iye=function(f,R){var u=[];f=Ton(f,R,!0);u.push({richSectionRenderer:{content:f}});return{contents:u}};
Ton=function(f,R,u,O,c){u=u===void 0?!1:u;var h="RESPONSIVE_SIZE_STANDARD";_.E("kevlar_modern_downloads_compact")?h="RESPONSIVE_SIZE_COMPACT":_.E("kevlar_modern_downloads_extra_compact")&&(h="RESPONSIVE_SIZE_EXTRA_COMPACT");f={isExpanded:u,contents:Nm(f),entitySelectorType:R,responsiveContainerConfiguration:{responsiveSize:h}};O&&(f.title=O);c&&(f.subtitle=c);u||(_.E("kevlar_smart_downloads_show_more_button")?(f.showMoreButton={buttonRenderer:{accessibility:{label:_.Fa("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.fg(_.Fa("SHOW_MORE",void 0,"Show more"))}},f.showLessButton={buttonRenderer:{accessibility:{label:_.Fa("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.fg(_.Fa("SHOW_LESS",void 0,"Show less"))}}):(f.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Fa("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}}}},f.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Fa("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}}}},f.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Fa("VIEW_ALL",void 0,"View all"),accessibilityText:_.Fa("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:il("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:f}};
Nm=function(f){var R=[];f=_.Z(f);for(var u=f.next();!u.done;u=f.next())if(u=u.value,GhX(u)){var O=R,c=O.push;var h=void 0;if(u==null?0:(h=u.videoEntity)==null?0:h.videoId){h=Mq(_.sP().getState(),u.videoEntity.videoId);var l=_.sP().getState();var K=_.l$(u.videoEntity.videoId,"mainVideoEntity");l=!!_.dz(l.entities)[K];l={videoId:u.videoEntity.videoId,title:RL(u.videoEntity.title),shortBylineText:RL(u.channelEntity.title),thumbnail:u.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:l&&_.E("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Ggl(u.videoEntity.videoId,h,u.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Fa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};u.videoEntity.lengthSeconds&&(l.thumbnailOverlays=ZiB(u.videoEntity.lengthSeconds,h));l.isWatched=h>0;_.E("kevlar_modern_downloads_page")&&(l.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:u.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Fa("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},l.badges=void 0);u=l}else u={};c.call(O,{richItemRenderer:{content:{videoRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(enn(u)){O=R;c=O.push;var q=K=h=void 0,F=void 0,w=void 0,m=void 0,W=void 0,C=void 0,d=void 0,p=void 0,J=void 0,M=void 0;l=u.mainPlaylistEntity.playlistId;var P=u==null?void 0:(M=u.mainPlaylistEntity)==null?void 0:(J=M.thumbnailStyleData)==null?void 0:(p=J[0])==null?void 0:(d=p.value)==null?void 0:(C=d.collageThumbnail)==
null?void 0:C.coverThumbnail;if(l&&P){C=B5P(l);!_.E("enable_offline_playlist_page")&&(u==null?0:(W=u.mainPlaylistEntity)==null?0:W.videos)&&(W=u==null?void 0:(m=u.mainPlaylistEntity)==null?void 0:(w=m.videos)==null?void 0:w[0],w=_.XX(W).entityId,w=JSON.parse(w).videoId,w!==void 0&&(m=Mq(_.sP().getState(),w),C=_.rA(w,l,void 0,void 0,m)));w=[];if(u==null?0:(F=u.mainPlaylistEntity)==null?0:(q=F.videos)==null?0:q.length)w=[BSD(),Object.assign({},(K=G9e(u==null?void 0:u.mainPlaylistEntity.videos.length))!=
null?K:{})];u={playlistId:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:P}},navigationEndpoint:C,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:w,title:RL(u.mainPlaylistEntity.title),shortBylineText:RL(u==null?void 0:(h=u.channelEntity)==null?void 0:h.title),badges:[{metadataBadgeRenderer:{label:_.Fa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.E("kevlar_modern_downloads_page")&&(u.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:U00,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:l,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Fa("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},u.badges=void 0)}else u=void 0;c.call(O,{richItemRenderer:{content:{playlistRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return R};
z$P=function(f,R,u){f=f?e$B(f):"";R!==void 0&&isFinite(R)?R===0?R=_.Fa("UPDATING",void 0,"Updating..."):(R=hTP(new Date(R),new Date),R=_.Fa("UPDATED_TIME",{relative_time:R},"Updated "+R)):R="";var O="";f&&R&&(O=" \u2022 ");if(u&&_.E("kevlar_display_downloads_numbers")){u=_.wA("VIDEO_COUNT",u);if(f||R)O=" \u2022 ";return u+O+f+O+R}return f+O+R};
GVX=function(f){return JLe(f.entities).length};
_.Boh=function(f,R){var u=c3n(f.responsiveSize),O;f=!((O=f.responsiveMap)==null||!O.some(function(c){return c.containerSize==="CONTAINER_SIZE_NARROW"&&c.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:R,sizing:u,enableFullBleedForSingleCol:!1,isCompactList:u==="COMPACT"&&f}};
o92=function(f,R){return _.kZ(f.entities,"votingEntity",R)};
x07=function(f){if(f){var R;return((R=_.vh().resolve(_.Y8(_.oF)))==null?0:R())?f.darkTheme:f.lightTheme}};
S55=function(f,R){if(f.simpleText)return Object.assign({},f,{simpleText:GW(f.simpleText,R)});if(!f.runs)return f;for(var u=Object.assign({},f,{runs:[]}),O=0,c=_.Z(f.runs),h=c.next();!h.done;h=c.next())if(h=h.value,h.text)if(O+h.text.length<=R)u.runs.push(h),O+=h.text.length;else return u.runs.push(Object.assign({},h,{text:GW(h.text,R-O)})),u;return f};
$0q=function(f,R){return _.kZ(f.entities,"chipBarStateEntity",R)};
g9n=function(f,R){return _.kZ(f.entities,"chipEntity",R)};
n9e=function(f,R,u,O){return function(){var c=sl5.has(f.displayType)&&f.selected,h=c&&f.deselectCommand?f.deselectCommand:f.tapCommand;!h||c&&O||_.Ux(h,{form:{element:R==null?void 0:R.value}});u==null||u()}};
Vs7=function(f){switch(f){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Y50=function(f,R){return{triggeringElement:f,onDwellTriggeredFn:function(){var u={triggeringElement:f,loadVideoPreviewEventData:R},O=document.querySelector(".video-preview");O&&O.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"))}}};
v95=function(f,R){var u=_.vh().resolve(_.Y8($92)),O=function(){var c=R();return u&&c?Y50(f.value,c):null};
_.pc(function(){var c=O();u&&c&&Promise.resolve().then(function(){u.registerElement(c)});
_.jN(function(){u&&c&&Promise.resolve().then(function(){u.unregisterElement(c)})})})};
rWP=function(f){var R=f.dataset.resizeObserverId;if(R)return R;R=""+iXP++;return f.dataset.resizeObserverId=R};
f_B=function(f,R){var u=rWP(f);L9.has(u)||L9.set(u,new Set);L9.get(u).add(R);bX.has(u)&&R(Object.assign({},{target:f},bX.get(u)))};
REn=function(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;var u=rWP(R.target),O=Object.assign({},{target:R.target},bX.get(u));if(O!=null&&O.contentRect?O.contentRect.width!==R.contentRect.width||O.contentRect.height!==R.contentRect.height:1)for(bX.set(u,{borderBoxSize:R.borderBoxSize,contentBoxSize:R.contentBoxSize,contentRect:R.contentRect,devicePixelContentBoxSize:R.devicePixelContentBoxSize}),u=_.Z(L9.get(u)||[]),O=u.next();!O.done;O=u.next())O=O.value,O(R)}};
OKh=function(){return p9?p9:p9=new uYB(REn)};
c77=function(f,R){var u=rWP(f);L9.has(u)&&(L9.get(u).delete(R),L9.get(u).size===0&&(L9.delete(u),bX.delete(u),p9.unobserve(f),delete f.dataset.resizeObserverId));L9.size===0&&p9&&(p9.disconnect(),p9=void 0)};
hEP=function(f,R){var u=_.vh().resolve(rJ);return Xkq.map(function(O){return u.observe(f,R,O)})};
ZK0=function(f){var R=_.vh().resolve(rJ);f.forEach(function(u){R.unobserveByKey(u)})};
_.Krq=function(f,R){var u=Object.assign({},l_0,R);R=_.Z(zD0());var O=R.next().value,c=R.next().value,h=function(l){var K=l.contentRect.height;if((l=l.contentRect.width)||K||u.canHaveZeroSize)O.width()===l&&O.height()===K||c(O,{height:K,width:l})};
_.bt(function(){var l=f instanceof HTMLElement?f:f.value,K=kuB(h,u.throttleMs),q=[];u.useVisibilityObserver&&(q=hEP(l,function(F,w){requestAnimationFrame(function(){w==="visible"?(f_B(l,K),OKh().observe(l)):c77(l,K)})}));
q.length||(f_B(l,K),OKh().observe(l));_.jN(function(){q.length&&(ZK0(q),q.length=0);c77(l,K)})});
return O};
A7B=function(f){var R=f.data;var u=f.callback;var O=f.enableSingleChipSelection;var c=f.disableChipsScrollAnimation;var h=_.n0(),l=j0(!1),K=j0(0);f={};f=_.Z(qp(R.autoselectedChipIndex!=null?(f[R.autoselectedChipIndex]=!0,f):{}));var q=f.next().value,F=f.next().value,w=function(){var mP=h.value;return mP==null||mP.scrollLeft-1<=0},m=function(){var mP=h.value;
return mP==null?!1:mP.scrollLeft+1>=(mP==null?NaN:mP.scrollWidth)-(mP==null?NaN:mP.clientWidth)};
f=_.Z(qp(w()));var W=f.next().value,C=f.next().value;f=_.Z(qp(m()));var d=f.next().value,p=f.next().value;f=R.isHorizontallyScrollable;var J=function(mP){h.value!=null&&(_.Tf("HTML_DIR")==="rtl"&&(mP=-mP),h.value.scrollBy({left:mP,behavior:c?"instant":"smooth"}))},M=function(){J(-320)},P=function(){J(320)},g=_.Ff(function(mP){l.value=!0;
K.value=mP.clientX}),x=_.Ff(function(mP){if(l.value){mP=mP.clientX;
var NX=mP-K.value;K.value=mP;var jt;(jt=h.value)==null||jt.scrollBy({left:-NX})}}),fh=_.Ff(function(){var mP=w(),NX=m();
mP!==W&&C(mP);NX!==d&&p(NX)});
ic("pointerup",function(){l.value&&(l.value=!1)});
var V={},ZD={};return _.a("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},V1(R.title,function(){return _.a("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.a("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},R.title),q47(R.overflowButton))}),_.a("div",{class:"ytChipsShelfViewModelChipsShelfContent"},V1(R.previousButton!=null,function(){var mP={};
return _.a("div",{class:_.AS("ytChipsShelfViewModelLeftArrowContainer",(mP.ytChipsShelfViewModelLeftArrowContainerIsHidden=W,mP))},q47(R.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:M}}))}),_.a("div",{el:h,
"on:pointerdown":g,"on:pointermove":x,"on:scroll":fh,class:_.AS("ytChipsShelfViewModelChipsScrollContainer",(V.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!f,V))},_.a("div",{class:_.AS("ytChipsShelfViewModelChipsContainer",(ZD.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!f,ZD.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!f&&!1,ZD))},(R.contents||[]).map(function(mP,NX){return _.a("div",{class:"ytChipsShelfViewModelChipWrapper"},q47(mP,
{chipViewModel:{callback:function(jt,Jn){if(O){var zq={};F((zq[NX]=Jn,zq))}else zq={},F(Object.assign({},q,(zq[NX]=Jn,zq)));u==null||u(jt,Jn,NX)},
disableDeselection:O,selected:!!q[NX]}}))}))),V1(R.nextButton!=null,function(){var mP={};
return _.a("div",{class:_.AS("ytChipsShelfViewModelRightArrowContainer",(mP.ytChipsShelfViewModelRightArrowContainerIsHidden=d,mP))},q47(R.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:P}}))})))};
Frl=function(f,R,u,O,c){f=R?f.switchOffCommand:f.switchOnCommand;if(O&&c)a_2(f,u,c);else{var h,l;(h=_.MO({elementsCommand:f}))==null||(l=h.onclick)==null||l.call(h,u)}};
a_2=function(f,R,u){f=_.MO({elementsCommand:f,additionalCommandArgs:{commandController:{onSuccess:function(){u(!1)},
onServerError:function(){u(!1)}}}});
if(f==null?0:f.onclick)f.onclick(R),u(!0)};
m40=function(f){if(f)return _.t(f,wkh)};
CYn=function(f,R,u){if(R)return[QdP];switch(f){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[jn];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return u?[jn]:[Wrn,jn];case "TRANSFER_STATE_PAUSED_BY_USER":return[Eqn,jn];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[tfX,jn];default:return[QdP]}};
y7n=function(f,R,u,O){return CYn(f,R,O).map(function(c){var h=c.text,l=c.iconType,K=c.videoAction;c=c.playlistAction;h=h?{content:h}:void 0;l=l&&{sources:[{clientResource:{imageName:l}}]};var q=(0,_.dq.unsafeClone)(u);if(q){var F=_.t(q,_.kO),w=_.t(q,_.Kr);F&&K?F.action=K:w&&c&&(w.action=c)}return{title:h,leadingImage:l,rendererContext:q&&{commandContext:{onTap:{innertubeCommand:q}}}}})};
d4n=function(f){f=_.BJ(f.rendererContext);var R;return(R=_.t(f,_.Kr))==null?void 0:R.playlistId};
Nfn=function(f){var R;return(R=f.listItems)==null?void 0:R.some(function(u){var O;return _.oA((O=_.t(u,_.wW))==null?void 0:O.rendererContext)})};
bK0=function(f){var R;return(R=f.listItems)==null?void 0:R.some(function(u){u=_.t(u,_.wW);return!!_.t(u==null?void 0:u.leadingAccessory,LrD)})};
Dm=function(f){var R=_.vh().resolve(_.Y8(_.oF));return R!=null&&R()?f.darkThemeColorPalette:f.lightThemeColorPalette};
zB=function(f){return{primaryTextColor:JF(f,0),secondaryTextColor:JF(f,1),optionColor:JF(f,2),backgroundColor:JF(f,3),videoBackgroundColor:JF(f,4)}};
JF=function(f,R){if(f){switch(R){case 0:f=f.primaryTitleColor;break;case 1:f=f.secondaryTitleColor;break;case 2:f=f.surgeColor;break;case 3:f=f.section2Color;break;case 4:f=f.section3Color;break;default:return}if(f)return _.I1(f)}};
pkn=function(f){return f?_.ML(f):""};
jdB=function(f){return(f==null?void 0:f.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
D4n=function(f,R){var u;return"linear-gradient(to bottom, "+((u=R==null?void 0:R.map(function(O){var c=f?O.darkThemeColor:O.lightThemeColor;return c?_.ML(c)+" "+((O==null?void 0:O.startLocation)||0)*100+"%":"transparent"}))==null?void 0:u.join(", "))+")"};
J7X=function(f,R,u,O,c){if(!((O==null?0:O.height)&&(O==null?0:O.width)))return{size:0};var h=O.width;O=O.height;if(c)return R==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||R==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&h>O?{size:312/Wg5}:R==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(u!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||f!==1&&f!==2||R!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&R!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&R!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(R==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||R==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||O===h)switch(f){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(R==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||O>h)switch(f){case 1:case 3:return{size:240*QKB};default:return{size:360*QKB}}switch(f){case 1:case 2:return{size:1/Wg5*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.zEq=function(f){if(!("matchMedia"in window))return _.UC(Error("Mh")),function(){return!1};
var R=window.matchMedia(f);f=_.Z(_.qK(R.matches,void 0,"jLJc8e"));var u=f.next().value,O=f.next().value,c=function(h){O(h.matches)};
R.addEventListener?(R.addEventListener("change",c),_.jN(function(){R.removeEventListener("change",c)})):R.addListener&&(R.addListener(c),_.jN(function(){R.removeListener(c)}));
return u};
Tf7=function(f){return f==="IMAGE_BANNER_STYLE_INSET"||f==="IMAGE_BANNER_STYLE_UNKNOWN"};
HKn=function(){if(!("matchMedia"in window))return _.UC(Error("Mh")),function(){return 0};
var f=pQ(function(){return window.matchMedia("(max-width: 527.9px)")}),R=pQ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),u=pQ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),O=pQ(function(){return window.matchMedia("(min-width: 1024px)")}),c=_.Z(_.qK(f.matches,void 0,"og9kEc")),h=c.next().value,l=c.next().value;
c=_.Z(_.qK(R.matches,void 0,"ybDWCb"));var K=c.next().value,q=c.next().value;c=_.Z(_.qK(u.matches,void 0,"o0Gfh"));var F=c.next().value,w=c.next().value;c=_.Z(_.qK(O.matches,void 0,"yqUUgd"));var m=c.next().value,W=c.next().value,C=pQ(function(){return function(M){l(M.matches)}}),d=pQ(function(){return function(M){q(M.matches)}}),p=pQ(function(){return function(M){w(M.matches)}}),J=pQ(function(){return function(M){W(M.matches)}});
_.bt(function(){f.addEventListener?(f.addEventListener("change",C),R.addEventListener("change",d),u.addEventListener("change",p),O.addEventListener("change",J)):f.addListener&&(f.addListener(C),R.addListener(d),u.addListener(p),O.addListener(J));_.jN(function(){f.removeEventListener?(f.removeEventListener("change",C),R.removeEventListener("change",d),u.removeEventListener("change",p),O.removeEventListener("change",J)):f.removeListener&&(f.removeListener(C),R.removeListener(d),u.removeListener(p),
O.removeListener(J))})});
return function(){return h()?1:K()?2:F()?3:m()?4:0}};
I_e=function(f){var R=0;f=_.Z([f.title,f.metadata,f.actions,f.description,f.attribution]);for(var u=f.next();!u.done;u=f.next())u.value&&R++;return R};
MfX=function(f){return f===1||f===2?1:0};
U4B=function(f){var R,u=((R=_.vh().resolve(_.Y8(_.oF)))==null?0:R())&&f.data.darkThemeImage?f.data.darkThemeImage:f.data.image;R=_.a("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.a("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},u?_.a(_.gR,{data:u,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),PYt(f.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));u=_.a(_.YO,{text:f.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var O=f.data;if(O.bodyText){var c=[];O=_.Z(O.bodyText);for(var h=O.next();!h.done;h=O.next())c.push(_.a(_.YO,{text:h.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else c=_.a(_.RS,null);return _.a("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},R,u,c,PYt(f.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.a(_.YO,{text:f.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.a(_.YO,{text:f.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Gu0=function(f){f=(new eEX).parse(f);return(new Ka).render(f).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(R){var u=R.split(":").map(Number),O=0,c=0;if(u.length===3)u=_.Z(u),O=u.next().value,c=u.next().value,u=u.next().value;else if(u.length===2)u=_.Z(u),c=u.next().value,u=u.next().value;else if(u.length===1)u=_.Z(u).next().value;else throw Error("Nh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(O*3600+c*60+u)+'" role="button">'+R+"</span>"})};
Bf5=function(f){f=_.Z(f.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var R=f.next(),u={};!R.done;u={clickHandler$jscomp$4:void 0},R=f.next()){R=R.value;u.clickHandler$jscomp$4=function(c){c=Number(c.target.getAttribute("data-time"));if(isNaN(c))throw Error("Oh");var h;(h=_.Xk())==null||h.seekTo(c,!0)};
var O=function(c){return function(h){h.key!=="Enter"&&h.key!=="Space"||(0,c.clickHandler$jscomp$4)(h)}}(u);
R.setAttribute("tabindex","0");R.removeEventListener("click",u.clickHandler$jscomp$4);R.removeEventListener("keydown",O);R.addEventListener("click",u.clickHandler$jscomp$4);R.addEventListener("keydown",O)}};
oqD=function(){return _.a("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.a(TB,{percentWidth:100}),_.a(TB,{animationDelay:200}),_.a(TB,{animationDelay:400}),_.a(TB,{animationDelay:600}),_.a(TB,{animationDelay:800,percentWidth:60}),_.a("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.a(TB,{percentWidth:100}),_.a(TB,{animationDelay:200}),_.a(TB,{animationDelay:400}),_.a(TB,{animationDelay:600,percentWidth:50}))};
TB=function(f){return _.a("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(f.percentWidth===void 0?100:f.percentWidth)+"%"},_.a("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(f.animationDelay===void 0?0:f.animationDelay)+"ms"}))};
x42=function(){var f=_.Z(_.qK(function(){return""},void 0,"v2wS5e")),R=f.next().value;
return[function(){return R()()},
f.next().value]};
$4X=function(f){f=f===void 0?{}:f;return{title:_.fg(f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText),titleLength:19,subtitle:_.fg(f.localizedOptInMessage===void 0?"":f.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fg(_.Fa("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:_.fg(_.Fa("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:[S47]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
gq0=function(f,R){f=f?e$B(f):"";R!==void 0&&isFinite(R)?R===0?R=_.Fa("UPDATING",void 0,"Updating..."):(R=hTP(new Date(R),new Date),R=_.Fa("UPDATED_TIME",{relative_time:R},"Updated "+R)):R="";var u="";f&&R&&(u=" \u2022 ");return _.fg(f+u+R)};
Vfn=function(f,R,u,O,c,h){R=R===void 0?0:R;var l=sdn[R],K=l.title,q=l.iconType,F=l.topButtonRenderer,w=l.sectionClientVE;l=l.videoClientVE;var m;if(R!==1||f.length){u=[];f=_.Z(f);for(O=f.next();!O.done;O=f.next()){var W=O.value;if(GhX(W))u.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:W.videoEntity.videoId,title:RL(W.videoEntity.title),shortBylineText:RL(W.channelEntity.title),thumbnail:W.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:W.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Fa("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:l}}}}}});else if(enn(W)){O=u;var C=O.push;var d=void 0,p=void 0,J=void 0,M=void 0,P=void 0,g=void 0,x=void 0,fh=void 0,V=W.mainPlaylistEntity.playlistId,ZD=W==null?void 0:(fh=W.mainPlaylistEntity)==null?void 0:(x=fh.thumbnailStyleData)==null?void 0:(g=x[0])==null?void 0:(P=g.value)==null?void 0:(M=P.collageThumbnail)==null?void 0:M.coverThumbnail;M=B5P(V);if(!_.E("enable_offline_playlist_page")&&
(W==null?0:(J=W.mainPlaylistEntity)==null?0:J.videos)){b:{J=W==null?void 0:(p=W.mainPlaylistEntity)==null?void 0:p.videos;p=_.sP().getState().entities;if(J!=null&&J.length&&p)for(J=_.Z(J),P=J.next();!P.done;P=J.next())if(P=_.XX(P.value).entityId,(P=JSON.parse(P).videoId)&&jUt(p,P)==="TRANSFER_STATE_COMPLETE"){p=P;break b}p=""}p!==void 0&&(M=Mq(_.sP().getState(),p),M=_.rA(p,V,void 0,void 0,M))}p=x_7(_.Fa("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),B5P(V));W=V&&ZD&&p?{playlistId:V,navigationEndpoint:M,
viewPlaylistText:p,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:ZD}},title:RL(W.mainPlaylistEntity.title),shortBylineText:RL(W==null?void 0:(d=W.channelEntity)==null?void 0:d.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:nql,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:V,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Fa("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:l}}}:
void 0;C.call(O,{gridPlaylistRenderer:W})}}l={gridRenderer:{items:u}};R===1&&(m=gq0(c,h))}else if(O){var mP=_.fg((C=u==null?void 0:u.localizedPromptMessage)!=null?C:"");l={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fg(_.Fa("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.ct0}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fg(_.Fa("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};m=gq0(c,h)}else mP=_.fg(_.Fa("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
l={};return{contents:[{shelfRenderer:{title:K,titleAnnotation:m,icon:{iconType:q},subtitle:mP,content:l,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:F}]}}}}],loggingDirectives:{clientVeSpec:{uiType:w}}}};
Y47=function(f,R,u,O,c,h,l,K){u=u===void 0?{}:u;O=O===void 0?!1:O;c=c===void 0?!1:c;h=h===void 0?!1:h;l=l===void 0?0:l;K=K===void 0?-Infinity:K;if(!R.length&&!f.length&&!O)return c?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:JWX(u)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.fg(_.Fa("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 q=[];f.length&&q.push(Vfn(f,0));O?q.push(Vfn(R,1,u,h,l,K)):c&&q.push({contents:[{statementBannerRenderer:$4X(u)}]});(O&&R.length||f.length)&&q.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.fg(_.Fa("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 q.map(function(F){return{itemSectionRenderer:F}})};
HB=function(f,R){if(typeof f!=="object")return null;f=_.Z(Object.entries(f));for(var u=f.next();!u.done;u=f.next()){var O=_.Z(u.value);u=O.next().value;O=O.next().value;if(u===R)return u;if(O=HB(O,R))return u+"."+O}return null};
Im=function(f){var R=f.content;return(f=f.styleRuns)&&R?{runs:f.map(function(u){var O={text:R.slice(u.startIndex,u.startIndex+u.length)};u.fontColor&&(O.textColor=u.fontColor);return O})}:{simpleText:R}};
r7n=function(f,R,u,O){var c=vqh;O&&(f.quantity=O);if(!f.quantity||!f.maxQuantity)return{};O=f.minusButton;var h=f.plusButton,l,K,q,F;return{value:f.quantity,maxValue:f.maxQuantity,onChangeCallback:function(w){c(f,w)},
minusLabel:(l=_.t(O,iKt))==null?void 0:l.label,minimumReachedLabel:(K=_.t(O,iKt))==null?void 0:K.limitReachedLabel,plusLabel:(q=_.t(h,iKt))==null?void 0:q.label,maximumReachedLabel:(F=_.t(h,iKt))==null?void 0:F.limitReachedLabel,disabled:R,onRemoveCommand:u}};
vqh=function(f,R){var u=f.quantityIncrementerEntityKey;if(u){var O={};O.quantity=R;_.$s(_.bA("quantityIncrementerEntity",u,O));f.onChangeCommand&&_.Ux(f.onChangeCommand)}};
fdq=function(f){return _.E("kevlar_comments_clone_data_killswitch")?f:_.dq.unsafeClone(f)};
O_7=function(f,R){(f=Rk0(f))&&(R?uvl.push({command:f,sourceData:{},commandContext:void 0}):_.vh().resolve(_.rv).resolveCommand(f))};
Rk0=function(f){return _.t(f,_.TW)};
c$h=function(){var f=window.performance.timeOrigin+window.performance.now(),R=(new _.Mm).setSeconds(f/1E9);return _.br(R,2,_.dN(f%1E9),0)};
PB=function(f,R){var u=_.t(_.t(f,_.TW),XaP);u&&(R&&(u.serializedAdditionalMetadata=_.fE(R)),O_7(f,!0))};
hk5=function(f){switch(f){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"}};
Z_7=function(){return!!_.Tf("ID_TOKEN")};
Kbe=function(f){return f instanceof Error&&f.cause instanceof ldq&&f.cause.rpcErrorCode!==void 0?!kn7.includes(f.cause.rpcErrorCode):!0};
A$X=function(){return _.S0(qge,{authuser:""+(_.Tf("SESSION_INDEX")||0)})};
UY=function(f,R,u,O){u=u===void 0?"MINI_APP_SDK_API_UNSPECIFIED":u;O=O===void 0?"":O;var c=new _.ts;u={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:O,sdkApi:u};f instanceof Error&&(c.message=f.message,c.name=f.name,f.cause instanceof ldq&&f.cause.rpcErrorCode!==void 0&&(u.rpcErrorCode=f.cause.rpcErrorCode));var h;(h=R.onError)==null||h.call(R,{loggingError:c,metadata:u})};
Fbq=function(f,R,u,O){switch(f){case "MINI_APP_SOURCE_GAMESNACKS":return new en(R,u,O);default:return new adD(R,u,O)}};
waP=function(f){switch(f){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"}};
m8h=function(f){switch(f){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"}};
QTn=function(f){switch(f){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"}};
Wbl=function(){return Math.floor(Math.random()*4)+1};
EB7=function(f,R,u,O){f=_.Z(Object.entries(f));for(var c=f.next(),h={};!c.done;h={message$jscomp$957:void 0},c=f.next()){var l=_.Z(c.value);c=l.next().value;l=l.next().value;h.message$jscomp$957=l;R.push(setTimeout(function(K){return function(){O(!1);u(K.message$jscomp$957.text)}}(h),h.message$jscomp$957.delayMs));
Number(c)>0&&R.push(setTimeout(function(){O(!0)},h.message$jscomp$957.delayMs-400))}};
tCn=function(f,R){var u=u===void 0?Bi7:u;_.E("mweb_fix_monitor_visibility_after_render")?f&&LU(function(){SB5(f,R,u)}):LU(function(){SB5(f,R,u)})};
y$2=function(f){var R=f.data;var u=f.uniqueId;f=f.overrides;var O,c=((O=R.timedAnimationData)==null?void 0:O.animationTiming)||[];return _.a("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.a(DR,{settings:{uniqueId:u,timings:c,experimentEnabled:c.length>0,enabled:c.length>0}},C9B(R.buttonRenderer,{buttonRenderer:{buttonOverrides:f}})))};
b_7=function(f){d8n||(d8n=NLh(new _.UP(1,void 0,void 0,Lbe),0));var R=d8n.format(Math.floor(f));R=_.PW==="be"||_.PW==="bg"||_.PW==="es"||_.PW==="et"||_.PW==="hu"||_.PW==="ka"||_.PW==="lv"||_.PW==="pl"||_.PW==="pt-PT"||_.PW==="sq"?R.replace(new RegExp("^(\\d)"+Lbe.GROUP_SEP.replace(".","\\.")+"(\\d+("+Lbe.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):R;return f>=1E3&&f<=9999&&R[1]==="."&&(_.PW==="sl"||_.PW==="it")?R.replace(".",""):R};
pal=function(f,R){pU("ytd-button-renderer",{data:f,className:R?R.className:"",overrides:R==null?void 0:R.buttonOverrides},gP)};
J$t=function(f,R,u,O){if(f)return O=O||f.likeStatus,R?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:O==="LIKE",isDisabled:!f.likesAllowed,defaultIcon:{iconType:u},defaultText:O==="LIKE"?f.likeCountWithUnlikeText:f.likeCountText,toggledText:O==="LIKE"?f.likeCountText:f.likeCountWithLikeText,defaultNavigationEndpoint:jTP(f,"LIKE"),defaultServiceEndpoint:D85(f,"LIKE"),toggledServiceEndpoint:D85(f,"INDIFFERENT"),defaultTooltip:_.$Z(f.likeCountTooltipText),toggledTooltip:_.$Z(f.likeCountTooltipText),
targetId:f.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:O==="DISLIKE",isDisabled:!f.likesAllowed,defaultIcon:{iconType:u},defaultText:O==="DISLIKE"?f.dislikeCountWithUndislikeText:f.dislikeCountText,toggledText:O==="DISLIKE"?f.dislikeCountText:f.dislikeCountWithDislikeText,defaultNavigationEndpoint:jTP(f,"DISLIKE"),defaultServiceEndpoint:D85(f,"DISLIKE"),toggledServiceEndpoint:D85(f,"INDIFFERENT"),defaultTooltip:_.$Z(f.dislikeCountTooltipText),
toggledTooltip:_.$Z(f.dislikeCountTooltipText)}};
jTP=function(f,R){if(R==="LIKE")return f.likeCommand;if(R==="DISLIKE")return f.dislikeNavigationEndpoint};
D85=function(f,R){var u;return(u=f.serviceEndpoints)==null?void 0:u.find(function(O){var c;return((c=_.t(O,_.GB))==null?void 0:c.status)===R})};
_.H_t=function(f,R,u){return window.spf&&!_.E("web_disable_spfjs_client")?zkt(f,R,u):TLe(f,R)};
zkt=function(f,R,u){var O=null,c=(new _.ah(function(h,l){var K={};if(R){K.method=R.method;var q=R.postParams||{};x1t(f,R)&&(q[_.Tf("XSRF_FIELD_NAME")]=_.Tf("XSRF_TOKEN"));K.postData=_.As(q);R.type&&(K.type=R.type);q=R.headers}K.headers=Pqn(f,q);_.E("debug_forward_web_query_parameters")&&(f=_.BeP(f,window.location.search));K.experimental_headers=K.headers;K.onError=function(F){F.err&&F.xhr&&(F.err.params={url:F.xhr.responseURL,response:F.xhr.responseText.substr(0,64)});l(F.err)};
K.onPartDone=function(F){u&&u.call(null,F.part)};
K.onDone=function(F){var w=Id5(F.response,"xsrf_token");sC(window.location.href,f)&&w&&_.zf("XSRF_TOKEN",w);if(w=Id5(F.response,"service_worker_killswitch"))_.zf("SERVICE_WORKER_KILLSWITCH",w),Ei0();h(F.response)};
O=spf.request(f,K)})).then(MCq);
c.thenCatch(function(h){var l=h instanceof _.BB,K=h&&h.hasOwnProperty("params")&&h.params.response?h.params.response:"";h instanceof Error&&(K?l?p75(h):K===')]}\'\n{"reload":"now"}'?p75(h):(P9t(h,f,K),U80(h,K)?_.Ih(h):_.TL(h)):p75(h));O&&O.abort()});
return c};
MCq=function(f){if(f.type==="multipart"){var R=f.timing;f=f.parts.reduce(function(u,O){Object.assign(u,O);return u},{});
f.timing=f.timing||{};Object.assign(f.timing,R);f.type="reduced"}return f};
TLe=function(f,R){R=R===void 0?{}:R;var u=null,O=new _.ah(function(c,h){R.onFinish=function(l){if(l.readyState===XMLHttpRequest.DONE)if(l.status===200){if(l.responseType!=="json"){var K=l.response;K.substring(0,5)===")]}'\n"&&(K=K.substring(5));try{var q=JSON.parse(K)}catch(F){q=F}}else q=l.response;q instanceof Error?h(q):(K=Id5(q,"xsrf_token"),sC(window.location.href,f)&&K&&_.zf("XSRF_TOKEN",K),l=l.responseURL,window.performance&&window.performance.getEntriesByName?(K=window.performance.getEntriesByName(l).pop())?
l={responseStart:(0,_.iZ)()-(K.responseEnd-K.responseStart)}:(Math.random()<.01&&(K=Error("$h"),K.params=l,_.Ih(K)),l={responseStart:-1}):l={responseStart:0},q.timing=q.timing||{},Object.assign(q.timing,l),c(q))}else h(Error("Zh`"+l.status))};
(u=_.qv(f,R))||h(Error("Zh`"+u.status))});
O.thenCatch(function(c){c instanceof Error&&(P9t(c,f),U80(c)&&(c.level="WARNING"))});
_.E("cancel_pending_navs")&&O.thenCatch(function(){u.abort()});
return O};
Id5=function(f,R){var u=f[R],O=f.parts;f.type==="multipart"&&O&&(u=(f=O.find(function(c){return R in c}))&&f[R]);
return u};
P9t=function(f,R,u){var O=f.message||"";R={original:O,url:R};if(u)if(O=O.match(/position:?\s*(\d+)/)){O=O&&Number(O[1])?Number(O[1]):0;var c=Math.max(O-25,0);R.position=O;R.response=u.substring(c,O+25)}else R.response=u.substring(0,50);_.MB(f,R);try{f.message="JSON parse error"}catch(h){}};
U80=function(f,R){f=f.message||"";f=!!(f.indexOf("<")>=0||f.indexOf("end of ")>=0||f.indexOf("Unterminated string")>=0||f.indexOf("Unexpected EOF"));if(!f&&R)for(var u=R.length,O=!1,c=0;c<u;c++)if(O&&R[c]==="\\")c++;else if(R[c]==='"')O=!O;else if(R[c]==="<"&&!O){f=!0;break}return f};
ekh=function(){return document.documentElement.hasAttribute("dark")};
_.Gne=function(f,R){if(f!=="GFEEDBACK"&&f!=="GUIDED_HELP")_.IS(Error("ai`"+f));else{var u=_.vh().resolve(_.Y8(_.sz));if(u&&(u=u.getCurrentPage())&&u.getServiceTrackingParams&&(u=u.getServiceTrackingParams()))for(var O=0,c;c=u[O++];)if(c.service===f){if(f=c.params)for(u=0;O=f[u++];)R[O.key]=O.value;break}}};
_.BL0=function(f){var R=_.Vm();R&&(R=R.getPlayer())&&(R.pauseVideo(),f.playback_id=R.getVideoData().cpn,f.eid=R.getVideoData().eventId,Object.assign(f,R.getFeedbackProductData()))};
oB7=function(){var f={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Tf("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(f.enableAnonymousFeedback=!0);_.Tf("SESSION_INDEX")&&(f.authuser=String(_.Tf("SESSION_INDEX")));_.E("enable_pageid_for_feedback")&&_.Tf("DELEGATED_SESSION_ID")&&(f.pageId=String(_.Tf("DELEGATED_SESSION_ID")));return f};
_.om=function(f){_.E("enable_ypc_spinners")&&_.OJ(f,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},f])};
_.xR=function(f){_.E("enable_ypc_spinners")&&_.OJ(f,"yt-close-popup-action",["yt-loading-renderer"])};
x82=function(f){return new Promise(function(R,u){_.IF({verifyCommand:{recaptchaToken:f.recaptchaResponse}},{commandController:{onSuccess:function(O,c){c||u("ChallengeService did not return a response.");var h;R({challengeCompleted:(h=c.verified)!=null?h:!1})},
onServerError:function(O,c){u(c)}}})})};
Sg5=function(f,R,u,O){R({recaptchaResponse:O}).then(function(c){c.challengeCompleted?_.Q4()?(u(3),_.vh().resolve(_.rv).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:f}})):u(2):u(4)},function(){u(4)})};
$8B=function(f,R,u){_.Um("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Tf("HL"),function(){var O;(O=window.grecaptcha)==null||O.ready(function(){var c=window.grecaptcha;c?(u(c.render(f,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Sg5.bind(null,f,x82,R)})),R(1)):R(4)})})};
gB7=function(f,R){return function(){switch(R()){case 0:return f().captchaLoadingMessage;case 1:return f().challengeReason;case 3:return f().captchaSuccessfulMessage;case 2:return f().captchaCookieSetFailureMessage;case 4:return f().captchaFailedMessage;default:return f().challengeReason}}()};
_.sY=function(){if(!sTq){var f=document.querySelector("#player.skeleton");f&&(_.Q1(f),sTq=!0)}};
_.VC5=function(){return nB7=tGh()};
i_q=function(){return _.k(function(f){return Yg2!==void 0?f.return():_.A(f,vB5(),0)})};
vB5=function(){return _.k(function(f){if(f.nextAddress==1)return _.A(f,yCn(),2);nB7=f.yieldResult;Yg2=_.JA.addLowPriorityJob(vB5,5E3);_.KG(f)})};
cGl=function(f){var R=R===void 0?r$B:R;var u,O,c=(u=f.responseContext)==null?void 0:(O=u.mainAppWebResponseContext)==null?void 0:O.trackingParam;if(!c){R.increment("MISSING");var h,l,K,q,F,w;_.Ih(new _.ts("282054944_a",{rN4:!!((h=f.responseContext)==null?0:(l=h.mainAppWebResponseContext)==null?0:l.loggedOut),lts:((K=f.responseContext)==null?void 0:K.mainAppWebResponseContext)===void 0,zsd:f.responseContext===void 0,sa7:(q=f.playabilityStatus)==null?void 0:q.contextParams,hLI:(((F=f.streamingData)==
null?void 0:F.formats)||[]).length>0,vx4:(((w=f.streamingData)==null?void 0:w.adaptiveFormats)||[]).length>0,os:!!f.offlineState,cotn:f.cotn}));return 2}u="";try{u=fJt(c)}catch(C){return R.increment("C_ERROR"),_.TL(C),2}try{var m=_.R10(u);var W=u6P(m)}catch(C){return R.increment("P_ERROR"),_.TL(C),2}W=_.rq(W,O3l,1,_.fR());c=[];W=_.Z(W);for(m=W.next();!m.done;m=W.next())O=m.value,m=O.getPath(),u=(0,_.dq.getValueByKeys)(f,m.split(".")),u=String(u===void 0||u===null?"":u),O=O.getValue()||"",h=/[+\-\/_]/g,
u.replace(h,"")!==O.replace(h,"")&&(R.increment("MISMATCH"),_.E("ab_mis_log_err")&&(u=new _.ts("282054944_p",{xmZ:m,g:String(u),e:String(O)}),_.TL(u)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(m)||(m.match(/enforcementMessageViewModel/i)?c.push(3):c.push(2)));if(c.length>0)return Math.max.apply(Math,_.yq(c));R.increment("SUCCESS");return 1};
Z3n=function(f){var R=new n9;if(f.interpreterJavascript){var u=_.EZ2(f.interpreterJavascript);u=Mu(u).toString();var O=new XZB;_.FH(O,6,u);_.OO(R,1,O,xC)}else f.interpreterUrl&&(u=_.z2(f.interpreterUrl),u=_.k3(u).toString(),O=new _.h1B,_.FH(O,4,u),_.OO(R,2,O,xC));f.interpreterHash&&_.Vo(R,3,f.interpreterHash,xC);f.program&&_.Vo(R,4,f.program,xC);f.globalName&&_.Vo(R,5,f.globalName,xC);f.clientExperimentsStateBlob&&_.Vo(R,7,f.clientExperimentsStateBlob,xC);return R};
YR=function(f){var R={};f=_.Z(f.split("&"));for(var u=f.next();!u.done;u=f.next())u=u.value.split("="),u.length===2&&(R[u[0]]=u[1]);return R};
lJ5=function(f){return Number(f.t)||7200};
jjB=function(){if(_.E("bg_st_hr"))return"havuokmhhs-0";var f,R=((f=performance)==null?void 0:f.timeOrigin)||0;return"havuokmhhs-"+Math.floor(R)};
kN2=function(){return new Promise(function(f){var R=window.top;R.ntpevasrs!==void 0?f(new vB(R.ntpevasrs)):(R.ntpqfbel===void 0&&(R.ntpqfbel=[]),R.ntpqfbel.push(function(u){f(new vB(u))}))})};
KV2=function(f){var R=f.uZq.bind(f);_.V4("yt.aba.att",R);f=f.tOX.bind(f);_.V4("yt.aba.att2",f)};
AGn=function(f){switch(_.Kt(f.input)){case _.Ve(qR7):var R={};return R.encryptedVideoId=f.innerTubeRequest.externalVideoId,R}return{}};
FVt=function(f){switch(_.Kt(f.input)){case _.Ve(qR7):if(_.E("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Ve(iX):if(_.E("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&f.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Ve(aJe):var R,u;if(_.E("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((u=_.t((R=f.config)==null?void 0:R.command,
NXn))==null?0:u.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.mJq=function(f){var R;if(f.playlistVideoRenderer&&((R=f.playlistVideoRenderer)==null?0:R.engagementBar))return wZ7(f.playlistVideoRenderer.engagementBar);if(_.t(f,rh)){var u;if(f=(u=_.t(f,rh))==null?void 0:u.engagementBar)return wZ7(f)}return""};
wZ7=function(f){if(!f)return"";f=_.t(f,_.QJe);if(f==null||!f.actions)return"";f=_.Z(f.actions);for(f=f.next();!f.done;f=f.next()){f=_.t(f.value,_.WV7);var R=void 0;if((R=f)==null||!R.itemId)break;return f.itemId}return""};
_.EXn=function(f){var R;if(f.playlistVideoRenderer&&((R=f.playlistVideoRenderer)==null?0:R.videoId))return f.playlistVideoRenderer.videoId;if(_.t(f,rh)){var u,O;if(f=(u=_.t(f,rh))==null?void 0:(O=u.playlistItemData)==null?void 0:O.videoId)return f}return""};
_.t37=function(f){var R;if(f.playlistVideoRenderer&&((R=f.playlistVideoRenderer)==null?0:R.voteCount))return f.playlistVideoRenderer.voteCount;if(_.t(f,rh)){var u,O;if(f=(u=_.t(f,rh))==null?void 0:(O=u.playlistItemData)==null?void 0:O.voteCount)return f}return 0};
_.fS=function(f,R){return _.kZ(f.entities,"flowStateEntity",R)};
yG7=function(f,R,u,O){var c=void 0;f=_.Z(f[R.iconName]||[]);for(var h=f.next();!h.done;h=f.next()){h=h.value;var l=R.iconSize;var K=R.iconStyle;l=!l||l===h[2];var q=CWn[h[0]];O&&O!==h[1]||!l||K&&K!==q?K=!1:c?(K=CWn[h[0]],K=!!R.iconStyle||K==="youtube_outline",l=c.version<=h[1],K=(!!R.iconSize||h[2]===24)&&K&&l):K=!0;K&&(c={name:R.iconName,style:CWn[h[0]],size:h[2],version:h[1],allowMirroring:!!h[3],url:u(R.iconName,h)})}return c};
dJt=function(f,R,u,O){return f+(""+CWn[u[0]]+((O===void 0?0:O)?"_experimental":"")+"/"+R+"/v"+u[1]+"/")+(u[2]+"px.svg")};
RG=function(f){return _.E("web_bookmark_playlist_save_icon")?"bookmark":f};
N$e=function(f,R){return dJt("https://fonts.gstatic.com/s/i/",f,R)};
LVn=function(f,R){return dJt("https://fonts.gstatic.com/s/i/",f,R,!0)};
b3l=function(f,R){return dJt("https://www.gstatic.com/youtube/img/icons/web/",f,R)};
pZe=function(f){var R=f.enabled;var u=f.itemPlaybackModel;var O=f.thumbnailElRef;var c=f.containerElRef;var h=f.options;var l;_.pc(function(){var K=c==null?void 0:c.value;var q,F=(q=O())==null?void 0:q.value;q=u();var w=h();if(R&&q&&K&&F&&(w==null?0:w.thumbnail)){var m={data:q,hostElement:K},W,C,d=_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover")?[].concat(_.yq((W=w.thumbnailOverlays)!=null?W:[]),_.yq((C=q.overlays)!=null?C:[])):w.thumbnailOverlays||[],p,J;K={mediaRenderer:m,
lockupElement:K,thumbnailElement:F,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.H7((p=q.inlinePlayerData)==null?void 0:p.onVisible),navigationEndpoint:_.H7((J=q.inlinePlayerData)==null?void 0:J.onSelect),thumbnail:w.thumbnail,thumbnailOverlays:d,accessibilityText:w.accessibilityText||""},thumbnailSize:w.thumbnailSize,enableRounding:w.enableRounding}}}else K=void 0;if(p=K){var M;(M=l)==null||uk(M);l=$O(p)}});
_.jN(function(){var K;(K=l)==null||uk(K)})};
jJ0=function(f){f=atob(f);for(var R=[],u=0;u<f.length;u++)R.push(f.charCodeAt(u));return new Blob([new Uint8Array(R)],{type:"image/png"})};
JGB=function(f,R,u,O){O=O===void 0?"INSERTION_POSITION_UNSPECIFIED":O;return f({targetId:R},function(c){var h,l=(h=c.contents)!=null?h:[];h=u!=null?u:[];var K=DJe(l);switch(O){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},c,{contents:[].concat(_.yq(l.slice(0,K)),_.yq(h),_.yq(l.slice(K+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},c,{contents:[].concat(_.yq(h),_.yq(l))});case "INSERTION_POSITION_LAST":return Object.assign({},c,{contents:[].concat(_.yq(l),_.yq(h))});
default:return c}})};
T$q=function(f,R,u,O,c){c=c===void 0?"RELATIVE_INSERTION_POSITION_AFTER":c;return f({targetId:R},function(h){var l,K=(l=h.contents)!=null?l:[];l=z1h(K,u);if(l<0)return h;l=c==="RELATIVE_INSERTION_POSITION_BEFORE"?l:l+1;return Object.assign({},h,{contents:[].concat(_.yq(K.slice(0,l)),_.yq(O),_.yq(K.slice(l)))})})};
DJe=function(f){var R=f.findIndex(function(u){return _.t(u,_.OX)});
return R>=0?R:f.length};
z1h=function(f,R){return f.findIndex(function(u){a:{u=_.Z(Object.values(u));for(var O=u.next();!O.done;O=u.next())if((O=O.value)&&O.targetId){u=O.targetId;break a}u=""}return u===R})};
IJt=function(f,R,u){return f({targetId:R},function(O){var c,h=(c=O.contents)!=null?c:[];return Object.assign({},O,{contents:H37(h,u)})})};
H37=function(f,R){return f.filter(function(u){var O=R.includes;a:{u=_.Z(Object.values(u));for(var c=u.next();!c.done;c=u.next())if((c=c.value)&&c.targetId){u=c.targetId;break a}u=""}return!O.call(R,u||"")})};
_.M3B=function(f,R){return{engagementPanelSectionListRenderer:{panelIdentifier:f,identifier:R,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
PWD=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
UJX=function(f){var R=PWD(f);if(R==null?0:R.length)return R;f.loadModule("captions");return PWD(f)};
e17=function(f,R,u){if(f.getVideoData){var O,c=(O=UJX(f))==null?void 0:O.find(function(h){return h.languageCode===u});
O=_.l$("/youtube/app/player_caption_language_entity_key","stringEntity",2);R.dispatch(_.aA("stringEntity",O,{key:O,value:(c==null?void 0:c.displayName)||""}));c?f.setOption("captions","track",c):(f.setOption("captions","stickyLoading",{}),f.setOption("captions","track",{}))}};
GNn=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
B$B=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
oXn=function(f){var R=B$B(f);if(R==null?0:R.length)return R;f.loadModule("captions");return B$B(f)};
xJq=function(f){var R=f.getOption("captions","track");if(R)return R;f.loadModule("captions");return f.getOption("captions","track")};
SRh=function(f){var R=oXn(f);if(R!=null&&R.length){var u=xJq(f);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Fa("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(_.yq(R.map(function(O){return{listItemViewModel:{title:{content:O.displayName},
isSelected:O.languageCode===(u==null?void 0:u.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:O.languageCode}}]}}}}}}}})))}}}}}}}}};
nX7=function(f){return new Promise(function(R,u){if(f===void 0)_.TL(Error("Bi"),"ERROR"),u(Error("Bi"));else{u=new _.$Jn;var O=_.gXt();u=u.init();var c=_.sJn(_.Tf("YPC_MB_URL"),!0);Promise.all([u,c]).then(function(){var h=payments.business.integration.ClientTokenFactory.createClientToken(f,O);R(h)})}})};
vX2=function(f,R,u,O,c,h,l){var K=_.BM();u=u.replace(/-/g,"+").replace(/_/g,"/");var q=_.Qu().get("hl"),F=_.c9(_.Sk),w=R==null?void 0:R.element;w&&_.om(w);V32(R,!0);_.YRe(F,u,K.resolve,function(){w&&_.xR(w)},function(m){w&&_.xR(w);
K.reject(m)},q,O?function(m){O&&_.e6(f,O,{backend_analytics:m})}:void 0,K.resolve,c,h,l);
return K.promise};
V32=function(f,R){!(f=f==null?void 0:f.element)||f.tagName!=="YT-BUTTON-RENDERER"&&f.tagName!=="YTD-BUTTON-RENDERER"||(f.disabled=R)};
i30=function(){var f=_.Fa("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.fg(f),actionButton:{buttonRenderer:pE7()}}},popupType:"TOAST"}};
rG5=function(){var f=_.Fa("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.fg(f),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
fon=function(f){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:f}]}}};
Xx=function(f,R,u,O){var c;return _.k(function(h){if(h.nextAddress==1)return _.cl(h,2),_.A(h,f,4);if(h.nextAddress!=2)return(c=_.th(R.getState().entities).length>0)?h.return({title:_.fg(_.Fa("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.fg(_.Fa("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:bXh()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
h.return(jlh(u,O));_.ku(h);return h.return(jlh(u,O))})};
R0X=function(f,R){return R?R==="PPSV"||znh(f,R):!1};
uL5=function(f){f.responseContext||(f.responseContext={});f.responseContext.maxAgeSeconds=0;return f};
ZS=function(f){var R;return _.k(function(u){return u.nextAddress==1?_.A(u,OVB(f,"service:topbar:fallback"),2):(R=u.yieldResult)&&_.hd(R)?u.return(uL5(_.hd(R))):u.return()})};
c2t=function(f){var R;return _.k(function(u){return u.nextAddress==1?_.A(u,OVB(f,"service:downloads_settings:fallback"),2):(R=u.yieldResult)&&_.hd(R)?u.return(R):u.return()})};
OVB=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1)return f?_.A(O,f.get(R),2):O.return();u=O.yieldResult;return!u||!_.hd(u)||!isNaN(Number(u.data.expireTimestampMs))&&u.isExpired()?O.return():O.return(u)})};
Xyt=function(f){var R=_.vh().resolve(lk).getState().entities;return f.playlistId?R0X(R,f.playlistId):!1};
h00=function(f,R){var u;if(R==null?0:(u=R.requestTemplate)==null?0:u.panelId)f.panelId=R.requestTemplate.panelId;var O;if(R==null?0:(O=R.requestTemplate)==null?0:O.params)f.params=R.requestTemplate.params};
lo2=function(){if(ZVn)return ZVn();var f=!_.E("idb_response_store_auth_killswitch"),R={};ZVn=vf("yt-it-response-store",{objectStores:(R.ResponseStore={addedAtVersion:1},R),shared:!f,upgrade:function(u,O){O(1)&&(u=UL(u,"ResponseStore",{keyPath:["key","clientName"]}),eI(u,"byExpiration","expireTimestampMs"),eI(u,"byInterface","clientName"))},
version:1});return ZVn()};
kr0=function(f){return _.xx(lo2(),f)};
qMl=function(f,R){var u;return _.k(function(O){return O.nextAddress==1?_.A(O,_.Yx(),2):(u=O.yieldResult)?O.return(new Ksq(f,R,u)):O.return()})};
A27=function(f){var R=Object.keys(f)[0];if(R)return f.screenExit&&(R=R+";"+f.screenExit.screen),R};
aot=function(f){var R=new Map;f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,u!=null&&(R.has(u.taskType)||R.set(u.taskType,[]),R.get(u.taskType).push(u));return R};
Fsn=function(f){return!isNaN(f)&&f>0};
wyn=function(f){f=[].concat(_.yq(f)).sort(function(u,O){return u-O});
var R=Math.floor(f.length/2);return f.length%2?f[R]:(f[R-1]+f[R])/2};
WsP=function(f,R){f=f===void 0?A4B:f;R=R===void 0?{}:R;_.V4("yt.logging.errors.log",_.TL);Ki2();m6e(QFe(),R);window.onerror=f;QHn=qxn;window.addEventListener("unhandledrejection",function(u){if(u.reason instanceof Error){var O=u.reason;_.MB(O,{source:"unhandledrejection"});O.name==="AbortError"&&(O.level="WARNING")}qxn(u.reason);u.preventDefault()})};
_.Epl=function(f){return f.a11y.ephemeralAction||null};
_.tx2=function(f){var R,u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD,mP,NX,jt,Jn,zq,St,Gq,LC,wN,GI,ak,kC,Rw,KC,qe,LE,k5;return _.k(function(yA){if(yA.nextAddress==1)return _.A(yA,_.wz(f,{mode:"readonly",enableRetries:!0},function(HG){return mB(HG,"playbackData").then(function(GX){var bf=GX.map(function(Y5){return Y5.transfer}).filter(function(Y5){return!!Y5}),$C=GX.map(function(Y5){return Y5.offlineVideoPolicy}).filter(function(Y5){return!!Y5}),Bl=GX.filter(function(Y5){return!!Y5.key}).map(function(Y5){return _.l$(_.XX(Y5.key).entityId,
"downloadStatusEntity")});
bf=mB(HG,"transfer",bf);$C=mB(HG,"offlineVideoPolicy",$C);Bl=mB(HG,"downloadStatusEntity",Bl);var qt=bf.then(function(Y5){Y5=Y5.reduce(function(tf,lK){(lK==null?0:lK.offlineVideoStreams)&&tf.push.apply(tf,_.yq(lK.offlineVideoStreams));return tf},[]).filter(function(tf){return!!tf});
return mB(HG,"offlineVideoStreams",Y5)});
return Pf.all([bf,$C,qt,Bl]).then(function(Y5){var tf=_.Z(Y5);Y5=tf.next().value;var lK=tf.next().value;var CC=tf.next().value;tf=tf.next().value;return[GX,Y5,lK,CC,tf]})})}),2);
if(yA.nextAddress!=3)return R=yA.yieldResult,_.A(yA,_.wz(f,{mode:"readonly",enableRetries:!0},function(HG){return mB(HG,"mainDownloadsListEntity").then(function(GX){var bf,$C;return($C=(bf=GX[0])==null?void 0:bf.downloads)!=null?$C:[]})}),3);
u=yA.yieldResult;O=_.Z(R);c=O.next().value;h=O.next().value;l=O.next().value;K=O.next().value;q=O.next().value;F=c;w=h;m=l;W=K;C=q;d={};p={};J={};M={};P={};g=[];x=_.Z(w);for(fh=x.next();!fh.done;fh=x.next())(V=fh.value)&&(d[V.key]=V);ZD=_.Z(m);for(mP=ZD.next();!mP.done;mP=ZD.next())(NX=mP.value)&&(p[NX.key]=NX);jt=_.Z(C);for(Jn=jt.next();!Jn.done;Jn=jt.next())(zq=Jn.value)&&(J[zq.key]=zq);St=_.Z(W);for(Gq=St.next();!Gq.done;Gq=St.next())(LC=Gq.value)&&(M[LC.key]=LC);wN=_.Z(u);for(GI=wN.next();!GI.done;GI=
wN.next())ak=GI.value,kC=void 0,P[(kC=ak.videoItem)!=null?kC:""]=!0,ak.videoItem&&(KC=Rw=void 0,qe=(KC=(Rw=_.XX(ak.videoItem))==null?void 0:Rw.entityId)!=null?KC:"",g.push({externalVideoId:qe}));LE=F.filter(function(HG){if(!HG||!HG.key||!HG.offlineVideoPolicy)return!1;HG=_.XX(HG.key).entityId;HG=_.l$(HG,"downloadStatusEntity");var GX;return!(HG&&((GX=J[HG])==null?void 0:GX.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
k5=LE.map(function(HG){var GX=d[HG.transfer],bf=[];if(GX==null?0:GX.offlineVideoStreams)for(var $C=_.Z(GX.offlineVideoStreams),Bl=$C.next();!Bl.done;Bl=$C.next())(Bl=M[Bl.value])&&bf.push(Bl);$C=p[HG.offlineVideoPolicy];Bl=P;var qt=HG==null?void 0:HG.playerResponseTimestamp,Y5=_.XX($C.key).entityId;HG=_.l$(Y5,"mainVideoEntity");if($C.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var tf="OFFLINE_VIDEO_STATE_DISABLED";$C.expirationTimestamp&&Number($C.expirationTimestamp)<Date.now()/1E3&&(tf="OFFLINE_VIDEO_STATE_EXPIRED")}else if($C.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")tf="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(GX==null?void 0:GX.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":tf="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":tf="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":tf="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":tf="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":tf="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":tf="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:tf="OFFLINE_VIDEO_STATE_UNKNOWN"}if(tf==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(GX==null?void 0:GX.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":tf="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":tf="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":tf=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Y5={id:Y5,videoState:tf};if(GX==null?0:GX.cotn)Y5.cotn=GX.cotn;if(GX==null?0:GX.maximumDownloadQuality)Y5.selectedVideoQuality=GX==null?void 0:GX.maximumDownloadQuality;if(GX==null?0:GX.lastProgressTimeMs)Y5.lastProgressTimeMs=GX.lastProgressTimeMs;qt&&(Y5.playerResponseSavedTimeMs=String(Number(qt)*1E3));GX=String;qt=0;bf=_.Z(bf);for(tf=bf.next();!tf.done;tf=bf.next())if(tf=tf.value,tf.streamsProgress){tf=_.Z(tf.streamsProgress);for(var lK=tf.next();!lK.done;lK=
tf.next()){var CC=void 0;qt+=Number((CC=lK.value.numBytesDownloaded)!=null?CC:0)}}Y5.downloadedBytes=GX(qt);Y5.selectedOfflineMode=Bl[HG]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";$C.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Y5.offlinePlaybackDisabledReason=$C.offlinePlaybackDisabledReason);return Y5});
return yA.return({offlineVideos:k5,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:g}}})})};
CnX=function(){var f;return _.k(function(R){return R.nextAddress==1?_.A(R,_.Ah(),2):(f=R.yieldResult)?R.return(_.tx2(f)):R.return({state:"PES Unavailable"})})};
NDP=function(){var f,R,u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,_.Ah(),2);if(c.nextAddress!=3)return(f=c.yieldResult)?_.A(c,y2q(f),3):c.return({state:"PES Unavailable"});R=c.yieldResult;u={};O=R.reduce(function(h,l){h[l.key]=l;return h},u);
return c.return(d67(O))})};
d67=function(f){for(var R={},u=[],O=_.Z(Object.keys(f)),c=O.next();!c.done;c=O.next()){var h=c.value;c=f[h];var l=void 0;if(((l=c)==null?void 0:l.entityType)==="mainVideoEntity"){delete f[h];var K=c.data;c={};if(K){var q=void 0;l=(q=K.videoId)!=null?q:"vid-"+h;h=f;c.video=K;delete c.video.formattedDescription;delete c.video.thumbnail;K.owner&&(q=h[K.owner],q==null?0:q.data)&&(delete h[q.key],c.video.owner=q.data,delete c.video.owner.avatar);if(K=K.downloadState)if(q=h[K],q==null?0:q.data)if(delete h[K],
K=q.data.playbackData)if(q=h[K],q!=null&&q.data){delete h[K];K=q.data;delete K.playerResponseJson;c.playbackData=K;if(K.transfer&&(q=h[K.transfer],q==null?0:q.data)){delete h[q.key];var F=q.data;c.transfer=F;q=[];F=_.Z(F.offlineVideoStreams||[]);for(var w=F.next();!w.done;w=F.next())if(w=h[w.value])delete h[w.key],q.push(w.data);q&&(c.streams=q)}(K=K.offlineVideoPolicy)&&(K=h[K])&&K.data&&(delete h[K.key],c.offlineVideoPolicy=K.data)}R[l]=c}}else c&&c.entityType==="offlineOrchestrationActionWrapperEntity"&&
c.data&&(delete f[c.key],l=c.data,h=void 0,u.push({id:l.rootActionId,type:((h=l.actionProto)==null?void 0:h.actionType)||"",entity:c}))}R.wrapperEntities=u;Object.keys(f).length>0&&(R.unknownKeys=f);return R};
Lsn=function(){var f,R,u,O,c,h,l,K,q;return _.k(function(F){if(F.nextAddress==1)return f=!!(new _.Mx("")).expiringStorage_,O=!!((R=_.Oe.crypto)==null?0:(u=R.subtle)==null?0:u.importKey),c=!!_.Oe.BroadcastChannel,h=!!_.Oe.navigator.locks,_.A(F,xsn(),2);l=F.yieldResult;K=f&&O&&c&&h&&l;q={isSupported:K};if(K)return F.return(q);q.missingBrowserFeatures=[];l||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");f||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
O||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");c||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");h||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return F.return(q)})};
bVX=function(){var f;return!((f=kj?kj:null)==null||!f.window)};
_.jHn=function(f){if(_.Tq()&&_.qeX("Chromium")>=120){var R=_.pyh().mediaSession;try{R.setActionHandler("enterpictureinpicture",function(){f()})}catch(u){}}};
D6B=function(f){for(var R=[],u=_.Z(document.styleSheets),O=u.next(),c={};!O.done;c={node$jscomp$725:void 0},O=u.next())c.node$jscomp$725=O.value.ownerNode,c.node$jscomp$725&&(c.node$jscomp$725 instanceof HTMLStyleElement||c.node$jscomp$725 instanceof HTMLLinkElement)&&R.push(new Promise(function(h){return function(l){var K=h.node$jscomp$725.cloneNode(!0);K.onload=function(){l()};
K.onerror=function(){_.Ih(Error("dj"));l()};
f.document.head.appendChild(K)}}(c)));
return Promise.all(R)};
GrD=function(f){var R=[_.rn(J2e),_.rn(z0X),_.rn(TDD)];HVB(window.document.documentElement,f.document.documentElement,[_.rn(Ioq),_.rn(MxP),_.rn(PnD),_.rn(U67),_.rn(e07)]);HVB(window.document.body,f.document.body,R)};
HVB=function(f,R,u){f=_.Z(f.attributes);for(var O=f.next();!O.done;O=f.next())if(O=O.value)try{_.Bz(u,R,O.name,O.value)}catch(c){}};
opt=function(f,R){f=new _.KS(f.document.documentElement);f.start(BD2,R);return f};
x6e=function(f){var R=f.document.documentElement;R.addEventListener("click",function(u){Mc7(R,u)});
R.addEventListener("touchstart",function(u){Bdh(u)});
R.addEventListener("mousedown",function(u){Bdh(u)})};
$6n=function(f,R,u,O){O=O===void 0?!1:O;R=new SMP(R||f,u||f);return{x:f.x+((O===void 0?0:O)?R.lengthX*-1:R.lengthX)*.2,y:f.y+((O===void 0?0:O)?R.lengthY*-1:R.lengthY)*.2}};
gpe=function(f){if(!f)return!1;var R=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",u,O,c,h=(c=(u=f.errorScreen)==null?void 0:u.playerLegacyDesktopYpcTrailerRenderer)!=null?c:(O=f.errorScreen)==null?void 0:O.ypcTrailerRenderer;return!!R||!!h};
_.sHn=function(f,R){if(!f)return!1;var u,O=(u=f.errorScreen)==null?void 0:u.playerLegacyDesktopYpcOfferRenderer,c;R=!!(R==null?0:(c=R.playerOverlayRenderer)==null?0:c.gatedActionsOverlayRenderer);return!!gpe(f)||!!O||!!R};
YMB=function(f){return np5(f,0,"gclid",f.search(Vxq))>=0||np5(f,0,"gad_source",f.search(Vxq))>=0};
r2B=function(f){var R=[],u=0;return{push:function(O){R[u]=O;u=(u+1)%f},
iterate:function(){return function c(){var h,l,K,q;return _.vp2(c,function(F){switch(F.nextAddress){case 1:_.Zu(F,2),h=R.length,l=0;case 4:if(!(l<h)){F.jumpTo(2);break}K=u+l;q=_.iV5;return _.A(F,R[K%h],7);case 7:q(F.yieldResult);l++;F.jumpTo(4);break;case 2:_.hu(F),_.lC(F,0)}})}()}}};
RPn=function(){var f=_.RV("web_max_tracing_events",0);_.E("web_enable_tracing")&&f>0&&fh0(f)};
fh0=function(f){var R=r2B(f);H5B({enabledSpans:{event:!0},sample:function(u,O){return u==="event"?!ujB.has(O.type):!1},
spanProcessors:[{onSpanStart:function(u){R.push(u)}}]});
y45.subscribe("handleError",function(u){try{Object.assign(u.params,{breadcrumbs:JSON.stringify(Array.from(R.iterate()))})}catch(O){_.TL(O,"WARNING")}})};
ObD=function(f){return new Promise(function(R){window.setTimeout(R,f)})};
cQn=function(f){var R={bicf:function(h){f.txz=h},
blc:function(){return f.getLatestChallengeResponse()},
bcr:function(h){f.oW7.push(h)}},u=window.top;
u.ntpevasrs=R;if(u.ntpqfbel!==void 0)for(var O=_.Z(u.ntpqfbel),c=O.next();!c.done;c=O.next())c=c.value,c(R);u.ntpqfbel=void 0};
XAl=function(f){return _.k(function(R){if(R.nextAddress==1)return _.cl(R,2),_.A(R,f.cHp(),4);if(R.nextAddress!=2)return _.Bf(R,0);_.ku(R);_.KG(R)})};
hP2=function(f){var R,u;(R=f.ytcsi)==null||(u=R.tick)==null||u.call(R,"pot_ist")};
Zbn=function(f){if(f instanceof Error){var R=_.Ph("yt.logging.errors.log");R&&R(f,"WARNING")}};
lh7=function(f){try{var R=JSON.parse(f);if(R.bgChallenge)return R}catch(u){}};
K5t=function(){var f=window,R={networkStatusManagerPromise:_.vh().resolve(new LFX(_.$M)),initialChallengeSli:_.E("wpo_att_sli")?new _.JoD("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};f=f===void 0?window:f;var u=f.ytAtR,O;R==null||(O=R.initialChallengeSli)==null||_.qS(O);if(u){if(u=lh7(u)){var c;R==null||(c=R.initialChallengeSli)==null||_.Ad(c,"SUCCESS");kie(u,R)}f.ytAtR=void 0}else f.ytAtRC=function(h){if(h=lh7(h)){var l;R==null||(l=R.initialChallengeSli)==null||
_.Ad(l,"SUCCESS");kie(h,R);f.ytAtRC=void 0}}};
ah5=function(){if(qjn)return qjn;try{var f=_.mD("IFRAME");_.D0(f,_.R0(AQn));f.sandbox.add("allow-same-origin");f.style.display="none";document.body.appendChild(f);return qjn=f}catch(R){f=new _.ts("Failed to create sandbox iframe"),_.TL(f)}};
F5n=function(f){var R,u;return(u=f==null?void 0:(R=f.contentWindow)==null?void 0:R.fetch)!=null?u:window.fetch};
wAX=function(f){var R,u;return(u=f==null?void 0:(R=f.contentWindow)==null?void 0:R.JSON.parse)!=null?u:JSON.parse};
mzq=function(f){var R,u;return(u=f==null?void 0:(R=f.contentWindow)==null?void 0:R.Request)!=null?u:window.Request};
E4q=function(){if(IM5()==="hidden")var f="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else IM5()==="visible"&&(f="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",QQn=null);f&&W5D(f)};
W5D=function(f){if(f==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||f==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(te0===f)return;te0=f}var R=9E4+Math.random()*2E3;if(f!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.OW()>R)&&IM5()==="visible"){R=-1;QQn&&(R=Math.round((0,_.iZ)()-QQn));var u=String;var O=_.Ph("_fact",window);O=O==null||O==-1?-1:Math.max(Date.now()-O,0);_.Jr("foregroundHeartbeat",{firstActivityMs:u(O),clientDocumentNonce:qFX,index:String(CD7),lastEventDeltaMs:String(R),trigger:f});
_.V4("_fact",-1,window);CD7++;QQn=(0,_.iZ)()}};
_.yQD=function(){try{return!!self.sessionStorage}catch(f){return!1}};
dzn=function(){var f=navigator;return new Promise(function(R,u){var O;(O=f.webkitTemporaryStorage)!=null&&O.queryUsageAndQuota?f.webkitTemporaryStorage.queryUsageAndQuota(function(c,h){R({usage:c,quota:h})},function(c){u(c)}):u(Error("mj"))})};
N80=function(f,R){var u={errorSeverity:R.errorSeverity.toString(),wizFeatureFlags:Object.entries(R.featureFlags).join("\n")};kWD(R,u);R=R.errorSeverity;R===3?_.TL(f,"ERROR",void 0,void 0,void 0,u):R===2&&_.TL(f,"WARNING",void 0,void 0,void 0,u);_.E("cow_if_errors_in_popup")&&R===3&&f.message.indexOf("<If>")!==-1&&window.alert(f.message)};
L5P=function(f,R,u){f.componentType!==dP&&u instanceof HTMLElement&&R&&!_.E("cow_logging_in_component_wrapper")&&CMB(u,R,!0)};
bb0=function(f,R,u){R=R===void 0?{}:R;var O,c=(O=_.t(f.commandMetadata,_.vc))==null?void 0:O.url;O=R.form||{};!u||O.element||O.skipDefaultElement||(R.form=R.form||{},R.form.element=u);if(c&&c!=="/service_ajax")return{type:0,command:f,form:R.form};if(_.E("kevlar_service_command_check")){if(_.Uz(_.vh().resolve(_.JN),f))return Object.assign({},{type:1,command:f},R)}else{var h;if((h=_.t(f.commandMetadata,_.vc))==null?0:h.apiUrl)return Object.assign({},{type:1,command:f},R)}return{type:2,command:f,form:R.form}};
pAh=function(f){if(f.form){var R=f.form,u=Object.assign({},R);R=R.element;u=(delete u.element,u);if(R)return[_.hH(R,[f.command,u,f.commandController])]}return[]};
jQq=function(f){if(f.form){var R=f.form,u=Object.assign({},R);R=R.element;u=(delete u.element,u);R&&_.ZW(R,[f.command],R,u)}};
JQD=function(f,R,u){var O=new DzD(f,R),c=new aG(f,R,u);f={"/youtubei/v1/browse":new Fx(f,R,u),"/youtubei/v1/player":O,"/youtubei/v1/navigation/resolve_url":new wI,"/youtubei/v1/next":c,"/youtubei/v1/guide":new mz(u),"/youtubei/v1/search":new Qk(f,R,u),"/youtubei/v1/reel/reel_item_watch":new W9(f,R,u),"/youtubei/v1/get_watch":new EX(O,c)};f["/youtubei/v1/account/account_menu"]=new td;f["/youtubei/v1/notification/get_notification_menu"]=new CS;return f};
dI=function(){var f=_.vh().resolve(yk);return Promise.resolve(zPt(f,_.Oe.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
T8n=function(f){return f&&(f=_.NS(_.hZ7(f)))?(new URLSearchParams(f)).get("service"):null};
pS=function(f,R){_.Oz(_.LS(),function(){_.JH("adl")});
_.vh().resolve(HbP)(R);f=f.root;f.loadData&&f.loadData(R);(R==null?0:R.response)?_.Ad(HdB(),"SUCCESS"):_.Ih(new _.ts("Lifecycle: No response in data",_.Hh("IS_SHELL_LOAD"),R?R.page:"NO_PAGE",R?R.endpoint:"NO_ENDPOINT"));f.polymerController.$["page-manager"].lazyPrepareCriticalPages((R==null?void 0:R.page)||"",R.endpoint);var u,O;((O=_.t(R==null?void 0:(u=R.endpoint)==null?void 0:u.commandMetadata,_.vc))==null?0:O.webPageType)&&_.sP().dispatch(_.bk(_.t(R.endpoint.commandMetadata,_.vc).webPageType))};
IhP=function(){var f,R;return _.k(function(u){switch(u.nextAddress){case 1:f=window;if(!f.getDataPromise){u.jumpTo(2);break}_.cl(u,3);return _.A(u,f.getDataPromise(),5);case 5:return u.return(u.yieldResult);case 3:return _.ku(u),_.A(u,dI(),6);case 6:return u.return(u.yieldResult);case 2:if(f.getInitialData)return R=f.getInitialData(),f.getInitialData=void 0,u.return(R);throw Error("oj`"+_.Oe.location.href);}})};
PDX=function(){_.zf("CSI_SERVICE_NAME","youtube");_.ja({loadType:"cold"});_.E("kevlar_log_lcp")&&Met(function(f){_.JH("lcp",f.value)})};
UzB=function(){var f=_.GP(document.location.href,"enable");f&&f.indexOf("scraper")>-1&&_.zf("ADD_SCRAPER_ATTRIBUTES",!0)};
xz7=function(f){var R=f.root;f=[ePX,Gil,_.jg];_.E("web_feedback_endpoint_autolog_allowlist_killswitch")&&f.push(_.DS,B8X);o4P(function(u,O){return bb0(u,O,R)},function(u){if(!u.command)return[];
var O;((O=u.form)==null?0:O.element)?u.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},u.form,{endpoint:u.command})})):R.handleNavigate(u);return[]},f);
_.vh().addProvider({provide:_.rv,useValue:_.KU.instance})};
$z5=function(){var f={},R={},u;for(u in Sjt){var O=_.Z(_.qK(Sjt[u],void 0,"NBH2te"));f[u]=O.next().value;R[u]=O.next().value}return[f,function(c){for(var h in c){var l=void 0;(l=R[h])==null||l(c[h])}}]};
_.n4h=function(f,R){var u=_.dq.getValueByKeys(f,"contents","twoColumnWatchNextResults","results","results","contents"),O=_.dq.getValueByKeys(f,"contents","twoColumnWatchNextResults","playlist","playlist")||null,c=null,h=null;if(O)c=_.dq.getValueByKeys(O,"titleText"),h=_.dq.unsafeClone(_.dq.getValueByKeys(O,"longBylineText")),u="",h&&(u=_.$Z(h)),h=_.S8(u);else if(u){u=_.Z(u);for(var l=u.next();!l.done;l=u.next())l=l.value,l.videoPrimaryInfoRenderer&&(c=_.dq.getValueByKeys.apply(_.dq,[l].concat(_.yq(g42)))),
l.videoSecondaryInfoRenderer&&(h=_.dq.getValueByKeys.apply(_.dq,[l].concat(_.yq(sQl))))}else _.UC(Error("tj"));var K;f.currentVideoEndpoint?K=f.currentVideoEndpoint:_.UC(Error("uj"));var q;R&&(q=_.dq.getValueByKeys(R,"playabilityStatus","miniplayer","miniplayerRenderer"));f={miniplayerTitle:c,miniplayerSubtitle:h,watchEndpoint:K,playlistData:O};q&&(f.miniplayerRenderer=q);return f};
Vee=function(f){if(f)return _.Dz(f)};
_.Yj0=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
v4B=function(f){return f.videoDuration?f.numTaps>1&&f.tapDirection!==0?_.Jd(f.draggedTime/f.videoDuration,0,1):_.Jd((f.playedTime||0)/f.videoDuration,0,1):0};
ibt=function(f){return f.videoDuration?f.isDragging||f.numTaps>1&&f.tapDirection!==0?_.Jd(f.draggedTime/f.videoDuration,0,1):_.Jd((f.playedTime||0)/f.videoDuration,0,1):0};
ft0=function(f){var R,u,O;return _.t(f==null?void 0:(R=f.markersMap)==null?void 0:(u=R.find(function(c){return c.key==="HEATSEEKER"}))==null?void 0:(O=u.value)==null?void 0:O.heatmap,rQt)};
R6B=function(f){var R,u;return(u=(R=ft0(f))==null?void 0:R.heatMarkersDecorations)!=null?u:[]};
uEe=function(f){if(_.E("mweb_supported_chapters_killswitch"))return!0;var R;return!!(f==null?0:(R=f.markersMap)==null?0:R.find(function(u){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(u.key)}))};
_.Oo7=function(f){var R=Object,u=R.assign,O;f={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(O=f==null?void 0:f.getPlayerState())!=null?O:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return u.call(R,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},f,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
cb0=function(f){return function(R){var u=f(),O,c=(O=u.playerApi)==null?void 0:O.getPlayerState();R&&R!==u.playerState&&(R===1||R===2)&&u.setState({playerState:c})}};
h6B=function(f){return function(R){var u=f(),O=u.playerApi;O&&(R==null?void 0:R.type)==="newdata"&&(XDX&&(clearTimeout(XDX),XDX=void 0),_.E("web_shorts_use_progress_state_for_gapless")?(R=O==null?void 0:O.getProgressState(R==null?void 0:R.playertype),R=R.seekableEnd-R.seekableStart):R=O==null?void 0:O.getDuration(R==null?void 0:R.playertype),u.setState({playedTime:0,videoDuration:R}))}};
Zon=function(f){return function(R){var u=f(),O=u.playerApi;if(O){var c=O.getPresentingPlayerType();_.E("web_shorts_use_progress_state_for_gapless")?(O=O.getProgressState(c),O=O.seekableEnd-O.seekableStart):O=O.getDuration(c);u.setState({playedTime:R,videoDuration:O})}}};
KR7=function(f){var R=f.element;var u=f.veType;var O=f.storedVisualElement===void 0?null:f.storedVisualElement;var c=f.elementIndex===void 0?0:f.elementIndex;f=f.clientYouTubeData;var h=_.z4();h!==ltq&&(kcn.clear(),ltq=h);if(R.visualElement&&kcn.has(R.visualElement))return null;if(O&&kcn.has(O))return R.visualElement=O,null;u=_.Fy(_.wR(),{veType:u,elementIndex:c,clientYouTubeData:f});if(!u)return null;R.visualElement=u;kcn.add(u);return u};
_.za=function(f,R,u,O){u=u===void 0?null:u;O=O===void 0?Bi7:O;var c=c===void 0?null:c;LU(function(){if(R){u instanceof Function&&(u=u());var h=KR7({element:R,veType:f,storedVisualElement:u,clientYouTubeData:void 0});h&&(SB5(R,c),O(h))}})};
AbP=function(f){_.za(112394,f,function(){return q30},function(R){q30=R})};
wDX=function(f,R){if(!f)return[];var u,O,c;f=((u=f.markersMap)==null?void 0:(O=u.find(function(h){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(h.key)}))==null?void 0:(c=O.value)==null?void 0:c.chapters)||[];
!ath(f)||(R==null?0:R.ignoreStub)||(f=[FRX()].concat(_.yq(f)));return f};
FRX=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ath=function(f){if(f.length===0)return!1;var R;return((R=_.t(f[0],Ta))==null?void 0:R.timeRangeStartMillis)!==0};
H9=function(f){return f?f.timeRangeStartMillis||0:0};
Qql=function(f,R){if(f.isDragging&&R)return f=mnn(f,R),f===-1?FRX():wDX(R)[f]};
mnn=function(f,R){return f.isDragging&&R?wDX(R,{ignoreStub:!0}).findIndex(function(u,O,c){u=WRB(f);return Egq(u,c,O).scrubberHovering}):-1};
WRB=function(f){return Object.assign({},f,{videoDuration:f.videoDuration*1E3,playedTime:f.playedTime*1E3,draggedTime:f.draggedTime*1E3})};
Egq=function(f,R,u){var O=H9(_.t(R[u],Ta));R=H9(_.t(R[u+1],Ta))||f.videoDuration;u=f.isDragging;var c;if(c=f.isDragging)c=f.draggedTime,c=c!==null&&c>=O&&c<R;var h=f.playedTime;return h!==null&&h>=O&&h<R?{videoPosition:"active",isScrubbing:u,scrubberHovering:c}:f.playedTime<O?{videoPosition:"pending",isScrubbing:u,scrubberHovering:c}:{videoPosition:"seen",isScrubbing:u,scrubberHovering:c}};
tB7=function(f,R){return f.videoPosition==="seen"||(R===void 0?0:R)>0};
CGq=function(f,R,u){R=f/R.storyboardInterval;var O=wDX(u);if(!O.length)return-R*72;u=0;O=_.Z(O);for(var c=O.next();!c.done;c=O.next())if(H9(_.t(c.value,Ta))/1E3<f)u++;else break;return-(R*72)-u*56};
ybe=function(f){return f?f.width/f.columns:0};
dnP=function(f){return f.isHovering?f.hoveredTime:f.draggedTime};
N6e=function(f,R){f=f.draggedTime*1E3;return f>=R.visibleTimeRangeStartMillis&&f<=R.visibleTimeRangeEndMillis};
_.LR5=function(f){if(f===void 0||Number.isNaN(f))return"--:--";var R=Math.abs(Math.floor(f)),u=Math.floor(R/86400),O=Math.floor(R%86400/3600),c=Math.floor(R%3600/60);R=Math.floor(R%60);var h="";u>0&&(h+=u+":",O<10&&(h+="0"));if(u>0||O>0)h+=O+":",c<10&&(h+="0");h+=c+":";R<10&&(h+="0");h+=R;return f>=0?h:"-"+h};
bon=function(f,R){return function(){var u=dnP(f());var O=R();var c=f().playerApi;if(c&&c.getNumberOfStoryboardLevels()!==0){var h=c.getStoryboardFrameIndex(u,1);h!==-1?O=c.getStoryboardFrame(h,1):(u=c.getStoryboardFrameIndex(u,0),c=c.getStoryboardFrame(u,0),O&&c&&(c.height*=3,c.width*=3),O=c)}else O=null;if(!O)return null;R()&&(O.width=90*O.columns,O.height=160*O.rows);return O}};
_.IG=function(f){if(!f||f.getVideoData)return f};
pD2=function(){var f;return{playerApi:(f=_.Xk())!=null?f:void 0}};
_.T6D=function(f){function R(V){V!==0||m?V>50&&(m||!C)?(W(!1),d(!0)):V<=50&&(m||C)&&(W(!1),d(!1)):W(!0)}
function u(){var V;return _.k(function(ZD){if(ZD.nextAddress==1)return _.A(ZD,_.cJ(),2);(V=ZD.yieldResult)&&(V.isMuted()?W(!0):W(!1));_.KG(ZD)})}
var O=f.noSlider;var c=f.orientation;f=_.sW();var h=_.sW(),l=_.n0(),K=_.Z(qp(!1)),q=K.next().value,F=K.next().value,w=_.Z(qp(!1));K=w.next().value;w=w.next().value;var m=K,W=w;w=_.Z(qp(!0));K=w.next().value;w=w.next().value;var C=K,d=w;K=c==="vertical_down";_.bt(function(){function V(){F(!0)}
function ZD(){F(!1)}
O?(u(),R(m?0:100)):l&&l.value&&(l.value.addEventListener("focus",V),l.value.addEventListener("focusout",ZD),jq0(l.value).then(function(){R(Number(Dnl(l.value)))}));
h&&h.value&&(h.value.addEventListener("focus",V),h.value.addEventListener("focusout",ZD));return function(){var mP;l==null||(mP=l.value)==null||mP.removeEventListener("focus",V);var NX;l==null||(NX=l.value)==null||NX.removeEventListener("focusout",ZD);h.value.removeEventListener("focus",V);h.value.removeEventListener("focusout",ZD)}});
var p=_.Ff(function(){if(l&&l.value){var V=Number(Dnl(l.value));JbB(V);l.value.style.setProperty("--gradient-percent",V+"%");R(V)}return!1});
w={};w=(w.ytdDesktopShortsVolumeControlsHost=!0,w.ytdDesktopShortsVolumeControlsHostVertical=K,w.ytdDesktopShortsVolumeControlsHostExpanded=q,w);var J={},M=(J.ytdDesktopShortsVolumeControlsSliderContainer=!0,J.ytdDesktopShortsVolumeControlsSliderContainerExpanded=q,J.ytdDesktopShortsVolumeControlsSliderContainerVertical=K,J.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=c==="vertical_down",J.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=q&&K,J);c={};var P=(c.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,c.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=O?!1:q,c);q={};q=(q.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=K,q);c=_.Ff(function(){F(!0)});
J=_.Ff(function(){F(!1)});
var g=_.Ff(function(){if(l&&l.value||O)z6e(l.value,m,O),W(!m);return!1}),x=_.E("web_shorts_keyboard_enable_mute_shortcut")?m?_.Fa("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.Fa("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):m?_.Fa("UNMUTE_VOLUME",void 0,"Unmute"):_.Fa("MUTE_VOLUME",void 0,"Mute"),fh={sources:[{clientResource:{imageName:m?_.E("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":C?_.E("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.E("web_shorts_modern_controls")?
"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.a("desktop-shorts-volume-controls",{"on:pointerleave":J,class:_.AS(w),el:f},V1(!K,function(){return _.a("div",{class:_.AS(P)})}),_.a("div",{class:_.AS(q)},_.a("button",{"aria-label":x,
title:x,el:h,"on:click":g,"on:pointerenter":c,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},fh?_.a(_.gR,{data:fh,alt:x,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),V1(!O,function(){return _.a("div",{class:_.AS(M)},_.a("input",{"aria-label":_.Fa("VOLUME"),title:_.Fa("VOLUME"),el:l,"on:input":p,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
jq0=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.cJ(),2);R=O.yieldResult;u=50;R&&(u=R.getVolume(),R.isMuted()?HoP(f,0):HoP(f,u));_.KG(O)})};
JbB=function(f){var R;_.k(function(u){if(u.nextAddress==1)return _.A(u,_.cJ(),2);if(R=u.yieldResult)R.unMute(!0),R.setVolume(f,!0);_.KG(u)})};
HoP=function(f,R){f&&(f.value=""+R,f.style.setProperty("--gradient-percent",R+"%"))};
Dnl=function(f){var R;return(R=f==null?void 0:f.value)!=null?R:0};
z6e=function(f,R,u){var O;_.k(function(c){if(c.nextAddress==1)return _.A(c,_.cJ(),2);O=c.yieldResult;R&&O?(O.unMute(!0),!u&&f&&HoP(f,O.getVolume())):O&&(O.mute(!0),!u&&f&&HoP(f,0));_.KG(c)})};
ItX=function(){var f;_.k(function(R){if(R.nextAddress==1)return _.A(R,_.cJ(),2);f=R.yieldResult;if(!f)return R.return();f.isMuted()?f.unMute(!0):f.mute(!0);_.KG(R)})};
MBe=function(f){var R=_.vh().resolve(_.MS).getPlayerElement();R&&f&&(f===1?R.pause():R.play())};
PGB=function(f){_.c_(f,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Unn=function(f){_.c_(f,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Gc7=function(f){return _.dv(f.document.body,function(){return _.a(e6X,null)})};
B6n=function(){var f=window.performance.getEntriesByType("navigation");return f?f.map(function(R){return R.type}).includes("reload"):!1};
VB2=function(){P9(P9(P9(P9(P9(P9(P9(_.vh().resolve(_.UX),_.og5),_.xn2),_.S3D),_.$nq),_.ggD),_.sqt),_.ngn)};
Y37=function(f,R){R=R===void 0?!1:R;var u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return R||!_.E("kevlar_shorts_seedless_retry_initial_load")||(u=window,O=!(!u.getDataPromise&&!u.getInitialData),O)?_.A(l,IhP(),2):(setTimeout(Y37.bind(window,f,!0),1E3),l.return());if(l.nextAddress!=3)return c=l.yieldResult,_.A(l,vge(c),3);h=l.yieldResult;pS(f,h);_.KG(l)})};
vge=function(f){var R;if((R=f.response)==null||!R.replacementEndpoint)return _.ll(f);R=_.vh().resolve(yk);f=f.response;_.t(f.replacementEndpoint,_.Ey)&&f.sequenceContinuation&&(_.t(f.replacementEndpoint,_.Ey).sequenceParams=f.sequenceContinuation);return eg(R,f.replacementEndpoint,{},_.Oe.location.href,"shorts",function(){},function(){return!1})};
iol=function(f){var R=_.sP(),u,O=_.t((u=f.response)==null?void 0:u.frameworkUpdates,xG),c;u=_.t((c=f.playerResponse)==null?void 0:c.frameworkUpdates,xG);var h;f=_.t((h=f.reelWatchSequenceResponse)==null?void 0:h.frameworkUpdates,xG);O&&_.FX(O,R);u&&_.FX(u,R);f&&_.FX(f,R)};
rbX=function(f){var R;_.E("enable_redirect_linking_for_desktop_web_client")&&((R=window.location.hash)==null?0:R.includes("redirect_state"))&&f.url&&(f.url=f.url.toString()+window.location.hash)};
uF5=function(f){var R=_.vh(),u=R.resolve(yk);R=R.resolve(_.fbe);f.endpoint&&(u=RS7(u,f.endpoint),u.content&&f.response&&_.Ga(R,f.response,u.content),u.player&&f.playerResponse&&_.Ga(R,f.playerResponse,u.player),u.reelSequence&&f.reelWatchSequenceResponse&&_.Ga(R,f.reelWatchSequenceResponse,u.reelSequence))};
B9=function(f,R){iol(R);var u;(R==null?0:R.url)&&((u=window.location.hash)==null?0:u.includes("redirect_state"))&&(rbX(R),(u=T8n(R.url))&&_.OJ(f.root,"yt-initialize-third-party",[u,R]));uF5(R);u=_.vh();var O=u.resolve(O$X);R.playerResponse&&u.resolve(cw0).handleResponse(R.playerResponse);if(R.playerResponse){u=void 0;if(_.E("ab_v_vid_sig")&&R.endpoint){var c,h=(c=_.t(R.endpoint,_.$7))!=null?c:_.t(R.endpoint,_.Ey);h&&(u=h.videoId)}XFh(O,R.playerResponse,u)}R.playerResponse&&VGn(R.playerResponse)&&
_.E("web_enable_ab_rsp_cl")?i_q().then(function(){hSD(O,R.playerResponse);pS(f,R)}):pS(f,R)};
lbP=function(f){if(f=f.root.data){var R=_.vh().resolve(Z$n);f.endpoint&&(f.response&&R.handleResponse(f.response,void 0,document.querySelector("ytd-app")),f.playerResponse&&R.handleResponse(f.playerResponse),f.reelWatchSequenceResponse&&R.handleResponse(f.reelWatchSequenceResponse))}};
kyt=function(f){var R,u,O,c,h,l;return _.k(function(K){switch(K.nextAddress){case 1:R=window;if(!R.getDataPromise){K.jumpTo(2);break}_.cl(K,3);return _.A(K,R.getDataPromise(),5);case 5:u=K.yieldResult;B9(f,u);_.Bf(K,4);break;case 3:return _.ku(K),_.A(K,dI(),6);case 6:O=K.yieldResult,pS(f,O);case 4:return K.return();case 2:if(!_.E("sw_nav_preload_pbj")){K.jumpTo(7);break}R.fetchInitialData=function(){var q;return _.k(function(F){if(F.nextAddress==1)return _.A(F,dI(),2);q=F.yieldResult;pS(f,q);_.KG(F)})};
if(R.getInitialData){R.loadInitialData=function(q){B9(f,q)};
c=R.getInitialData();R.getInitialData=void 0;B9(f,c);K.jumpTo(8);break}R.fetchInitialData=void 0;return _.A(K,dI(),9);case 9:h=K.yieldResult,pS(f,h);case 8:return K.return();case 7:R.getInitialData?(l=R.getInitialData(),R.getInitialData=void 0,B9(f,l)):R.loadInitialData=function(q){B9(f,q)},_.KG(K)}})};
KjX=function(f){var R=0;return function(){return R<f.length?{done:!1,value:f[R++]}:{done:!0}}};
q_5=typeof Object.defineProperties=="function"?Object.defineProperty:function(f,R,u){if(f==Array.prototype||f==Object.prototype)return f;f[R]=u.value;return f};
Awt=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var R=0;R<f.length;++R){var u=f[R];if(u&&u.Math==Math)return u}throw Error("a");};
_.Vy=Awt(this);oG=function(f,R){if(R)a:{var u=_.Vy;f=f.split(".");for(var O=0;O<f.length-1;O++){var c=f[O];if(!(c in u))break a;u=u[c]}f=f[f.length-1];O=u[f];R=R(O);R!=O&&R!=null&&q_5(u,f,{configurable:!0,writable:!0,value:R})}};
oG("Symbol",function(f){if(f)return f;var R=function(h,l){this.$jscomp$symbol$id_=h;q_5(this,"description",{configurable:!0,writable:!0,value:l})};
R.prototype.toString=function(){return this.$jscomp$symbol$id_};
var u="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",O=0,c=function(h){if(this instanceof c)throw new TypeError("b");return new R(u+(h||"")+"_"+O++,h)};
return c});
oG("Symbol.iterator",function(f){if(f)return f;f=Symbol("c");for(var R="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<R.length;u++){var O=_.Vy[R[u]];typeof O==="function"&&typeof O.prototype[f]!="function"&&q_5(O.prototype,f,{configurable:!0,writable:!0,value:function(){return abP(KjX(this))}})}return f});
oG("Symbol.asyncIterator",function(f){return f?f:Symbol("d")});
var abP=function(f){f={next:f};f[Symbol.iterator]=function(){return this};
return f},Fj2=typeof Object.create=="function"?Object.create:function(f){var R=function(){};
R.prototype=f;return new R},wF0=function(){function f(){function u(){}
new u;Reflect.construct(u,[],function(){});
return new u instanceof u}
if(typeof Reflect!="undefined"&&Reflect.construct){if(f())return Reflect.construct;var R=Reflect.construct;return function(u,O,c){u=R(u,O);c&&Reflect.setPrototypeOf(u,c.prototype);return u}}return function(u,O,c){c===void 0&&(c=u);
c=Fj2(c.prototype||Object.prototype);return Function.prototype.apply.call(u,c,O)||c}}(),myl;
if(typeof Object.setPrototypeOf=="function")myl=Object.setPrototypeOf;else{var QN7;a:{var Wj0={a:!0},EoX={};try{EoX.__proto__=Wj0;QN7=EoX.a;break a}catch(f){}QN7=!1}myl=QN7?function(f,R){f.__proto__=R;if(f.__proto__!==R)throw new TypeError("e`"+f);return f}:null}xj=myl;
_.y=function(f,R){f.prototype=Fj2(R.prototype);f.prototype.constructor=f;if(xj)xj(f,R);else for(var u in R)if(u!="prototype")if(Object.defineProperties){var O=Object.getOwnPropertyDescriptor(R,u);O&&Object.defineProperty(f,u,O)}else f[u]=R[u];f.superClass_=R.prototype};
_.Z=function(f){var R=typeof Symbol!="undefined"&&Symbol.iterator&&f[Symbol.iterator];if(R)return R.call(f);if(typeof f.length=="number")return{next:KjX(f)};throw Error("f`"+String(f));};
s8=function(f){for(var R,u=[];!(R=f.next()).done;)u.push(R.value);return u};
_.yq=function(f){return f instanceof Array?f:s8(_.Z(f))};
_.Sg=function(f){return tRq(f,f)};
tRq=function(f,R){f.raw=R;Object.freeze&&(Object.freeze(f),Object.freeze(R));return f};
gI=function(f,R){return Object.prototype.hasOwnProperty.call(f,R)};
CmX=typeof Object.assign=="function"?Object.assign:function(f,R){for(var u=1;u<arguments.length;u++){var O=arguments[u];if(O)for(var c in O)gI(O,c)&&(f[c]=O[c])}return f};
oG("Object.assign",function(f){return f||CmX});
var ywP=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},dyX=function(f){if(f.isRunning_)throw new TypeError("h");
f.isRunning_=!0};
ywP.prototype.JSC$6739_next_=function(f){this.yieldResult=f};
var NTh=function(f,R){f.abruptCompletion_={exception:R,isException:!0};f.nextAddress=f.catchAddress_||f.finallyAddress_};
ywP.prototype.return=function(f){this.abruptCompletion_={return:f};this.nextAddress=this.finallyAddress_};
_.A=function(f,R,u){f.nextAddress=u;return{value:R}};
ywP.prototype.jumpTo=function(f){this.nextAddress=f};
_.KG=function(f){f.nextAddress=0};
_.cl=function(f,R,u){f.catchAddress_=R;u!=void 0&&(f.finallyAddress_=u)};
_.Zu=function(f,R){f.catchAddress_=0;f.finallyAddress_=R||0};
_.Bf=function(f,R,u){f.nextAddress=R;f.catchAddress_=u||0};
_.ku=function(f,R){f.catchAddress_=R||0;R=f.abruptCompletion_.exception;f.abruptCompletion_=null;return R};
_.hu=function(f,R,u,O){O?f.finallyContexts_[O]=f.abruptCompletion_:f.finallyContexts_=[f.abruptCompletion_];f.catchAddress_=R||0;f.finallyAddress_=u||0};
_.lC=function(f,R,u){u=f.finallyContexts_.splice(u||0)[0];(u=f.abruptCompletion_=f.abruptCompletion_||u)?u.isException?f.nextAddress=f.catchAddress_||f.finallyAddress_:u.jumpTo!=void 0&&f.finallyAddress_<u.jumpTo?(f.nextAddress=u.jumpTo,f.abruptCompletion_=null):f.nextAddress=f.finallyAddress_:f.nextAddress=R};
Ljt=function(f){this.JSC$6744_context_=new ywP;this.program_=f};
pFn=function(f,R){dyX(f.JSC$6744_context_);var u=f.JSC$6744_context_.yieldAllIterator_;if(u)return b$7(f,"return"in u?u["return"]:function(O){return{value:O,done:!0}},R,f.JSC$6744_context_.return);
f.JSC$6744_context_.return(R);return sX(f)};
b$7=function(f,R,u,O){try{var c=R.call(f.JSC$6744_context_.yieldAllIterator_,u);if(!(c instanceof Object))throw new TypeError("g`"+c);if(!c.done)return f.JSC$6744_context_.isRunning_=!1,c;var h=c.value}catch(l){return f.JSC$6744_context_.yieldAllIterator_=null,NTh(f.JSC$6744_context_,l),sX(f)}f.JSC$6744_context_.yieldAllIterator_=null;O.call(f.JSC$6744_context_,h);return sX(f)};
sX=function(f){for(;f.JSC$6744_context_.nextAddress;)try{var R=f.program_(f.JSC$6744_context_);if(R)return f.JSC$6744_context_.isRunning_=!1,{value:R.value,done:!1}}catch(u){f.JSC$6744_context_.yieldResult=void 0,NTh(f.JSC$6744_context_,u)}f.JSC$6744_context_.isRunning_=!1;if(f.JSC$6744_context_.abruptCompletion_){R=f.JSC$6744_context_.abruptCompletion_;f.JSC$6744_context_.abruptCompletion_=null;if(R.isException)throw R.exception;return{value:R.return,done:!0}}return{value:void 0,done:!0}};
jN2=function(f){this.next=function(R){dyX(f.JSC$6744_context_);f.JSC$6744_context_.yieldAllIterator_?R=b$7(f,f.JSC$6744_context_.yieldAllIterator_.next,R,f.JSC$6744_context_.JSC$6739_next_):(f.JSC$6744_context_.JSC$6739_next_(R),R=sX(f));return R};
this.throw=function(R){dyX(f.JSC$6744_context_);f.JSC$6744_context_.yieldAllIterator_?R=b$7(f,f.JSC$6744_context_.yieldAllIterator_["throw"],R,f.JSC$6744_context_.JSC$6739_next_):(NTh(f.JSC$6744_context_,R),R=sX(f));return R};
this.return=function(R){return pFn(f,R)};
this[Symbol.iterator]=function(){return this}};
_.vp2=function(f,R){R=new jN2(new Ljt(R));xj&&f.prototype&&xj(R,f.prototype);return R};
Dyn=function(f){function R(O){return f.next(O)}
function u(O){return f.throw(O)}
return new Promise(function(O,c){function h(l){l.done?O(l.value):Promise.resolve(l.value).then(R,u).then(h,c)}
h(f.next())})};
_.k=function(f){return Dyn(new jN2(new Ljt(f)))};
$et=function(f){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return f};
this.next=function(R){return Promise.resolve(f.next(R))};
this["throw"]=function(R){return new Promise(function(u,O){var c=f["throw"];c!==void 0?u(c.call(f,R)):(u=f["return"],u!==void 0&&u.call(f),O(new TypeError("i")))})};
f["return"]!==void 0&&(this["return"]=function(R){return Promise.resolve(f["return"](R))})};
_.yK=function(){for(var f=Number(this),R=[],u=f;u<arguments.length;u++)R[u-f]=arguments[u];return R};
_.iV5=function(f){return f};
oG("globalThis",function(f){return f||_.Vy});
oG("Reflect",function(f){return f?f:{}});
oG("Reflect.construct",function(){return wF0});
oG("Reflect.setPrototypeOf",function(f){return f?f:xj?function(R,u){try{return xj(R,u),!0}catch(O){return!1}}:null});
oG("Promise",function(f){function R(){this.batch_=null}
function u(l){return l instanceof c?l:new c(function(K){K(l)})}
if(f&&(typeof _.Vy.PromiseRejectionEvent!=="undefined"||!_.Vy.Promise||_.Vy.Promise.toString().indexOf("[native code]")===-1))return f;R.prototype.asyncExecute=function(l){if(this.batch_==null){this.batch_=[];var K=this;this.asyncExecuteFunction(function(){K.executeBatch_()})}this.batch_.push(l)};
var O=_.Vy.setTimeout;R.prototype.asyncExecuteFunction=function(l){O(l,0)};
R.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var l=this.batch_;this.batch_=[];for(var K=0;K<l.length;++K){var q=l[K];l[K]=null;try{q()}catch(F){this.asyncThrow_(F)}}}this.batch_=null};
R.prototype.asyncThrow_=function(l){this.asyncExecuteFunction(function(){throw l;})};
var c=function(l){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var K=this.createResolveAndReject_();try{l(K.resolve,K.reject)}catch(q){K.reject(q)}};
c.prototype.createResolveAndReject_=function(){function l(F){return function(w){q||(q=!0,F.call(K,w))}}
var K=this,q=!1;return{resolve:l(this.resolveTo_),reject:l(this.JSC$6760_reject_)}};
c.prototype.resolveTo_=function(l){if(l===this)this.JSC$6760_reject_(new TypeError("j"));else if(l instanceof c)this.settleSameAsPromise_(l);else{a:switch(typeof l){case "object":var K=l!=null;break a;case "function":K=!0;break a;default:K=!1}K?this.resolveToNonPromiseObj_(l):this.fulfill_(l)}};
c.prototype.resolveToNonPromiseObj_=function(l){var K=void 0;try{K=l.then}catch(q){this.JSC$6760_reject_(q);return}typeof K=="function"?this.settleSameAsThenable_(K,l):this.fulfill_(l)};
c.prototype.JSC$6760_reject_=function(l){this.settle_(2,l)};
c.prototype.fulfill_=function(l){this.settle_(1,l)};
c.prototype.settle_=function(l,K){if(this.state_!=0)throw Error("k`"+l+"`"+K+"`"+this.state_);this.state_=l;this.result_=K;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
c.prototype.scheduleUnhandledRejectionCheck_=function(){var l=this;O(function(){if(l.notifyUnhandledRejection_()){var K=_.Vy.console;typeof K!=="undefined"&&K.error(l.result_)}},1)};
c.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var l=_.Vy.CustomEvent,K=_.Vy.Event,q=_.Vy.dispatchEvent;if(typeof q==="undefined")return!0;typeof l==="function"?l=new l("unhandledrejection",{cancelable:!0}):typeof K==="function"?l=new K("unhandledrejection",{cancelable:!0}):(l=_.Vy.document.createEvent("CustomEvent"),l.initCustomEvent("unhandledrejection",!1,!0,l));l.promise=this;l.reason=this.result_;return q(l)};
c.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var l=0;l<this.onSettledCallbacks_.length;++l)h.asyncExecute(this.onSettledCallbacks_[l]);this.onSettledCallbacks_=null}};
var h=new R;c.prototype.settleSameAsPromise_=function(l){var K=this.createResolveAndReject_();l.callWhenSettled_(K.resolve,K.reject)};
c.prototype.settleSameAsThenable_=function(l,K){var q=this.createResolveAndReject_();try{l.call(K,q.resolve,q.reject)}catch(F){q.reject(F)}};
c.prototype.then=function(l,K){function q(W,C){return typeof W=="function"?function(d){try{F(W(d))}catch(p){w(p)}}:C}
var F,w,m=new c(function(W,C){F=W;w=C});
this.callWhenSettled_(q(l,F),q(K,w));return m};
c.prototype.catch=function(l){return this.then(void 0,l)};
c.prototype.callWhenSettled_=function(l,K){function q(){switch(F.state_){case 1:l(F.result_);break;case 2:K(F.result_);break;default:throw Error("l`"+F.state_);}}
var F=this;this.onSettledCallbacks_==null?h.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};
c.resolve=u;c.reject=function(l){return new c(function(K,q){q(l)})};
c.race=function(l){return new c(function(K,q){for(var F=_.Z(l),w=F.next();!w.done;w=F.next())u(w.value).callWhenSettled_(K,q)})};
c.all=function(l){var K=_.Z(l),q=K.next();return q.done?u([]):new c(function(F,w){function m(d){return function(p){W[d]=p;C--;C==0&&F(W)}}
var W=[],C=0;do W.push(void 0),C++,u(q.value).callWhenSettled_(m(W.length-1),w),q=K.next();while(!q.done)})};
return c});
var nS=function(f,R,u){if(f==null)throw new TypeError("m`"+u);if(R instanceof RegExp)throw new TypeError("n`"+u);return f+""};
oG("String.prototype.startsWith",function(f){return f?f:function(R,u){var O=nS(this,R,"startsWith"),c=O.length,h=R.length;u=Math.max(0,Math.min(u|0,O.length));for(var l=0;l<h&&u<c;)if(O[u++]!=R[l++])return!1;return l>=h}});
oG("Object.setPrototypeOf",function(f){return f||xj});
oG("Symbol.dispose",function(f){return f?f:Symbol("o")});
oG("SuppressedError",function(f){function R(u,O,c){if(!(this instanceof R))return new R(u,O,c);c=Error(c);"stack"in c&&(this.stack=c.stack);this.message=c.message;this.error=u;this.suppressed=O}
if(f)return f;_.y(R,Error);R.prototype.name="SuppressedError";return R});
var JwX=function(f,R,u){f instanceof String&&(f=String(f));for(var O=f.length,c=0;c<O;c++){var h=f[c];if(R.call(u,h,c,f))return{i:c,v:h}}return{i:-1,v:void 0}};
oG("Array.prototype.find",function(f){return f?f:function(R,u){return JwX(this,R,u).v}});
oG("WeakMap",function(f){function R(){}
function u(q){var F=typeof q;return F==="object"&&q!==null||F==="function"}
function O(q){if(!gI(q,h)){var F=new R;q_5(q,h,{value:F})}}
function c(q){var F=Object[q];F&&(Object[q]=function(w){if(w instanceof R)return w;Object.isExtensible(w)&&O(w);return F(w)})}
if(function(){if(!f||!Object.seal)return!1;try{var q=Object.seal({}),F=Object.seal({}),w=new f([[q,2],[F,3]]);if(w.get(q)!=2||w.get(F)!=3)return!1;w.delete(q);w.set(F,4);return!w.has(q)&&w.get(F)==4}catch(m){return!1}}())return f;
var h="$jscomp_hidden_"+Math.random();c("freeze");c("preventExtensions");c("seal");var l=0,K=function(q){this.JSC$6767_id_=(l+=Math.random()+1).toString();if(q){q=_.Z(q);for(var F;!(F=q.next()).done;)F=F.value,this.set(F[0],F[1])}};
K.prototype.set=function(q,F){if(!u(q))throw Error("p");O(q);if(!gI(q,h))throw Error("q`"+q);q[h][this.JSC$6767_id_]=F;return this};
K.prototype.get=function(q){return u(q)&&gI(q,h)?q[h][this.JSC$6767_id_]:void 0};
K.prototype.has=function(q){return u(q)&&gI(q,h)&&gI(q[h],this.JSC$6767_id_)};
K.prototype.delete=function(q){return u(q)&&gI(q,h)&&gI(q[h],this.JSC$6767_id_)?delete q[h][this.JSC$6767_id_]:!1};
return K});
oG("Map",function(f){if(function(){if(!f||typeof f!="function"||!f.prototype.entries||typeof Object.seal!="function")return!1;try{var K=Object.seal({x:4}),q=new f(_.Z([[K,"s"]]));if(q.get(K)!="s"||q.size!=1||q.get({x:4})||q.set({x:4},"t")!=q||q.size!=2)return!1;var F=q.entries(),w=F.next();if(w.done||w.value[0]!=K||w.value[1]!="s")return!1;w=F.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!F.next().done?!1:!0}catch(m){return!1}}())return f;
var R=new WeakMap,u=function(K){this[0]={};this[1]=h();this.size=0;if(K){K=_.Z(K);for(var q;!(q=K.next()).done;)q=q.value,this.set(q[0],q[1])}};
u.prototype.set=function(K,q){K=K===0?0:K;var F=O(this,K);F.list||(F.list=this[0][F.id]=[]);F.entry?F.entry.value=q:(F.entry={next:this[1],previous:this[1].previous,head:this[1],key:K,value:q},F.list.push(F.entry),this[1].previous.next=F.entry,this[1].previous=F.entry,this.size++);return this};
u.prototype.delete=function(K){K=O(this,K);return K.entry&&K.list?(K.list.splice(K.index,1),K.list.length||delete this[0][K.id],K.entry.previous.next=K.entry.next,K.entry.next.previous=K.entry.previous,K.entry.head=null,this.size--,!0):!1};
u.prototype.clear=function(){this[0]={};this[1]=this[1].previous=h();this.size=0};
u.prototype.has=function(K){return!!O(this,K).entry};
u.prototype.get=function(K){return(K=O(this,K).entry)&&K.value};
u.prototype.entries=function(){return c(this,function(K){return[K.key,K.value]})};
u.prototype.keys=function(){return c(this,function(K){return K.key})};
u.prototype.values=function(){return c(this,function(K){return K.value})};
u.prototype.forEach=function(K,q){for(var F=this.entries(),w;!(w=F.next()).done;)w=w.value,K.call(q,w[1],w[0],this)};
u.prototype[Symbol.iterator]=u.prototype.entries;var O=function(K,q){var F=q&&typeof q;F=="object"||F=="function"?R.has(q)?F=R.get(q):(F=""+ ++l,R.set(q,F)):F="p_"+q;var w=K[0][F];if(w&&gI(K[0],F))for(K=0;K<w.length;K++){var m=w[K];if(q!==q&&m.key!==m.key||q===m.key)return{id:F,list:w,index:K,entry:m}}return{id:F,list:w,index:-1,entry:void 0}},c=function(K,q){var F=K[1];
return abP(function(){if(F){for(;F.head!=K[1];)F=F.previous;for(;F.next!=F.head;)return F=F.next,{done:!1,value:q(F)};F=null}return{done:!0,value:void 0}})},h=function(){var K={};
return K.previous=K.next=K.head=K},l=0;
return u});
oG("Set",function(f){if(function(){if(!f||typeof f!="function"||!f.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),O=new f(_.Z([u]));if(!O.has(u)||O.size!=1||O.add(u)!=O||O.size!=1||O.add({x:4})!=O||O.size!=2)return!1;var c=O.entries(),h=c.next();if(h.done||h.value[0]!=u||h.value[1]!=u)return!1;h=c.next();return h.done||h.value[0]==u||h.value[0].x!=4||h.value[1]!=h.value[0]?!1:c.next().done}catch(l){return!1}}())return f;
var R=function(u){this.JSC$6781_map_=new Map;if(u){u=_.Z(u);for(var O;!(O=u.next()).done;)this.add(O.value)}this.size=this.JSC$6781_map_.size};
R.prototype.add=function(u){u=u===0?0:u;this.JSC$6781_map_.set(u,u);this.size=this.JSC$6781_map_.size;return this};
R.prototype.delete=function(u){u=this.JSC$6781_map_.delete(u);this.size=this.JSC$6781_map_.size;return u};
R.prototype.clear=function(){this.JSC$6781_map_.clear();this.size=0};
R.prototype.has=function(u){return this.JSC$6781_map_.has(u)};
R.prototype.entries=function(){return this.JSC$6781_map_.entries()};
R.prototype.values=function(){return this.JSC$6781_map_.values()};
R.prototype.keys=R.prototype.values;R.prototype[Symbol.iterator]=R.prototype.values;R.prototype.forEach=function(u,O){var c=this;this.JSC$6781_map_.forEach(function(h){return u.call(O,h,h,c)})};
return R});
oG("Math.log2",function(f){return f?f:function(R){return Math.log(R)/Math.LN2}});
oG("Object.values",function(f){return f?f:function(R){var u=[],O;for(O in R)gI(R,O)&&u.push(R[O]);return u}});
oG("Object.is",function(f){return f?f:function(R,u){return R===u?R!==0||1/R===1/u:R!==R&&u!==u}});
oG("Array.prototype.includes",function(f){return f?f:function(R,u){var O=this;O instanceof String&&(O=String(O));var c=O.length;u=u||0;for(u<0&&(u=Math.max(u+c,0));u<c;u++){var h=O[u];if(h===R||Object.is(h,R))return!0}return!1}});
oG("String.prototype.includes",function(f){return f?f:function(R,u){return nS(this,R,"includes").indexOf(R,u||0)!==-1}});
oG("Array.from",function(f){return f?f:function(R,u,O){u=u!=null?u:function(K){return K};
var c=[],h=typeof Symbol!="undefined"&&Symbol.iterator&&R[Symbol.iterator];if(typeof h=="function"){R=h.call(R);for(var l=0;!(h=R.next()).done;)c.push(u.call(O,h.value,l++))}else for(h=R.length,l=0;l<h;l++)c.push(u.call(O,R[l],l));return c}});
oG("Object.entries",function(f){return f?f:function(R){var u=[],O;for(O in R)gI(R,O)&&u.push([O,R[O]]);return u}});
oG("Number.isFinite",function(f){return f?f:function(R){return typeof R!=="number"?!1:!isNaN(R)&&R!==Infinity&&R!==-Infinity}});
oG("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
oG("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
oG("Number.isInteger",function(f){return f?f:function(R){return Number.isFinite(R)?R===Math.floor(R):!1}});
oG("Number.isSafeInteger",function(f){return f?f:function(R){return Number.isInteger(R)&&Math.abs(R)<=Number.MAX_SAFE_INTEGER}});
oG("String.prototype.endsWith",function(f){return f?f:function(R,u){var O=nS(this,R,"endsWith");u===void 0&&(u=O.length);u=Math.max(0,Math.min(u|0,O.length));for(var c=R.length;c>0&&u>0;)if(O[--u]!=R[--c])return!1;return c<=0}});
var zS5=function(f,R){f instanceof String&&(f+="");var u=0,O=!1,c={next:function(){if(!O&&u<f.length){var h=u++;return{value:R(h,f[h]),done:!1}}O=!0;return{done:!0,value:void 0}}};
c[Symbol.iterator]=function(){return c};
return c};
oG("Array.prototype.entries",function(f){return f?f:function(){return zS5(this,function(R,u){return[R,u]})}});
oG("Math.imul",function(f){return f?f:function(R,u){R=Number(R);u=Number(u);var O=R&65535,c=u&65535;return O*c+((R>>>16&65535)*c+O*(u>>>16&65535)<<16>>>0)|0}});
oG("Math.trunc",function(f){return f?f:function(R){R=Number(R);if(isNaN(R)||R===Infinity||R===-Infinity||R===0)return R;var u=Math.floor(Math.abs(R));return R<0?-u:u}});
oG("Number.isNaN",function(f){return f?f:function(R){return typeof R==="number"&&isNaN(R)}});
oG("Array.prototype.keys",function(f){return f?f:function(){return zS5(this,function(R){return R})}});
oG("Array.prototype.values",function(f){return f?f:function(){return zS5(this,function(R,u){return u})}});
oG("Array.prototype.fill",function(f){return f?f:function(R,u,O){var c=this.length||0;u<0&&(u=Math.max(0,c+u));if(O==null||O>c)O=c;O=Number(O);O<0&&(O=Math.max(0,c+O));for(u=Number(u||0);u<O;u++)this[u]=R;return this}});
var Vk=function(f){return f?f:Array.prototype.fill};
oG("Int8Array.prototype.fill",Vk);oG("Uint8Array.prototype.fill",Vk);oG("Uint8ClampedArray.prototype.fill",Vk);oG("Int16Array.prototype.fill",Vk);oG("Uint16Array.prototype.fill",Vk);oG("Int32Array.prototype.fill",Vk);oG("Uint32Array.prototype.fill",Vk);oG("Float32Array.prototype.fill",Vk);oG("Float64Array.prototype.fill",Vk);
oG("Object.fromEntries",function(f){return f?f:function(R){var u={};if(!(Symbol.iterator in R))throw new TypeError("r`"+R);R=R[Symbol.iterator].call(R);for(var O=R.next();!O.done;O=R.next()){O=O.value;if(Object(O)!==O)throw new TypeError("s");u[O[0]]=O[1]}return u}});
oG("String.prototype.replaceAll",function(f){return f?f:function(R,u){if(R instanceof RegExp&&!R.global)throw new TypeError("t");return R instanceof RegExp?this.replace(R,u):this.replace(new RegExp(String(R).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),u)}});
oG("Object.getOwnPropertySymbols",function(f){return f?f:function(){return[]}});
oG("String.prototype.repeat",function(f){return f?f:function(R){var u=nS(this,null,"repeat");if(R<0||R>1342177279)throw new RangeError("u");R|=0;for(var O="";R;)if(R&1&&(O+=u),R>>>=1)u+=u;return O}});
oG("Array.prototype.findIndex",function(f){return f?f:function(R,u){return JwX(this,R,u).i}});
oG("Array.prototype.flatMap",function(f){return f?f:function(R,u){var O=[];Array.prototype.forEach.call(this,function(c,h){c=R.call(u,c,h,this);Array.isArray(c)?O.push.apply(O,c):O.push(c)});
return O}});
oG("String.prototype.codePointAt",function(f){return f?f:function(R){var u=nS(this,null,"codePointAt"),O=u.length;R=Number(R)||0;if(R>=0&&R<O){R|=0;var c=u.charCodeAt(R);if(c<55296||c>56319||R+1===O)return c;R=u.charCodeAt(R+1);return R<56320||R>57343?c:(c-55296)*1024+R+9216}}});
oG("String.fromCodePoint",function(f){return f?f:function(R){for(var u="",O=0;O<arguments.length;O++){var c=Number(arguments[O]);if(c<0||c>1114111||c!==Math.floor(c))throw new RangeError("v`"+c);c<=65535?u+=String.fromCharCode(c):(c-=65536,u+=String.fromCharCode(c>>>10&1023|55296),u+=String.fromCharCode(c&1023|56320))}return u}});
oG("String.prototype.padStart",function(f){return f?f:function(R,u){var O=nS(this,null,"padStart");R-=O.length;u=u!==void 0?String(u):" ";return(R>0&&u?u.repeat(Math.ceil(R/u.length)).substring(0,R):"")+O}});
oG("Promise.prototype.finally",function(f){return f?f:function(R){return this.then(function(u){return Promise.resolve(R()).then(function(){return u})},function(u){return Promise.resolve(R()).then(function(){throw u;
})})}});
oG("Object.hasOwn",function(f){return f?f:function(R,u){return Object.prototype.hasOwnProperty.call(R,u)}});
oG("Math.sign",function(f){return f?f:function(R){R=Number(R);return R===0||isNaN(R)?R:R>0?1:-1}});
oG("Array.prototype.flat",function(f){return f?f:function(R){R=R===void 0?1:R;var u=[];Array.prototype.forEach.call(this,function(O){Array.isArray(O)&&R>0?(O=Array.prototype.flat.call(O,R-1),u.push.apply(u,O)):u.push(O)});
return u}});
oG("String.raw",function(f){return f?f:function(R,u){if(R==null)throw new TypeError("w");for(var O=R.raw,c=O.length,h="",l=0;l<c;++l)h+=O[l],l+1<c&&l+1<arguments.length&&(h+=String(arguments[l+1]));return h}});
oG("Reflect.ownKeys",function(f){return f?f:function(R){var u=[],O=Object.getOwnPropertyNames(R);R=Object.getOwnPropertySymbols(R);for(var c=0;c<O.length;c++)(O[c].substring(0,14)=="jscomp_symbol_"?R:u).push(O[c]);return u.concat(R)}});
oG("Object.getOwnPropertyDescriptors",function(f){return f?f:function(R){for(var u={},O=Reflect.ownKeys(R),c=0;c<O.length;c++)u[O[c]]=Object.getOwnPropertyDescriptor(R,O[c]);return u}});
oG("WeakSet",function(f){if(function(){if(!f||!Object.seal)return!1;try{var u=Object.seal({}),O=Object.seal({}),c=new f([u]);if(!c.has(u)||c.has(O))return!1;c.delete(u);c.add(O);return!c.has(u)&&c.has(O)}catch(h){return!1}}())return f;
var R=function(u){this.JSC$6788_map_=new WeakMap;if(u){u=_.Z(u);for(var O;!(O=u.next()).done;)this.add(O.value)}};
R.prototype.add=function(u){this.JSC$6788_map_.set(u,!0);return this};
R.prototype.has=function(u){return this.JSC$6788_map_.has(u)};
R.prototype.delete=function(u){return this.JSC$6788_map_.delete(u)};
return R});
oG("Promise.allSettled",function(f){function R(O){return{status:"fulfilled",value:O}}
function u(O){return{status:"rejected",reason:O}}
return f?f:function(O){var c=this;O=Array.from(O,function(h){return c.resolve(h).then(R,u)});
return c.all(O)}});
oG("Number.parseInt",function(f){return f||parseInt});
_._DumpException=window._DumpException||function(f){throw f;};
window._DumpException=_._DumpException;var TT7,H$n,Yj,v9,Ibh,MRh,Pmt,Uyq,gN,eS2;TT7=TT7||{};_.Oe=this||self;_.V4=function(f,R,u){f=f.split(".");u=u||_.Oe;for(var O;f.length&&(O=f.shift());)f.length||R===void 0?u[O]&&u[O]!==Object.prototype[O]?u=u[O]:u=u[O]={}:u[O]=R};
H$n=function(f){var R=_.Ph("WIZ_global_data.oxN3nb");f=R&&R[f];return f!=null?f:!1};
Yj=_.Oe._F_toggles||[];v9=function(){};
v9.get=function(){return null};
_.Ph=function(f,R){f=f.split(".");R=R||_.Oe;for(var u=0;u<f.length;u++)if(R=R[f[u]],R==null)return null;return R};
_.ik=function(f){f.instance_=void 0;f.getInstance=function(){return f.instance_?f.instance_:f.instance_=new f}};
_.F5=function(f){var R=typeof f;return R!="object"?R:f?Array.isArray(f)?"array":R:"null"};
_.Rk=function(f){var R=_.F5(f);return R=="array"||R=="object"&&typeof f.length=="number"};
_.OE=function(f){var R=typeof f;return R=="object"&&f!=null||R=="function"};
_.cG=function(f){return Object.prototype.hasOwnProperty.call(f,Ibh)&&f[Ibh]||(f[Ibh]=++MRh)};
Ibh="closure_uid_"+(Math.random()*1E9>>>0);MRh=0;Pmt=function(f,R,u){return f.call.apply(f.bind,arguments)};
Uyq=function(f,R,u){if(!f)throw Error();if(arguments.length>2){var O=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,O);return f.apply(R,c)}}return function(){return f.apply(R,arguments)}};
_.NG=function(f,R,u){_.NG=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Pmt:Uyq;return _.NG.apply(null,arguments)};
_.mx=function(f,R){var u=Array.prototype.slice.call(arguments,1);return function(){var O=u.slice();O.push.apply(O,arguments);return f.apply(this,O)}};
_.rI=function(){return Date.now()};
gN=function(f){return f};
_.f6=function(f,R){function u(){}
u.prototype=R.prototype;f.superClass_=R.prototype;f.prototype=new u;f.prototype.constructor=f;f.base=function(O,c,h){for(var l=Array(arguments.length-2),K=2;K<arguments.length;K++)l[K-2]=arguments[K];return R.prototype[c].apply(O,l)}};
eS2=function(f){return f};var c8P,lF2;_.B=function(f,R,u,O){var c=arguments.length,h=c<3?R:O===null?O=Object.getOwnPropertyDescriptor(R,u):O,l;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")h=Reflect.decorate(f,R,u,O);else for(var K=f.length-1;K>=0;K--)if(l=f[K])h=(c<3?l(h):c>3?l(R,u,h):l(R,u))||h;return c>3&&h&&Object.defineProperty(R,u,h),h};
_.S=function(f,R){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(f,R)};
c8P=function(f,R){if(R!==null&&R!==void 0){if(typeof R!=="object"&&typeof R!=="function")throw new TypeError("x");if(u===void 0){if(!Symbol.dispose)throw new TypeError("z");var u=R[Symbol.dispose]}if(typeof u!=="function")throw new TypeError("A");f.stack.push({value:R,dispose:u,async:!1})}return R};
lF2=function(f){function R(h){f.error=f.hasError?new SuppressedError(h,f.error,"An error was suppressed during disposal."):h;f.hasError=!0}
function u(){for(;O=f.stack.pop();)try{if(!O.async&&c===1)return c=0,f.stack.push(O),Promise.resolve().then(u);if(O.dispose){var h=O.dispose.call(O.value);if(O.async)return c|=2,Promise.resolve(h).then(u,function(l){R(l);return u()})}else c|=1}catch(l){R(l)}if(c===1)return f.hasError?Promise.reject(f.error):Promise.resolve();
if(f.hasError)throw f.error;}
var O,c=0;u()};_.f6(_.R7,Error);_.R7.prototype.name="CustomError";var Gyh;var BTh=void 0,ooB,xy7=typeof TextDecoder!=="undefined",Oh7,unt=typeof String.prototype.isWellFormed==="function",Rln=typeof TextEncoder!=="undefined";var S_0;_.CR=function(f){for(var R=[],u=0,O=0;O<f.length;O++){var c=f.charCodeAt(O);c<128?R[u++]=c:(c<2048?R[u++]=c>>6|192:((c&64512)==55296&&O+1<f.length&&(f.charCodeAt(O+1)&64512)==56320?(c=65536+((c&1023)<<10)+(f.charCodeAt(++O)&1023),R[u++]=c>>18|240,R[u++]=c>>12&63|128):R[u++]=c>>12|224,R[u++]=c>>6&63|128),R[u++]=c&63|128)}return R};
S_0=function(f){for(var R=[],u=0,O=0;u<f.length;){var c=f[u++];if(c<128)R[O++]=String.fromCharCode(c);else if(c>191&&c<224){var h=f[u++];R[O++]=String.fromCharCode((c&31)<<6|h&63)}else if(c>239&&c<365){h=f[u++];var l=f[u++],K=f[u++];c=((c&7)<<18|(h&63)<<12|(l&63)<<6|K&63)-65536;R[O++]=String.fromCharCode(55296+(c>>10));R[O++]=String.fromCharCode(56320+(c&1023))}else h=f[u++],l=f[u++],R[O++]=String.fromCharCode((c&15)<<12|(h&63)<<6|l&63)}return R.join("")};var Fn=String.prototype.trim?function(f){return f.trim()}:function(f){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(f)[1]},$yP=/&/g,gon=/</g,sN0=/>/g,no7=/"/g,VR2=/'/g,Y_7=/\x00/g,vo2=/[\x00&<>"']/;var i$P=!!(Yj[0]>>16&1),rw7=!!(Yj[0]>>17&1),fPl=!!(Yj[0]&2),R2e=!!(Yj[0]&4),u8q=!!(Yj[0]&32);var W0=i$P?rw7:H$n(610401301),OP5=i$P?fPl:H$n(513659523),cYX=i$P?R2e:H$n(568333945),FW0=i$P?u8q:H$n(1331761403);var Ch,Xgn=_.Oe.navigator;Ch=Xgn?Xgn.userAgentData||null:null;var nB;_.x5=function(f,R){return Array.prototype.indexOf.call(f,R,void 0)};
_.Gf=function(f,R,u){Array.prototype.forEach.call(f,R,u)};
_.Rt=function(f,R,u){return Array.prototype.filter.call(f,R,u)};
_.L8=function(f,R,u){return Array.prototype.map.call(f,R,u)};
nB=function(f,R,u){return Array.prototype.some.call(f,R,u)};
_.iqh=function(f,R,u){return Array.prototype.every.call(f,R,u)};var uH=function(f){uH[" "](f);return f};
uH[" "]=function(){};
var Dw=function(f,R){try{return uH(f[R]),!0}catch(u){}return!1},E8q=function(f,R,u,O){O=O?O(R):R;
return Object.prototype.hasOwnProperty.call(f,O)?f[O]:f[O]=u(R)};var h2P,sb,ZP2,lP7,KX0,qDP,vIq,AYB,aPn,FX5,CJn,mQP,Q9q,CTe,yYD,dQ0;_.pyh=function(){return _.Oe.navigator||null};
h2P=ph();_.O0=hln();sb=d7("Edge");ZP2=sb||_.O0;_.co=d7("Gecko")&&!(_.a7(_.Q2(),"WebKit")&&!d7("Edge"))&&!(d7("Trident")||d7("MSIE"))&&!d7("Edge");_.XA=_.a7(_.Q2(),"WebKit")&&!d7("Edge");lP7=_.XA&&d7("Mobile");_.km2=_.FP0();KX0=_.w0q();qDP=(I7()?Ch.platform==="Linux":d7("Linux"))||_.mXq();vIq=_.An2();AYB=aDt();aPn=d7("iPad");FX5=d7("iPod");_.wgl=_.P0();CJn=_.a7(_.Q2(),"KaiOS");mQP=function(){var f=_.Oe.document;return f?f.documentMode:void 0};
a:{var WXn="",E6n=function(){var f=_.Q2();if(_.co)return/rv:([^\);]+)(\)|;)/.exec(f);if(sb)return/Edge\/([\d\.]+)/.exec(f);if(_.O0)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(f);if(_.XA)return/WebKit\/(\S+)/.exec(f);if(h2P)return/(?:Version)[ \/]?(\S+)/.exec(f)}();
E6n&&(WXn=E6n?E6n[1]:"");if(_.O0){var t9n=mQP();if(t9n!=null&&t9n>parseFloat(WXn)){Q9q=String(t9n);break a}}Q9q=WXn}CTe=Q9q;yYD={};_.hM=function(f){return E8q(yYD,f,function(){return _.w7(CTe,f)>=0})};
if(_.Oe.document&&_.O0){var Nsq=mQP();dQ0=Nsq?Nsq:parseInt(CTe,10)||void 0}else dQ0=void 0;_.LX7=dQ0;var td2,CEl,bPP;_.ZY=DD();td2=aDt()||d7("iPod");CEl=d7("iPad");bPP=_.lDB();_.lH=_.Tq();_.IV=_.H0()&&!_.P0();var pg7,kT,n35,R7t,DQl,j97;pg7={};kT=null;n35=_.co||_.XA||typeof _.Oe.btoa=="function";_.fE=function(f,R){R===void 0&&(R=0);j97();R=pg7[R];for(var u=Array(Math.floor(f.length/3)),O=R[64]||"",c=0,h=0;c<f.length-2;c+=3){var l=f[c],K=f[c+1],q=f[c+2],F=R[l>>2];l=R[(l&3)<<4|K>>4];K=R[(K&15)<<2|q>>6];q=R[q&63];u[h++]=F+l+K+q}F=0;q=O;switch(f.length-c){case 2:F=f[c+1],q=R[(F&15)<<2]||O;case 1:f=f[c],u[h]=R[f>>2]+R[(f&3)<<4|F>>4]+q+O}return u.join("")};
R7t=function(f){var R="";DQl(f,function(u){R+=String.fromCharCode(u)});
return R};
_.R10=function(f){var R=[];DQl(f,function(u){R.push(u)});
return R};
_.Fi=function(f){var R=f.length,u=R*3/4;u%3?u=Math.floor(u):_.qX("=.",f[R-1])&&(u=_.qX("=.",f[R-2])?u-2:u-1);var O=new Uint8Array(u),c=0;DQl(f,function(h){O[c++]=h});
return c!==u?O.subarray(0,c):O};
DQl=function(f,R){function u(q){for(;O<f.length;){var F=f.charAt(O++),w=kT[F];if(w!=null)return w;if(!_.Kh(F))throw Error("E`"+F);}return q}
j97();for(var O=0;;){var c=u(-1),h=u(0),l=u(64),K=u(64);if(K===64&&c===-1)break;R(c<<2|h>>4);l!=64&&(R(h<<4&240|l>>2),K!=64&&R(l<<6&192|K))}};
j97=function(){if(!kT){kT={};for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],u=0;u<5;u++){var O=f.concat(R[u].split(""));pg7[u]=O;for(var c=0;c<O.length;c++){var h=O[c];kT[h]===void 0&&(kT[h]=c)}}}};var MtD=typeof Uint8Array!=="undefined",bhD=!_.O0&&typeof btoa==="function",p0q=/[-_.]/g,N7P={"-":"+",_:"/",".":"="},PG={};var Mt,z2l;Mt=function(f,R){if(R!==PG)throw Error("G");this.JSC$6819_value_=f;if(f!=null&&f.length===0)throw Error("F");};
_.UE=function(){return JYq||(JYq=new Mt(null,PG))};
z2l=function(f){return new Uint8Array(Hr(f)||0)};
Mt.prototype.isEmpty=function(){return this.JSC$6819_value_==null};
Mt.prototype.sizeBytes=function(){var f=Hr(this);return f?f.length:0};
var Hr=function(f){if(PG!==PG)throw Error("G");var R=f.JSC$6819_value_;R=R==null||MtD&&R!=null&&R instanceof Uint8Array?R:typeof R==="string"?j72(R):null;return R==null?R:f.JSC$6819_value_=R},JYq;var JnP=void 0;var Nt=typeof Symbol==="function"&&typeof Symbol()==="symbol",Tsh=dH("jas",void 0,!0),Sl=dH(void 0,"0di"),j5=dH(void 0,"1oa"),sh=dH(void 0,Symbol()),Jfq=dH(void 0,"0ub"),THD=dH(void 0,"0ubs"),Mln=dH(void 0,"0ubsb"),ske=dH(void 0,"0actk"),ow=dH("m_m","messagePrototypeMarker",!0),BHn=dH(void 0,"vps"),pGD=dH();var T7q,zl7,Ev,HPq;T7q={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};zl7=Object.defineProperties;_.pC=Nt?Tsh:"internalArrayState";HPq=[];Dk(HPq,7);Ev=Object.freeze(HPq);var xm={},TI={},IP5=function(f,R,u){this.iterable=f;this.mapper=R;this.thisArg=u};
IP5.prototype.next=function(){var f=this.iterable.next();f.done||(f.value=this.mapper.call(this.thisArg,f.value));return f};
IP5.prototype[Symbol.iterator]=function(){return this};
var M9q=Object.freeze({}),xC={};_.PTB=sE(function(f){return f!==null&&f!==void 0});var B7q=sE(function(f){return typeof f==="number"}),Gql=sE(function(f){return typeof f==="string"}),o5e=sE(function(f){return typeof f==="boolean"}),UQX=sE(function(f){return f!=null&&typeof f==="object"&&typeof f.then==="function"}),VN0=sE(function(f){return typeof f==="function"}),O$=sE(function(f){return!!f&&(typeof f==="object"||typeof f==="function")});var nC=typeof _.Oe.BigInt==="function"&&typeof _.Oe.BigInt(0)==="bigint";var Ma=sE(function(f){return nC?f>=e2B&&f<=Gm2:f[0]==="-"?xX7(f,Bsh):xX7(f,o6e)}),Bsh=Number.MIN_SAFE_INTEGER.toString(),e2B=nC?BigInt(Number.MIN_SAFE_INTEGER):void 0,o6e=Number.MAX_SAFE_INTEGER.toString(),Gm2=nC?BigInt(Number.MAX_SAFE_INTEGER):void 0;var xQe=typeof Uint8Array.prototype.slice==="function",YC=0,vG=0,Y_;var De,TX,QS,Ht,Yen;De=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Iw=typeof BigInt==="function"?BigInt.asUintN:void 0;TX=Number.isSafeInteger;QS=Number.isFinite;Ht=Math.trunc;Yen=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var oC5={};var Ll5={},SDP=function(){try{var f=function(){return wF0(Map,[],this.constructor)};
_.y(f,Map);uH(new f);return!1}catch(R){return!0}}(),K6=function(){this.JSC$6847_map_=new Map};
_.X=K6.prototype;_.X.get=function(f){return this.JSC$6847_map_.get(f)};
_.X.set=function(f,R){this.JSC$6847_map_.set(f,R);this.size=this.JSC$6847_map_.size;return this};
_.X.delete=function(f){f=this.JSC$6847_map_.delete(f);this.size=this.JSC$6847_map_.size;return f};
_.X.clear=function(){this.JSC$6847_map_.clear();this.size=this.JSC$6847_map_.size};
_.X.has=function(f){return this.JSC$6847_map_.has(f)};
_.X.entries=function(){return this.JSC$6847_map_.entries()};
_.X.keys=function(){return this.JSC$6847_map_.keys()};
_.X.values=function(){return this.JSC$6847_map_.values()};
_.X.forEach=function(f,R){return this.JSC$6847_map_.forEach(f,R)};
K6.prototype[Symbol.iterator]=function(){return this.entries()};
var R8=function(){if(SDP)return Object.setPrototypeOf(K6.prototype,Map.prototype),Object.defineProperties(K6.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),K6;var f=function(){return wF0(Map,[],this.constructor)};
_.y(f,Map);return f}(),$m=function(f,R,u,O){u=u===void 0?tYn:u;
O=O===void 0?tYn:O;var c=R8.call(this)||this;c.arrayState=f[_.pC]|0;c.valueCtor=R;c.keyToApi=u;c.valueToApi=c.valueCtor?yfh:O;for(var h=0;h<f.length;h++){var l=f[h],K=u(l[0],!1,!0),q=l[1];R?q===void 0&&(q=null):q=O(l[1],!1,!0,void 0,void 0,c.arrayState);R8.prototype.set.call(c,K,q)}return c};
_.y($m,R8);var $QB=function(f){if(f.arrayState&2)throw Error("K");};
_.X=$m.prototype;_.X.clear=function(){$QB(this);R8.prototype.clear.call(this)};
_.X.delete=function(f){$QB(this);return R8.prototype.delete.call(this,this.keyToApi(f,!0,!1))};
_.X.entries=function(){if(this.valueCtor){var f=R8.prototype.keys.call(this);f=new IP5(f,dtD,this)}else f=R8.prototype.entries.call(this);return f};
_.X.values=function(){if(this.valueCtor){var f=R8.prototype.keys.call(this);f=new IP5(f,$m.prototype.get,this)}else f=R8.prototype.values.call(this);return f};
_.X.forEach=function(f,R){this.valueCtor?R8.prototype.forEach.call(this,function(u,O,c){f.call(R,c.get(O),O,c)}):R8.prototype.forEach.call(this,f,R)};
_.X.set=function(f,R){$QB(this);f=this.keyToApi(f,!0,!1);return f==null?this:R==null?(R8.prototype.delete.call(this,f),this):R8.prototype.set.call(this,f,this.valueToApi(R,!0,!0,this.valueCtor,!1,this.arrayState))};
_.X.has=function(f){return R8.prototype.has.call(this,this.keyToApi(f,!1,!1))};
_.X.get=function(f){f=this.keyToApi(f,!1,!1);var R=R8.prototype.get.call(this,f);if(R!==void 0){var u=this.valueCtor;return u?(u=this.valueToApi(R,!1,!0,u,this.callToMutableOnAccess,this.arrayState),u!==R&&R8.prototype.set.call(this,f,u),u):R}};
$m.prototype[Symbol.iterator]=function(){return this.entries()};
$m.prototype.toJSON=void 0;var NH7;var MYl=function(){},VS=function(f,R){for(var u in f)!isNaN(u)&&R(f,+u,f[u])},Pf5=function(f){var R=new MYl;
VS(f,function(u,O,c){R[O]=Ze(c)});
R.reviveUnknownFields=f.reviveUnknownFields;return R},jkn={reviveIntoImmutable:!0};var Ik5;var xtl,SEe;var g6t,dl,F0,EW,s97,Wo,QL,n6n,V9n,NH,YD0,L6,jT,DY;g6t=_.VA(0);_.qH={};_.AM=function(f,R,u,O,c){R=dl(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R,u,c);if(R!==null||O&&f.noLegacyNull!==TI)return R};
dl=function(f,R,u,O){if(R===-1)return null;var c=R+(u?0:-1),h=f.length-1;if(!(h<1+(u?0:-1))){if(c>=h){var l=f[h];if(l!=null&&typeof l==="object"&&l.constructor===Object){u=l[R];var K=!0}else if(c===h)u=l;else return}else u=f[c];if(O&&u!=null){O=O(u);if(O==null)return O;if(!Object.is(O,u))return K?l[R]=O:f[c]=O,O}return u}};
_.OL=function(f,R,u,O){wl(f);var c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Wr(c,c[_.pC]|0,R,u,O);return f};
_.at=function(f,R,u){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zz(f,f[_.pC]|0,R,u)!==void 0};
_.FA=function(f,R,u,O){var c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zz(c,c[_.pC]|0,R,EW(f,O,u))!==void 0};
_.fR=function(f){return f===M9q?2:4};
_.wZ=function(f,R){f=_.AM(f,R,void 0,void 0,feq);return f==null?_.UE():f};
F0=function(f,R,u,O){wl(f);var c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=c[_.pC]|0;if(O==null){var l=u5h(c);if(Om5(l,c,h,u)===R)l.set(u,0);else return f}else h=c9l(c,h,u,R);Wr(c,h,R,O);return f};
_.mO=function(f,R,u,O){var c=f[_.pC]|0,h=SY(c);c=c9l(f,c,u,R,h);Wr(f,c,R,O,h)};
EW=function(f,R,u){return _.QF(f,R)===u?u:-1};
_.QF=function(f,R){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Om5(u5h(f),f,void 0,R,void 0)};
s97=function(f,R,u){var O=f[_.pC]|0,c=SY(O),h=dl(f,u,c);if(h!=null&&h[ow]===xm){if(!Ik(h))return Fq(h),h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var l=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(h)&&(l=h);if(l){var K=l[_.pC]|0;K&2&&(l=hT(l,K))}l=Xq(l,R,!0);l!==h&&Wr(f,O,u,l,c);return l};
_.Ry=function(f,R,u,O){var c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=c[_.pC]|0;R=zz(c,h,R,u,O);if(R==null)return R;h=c[_.pC]|0;if(!Ik(f,h)){var l=CfD(R);l!==R&&(Fq(f)&&(c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=c[_.pC]|0),R=l,h=Wr(c,h,u,R,O),QH(c,h))}return R};
_.rq=function(f,R,u,O){var c=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Xtt(f,c,c[_.pC]|0,R,u,O,!1,!0)};
_.OO=function(f,R,u,O){u=hz2(u);_.OL(f,R,u,O);u&&!Ik(u)&&QH(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
_.cz=function(f,R,u,O){O=hz2(O);F0(f,R,u,O);O&&!Ik(O)&&QH(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
Wo=function(f,R,u){wl(f);var O=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=O[_.pC]|0;if(u==null)return Wr(O,c,R),f;for(var h=u===Ev?7:u[_.pC]|0,l=h,K=yH(h),q=K||Object.isFrozen(u),F=!0,w=!0,m=0;m<u.length;m++){var W=u[m];K||(W=Ik(W),F&&(F=!W),w&&(w=W))}K||(h=F?13:5,h=w?h&-4097:h|4096);q&&h===l||(u=Ze(u),l=0,h=tT(h,c));h!==l&&Dk(u,h);c=Wr(O,c,R,u);2&h||!(4096&h||16&h)||QH(O,c);return f};
QL=function(f,R,u,O){leP(f,R,u,O);return f};
n6n=function(f,R,u){leP(f,R,C6,void 0,u,1,!0);return f};
_.yF=function(f,R,u){f=_.AM(f,R,void 0,u);R=typeof f;f=f==null?f:R==="bigint"?_.VA((0,_.Iw)(64,f)):_.t9(f)?R==="string"?_.qEB(f):_.kIh(f):void 0;return f};
_.dZ=function(f,R){var u=u===void 0?!1:u;var O;return(O=_.VtX(_.AM(f,R)))!=null?O:u};
_.Rj=function(f,R,u){u=u===void 0?0:u;var O;return(O=_.Na(_.AM(f,R)))!=null?O:u};
V9n=function(f,R){var u=u===void 0?0:u;f=_.Lm(_.AM(f,R));return f!=null?f:u};
NH=function(f,R,u){u=u===void 0?g6t:u;var O;return(O=_.FlB(_.AM(f,R)))!=null?O:u};
YD0=function(f){var R=R===void 0?g6t:R;var u;return(u=_.yF(f,23))!=null?u:R};
L6=function(f,R){var u=u===void 0?0:u;var O;return(O=_.AM(f,R,void 0,void 0,_.qa))!=null?O:u};
_.bH=function(f,R,u,O){u=u===void 0?"":u;var c;return(c=_.Bt(_.AM(f,R,O)))!=null?c:u};
_.p6=function(f,R){var u=u===void 0?0:u;var O;return(O=_.yS(_.AM(f,R)))!=null?O:u};
jT=function(f,R){var u=u===void 0?"0":u;f=ak7(_.AM(f,R),!0);return f!=null?f:u};
DY=function(f,R,u){return _.bH(f,EW(f,u,R))};
_.JM=function(f,R,u,O){return _.Ry(f,R,EW(f,O,u),void 0)};
_.w9=function(f,R){return _.Bt(_.AM(f,R,void 0,_.qH))};
_.X$=function(f,R,u){return _.OL(f,R,n52(u))};
_.pa=function(f,R,u){return _.br(f,R,n52(u),!1)};
_.zR=function(f,R,u){return _.OL(f,R,_.dN(u))};
_.C0=function(f,R,u){return _.OL(f,R,zX(u))};
_.FH=function(f,R,u){return _.OL(f,R,el(u))};
_.Vo=function(f,R,u,O){return _.br(f,R,el(u),"",O)};
_.uO=function(f,R,u){return _.OL(f,R,u==null?u:_.Cm(u))};
_.TR=function(f,R,u){return _.br(f,R,u==null?u:_.Cm(u),0)};var Tz=function(f,R,u){this.buffer=f;if(u&&!R)throw Error();this.JSC$6859_isImmutable=R};var v6P=function(f,R,u,O){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6862_start_=0;this.init(f,R,u,O)},Ho,rY7,fEP,uDB,pt5,iPP;
_.X=v6P.prototype;_.X.init=function(f,R,u,O){var c=O===void 0?{}:O;O=c.aliasBytesFields===void 0?!1:c.aliasBytesFields;c=c.treatNewDataAsImmutable===void 0?!1:c.treatNewDataAsImmutable;this.aliasBytesFields=O;this.treatNewDataAsImmutable=c;f&&(f=kX0(f,this.treatNewDataAsImmutable),this.bytes_=f.buffer,this.bytesAreImmutable_=f.JSC$6859_isImmutable,this.JSC$6862_start_=R||0,this.end_=u!==void 0?this.JSC$6862_start_+u:this.bytes_.length,this.cursor_=this.JSC$6862_start_)};
_.X.free=function(){this.clear();iPP.length<100&&iPP.push(this)};
_.X.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6862_start_=0;this.aliasBytesFields=!1};
_.X.reset=function(){this.cursor_=this.JSC$6862_start_};
_.X.atEnd=function(){return this.cursor_==this.end_};
_.It=function(f,R){var u=0,O=0,c=0,h=f.bytes_,l=f.cursor_;do{var K=h[l++];u|=(K&127)<<c;c+=7}while(c<32&&K&128);c>32&&(O|=(K&127)>>4);for(c=3;c<32&&K&128;c+=7)K=h[l++],O|=(K&127)<<c;Ho(f,l);if(K<128)return R(u>>>0,O>>>0);throw Error("X");};
Ho=function(f,R){f.cursor_=R;if(R>f.end_)throw Error("Y`"+R+"`"+f.end_);};
_.MH=function(f){var R=f.bytes_,u=f.cursor_,O=R[u++],c=O&127;if(O&128&&(O=R[u++],c|=(O&127)<<7,O&128&&(O=R[u++],c|=(O&127)<<14,O&128&&(O=R[u++],c|=(O&127)<<21,O&128&&(O=R[u++],c|=O<<28,O&128&&R[u++]&128&&R[u++]&128&&R[u++]&128&&R[u++]&128&&R[u++]&128)))))throw Error("X");Ho(f,u);return c};
_.Po=function(f){var R=f.bytes_,u=f.cursor_,O=R[u],c=R[u+1],h=R[u+2];R=R[u+3];Ho(f,f.cursor_+4);return(O<<0|c<<8|h<<16|R<<24)>>>0};
rY7=function(f){var R=_.Po(f);f=_.Po(f);return g5n(R,f)};
fEP=function(f){var R=_.Po(f),u=_.Po(f);f=(u>>31)*2+1;var O=u>>>20&2047;R=4294967296*(u&1048575)+R;return O==2047?R?NaN:f*Infinity:O==0?f*4.9E-324*R:f*Math.pow(2,O-1075)*(R+4503599627370496)};
_.RNq=function(f){for(var R=0,u=f.cursor_,O=u+10,c=f.bytes_;u<O;){var h=c[u++];R|=h;if((h&128)===0)return Ho(f,u),!!(R&127)}throw Error("X");};
uDB=function(f,R){if(R<0)throw Error("Z`"+R);var u=f.cursor_,O=u+R;if(O>f.end_)throw Error("Y`"+(f.end_-u)+"`"+R);f.cursor_=O;return u};
pt5=function(f,R){if(R==0)return _.UE();var u=uDB(f,R);f.aliasBytesFields&&f.bytesAreImmutable_?u=f.bytes_.subarray(u,u+R):(f=f.bytes_,R=u+R,u=u===R?new Uint8Array(0):xQe?f.slice(u,R):new Uint8Array(f.subarray(u,R)));return u.length==0?_.UE():new Mt(u,PG)};
iPP=[];var cI2=function(f,R,u,O){if(iPP.length){var c=iPP.pop();c.init(f,R,u,O);f=c}else f=new v6P(f,R,u,O);this.decoder_=f;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;O7D(this,O)},O7D=function(f,R){R=R===void 0?{}:R;
f.discardUnknownFields=R.discardUnknownFields===void 0?!1:R.discardUnknownFields},J9q=function(f,R,u,O){if(XNn.length){var c=XNn.pop();
O7D(c,O);c.decoder_.init(f,R,u,O);return c}return new cI2(f,R,u,O)},L2l,Br,hNh,XNn;
cI2.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;XNn.length<100&&XNn.push(this)};
cI2.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
L2l=function(f){if(f.decoder_.atEnd())return!1;f.fieldCursor_=f.decoder_.cursor_;var R=_.MH(f.decoder_)>>>0,u=R>>>3;R&=7;if(!(R>=0&&R<=5))throw Error("T`"+R+"`"+f.fieldCursor_);if(u<1)throw Error("U`"+u+"`"+f.fieldCursor_);f.nextField_=u;f.nextWireType_=R;return!0};
Br=function(f){switch(f.nextWireType_){case 0:f.nextWireType_!=0?Br(f):_.RNq(f.decoder_);break;case 1:f=f.decoder_;Ho(f,f.cursor_+8);break;case 2:if(f.nextWireType_!=2)Br(f);else{var R=_.MH(f.decoder_)>>>0;f=f.decoder_;Ho(f,f.cursor_+R)}break;case 5:f=f.decoder_;Ho(f,f.cursor_+4);break;case 3:R=f.nextField_;do{if(!L2l(f))throw Error("V");if(f.nextWireType_==4){if(f.nextField_!=R)throw Error("W");break}Br(f)}while(1);break;default:throw Error("T`"+f.nextWireType_+"`"+f.fieldCursor_);}};
hNh=function(f,R,u){var O=f.decoder_.end_,c=_.MH(f.decoder_)>>>0,h=f.decoder_.cursor_+c,l=h-O;l<=0&&(f.decoder_.end_=h,u(R,f,void 0,void 0,void 0),l=h-f.decoder_.cursor_);if(l)throw Error("S`"+c+"`"+(c-l));f.decoder_.cursor_=h;f.decoder_.end_=O};
_.Z7t=function(f){var R=_.MH(f.decoder_)>>>0;f=f.decoder_;var u=uDB(f,R);f=f.bytes_;if(xy7){var O=f,c;(c=ooB)||(c=ooB=new TextDecoder("utf-8",{fatal:!0}));R=u+R;O=u===0&&R===O.length?O:O.subarray(u,R);try{var h=c.decode(O)}catch(F){if(BTh===void 0){try{c.decode(new Uint8Array([128]))}catch(w){}try{c.decode(new Uint8Array([97])),BTh=!0}catch(w){BTh=!1}}!BTh&&(ooB=void 0);throw F;}}else{h=u;R=h+R;u=[];for(var l=null,K,q;h<R;)K=f[h++],K<128?u.push(K):K<224?h>=R?uB():(q=f[h++],K<194||(q&192)!==128?(h--,
uB()):u.push((K&31)<<6|q&63)):K<240?h>=R-1?uB():(q=f[h++],(q&192)!==128||K===224&&q<160||K===237&&q>=160||((c=f[h++])&192)!==128?(h--,uB()):u.push((K&15)<<12|(q&63)<<6|c&63)):K<=244?h>=R-2?uB():(q=f[h++],(q&192)!==128||(K<<28)+(q-144)>>30!==0||((c=f[h++])&192)!==128||((O=f[h++])&192)!==128?(h--,uB()):(K=(K&7)<<18|(q&63)<<12|(c&63)<<6|O&63,K-=65536,u.push((K>>10&1023)+55296,(K&1023)+56320))):uB(),u.length>=8192&&(l=fDe(l,u),u.length=0);h=fDe(l,u)}return h};
_.lEq=function(f){var R=_.MH(f.decoder_)>>>0;return pt5(f.decoder_,R)};
_.kQe=function(f,R,u){var O=_.MH(f.decoder_)>>>0;for(O=f.decoder_.cursor_+O;f.decoder_.cursor_<O;)u.push(R(f.decoder_))};
XNn=[];var KHP=function(f,R){this.JSC$6869_lo=f>>>0;this.JSC$6869_hi=R>>>0},AIl=function(f){if(!f)return qst||(qst=new KHP(0,0));
if(!/^\d+$/.test(f))return null;h9(f);return new KHP(YC,vG)},qst,oml=function(f,R){this.JSC$6871_lo=f>>>0;
this.JSC$6871_hi=R>>>0},GXt=function(f){if(!f)return aEe||(aEe=new oml(0,0));
if(!/^-?\d+$/.test(f))return null;h9(f);return new oml(YC,vG)},aEe;var FHe=function(){this.JSC$6873_buffer_=[]},BNq,wN5;
FHe.prototype.length=function(){return this.JSC$6873_buffer_.length};
FHe.prototype.end=function(){var f=this.JSC$6873_buffer_;this.JSC$6873_buffer_=[];return f};
BNq=function(f,R,u){for(;u>0||R>127;)f.JSC$6873_buffer_.push(R&127|128),R=(R>>>7|u<<25)>>>0,u>>>=7;f.JSC$6873_buffer_.push(R)};
wN5=function(f,R){for(;R>127;)f.JSC$6873_buffer_.push(R&127|128),R>>>=7;f.JSC$6873_buffer_.push(R)};
_.xan=function(f,R){if(R>=0)wN5(f,R);else{for(var u=0;u<9;u++)f.JSC$6873_buffer_.push(R&127|128),R>>=7;f.JSC$6873_buffer_.push(1)}};
_.vr=function(f,R){f.JSC$6873_buffer_.push(R>>>0&255);f.JSC$6873_buffer_.push(R>>>8&255);f.JSC$6873_buffer_.push(R>>>16&255);f.JSC$6873_buffer_.push(R>>>24&255)};var mP5,$_,gm5,Vlt;mP5=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new FHe};
$_=function(f,R){R.length!==0&&(f.blocks_.push(R),f.totalLength_+=R.length)};
_.aen=function(f,R){_.VH(f,R,2);R=f.encoder_.end();$_(f,R);R.push(f.totalLength_);return R};
_.F20=function(f,R){var u=R.pop();for(u=f.totalLength_+f.encoder_.length()-u;u>127;)R.push(u&127|128),u>>>=7,f.totalLength_++;R.push(u);f.totalLength_++};
_.VH=function(f,R,u){wN5(f.encoder_,R*8+u)};
gm5=function(f,R,u){if(u!=null){switch(typeof u){case "string":AIl(u)}_.VH(f,R,1);switch(typeof u){case "number":f=f.encoder_;SeD(u);_.vr(f,YC);_.vr(f,vG);break;case "bigint":u=BigInt.asUintN(64,u);u=new KHP(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));f=f.encoder_;R=u.JSC$6869_hi;_.vr(f,u.JSC$6869_lo);_.vr(f,R);break;default:u=AIl(u),f=f.encoder_,R=u.JSC$6869_hi,_.vr(f,u.JSC$6869_lo),_.vr(f,R)}}};
Vlt=function(f,R,u){_.VH(f,R,2);wN5(f.encoder_,u.length);$_(f,f.encoder_.end());$_(f,u)};var K2t,E0n,t1t,dPB,NCh;K2t=I8();_.Q_D=I8();_.WHP=I8();E0n=I8();t1t=I8();_.Cy0=I8();_.U0=I8();_.yI7=I8();dPB=I8();NCh=I8();_.LH7=I8();_.b7X=I8();_.e5=function(f,R,u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,R,u)};
_.e5.prototype.toJSON=function(){return Ov(this)};
_.e5.prototype.serialize=function(f){return JSON.stringify(Ov(this,f))};
var OE7=function(f,R){if(R==null||R=="")return new f;R=JSON.parse(R);if(!Array.isArray(R))throw Error("$");return new f(IDn(R))};
_.e5.prototype.getExtension=function(f){zFn(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f.fieldIndex);Dt7(this,f.fieldIndex);return f.ctor?f.isRepeated?f.getExtensionFn(this,f.ctor,f.fieldIndex,_.fR(),f.JSC$6884_hasMessageId):f.getExtensionFn(this,f.ctor,f.fieldIndex,f.JSC$6884_hasMessageId):f.isRepeated?f.getExtensionFn(this,f.fieldIndex,_.fR(),f.JSC$6884_hasMessageId):f.getExtensionFn(this,f.fieldIndex,f.defaultValue,f.JSC$6884_hasMessageId)};
_.e5.prototype.clone=function(){var f=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=f[_.pC]|0;return lr(this,f,R)?Zp(this,f,!0):new this.constructor(hT(f,R,!1))};
_.e5.prototype[ow]=xm;_.e5.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Pr=function(f,R,u){this.$$binaryReaderFn=f;this.$$binaryWriterFn=R;f=gN(K2t);this.$$isMsg=!!f&&u===f||!1},W2e=qhP(function(f,R,u,O,c){if(f.nextWireType_!==2)return!1;
hNh(f,s97(R,O,u),c);return!0},wtq),EmB=qhP(function(f,R,u,O,c){if(f.nextWireType_!==2)return!1;
hNh(f,s97(R,O,u),c);return!0},wtq),x_=Symbol(),Gz=Symbol(),NNe=Symbol(),TN7=Symbol(),jw2=Symbol(),mat,QwX;var fpn,pNh,j_t,DPD,JIq,zNq,TC7,H72,IEl,M1q,Py7,eNh,GQq,o0n,xP5;fpn=function(f,R){var u=new mP5;HmP(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u,Uv(x_,o8,S5,R));$_(u,u.encoder_.end());f=new Uint8Array(u.totalLength_);R=u.blocks_;for(var O=R.length,c=0,h=0;h<O;h++){var l=R[h];f.set(l,c);c+=l.length}u.blocks_=[f];return f};
pNh=_.gl(function(f,R,u){if(f.nextWireType_!==1)return!1;_.nE(R,u,fEP(f.decoder_));return!0},eze,NCh);
j_t=_.gl(function(f,R,u,O){if(f.nextWireType_!==1)return!1;_.mO(R,u,O,fEP(f.decoder_));return!0},eze,NCh);
DPD=_.gl(function(f,R,u,O){if(f.nextWireType_!==5)return!1;var c=_.Po(f.decoder_);f=(c>>31)*2+1;var h=c>>>23&255;c&=8388607;_.mO(R,u,O,h==255?c?NaN:f*Infinity:h==0?f*1.401298464324817E-45*c:f*Math.pow(2,h-150)*(c+8388608));return!0},function(f,R,u){R=_.qa(R);
R!=null&&(_.VH(f,u,5),f=f.encoder_,u=Y_||(Y_=new DataView(new ArrayBuffer(8))),u.setFloat32(0,+R,!0),vG=0,YC=u.getUint32(0,!0),_.vr(f,YC))},dPB);
_.eT=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;_.nE(R,u,_.It(f.decoder_,uK));return!0},_.ir,_.U0);
JIq=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;f=_.It(f.decoder_,uK);_.nE(R,u,f===0?void 0:f);return!0},_.ir,_.U0);
zNq=_.gl(function(f,R,u,O){if(f.nextWireType_!==0)return!1;_.mO(R,u,O,_.It(f.decoder_,uK));return!0},_.ir,_.U0);
_.GR=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;_.nE(R,u,_.MH(f.decoder_));return!0},$a7,E0n);
TC7=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;f=_.MH(f.decoder_);_.nE(R,u,f===0?void 0:f);return!0},$a7,E0n);
H72=_.gl(function(f,R,u,O){if(f.nextWireType_!==0)return!1;_.mO(R,u,O,_.MH(f.decoder_));return!0},$a7,E0n);
IEl=_.gl(function(f,R,u){if(f.nextWireType_!==1)return!1;_.nE(R,u,rY7(f.decoder_));return!0},_.swX,_.yI7);
M1q=_.Uan(function(f,R,u){if(f.nextWireType_!==1&&f.nextWireType_!==2)return!1;R=_.pE(R,R[_.pC]|0,u);f.nextWireType_==2?_.kQe(f,rY7,R):R.push(rY7(f.decoder_));return!0},function(f,R,u){R=_.PK5(mtB,R,!1);
if(R!=null)for(var O=0;O<R.length;O++)gm5(f,u,R[O])},_.yI7);
_.ot=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;_.nE(R,u,_.RNq(f.decoder_));return!0},_.nmn,_.Q_D);
Py7=_.gl(function(f,R,u,O){if(f.nextWireType_!==0)return!1;_.mO(R,u,O,_.RNq(f.decoder_));return!0},_.nmn,_.Q_D);
_.xT=_.gl(function(f,R,u){if(f.nextWireType_!==2)return!1;_.nE(R,u,_.Z7t(f));return!0},_.YhX,_.WHP);
_.UP0=_.gl(function(f,R,u,O){if(f.nextWireType_!==2)return!1;_.mO(R,u,O,_.Z7t(f));return!0},_.YhX,_.WHP);
eNh=_.Uan(function(f,R,u){if(f.nextWireType_!==2)return!1;f=_.Z7t(f);_.pE(R,R[_.pC]|0,u).push(f);return!0},function(f,R,u){R=_.PK5(_.Bt,R,!0);
if(R!=null)for(var O=0;O<R.length;O++){var c=f,h=u,l=R[O];l!=null&&Vlt(c,h,cn5(l))}},_.WHP);
GQq=void 0;GQq=GQq===void 0?K2t:GQq;_.ST=new Pr(function(f,R,u,O,c){if(f.nextWireType_!==2)return!1;O=Xq(void 0,O,!0);_.pE(R,R[_.pC]|0,u).push(O);hNh(f,O,c);return!0},function(f,R,u,O,c){if(Array.isArray(R))for(var h=0;h<R.length;h++)vmn(f,R[h],u,O,c)},GQq);
_.$T=qhP(function(f,R,u,O,c,h){if(f.nextWireType_!==2)return!1;var l=R[_.pC]|0;c9l(R,l,h,u,SY(l));R=s97(R,O,u);hNh(f,R,c);return!0},vmn);
_.BCD=_.gl(function(f,R,u){if(f.nextWireType_!==2)return!1;_.nE(R,u,_.lEq(f));return!0},_.im7,_.LH7);
o0n=_.gl(function(f,R,u,O){if(f.nextWireType_!==2)return!1;_.mO(R,u,O,_.lEq(f));return!0},_.im7,_.LH7);
xP5=_.gl(function(f,R,u,O){if(f.nextWireType_!==0)return!1;_.mO(R,u,O,_.MH(f.decoder_)>>>0);return!0},function(f,R,u){R=_.Lm(R);
R!=null&&R!=null&&(_.VH(f,u,0),wN5(f.encoder_,R))},t1t);
_.gZ=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;_.nE(R,u,_.MH(f.decoder_));return!0},_.r9P,_.b7X);var g0n=function(){var f=Ss0,R=$P7;this.fieldIndex=175237375;this.ctor=R;this.isRepeated=0;this.getExtensionFn=_.Ry;this.defaultValue=void 0;this.JSC$6884_hasMessageId=f.messageId!=null?xC:void 0};
g0n.prototype.register=function(){uH(this)};var s_5=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(s_5,_.e5);var n0B=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(n0B,_.e5);var he7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(he7,_.e5);var V1t=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(V1t,_.e5);var Ysl=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Ysl,_.e5);var v0D=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(v0D,_.e5);var i77=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(i77,_.e5);i77.prototype.getData=function(){return _.wZ(this,2)};var rID=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(rID,_.e5);var f3e=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(f3e,_.e5);f3e.prototype.getStyle=function(){return _.Ry(this,s_5,1)};var uh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(uh,_.e5);uh.prototype.getPayloadCase=function(){return _.QF(this,X3)};
uh.prototype.getStyle=function(){return _.JM(this,f3e,6,X3)};
var RQt=function(){var f=new uh,R=new Ysl;return _.cz(f,7,X3,R)},uQn=function(){var f=new uh,R=new v0D;
return _.cz(f,8,X3,R)},X3=[1,
2,3,4,5,6,7,8];var Osn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Osn,_.e5);var cph=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(cph,_.e5);var X85=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(X85,_.e5);var hQB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(hQB,_.e5);var Zs7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Zs7,_.e5);var l35=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(l35,_.e5);var k6e=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(k6e,_.e5);var Kd5=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Kd5,_.e5);Kd5.prototype.getData=function(){return _.wZ(this,2)};var qnn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(qnn,_.e5);var Xr7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Xr7,_.e5);Xr7.prototype.getPayloadCase=function(){return _.QF(this,s0)};
var s0=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var n6=function(f,R){f=Error.call(this,f);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=R===void 0?2:R};
_.y(n6,Error);var Ap2=Promise;var a3e=function(f){this.channelPromise=f};
a3e.prototype.send=function(f,R,u){this.channelPromise.then(function(O){O.send(f,R,u)})};var Fd0=function(f,R){this.data=f;this.channel=R};
Fd0.prototype.reply=function(f,R,u){this.channel.send(f,R,u)};var w87=function(f){this.JSC$6950_port_=f};
w87.prototype.send=function(f,R,u){u=u===void 0?[]:u;var O=new MessageChannel;mR7(O.port1,R);this.JSC$6950_port_.postMessage(f,[O.port2].concat(u))};
var Qi5=function(f,R){mR7(f,R);return new w87(f)},mR7=function(f,R){R&&(f.onmessage=function(u){R(new Fd0(u.data,Qi5(u.ports[0])))})};var Wdn=function(f){this.verifier_=f},EYD=function(f){var R=Object.create(null);
(typeof f==="string"?[f]:f).forEach(function(u){if(u==="null")throw Error("ba");R[u]=!0});
return function(u){return R[u]===!0}};_.tO0=function(){if(!_.Oe.addEventListener||!Object.defineProperty)return!1;var f=!1,R=Object.defineProperty({},"passive",{get:function(){f=!0}});
try{var u=function(){};
_.Oe.addEventListener("test",u,R);_.Oe.removeEventListener("test",u,R)}catch(O){}return f}();var C7l;_.VF=function(f){var R=f.destination;var u=f.iframe;var O=f.origin;var c=f.channelName===void 0?"ZNWN1d":f.channelName;var h=f.onMessage===void 0?void 0:f.onMessage;f=f.onEstablished===void 0?void 0:f.onEstablished;return C7l({destination:R,getSource:function(){return u.contentWindow},
originVerifier:O instanceof Wdn?O:typeof O==="function"?new Wdn(O):new Wdn(EYD(O)),channelName:c,onMessage:h,onEstablished:f})};
C7l=function(f){var R=f.destination;var u=f.getSource;var O=f.originVerifier;var c=f.token===void 0?void 0:f.token;var h=f.channelName;var l=f.onMessage===void 0?void 0:f.onMessage;var K=f.onEstablished===void 0?void 0:f.onEstablished;return new a3e(new Ap2(function(q,F){var w=function(m){m.source&&m.source===u()&&O.verifier_(m.origin)&&(m.data.n||m.data)===h&&(R.removeEventListener("message",w,!1),c&&m.data.t!==c?F(Error("ca`"+h+"`"+c+"`"+m.data.t)):(q(Qi5(m.ports[0],l)),K&&K(m)))};
R.addEventListener("message",w,!1)}))};var ypq=function(f){try{f()}catch(R){c0(R)}};var NO5=function(f){var R=this;var u=f.getMessageType;var O=f.onUnregisteredMessage===void 0?function(){}:f.onUnregisteredMessage;
var c=f.onBeforeRegisteredMessage===void 0?function(){}:f.onBeforeRegisteredMessage;
f=f.onAfterRegisteredMessage===void 0?function(){}:f.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=u;this.onUnregisteredMessage_=O;this.onBeforeRegisteredMessage_=c;this.onAfterRegisteredMessage_=f;this.onMessage=function(h){return dR2(R,h)}};
NO5.prototype.register=function(f,R){this.registry_.set(f,R);return this};
var dR2=function(f,R){var u=f.getMessageType_(R.data),O=f.registry_.get(u);O?(ypq(function(){return f.onBeforeRegisteredMessage_(R,u)}),ypq(function(){return O(R)}),ypq(function(){return f.onAfterRegisteredMessage_(R,u)})):ypq(function(){return f.onUnregisteredMessage_(R,u)})};var LdB=function(f){this.JSC$6967_channel_=f},p8e,jit;
LdB.prototype.send=function(f,R,u){this.JSC$6967_channel_.send(Ov(f),R,u)};
_.bsh=function(f,R){return function(u){var O=new f(u.data);return R(new Fd0(O,u.channel))}};
p8e=function(f){return function(R){return f(new Fd0(R.data,new LdB(R.channel)))}};
jit=function(f,R){return p8e(_.bsh(f,R))};var DR0=function(f,R,u,O){this.registry=f;this.delegate=R;this.receiveMessageConstructor=u;this.createInitMessage=O;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},cT5=function(f){var R=new NO5({getMessageType:f.getPayloadCase});
return new DR0(R,new LdB(_.VF({iframe:f.child,destination:window,origin:f.origin,channelName:f.channelName,onMessage:jit(f.receiveMessageConstructor,R.onMessage)})),f.receiveMessageConstructor,f.createInitMessage)},Jpt=function(f,R){f.createInitMessage=R};
DR0.prototype.send=function(f){if(!this.initialised)throw new n6("Attempted to send a message before initialisation.");this.delegate.send(f)};
var zQP=function(f,R){return _.k(function(u){if(!f.initialised)throw new n6("Attempted to send a message before initialisation.");return u.return(new Promise(function(O){f.delegate.send(R,jit(f.receiveMessageConstructor,O))}))})};
DR0.prototype.init=function(){var f=this;return _.k(function(R){if(f.initialised)throw new n6("Attempted to initialise twice. The SDK can only be initialised once.");if(f.createInitMessage!==void 0){var u=f.delegate,O=u.send,c=f.createInitMessage;var h=new n0B;var l=[].concat(_.yq(f.features));h=_.Ne(h,1,l,_.Cm);O.call(u,c.call(f,h))}f.initialised=!0;_.KG(R)})};
var vo=function(f,R){if(f.initialised)throw new n6('Attempted to set up API "'+R+'" after initialisation. All APIs must be set up before initialising the SDK.');f.features.add(R);return f.registry};
_.Vy.Object.defineProperties(DR0.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var TOe=function(f){this.channel=f;this.registered=!1};
TOe.prototype.update=function(f){if(this.channel.isInitialised){if(!this.registered)throw new n6("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var R=new uh;var u=new V1t;u=_.X$(u,1,f);R=_.cz(R,2,X3,u);this.channel.send(R)}else this.register();this.JSC$6981_audioEnabled=f};
TOe.prototype.register=function(){vo(this.channel,1);this.registered=!0};
TOe.prototype.isAudioEnabled=function(){return this.JSC$6981_audioEnabled};var Hsn=function(f){this.channel=f};
_.X=Hsn.prototype;_.X.onFirstFrameReady=function(f){vo(this.channel,2).register(11,function(R){R=_.JM(R.data,Osn,11,s0);if(!R)throw new n6("Unexpectedly nonexistent GameFirstFrameReadyEvent");f(_.bH(R,1))})};
_.X.onReady=function(f){vo(this.channel,2).register(4,function(R){R=_.JM(R.data,X85,4,s0);if(!R)throw new n6("Unexpectedly nonexistent GameReadyEvent");f(_.bH(R,1))})};
_.X.onLevelComplete=function(f){vo(this.channel,2).register(5,function(R){R=_.JM(R.data,hQB,5,s0);if(!R)throw new n6("Unexpectedly nonexistent LevelCompleteEvent");f(_.bH(R,1),_.Rj(R,2))})};
_.X.onGameOver=function(f){vo(this.channel,2).register(6,function(R){R=_.JM(R.data,cph,6,s0);if(!R)throw new n6("Unexpectedly nonexistent GameOverEvent");f(_.bH(R,1))})};
_.X.pause=function(){var f=this;if(!this.channel.isInitialised)return vo(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new n6("Using unregistered Game Feature: pause.");var R=RQt();return new Promise(function(u){return _.k(function(O){if(O.nextAddress==1)return _.A(O,zQP(f.channel,R),2);u();_.KG(O)})})};
_.X.resume=function(){var f=this;if(!this.channel.isInitialised)return vo(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new n6("Using unregistered Game Feature: resume.");var R=uQn();return new Promise(function(u){return _.k(function(O){if(O.nextAddress==1)return _.A(O,zQP(f.channel,R),2);u();_.KG(O)})})};var I37=function(f){this.channel=f};
I37.prototype.onReady=function(f){vo(this.channel,5).register(8,function(R){if(!_.JM(R.data,Zs7,8,s0))throw new n6("Unexpectedly nonexistent PageReadyEvent");f()})};var MOX=function(f){this.channel=f};
MOX.prototype.onChange=function(f){vo(this.channel,3).register(7,function(R){R=_.JM(R.data,l35,7,s0);if(!R)throw new n6("Unexpectedly nonexistent ScoreEvent");f(_.bH(R,1),_.Rj(R,2))})};var P7e={load:function(){throw new n6("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new n6("Storage used, but storage.onSave() listener not set!");}},UR0=function(f){this.channel=f;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},eQ2=function(f){vo(f.channel,4).register(2,P7e.load).register(3,P7e.save);
f.initialSetupDone=!0};
UR0.prototype.onLoad=function(f){this.initialSetupDone||eQ2(this);this.loadRegistered||(this.loadRegistered=!0,vo(this.channel,4).register(2,function(R){var u,O,c;return _.k(function(h){if(h.nextAddress==1){u=_.JM(R.data,k6e,2,s0);if(!u)throw new n6("Unexpectedly nonexistent StorageLoad");O=_.bH(u,1);return _.A(h,f(O),2)}c=h.yieldResult;var l=R.reply,K=new uh;var q=new i77;q=_.FH(q,1,O);q=_.OL(q,2,_.eY(c,!1));K=_.cz(K,3,X3,q);l.call(R,K);_.KG(h)})}))};
UR0.prototype.onSave=function(f){this.initialSetupDone||eQ2(this);this.saveRegistered||(this.saveRegistered=!0,vo(this.channel,4).register(3,function(R){var u,O,c;return _.k(function(h){if(h.nextAddress==1){u=_.JM(R.data,Kd5,3,s0);if(!u)throw new n6("Unexpectedly nonexistent StorageSave");O=_.bH(u,1);c=z2l(u.getData());return _.A(h,f(O,c),2)}var l=R.reply,K=new uh;var q=new rID;q=_.FH(q,1,O);K=_.cz(K,4,X3,q);l.call(R,K);_.KG(h)})}))};var G65=function(f){this.channel=f};
G65.prototype.update=function(f){if(!this.channel.features.has(6))throw new n6("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var R=new uh,u=new f3e;f=_.OO(u,1,f);R=_.cz(R,6,X3,f);this.channel.send(R)};
G65.prototype.register=function(){vo(this.channel,6)};var BO7=function(f){this.channel=f;this.userActivityLoggingIntervalMs=0};
BO7.prototype.onUserActivity=function(f,R){this.userActivityLoggingIntervalMs=R;vo(this.channel,7).register(9,function(u){if(!_.JM(u.data,qnn,9,s0))throw new n6("Unexpectedly nonexistent ClickEvent");f()})};var oYl=function(f){var R=this;this.channel=f;this.init=this.channel.init.bind(this.channel);this.page=new I37(this.channel);this.game=new Hsn(this.channel);this.audio=new TOe(this.channel);this.score=new MOX(this.channel);this.storage=new UR0(this.channel);this.style=new G65(this.channel);this.userActivity=new BO7(this.channel);Jpt(this.channel,function(u){var O=new he7;u=_.OO(O,1,u);u=_.zR(u,3,R.userActivity.userActivityLoggingIntervalMs);O=R.audio.isAudioEnabled();O!==void 0&&_.X$(u,2,O);O=new uh;
return _.cz(O,5,X3,u)})};var xRP=function(){this.timedFunctionContext=0};
xRP.prototype.timeExecution=function(f,R){var u=this;return function(){var O=_.yK.apply(0,arguments);u.timedFunctionContext=f;return R.apply(null,_.yq(O))}};var Sn2=function(){var f={};this.priorityTasks=(f[3]=[],f[2]=[],f[1]=[],f);this.isFlushing=!1},Zw=function(f,R,u){var O=$Rn(f,u);
f.priorityTasks[u].push(R);O&&f.priorityTasks[u].length===1&&f.flush()},$Rn=function(f,R){return Object.keys(f.priorityTasks).map(function(u){return Number(u)}).filter(function(u){return!isNaN(u)&&u>R}).every(function(u){return f.priorityTasks[u].length===0})};
Sn2.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(f){return f.length>0});)gY0(this,3),gY0(this,2),gY0(this,1)}catch(f){throw Object.values(this.priorityTasks).forEach(function(R){return void R.splice(0,R.length)}),f;
}finally{this.isFlushing=!1}}};
var gY0=function(f,R){for(;$Rn(f,R)&&f.priorityTasks[R].length>0;)f.priorityTasks[R][0](),f.priorityTasks[R].shift()};
_.Vy.Object.defineProperties(Sn2.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(f){return f.length>0})}}});var AT0={};var si7=globalThis.trustedTypes,lp5=si7,KvB;var Z0=function(f){this.privateDoNotAccessOrElseWrappedResourceUrl=f};
Z0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var nY7=_.Sg([""]),VO7=tRq(["\x00"],["\\0"]),Ynl=tRq(["\n"],["\\n"]),vY2=tRq(["\x00"],["\\u0000"]);Kj(function(f){return f(nY7)})||Kj(function(f){return f(VO7)})||Kj(function(f){return f(Ynl)})||Kj(function(f){return f(vY2)});var Wz;_.qu=function(f,R){this.privateDoNotAccessOrElseWrappedUrl=R};
_.qu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.is0=Am("about:blank");Wz=Am("about:invalid#zClosurez");var apB=function(f){this.isValid=f},rph=new apB(function(f){return/^[^:]*([/?#]|$)/.test(f)}),fr7=wQ("data"),RHn=wQ("http"),ugl=wQ("https"),OZ2=wQ("ftp"),cJ0=wQ("mailto"),X6l=wQ("intent"),hHP=wQ("vnd.youtube"),FvB=[fr7,
RHn,ugl,cJ0,OZ2,rph],wrP=hm(function(){return typeof URL==="function"}),ZZ7=["data:",
"http:","https:","mailto:","ftp:"],Q8B=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var bh=function(f){this.privateDoNotAccessOrElseWrappedHtml=f};
bh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var mW2=hm(function(){return new bh(si7?si7.emptyHTML:"")});var lr5={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"},Jm=function(f,R){var u=Error.call(this,f+" cannot be used with intent "+lr5[R]);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.type=f;this.intent=R;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.y(Jm,Error);_.Hz=function(f){this.privateDoNotAccessOrElseWrappedScript=f};
_.Hz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Crq=function(f){this.privateDoNotAccessOrElseWrappedAttributePrefix=f};
Crq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var yT5="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var mOh=function(f){var R=_.Ph("window.location.href");f==null&&(f='Unknown Error of type "null/undefined"');if(typeof f==="string")return{message:f,name:"Unknown error",lineNumber:"Not available",fileName:R,stack:"Not available"};var u=!1;try{var O=f.lineNumber||f.line||"Not available"}catch(l){O="Not available",u=!0}try{var c=f.fileName||f.filename||f.sourceURL||_.Oe.$googDebugFname||R}catch(l){c="Not available",u=!0}R=k1n(f);if(!(!u&&f.lineNumber&&f.fileName&&f.stack&&f.message&&f.name)){u=f.message;
if(u==null){if(f.constructor&&f.constructor instanceof Function){if(f.constructor.name)u=f.constructor.name;else if(u=f.constructor,iH[u])u=iH[u];else{u=String(u);if(!iH[u]){var h=/function\s+([^\(]+)/m.exec(u);iH[u]=h?h[1]:"[Anonymous]"}u=iH[u]}u='Unknown Error of type "'+u+'"'}else u="Unknown Error of unknown type";typeof f.toString==="function"&&Object.prototype.toString!==f.toString&&(u+=": "+f.toString())}return{message:u,name:f.name||"UnknownError",lineNumber:O,fileName:c,stack:R||"Not available"}}return{message:f.message,
name:f.name,lineNumber:f.lineNumber,fileName:f.fileName,stack:R}},k1n=function(f,R){R||(R={});
R[KAX(f)]=!0;var u=f.stack||"",O=f.cause;O&&!R[KAX(O)]&&(u+="\nCaused by: ",O.stack&&O.stack.indexOf(O.toString())==0||(u+=typeof O==="string"?O:O.message+"\n"),u+=k1n(O,R));f=f.errors;if(Array.isArray(f)){O=1;var c;for(c=0;c<f.length&&!(O>4);c++)R[KAX(f[c])]||(u+="\nInner error "+O++ +": ",f[c].stack&&f[c].stack.indexOf(f[c].toString())==0||(u+=typeof f[c]==="string"?f[c]:f[c].message+"\n"),u+=k1n(f[c],R));c<f.length&&(u+="\n... "+(f.length-c)+" more inner errors")}return u},KAX=function(f){var R=
"";
typeof f.toString==="function"&&(R=""+f);return R+f.stack},iH={};var qat,VM,Op,arB,FAe,AJn,Bi,ed,mlX;qat=function(f,R){for(var u=f.split("%s"),O="",c=Array.prototype.slice.call(arguments,1);c.length&&u.length>1;)O+=u.shift()+c.shift();return O+u.join("%s")};
_.e0=function(f){return encodeURIComponent(String(f))};
VM=function(f){return decodeURIComponent(f.replace(/\+/g," "))};
Op=function(f){vo2.test(f)&&(f.indexOf("&")!=-1&&(f=f.replace($yP,"&amp;")),f.indexOf("<")!=-1&&(f=f.replace(gon,"&lt;")),f.indexOf(">")!=-1&&(f=f.replace(sN0,"&gt;")),f.indexOf('"')!=-1&&(f=f.replace(no7,"&quot;")),f.indexOf("'")!=-1&&(f=f.replace(VR2,"&#39;")),f.indexOf("\x00")!=-1&&(f=f.replace(Y_7,"&#0;")));return f};
arB=function(f){var R={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var u=_.Oe.document.createElement("div");return f.replace(AJn,function(O,c){var h=R[O];if(h)return h;c.charAt(0)=="#"&&(c=Number("0"+c.slice(1)),isNaN(c)||(h=String.fromCharCode(c)));h||(_.ey(u,pj(O+" ")),h=u.firstChild.nodeValue.slice(0,-1));return R[O]=h})};
FAe=function(f){return f.replace(/&([^;]+);/g,function(R,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))?R:String.fromCharCode(u)}})};
AJn=/&([^;\s<&]+);?/g;_.UHl=function(f){return String(f).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.w6h=String.prototype.repeat?function(f,R){return f.repeat(R)}:function(f,R){return Array(R+1).join(f)};
_.rZ=function(f,R){if(!Number.isFinite(f))return String(f);f=String(f);var u=f.indexOf(".");u===-1&&(u=f.length);var O=f[0]==="-"?"-":"";O&&(f=f.substring(1));return O+(0,_.w6h)("0",Math.max(0,R-u))+f};
Bi=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.rI()).toString(36)};
ed=function(f){for(var R=0,u=0;u<f.length;++u)R=31*R+f.charCodeAt(u)>>>0;return R};
_.wu=function(f){return String(f).replace(/\-([a-z])/g,function(R,u){return u.toUpperCase()})};
_.FO=function(f){return String(f).replace(/([A-Z])/g,"-$1").toLowerCase()};
mlX=function(f){return f.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(R,u,O){return u+O.toUpperCase()})};var Qxl=function(){this.names=new Map};
Qxl.prototype.getName=function(f){var R=this.names.get(f);if(R)return R;var u;R=(u=f.description)!=null?u:Bi();this.names.set(f,R);return R};var WAq=function(f){var R=Error.call(this,f?f.length+" errors occurred during unsubscription:\n"+f.map(function(u,O){return O+1+") "+u.toString()}).join("\n  "):"");
this.message=R.message;"stack"in R&&(this.stack=R.stack);this.errors=f;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.y(WAq,Error);var nj=function(f){this.initialTeardown=f;this.closed=!1;this._teardowns=this._parentage=null};
_.X=nj.prototype;
_.X.unsubscribe=function(){if(!this.closed){this.closed=!0;var f=this._parentage;if(Array.isArray(f))for(var R=_.Z(f),u=R.next();!u.done;u=R.next())u.value.remove(this);else f==null||f.remove(this);R=this.initialTeardown;if(sO(R))try{R()}catch(h){var O=h instanceof WAq?h.errors:[h]}var c=this._teardowns;if(c)for(this._teardowns=null,R=_.Z(c),u=R.next();!u.done;u=R.next()){u=u.value;try{sO(u)?u():u.unsubscribe()}catch(h){u=void 0,O=(u=O)!=null?u:[],h instanceof WAq?O=[].concat(_.yq(O),_.yq(h.errors)):
O.push(h)}}if(O)throw new WAq(O);}};
_.X.add=function(f){if(f&&f!==this)if(this.closed)sO(f)?f():f.unsubscribe();else{if(f instanceof nj){if(f.closed||f._hasParent(this))return;f._addParent(this)}var R;(this._teardowns=(R=this._teardowns)!=null?R:[]).push(f)}};
_.X._hasParent=function(f){var R=this._parentage;return R===f||Array.isArray(R)&&R.includes(f)};
_.X._addParent=function(f){var R=this._parentage;this._parentage=Array.isArray(R)?(R.push(f),R):R?[R,f]:f};
_.X._removeParent=function(f){var R=this._parentage;R===f?this._parentage=null:Array.isArray(R)&&gQ(R,f)};
_.X.remove=function(f){var R=this._teardowns;R&&gQ(R,f);f instanceof nj&&f._removeParent(this)};
var Et2=new nj;Et2.closed=!0;nj.JSC$7077_EMPTY=Et2;var bED=function(){setTimeout.apply(null,_.yq(_.yK.apply(0,arguments)))};var fp=function(f){nj.call(this);this.JSC$7082_isStopped=!1;this.destination=f instanceof fp?f:new Rg(!f||sO(f)?{next:f!=null?f:void 0}:f);Lvl(f)&&f.add(this)};
_.y(fp,nj);fp.JSC$7077_EMPTY=nj.JSC$7077_EMPTY;fp.create=function(f,R,u){return new uw(f,R,u)};
_.X=fp.prototype;_.X.next=function(f){this.JSC$7082_isStopped||this._next(f)};
_.X.error=function(f){this.JSC$7082_isStopped||(this.JSC$7082_isStopped=!0,this._error(f))};
_.X.complete=function(){this.JSC$7082_isStopped||(this.JSC$7082_isStopped=!0,this._complete())};
_.X.unsubscribe=function(){this.closed||(this.JSC$7082_isStopped=!0,nj.prototype.unsubscribe.call(this))};
_.X._next=function(f){this.destination.next(f)};
_.X._error=function(f){this.destination.error(f);this.unsubscribe()};
_.X._complete=function(){this.destination.complete();this.unsubscribe()};
var Rg=function(f){this.partialObserver=f};
Rg.prototype.next=function(f){var R=this.partialObserver;if(R.next)try{R.next(f)}catch(u){Y3(u)}};
Rg.prototype.error=function(f){var R=this.partialObserver;if(R.error)try{R.error(f)}catch(u){Y3(u)}else Y3(f)};
Rg.prototype.complete=function(){var f=this.partialObserver;if(f.complete)try{f.complete()}catch(R){Y3(R)}};
var uw=function(f,R,u){fp.call(this);var O;sO(f)||!f?O={next:f!=null?f:void 0,error:R!=null?R:void 0,complete:u!=null?u:void 0}:O=f;this.destination=new Rg(O)};
_.y(uw,fp);uw.JSC$7077_EMPTY=fp.JSC$7077_EMPTY;uw.create=fp.create;var R5=typeof Symbol==="function"&&Symbol.observable||"@@observable";var rQ=function(f){f&&(this._subscribe=f)};
_.X=rQ.prototype;_.X.lift=function(f){var R=new rQ;R.source=this;R.operator=f;return R};
_.X.subscribe=function(f,R,u){f=f&&f instanceof fp||f&&sO(f.next)&&sO(f.error)&&sO(f.complete)&&Lvl(f)?f:new uw(f,R,u);R=this.operator;u=this.source;f.add(R?R.call(f,u):u?this._subscribe(f):this._trySubscribe(f));return f};
_.X._trySubscribe=function(f){try{return this._subscribe(f)}catch(R){f.error(R)}};
_.X.forEach=function(f,R){var u=this;R=j85(R);return new R(function(O,c){var h=u.subscribe(function(l){try{f(l)}catch(K){c(K),h==null||h.unsubscribe()}},c,O)})};
_.X._subscribe=function(f){var R;return(R=this.source)==null?void 0:R.subscribe(f)};
rQ.prototype[R5]=function(){return this};
rQ.prototype.pipe=function(){var f=_.yK.apply(0,arguments);return f.length?prt(f)(this):this};
rQ.create=function(f){return new rQ(f)};var tuD=function(){var f=Error.call(this,"object unsubscribed");this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.y(tuD,Error);var cK=function(){this.observers=[];this.hasError=this.JSC$7098_isStopped=this.closed=!1;this.thrownError=null};
_.y(cK,rQ);_.X=cK.prototype;_.X.lift=function(f){var R=new O2(this,this);R.operator=f;return R};
_.X._throwIfClosed=function(){if(this.closed)throw new tuD;};
_.X.next=function(f){this._throwIfClosed();if(!this.JSC$7098_isStopped){var R=this.observers.slice();R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u.value.next(f)}};
_.X.error=function(f){this._throwIfClosed();if(!this.JSC$7098_isStopped){this.hasError=this.JSC$7098_isStopped=!0;this.thrownError=f;for(var R=this.observers;R.length;)R.shift().error(f)}};
_.X.complete=function(){this._throwIfClosed();if(!this.JSC$7098_isStopped){this.JSC$7098_isStopped=!0;for(var f=this.observers;f.length;)f.shift().complete()}};
_.X.unsubscribe=function(){this.JSC$7098_isStopped=this.closed=!0;this.observers=null};
_.X._trySubscribe=function(f){this._throwIfClosed();return rQ.prototype._trySubscribe.call(this,f)};
_.X._subscribe=function(f){this._throwIfClosed();this._checkFinalizedStatuses(f);return this._innerSubscribe(f)};
_.X._innerSubscribe=function(f){var R=this,u=this.JSC$7098_isStopped,O=this.observers;return this.hasError||u?nj.JSC$7077_EMPTY:(O.push(f),new nj(function(){return gQ(R.observers,f)}))};
_.X._checkFinalizedStatuses=function(f){var R=this.thrownError,u=this.JSC$7098_isStopped;this.hasError?f.error(R):u&&f.complete()};
cK.create=function(f,R){return new O2(f,R)};
var O2=function(f,R){cK.call(this);this.destination=f;this.source=R};
_.y(O2,cK);O2.create=cK.create;O2.prototype.next=function(f){var R,u;(R=this.destination)==null||(u=R.next)==null||u.call(R,f)};
O2.prototype.error=function(f){var R,u;(R=this.destination)==null||(u=R.error)==null||u.call(R,f)};
O2.prototype.complete=function(){var f,R;(f=this.destination)==null||(R=f.complete)==null||R.call(f)};
O2.prototype._subscribe=function(f){var R,u;return(u=(R=this.source)==null?void 0:R.subscribe(f))!=null?u:nj.JSC$7077_EMPTY};var PK=function(f){cK.call(this);this._value=f};
_.y(PK,cK);PK.create=cK.create;PK.prototype._subscribe=function(f){var R=cK.prototype._subscribe.call(this,f);!R.closed&&f.next(this._value);return R};
PK.prototype.getValue=function(){var f=this.thrownError,R=this._value;if(this.hasError)throw f;this._throwIfClosed();return R};
PK.prototype.next=function(f){cK.prototype.next.call(this,this._value=f)};
_.Vy.Object.defineProperties(PK.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Du=new rQ(function(f){return f.complete()});var fG=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Prn=function(f){return f&&typeof f.length==="number"&&typeof f!=="function"};var C10={now:function(){return(C10.delegate||Date).now()},
delegate:void 0};var $u=function(f,R,u){f=f===void 0?Infinity:f;R=R===void 0?Infinity:R;u=u===void 0?C10:u;cK.call(this);this.JSC$7120_bufferSize=f;this.windowTime=R;this.timestampProvider=u;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=R===Infinity;this.JSC$7120_bufferSize=Math.max(1,f);this.windowTime=Math.max(1,R)};
_.y($u,cK);$u.create=cK.create;$u.prototype.next=function(f){var R=this.buffer,u=this.infiniteTimeWindow,O=this.timestampProvider,c=this.windowTime;this.JSC$7098_isStopped||(R.push(f),!u&&R.push(O.now()+c));yJP(this);cK.prototype.next.call(this,f)};
$u.prototype._subscribe=function(f){this._throwIfClosed();yJP(this);for(var R=this._innerSubscribe(f),u=this.infiniteTimeWindow,O=this.buffer.slice(),c=0;c<O.length&&!f.closed;c+=u?1:2)f.next(O[c]);this._checkFinalizedStatuses(f);return R};
var yJP=function(f){var R=f.JSC$7120_bufferSize,u=f.timestampProvider,O=f.buffer;f=f.infiniteTimeWindow;var c=(f?1:2)*R;R<Infinity&&c<O.length&&O.splice(0,O.length-c);if(!f){R=u.now();u=0;for(f=1;f<O.length&&O[f]<=R;f+=2)u=f;u&&O.splice(0,u+1)}};var NkP=function(f,R){R=R===void 0?dl0:R;this.schedulerActionCtor=f;this.now=R};
NkP.prototype.schedule=function(f,R,u){R=R===void 0?0:R;return(new this.schedulerActionCtor(this,f)).schedule(u,R)};
var dl0=C10.now;var pzn=function(){var f=Error.call(this,"no elements in sequence");this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.y(pzn,Error);var m1=function(f,R,u,O,c){fp.call(this,f);this.onUnsubscribe=c;R&&(this._next=function(h){try{R(h)}catch(l){this.destination.error(l)}});
u&&(this._error=function(h){try{u(h)}catch(l){this.destination.error(l)}this.unsubscribe()});
O&&(this._complete=function(){try{O()}catch(h){this.destination.error(h)}this.unsubscribe()})};
_.y(m1,fp);m1.JSC$7077_EMPTY=fp.JSC$7077_EMPTY;m1.create=fp.create;m1.prototype.unsubscribe=function(){var f;this.closed||(f=this.onUnsubscribe)!=null&&f.call(this);fp.prototype.unsubscribe.call(this)};var xu=function(f,R){this.source=f;this.subjectFactory=R;this._subject=null;this._refCount=0;this._connection=null};
_.y(xu,rQ);xu.create=rQ.create;xu.prototype._subscribe=function(f){return LA0(this).subscribe(f)};
var LA0=function(f){var R=f._subject;if(!R||R.JSC$7098_isStopped)f._subject=f.subjectFactory();return f._subject};
xu.prototype._teardown=function(){this._refCount=0;var f=this._connection;this._subject=this._connection=null;f==null||f.unsubscribe()};
xu.prototype.connect=function(){var f=this,R=this._connection;if(!R){R=this._connection=new nj;var u=LA0(this);R.add(this.source.subscribe(new m1(u,void 0,function(O){f._teardown();u.error(O)},function(){f._teardown();
u.complete()},function(){return f._teardown()})));
R.closed&&(this._connection=null,R=nj.JSC$7077_EMPTY)}return R};var V5n=Array.isArray;var v_D=Array.isArray,bZe=Object,iE7=bZe.getPrototypeOf,rT2=bZe.prototype,f0l=bZe.keys;var Nc=function(f,R,u){fp.call(this,f);this._next=R;this.shouldComplete=u};
_.y(Nc,fp);Nc.JSC$7077_EMPTY=fp.JSC$7077_EMPTY;Nc.create=fp.create;Nc.prototype._complete=function(){this.shouldComplete()?fp.prototype._complete.call(this):this.unsubscribe()};var l0n=["addListener","removeListener"],Zjn=["addEventListener","removeEventListener"],Kot=["on","off"];var cI=function(){nj.call(this)};
_.y(cI,nj);cI.JSC$7077_EMPTY=nj.JSC$7077_EMPTY;cI.prototype.schedule=function(){return this};var p6l=function(f,R){return setInterval.apply(null,[f,R].concat(_.yq(_.yK.apply(2,arguments))))};var Xe=function(f,R){nj.call(this);this.scheduler=f;this.work=R;this.pending=!1};
_.y(Xe,cI);Xe.JSC$7077_EMPTY=cI.JSC$7077_EMPTY;Xe.prototype.schedule=function(f,R){R=R===void 0?0:R;if(this.closed)return this;this.state=f;f=this.id;var u=this.scheduler;f!=null&&(this.id=jxP(this,f,R));this.pending=!0;this.delay=R;this.id=this.id||this.requestAsyncId(u,this.id,R);return this};
Xe.prototype.requestAsyncId=function(f,R,u){u=u===void 0?0:u;return p6l(f.flush.bind(f,this),u)};
var jxP=function(f,R,u){u=u===void 0?0:u;if(u!=null&&f.delay===u&&f.pending===!1)return R;clearInterval(R)};
Xe.prototype.execute=function(f,R){if(this.closed)return Error("la");this.pending=!1;if(f=this._execute(f,R))return f;this.pending===!1&&this.id!=null&&(this.id=jxP(this,this.id,null))};
Xe.prototype._execute=function(f){var R=!1;try{this.work(f)}catch(O){R=!0;var u=!!O&&O||Error(O)}if(R)return this.unsubscribe(),u};
Xe.prototype.unsubscribe=function(){if(!this.closed){var f=this.id,R=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;gQ(R,this);f!=null&&(this.id=jxP(this,f,null));this.delay=null;cI.prototype.unsubscribe.call(this)}};var Dlt=function(f,R){R=R===void 0?dl0:R;NkP.call(this,f,R);this.actions=[];this.active=!1;this.scheduled=void 0};
_.y(Dlt,NkP);Dlt.prototype.flush=function(f){var R=this.actions;if(this.active)R.push(f);else{var u;this.active=!0;do if(u=f.execute(f.state,f.delay))break;while(f=R.shift());this.active=!1;if(u){for(;f=R.shift();)f.unsubscribe();throw u;}}};var t5=new rQ(VK);var qOX=Array.isArray;var hk=function(f,R){Xe.call(this,f,R);this.scheduler=f;this.work=R};
_.y(hk,Xe);hk.JSC$7077_EMPTY=Xe.JSC$7077_EMPTY;hk.prototype.schedule=function(f,R){R=R===void 0?0:R;if(R>0)return Xe.prototype.schedule.call(this,f,R);this.delay=R;this.state=f;this.scheduler.flush(this);return this};
hk.prototype.execute=function(f,R){return R>0||this.closed?Xe.prototype.execute.call(this,f,R):this._execute(f,R)};
hk.prototype.requestAsyncId=function(f,R,u){u=u===void 0?0:u;return u!=null&&u>0||u==null&&this.delay>0?Xe.prototype.requestAsyncId.call(this,f,R,u):f.flush(this)};var JJD=function(){Dlt.apply(this,arguments)};
_.y(JJD,Dlt);var s87=new JJD(hk);var zHn=function(){this.performanceMonitor=new xRP;this.queue=new Sn2;this.internalSymbol=Symbol();this.debugNames=new Qxl};
zHn.prototype.getOnBackgrounded=function(){return t5};
_.Vy.Object.defineProperties(zHn.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Zj=function(f,R){R=Error.call(this,R?f+": "+R:String(f));this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=f;this.__proto__=Zj.prototype;this.name=String(f)};
_.y(Zj,Error);var C8=function(f){Zj.call(this,1E3,'sfr:"'+f+'"');this.measurementStrategyFailureReason=f;this.__proto__=C8.prototype};
_.y(C8,Zj);var yw=function(){Zj.call(this,1003);this.__proto__=yw.prototype};
_.y(yw,Zj);var lw=function(){Zj.call(this,1009);this.__proto__=lw.prototype};
_.y(lw,Zj);var Tke=function(){Zj.call(this,1011);this.__proto__=Tke.prototype};
_.y(Tke,Zj);var HZn=function(){Zj.call(this,1007);this.__proto__=yw.prototype};
_.y(HZn,Zj);var wq=function(f){Zj.call(this,1004,String(f));this.inputObservableIndex=f;this.__proto__=wq.prototype};
_.y(wq,Zj);var ewh=function(f){Zj.call(this,1010,f);this.__proto__=Qw.prototype};
_.y(ewh,Zj);var Qw=function(f){Zj.call(this,1005,f);this.__proto__=Qw.prototype};
_.y(Qw,Zj);var Irq=function(f){var R=_.yK.apply(1,arguments),u=this;this.orderedFactories=[];this.orderedFactories.push(f);R.forEach(function(O){u.orderedFactories.push(O)})};
Irq.prototype.isSupported=function(f){return this.orderedFactories.some(function(R){return R.isSupported(f)})};
Irq.prototype.makeBeacon=function(f,R){for(var u=0;u<this.orderedFactories.length;u++)if(this.orderedFactories[u].isSupported(R))return this.orderedFactories[u].makeBeacon(f,R);throw new lw;};var dge=Symbol("ma"),Mu7=Symbol("na"),Hl=function(f,R){this.value=f;this.timeline=R},T_=function(f,R){if(R.timeline!==f.timeline)throw new HZn;
return f.value-R.value};
_.X=Hl.prototype;_.X.equals=function(f){return T_(this,f)===0};
_.X.maximum=function(f){if(f.timeline!==this.timeline)throw new HZn;return this.value>=f.value?this:f};
_.X.round=function(){return new Hl(Math.round(this.value),this.timeline)};
_.X.add=function(f){return new Hl(this.value+f,this.timeline)};
_.X.toString=function(){return String(this.value)};var kz=function(f,R){this.context=f;this.JSC$7204_pinger=R};
kz.prototype.isSupported=function(f){return this.JSC$7204_pinger.isSupported(f)};
kz.prototype.makeBeacon=function(f,R){if(!this.isSupported(R))throw new lw;return new Kp(this.context,this.JSC$7204_pinger,R!=null?R:void 0,f)};
var Kp=function(f,R,u,O){var c=this;this.JSC$7210_pinger=R;this.properties=u;this.url=O;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var h;this.method=(h=u==null?void 0:u.beaconMethod)!=null?h:"GET";this.backgroundedSubscription=f.getOnBackgrounded().subscribe(function(){c.sendNow()})};
Kp.prototype.deactivate=function(){this.internalIsPending=!1};
Kp.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7210_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var f,R;this.JSC$7210_pinger.pingWithHeadersAndBody((f=this.properties)!=null?f:{},this.customHeaders,(R=this.body)!=null?R:"",this.url)}else this.JSC$7210_pinger.ping(this.url);this.internalIsPending=!1}catch(u){}else this.internalIsPending=!1};
Kp.prototype.setHeader=function(f){this.customHeaders.set(f,void 0)};
_.Vy.Object.defineProperties(Kp.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Ul7=function(){for(var f=_.Z(_.yK.apply(0,arguments)),R=f.next();!R.done;R=f.next())if(R=R.value,R.available()){this.timeProvider=R;return}this.timeProvider=new P1B};
_.X=Ul7.prototype;_.X.available=function(){return this.timeProvider.available()};
_.X.now=function(){return this.timeProvider.now()};
_.X.setTimeout=function(f,R){return this.timeProvider.setTimeout(f,R)};
_.X.clearTimeout=function(f){this.timeProvider.clearTimeout(f)};
_.X.interval=function(f,R){var u=this.intervalObservable(f).subscribe(R);return function(){return void u.unsubscribe()}};
_.X.intervalObservable=function(f){return this.timeProvider.intervalObservable(f)};
_.Vy.Object.defineProperties(Ul7.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var P1B=function(){this.timeline=Symbol()};
_.X=P1B.prototype;_.X.available=function(){return!1};
_.X.now=function(){return new Hl(0,this.timeline)};
_.X.setTimeout=function(){return 0};
_.X.clearTimeout=function(){};
_.X.interval=function(){return function(){}};
_.X.intervalObservable=function(){return t5};var qU=function(f,R){this.intrinsicFunctionNamespace=f;this.performanceMonitor=R};
_.X=qU.prototype;_.X.setTimeout=function(f,R){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,f),R)};
_.X.clearTimeout=function(f){this.intrinsicFunctionNamespace.clearTimeout(f)};
_.X.interval=function(f,R){var u=this.intervalObservable(f).subscribe(R);return function(){return void u.unsubscribe()}};
_.X.intervalObservable=function(f){var R=this;return new rQ(function(u){var O=0,c=R.intrinsicFunctionNamespace.setInterval(function(){u.next(O++)},f);
return function(){R.intrinsicFunctionNamespace.clearInterval(c)}})};
_.X.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var eHn=function(f,R){qU.call(this,f,R);this.timeline=Mu7};
_.y(eHn,qU);eHn.prototype.now=function(){return new Hl(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
eHn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&qU.prototype.available.call(this)};var G1P=function(f,R){qU.call(this,f,R);this.timeline=dge};
_.y(G1P,qU);G1P.prototype.now=function(){return new Hl(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
G1P.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&qU.prototype.available.call(this)};var oth=function(f){this.context=f;if(Bke===void 0)a:{var R,u,O=(R=f.global)==null?void 0:(u=R.document)==null?void 0:u.createElement("meta");if(O)try{O.httpEquiv="origin-trial";O.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";f.global.document.head.append(O);Bke=O;break a}catch(c){}Bke=void 0}},
Bke;
oth.prototype.isSupported=function(f){return ChD(this.context)!==void 0&&!(f==null||!f.endOfSession)&&!Ak(this.context)&&!(f==null?0:f.attributionEnabled)&&!(f==null?0:f.customHeaders)&&!(f==null?0:f.customBody)};
oth.prototype.makeBeacon=function(f,R){if(!this.isSupported(R))throw new lw;return new ag(this.context,f,R)};
var ag=function(f,R,u){this.context=f;this.properties=u;this.JSC$7237_urlWithoutToken=R;var O;this.beaconMethod=(O=u==null?void 0:u.beaconMethod)!=null?O:"GET";f=ChD(this.context);if(f===void 0)throw Error();this.fetchLater=f;xll(this,Sal(this))},xll=function(f,R){f.beaconResult&&f.beaconResult.activated||(f.beaconAbort=new AbortController,f.beaconResult=f.fetchLater(R,{method:f.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:f.beaconAbort.signal,activateAfter:96E4}))},Sal=function(f){f=f.JSC$7237_urlWithoutToken;
return(f.slice(-1)[0]==="&"?f:f+"&")+"flapi=1"};
ag.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
ag.prototype.sendNow=function(){};
ag.prototype.setHeader=function(){};
_.Vy.Object.defineProperties(ag.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7237_urlWithoutToken},
set:function(f){this.JSC$7237_urlWithoutToken=f;f=Sal(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);xll(this,f)}},
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 $l2=function(f){this.context=f};
$l2.prototype.isSupported=function(){return!Ak(this.context)&&!!this.context.global.fetch};
$l2.prototype.ping=function(){var f=this;return Ju.apply(null,_.yq(_.yK.apply(0,arguments).map(function(R){return Ok(f.context.global.fetch(R,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(CG(function(u){return u.status===200}))}))).pipe(jaD(function(R){return R}),JmB())};
$l2.prototype.pingWithHeadersAndBody=function(f,R,u){for(var O=_.yK.apply(3,arguments),c=this,h=new Headers,l=_.Z(R.entries()),K=l.next();!K.done;K=l.next()){var q=_.Z(K.value);K=q.next().value;q=q.next().value;h.set(K,q)}var F,w=(F=f.keepAlive)!=null?F:!1;Ju.apply(null,_.yq(O.map(function(m){return Ok(c.context.global.fetch(m,Object.assign({},{method:String(f.beaconMethod),cache:"no-cache"},w?{keepalive:!0}:{},{mode:"no-cors",headers:h,body:u}))).pipe(CG(function(W){return W.status===200}))}))).pipe(jaD(function(m){return m}),
JmB())};var gt2,kuB;_.Fe=function(){};
_.B0=function(f){return f};
gt2=function(f){var R=R||0;return function(){return f.apply(this,Array.prototype.slice.call(arguments,0,R))}};
_.wB=function(f){var R=!1,u;return function(){R||(u=f(),R=!0);return u}};
_.mC=function(f,R){var u=0;return function(O){_.Oe.clearTimeout(u);var c=arguments;u=_.Oe.setTimeout(function(){f.apply(void 0,c)},R)}};
kuB=function(f,R){var u=0,O=!1,c=[],h=function(){u=0;O&&(O=!1,l())},l=function(){u=_.Oe.setTimeout(h,R);
var K=c;c=[];f.apply(void 0,K)};
return function(K){c=arguments;u?O=!0:l()}};var nt5=function(){return W0&&Ch?Ch.mobile:!sx7()&&(d7("iPod")||d7("iPhone")||d7("Android")||d7("IEMobile"))},sx7=function(){return W0&&Ch?!Ch.mobile&&(d7("iPad")||d7("Android")||d7("Silk")):d7("iPad")||d7("Android")&&!d7("Mobile")||d7("Silk")};var Vuq;_.dq={};Vuq="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.dq.add=function(f,R,u){if(f!==null&&R in f)throw Error("pa`"+R);f[R]=u};
_.dq.clear=function(f){for(var R in f)delete f[R]};
_.dq.clone=function(f){var R={},u;for(u in f)R[u]=f[u];return R};
_.dq.contains=function(f,R){return Hjn(f,R)};
_.dq.containsKey=function(f,R){return f!==null&&R in f};
_.dq.containsValue=Hjn;_.dq.create=Ph2;_.dq.createImmutableView=function(f){var R=f;Object.isFrozen&&!Object.isFrozen(f)&&(R=Object.create(f),Object.freeze(R));return R};
_.dq.createSet=Uun;_.dq.equals=function(f,R){for(var u in f)if(!(u in R)||f[u]!==R[u])return!1;for(var O in R)if(!(O in f))return!1;return!0};
_.dq.every=function(f,R,u){for(var O in f)if(!R.call(u,f[O],O,f))return!1;return!0};
_.dq.extend=function(f,R){for(var u,O,c=1;c<arguments.length;c++){O=arguments[c];for(u in O)f[u]=O[u];for(var h=0;h<Vuq.length;h++)u=Vuq[h],Object.prototype.hasOwnProperty.call(O,u)&&(f[u]=O[u])}};
_.dq.filter=function(f,R,u){var O={},c;for(c in f)R.call(u,f[c],c,f)&&(O[c]=f[c]);return O};
_.dq.findKey=I0t;_.dq.findValue=function(f,R,u){return(R=I0t(f,R,u))&&f[R]};
_.dq.forEach=function(f,R,u){for(var O in f)R.call(u,f[O],O,f)};
_.dq.get=function(f,R,u){return f!==null&&R in f?f[R]:u};
_.dq.getAllPropertyNames=function(f,R,u){if(!f)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return TQl(f);for(var O={};f&&(f!==Object.prototype||R)&&(f!==Function.prototype||u);){for(var c=Object.getOwnPropertyNames(f),h=0;h<c.length;h++)O[c[h]]=!0;f=Object.getPrototypeOf(f)}return TQl(O)};
_.dq.getAnyKey=function(f){for(var R in f)return R};
_.dq.getAnyValue=function(f){for(var R in f)return f[R]};
_.dq.getCount=function(f){var R=0,u;for(u in f)R++;return R};
_.dq.getKeys=TQl;_.dq.getSuperClass=function(f){return(f=Object.getPrototypeOf(f.prototype))&&f.constructor};
_.dq.getValueByKeys=function(f,R){var u=_.Rk(R),O=u?R:arguments;for(u=u?0:1;u<O.length;u++){if(f==null)return;f=f[O[u]]}return f};
_.dq.getValues=function(f){var R=[],u=0,O;for(O in f)R[u++]=f[O];return R};
_.dq.isEmpty=function(f){for(var R in f)return!1;return!0};
_.dq.isImmutableView=function(f){return!!Object.isFrozen&&Object.isFrozen(f)};
_.dq.map=function(f,R,u){var O={},c;for(c in f)O[c]=R.call(u,f[c],c,f);return O};
_.dq.remove=function(f,R){var u;(u=R in f)&&delete f[R];return u};
_.dq.set=function(f,R,u){f[R]=u};
_.dq.setIfUndefined=function(f,R,u){return R in f?f[R]:f[R]=u};
_.dq.setWithReturnValueIfNotSet=function(f,R,u){if(R in f)return f[R];u=u();return f[R]=u};
_.dq.some=function(f,R,u){for(var O in f)if(R.call(u,f[O],O,f))return!0;return!1};
_.dq.transpose=function(f){var R={},u;for(u in f)R[f[u]]=u;return R};
_.dq.unsafeClone=MyB;var QO=function(f,R,u,O,c){this.allowedElements=f;this.elementPolicies=R;this.allowedGlobalAttributes=u;this.globalAttributePolicies=O;this.globallyAllowedAttributePrefixes=c},Yat=function(f,R,u){u=f.elementPolicies.get(u);
return(u==null?0:u.has(R))?u.get(R):f.allowedGlobalAttributes.has(R)?{policyAction:1}:(u=f.globalAttributePolicies.get(R))?u:f.globallyAllowedAttributePrefixes&&[].concat(_.yq(f.globallyAllowedAttributePrefixes)).some(function(O){return R.indexOf(O)===0})?{policyAction:1}:{policyAction:0}};var vt7="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(" "),
iZB=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],rJq="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 crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden 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 valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
fDE=[["dir",{policyAction:3,conditions:hm(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:hm(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:hm(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:hm(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Rlf=new QO(new Set(vt7),new Map(iZB),new Set(rJq),new Map(fDE)),unY=new QO(new Set(vt7.concat(["BUTTON",
"INPUT"])),new Map(iZB),new Set(hm(function(){return rJq.concat(["class","id","name"])})),new Map(hm(function(){return fDE.concat([["style",
{policyAction:1}]])})));var OhH,cnC,hlf;OhH=function(f,R,u,O){this.JSC$7297_sanitizerTable=f;this.styleElementSanitizer=R;this.styleAttributeSanitizer=u;this.JSC$7297_resourceUrlPolicy=O;this.changes=[]};
_.X0C=function(f,R){var u=document.implementation.createHTMLDocument("");f=cnC(f,R,u);u=u.body;u.appendChild(f);u=(new XMLSerializer).serializeToString(u);u=u.slice(u.indexOf(">")+1,u.lastIndexOf("</"));return pj(u)};
cnC=function(f,R,u){R=Gd0(R,u);R=document.createTreeWalker(R,5,function(K){if(K.nodeType===3)K=1;else if(o3q(K))if(K=BQe(K),K===null)K=2;else{var q=f.JSC$7297_sanitizerTable;K=K!=="FORM"&&(q.allowedElements.has(K)||q.elementPolicies.has(K))?1:2}else K=2;return K});
for(var O=R.nextNode(),c=u.createDocumentFragment(),h=c;O!==null;){var l=void 0;if(O.nodeType===3)f.styleElementSanitizer&&h.nodeName==="STYLE"?(O=f.styleElementSanitizer(O.data),l=f.createTextNode(O)):l=f.createTextNode(O.data);else if(o3q(O))l=hlf(f,O,u);else throw Error("da");h.appendChild(l);if(O=R.firstChild())h=l;else for(;!(O=R.nextSibling())&&(O=R.parentNode());)h=h.parentNode}return c};
OhH.prototype.createTextNode=function(f){return document.createTextNode(f)};
hlf=function(f,R,u){var O,c=BQe(R);u=u.createElement(c);R=R.attributes;for(var h=_.Z(R),l=h.next();!l.done;l=h.next()){var K=l.value;l=K.name;K=K.value;var q=Yat(f.JSC$7297_sanitizerTable,l,c);a:{if(O=q.conditions){O=_.Z(O);for(var F=O.next();!F.done;F=O.next()){var w=_.Z(F.value);F=w.next().value;w=w.next().value;var m=void 0;if((F=(m=R.getNamedItem(F))==null?void 0:m.value)&&!w.has(F)){O=!1;break a}}}O=!0}if(O)switch(q.policyAction){case 1:f8(u,l,K);break;case 2:q=_.met(K);K=q!==void 0&&ZZ7.indexOf(q.toLowerCase())!==
-1?K:"about:invalid#zClosurez";f8(u,l,K);break;case 3:f8(u,l,K.toLowerCase());break;case 4:f.styleAttributeSanitizer?(K=f.styleAttributeSanitizer(K),f8(u,l,K)):f8(u,l,K);break;case 5:f.JSC$7297_resourceUrlPolicy?(q={type:2,attributeName:l,elementName:c},K=e9h(K),(K=f.JSC$7297_resourceUrlPolicy(K,q))&&f8(u,l,K.toString())):f8(u,l,K);break;case 6:if(f.JSC$7297_resourceUrlPolicy){q={type:2,attributeName:l,elementName:c};O=[];K=_.Z(K.split(","));for(F=K.next();!F.done;F=K.next())w=_.Z(F.value.trim().split(/\s+/,
2)),F=w.next().value,w=w.next().value,O.push({url:F,descriptor:w});K={parts:[]};O=_.Z(O);for(F=O.next();!F.done;F=O.next())F=F.value,w=e9h(F.url),(w=f.JSC$7297_resourceUrlPolicy(w,q))&&K.parts.push({url:w.toString(),descriptor:F.descriptor});f8(u,l,xuX(K))}else f8(u,l,K)}}return u};
_.ZhC=hm(function(){return new OhH(Rlf)});
_.lDf=hm(function(){return new OhH(unY)});var kqF=function(){this.calledBuild=!1;this.JSC$7309_sanitizerTable=Rlf},KPE=function(){kqF.apply(this,arguments)};
_.y(KPE,kqF);KPE.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new OhH(this.JSC$7309_sanitizerTable,void 0,void 0,this.JSC$7309_resourceUrlPolicy)};var qet=/[^#]*/;var gq=function(f){try{return!!f&&f.location.href!=null&&Dw(f,"foo")}catch(R){return!1}},aDY=function(f){var R=AnA;
if(R)for(var u in R)Object.prototype.hasOwnProperty.call(R,u)&&f(R[u],u,R)},FPG=function(){var f=[];
aDY(function(R){f.push(R)});
return f},AnA={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"},w0I=_.wB(function(){return FPG()}),Q7C=function(){var f=mXI("IFRAME"),
R={};
_.Gf(w0I(),function(u){f.sandbox&&f.sandbox.supports&&f.sandbox.supports(u)&&(R[u]=!0)});
return R},mXI=function(f,R){R=R===void 0?document:R;
return R.createElement(String(f).toLowerCase())};var WI;_.Jd=function(f,R,u){return Math.min(Math.max(f,R),u)};
WI=function(f,R,u){return f+u*(R-f)};_.b_=function(f,R){this.x=f!==void 0?f:0;this.y=R!==void 0?R:0};
_.X=_.b_.prototype;_.X.clone=function(){return new _.b_(this.x,this.y)};
_.X.equals=function(f){return f instanceof _.b_&&(this==f?!0:this&&f?this.x==f.x&&this.y==f.y:!1)};
_.X.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.X.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.X.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.X.translate=function(f,R){f instanceof _.b_?(this.x+=f.x,this.y+=f.y):(this.x+=Number(f),typeof R==="number"&&(this.y+=R));return this};
_.X.scale=function(f,R){this.x*=f;this.y*=typeof R==="number"?R:f;return this};_.K8=function(f,R){this.width=f;this.height=R};
_.X=_.K8.prototype;_.X.clone=function(){return new _.K8(this.width,this.height)};
_.X.area=function(){return this.width*this.height};
_.X.aspectRatio=function(){return this.width/this.height};
_.X.isEmpty=function(){return!this.area()};
_.X.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.X.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.X.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.X.scale=function(f,R){this.width*=f;this.height*=typeof R==="number"?R:f;return this};var P5=function(f,R){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=f===Ern&&R||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=WPk};
P5.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var E5Y=function(f){return f instanceof P5&&f.constructor===P5&&f.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===WPk?f.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},WPk={},Ern={};
new P5(Ern,"");var a0,Wi,tk,ttE,dXF,ynH,p8,LPG,p0I,bhk,NU,j7A,Mtk,IDi,HhE,PBl,UXG,elA,GqF,UL5,B7I,xXk,Sek,o5E,E2;a0=function(f){return f?new E2(_.jF(f)):Gyh||(Gyh=new E2)};
_.vM=function(f,R){return typeof R==="string"?f.getElementById(R):R};
Wi=function(f,R){return(R||document).getElementsByTagName(String(f))};
_.CBl=function(f){return ttE("yt-formatted-string","paper-input-input",f)};
tk=function(f,R,u,O){f=O||f;return(R=R&&R!="*"?String(R).toUpperCase():"")||u?f.querySelectorAll(R+(u?"."+u:"")):f.getElementsByTagName("*")};
ttE=function(f,R,u){var O=document,c=f&&f!="*"?String(f).toUpperCase():"";return c||R?(u||O).querySelector(c+(R?"."+R:"")):tk(O,f,R,u)[0]||null};
dXF=function(f,R){_.dq.forEach(R,function(u,O){O=="style"?f.style.cssText=u:O=="class"?f.className=u:O=="for"?f.htmlFor=u:ynH.hasOwnProperty(O)?f.setAttribute(ynH[O],u):_.hn(O,"aria-")||_.hn(O,"data-")?f.setAttribute(O,u):f[O]=u})};
ynH={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"};_.qg=function(f){f=(f||window).document;f=f.compatMode=="CSS1Compat"?f.documentElement:f.body;return new _.K8(f.clientWidth,f.clientHeight)};
_.N7l=function(f){var R=_.Cp(f);f=f.defaultView;return new _.b_(f.pageXOffset||R.scrollLeft,f.pageYOffset||R.scrollTop)};
_.Cp=function(f){return f.scrollingElement?f.scrollingElement:_.XA||f.compatMode!="CSS1Compat"?f.body||f.documentElement:f.documentElement};
p8=function(f){return f?f.defaultView:window};
_.yO=function(f,R,u){return LPG(document,arguments)};
LPG=function(f,R){var u=R[1],O=bhk(f,String(R[0]));u&&(typeof u==="string"?O.className=u:Array.isArray(u)?O.className=u.join(" "):dXF(O,u));R.length>2&&p0I(f,O,R,2);return O};
p0I=function(f,R,u,O){function c(K){K&&R.appendChild(typeof K==="string"?f.createTextNode(K):K)}
for(;O<u.length;O++){var h=u[O];if(!_.Rk(h)||_.OE(h)&&h.nodeType>0)c(h);else{a:{if(h&&typeof h.length=="number"){if(_.OE(h)){var l=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){l=typeof h.item=="function";break a}}l=!1}_.Gf(l?_.iB(h):h,c)}}};
_.mD=function(f){return bhk(document,f)};
bhk=function(f,R){R=String(R);f.contentType==="application/xhtml+xml"&&(R=R.toLowerCase());return f.createElement(R)};
_.dB=function(){return document.createTextNode("\n")};
NU=function(f){if(f.nodeType!=1)return!1;switch(f.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};
j7A=function(f,R){p0I(_.jF(f),f,arguments,1)};
_.Lp=function(f){for(var R;R=f.firstChild;)f.removeChild(R)};
_.bw=function(f,R){R.parentNode&&R.parentNode.insertBefore(f,R)};
_.pp=function(f,R){R.parentNode&&R.parentNode.insertBefore(f,R.nextSibling)};
_.Q1=function(f){return f&&f.parentNode?f.parentNode.removeChild(f):null};
_.DXC=function(f,R){var u=R.parentNode;u&&u.replaceChild(f,R)};
_.Jnl=function(f){var R,u=f.parentNode;if(u&&u.nodeType!=11)if(f.removeNode)f.removeNode(!1);else{for(;R=f.firstChild;)u.insertBefore(R,f);_.Q1(f)}};
_.jA=function(f){return f.children!=void 0?f.children:Array.prototype.filter.call(f.childNodes,function(R){return R.nodeType==1})};
_.T7I=function(f){return f.nextElementSibling!==void 0?f.nextElementSibling:_.zlH(f.nextSibling,!0)};
_.zlH=function(f,R){for(;f&&f.nodeType!=1;)f=R?f.nextSibling:f.previousSibling;return f};
_.vR=function(f){return _.OE(f)&&f.nodeType==1};
_.er=function(f,R){if(!f||!R)return!1;if(f.contains&&R.nodeType==1)return f==R||f.contains(R);if(typeof f.compareDocumentPosition!="undefined")return f==R||!!(f.compareDocumentPosition(R)&16);for(;R&&f!=R;)R=R.parentNode;return R==f};
Mtk=function(f,R){if(f==R)return 0;if(f.compareDocumentPosition)return f.compareDocumentPosition(R)&2?1:-1;if("sourceIndex"in f||f.parentNode&&"sourceIndex"in f.parentNode){var u=f.nodeType==1,O=R.nodeType==1;if(u&&O)return f.sourceIndex-R.sourceIndex;var c=f.parentNode,h=R.parentNode;return c==h?HhE(f,R):!u&&_.er(c,R)?-1*IDi(f,R):!O&&_.er(h,f)?IDi(R,f):(u?f.sourceIndex:c.sourceIndex)-(O?R.sourceIndex:h.sourceIndex)}O=_.jF(f);u=O.createRange();u.selectNode(f);u.collapse(!0);f=O.createRange();f.selectNode(R);
f.collapse(!0);return u.compareBoundaryPoints(_.Oe.Range.START_TO_END,f)};
IDi=function(f,R){var u=f.parentNode;if(u==R)return-1;for(;R.parentNode!=u;)R=R.parentNode;return HhE(R,f)};
HhE=function(f,R){for(;R=R.previousSibling;)if(R==f)return-1;return 1};
PBl=function(f){var R,u=arguments.length;if(!u)return null;if(u==1)return arguments[0];var O=[],c=Infinity;for(R=0;R<u;R++){for(var h=[],l=arguments[R];l;)h.unshift(l),l=l.parentNode;O.push(h);c=Math.min(c,h.length)}h=null;for(R=0;R<c;R++){l=O[0][R];for(var K=1;K<u;K++)if(l!=O[K][R])return h;h=l}return h};
_.jF=function(f){return f.nodeType==9?f:f.ownerDocument||f.document};
UXG=function(f){return f.contentDocument||f.contentWindow.document};
_.Dj=function(f,R){if("textContent"in f)f.textContent=R;else if(f.nodeType==3)f.data=String(R);else if(f.firstChild&&f.firstChild.nodeType==3){for(;f.lastChild!=f.firstChild;)f.removeChild(f.lastChild);f.firstChild.data=String(R)}else _.Lp(f),f.appendChild(_.jF(f).createTextNode(String(R)))};
elA={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};GqF={IMG:" ",BR:"\n"};UL5=function(f){var R;f.tagName=="A"&&f.hasAttribute("href")||f.tagName=="INPUT"||f.tagName=="TEXTAREA"||f.tagName=="SELECT"||f.tagName=="BUTTON"?R=!f.disabled&&(!f.hasAttribute("tabindex")||B7I(f)):R=f.hasAttribute("tabindex")&&B7I(f);return R};
B7I=function(f){f=f.tabIndex;return typeof f==="number"&&f>=0&&f<32768};
xXk=function(f){var R=[];o5E(f,R,!0);f=R.join("");f=f.replace(/ \xAD /g," ").replace(/\xAD/g,"");f=f.replace(/\u200B/g,"");f=f.replace(/ +/g," ");f!=" "&&(f=f.replace(/^\s*/,""));return f};
Sek=function(f){var R=[];o5E(f,R,!1);return R.join("")};
o5E=function(f,R,u){if(!(f.nodeName in elA))if(f.nodeType==3)u?R.push(String(f.nodeValue).replace(/(\r\n|\r|\n)/g,"")):R.push(f.nodeValue);else if(f.nodeName in GqF)R.push(GqF[f.nodeName]);else for(f=f.firstChild;f;)o5E(f,R,u),f=f.nextSibling};
_.$Xk=function(f,R,u){if(!R&&!u)return null;var O=R?String(R).toUpperCase():null;return _.Tx(f,function(c){return(!O||c.nodeName==O)&&(!u||typeof c.className==="string"&&_.g7(c.className.split(/\s+/),u))},!0)};
_.Tx=function(f,R,u){f&&!u&&(f=f.parentNode);for(u=0;f;){if(R(f))return f;f=f.parentNode;u++}return null};
E2=function(f){this.JSC$7334_document_=f||_.Oe.document||document};
_.X=E2.prototype;_.X.getElement=function(f){return _.vM(this.JSC$7334_document_,f)};
_.X.$=E2.prototype.getElement;_.X.getElementsByTagName=function(f,R){return(R||this.JSC$7334_document_).getElementsByTagName(String(f))};
_.X.getElementsByTagNameAndClass=function(f,R,u){return tk(this.JSC$7334_document_,f,R,u)};
_.X.$$=E2.prototype.getElementsByTagNameAndClass;_.X.setProperties=dXF;_.X.JSC$7336_createDom=function(f,R,u){return LPG(this.JSC$7334_document_,arguments)};
_.X.createElement=function(f){return bhk(this.JSC$7334_document_,f)};
_.X.createTextNode=function(f){return this.JSC$7334_document_.createTextNode(String(f))};
_.X.getWindow=function(){return this.JSC$7334_document_.defaultView};
var A5=function(f){return _.N7l(f.JSC$7334_document_)};
_.X=E2.prototype;_.X.appendChild=function(f,R){f.appendChild(R)};
_.X.append=j7A;_.X.canHaveChildren=NU;_.X.removeNode=_.Q1;_.X.getChildren=_.jA;_.X.contains=_.er;_.X=Of.prototype;_.X.getWidth=function(){return this.right-this.left};
_.X.getHeight=function(){return this.bottom-this.top};
_.X.clone=function(){return new Of(this.top,this.right,this.bottom,this.left)};
_.X.contains=function(f){return this&&f?f instanceof Of?f.left>=this.left&&f.right<=this.right&&f.top>=this.top&&f.bottom<=this.bottom:f.x>=this.left&&f.x<=this.right&&f.y>=this.top&&f.y<=this.bottom:!1};
_.X.expand=function(f,R,u,O){_.OE(f)?(this.top-=f.top,this.right+=f.right,this.bottom+=f.bottom,this.left-=f.left):(this.top-=f,this.right+=Number(R),this.bottom+=Number(u),this.left-=Number(O));return this};
_.X.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};
_.X.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};
_.X.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};
_.X.translate=function(f,R){f instanceof _.b_?(this.left+=f.x,this.right+=f.x,this.top+=f.y,this.bottom+=f.y):(this.left+=f,this.right+=f,typeof R==="number"&&(this.top+=R,this.bottom+=R));return this};
_.X.scale=function(f,R){R=typeof R==="number"?R:f;this.left*=f;this.right*=f;this.top*=R;this.bottom*=R;return this};var Jk=function(f,R,u,O){this.left=f;this.top=R;this.width=u;this.height=O};
_.X=Jk.prototype;_.X.clone=function(){return new Jk(this.left,this.top,this.width,this.height)};
_.X.boundingRect=function(f){var R=Math.max(this.left+this.width,f.left+f.width),u=Math.max(this.top+this.height,f.top+f.height);this.left=Math.min(this.left,f.left);this.top=Math.min(this.top,f.top);this.width=R-this.left;this.height=u-this.top};
_.X.contains=function(f){return f instanceof _.b_?f.x>=this.left&&f.x<=this.left+this.width&&f.y>=this.top&&f.y<=this.top+this.height:this.left<=f.left&&this.left+this.width>=f.left+f.width&&this.top<=f.top&&this.top+this.height>=f.top+f.height};
_.X.distance=function(f){var R=f.x<this.left?this.left-f.x:Math.max(f.x-(this.left+this.width),0);f=f.y<this.top?this.top-f.y:Math.max(f.y-(this.top+this.height),0);return Math.sqrt(R*R+f*f)};
_.X.getSize=function(){return new _.K8(this.width,this.height)};
_.X.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};
_.X.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};
_.X.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};
_.X.translate=function(f,R){f instanceof _.b_?(this.left+=f.x,this.top+=f.y):(this.left+=f,typeof R==="number"&&(this.top+=R));return this};
_.X.scale=function(f,R){R=typeof R==="number"?R:f;this.left*=f;this.width*=f;this.top*=R;this.height*=R;return this};var s7H,HI,A5B,TD,v5t,Yef,ihk,DSX,rnE,RFF;_.zD=function(f,R,u){if(typeof R==="string")(R=_.g5i(f,R))&&(f.style[R]=u);else for(var O in R){u=f;var c=R[O],h=_.g5i(u,O);h&&(u.style[h]=c)}};
s7H={};_.g5i=function(f,R){var u=s7H[R];if(!u){var O=_.wu(R);u=O;f.style[O]===void 0&&(O=(_.XA?"Webkit":_.co?"Moz":null)+mlX(O),f.style[O]!==void 0&&(u=O));s7H[R]=u}return u};
_.WB=function(f,R){var u=_.jF(f);return u.defaultView&&u.defaultView.getComputedStyle&&(f=u.defaultView.getComputedStyle(f,null))?f[R]||f.getPropertyValue(R)||"":""};
_.U8=function(f,R){return _.WB(f,R)||(f.currentStyle?f.currentStyle[R]:null)||f.style&&f.style[R]};
_.n5A=function(f){return _.U8(f,"position")};
HI=function(f,R,u){if(R instanceof _.b_){var O=R.x;R=R.y}else O=R,R=u;f.style.left=TD(O,!1);f.style.top=TD(R,!1)};
A5B=function(f){try{return f.getBoundingClientRect()}catch(R){return{left:0,top:0,right:0,bottom:0}}};
_.J5=function(f){var R=_.jF(f),u=new _.b_(0,0);if(f==(R?_.jF(R):document).documentElement)return u;f=A5B(f);R=A5(a0(R));u.x=f.left+R.x;u.y=f.top+R.y;return u};
_.Vtt=function(f,R,u){if(R instanceof _.K8)u=R.height,R=R.width;else if(u==void 0)throw Error("sa");f.style.width=TD(R,!0);f.style.height=TD(u,!0)};
TD=function(f,R){typeof f=="number"&&(f=(R?Math.round(f):f)+"px");return f};
v5t=function(f){return Yef(f)};
Yef=function(f){var R=ihk;if(_.U8(f,"display")!="none")return R(f);var u=f.style,O=u.display,c=u.visibility,h=u.position;u.visibility="hidden";u.position="absolute";u.display="inline";f=R(f);u.display=O;u.position=h;u.visibility=c;return f};
ihk=function(f){var R=f.offsetWidth,u=f.offsetHeight,O=_.XA&&!R&&!u;return(R===void 0||O)&&f.getBoundingClientRect?(f=A5B(f),new _.K8(f.right-f.left,f.bottom-f.top)):new _.K8(R,u)};
DSX=function(f){var R=_.J5(f);f=Yef(f);return new Jk(R.x,R.y,f.width,f.height)};
rnE=function(f,R){f=f.style;"opacity"in f?f.opacity=R:"MozOpacity"in f?f.MozOpacity=R:"filter"in f&&(f.filter=R===""?"":"alpha(opacity="+Number(R)*100+")")};
_.$$=function(f,R){f.style.display=R?"":"none"};
_.fkE=function(f){return"rtl"==_.U8(f,"direction")};
RFF=function(f){var R=_.WB(f,"marginLeft"),u=_.WB(f,"marginRight"),O=_.WB(f,"marginTop");f=_.WB(f,"marginBottom");return new Of(parseFloat(O),parseFloat(u),parseFloat(f),parseFloat(R))};
_.uiA=function(f){var R=_.WB(f,"borderLeftWidth"),u=_.WB(f,"borderRightWidth"),O=_.WB(f,"borderTopWidth");f=_.WB(f,"borderBottomWidth");return new Of(parseFloat(O),parseFloat(u),parseFloat(f),parseFloat(R))};var Ig=function(f){this.context=f};
Ig.prototype.isSupported=function(f){return(f==null?0:f.attributionEnabled)||(f==null?void 0:f.beaconMethod)==="POST"||(f==null?0:f.customHeaders)||(f==null?0:f.customBody)||(f==null?0:f.keepAlive)?!1:!Ak(this.context)};
Ig.prototype.ping=function(){var f=this;return a5(_.yK.apply(0,arguments).map(function(R){try{var u=f.context.global,O=!1;O=O===void 0?!1:O;u.google_image_requests||(u.google_image_requests=[]);var c=mXI("IMG",u.document);O&&(c.attributionSrc="");c.src=R;u.google_image_requests.push(c);return!0}catch(h){return!1}}).every(function(R){return R}))};
Ig.prototype.pingWithHeadersAndBody=function(f,R,u){this.ping.apply(this,_.yq(_.yK.apply(3,arguments)))};var OCF=function(f){this.context=f};
OCF.prototype.isSupported=function(f){return cfk&&!Ak(this.context)&&$un(this.context)!==void 0&&!(f==null?0:f.attributionEnabled)&&(f==null?void 0:f.beaconMethod)!=="POST"&&!(f==null?0:f.customHeaders)&&!(f==null?0:f.customBody)};
OCF.prototype.makeBeacon=function(f,R){if(!this.isSupported(R))throw new lw;return new MU(this.context,f)};
var cfk=!1,MU=function(f,R){this.context=f;this.JSC$7355_urlWithoutToken=R;f=$un(this.context);if(f===void 0)throw Error();this.wrappedBeacon=new f(XGY(this),{})},XGY=function(f){f=f.JSC$7355_urlWithoutToken;
return(f.slice(-1)[0]==="&"?f:f+"&")+"pbapi=1"};
MU.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
MU.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
MU.prototype.setHeader=function(){};
_.Vy.Object.defineProperties(MU.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7355_urlWithoutToken},
set:function(f){this.JSC$7355_urlWithoutToken=f;this.wrappedBeacon.setURL(XGY(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(f){if(f!=="GET")throw new lw;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var hFA=function(f){this.context=f};
hFA.prototype.isSupported=function(f){if((f==null?0:f.attributionEnabled)||(f==null?void 0:f.beaconMethod)==="GET"||(f==null?0:f.customHeaders)||(f==null?0:f.customBody)||(f==null?0:f.keepAlive))return!1;var R;return!Ak(this.context)&&((R=this.context.global.navigator)==null?void 0:R.sendBeacon)!==void 0};
hFA.prototype.ping=function(){var f=this;return a5(_.yK.apply(0,arguments).map(function(R){var u;return(u=f.context.global.navigator)==null?void 0:u.sendBeacon(R)}).every(function(R){return R}))};
hFA.prototype.pingWithHeadersAndBody=function(f,R,u){this.ping.apply(this,_.yq(_.yK.apply(3,arguments)))};var l_=function(f){this.value=f},xD=function(f,R){return a5(f.value).pipe(h5(R))},n8=new l_(!1),C37=new l_(!0);var HK=function(f){this.value=f;this.releasedSubject=new cK};
HK.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Vy.Object.defineProperties(HK.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7368_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var cuB=["FRAME","IMG","IFRAME"],ij7=/^[01](px)?$/,OGB=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},uV7=function(){var f=new OGB;
f.crossDomainLoadedDefault=!0;f.pendingImagesBlockLoad=!0;return f};var ZCE=function(f,R){var u=qk7(f);if(u)if(u.onCreativeLoad)u.onCreativeLoad(R);else{var O=R?[R]:[],c=function(h){for(var l=0;l<O.length;++l)try{O[l](1,h)}catch(K){}O={push:function(K){K(1,h)}}};
u.onCreativeLoad=function(h){O.push(h)};
u.setAttribute("data-creative-load-listener","");u.addEventListener("creativeLoad",function(h){c(h.detail)});
_.Oe.addEventListener("message",function(h){K1t(u,c,h)})}};var PI=function(f,R){var u=this;this.global=f;this.parentContext=R;this.JSC$7379_onVisibilityChange=this.document?Ju(a5(!0),jW(this.document,"visibilitychange")).pipe(I5(this.parentContext.performanceMonitor,748),CG(function(){return u.getVisibilityState()}),G_()):a5("visible");
this.document?jW(this.document,"DOMContentLoaded").pipe(I5(this.parentContext.performanceMonitor,739),eW(1)):a5(YOB("DOMContentLoaded"))},tr7=function(f){return f.document!==null&&f.document.visibilityState!==void 0};
PI.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
PI.prototype.querySelector=function(f){return this.document?this.document.querySelector(f):null};
PI.prototype.querySelectorAll=function(f){return this.document?_.iB(this.document.querySelectorAll(f)):[]};
PI.prototype.elementFromPoint=function(f,R){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;f=this.document.elementFromPoint(f,R);return f===null?null:new HK(f)};
var kP7=function(f,R,u){u=u===void 0?!1:u;if(R.ref===void 0||!f.document)return a5(R).pipe(I5(f.parentContext.performanceMonitor,749));var O=new $u(1),c=function(){O.next(R)};
u||ZCE(R.ref,c);Xle(R.ref,c);return O.pipe(I5(f.parentContext.performanceMonitor,749),eW(1))};
_.Vy.Object.defineProperties(PI.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Dw(this.global,"document")?this.global.document||null:null}}});var AuP=_.Sg(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),aut=_.Sg(["./reach_worklet.js"]),F1e=_.Sg(["./reach_worklet.js"]),lkC=_.Sg(["./reach_worklet.html"]),kIC=_.Sg(["./reach_worklet.js"]),Klf=_.Sg(["./reach_worklet.js"]);_.R0(lkC);_.R0(kIC);_.R0(Klf);var Uf={left:0,top:0,width:0,height:0};var qEf,Afl,akH,Flf,sC,mtf,QkI,WlC,np5,Vxq,Cfk,yfC;qEf=function(f,R,u,O,c,h,l){var K="";f&&(K+=f+":");u&&(K+="//",R&&(K+=R+"@"),K+=u,O&&(K+=":"+O));c&&(K+=c);h&&(K+="?"+h);l&&(K+="#"+l);return K};
Afl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.$8=function(f){return f.match(Afl)};
_.NS=function(f,R){return f?R?decodeURI(f):decodeURIComponent(f):f};
akH=function(f){f=_.$8(f)[1]||null;!f&&_.Oe.self&&_.Oe.self.location&&(f=_.Oe.self.location.protocol.slice(0,-1));return f?f.toLowerCase():""};
_.gv=function(f){return _.NS(_.$8(f)[3]||null,!0)};
_.Kt=function(f){return _.NS(_.$8(f)[5]||null,!0)};
_.hZ7=function(f){var R=f.indexOf("#");return R<0?null:f.slice(R+1)};
Flf=function(f){f=_.$8(f);return qEf(f[1],f[2],f[3],f[4])};
_.wGk=function(f){f=_.$8(f);return qEf(f[1],null,f[3],f[4])};
_.G4=function(f){f=_.$8(f);return qEf(null,null,null,null,f[5],f[6],f[7])};
_.na=function(f){var R=f.indexOf("#");return R<0?f:f.slice(0,R)};
sC=function(f,R){f=_.$8(f);R=_.$8(R);return f[3]==R[3]&&f[1]==R[1]&&f[4]==R[4]};
mtf=function(f,R){if(f){f=f.split("&");for(var u=0;u<f.length;u++){var O=f[u].indexOf("="),c=null;if(O>=0){var h=f[u].substring(0,O);c=f[u].substring(O+1)}else h=f[u];R(h,c?VM(c):"")}}};
QkI=function(f){var R=f.indexOf("#");R<0&&(R=f.length);var u=f.indexOf("?");if(u<0||u>R){u=R;var O=""}else O=f.substring(u+1,R);return[f.slice(0,u),O,f.slice(R)]};
WlC=function(f,R){return R?f?f+"&"+R:R:f};
_.ECf=function(f,R){if(!R)return f;f=QkI(f);f[1]=WlC(f[1],R);return f[0]+(f[1]?"?"+f[1]:"")+f[2]};
_.tYf=function(f,R,u){if(Array.isArray(R))for(var O=0;O<R.length;O++)_.tYf(f,String(R[O]),u);else R!=null&&u.push(f+(R===""?"":"="+_.e0(R)))};
_.As=function(f){var R=[],u;for(u in f)_.tYf(u,f[u],R);return R.join("&")};
_.S0=function(f,R){R=_.As(R);return _.ECf(f,R)};
_.U2=function(f,R,u){u=u!=null?"="+_.e0(u):"";return _.ECf(f,R+u)};
np5=function(f,R,u,O){for(var c=u.length;(R=f.indexOf(u,R))>=0&&R<O;){var h=f.charCodeAt(R-1);if(h==38||h==63)if(h=f.charCodeAt(R+c),!h||h==61||h==38||h==35)return R;R+=c+1}return-1};
Vxq=/#|$/;_.GP=function(f,R){var u=f.search(Vxq),O=np5(f,0,R,u);if(O<0)return null;var c=f.indexOf("&",O);if(c<0||c>u)c=u;O+=R.length+1;return VM(f.slice(O,c!==-1?c:0))};
Cfk=/[?&]($|#)/;_.Y7=function(f,R){for(var u=f.search(Vxq),O=0,c,h=[];(c=np5(f,O,R,u))>=0;)h.push(f.substring(O,c)),O=Math.min(f.indexOf("&",c)+1||u,u);h.push(f.slice(O));return h.join("").replace(Cfk,"$1")};
_.UW=function(f,R,u){return _.U2(_.Y7(f,R),R,u)};
yfC=function(f){var R=QkI(window.location.href),u=R[1],O=[];u&&u.split("&").forEach(function(c){var h=c.indexOf("=");h=h>=0?c.slice(0,h):c;f.hasOwnProperty(h)||O.push(c)});
R[1]=WlC(O.join("&"),_.As(f));return R[0]+(R[1]?"?"+R[1]:"")+R[2]};var Iu7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Iu7,_.e5);Iu7.prototype.getVersion=function(){return _.bH(this,2)};var HGh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(HGh,_.e5);var plX=function(f,R){return _.FH(f,2,R)},TnX=function(f,R){return _.FH(f,3,R)};
HGh.prototype.getModel=function(){return _.bH(this,4)};
var DcD=function(f,R){return _.FH(f,4,R)},bG7=function(f,R){return _.FH(f,5,R)},zwl=function(f,R){return _.FH(f,9,R)},L1q=function(f,R){return Wo(f,10,R)},Nnn=function(f,R){return _.X$(f,11,R)},j5X=function(f,R){return _.FH(f,1,R)},JuB=function(f,R){return _.X$(f,7,R)};var yun="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var sf=function(f,R,u,O){f=f===void 0?window:f;R=R===void 0?null:R;u=u===void 0?new xRP:u;O=O===void 0?wll():O;zHn.call(this);var c=this;this.global=f;this.debugChannel=R;this.performanceMonitor=u;this.onPageHide=pG(function(){return jW(c.global,"pagehide")}).pipe(I5(this.performanceMonitor,941));
this.onLoad=pG(function(){return jW(c.global,"load")}).pipe(I5(this.performanceMonitor,738),eW(1));
this.onResize=pG(function(){return jW(c.global,"resize")}).pipe(I5(this.performanceMonitor,741));
this.onMessage=pG(function(){return jW(c.global,"message")}).pipe(I5(this.performanceMonitor,740));
this.document=new PI(this.global,this);this.timeProvider=new Ul7(new G1P(this.intrinsicFunctionNamespace,this.performanceMonitor),new eHn(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Irq(new oth(this),new OCF(this),new kz(this,new $l2(this)),new kz(this,new hFA(this)),new kz(this,new Ig(this)))};
_.y(sf,zHn);var Ak=function(f){var R=f.global;return!!f.global.HTMLFencedFrameElement&&!!R.fence&&typeof R.fence.reportEvent==="function"};
_.X=sf.prototype;_.X.reportFencedFrameEvent=function(f){Ak(this)&&this.global.fence.reportEvent(f)};
_.X.getOnBackgrounded=function(){return this.onPageHide.pipe(I5(this.performanceMonitor,942),h5(this.queue),CG(function(){}))};
_.X.postMessage=function(f,R,u){u=u===void 0?[]:u;this.global.postMessage(f,R,u)};
_.X.getWidth=function(){return gq(this.global)?this.global.width:0};
_.X.getHeight=function(){return gq(this.global)?this.global.height:0};
_.X.isMobile=function(){return sx7()||nt5()};
var I0=function(f,R){try{var u=Euh(R,f.global,f.isMobile());return{left:u.left,top:u.top,width:u.getWidth(),height:u.getHeight()}}catch(O){return Uf}};
sf.prototype.validate=function(){var f=this.beaconFactory.isSupported()||Ak(this);return this.global&&this.timeProvider.available()&&f};
var san=function(f){return(f=PC5(f.global))?Ok(f):null};
_.Vy.Object.defineProperties(sf.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(f){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!gq(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}}});_.dtk=!_.O0&&!_.H0();var yK7=function(f){return f};var N97=function(f){return f.pipe(z_(function(R){var u=R.endOfSessionReason;var O;return((O=R.viewable)==null?void 0:O.extrapolateToNow().value)||u!=void 0}),eW(1),Pl())};var xcq=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Skh=function(f){var R=f.sequenceNumber.toString(10).padStart(2,"0");
R=""+f.startTime+R;f.sequenceNumber<99&&f.sequenceNumber++;return R};var E$l=ih(vl(function(f){return f.endOfSessionReason===void 0}),CG(function(f){return Object.assign({},f,{timestamps:WK(f)})}),z_(function(f){var R=f.viewable;
f=f.timestamps;var u;return(u=R==null?void 0:R.extrapolateUsingTimestampMap(f).value)!=null?u:!1}),CG(function(f){var R=f.beaconFactory;
var u=f.timestampedExposureHistory;var O=f.timeOnScreen;var c=f.binaryContext;f=f.timestamps;if(R===void 0||u===void 0||O===void 0||c===void 0)return!1;if(O.extrapolateUsingTimestampMap(f).value.every(function(h){return h>=0}))return!0;
u=u.map(function(h){return h.timestamp+":"+h.value}).join(",");
O=Ef({bin:c,tos:O},f);R.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+O+("&eh="+u)).sendNow();return!0}),vl(function(f){return!f}),Pl());var gu7=function(f){return{id:f.pingId,mcvt:f.maxConsecutiveViewTime,p:f.creativePosition,asp:f.adSpeedPosition,tm:f.totalMeasurementTime,tu:f.totalUnviewedTime,mtos:f.maxTimeOnScreen,tos:f.timeOnScreen,v:f.binaryVersion,bin:f.binaryContext,avms:f.measurementStrategy,bs:f.browserSize,mc:f.maximumExposure,"if":f.crossDomainIframeState,vu:f.delayedImpressionJsState,app:f.inApp,mse:f.mraidError,mtop:f.mraidSituation,itpl:f.injectedTemplateId,adk:f.adKey,exk:f.awbidKey,rs:f.requestSource,la:f.isLargeAd,
cr:f.isContentRecommendationAd,uach:f.userAgentClientHints,vs:f.viewState,r:f.reasonCode,pay:f.hasCpmavUrl,co:f.clientPingOrderCounter,rst:f.adRenderStartTime,rpt:f.adRenderPeriodTime,isd:f.initialScrollDepth,lsd:f.loadedScrollDepth,context:f.errorContext,msg:f.errorMessage,stack:f.errorStack,name:f.errorName,ec:f.hasElementChanged,sfr:f.strategyFailureReasons,met:f.creativeSearchResult,wmsd:f.webMeasurementStartDiagnostic,pv:f.pageVisible,epv:f.eosPageVisible,pbe:f.inStatefulBeaconExperiment,fle:f.inFetchLaterBeaconExperiment,
vae:f.inViewableAttributionExperiment,spb:f.supportsPendingBeacon,sfl:f.supportsFetchLater,ffslot:f.isFencedFrameSlotTurtlex,reach:f.sharedStorageReachMode,io2:f.v2VisibilityBitVector,rxdbg:f.rxDebugger,omida:f.omidAppId,omidp:f.omidPartner,omidpv:f.omidPartnerVersion,omidor:f.omidOcclusionReasons,omidv:f.omidVersion,omids:f.omidSessionType,omidam:f.omidAccessMode,omidct:f.omidCreativeType,omidia:f.omidInApp,omiddc:f.omidDeviceCategory,omidlat:f.omidLastActivity,omiddit:f.omidDeviceIdleTime,qid:f.errorEscapedQueryId}};var dGh=function(f){var R=[];return f.pipe(CG(function(u){var O=u.beaconFactory,c=u.fetchBeaconFactory,h=u.timeOnScreen,l=u.timeOnScreenUrlPrefixes,K=u.payloadMapper,q=u.timeOnScreenPingId,F=u.timeOnScreenReason,w=u.urlSerializer,m=u.viewable,W=u.hasImpressionFired,C=u.inStatefulBeaconExperiment,d=u.supportsPendingBeacon,p=u.supportsFetchLater,J=u.turtlexReportEventData;if(!u.geometryMeasurable||!W||u.maxTimeOnScreen===void 0||h===void 0||l===void 0||K===void 0||q===void 0||w===void 0||O===void 0)return!1;
if(u.isTurtlex){if(F===void 0)return!1;l=u.reportFencedFrameEvent;if(!l)return!1;l({eventType:"active-view-time-on-screen",eventData:J!=null?J:"",destination:["buyer"]});return!0}if(!(C||p||F))return!1;J=WK(u);var M;m=(M=m==null?void 0:m.extrapolateUsingTimestampMap(J).value)!=null?M:!1;M=w(Object.assign({},u,{pingId:q,viewState:m?4:3,reasonCode:F!=null?F:"u",payloadMapper:K,urlPrefixes:l}),J);if(C){for(;R.length>l.length;)u=void 0,(u=R.shift())==null||u.deactivate();M.forEach(function(g,x){x>=R.length?
R.push(O.makeBeacon(g)):R[x].url=g});
return d&&c&&F!==void 0?(M.forEach(function(g){c.makeBeacon(g).sendNow()}),!0):F!==void 0}if(d&&c&&F!==void 0)return M.forEach(function(g){c.makeBeacon(g).sendNow()}),!0;
if(p&&c){for(;R.length>l.length;)d=void 0,(d=R.shift())==null||d.deactivate();var P=w(Object.assign({},u,{pingId:q,viewState:m?4:3,reasonCode:F!=null?F:"u",payloadMapper:K,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),J)[0];M.forEach(function(g,x){x>=R.length?R.push(O.makeBeacon(P,{endOfSession:!0})):R[x].url=P});
return F!==void 0?(M.forEach(function(g){c.makeBeacon(g).sendNow()}),!0):F!==void 0}return F!==void 0?(M.forEach(function(g){O.makeBeacon(g).sendNow()}),!0):!1}),vl(function(u){return!u}),Pl())};var LD0=ih(z_(function(f){return f.immediateUrlPrefixes!==void 0&&f.payloadMapper!==void 0&&f.urlSerializer!==void 0&&f.inferredPingId!==void 0&&f.beaconFactory!==void 0}),z_(function(f){return fw2(f)!==null}),iG2(function(f){return f.activeViewUnmeasurableEvent},function(f){return f.emit}),CG(function(f){if(f.isTurtlex){var R=f.reportFencedFrameEvent;
if(R){var u;R({eventType:"active-view-unmeasurable",eventData:(u=f.turtlexReportEventData)!=null?u:"",destination:["buyer"]})}}else{u=void 0;var O=fw2(f);if(O==="x"){var c,h=(c=f.geometricMeasurementErrors)!=null?c:f.contextValidationErrors;h&&(R=h.stack,u=h.message)}f.urlSerializer(Object.assign({},f,{urlPrefixes:f.immediateUrlPrefixes,payloadMapper:f.payloadMapper,pingId:f.inferredPingId,viewState:2,reasonCode:O,errorMessage:u,errorStack:R}),WK(f)).forEach(function(l){f.beaconFactory.makeBeacon(l).sendNow()})}}),
eW(1),Pl());var Rf7=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var WD7=ih(z_(function(f){return f.payloadMapper!==void 0&&f.immediateUrlPrefixes!==void 0&&f.urlSerializer!==void 0&&f.inferredPingId!==void 0&&f.beaconFactory!==void 0}),CG(function(f){return Object.assign({},f,{timestamps:WK(f)})}),z_(function(f){var R=f.viewable;
var u=f.hasImpressionFired;f=f.timestamps;var O;return!!u&&((O=R==null?void 0:R.extrapolateUsingTimestampMap(f).value)!=null?O:!1)}),iG2(function(f){return f.activeViewViewableEvent},function(f){return f.emit}),CG(function(f){var R=f.beaconFactory,u=f.turtlexReportEventData;
if(f.isTurtlex){var O=f.reportFencedFrameEvent;if(!O)return!1;O({eventType:"active-view-viewable",eventData:u!=null?u:"",destination:["buyer"]});return!0}u=f.urlSerializer(Object.assign({},f,{urlPrefixes:f.immediateUrlPrefixes,payloadMapper:f.payloadMapper,pingId:f.inferredPingId,viewState:4,reasonCode:"v"}),f.timestamps);(O=f.cpmavUrls)&&O.length>0&&f.viewUrlSerializer&&f.viewUrlSerializer(O,f).forEach(function(c){R.makeBeacon(c).sendNow()});
(O=f.viewableRelayUrls)&&O.length>0&&f.viewUrlSerializer&&f.viewUrlSerializer(O,f).forEach(function(c){R.makeBeacon(c).sendNow()});
u.forEach(function(c){R.makeBeacon(c,{attributionEnabled:f.isViewableAttributionEnabled}).sendNow()});
return!0}),vl(function(f){return!f}),Pl());var Sf2=CG(function(f){return[f.value.topWindowViewportExternalGeometry.width,f.value.topWindowViewportExternalGeometry.height]});var Mg=function(f,R){this.callback=f;this.options=R;this.intersectionObserverV2=this.intersectionObserverV1=null},Lyn=function(f,R){R?f.intersectionObserverV2||(R=Object.assign({},f.options,{delay:100,
trackVisibility:!0}),f.intersectionObserverV2=new IntersectionObserver(f.callback,R)):f.intersectionObserverV1||(f.intersectionObserverV1=new IntersectionObserver(f.callback,f.options))},NHk=function(f,R){f=R?f.intersectionObserverV2:f.intersectionObserverV1;
if(!f)throw new Tke;return f};
Mg.prototype.observe=function(f,R){NHk(this,f).observe(R)};
Mg.prototype.unobserve=function(f,R){NHk(this,f).unobserve(R)};
Mg.prototype.disconnect=function(f){NHk(this,f).disconnect()};
Mg.prototype.takeRecords=function(f){return NHk(this,f).takeRecords()};var zx={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Uf,topWindowViewportExternalGeometry:Uf,measurementRequests:new cK,elementGeometrySourceName:"ns",elementGeometry:Uf,intersectionGeometry:Uf,viewportLocalAppOffset:{x:0,y:0}};var Tq0=eF(ih(CG(function(f){var R;return(R=f.exposureOverride)!=null?R:pK7(f)}),CG(function(f){return isFinite(f)?f:0}))),Gxh=eF(ih(CG(function(f){var R;
return(R=f.exposureOverride)!=null?R:pK7(f)}),CG(function(f){return isFinite(f)?f:-1})));var eA=function(f,R){this.a=f;this.b=R;if(f.clock.timeline!==R.clock.timeline)throw Error();};
eA.prototype.equivalentTo=function(f){return f instanceof eA?this.a.equivalentTo(f.a)&&this.b.equivalentTo(f.b):!1};
eA.prototype.extrapolateToTime=function(f){var R=this.a.extrapolateToTime(f).value,u=this.b.extrapolateToTime(f).value;return{timestamp:f,value:[R,u]}};
_.Vy.Object.defineProperties(eA.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 f=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),R=this.a.lastMeasurement.timestamp.equals(f)?this.a.lastMeasurement.value:this.a.extrapolateToTime(f).value,u=this.b.lastMeasurement.timestamp.equals(f)?this.b.lastMeasurement.value:this.b.extrapolateToTime(f).value;return{timestamp:f,value:[R,u]}}}});var GD=function(f,R){this.input=f;this.mapFunction=R;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
GD.prototype.equivalentTo=function(f){return f instanceof GD?this.input.equivalentTo(f.input)&&this.mapFunction===f.mapFunction:!1};
GD.prototype.extrapolateToTime=function(f){f=this.input.extrapolateToTime(f);return{timestamp:f.timestamp,value:this.mapFunction(f.value)}};
_.Vy.Object.defineProperties(GD.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var BI=function(){};
BI.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
BI.prototype.extrapolateUsingTimestampMap=function(f){var R=this.clock.timeline,u,O=(u=f.get(R))!=null?u:this.clock.now();f.set(R,O);return this.extrapolateToTime(O)};
BI.prototype.map=function(f){return new LlC(this,f)};
BI.prototype.joinWith=function(f){return new bCt(this,f)};
var bCt=function(){eA.apply(this,arguments);this.map=BI.prototype.map;this.joinWith=BI.prototype.joinWith;this.extrapolateToNow=BI.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=BI.prototype.extrapolateUsingTimestampMap};
_.y(bCt,eA);var LlC=function(){GD.apply(this,arguments);this.map=BI.prototype.map;this.joinWith=BI.prototype.joinWith;this.extrapolateToNow=BI.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=BI.prototype.extrapolateUsingTimestampMap};
_.y(LlC,GD);var BK=function(f,R){this.lastMeasurement=R;this.extrapolateToNow=BI.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=BI.prototype.extrapolateUsingTimestampMap;this.map=BI.prototype.map;this.joinWith=BI.prototype.joinWith;this.clock=f};
BK.prototype.equivalentTo=function(f){return f.active};
BK.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Vy.Object.defineProperties(BK.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var xg0=CG(function(f){if(f.value.viewportGeometrySourceName==="omid"){if(f.value.elementGeometrySourceName==="nio")return"omio";if(f.value.elementGeometrySourceName==="geo")return"omgeo"}return f.value.elementGeometrySourceName==="geo"||f.value.elementGeometrySourceName==="nio"?f.value.viewportGeometrySourceName:f.value.elementGeometrySourceName});var Dg7=ih(z_(function(f){return!isNaN(f)}),sk(function(f,R){return isNaN(f)?R:Math.min(f,R)},NaN),G_());var H87=eF(ih(CG(function(f){return f.intersectionGeometry.width*f.intersectionGeometry.height/(f.exposedViewportLocalGeometry.width*f.exposedViewportLocalGeometry.height)}),CG(function(f){return isFinite(f)?Math.min(1,f):0})));var oDq=ih(eF(CG(function(f){f=f.exposureOverride?f.elementGeometry.width*f.elementGeometry.height*f.exposureOverride/(f.topWindowViewportExternalGeometry.width*f.topWindowViewportExternalGeometry.height):f.intersectionGeometry.width*f.intersectionGeometry.height/(f.topWindowViewportExternalGeometry.width*f.topWindowViewportExternalGeometry.height);return isFinite(f)?f:0})));var gDB=function(f,R){var u=this;this.timeProvider=f;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=R.pipe(G_()).subscribe(function(O){$D(u);u.measurementRequestObserver=O})},nD2=function(f,R){$D(f);
f.lastMeasurementRequest=f.timeProvider.setTimeout(function(){var u;return void((u=f.measurementRequestObserver)==null?void 0:u.next())},R)},$D=function(f){f.lastMeasurementRequest!==null&&f.timeProvider.clearTimeout(f.lastMeasurementRequest);
f.lastMeasurementRequest=null};
gDB.prototype.dispose=function(){$D(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var pGk=function(){};var wi5=function(f,R){this.context=f;this.strategies=R};
_.y(wi5,pGk);wi5.prototype.buildGeometrySource=function(f,R){var u=this.strategies.map(function(h){return h.buildGeometrySource(f,R)}),O=r5B(u.map(function(h){return h.geometrySource})),c=O.capturedErrors.pipe(jki());
return{geometrySource:O.chain.pipe(h5(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:c,strategyErrors:O.capturedErrors}].concat(_.yq(u.map(function(h){return h.additionalOutputs}))))}};
var jki=function(){return sk(function(f,R){R instanceof C8?f.push(R.measurementStrategyFailureReason):f.push(-1);return f},[])};var Qj0=function(f,R){this.context=f;this.poller=R};
_.y(Qj0,pGk);Qj0.prototype.buildGeometrySource=function(f,R){var u=fN5(u$7(this.context,this.poller),Fyn(this.context,R.requestSource));return{geometrySource:i8t(f.measurableCreative.pipe(u),R.inApp),additionalOutputs:{}}};var mG0=function(f,R,u){u=u===void 0?tFB(f,R):u;this.context=f;this.intersectionObserverStrategy=u};
_.y(mG0,pGk);mG0.prototype.buildGeometrySource=function(f,R){var u=this.intersectionObserverStrategy(R.useV2);return{geometrySource:i8t(f.measurableCreative.pipe(u,C_D(this.context)),R.inApp),additionalOutputs:{}}};var Dtk=function(f,R,u){var O=O===void 0?Symbol():O;this.element=f;this.immediateUrls=R;this.timeOnScreenUrls=u;this.symbol=O};var SF=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),ZRB=Object.freeze([1,.75,SF.exposureThreshold,SF.largeAdExposureThreshold,0]);var tjt=function(f,R){R=R===void 0?36E5:R;var u=u===void 0?!0:u;this.creatives=new cK;this.elementsToUnregister=new cK;this.elementMap=new Map;var O=new sf(window,null);O.beaconFactory=new kz(O,new Ig(O));FDq(O,this.creatives,this.elementsToUnregister,f,R,u).subscribe()},doq=function(f,R,u,O){if(!f.elementMap.has(R)){var c=new HK(R);
f.elementMap.set(R,c);f.creatives.next(new Dtk(c,u,O))}},yRD=function(f,R){f.elementsToUnregister.next(R);
var u=f.elementMap.get(R);u!==void 0&&(u.release(),f.elementMap.delete(R))};var aMt=function(f){var R=f.url;f=f.uaDataValues;this.JSC$7484_url_=R;this.uaDataValues_=f;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var u=/[?&]([^&=]+)=([^&]*)/g;f=u.exec(R);)this.urlParamValues_[f[1]]=f[2]},F6n=function(f){f=f.uaDataValues_;
if(!f)return"";var R=Vw("uap",f.platform)+Vw("uapv",f.platformVersion)+Vw("uafv",f.uaFullVersion)+Vw("uaa",f.architecture)+Vw("uam",f.model)+Vw("uab",f.bitness);f.fullVersionList&&(R+="&uafvl="+encodeURIComponent(f.fullVersionList.map(function(u){return encodeURIComponent(u.brand)+";"+encodeURIComponent(u.version)}).join("|")));
f.wow64!=null&&(R+="&uaw="+Number(f.wow64));return R.slice(1)};var og=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(og,_.e5);og.prototype.getId=function(){return _.bH(this,1)};
og.prototype.setId=function(f){return _.Vo(this,1,f)};var xz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(xz,_.e5);xz.prototype.getSeconds=function(){return NH(this,1)};
xz.prototype.setSeconds=function(f){return _.br(this,1,zX(f),"0")};_.Mm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(_.Mm,_.e5);_.Mm.prototype.getSeconds=function(){return NH(this,1)};
_.Mm.prototype.setSeconds=function(f){return _.br(this,1,zX(f),"0")};
_.JfI=function(f){var R=Number(jT(f,1));f=_.Rj(f,2);return new Date(R*1E3+f/1E6)};var SA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(SA,_.e5);SA.prototype.getUrl=function(){return _.bH(this,1)};
SA.prototype.setUrl=function(f){return _.Vo(this,1,f)};
SA.prototype.getHeight=function(){return _.Rj(this,2)};
SA.prototype.getWidth=function(){return _.Rj(this,3)};var $z=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($z,_.e5);$z.prototype.getAspectRatio=function(){return L6(this,1)};
$z.prototype.setAspectRatio=function(f){return _.br(this,1,_.Km(f),0)};
$z.prototype.getDuration=function(){return _.Ry(this,xz,2)};var zFf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(zFf,_.e5);var THk=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(THk,_.e5);var HCC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(HCC,_.e5);var IkC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(IkC,_.e5);var MYF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(MYF,_.e5);var PfC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(PfC,_.e5);var UtF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(UtF,_.e5);var eFY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(eFY,_.e5);var GIk=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(GIk,_.e5);var gB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(gB,_.e5);var s2=[2,4,5,6,7];var BHi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(BHi,_.e5);var C6=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(C6,_.e5);_.X=C6.prototype;_.X.getId=function(){return _.Ry(this,og,1)};
_.X.setId=function(f){return _.OO(this,1,f)};
_.X.getName=function(){return _.bH(this,2)};
_.X.setDescription=function(f){return _.Vo(this,3,f)};
_.X.getUrl=function(){return _.bH(this,8)};
_.X.setUrl=function(f){return _.Vo(this,8,f)};
var np=function(f){return _.rq(f,SA,10,_.fR())};
C6.prototype.getOwner=function(f){var R=_.CE(this,40,_.Bt,3,!0);ok(R,f);return R[f]};
C6.prototype.getVersion=function(){return NH(this,45)};
var VO=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(VO,_.e5);_.oCC=[0,JIq,TC7];_.xtF=[0,JIq,TC7];var SEE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(SEE,_.e5);var Yz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Yz,_.e5);Yz.prototype.getStatus=function(){return _.p6(this,1)};
Yz.prototype.removeItem=function(f){return n6n(this,2,f)};var $tF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($tF,_.e5);$tF.prototype.getName=function(){return _.bH(this,8)};var vI=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(vI,_.e5);vI.prototype.getCommand=function(){return _.p6(this,1)};
vI.prototype.getSource=function(){return _.Ry(this,$tF,2)};
vI.prototype.setVisible=function(f){return _.pa(this,5,f)};
vI.prototype.removeItem=function(f){return n6n(this,7,f)};var gCf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(gCf,_.e5);gCf.prototype.getCommand=function(){return _.p6(this,1)};
gCf.prototype.removeItem=function(f){return n6n(this,4,f)};
var skE=_.Ra(gCf);var iw=function(f,R,u){u=u===void 0?Error():u;var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.code=f;R+=":";u instanceof Error?(this.message=R+u.message,this.stack=u.stack||""):(this.message=R+String(u),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(iw,Error);_.d9=function(){this.JSC$7542_disposed_=this.JSC$7542_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.d9.prototype.JSC$7542_disposed_=!1;_.d9.prototype.isDisposed=function(){return this.JSC$7542_disposed_};
_.d9.prototype.dispose=function(){this.JSC$7542_disposed_||(this.JSC$7542_disposed_=!0,this.disposeInternal())};
_.d9.prototype[Symbol.dispose]=function(){this.dispose()};
_.qG=function(f,R){f.addOnDisposeCallback(_.mx(_.YD,R))};
_.d9.prototype.addOnDisposeCallback=function(f,R){this.JSC$7542_disposed_?R!==void 0?f.call(R):f():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),R&&(f=f.bind(R)),this.onDisposeCallbacks_.push(f))};
_.d9.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var rB=function(f){_.d9.call(this);this.wpc=f};
_.y(rB,_.d9);rB.prototype.cHp=function(){return this.wpc.f()};
rB.prototype.tkC=function(f){return this.wpc.c(f)};
rB.prototype.g9=function(f){return this.wpc.m(JK2(f))};
rB.prototype.vN=function(f){return this.wpc.mws(JK2(f))};
var i_=function(f){_.d9.call(this);var R=this;this.us=f;this.eAX="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.pR3=void 0;this.pXF=this.us.p;this.cEP=this.xuF.bind(this);this.addOnDisposeCallback(function(){return void nCE(R)})};
_.y(i_,_.d9);var VYf=function(f){var R;return _.k(function(u){if(u.nextAddress==1){if(!f.us.wpc)throw new iw(30,"NWA");return f.oUp?u.return(f.oUp):_.A(u,f.us.wpc(),2)}R=u.yieldResult;f.oUp=new rB(R);return u.return(f.oUp)})};
i_.prototype.snapshot=function(f){return this.us.s(Object.assign({},f.d5&&{c:f.d5},f.uwX&&{s:f.uwX},f.kAR!==void 0&&{p:f.kAR}))};
i_.prototype.xuF=function(f){this.us.e(f)};
i_.prototype.pFy=function(f,R){return this.us.c(f,R,!1)};
var nCE=function(f){f.pR3!==void 0&&(f.eAX.forEach(function(R){var u;(u=f.pR3)==null||u.removeEventListener(R,f.cEP)}),f.pR3=void 0)};
i_.prototype.imF=function(){return this.us.l()};var YEA,fd=function(){_.d9.apply(this,arguments);this.biv=1;this[YEA]=this.dispose};
_.y(fd,_.d9);fd.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.biv++;return this};
fd.prototype.dispose=function(){--this.biv||_.d9.prototype.dispose.call(this)};
YEA=Symbol.dispose;var v$n=function(f){this.iBi=f;f.addNewEventMetric("/client_streamz/bg/frs",_.ci("mk"))};
v$n.prototype.record=function(f,R){this.iBi.record("/client_streamz/bg/frs",f,R)};
var Rm2=function(f){this.zS1=f;f.addNewEventMetric("/client_streamz/bg/wrl",_.ci("mn"),O8("ac"),O8("sc"),_.ci("rk"),_.ci("mk"))};
Rm2.prototype.record=function(f,R,u,O,c,h){this.zS1.record("/client_streamz/bg/wrl",f,R,u,O,c,h)};
var rK7=function(f){this.t1I=f;f.addNewCounter("/client_streamz/bg/ec",_.ci("en"),_.ci("mk"))};
rK7.prototype.increment=function(f,R){this.t1I.JSC$7795_incrementCounter("/client_streamz/bg/ec",f,R)};
var f1P=function(f){this.pbP=f;f.addNewEventMetric("/client_streamz/bg/el",_.ci("en"),_.ci("mk"))};
f1P.prototype.record=function(f,R,u){this.pbP.record("/client_streamz/bg/el",f,R,u)};
var iR0=function(f){this.uMX=f;f.addNewCounter("/client_streamz/bg/cec",O8("ec"),_.ci("mk"))};
iR0.prototype.increment=function(f,R){this.uMX.JSC$7795_incrementCounter("/client_streamz/bg/cec",f,R)};
var uTn=function(f){this.ddi=f;f.addNewCounter("/client_streamz/bg/po/csc",O8("cs"),_.ci("mk"))};
uTn.prototype.increment=function(f,R){this.ddi.JSC$7795_incrementCounter("/client_streamz/bg/po/csc",f,R)};
var Ocq=function(f){this.nuG=f;f.addNewCounter("/client_streamz/bg/po/ctav",_.ci("av"),_.ci("mk"))};
Ocq.prototype.increment=function(f,R){this.nuG.JSC$7795_incrementCounter("/client_streamz/bg/po/ctav",f,R)};
var cy0=function(f){this.cgf=f;f.addNewCounter("/client_streamz/bg/po/cwsc",_.ci("su"),_.ci("mk"))};
cy0.prototype.increment=function(f,R){this.cgf.JSC$7795_incrementCounter("/client_streamz/bg/po/cwsc",f,R)};var DK2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(DK2,_.e5);var q$5=function(f,R){return _.Ne(f,3,R,v5X)};var vCl=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(vCl,_.e5);var iCH=[1,2,3];var rff=[0,iCH,_.UP0,H72,Py7];var feI=[0,_.ST,[0,pNh,_.eT]];var RzE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(RzE,_.e5);var u5C=[1,2,3];var OmC=[0,u5C,zNq,j_t,_.$T,feI];var c9F=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(c9F,_.e5);var XtY=[0,_.ST,rff,OmC];var hzA=[0,_.xT];var Zmi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Zmi,_.e5);var lel=[0,_.xT,-1,_.ot];var kXG=[0,_.xT,-1,_.GR,_.ot];var K2Y=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(K2Y,_.e5);var qhl=[1,2,3];var A9l=[0,qhl,_.$T,lel,_.$T,kXG,_.$T,hzA];var aei=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(aei,_.e5);aei.prototype.JSC$7615_serializeBinary=Ren([0,_.xT,A9l,eNh,_.ST,XtY,IEl,M1q]);var F2G=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(F2G,_.e5);var Qwt=function(f){var R=new aei;R=_.FH(R,1,f.JSC$7731_metricName);var u=wtI(f);R=_.Ne(R,3,u,_.Pt);u=[];for(var O=[],c=_.Z(f.cellMap.keys()),h=c.next();!h.done;h=c.next())O.push(h.value.split(","));for(c=0;c<O.length;c++){h=O[c];for(var l=f.cellType,K=f.getCells(h)||[],q=[],F=0;F<K.length;F++){var w=K[F],m=w&&w.cellValue;w=new RzE;switch(l){case 3:m=Number(m);Number.isFinite(m)&&F0(w,1,u5C,zX(m));break;case 2:F0(w,2,u5C,_.Km(Number(m)))}q.push(w)}l=q;for(K=0;K<l.length;K++){q=l[K];F=new c9F;q=_.OO(F,
2,q);F=[];w=maY(f);for(m=0;m<w.length;m++){var W=w[m],C=h[m],d=new vCl;switch(W){case 3:F0(d,1,iCH,el(String(C)));break;case 2:W=Number(C);Number.isFinite(W)&&F0(d,2,iCH,_.dN(W));break;case 1:F0(d,3,iCH,n52(C==="true"))}F.push(d)}Wo(q,1,F);u.push(q)}}Wo(R,4,u);return R};var W2E=function(f){if(!f)return"";if(/^about:(?:blank|srcdoc)$/.test(f))return window.origin||"";f.indexOf("blob:")===0&&(f=f.substring(5));f=f.split("#")[0].split("?")[0];f=f.toLowerCase();f.indexOf("//")==0&&(f=window.location.protocol+f);/^[\w\-]*:\/\//.test(f)||(f=window.location.href);var R=f.substring(f.indexOf("://")+3),u=R.indexOf("/");u!=-1&&(R=R.substring(0,u));u=f.substring(0,f.indexOf("://"));if(!u)throw Error("ua`"+f);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("va`"+u);f="";var O=R.indexOf(":");if(O!=-1){var c=R.substring(O+1);R=R.substring(0,O);if(u==="http"&&c!=="80"||u==="https"&&c!=="443")f=":"+c}return u+"://"+R+f};var tlk=function(f,R,u){var O=String(_.Oe.location.href);return O&&f&&R?[R,Emf(W2E(O),f,u||null)].join(" "):null},Emf=function(f,R,u){var O=[],c=[];
if((Array.isArray(u)?2:1)==1)return c=[R,f],_.Gf(O,function(K){c.push(K)}),CKY(c.join(" "));
var h=[],l=[];_.Gf(u,function(K){l.push(K.key);h.push(K.value)});
u=Math.floor((new Date).getTime()/1E3);c=h.length==0?[u,R,f]:[h.join(":"),u,R,f];_.Gf(O,function(K){c.push(K)});
f=CKY(c.join(" "));f=[u,f];l.length==0||f.push(l.join(""));return f.join("_")},CKY=function(f){var R=edP();
R.update(f);return R.digestString().toLowerCase()};var Rf=function(f){this.JSC$7626_document_=f||{cookie:""}},y9C;
_.X=Rf.prototype;_.X.isEnabled=function(){if(!_.Oe.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};
_.X.set=function(f,R,u){var O=!1;if(typeof u==="object"){var c=u.sameSite;O=u.secure||!1;var h=u.domain||void 0;var l=u.path||void 0;var K=u.maxAge}if(/[;=\s]/.test(f))throw Error("wa`"+f);if(/[;\r\n]/.test(R))throw Error("xa`"+R);K===void 0&&(K=-1);u=h?";domain="+h:"";l=l?";path="+l:"";O=O?";secure":"";K=K<0?"":K==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+K*1E3)).toUTCString();this.JSC$7626_document_.cookie=f+"="+R+u+l+K+O+(c!=null?";samesite="+c:"")};
_.X.get=function(f,R){for(var u=f+"=",O=(this.JSC$7626_document_.cookie||"").split(";"),c=0,h;c<O.length;c++){h=Fn(O[c]);if(h.lastIndexOf(u,0)==0)return h.slice(u.length);if(h==f)return""}return R};
_.X.remove=function(f,R,u){var O=this.containsKey(f);this.set(f,"",{maxAge:0,path:R,domain:u});return O};
_.X.getKeys=function(){return y9C(this).keys};
_.X.getValues=function(){return y9C(this).values};
_.X.isEmpty=function(){return!this.JSC$7626_document_.cookie};
_.X.getCount=function(){return this.JSC$7626_document_.cookie?(this.JSC$7626_document_.cookie||"").split(";").length:0};
_.X.containsKey=function(f){return this.get(f)!==void 0};
_.X.containsValue=function(f){for(var R=y9C(this).values,u=0;u<R.length;u++)if(R[u]==f)return!0;return!1};
_.X.clear=function(){for(var f=y9C(this).keys,R=f.length-1;R>=0;R--)this.remove(f[R])};
y9C=function(f){f=(f.JSC$7626_document_.cookie||"").split(";");for(var R=[],u=[],O,c,h=0;h<f.length;h++)c=Fn(f[h]),O=c.indexOf("="),O==-1?(R.push(""),u.push(c)):(R.push(c.substring(0,O)),u.push(c.substring(O+1)));return{keys:R,values:u}};
_.wU=new Rf(typeof document=="undefined"?null:document);var YFt=function(){var f=_.Oe.__SAPISID||_.Oe.__APISID||_.Oe.__3PSAPISID||_.Oe.__1PSAPISID||_.Oe.__OVERRIDE_SID;if(f)return!0;typeof document!=="undefined"&&(f=new Rf(document),f=f.get("SAPISID")||f.get("APISID")||f.get("__Secure-3PAPISID")||f.get("__Secure-1PAPISID"));return!!f},daC=function(f,R,u,O){(f=_.Oe[f])||typeof document==="undefined"||(f=(new Rf(document)).get(R));
return f?tlk(f,u,O):null},xqn=function(f){var R=W2E(_.Oe==null?void 0:_.Oe.location.href),u=[];
if(YFt()){R=R.indexOf("https:")==0||R.indexOf("chrome-extension:")==0||R.indexOf("chrome-untrusted://new-tab-page")==0||R.indexOf("moz-extension:")==0;var O=R?_.Oe.__SAPISID:_.Oe.__APISID;O||typeof document==="undefined"||(O=new Rf(document),O=O.get(R?"SAPISID":"APISID")||O.get("__Secure-3PAPISID"));(O=O?tlk(O,R?"SAPISIDHASH":"APISIDHASH",f):null)&&u.push(O);R&&((R=daC("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",f))&&u.push(R),(f=daC("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",f))&&u.push(f))}return u.length==
0?null:u.join(" ")};var NNE=function(){this.minSize=1024};
NNE.prototype.compress=function(f){var R,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return R=new CompressionStream("gzip"),u=(new Response(R.readable)).arrayBuffer(),O=R.writable.getWriter(),_.A(h,O.write((new TextEncoder).encode(f)),2);case 2:return _.A(h,O.close(),3);case 3:return c=Uint8Array,_.A(h,u,4);case 4:return h.return(new c(h.yieldResult))}})};
NNE.prototype.isSupported=function(f){return f<this.minSize?!1:typeof CompressionStream!=="undefined"};var L2F=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(L2F,_.e5);var uV=function(f,R){this.intervalMs=f;this.callback=R;this.enabled=!1;this.nowFn=function(){return _.rI()};
this.lastTimeMs=this.nowFn()};
uV.prototype.setInterval=function(f){this.intervalMs=f;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
uV.prototype.start=function(){var f=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){f.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
uV.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
uV.prototype.tick=function(){var f=this;if(this.enabled){var R=Math.max(this.nowFn()-this.lastTimeMs,0);R<this.intervalMs*.8?this.timer=setTimeout(function(){f.tick()},this.intervalMs-R):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var bmi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(bmi,_.e5);var ptC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(ptC,_.e5);var jwA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(jwA,_.e5);jwA.prototype.getTransmissionType=function(){return _.p6(this,1)};var xG2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(xG2,_.e5);xG2.prototype.getVersion=function(){return _.bH(this,2)};var OF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(OF,_.e5);var o$t=function(f){Wo(hK,1,f)};
OF.prototype.getModel=function(){return _.bH(this,6)};
var DaH=_.Ra(OF);var J9I=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(J9I,_.e5);var GPl=["platform","platformVersion","architecture","model","uaFullVersion"],hK=new OF,B9q=null;var zzf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(zzf,_.e5);var TNk=function(f){return _.uO(f,1,1)};var Hml=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,4)};
_.y(Hml,_.e5);_.cb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,36)};
_.y(_.cb,_.e5);_.cb.prototype.getExperimentIds=function(){return _.Ry(this,L2F,16)};var IeE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,19)};
_.y(IeE,_.e5);IeE.prototype.setLogSource=function(f){return _.uO(this,2,f)};
IeE.prototype.setScheduler=function(f){return _.uO(this,10,f)};var PKC=function(f,R){this.isServiceWorkerScope=R=R===void 0?!1:R;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new IeE;Number.isInteger(f)&&this.logRequest.setLogSource(f);R||(this.locale=document.documentElement.getAttribute("lang"));Mli(this,new zzf)};
PKC.prototype.setLogSource=function(f){this.logRequest.setLogSource(f);return this};
var Mli=function(f,R){_.OO(f.logRequest,1,R);_.p6(R,1)||TNk(R);f.isServiceWorkerScope||(R=Xz(f),_.bH(R,5)||_.FH(R,5,f.locale));f.uach&&(R=Xz(f),_.Ry(R,OF,9)||_.OO(R,9,f.uach))},Uai=function(f,R){f.transmissionType=R},ezE=function(f){var R=R===void 0?GPl:R;
var u=f.isServiceWorkerScope?void 0:p8();u?S8X(u,R).then(function(O){f.uach=DaH(O!=null?O:"[]");O=Xz(f);_.OO(O,9,f.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Xz=function(f){f=_.Ry(f.logRequest,zzf,1);
var R=_.Ry(f,J9I,11);R||(R=new J9I,_.OO(f,11,R));return R};
PKC.prototype.build=function(f,R,u,O,c,h){R=R===void 0?0:R;u=u===void 0?0:u;O=O===void 0?null:O;c=c===void 0?0:c;h=h===void 0?0:h;if(!this.isServiceWorkerScope){var l=Xz(this);var K=new jwA;K=_.uO(K,1,this.transmissionType);K=_.X$(K,2,this.isFinal);u=_.zR(K,3,u>0?u:void 0);u=_.zR(u,4,c>0?c:void 0);u=_.zR(u,5,h>0?h:void 0);c=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=c[_.pC]|0;u=Ik(u,h)?u:lr(u,c,h)?Zp(u,c):new u.constructor(hT(c,h,!0));_.OO(l,10,u)}l=this.logRequest.clone();u=Date.now().toString();
l=_.OL(l,4,zX(u));f=f.slice();f=Wo(l,3,f);O&&(l=new bmi,O=_.zR(l,13,O),l=new ptC,O=_.OO(l,2,O),l=new Hml,O=_.OO(l,1,O),O=_.uO(O,2,9),_.OO(f,18,O));R&&_.C0(f,14,R);return f};ZN.prototype.currBackoffCount_=0;ZN.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
ZN.prototype.getValue=function(){return this.currValue_};
var GXY=function(f){f.currBaseValue_=Math.min(f.maxValue_,f.currBaseValue_*f.backoffFactor_);f.currValue_=Math.min(f.maxValue_,f.currBaseValue_+(f.randomFactor_?Math.round(f.randomFactor_*(Math.random()-.5)*2*f.currBaseValue_):0));f.currBackoffCount_++};var Ss0=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,8)};
_.y(Ss0,_.e5);var BNI=_.Ra(Ss0);var $P7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($P7,_.e5);var ho;ho=new g0n;var Zq=function(f){_.d9.call(this);var R=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7704_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$7704_sendBeaconApiEnabled=!1;this.logSource=f.logSource;this.getAuthHeaderValue=
f.getAuthHeaderValue||function(){};
this.logRequestBuilder=new PKC(f.logSource,f.isServiceWorkerScope);this.network=f.network||null;this.productID=f.productID||null;this.clearcutUrl=f.urlOverride||null;this.sessionIndex=f.sessionIndex||null;this.disableAutomaticFlush=f.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!f.disableWithCredentials;this.isServiceWorkerScope=f.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!p8()&&!!p8().navigator&&p8().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(omF())).searchParams&&!!(new URL(omF())).searchParams.set;var u=TNk(new zzf);Mli(this.logRequestBuilder,u);this.flushBackoff=new ZN(1E4,3E5,.1);f=xaf(this,f.backgroundJobDeferrer);this.JSC$7704_flushTimer=new uV(this.flushBackoff.getValue(),f);this.backupTimer=new uV(6E5,f);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){ShY(R);
var O;(O=R.metalogService)==null||O.flush()}}),document.addEventListener("pagehide",function(){ShY(R);
var O;(O=R.metalogService)==null||O.flush()}))};
_.y(Zq,_.d9);var xaf=function(f,R){return f.isBrowserSupported?R?function(){R().then(function(){f.flush()})}:function(){f.flush()}:function(){}};
Zq.prototype.disposeInternal=function(){ShY(this);this.JSC$7704_flushTimer.stop();this.backupTimer.stop();_.d9.prototype.disposeInternal.call(this)};
var $aH=function(f){f.clearcutUrl||(f.clearcutUrl=omF());try{return(new URL(f.clearcutUrl)).toString()}catch(R){return(new URL(f.clearcutUrl,p8().location.origin)).toString()}};
Zq.prototype.dispatch=function(f){if(f instanceof _.cb)this.log(f);else try{var R=new _.cb,u=f.serialize();var O=_.FH(R,8,u);this.log(O)}catch(c){lV(this,4,1)}};
var lV=function(f,R,u){f.metalogService&&f.metalogService.increment(R,u)};
Zq.prototype.log=function(f){lV(this,2,1);if(this.isBrowserSupported){f=f.clone();var R=this.sequencePosition++;f=_.C0(f,21,R);this.componentId&&_.FH(f,26,this.componentId);R=f;if(ak7(_.AM(R,1))==null){var u=Date.now();u=Number.isFinite(u)?u.toString():"0";_.OL(R,1,zX(u))}_.AfP(_.AM(R,15))!=null||_.C0(R,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(u=this.experimentIds.clone(),_.OO(R,16,u));lV(this,1,1);R=this.pendingEvents.length-1E3+1;R>0&&(this.pendingEvents.splice(0,R),this.numLogsDroppedSinceLastFlush+=
R,lV(this,3,R));this.pendingEvents.push(f);this.disableAutomaticFlush||this.JSC$7704_flushTimer.enabled||this.JSC$7704_flushTimer.start()}};
Zq.prototype.flush=function(f,R){var u=this;if(this.pendingEvents.length===0)f&&f();else if(this.JSC$7704_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,gmC(this);else{var O=Date.now();if(this.noFlushUntilMs>O&&this.startWaitingMs<O)R&&R("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Uai(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var c=this.pendingEvents.length,
h=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),l=this.getAuthHeaderValue();if(l&&this.lastFailedAuth===l)R&&R("stale-auth-token");else{this.pendingEvents=[];this.JSC$7704_flushTimer.enabled&&this.JSC$7704_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;O=h.serialize();var K;this.JSC$7704_compressor&&this.JSC$7704_compressor.isSupported(O.length)&&
(K=this.JSC$7704_compressor.compress(O));var q=swt(this,O,l),F=function(W){u.flushBackoff.reset();u.JSC$7704_flushTimer.setInterval(u.flushBackoff.getValue());if(W){var C=null;try{var d=JSON.stringify(JSON.parse(W.replace(")]}'\n","")));C=BNI(d)}catch(p){}C&&(W=Number(NH(C,1,_.VA("-1"))),W>0&&(u.startWaitingMs=Date.now(),u.noFlushUntilMs=u.startWaitingMs+W),zFn(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,ho.fieldIndex),Dt7(C,ho.fieldIndex),C=ho.ctor?ho.getExtensionFn(C,ho.ctor,ho.fieldIndex,
ho.JSC$6884_hasMessageId):ho.getExtensionFn(C,ho.fieldIndex,null,ho.JSC$6884_hasMessageId),C=C===null?void 0:C)&&(C=_.Rj(C,1,-1),C!==-1&&(u.flushBackoff=new ZN(C<1?1:C,3E5,.1),u.JSC$7704_flushTimer.setInterval(u.flushBackoff.getValue())))}f&&f();u.numRetriesSinceLastSuccessfulFlush=0},w=function(W,C){var d=_.rq(h,_.cb,3,_.fR());
var p=Number(NH(h,14));GXY(u.flushBackoff);u.JSC$7704_flushTimer.setInterval(u.flushBackoff.getValue());W===401&&l&&(u.lastFailedAuth=l);p&&(u.numLogsDroppedSinceLastFlush+=p);C===void 0&&(C=u.isRetryable(W));C&&(u.pendingEvents=d.concat(u.pendingEvents),u.disableAutomaticFlush||u.JSC$7704_flushTimer.enabled||u.JSC$7704_flushTimer.start());lV(u,7,1);R&&R("net-send-failed",W);++u.numRetriesSinceLastSuccessfulFlush},m=function(){u.network&&u.network.send(q,F,w)};
K?K.then(function(W){lV(u,5,c);q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=W;q.bodyType=2;m()},function(){lV(u,6,c);
m()}):m()}}}};
var swt=function(f,R,u){u=u===void 0?null:u;var O=O===void 0?f.withCredentials:O;var c={},h=new URL($aH(f));u&&(c.Authorization=u);f.sessionIndex&&(c["X-Goog-AuthUser"]=f.sessionIndex,h.searchParams.set("authuser",f.sessionIndex));f.pageId&&(Object.defineProperty(c,"X-Goog-PageId",{value:f.pageId}),h.searchParams.set("pageId",f.pageId));return{url:h.toString(),body:R,bodyType:1,requestHeaders:c,requestType:"POST",withCredentials:O,timeoutMillis:f.timeoutMillis}},ShY=function(f){f.logRequestBuilder.isFinal=
!0;
f.flush();f.logRequestBuilder.isFinal=!1},gmC=function(f){nmi(f,function(R,u){R=new URL(R);
R.searchParams.set("format","json");var O=!1;try{O=p8().navigator.sendBeacon(R.toString(),u.serialize())}catch(c){}O||(f.isSendBeaconSupported=!1);return O})},nmi=function(f,R){if(f.pendingEvents.length!==0){var u=new URL($aH(f));
u.searchParams.delete("format");var O=f.getAuthHeaderValue();O&&u.searchParams.set("auth",O);u.searchParams.set("authuser",f.sessionIndex||"0");for(O=0;O<10&&f.pendingEvents.length;++O){var c=f.pendingEvents.slice(0,32),h=f.logRequestBuilder.build(c,f.numLogsDroppedSinceLastFlush,f.numRetriesSinceLastSuccessfulFlush,f.productID,f.persistedLogRecoveredCount,f.persistedLogExpiredCount);if(!R(u.toString(),h)){++f.numRetriesSinceLastSuccessfulFlush;break}f.numLogsDroppedSinceLastFlush=0;f.numRetriesSinceLastSuccessfulFlush=
0;f.persistedLogRecoveredCount=0;f.persistedLogExpiredCount=0;f.pendingEvents=f.pendingEvents.slice(c.length)}f.JSC$7704_flushTimer.enabled&&f.JSC$7704_flushTimer.stop()}};
Zq.prototype.isRetryable=function(f){return 500<=f&&f<600||f===401||f===0};
var omF=function(){return"https://play.google.com/log?format=json&hasfast=true"};var VlY=function(){this.abortSupported=typeof AbortController!=="undefined"};
VlY.prototype.send=function(f,R,u){var O=this,c,h,l,K,q,F,w,m,W,C;return _.k(function(d){switch(d.nextAddress){case 1:return h=(c=O.abortSupported?new AbortController:void 0)?setTimeout(function(){c.abort()},f.timeoutMillis):void 0,_.cl(d,2,3),l=Object.assign({},{method:f.requestType,
headers:Object.assign({},f.requestHeaders)},f.body&&{body:f.body},f.withCredentials&&{credentials:"include"},{signal:f.timeoutMillis&&c?c.signal:null}),_.A(d,fetch(f.url,l),5);case 5:K=d.yieldResult;if(K.status!==200){(q=u)==null||q(K.status);d.jumpTo(3);break}if((F=R)==null){d.jumpTo(7);break}return _.A(d,K.text(),8);case 8:F(d.yieldResult);case 7:case 3:_.hu(d);clearTimeout(h);_.lC(d,0);break;case 2:w=_.ku(d);switch((m=w)==null?void 0:m.name){case "AbortError":(W=u)==null||W(408);break;default:(C=
u)==null||C(400)}d.jumpTo(3)}})};
VlY.prototype.getTransmissionType=function(){return 4};_.KR=function(f,R){R=R===void 0?"0":R;_.d9.call(this);this.logSource=f;this.sessionIndex=R;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7722_clearExperimentIds=this.productID=null;this.JSC$7722_sendBeaconApiEnabled=!1;this.pageId=null};
_.y(_.KR,_.d9);var l15=function(f,R){f.buildLabel=R;return f},Zc7=function(f,R){f.network=R;
return f},KMe=function(f,R){f.JSC$7722_clearExperimentIds=R},hmP=function(f){f.JSC$7722_sendBeaconApiEnabled=!0;
return f};
_.KR.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.KR.prototype.build=function(){this.network||(this.network=new VlY);var f=new Zq({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:xqn,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.qG(this,f);if(this.buildLabel){var R=this.buildLabel,u=Xz(f.logRequestBuilder);
_.FH(u,7,R)}f.JSC$7704_compressor=new NNE;this.componentId&&(f.componentId=this.componentId);this.productID&&(f.productID=this.productID);this.pageId&&(f.pageId=this.pageId);this.JSC$7722_clearExperimentIds&&((u=this.JSC$7722_clearExperimentIds)?(f.experimentIds||(f.experimentIds=new L2F),R=f.experimentIds,u=u.serialize(),_.FH(R,4,u)):f.experimentIds&&_.OL(f.experimentIds,4));this.JSC$7722_sendBeaconApiEnabled&&(f.JSC$7704_sendBeaconApiEnabled=f.isSendBeaconSupported);ezE(f.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(f);return f};var JyX=function(f,R,u,O,c,h,l){f=f===void 0?-1:f;R=R===void 0?"":R;u=u===void 0?"":u;O=O===void 0?!1:O;c=c===void 0?"":c;_.d9.call(this);this.logSource=f;this.componentId=R;h?R=h:(f=new _.KR(f,"0"),f.componentId=R,_.qG(this,f),u!==""&&(f.destinationUrl=u),O&&(f.serviceWorkerScopeEnabled=!0),c&&l15(f,c),l&&Zc7(f,l),R=f.build());this.JSC$7726_transport=R};
_.y(JyX,_.d9);JyX.prototype.flush=function(f){f=f||[];if(f.length){for(var R=new F2G,u=[],O=0;O<f.length;O++){var c=f[O],h=Qwt(c);u.push(h);c.clear()}Wo(R,1,u);this.JSC$7726_transport.dispatch(R);this.JSC$7726_transport.flush()}};var Yht=function(f){this.cellValue=f};var kI=function(f,R,u){this.JSC$7731_metricName=f;this.cellType=R;this.fields=u||[];this.cellMap=new Map},maY=function(f){return f.fields.map(function(R){return R.fieldType})},wtI=function(f){return f.fields.map(function(R){return R.fieldName})};
_.X=kI.prototype;_.X.addCell=function(f){var R=_.yK.apply(1,arguments),u=this.getCells(R);u?u.push(new Yht(f)):this.JSC$7731_setCell(f,R)};
_.X.JSC$7731_setCell=function(f){var R=this.JSC$7731_getKey(_.yK.apply(1,arguments));this.cellMap.set(R,[new Yht(f)])};
_.X.getCells=function(){var f=this.JSC$7731_getKey(_.yK.apply(0,arguments));return this.cellMap.has(f)?this.cellMap.get(f):void 0};
_.X.getCell=function(){var f=this.getCells(_.yK.apply(0,arguments));return f&&f.length?f[0]:void 0};
_.X.clear=function(){this.cellMap.clear()};
_.X.JSC$7731_getKey=function(){var f=_.yK.apply(0,arguments);return f?f.join(","):"key"};var vmf=function(f,R){kI.call(this,f,3,R)};
_.y(vmf,kI);vmf.prototype.JSC$7734_incrementCounterBy=function(f){var R=_.yK.apply(1,arguments),u=0,O=this.getCell(R);O&&(u=O.cellValue);this.JSC$7731_setCell(u+f,R)};var imH=function(f,R){kI.call(this,f,2,R)};
_.y(imH,kI);imH.prototype.record=function(f){this.addCell(f,_.yK.apply(1,arguments))};_.Kd=function(f){this.id=f};
_.Kd.prototype.toString=function(){return this.id};_.qZ=function(f,R){this.type=f instanceof _.Kd?String(f):f;this.currentTarget=this.target=R;this.defaultPrevented=this.propagationStopped_=!1};
_.qZ.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.qZ.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Ao=function(f,R){_.qZ.call(this,f?f.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;f&&this.init(f,R)};
_.f6(_.Ao,_.qZ);
_.Ao.prototype.init=function(f,R){var u=this.type=f.type,O=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;this.target=f.target||f.srcElement;this.currentTarget=R;R=f.relatedTarget;R||(u=="mouseover"?R=f.fromElement:u=="mouseout"&&(R=f.toElement));this.relatedTarget=R;O?(this.clientX=O.clientX!==void 0?O.clientX:O.pageX,this.clientY=O.clientY!==void 0?O.clientY:O.pageY,this.screenX=O.screenX||0,this.screenY=O.screenY||0):(this.offsetX=_.XA||f.offsetX!==void 0?f.offsetX:f.layerX,
this.offsetY=_.XA||f.offsetY!==void 0?f.offsetY:f.layerY,this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0);this.button=f.button;this.keyCode=f.keyCode||0;this.key=f.key||"";this.charCode=f.charCode||(u=="keypress"?f.keyCode:0);this.ctrlKey=f.ctrlKey;this.altKey=f.altKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.pointerId=f.pointerId||0;this.pointerType=f.pointerType;this.state=f.state;
this.timeStamp=f.timeStamp;this.event_=f;f.defaultPrevented&&_.Ao.superClass_.preventDefault.call(this)};
_.Ao.prototype.stopPropagation=function(){_.Ao.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Ao.prototype.preventDefault=function(){_.Ao.superClass_.preventDefault.call(this);var f=this.event_;f.preventDefault?f.preventDefault():f.returnValue=!1};var r9l="closure_listenable_"+(Math.random()*1E6|0),af=function(f){return!(!f||!f[r9l])};var fpf=0;var Rei=function(f,R,u,O,c){this.listener=f;this.proxy=null;this.src=R;this.type=u;this.capture=!!O;this.handler=c;this.key=++fpf;this.removed=this.callOnce=!1},uqC=function(f){f.removed=!0;
f.listener=null;f.proxy=null;f.src=null;f.handler=null};l3.prototype.add=function(f,R,u,O,c){var h=f.toString();f=this.listeners[h];f||(f=this.listeners[h]=[],this.typeCount_++);var l=OEH(f,R,O,c);l>-1?(R=f[l],u||(R.callOnce=!1)):(R=new Rei(R,this.src,h,!!O,c),R.callOnce=u,f.push(R));return R};
l3.prototype.remove=function(f,R,u,O){f=f.toString();if(!(f in this.listeners))return!1;var c=this.listeners[f];R=OEH(c,R,u,O);return R>-1?(uqC(c[R]),_.nh(c,R),c.length==0&&(delete this.listeners[f],this.typeCount_--),!0):!1};
var cTC=function(f,R){var u=R.type;if(!(u in f.listeners))return!1;var O=_.v0(f.listeners[u],R);O&&(uqC(R),f.listeners[u].length==0&&(delete f.listeners[u],f.typeCount_--));return O};
l3.prototype.removeAll=function(f){f=f&&f.toString();var R=0,u;for(u in this.listeners)if(!f||u==f){for(var O=this.listeners[u],c=0;c<O.length;c++)++R,uqC(O[c]);delete this.listeners[u];this.typeCount_--}return R};
l3.prototype.getListener=function(f,R,u,O){f=this.listeners[f.toString()];var c=-1;f&&(c=OEH(f,R,u,O));return c>-1?f[c]:null};
l3.prototype.hasListener=function(f,R){var u=f!==void 0,O=u?f.toString():"",c=R!==void 0;return _.dq.some(this.listeners,function(h){for(var l=0;l<h.length;++l)if(!(u&&h[l].type!=O||c&&h[l].capture!=R))return!0;return!1})};
var OEH=function(f,R,u,O){for(var c=0;c<f.length;++c){var h=f[c];if(!h.removed&&h.listener==R&&h.capture==!!u&&h.handler==O)return c}return-1};var Xrk,hek,ZEk,kzf,Kvf,W7,Ex,apf,qvk,ATG,Fz,Fvf,lpC;Xrk="closure_lm_"+(Math.random()*1E6|0);hek={};ZEk=0;_.y0=function(f,R,u,O,c){if(O&&O.once)return W7(f,R,u,O,c);if(Array.isArray(R)){for(var h=0;h<R.length;h++)_.y0(f,R[h],u,O,c);return null}u=lpC(u);return af(f)?f.listen(R,u,_.OE(O)?!!O.capture:!!O,c):kzf(f,R,u,!1,O,c)};
kzf=function(f,R,u,O,c,h){if(!R)throw Error("za");var l=_.OE(c)?!!c.capture:!!c,K=Fz(f);K||(f[Xrk]=K=new l3(f));u=K.add(R,u,O,l,h);if(u.proxy)return u;O=Kvf();u.proxy=O;O.src=f;O.listener=u;if(f.addEventListener)_.tO0||(c=l),c===void 0&&(c=!1),f.addEventListener(R.toString(),O,c);else if(f.attachEvent)f.attachEvent(qvk(R.toString()),O);else if(f.addListener&&f.removeListener)f.addListener(O);else throw Error("Aa");ZEk++;return u};
Kvf=function(){var f=ATG,R=function(u){return f.call(R.src,R.listener,u)};
return R};
W7=function(f,R,u,O,c){if(Array.isArray(R)){for(var h=0;h<R.length;h++)W7(f,R[h],u,O,c);return null}u=lpC(u);return af(f)?f.listenOnce(R,u,_.OE(O)?!!O.capture:!!O,c):kzf(f,R,u,!0,O,c)};
_.w4=function(f,R,u,O,c){if(Array.isArray(R))for(var h=0;h<R.length;h++)_.w4(f,R[h],u,O,c);else O=_.OE(O)?!!O.capture:!!O,u=lpC(u),af(f)?f.unlisten(R,u,O,c):f&&(f=Fz(f))&&(R=f.getListener(R,u,O,c))&&Ex(R)};
Ex=function(f){if(typeof f==="number"||!f||f.removed)return!1;var R=f.src;if(af(R))return cTC(R.eventTargetListeners_,f);var u=f.type,O=f.proxy;R.removeEventListener?R.removeEventListener(u,O,f.capture):R.detachEvent?R.detachEvent(qvk(u),O):R.addListener&&R.removeListener&&R.removeListener(O);ZEk--;(u=Fz(R))?(cTC(u,f),u.typeCount_==0&&(u.src=null,R[Xrk]=null)):uqC(f);return!0};
apf=function(f,R,u,O,c){u=lpC(u);O=!!O;return af(f)?f.getListener(R,u,O,c):f?(f=Fz(f))?f.getListener(R,u,O,c):null:null};
qvk=function(f){return f in hek?hek[f]:hek[f]="on"+f};
ATG=function(f,R){if(f.removed)f=!0;else{R=new _.Ao(R,this);var u=f.listener,O=f.handler||f.src;f.callOnce&&Ex(f);f=u.call(O,R)}return f};
Fz=function(f){f=f[Xrk];return f instanceof l3?f:null};
Fvf="__closure_events_fn_"+(Math.random()*1E9>>>0);lpC=function(f){if(typeof f==="function")return f;f[Fvf]||(f[Fvf]=function(R){return f.handleEvent(R)});
return f[Fvf]};_.mq=function(){_.d9.call(this);this.eventTargetListeners_=new l3(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.f6(_.mq,_.d9);_.mq.prototype[r9l]=!0;_.X=_.mq.prototype;_.X.setParentEventTarget=function(f){this.parentEventTarget_=f};
_.X.addEventListener=function(f,R,u,O){_.y0(this,f,R,u,O)};
_.X.removeEventListener=function(f,R,u,O){_.w4(this,f,R,u,O)};
_.X.dispatchEvent=function(f){var R,u=this.parentEventTarget_;if(u)for(R=[];u;u=u.parentEventTarget_)R.push(u);u=this.actualEventTarget_;var O=f.type||f;if(typeof f==="string")f=new _.qZ(f,u);else if(f instanceof _.qZ)f.target=f.target||u;else{var c=f;f=new _.qZ(O,u);_.dq.extend(f,c)}c=!0;var h;if(R)for(h=R.length-1;!f.propagationStopped_&&h>=0;h--){var l=f.currentTarget=R[h];c=wrl(l,O,!0,f)&&c}f.propagationStopped_||(l=f.currentTarget=u,c=wrl(l,O,!0,f)&&c,f.propagationStopped_||(c=wrl(l,O,!1,f)&&
c));if(R)for(h=0;!f.propagationStopped_&&h<R.length;h++)l=f.currentTarget=R[h],c=wrl(l,O,!1,f)&&c;return c};
_.X.disposeInternal=function(){_.mq.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.X.listen=function(f,R,u,O){return this.eventTargetListeners_.add(String(f),R,!1,u,O)};
_.X.listenOnce=function(f,R,u,O){return this.eventTargetListeners_.add(String(f),R,!0,u,O)};
_.X.unlisten=function(f,R,u,O){return this.eventTargetListeners_.remove(String(f),R,u,O)};
_.X.removeAllListeners=function(f){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(f):0};
var wrl=function(f,R,u,O){R=f.eventTargetListeners_.listeners[String(R)];if(!R)return!0;R=R.concat();for(var c=!0,h=0;h<R.length;++h){var l=R[h];if(l&&!l.removed&&l.capture==u){var K=l.listener,q=l.handler||l.src;l.callOnce&&cTC(f.eventTargetListeners_,l);c=K.call(q,O)!==!1&&c}}return c&&!O.defaultPrevented};
_.mq.prototype.getListener=function(f,R,u,O){return this.eventTargetListeners_.getListener(String(f),R,u,O)};
_.mq.prototype.hasListener=function(f,R){return this.eventTargetListeners_.hasListener(f!==void 0?String(f):void 0,R)};var Qc=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(f){return f&&AsyncContext.Snapshot.wrap(f)}:function(f){return f};var meY=function(f,R){this.create_=f;this.reset_=R;this.occupants_=0;this.JSC$7766_head_=null};
meY.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var f=this.JSC$7766_head_;this.JSC$7766_head_=f.next;f.next=null}else f=this.create_();return f};
meY.prototype.put=function(f){this.reset_(f);this.occupants_<100&&(this.occupants_++,f.next=this.JSC$7766_head_,this.JSC$7766_head_=f)};var Q8f=function(){this.workTail_=this.workHead_=null};
Q8f.prototype.add=function(f,R){var u=g$P.get();u.set(f,R);this.workTail_?this.workTail_.next=u:this.workHead_=u;this.workTail_=u};
Q8f.prototype.remove=function(){var f=null;this.workHead_&&(f=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),f.next=null);return f};
var g$P=new meY(function(){return new WvH},function(f){return f.reset()}),WvH=function(){this.next=this.scope=this.fn=null};
WvH.prototype.set=function(f,R){this.fn=f;this.scope=R;this.next=null};
WvH.prototype.reset=function(){this.next=this.scope=this.fn=null};var E_Y,sjP,$GD,t5t;sjP=!1;$GD=new Q8f;_.Wb=function(f,R){E_Y||t5t();sjP||(E_Y(),sjP=!0);$GD.add(f,R)};
t5t=function(){var f=Promise.resolve(void 0);E_Y=function(){f.then(n$l)}};var CrI=function(f){f.prototype.$goog_Thenable=!0},yTC=function(f){if(!f)return!1;
try{return!!f.$goog_Thenable}catch(R){return!1}};var def,Nli,LvF,prY,j8C,DeI,HEA,Prf,Blk,eek,QHn;_.ah=function(f,R){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(f!=_.Fe)try{var u=this;f.call(R,function(O){u.resolve_(2,O)},function(O){u.resolve_(3,O)})}catch(O){this.resolve_(3,O)}};
def=function(){this.next=this.context=this.JSC$7777_onRejected=this.JSC$7777_onFulfilled=this.child=null;this.always=!1};
def.prototype.reset=function(){this.context=this.JSC$7777_onRejected=this.JSC$7777_onFulfilled=this.child=null;this.always=!1};
Nli=new meY(function(){return new def},function(f){f.reset()});
LvF=function(f,R,u){var O=Nli.get();O.JSC$7777_onFulfilled=f;O.JSC$7777_onRejected=R;O.context=u;return O};
_.ll=function(f){if(f instanceof _.ah)return f;var R=new _.ah(_.Fe);R.resolve_(2,f);return R};
_.NO=function(f){return new _.ah(function(R,u){u(f)})};
prY=function(f,R,u){bEk(f,R,u,null)||_.Wb(_.mx(R,f))};
_.EF=function(f){return new _.ah(function(R,u){var O=f.length,c=[];if(O)for(var h=function(F,w){O--;c[F]=w;O==0&&R(c)},l=function(F){u(F)},K,q=0;q<f.length;q++)K=f[q],prY(K,_.mx(h,q),l);
else R(c)})};
j8C=function(f){return new _.ah(function(R){var u=f.length,O=[];if(u)for(var c=function(K,q,F){u--;O[K]=q?{fulfilled:!0,value:F}:{fulfilled:!1,reason:F};u==0&&R(O)},h,l=0;l<f.length;l++)h=f[l],prY(h,_.mx(c,l,!0),_.mx(c,l,!1));
else R(O)})};
DeI=function(f){return new _.ah(function(R,u){var O=f.length,c=[];if(O)for(var h=function(F){R(F)},l=function(F,w){O--;
c[F]=w;O==0&&u(c)},K,q=0;q<f.length;q++)K=f[q],prY(K,h,_.mx(l,q));
else R(void 0)})};
_.BM=function(){var f,R,u=new _.ah(function(O,c){f=O;R=c});
return new JTf(u,f,R)};
_.ah.prototype.then=function(f,R,u){return zef(this,Qc(typeof f==="function"?f:null),Qc(typeof R==="function"?R:null),u)};
CrI(_.ah);HEA=function(f,R,u,O){Tlf(f,LvF(R||_.Fe,u||null,O))};
_.to=function(f,R){R=Qc(R);R=LvF(R,R);R.always=!0;Tlf(f,R);return f};
_.ah.prototype.finally=function(f){var R=this;f=Qc(f);return new Promise(function(u,O){HEA(R,function(c){f();u(c)},function(c){f();
O(c)})})};
_.ah.prototype.thenCatch=function(f,R){return zef(this,null,Qc(f),R)};
_.ah.prototype.catch=_.ah.prototype.thenCatch;_.ah.prototype.cancel=function(f){if(this.state_==0){var R=new _.BB(f);_.Wb(function(){Ipk(this,R)},this)}};
var Ipk=function(f,R){if(f.state_==0)if(f.parent_){var u=f.parent_;if(u.callbackEntries_){for(var O=0,c=null,h=null,l=u.callbackEntries_;l&&(l.always||(O++,l.child==f&&(c=l),!(c&&O>1)));l=l.next)c||(h=l);c&&(u.state_==0&&O==1?Ipk(u,R):(h?(O=h,O.next==u.callbackEntriesTail_&&(u.callbackEntriesTail_=O),O.next=O.next.next):M5t(u),Prf(u,c,3,R)))}f.parent_=null}else f.resolve_(3,R)},Tlf=function(f,R){f.callbackEntries_||f.state_!=2&&f.state_!=3||UeA(f);
f.callbackEntriesTail_?f.callbackEntriesTail_.next=R:f.callbackEntries_=R;f.callbackEntriesTail_=R},zef=function(f,R,u,O){var c=LvF(null,null,null);
c.child=new _.ah(function(h,l){c.JSC$7777_onFulfilled=R?function(K){try{var q=R.call(O,K);h(q)}catch(F){l(F)}}:h;
c.JSC$7777_onRejected=u?function(K){try{var q=u.call(O,K);q===void 0&&K instanceof _.BB?l(K):h(q)}catch(F){l(F)}}:l});
c.child.parent_=f;Tlf(f,c);return c.child};
_.ah.prototype.unblockAndFulfill_=function(f){this.state_=0;this.resolve_(2,f)};
_.ah.prototype.unblockAndReject_=function(f){this.state_=0;this.resolve_(3,f)};
_.ah.prototype.resolve_=function(f,R){this.state_==0&&(this===R&&(f=3,R=new TypeError("Ba")),this.state_=1,bEk(R,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=R,this.state_=f,this.parent_=null,UeA(this),f!=3||R instanceof _.BB||eek(this,R)))};
var bEk=function(f,R,u,O){if(f instanceof _.ah)return HEA(f,R,u,O),!0;if(yTC(f))return f.then(R,u,O),!0;if(_.OE(f))try{var c=f.then;if(typeof c==="function")return Gzi(f,c,R,u,O),!0}catch(h){return u.call(O,h),!0}return!1},Gzi=function(f,R,u,O,c){var h=!1,l=function(q){h||(h=!0,u.call(c,q))},K=function(q){h||(h=!0,O.call(c,q))};
try{R.call(f,l,K)}catch(q){K(q)}},UeA=function(f){f.executing_||(f.executing_=!0,_.Wb(f.executeCallbacks_,f))},M5t=function(f){var R=null;
f.callbackEntries_&&(R=f.callbackEntries_,f.callbackEntries_=R.next,R.next=null);f.callbackEntries_||(f.callbackEntriesTail_=null);return R};
_.ah.prototype.executeCallbacks_=function(){for(var f;f=M5t(this);)Prf(this,f,this.state_,this.result_);this.executing_=!1};
Prf=function(f,R,u,O){if(u==3&&R.JSC$7777_onRejected&&!R.always)for(;f&&f.hadUnhandledRejection_;f=f.parent_)f.hadUnhandledRejection_=!1;if(R.child)R.child.parent_=null,Blk(R,u,O);else try{R.always?R.JSC$7777_onFulfilled.call(R.context):Blk(R,u,O)}catch(c){QHn.call(null,c)}Nli.put(R)};
Blk=function(f,R,u){R==2?f.JSC$7777_onFulfilled.call(f.context,u):f.JSC$7777_onRejected&&f.JSC$7777_onRejected.call(f.context,u)};
eek=function(f,R){f.hadUnhandledRejection_=!0;_.Wb(function(){f.hadUnhandledRejection_&&QHn.call(null,R)})};
QHn=c0;_.BB=function(f){_.R7.call(this,f)};
_.f6(_.BB,_.R7);_.BB.prototype.name="cancel";var JTf=function(f,R,u){this.promise=f;this.resolve=R;this.reject=u};var Cd;_.R$=function(f,R){_.mq.call(this);this.JSC$7789_interval_=f||1;this.timerObject_=R||_.Oe;this.boundTick_=(0,_.NG)(this.tick_,this);this.last_=_.rI()};
_.f6(_.R$,_.mq);_.X=_.R$.prototype;_.X.enabled=!1;_.X.JSC$7791_timer_=null;_.X.setInterval=function(f){this.JSC$7789_interval_=f;this.JSC$7791_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7791_timer_&&this.stop()};
_.X.tick_=function(){if(this.enabled){var f=_.rI()-this.last_;f>0&&f<this.JSC$7789_interval_*.8?this.JSC$7791_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7789_interval_-f):(this.JSC$7791_timer_&&(this.timerObject_.clearTimeout(this.JSC$7791_timer_),this.JSC$7791_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.X.start=function(){this.enabled=!0;this.JSC$7791_timer_||(this.JSC$7791_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7789_interval_),this.last_=_.rI())};
_.X.stop=function(){this.enabled=!1;this.JSC$7791_timer_&&(this.timerObject_.clearTimeout(this.JSC$7791_timer_),this.JSC$7791_timer_=null)};
_.X.disposeInternal=function(){_.R$.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Cd=function(f,R,u){if(typeof f==="function")u&&(f=(0,_.NG)(f,u));else if(f&&typeof f.handleEvent=="function")f=(0,_.NG)(f.handleEvent,f);else throw Error("Ca");return Number(R)>2147483647?-1:_.Oe.setTimeout(f,R||0)};
_.o_i=function(f){var R=null;return(new _.ah(function(u,O){R=Cd(function(){u(void 0)},f);
R==-1&&O(Error("Da"))})).thenCatch(function(u){_.Oe.clearTimeout(R);
throw u;})};var AK=function(f){_.d9.call(this);this.streamzLogger=f;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7795_flushTimer=new _.R$(this.flushInterval);this.JSC$7795_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.qG(this,this.JSC$7795_flushTimer)};
_.y(AK,_.d9);AK.prototype.sendIsolatedPayload=function(f){this.shouldSendIsolatedPayload=f;this.invocationLimit=1};
var xeH=function(f){f.JSC$7795_flushTimer.enabled||f.JSC$7795_flushTimer.start();f.invocationCount++;f.invocationCount>=f.invocationLimit&&f.snapshotAndFlush()};
AK.prototype.snapshotAndFlush=function(){var f=this.metricMap.values();f=[].concat(_.yq(f)).filter(function(R){return R.cellMap.size});
f.length&&this.streamzLogger.flush(f,this.shouldSendIsolatedPayload);SvG(f);this.invocationCount=0;this.JSC$7795_flushTimer.enabled&&this.JSC$7795_flushTimer.stop()};
AK.prototype.addNewCounter=function(f){var R=_.yK.apply(1,arguments);this.metricMap.has(f)||this.metricMap.set(f,new vmf(f,R))};
AK.prototype.addNewEventMetric=function(f){var R=_.yK.apply(1,arguments);this.metricMap.has(f)||this.metricMap.set(f,new imH(f,R))};
var $eY=function(f,R){return f.disabledMetrics.has(R)?void 0:f.metricMap.get(R)};
AK.prototype.JSC$7795_incrementCounter=function(f){this.JSC$7795_incrementCounterBy(f,1,_.yK.apply(1,arguments))};
AK.prototype.JSC$7795_incrementCounterBy=function(f,R){var u=_.yK.apply(2,arguments),O=$eY(this,f);O&&O instanceof vmf&&(O.JSC$7734_incrementCounterBy(R,u),xeH(this))};
AK.prototype.record=function(f,R){var u=_.yK.apply(2,arguments),O=$eY(this,f);O&&O instanceof imH&&(O.record(R,u),xeH(this))};
var SvG=function(f){for(var R=0;R<f.length;R++)f[R].clear()};_.yc=function(f,R,u){u=u===void 0?{}:u;R=Error.call(this,R);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=f;this.metadata=u;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(_.yc,Error);_.yc.prototype.toString=function(){var f="RpcError("+(VrP(this.code)||String(this.code))+")";this.message&&(f+=": "+this.message);return f};_.g_i=_.Oe.JSON.parse;_.d4=_.Oe.JSON.stringify;_.bE=_.Oe.JSON.parse;_.s8H=function(f){switch(f){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 n_A=function(f){switch(f){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var V5i,YvC=function(){};
_.f6(YvC,_.Y85);YvC.prototype.createInstance=function(){return new XMLHttpRequest};
V5i=new YvC;_.NZ=function(f){_.mq.call(this);this.headers=new Map;this.JSC$7804_xmlHttpFactory_=f||null;this.JSC$7804_active_=!1;this.JSC$7804_xhr_=null;this.JSC$7804_lastUri_="";this.JSC$7804_lastErrorCode_=0;this.JSC$7804_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7804_timeoutId_=null;this.responseType_="";this.JSC$7804_withCredentials_=!1};
_.f6(_.NZ,_.mq);var v_k=/^https?$/i,iEk=["POST","PUT"],rTA=[],fqe=function(f,R,u,O,c,h,l){var K=new _.NZ;rTA.push(K);R&&K.listen("complete",R);K.listenOnce("ready",K.cleanupSend_);h&&(K.timeoutInterval_=Math.max(0,h));l&&(K.JSC$7804_withCredentials_=l);K.send(f,u,O,c)};
_.NZ.prototype.cleanupSend_=function(){this.dispose();_.v0(rTA,this)};
_.NZ.prototype.send=function(f,R,u,O){if(this.JSC$7804_xhr_)throw Error("Ea`"+this.JSC$7804_lastUri_+"`"+f);R=R?R.toUpperCase():"GET";this.JSC$7804_lastUri_=f;this.JSC$7804_lastError_="";this.JSC$7804_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7804_active_=!0;this.JSC$7804_xhr_=this.createXhr();this.JSC$7804_xhr_.onreadystatechange=Qc((0,_.NG)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7804_xhr_.open(R,String(f),!0),this.inOpen_=!1}catch(l){f0F(this,l);return}f=u||"";u=new Map(this.headers);
if(O)if(Object.getPrototypeOf(O)===Object.prototype)for(var c in O)u.set(c,O[c]);else if(typeof O.keys==="function"&&typeof O.get==="function"){c=_.Z(O.keys());for(var h=c.next();!h.done;h=c.next())h=h.value,u.set(h,O.get(h))}else throw Error("Fa`"+String(O));O=Array.from(u.keys()).find(function(l){return"content-type"==l.toLowerCase()});
c=_.Oe.FormData&&f instanceof _.Oe.FormData;!_.g7(iEk,R)||O||c||u.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");R=_.Z(u);for(O=R.next();!O.done;O=R.next())u=_.Z(O.value),O=u.next().value,u=u.next().value,this.JSC$7804_xhr_.setRequestHeader(O,u);this.responseType_&&(this.JSC$7804_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7804_xhr_&&this.JSC$7804_xhr_.withCredentials!==this.JSC$7804_withCredentials_&&(this.JSC$7804_xhr_.withCredentials=this.JSC$7804_withCredentials_);
try{this.JSC$7804_timeoutId_&&(clearTimeout(this.JSC$7804_timeoutId_),this.JSC$7804_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7804_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7804_xhr_.send(f),this.inSend_=!1}catch(l){f0F(this,l)}};
_.NZ.prototype.createXhr=function(){return this.JSC$7804_xmlHttpFactory_?this.JSC$7804_xmlHttpFactory_.createInstance():V5i.createInstance()};
_.NZ.prototype.timeout_=function(){typeof TT7!="undefined"&&this.JSC$7804_xhr_&&(this.JSC$7804_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7804_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var f0F=function(f,R){f.JSC$7804_active_=!1;f.JSC$7804_xhr_&&(f.inAbort_=!0,f.JSC$7804_xhr_.abort(),f.inAbort_=!1);f.JSC$7804_lastError_=R;f.JSC$7804_lastErrorCode_=5;R9C(f);u3f(f)},R9C=function(f){f.errorDispatched_||(f.errorDispatched_=!0,f.dispatchEvent("complete"),f.dispatchEvent("error"))};
_.NZ.prototype.abort=function(f){this.JSC$7804_xhr_&&this.JSC$7804_active_&&(this.JSC$7804_active_=!1,this.inAbort_=!0,this.JSC$7804_xhr_.abort(),this.inAbort_=!1,this.JSC$7804_lastErrorCode_=f||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),u3f(this))};
_.NZ.prototype.disposeInternal=function(){this.JSC$7804_xhr_&&(this.JSC$7804_active_&&(this.JSC$7804_active_=!1,this.inAbort_=!0,this.JSC$7804_xhr_.abort(),this.inAbort_=!1),u3f(this,!0));_.NZ.superClass_.disposeInternal.call(this)};
_.NZ.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Ojf(this);else this.onReadyStateChangeEntryPoint_()};
_.NZ.prototype.onReadyStateChangeEntryPoint_=function(){Ojf(this)};
var Ojf=function(f){if(f.JSC$7804_active_&&typeof TT7!="undefined")if(f.inSend_&&_.Ld(f)==4)setTimeout(f.onReadyStateChange_.bind(f),0);else if(f.dispatchEvent("readystatechange"),f.isComplete()){f.JSC$7804_active_=!1;try{if(f.isSuccess())f.dispatchEvent("complete"),f.dispatchEvent("success");else{f.JSC$7804_lastErrorCode_=6;try{var R=_.Ld(f)>2?f.JSC$7804_xhr_.statusText:""}catch(u){R=""}f.JSC$7804_lastError_=R+" ["+f.getStatus()+"]";R9C(f)}}finally{u3f(f)}}},u3f=function(f,R){if(f.JSC$7804_xhr_){f.JSC$7804_timeoutId_&&
(clearTimeout(f.JSC$7804_timeoutId_),f.JSC$7804_timeoutId_=null);
var u=f.JSC$7804_xhr_;f.JSC$7804_xhr_=null;R||f.dispatchEvent("ready");try{u.onreadystatechange=null}catch(O){}}};
_.NZ.prototype.isActive=function(){return!!this.JSC$7804_xhr_};
_.NZ.prototype.isComplete=function(){return _.Ld(this)==4};
_.NZ.prototype.isSuccess=function(){var f=this.getStatus(),R;if(!(R=n_A(f))){if(f=f===0)f=akH(String(this.JSC$7804_lastUri_)),f=!v_k.test(f);R=f}return R};
_.Ld=function(f){return f.JSC$7804_xhr_?f.JSC$7804_xhr_.readyState:0};
_.X=_.NZ.prototype;_.X.getStatus=function(){try{return _.Ld(this)>2?this.JSC$7804_xhr_.status:-1}catch(f){return-1}};
_.X.getResponseText=function(){try{return this.JSC$7804_xhr_?this.JSC$7804_xhr_.responseText:""}catch(f){return""}};
_.X.getResponse=function(){try{if(!this.JSC$7804_xhr_)return null;if("response"in this.JSC$7804_xhr_)return this.JSC$7804_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7804_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7804_xhr_)return this.JSC$7804_xhr_.mozResponseArrayBuffer}return null}catch(f){return null}};
_.X.getAllResponseHeaders=function(){return this.JSC$7804_xhr_&&_.Ld(this)>=2?this.JSC$7804_xhr_.getAllResponseHeaders()||"":""};
_.X.getLastError=function(){return typeof this.JSC$7804_lastError_==="string"?this.JSC$7804_lastError_:String(this.JSC$7804_lastError_)};var ko7=function(){};
ko7.prototype.send=function(f,R,u){R=R===void 0?function(){}:R;
u=u===void 0?function(){}:u;
fqe(f.url,function(O){O=O.target;O.isSuccess()?R(O.getResponseText()):u(O.getStatus())},f.requestType,f.body,f.requestHeaders,f.timeoutMillis,f.withCredentials)};
ko7.prototype.getTransmissionType=function(){return 1};var cmI=function(f,R){this.logger=f;this.event=R;this.startTime=aj()};
cmI.prototype.done=function(){this.logger.mf(this.event,aj()-this.startTime)};
var bV=function(){fd.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.y(bV,fd);var pd=function(f,R,u){var O=aj();R=R();f.mf(u,aj()-O);return R},TPt=function(){bV.apply(this,arguments)};
_.y(TPt,bV);_.X=TPt.prototype;_.X.jBy=function(){};
_.X.yB=function(){};
_.X.mf=function(){};
_.X.logError=function(){};
_.X.mR=function(){};
_.X.iGp=function(){};
_.X.sYW=function(){};
_.X.avO=function(){};
_.X.s1F=function(){};
var Xzi=function(f){bV.call(this);var R=this;this.logger=f;this.TEST_ONLY={e6B:function(){return R.logger},
getExperimentIds:function(){return R.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void R.logger.dispose()})};
_.y(Xzi,bV);_.X=Xzi.prototype;_.X.update=function(f){this.logger.dispose();this.logger=f};
_.X.yB=function(f){this.logger.yB(f)};
_.X.mf=function(f,R){this.logger.mf(f,R)};
_.X.logError=function(f){this.logger.logError(f)};
_.X.mR=function(){this.logger.mR()};
_.X.iGp=function(f){this.logger.iGp(f)};
_.X.sYW=function(f){this.logger.sYW(f)};
_.X.avO=function(f){this.logger.avO(f)};
_.X.s1F=function(f){this.logger.s1F(f)};
_.X.jBy=function(f){this.logger.jBy(f)};
var h9C=function(f,R){_.d9.call(this);var u=this;this.callback=f;this.c3f=R;this.qp3=-R;this.addOnDisposeCallback(function(){return void clearTimeout(u.timer)})};
_.y(h9C,_.d9);var Zji=function(f){if(f.timer===void 0){var R=Math.max(0,f.qp3+f.c3f-aj());f.timer=setTimeout(function(){try{f.callback()}finally{f.qp3=aj(),f.timer=void 0}},R)}},l0i=function(f,R){bV.call(this);
this.metrics=f;this.fB=R};
_.y(l0i,bV);_.X=l0i.prototype;_.X.jBy=function(f){this.metrics.nH4.record(f,this.fB)};
_.X.yB=function(f){this.metrics.eventCount.increment(f,this.fB)};
_.X.mf=function(f,R){this.metrics.n2r.record(R,f,this.fB)};
_.X.logError=function(f){this.metrics.errorCount.increment(f,this.fB)};
_.X.iGp=function(f){this.metrics.qVI.increment(f,this.fB)};
_.X.sYW=function(f){this.metrics.o8s.increment(f,this.fB)};
_.X.avO=function(f){this.metrics.gGD.increment(f,this.fB)};
var F$=function(f,R){R=R===void 0?[]:R;var u={fB:f.fB||"_",cji:f.cji||[],lvv:f.lvv|0,destinationUrl:f.destinationUrl,tjW:f.tjW||function(){},
z4:f.z4||function(h,l){return zm7(h,l,u.tjW,u.destinationUrl)}},O=u.z4("49",u.cji.concat(R));
l0i.call(this,XQB(O),u.fB);var c=this;this.TEST_ONLY={getExperimentIds:function(){return c.options.cji.concat(c.nZL).sort(function(h,l){return h-l})}};
this.options=u;this.service=O;this.sM7=!f.z4;this.flushDebouncer=new h9C(function(){return void c.service.snapshotAndFlush()},u.lvv);
this.addOnDisposeCallback(function(){c.flushDebouncer.dispose();c.sM7&&c.service.dispose()});
(this.nZL=R.slice()).sort(_.Zk)};
_.y(F$,l0i);F$.prototype.s1F=function(f){var R=this;f=f.slice();f.sort(_.Zk);_.Af(f,this.nZL)||(this.flushDebouncer.dispose(),this.sM7&&this.service.dispose(),this.service=this.options.z4("49",this.options.cji.concat(f)),this.flushDebouncer=new h9C(function(){return void R.service.snapshotAndFlush()},this.options.lvv),this.metrics=XQB(this.service),this.nZL=f)};
F$.prototype.mR=function(){Zji(this.flushDebouncer)};var XZB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(XZB,_.e5);_.h1B=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(_.h1B,_.e5);var n9=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,0,n9.messageId)};
_.y(n9,_.e5);var kdY=_.uqh(n9);n9.messageId="bfkj";var INP=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(INP,_.e5);var KoY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(KoY,_.e5);var qOt=_.Ra(KoY);_.lj=function(){var f=this;this.promise=new Promise(function(R,u){f.resolve=R;f.reject=u})};_.jD=function(f){_.d9.call(this);var R=this;this.opW=Math.floor(Math.random()*200);this.nGF=new KoY;if("challenge"in f&&kdY(f.challenge)){var u=_.bH(f.challenge,4,void 0,xC);var O=_.bH(f.challenge,5,void 0,xC);_.bH(f.challenge,7,void 0,xC)&&(this.nGF=qOt(_.bH(f.challenge,7,void 0,xC)))}else u=f.program,O=f.globalName;this.addOnDisposeCallback(function(){var d,p,J;return _.k(function(M){if(M.nextAddress==1)return _.A(M,R.q6i,2);d=M.yieldResult;p=d.sgR;(J=p)==null||J();_.KG(M)})});
this.logger=Hch(f.yd||{},this.nGF,f.iL4);_.qG(this,this.logger);var c=new _.lj;this.q6i=c.promise;this.logger.yB("t");var h=this.logger.share(),l=new cmI(h,"t"),K=function(d,p,J,M){if(!R.logger.isDisposed()){var P="k";p?P="h":J&&(P="u");P!=="k"?M!==0&&(R.logger.yB(P),R.logger.mf(P,d)):R.opW<=0?(R.logger.yB(P),R.logger.mf(P,d),R.opW=Math.floor(Math.random()*200)):R.opW--}},q=function(d,p,J,M){Promise.resolve().then(function(){l.done();
h.mR();h.dispose();c.resolve({szi:d,sgR:p,ois:J,yrf:M})})};
if(!_.Oe[O])throw this.logger.logError(25),Error("Ga");if(!_.Oe[O].a)throw this.logger.logError(26),Error("Ha");try{var F=_.Oe[O].a;O=[];for(var w=[],m=MrX(this.nGF),W=0;W<m.length;W++)O.push(m[W]),w.push(1);var C=P3D(this.nGF);for(m=0;m<C.length;m++)O.push(C[m]),w.push(2);this.jo7=_.Z(F(u,q,!0,f.f91,K,[O,w],_.bH(this.nGF,5))).next().value;this.pXF=c.promise.then(function(){})}catch(d){throw this.logger.logError(28),d;
}};
_.y(_.jD,_.d9);_.jD.prototype.snapshot=function(f){if(this.isDisposed())throw Error("Ia");this.logger.yB("n");var R=this.logger.share();return this.q6i.then(function(u){var O=u.szi;return new Promise(function(c){var h=new cmI(R,"n");O(function(l){h.done();R.jBy(l.length);R.mR();R.dispose();c(l)},[f.d5,
f.uwX,f.xSI,f.kAR])})})};
_.AmC=function(f,R){if(f.isDisposed())throw Error("Ia");f.logger.yB("n");var u=pd(f.logger,function(){return f.jo7([R.d5,R.uwX,R.xSI,R.kAR])},"n");
f.logger.jBy(u.length);f.logger.mR();return u};
_.jD.prototype.xuF=function(f){this.q6i.then(function(R){var u;(u=R.ois)==null||u(f)})};
_.jD.prototype.pFy=function(f,R){return this.q6i.then(function(u){var O;return(O=u.yrf)==null?void 0:O(f,R,!1)})};
_.jD.prototype.imF=function(){return this.logger.share()};var a0E=function(){this.zWC={};this.yK3=null},Fof=function(){a0E.instance||(a0E.instance=new a0E);
return a0E.instance},muk=function(f,R){return wzH(f,_.Ry(R,XZB,1,xC),_.Ry(R,_.h1B,2,xC),_.bH(R,3,void 0,xC))},wzH=function(f,R,u,O){if(!R&&!u)return Promise.resolve();
if(!O)return UKB(R,u);var c;(c=f.zWC)[O]||(c[O]=new Promise(function(h,l){UKB(R,u).then(function(){f.yK3=O;h()},function(K){delete f.zWC[O];
l(K)})}));
return f.zWC[O]};var Qaf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Qaf,_.e5);var Woi=function(f,R){return _.Vo(f,1,R)},E3C=function(f,R){return _.Vo(f,2,R)};var Dq=function(f){_.d9.call(this);var R=this;this.options=f;this.oFO=new _.lj;this.pXF=this.oFO.promise;this.ojv=new _.lj;this.doR=1;this.m5p=new _.lj;this.pbX=[];this.x70=f.x70||function(){};
this.logger=new Xzi(Hch(f.yd||{}));tyC(this,f.pL,f.s1P,f.xbS,f.pLS,Object.assign({},Chk,f.pk3||{}));this.addOnDisposeCallback(function(){return void ymt(R)})};
_.y(Dq,_.d9);Dq.prototype.snapshot=function(f){var R=this;return _.k(function(u){switch(u.nextAddress){case 1:if(R.isDisposed())throw Error("Ia");if(R.n6||R.mNR){u.jumpTo(2);break}return _.A(u,R.ojv.promise,2);case 2:if(!R.n6){u.jumpTo(4);break}return _.A(u,R.n6.snapshot(f),5);case 5:return u.return(u.yieldResult);case 4:throw R.mNR;}})};
var duf=function(f){var R;return _.k(function(u){if(f.isDisposed())throw Error("Ia");(R=f.e5)!=null&&(R.endTimeMs=0,R.resolver(1));return _.A(u,f.m5p.promise,0)})},ymt=function(f){f.mNR=Error("Ka");
f.ojv.resolve();UG7(f.oFO.promise);f.oFO.reject(Error("Ka"));f.logger.dispose();Promise.all(f.pbX).then(function(){var u;return _.k(function(O){(u=f.n6)==null||u.dispose();f.n6=void 0;_.KG(O)})});
f.pbX=[];var R;(R=f.e5)!=null&&(R.endTimeMs=0,R.resolver(1));UG7(f.m5p.promise);f.m5p.reject(Error("Ka"))};
Dq.prototype.xuF=function(f){var R,u;(R=this.n6)==null||(u=R.xuF)==null||u.call(R,f)};
Dq.prototype.pFy=function(f,R){var u,O,c;return(c=(u=this.n6)==null?void 0:(O=u.pFy)==null?void 0:O.call(u,f,R))!=null?c:Promise.resolve()};
var NQf=function(f,R){var u=f.x70;f.x70=function(){u();R()}},Lol=function(f,R){f.isDisposed()||(f.n6=R,f.logger.update(R.imF()),f.ojv.resolve(),f.oFO.resolve(void 0),f.x70())};
Dq.prototype.handleError=function(f){if(!this.isDisposed()){this.mNR=f;this.ojv.resolve();var R,u;(u=(R=this.options).kwr)==null||u.call(R,f)}};
var bjH=function(f,R){R&&(Promise.all(f.pbX).then(function(){return void R.dispose()}),f.pbX=[])},Jo=function(f,R){f.doR=R;
var u,O;(O=(u=f.options).dcW)==null||O.call(u,R)},pzi=function(f){f.isDisposed()||(f.m5p.resolve(),f.m5p=new _.lj)},tyC=function(f,R,u,O,c,h){O=O===void 0?Fof():O;
c=c===void 0?Promise.resolve(void 0):c;var l,K,q,F,w,m,W,C,d,p,J,M;_.k(function(P){switch(P.nextAddress){case 1:return _.A(P,0,3);case 3:K=null;if(!l){P.jumpTo(6);break}Jo(f,7);_.cl(P,7);return _.A(P,E8(l.snapshot({}),h.zI2,function(){return Promise.resolve("E:CTO")}),9);
case 9:K=P.yieldResult;_.Bf(P,6);break;case 7:_.ku(P),K="E:UCE";case 6:q=void 0,F=l?h.avX:h.iG9,w=new ZN(F,h.zR1,h.t6G,h.lvr),m=1;case 10:if(!(m<=h.maxAttempts)){P.jumpTo(12);break}if(m===1){P.jumpTo(13);break}Jo(f,0);f.e5=new jak(w.getValue(),h.kcf,h.aZs);return _.A(P,f.e5.promise,14);case 14:W=P.yieldResult,f.e5=void 0,W===1?(m=1,w.reset()):GXY(w);case 13:_.cl(P,15);C=void 0;if(u){C=u;P.jumpTo(17);break}Jo(f,5);d=O.yK3;return _.A(P,E8(Dui(R,d,K),h.zZ9,function(){return Promise.reject(Error("La"))}),
18);
case 18:C=P.yieldResult;case 17:return Jo(f,3),_.A(P,E8(muk(O,C),h.tTr,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return Jo(f,8),_.A(P,c,20);case 20:return p=new _.jD({challenge:C,yd:f.options.yd,f91:f.options.f91}),_.A(P,E8(p.pXF,h.oZY,function(){return Promise.reject(Error("Na"))}),21);
case 21:q=p;P.jumpTo(12);break;case 15:J=_.ku(P),f.handleError(J),pzi(f);case 11:m++;P.jumpTo(10);break;case 12:if(f.isDisposed()){P.jumpTo(5);break}q&&(u=void 0,bjH(f,l),l=q,Lol(f,q),pzi(f));Jo(f,2);f.e5=new jak(h.feR,h.kcf,h.aZs);return _.A(P,f.e5.promise,22);case 22:f.e5=void 0;if(f.isDisposed()){P.jumpTo(5);break}P.jumpTo(3);break;case 5:(M=l)==null||M.dispose(),_.KG(P)}})};
Dq.prototype.imF=function(){return this.logger.share()};
var Chk={feR:432E5,kcf:3E5,aZs:10,zI2:1E4,zZ9:3E4,tTr:3E4,oZY:6E4,iG9:1E3,avX:6E4,zR1:6E5,t6G:.25,lvr:2,maxAttempts:10},jak=function(f,R,u){var O=this;this.endTimeMs=Date.now()+f;this.promise=new Promise(function(h){O.resolver=h});
var c=function(){var h=O.endTimeMs-Date.now();h<=u?O.resolver(0):setTimeout(c,Math.min(h,R))};
c()};var Jmf,BPP=(Jmf=Math.imul)!=null?Jmf:function(f,R){return f*R|0},tK=[196,
200,224,18],z0=function(f,R,u){u=u===void 0?[]:u;this.maxItems=f;this.ky=R===void 0?0:R;this.uC=u},z9i=function(f){var R=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!R)return new z0(f);var u=R.split(",");if(u.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new z0(f);R=u.slice(1);R.length===1&&R[0]===""&&(R=[]);u=Number(u[0]);return isNaN(u)||u<0||u>R.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new z0(f)):new z0(f,u,R)};
z0.prototype.serialize=function(){return String(this.ky)+","+this.uC.join()};
z0.prototype.insert=function(f,R){var u=void 0;if(this.uC[this.ky]!==f){var O=this.uC.indexOf(f);O!==-1?(this.uC.splice(O,1),O<this.ky&&this.ky--,this.uC.splice(this.ky,0,f)):(u=this.uC[this.ky],this.uC[this.ky]=f)}this.ky=(this.ky+1)%this.maxItems;f=emP("iU5q-!O9@$",this.serialize());u&&f&&R(u);return f};
var TQF=function(f,R){this.logger=R;try{var u=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(O){u=!1}u&&(this.index=z9i(f))},Hjf=function(f,R,u,O,c){var h=f.index?pd(f.logger,function(){return $K5(f.index,xKD(R),u,O,c)},"W"):"u";
f.logger.avO(h)},I0Y=function(f,R,u){var O=_.Z(f.index?pd(f.logger,function(){return gn0(xKD(R),u)},"R"):["u"]),c=O.next().value;
O=O.next().value;f.logger.sYW(c);return O};var Myf={toString:function(f){var R=[],u=0;f-=-2147483648;R[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(f%52);for(f=Math.floor(f/52);f>0;)R[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(f%62),f=Math.floor(f/62);return R.join("")}};var e9C=function(f){f=PhA(f);for(var R=2654435769,u=2654435769,O=314159265,c=f.length,h=c,l=0,K=function(){R-=u;R-=O;R^=O>>>13;u-=O;u-=R;u^=R<<8;O-=R;O-=u;O^=u>>>13;R-=u;R-=O;R^=O>>>12;u-=O;u-=R;u^=R<<16;O-=R;O-=u;O^=u>>>5;R-=u;R-=O;R^=O>>>3;u-=O;u-=R;u^=R<<10;O-=R;O-=u;O^=u>>>15};h>=12;h-=12,l+=12)R+=Uui(f,l),u+=Uui(f,l+4),O+=Uui(f,l+8),K();
O+=c;switch(h){case 11:O+=f[l+10]<<24;case 10:O+=f[l+9]<<16;case 9:O+=f[l+8]<<8;case 8:u+=f[l+7]<<24;case 7:u+=f[l+6]<<16;case 6:u+=f[l+5]<<8;case 5:u+=f[l+4];case 4:R+=f[l+3]<<24;case 3:R+=f[l+2]<<16;case 2:R+=f[l+1]<<8;case 1:R+=f[l]}K();return Myf.toString(O)},PhA=function(f){for(var R=[],u=0;u<f.length;u++)R.push(f.charCodeAt(u));
return R},Uui=function(f,R){return f[R]+(f[R+1]<<8)+(f[R+2]<<16)+(f[R+3]<<24)};var GdG,T0=function(f){_.d9.call(this);this.logger=f;this.psR=new _.lj;this[GdG]=this.dispose};
_.y(T0,_.d9);var BQE=function(f,R){var u=setTimeout(function(){f.psR.resolve()},R);
f.addOnDisposeCallback(function(){return void clearTimeout(u)})};
T0.prototype.vN=function(f,R){var u=this.g9(f);R==null||R(u);return pd(this.logger,function(){return _.fE(u,2)},this.lDi)};
var o3I=function(f,R,u,O){return pd(f.logger,function(){return u?f.vN(R,O):f.g9(R,O)},f.hH)};
GdG=Symbol.dispose;var xut=function(f,R,u,O){T0.call(this,f);this.mq1=R;this.vP9=u;this.hH="m";this.lDi="x";this.y3P=0;BQE(this,O)};
_.y(xut,T0);xut.prototype.g9=function(f,R){var u=this;this.logger.yB(this.hH);++this.y3P>=this.vP9&&this.psR.resolve();var O=f();f=pd(this.logger,function(){return u.mq1(O)},"C");
if(f===void 0)throw new iw(17,"YNJ:Undefined");if(!(f instanceof Uint8Array))throw new iw(18,"ODM:Invalid");R==null||R(f);return f};
var SOC=function(f,R,u){T0.call(this,f);this.lmI=R;this.hH="f";this.lDi="z";BQE(this,u)};
_.y(SOC,T0);SOC.prototype.g9=function(){return this.lmI};
var $ui=function(f,R,u){T0.call(this,f);this.mS2=R;this.hH="w";this.lDi="z";BQE(this,u)};
_.y($ui,T0);$ui.prototype.g9=function(){var f=this;return pd(this.logger,function(){return _.Fi(f.mS2)},"d")};
$ui.prototype.vN=function(){return this.mS2};
var g3Y=function(f,R){T0.call(this,f);this.error=R;this.hH="e";this.lDi="y"};
_.y(g3Y,T0);var saf=function(f,R){var u=(R(f.error.message)+":"+R(f.error.stack)).substring(0,2048);R=u.length+1;u=ss7(u);var O=new Uint8Array(4+u.length);O.set([42,R&127|128,R>>7,f.error.code]);O.set(u,4);return O};
g3Y.prototype.g9=function(){if(this.sf7)return this.sf7;this.sf7=saf(this,function(f){return"_"+e9C(f)});
return saf(this,function(f){return f})};
var n3C=function(f,R,u){T0.call(this,f);this.tBP=R;this.clientState=u;this.hH="S";this.lDi="q"};
_.y(n3C,T0);n3C.prototype.g9=function(){var f=Math.floor(Date.now()/1E3),R=[Math.random()*255,Math.random()*255],u=R.concat([this.tBP&255,this.clientState],[f>>24&255,f>>16&255,f>>8&255,f&255]);f=new Uint8Array(2+u.length);f[0]=34;f[1]=u.length;f.set(u,2);u=f.subarray(2);for(var O=R=R.length;O<u.length;++O)u[O]^=u[O%R];this.logger.iGp(this.clientState);return f};var VyY={pEG:3E4,cKm:2E4},Hb=function(f){_.d9.call(this);var R=this;this.ydq=new _.lj;this.jm3=0;this.un=void 0;this.state=2;this.us=f.us;this.pL=f.pL;this.pk3=Object.assign({},VyY,f.pk3||{});this.logger=f.us.imF();var u;this.onError=(u=f.onError)!=null?u:function(){};
this.t8L=f.t8L||!1;if(YOf(f)){var O=this.us;this.owz=function(){return duf(O).catch(function(l){l=R.reportError(new iw(R.yK?20:32,"TRG:Disposed",l));R.un=l;var K;(K=R.yK)==null||K.dispose();R.yK=void 0;R.ydq.reject(l)})};
NQf(O,function(){return void v3f(R)});
O.doR===2&&v3f(this)}else this.owz=f.iom,v3f(this);var c=this.logger.share();c.yB("o");var h=new cmI(c,"o");this.ydq.promise.then(function(){h.done();c.mR();c.dispose()},function(){return void c.dispose()});
this.addOnDisposeCallback(function(){R.yK?(R.yK.dispose(),R.yK=void 0):R.un?R.logger.mR():(R.un=R.reportError(new iw(32,"TNP:Disposed")),R.logger.mR(),R.ydq.reject(R.un))});
_.qG(this,this.logger)};
_.y(Hb,_.d9);Hb.prototype.cHp=function(){return this.ydq.promise};
var ijk=function(f,R){if(!(R instanceof iw))if(R instanceof _.yc){var u=Error(R.toString());u.stack=R.stack;R=new iw(11,"EBH:Error",u)}else R=new iw(12,"BSO:Unknown",R);return f.reportError(R)},v3f=function(f){var R,u,O,c,h,l,K,q,F,w,m,W,C,d,p;
return _.k(function(J){switch(J.nextAddress){case 1:R=void 0;f.jm3++;u=new _.lj;f.us instanceof Dq&&f.us.pbX.push(u.promise);if(!f.t8L){J.jumpTo(2);break}O=new _.lj;setTimeout(function(){return void O.resolve()});
return _.A(J,O.promise,2);case 2:return c=f.logger.share(),_.cl(J,4,5),f.state=5,h={},l=[],_.A(J,E8(f.us.snapshot({d5:h,xSI:l}),f.pk3.cKm,function(){return Promise.reject(new iw(15,"MDA:Timeout"))}),7);
case 7:K=J.yieldResult;if(f.isDisposed())throw new iw(f.yK?20:32,"MDA:Disposed");q=l[0];f.state=6;return _.A(J,E8(rmF(f.pL,K),f.pk3.pEG,function(){return Promise.reject(new iw(10,"BWB:Timeout"))}),8);
case 8:F=J.yieldResult;if(f.isDisposed())throw new iw(f.yK?20:32,"BWB:Disposed");f.state=7;R=pd(c,function(){var P=fuC(f,F,u,q);P.psR.promise.then(function(){return void f.owz()});
return P},"i");
case 5:_.hu(J);c.dispose();_.lC(J,6);break;case 4:w=_.ku(J);(m=R)==null||m.dispose();if(!f.un){W=ijk(f,w);u.resolve();var M;if(M=f.us instanceof Dq&&f.jm3<2)a:if(w instanceof iw)M=w.code!==32&&w.code!==20&&w.code!==10;else{if(w instanceof _.yc)switch(w.code){case 2:case 13:case 14:case 4:break;default:M=!1;break a}M=!0}if(M)return C=(1+Math.random()*.25)*(f.yK?6E4:1E3),d=setTimeout(function(){return void f.owz()},C),f.addOnDisposeCallback(function(){return void clearTimeout(d)}),J.return();
f.un=W}c.logError(f.yK?13:14);f.ydq.reject(f.un);return J.return();case 6:f.state=8,f.jm3=0,(p=f.yK)==null||p.dispose(),f.yK=R,f.ydq.resolve(),_.KG(J)}})},fuC=function(f,R,u,O){var c=V9n(R,2)*1E3;
if(c<=0)throw new iw(31,"TTM:Invalid");if(_.bH(R,4))return new $ui(f.logger,_.bH(R,4),c);if(!V9n(R,3))return new SOC(f.logger,z2l(_.wZ(R,1)),c);if(!O)throw new iw(4,"PMD:Undefined");O=O(z2l(_.wZ(R,1)));if(!(O instanceof Function))throw new iw(16,"APF:Failed");f.rR1=Math.floor((Date.now()+c)/1E3);f=new xut(f.logger,O,V9n(R,3),c);f.addOnDisposeCallback(function(){return void u.resolve()});
return f};
Hb.prototype.g9=function(f){return Rwt(this,Object.assign({},f),!1)};
Hb.prototype.vN=function(f){return Rwt(this,Object.assign({},f),!0)};
Hb.prototype.tkC=function(f){if(f>150)return!1;try{return this.cache=new TQF(f,this.logger),!0}catch(R){return this.reportError(new iw(22,"GBJ:init",R)),!1}};
Hb.prototype.reportError=function(f){this.logger.logError(f.code);this.onError(f);return f};
var uVH=function(f,R){R=R instanceof iw?R:new iw(5,"TVD:error",R);return f.reportError(R)},Rwt=function(f,R,u){try{if(f.isDisposed())throw new iw(21,"BNT:disposed");
if(!f.yK&&f.un)throw f.un;var O,c;return(c=(O=OGf(f,R,u))!=null?O:cuf(f,R,u))!=null?c:XlE(f,R,u)}catch(h){if(!R.jkL)throw uVH(f,h);return hwE(f,u,h)}},OGf=function(f,R,u){var O;
return(O=f.yK)==null?void 0:o3I(O,function(){return ZGG(f,R)},u,function(c){var h;
if(f.yK instanceof xut&&((h=R.rK)==null?0:h.xCs))try{var l;(l=f.cache)==null||Hjf(l,ZGG(f,R),c,R.rK.ph0,f.rR1-120)}catch(K){f.reportError(new iw(24,"ELX:write",K))}})},cuf=function(f,R,u){var O;
if((O=R.rK)!=null&&O.k7R)try{var c,h=(c=f.cache)==null?void 0:I0Y(c,ZGG(f,R),R.rK.ph0);return h?u?pd(f.logger,function(){return _.fE(h,2)},"a"):h:void 0}catch(l){f.reportError(new iw(23,"RXO:read",l))}},XlE=function(f,R,u){var O={stack:[],
error:void 0,hasError:!1};try{if(!R.reH)throw new iw(29,"SDF:notready");return o3I(c8P(O,new n3C(f.logger,0,f.state)),function(){return ZGG(f,R)},u)}catch(c){O.error=c,O.hasError=!0}finally{lF2(O)}},hwE=function(f,R,u){var O={stack:[],
error:void 0,hasError:!1};try{var c=uVH(f,u);return o3I(c8P(O,new g3Y(f.logger,c)),function(){return[]},R)}catch(h){O.error=h,O.hasError=!0}finally{lF2(O)}},ZGG=function(f,R){return R.tg3?R.tg3:R.d5?pd(f.logger,function(){return R.tg3=ss7(R.d5)},"c"):[]},YOf=function(f){return sE(function(R){if(!O$(R))return!1;
for(var u=_.Z(Object.entries(f)),O=u.next();!O.done;O=u.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;if(!(O in R)){if(c.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!c(R[O]))return!1}return!0})}({us:function(f){return sE(function(R){return R instanceof f})}(Dq)},"");var luk=function(){var f=_.cL();this.JSC$7919_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",u3("cookie_enabled"),u3("cookie_3p_enabled"),_.ci("browser"))};
luk.prototype.increment=function(f,R,u){this.JSC$7919_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",f,R,u)};
var aZB=function(){var f=_.cL();this.JSC$7943_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",O8("tick"),u3("from_st_cookie"))};
aZB.prototype.increment=function(f,R){this.JSC$7943_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",f,R)};
var k_f=function(){var f=_.cL();this.JSC$7949_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ci("status"))};
k_f.prototype.increment=function(f){this.JSC$7949_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",f)};
var K1Y=function(){var f=_.cL();this.JSC$7952_streamzService=f;f.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ci("stage"),u3("is_using_ytd_player"),u3("has_expandable_tiles"))};
K1Y.prototype.increment=function(f,R,u){this.JSC$7952_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",f,R,u)};
var qkH=function(){var f=_.cL();this.JSC$7955_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/response_signature",_.ci("check_status"))};
qkH.prototype.increment=function(f){this.JSC$7955_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/web/response_signature",f)};
var Aul=function(){var f=_.cL();this.JSC$7958_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ci("sig"),O8("de"))};
Aul.prototype.increment=function(f,R){this.JSC$7958_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/web/e_sig_log",f,R)};
var auY=function(){var f=_.cL();this.JSC$7961_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ci("sig"),O8("de"))};
auY.prototype.increment=function(f,R){this.JSC$7961_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/web/e_sig_en",f,R)};
_.F1E=function(){var f=_.cL();this.JSC$7964_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ci("action"))};
_.F1E.prototype.increment=function(f){this.JSC$7964_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/web/enforcement_intent",f)};var If=window;var wlF=(new Date).getTime();var mcH=function(f){this.servicePromise_=f;f.then((0,_.NG)(function(){},this),function(){},this)},Q5H=function(f,R,u){f.servicePromise_.then(function(O){var c=O[R];
if(!c)throw Error("Oa`"+R);return c.apply(O,u)})},tWE=function(f,R,u){for(var O=Array(arguments.length-2),c=2;c<arguments.length;c++)O[c-2]=arguments[c];
c=W1f(f,R).then(function(h){return h.apply(null,O)},function(h){h=Error("Pa`"+R+"`"+f,{cause:h});
delete EuC[R];return _.NO(h)});
return new mcH(c)},EuC={},W1f=function(f,R){var u=EuC[R];
if(u)return u;u=(u=_.Ph(R))?_.ll(u):(new _.ah(function(O,c){var h=(new E2(document)).createElement("SCRIPT");h.async=!0;_.UO(h,_.lh(E5Y(f)));h.onload=h.onreadystatechange=function(){h.readyState&&h.readyState!="loaded"&&h.readyState!="complete"||O()};
h.onerror=function(l){c(Error("Qa`"+R+"`"+f,{cause:l}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(h)})).then(function(){var O=_.Ph(R);
if(!O)throw Error("Ra`"+R+"`"+f);return O});
return EuC[R]=u};var CCF={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},dcC=function(){var f=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=nnD(function(){return _.k(function(R){if(R.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?R.return(Promise.resolve()):_.A(R,yuf(f),2);f.rsaForList.length>
0&&document.addEventListener("click",f.requestAccessForHelpPanel);_.KG(R)})});
this.requestAccessForHelpPanel=function(){if(!(f.rsaForPromises.length>0)){for(var R=_.Z(f.rsaForList),u=R.next();!u.done;u=R.next()){u=u.value;try{f.rsaForPromises.push(document.requestStorageAccessFor(u))}catch(O){}}Promise.all(f.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){f.reset()})}}};
dcC.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var yuf=function(f){var R,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:R=_.Z(Object.values(CCF)),u=R.next();case 2:if(u.done){h.jumpTo(0);break}O=u.value;_.cl(h,5);return _.A(h,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:O}),7);case 7:c=h.yieldResult;c.state!=="granted"&&f.rsaForList.push(O);_.Bf(h,3);break;case 5:_.ku(h);h.jumpTo(0);break;case 3:u=R.next(),h.jumpTo(2)}})};(new dcC).initialize();var Nnf=function(f){this.JSC$7978_loader_=f};
Nnf.prototype.startHelp=function(f){Q5H(this.JSC$7978_loader_,"startHelp",arguments)};
Nnf.prototype.JSC$7980_loadChatSupport=function(f){Q5H(this.JSC$7978_loader_,"loadChatSupport",arguments)};
var bGk=function(f,R){R=R||{};f=tWE(L1I,"help.service.Lazy.create",f,{apiKey:R.apiKey||R.apiKey,asxUiUri:R.asxUiUri||R.asxUiUri,environment:R.environment||R.environment,flow:R.flow||R.flow,frdProductData:R.frdProductData||R.frdProductData,frdProductDataSerializedJspb:R.frdProductDataSerializedJspb||R.frdProductDataSerializedJspb,helpCenterPath:R.helpCenterPath||R.helpCenterPath,locale:R.locale||R.locale||"en-US".replace(/-/g,"_"),nonce:R.nonce||R.nonce,productData:R.productData||R.productData,receiverUri:R.receiverUri||
R.receiverUri,renderApiUri:R.renderApiUri||R.renderApiUri,theme:R.theme||R.theme,window:R.window||R.window});return new Nnf(f)},L1I=new P5(Ern,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var plt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(plt,_.e5);var j5t=_.Ra(plt);_.Dck=new function(f,R,u,O){this.configType=f;this.flagName=u;this.defaultValue=O;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 zwF=function(){this.retriever=_.vh().resolve(Juf)};y1(Node);y1(Element);var Tnt=y1(HTMLElement);y1(SVGElement);var HGC,Iuk,UF,MWE;HGC=function(f){return typeof f.className=="string"?f.className:f.getAttribute&&f.getAttribute("class")||""};
Iuk=function(f){return f.classList?f.classList:HGC(f).match(/\S+/g)||[]};
_.MZ=function(f,R){typeof f.className=="string"?f.className=R:f.setAttribute&&f.setAttribute("class",R)};
_.Pb=function(f,R){return f.classList?f.classList.contains(R):_.g7(Iuk(f),R)};
_.sx=function(f,R){if(f.classList)f.classList.add(R);else if(!_.Pb(f,R)){var u=HGC(f);_.MZ(f,u+(u.length>0?" "+R:R))}};
UF=function(f,R){if(f.classList)Array.prototype.forEach.call(R,function(c){_.sx(f,c)});
else{var u={};Array.prototype.forEach.call(Iuk(f),function(c){u[c]=!0});
Array.prototype.forEach.call(R,function(c){u[c]=!0});
R="";for(var O in u)R+=R.length>0?" "+O:O;_.MZ(f,R)}};
_.$r=function(f,R){f.classList?f.classList.remove(R):_.Pb(f,R)&&_.MZ(f,Array.prototype.filter.call(Iuk(f),function(u){return u!=R}).join(" "))};
MWE=function(f,R){f.classList?Array.prototype.forEach.call(R,function(u){_.$r(f,u)}):_.MZ(f,Array.prototype.filter.call(Iuk(f),function(u){return!_.g7(R,u)}).join(" "))};var PCC=function(f){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=f.document},G_H=function(f,R){Ucf(f);
var u=document.createElement("div"),O;(O=R.parentNode)==null||O.insertBefore(u,R);u.tabIndex=0;u.id="fc-focus-trap-pre-div";u=document.createElement("div");var c;(c=R.parentNode)==null||c.insertBefore(u,R.nextSibling);u.tabIndex=0;u.id="fc-focus-trap-post-div";var h=ewC(f,R),l=ewC(f,R,!0);h&&l&&(f.focusChangeHandler=function(){var K=f.document.activeElement;if(K)if(_.er(R,K))f.previouslyFocusedElement=K;else if(K===f.document.activeElement)switch(f.previouslyFocusedElement){case h:l.focus();f.previouslyFocusedElement=
l;break;default:h.focus(),f.previouslyFocusedElement=h}},f.document.addEventListener("focus",f.focusChangeHandler,!0),f.document.addEventListener("focusin",f.focusChangeHandler))},Ucf=function(f){f.focusChangeHandler&&(document.removeEventListener("focus",f.focusChangeHandler,!0),document.removeEventListener("focusin",f.focusChangeHandler),f.focusChangeHandler=null);
var R;(R=document.getElementById("fc-focus-trap-pre-div"))==null||R.remove();var u;(u=document.getElementById("fc-focus-trap-post-div"))==null||u.remove()},BnC=function(f,R,u,O,c){u=u===void 0?!0:u;
var h;c=(h=c===void 0?null:c)!=null?h:ewC(f,R,O===void 0?!1:O);c!==null&&(c.focus(),u&&G_H(f,R))};
PCC.prototype.disableButton=function(f,R){R=R===void 0?null:R;f.disabled=!0;R&&_.sx(f,R)};
var ewC=function(f,R,u){u=u===void 0?!1:u;if(UL5(R)&&!u)return R;var O=u?[].slice.call(R.children,0).reverse():R.children;O=_.Z(O);for(var c=O.next();!c.done;c=O.next())if(c=c.value,Tnt(c)&&(c=ewC(f,c,u)))return c;return UL5(R)&&u?R:null};var ouC=function(f){this.originalBodyOverflow="";this.JSC$8004_domHelper=a0(f)};_.f6(_.LR,_.d9);_.X=_.LR.prototype;_.X.JSC$8007_id_=0;_.X.disposeInternal=function(){_.LR.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8005_listener_;delete this.handler_};
_.X.start=function(f){this.stop();this.JSC$8007_id_=Cd(this.callback_,f!==void 0?f:this.JSC$8005_interval_)};
_.X.stop=function(){this.isActive()&&_.Oe.clearTimeout(this.JSC$8007_id_);this.JSC$8007_id_=0};
_.X.fire=function(){this.stop();this.JSC$8007_doAction_()};
_.X.isActive=function(){return this.JSC$8007_id_!=0};
_.X.JSC$8007_doAction_=function(){this.JSC$8007_id_=0;this.JSC$8005_listener_&&this.JSC$8005_listener_.call(this.handler_)};_.uE=function(f){_.d9.call(this);this.handler_=f;this.JSC$8008_keys_={}};
_.f6(_.uE,_.d9);var xcI=[];_.uE.prototype.listen=function(f,R,u,O){Array.isArray(R)||(R&&(xcI[0]=R.toString()),R=xcI);for(var c=0;c<R.length;c++){var h=_.y0(f,R[c],u||this.handleEvent,O||!1,this.handler_||this);if(!h)break;this.JSC$8008_keys_[h.key]=h}return this};
_.uE.prototype.listenOnce=function(f,R,u,O){return SkC(this,f,R,u,O)};
var SkC=function(f,R,u,O,c,h){if(Array.isArray(u))for(var l=0;l<u.length;l++)SkC(f,R,u[l],O,c,h);else{R=W7(R,u,O||f.handleEvent,c,h||f.handler_||f);if(!R)return f;f.JSC$8008_keys_[R.key]=R}return f};
_.uE.prototype.unlisten=function(f,R,u,O,c){if(Array.isArray(R))for(var h=0;h<R.length;h++)this.unlisten(f,R[h],u,O,c);else if(f=apf(f,R,u||this.handleEvent,_.OE(O)?!!O.capture:!!O,c||this.handler_||this))Ex(f),delete this.JSC$8008_keys_[f.key];return this};
_.uE.prototype.removeAll=function(){_.dq.forEach(this.JSC$8008_keys_,function(f,R){this.JSC$8008_keys_.hasOwnProperty(R)&&Ex(f)},this);
this.JSC$8008_keys_={}};
_.uE.prototype.disposeInternal=function(){_.uE.superClass_.disposeInternal.call(this);this.removeAll()};
_.uE.prototype.handleEvent=function(){throw Error("Sa");};var eD=function(){_.d9.call(this);this.services_={}};
_.f6(eD,_.d9);_.X=eD.prototype;_.X.logger=null;_.X.connect=function(f){f&&f()};
_.X.isConnected=function(){return!0};
_.X.registerService=function(f,R,u){this.services_[f]={callback:R,objectPayload:!!u}};
_.X.getService=function(f,R){var u=this.services_[f];return u?u:this.defaultService_?{callback:_.mx(this.defaultService_,f),objectPayload:_.OE(R)}:null};
var $cf=function(f,R){if(R&&typeof f==="string")try{return JSON.parse(f)}catch(u){return null}else if(!R&&typeof f!=="string")return(0,_.d4)(f);return f};
eD.prototype.disposeInternal=function(){eD.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 G0=function(f,R){this.sequence_=[];this.onCancelFunction_=f;this.defaultScope_=R||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};
G0.prototype.cancel=function(f){if(this.fired_)this.result_ instanceof G0&&this.result_.cancel();else{if(this.parent_){var R=this.parent_;delete this.parent_;f?R.cancel(f):(R.branches_--,R.branches_<=0&&R.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Bb(this))}};
G0.prototype.continue_=function(f,R){this.blocked_=!1;guk(this,f,R)};
var guk=function(f,R,u){f.fired_=!0;f.result_=u;f.hadError_=!R;s5Y(f)},VWf=function(f){if(f.fired_){if(!f.silentlyCanceled_)throw new nuk(f);
f.silentlyCanceled_=!1}};
G0.prototype.callback=function(f){VWf(this);guk(this,!0,f)};
G0.prototype.errback=function(f){VWf(this);guk(this,!1,f)};
var Ykl=function(f,R,u){of(f,R,null,u)};
G0.prototype.finally=function(f){var R=this;return new Promise(function(u,O){of(R,function(c){f();u(c)},function(c){f();
O(c)})})};
var of=function(f,R,u,O){var c=f.fired_;c||(R===u?R=u=Qc(R):(R=Qc(R),u=Qc(u)));f.sequence_.push([R,u,O]);c&&s5Y(f)};
G0.prototype.then=function(f,R,u){var O,c,h=new _.ah(function(l,K){c=l;O=K});
of(this,c,function(l){l instanceof Bb?h.cancel():O(l);return vuF},this);
return h.then(f,R,u)};
CrI(G0);var iGA=function(f,R){R instanceof G0?Ykl(f,(0,_.NG)(R.branch,R)):Ykl(f,function(){return R})};
G0.prototype.branch=function(f){var R=new G0;of(this,R.callback,R.errback,R);f&&(R.parent_=this,this.branches_++);return R};
G0.prototype.isError=function(f){return f instanceof Error};
var rut=function(f){return nB(f.sequence_,function(R){return typeof R[1]==="function"})},vuF={},s5Y=function(f){if(f.unhandledErrorId_&&f.fired_&&rut(f)){var R=f.unhandledErrorId_,u=fwA[R];
u&&(_.Oe.clearTimeout(u.JSC$8025_id_),delete fwA[R]);f.unhandledErrorId_=0}f.parent_&&(f.parent_.branches_--,delete f.parent_);R=f.result_;for(var O=u=!1;f.sequence_.length&&!f.blocked_;){var c=f.sequence_.shift(),h=c[0],l=c[1];c=c[2];if(h=f.hadError_?l:h)try{var K=h.call(c||f.defaultScope_,R);K===vuF&&(K=void 0);K!==void 0&&(f.hadError_=f.hadError_&&(K==R||f.isError(K)),f.result_=R=K);if(yTC(R)||typeof _.Oe.Promise==="function"&&R instanceof _.Oe.Promise)O=!0,f.blocked_=!0}catch(q){R=q,f.hadError_=
!0,rut(f)||(u=!0)}}f.result_=R;O&&(K=(0,_.NG)(f.continue_,f,!0),O=(0,_.NG)(f.continue_,f,!1),R instanceof G0?(of(R,K,O),R.blocking_=!0):R.then(K,O));u&&(R=new Rfk(R),fwA[R.JSC$8025_id_]=R,f.unhandledErrorId_=R.JSC$8025_id_)},nuk=function(){_.R7.call(this)};
_.f6(nuk,_.R7);nuk.prototype.message="Deferred has already fired";nuk.prototype.name="AlreadyCalledError";var Bb=function(){_.R7.call(this)};
_.f6(Bb,_.R7);Bb.prototype.message="Deferred was canceled";Bb.prototype.name="CanceledError";var Rfk=function(f){this.JSC$8025_id_=_.Oe.setTimeout((0,_.NG)(this.throwError,this),0);this.JSC$8025_error_=f};
Rfk.prototype.throwError=function(){delete fwA[this.JSC$8025_id_];throw this.JSC$8025_error_;};
var fwA={};var uHF={1:"NativeMessagingTransport"},O8F=["pu","lru","pru","lpu","ppu"],XKC=function(){for(var f=10,R=c5G,u=R.length,O="";f-- >0;)O+=R.charAt(Math.floor(Math.random()*u));return O},c5G="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var xI=function(f){_.d9.call(this);this.JSC$8028_domHelper_=f||a0()};
_.f6(xI,_.d9);xI.prototype.transportType=0;xI.prototype.getWindow=function(){return this.JSC$8028_domHelper_.getWindow()};
xI.prototype.getName=function(){return uHF[String(this.transportType)]||""};var SD=function(f,R,u,O,c){xI.call(this,u);this.JSC$8031_channel_=f;this.protocolVersion_=c||2;this.peerHostname_=R||"*";this.JSC$8031_eventHandler_=new _.uE(this);this.maybeAttemptToConnectTimer_=new _.R$(100,this.getWindow());this.oneSidedHandshake_=!!O;this.setupAckReceived_=new G0;this.setupAckSent_=new G0;this.JSC$8031_connected_=new G0;this.endpointId_=XKC();this.peerEndpointId_=null;this.oneSidedHandshake_?hfk(this.JSC$8031_channel_)==1?iGA(this.JSC$8031_connected_,this.setupAckReceived_):
iGA(this.JSC$8031_connected_,this.setupAckSent_):(iGA(this.JSC$8031_connected_,this.setupAckReceived_),this.protocolVersion_==2&&iGA(this.JSC$8031_connected_,this.setupAckSent_));Ykl(this.JSC$8031_connected_,this.notifyConnected_,this);this.JSC$8031_connected_.callback(!0);this.JSC$8031_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.f6(SD,xI);SD.prototype.peerProtocolVersion_=null;SD.prototype.initialized_=!1;SD.prototype.transportType=1;var Z8k={};SD.prototype.sendTimerId_=0;
var KyH=function(f){var R=f.event_.data;if(typeof R!=="string")return!1;var u=R.indexOf("|"),O=R.indexOf(":");if(u==-1||O==-1)return!1;var c=R.substring(0,u);u=R.substring(u+1,O);R=R.substring(O+1);if(O=$I[c])return O.xpcDeliver(u,R,f.event_.origin),!0;O=lwG(R)[0];for(var h in $I){var l=$I[h];if(hfk(l)==1&&!l.isConnected()&&u=="tp"&&(O=="SETUP"||O=="SETUP_NTPV2")&&kxi(l,f.event_.origin))return delete $I[l.name],l.name=c,$I[c]=l,l.xpcDeliver(u,R),!0}return!1},qfl=function(f){f.protocolVersion_!=2||
f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=2||f.send("tp","SETUP_NTPV2,"+f.endpointId_);
f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=1||f.send("tp","SETUP")},A5f=function(f,R){if(f.protocolVersion_!=2||f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=2||R!=2){if(f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=1||R!=1)return;
f.send("tp","SETUP_ACK")}else f.send("tp","SETUP_ACK_NTPV2");f.setupAckSent_.fired_||f.setupAckSent_.callback(!0)},awl=function(f,R){R>f.peerProtocolVersion_&&(f.peerProtocolVersion_=R);
f.peerProtocolVersion_==1&&(f.setupAckSent_.fired_||f.oneSidedHandshake_||f.setupAckSent_.callback(!0),f.peerEndpointId_=null)};
_.X=SD.prototype;_.X.connect=function(){var f=this.getWindow(),R=_.cG(f),u=Z8k[R];typeof u!=="number"&&(u=0);u==0&&_.y0(f.postMessage?f:f.document,"message",KyH,!1,SD);Z8k[R]=u+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.X.maybeAttemptToConnect_=function(){var f=hfk(this.JSC$8031_channel_)==0;this.oneSidedHandshake_&&f||this.JSC$8031_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),qfl(this))};
_.X.send=function(f,R){var u=this.JSC$8031_channel_.peerWindowObject_;u&&(this.send=function(O,c){var h=this,l=this.JSC$8031_channel_.name;this.sendTimerId_=Cd(function(){h.sendTimerId_=0;try{var K=u.postMessage?u:u.document;K.postMessage&&K.postMessage(l+"|"+O+":"+c,h.peerHostname_)}catch(q){}},0)},this.send(f,R))};
_.X.notifyConnected_=function(){var f=this.JSC$8031_channel_,R=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;f.isConnected()||f.connectionDelay_&&f.connectionDelay_.isActive()||(f.state_=2,_.YD(f.connectionDelay_),R!==void 0?(f.connectionDelay_=new _.LR(f.connectCb_,R),f.connectionDelay_.start()):(f.connectionDelay_=null,f.connectCb_()))};
_.X.disposeInternal=function(){if(this.initialized_){var f=this.getWindow(),R=_.cG(f),u=Z8k[R];Z8k[R]=u-1;u==1&&_.w4(f.postMessage?f:f.document,"message",KyH,!1,SD)}this.sendTimerId_&&(_.Oe.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.YD(this.JSC$8031_eventHandler_);delete this.JSC$8031_eventHandler_;_.YD(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8031_connected_.cancel();delete this.JSC$8031_connected_;delete this.send;SD.superClass_.disposeInternal.call(this)};
var lwG=function(f){f=f.split(",");f[1]=f[1]||null;return f};_.g4=function(f){if(f.getValues&&typeof f.getValues=="function")return f.getValues();if(typeof Map!=="undefined"&&f instanceof Map||typeof Set!=="undefined"&&f instanceof Set)return Array.from(f.values());if(typeof f==="string")return f.split("");if(_.Rk(f)){for(var R=[],u=f.length,O=0;O<u;O++)R.push(f[O]);return R}return _.dq.getValues(f)};
_.Fyi=function(f){if(f.getKeys&&typeof f.getKeys=="function")return f.getKeys();if(!f.getValues||typeof f.getValues!="function"){if(typeof Map!=="undefined"&&f instanceof Map)return Array.from(f.keys());if(!(typeof Set!=="undefined"&&f instanceof Set)){if(_.Rk(f)||typeof f==="string"){var R=[];f=f.length;for(var u=0;u<f;u++)R.push(u);return R}return _.dq.getKeys(f)}}};
_.wKA=function(f,R,u){if(f.forEach&&typeof f.forEach=="function")f.forEach(R,u);else if(_.Rk(f)||typeof f==="string")Array.prototype.forEach.call(f,R,u);else for(var O=_.Fyi(f),c=_.g4(f),h=c.length,l=0;l<h;l++)R.call(u,c[l],O&&O[l],f)};var QDP,r4,Rn,y5C,mgi,WyA,Q0l,C_k,EDA;
_.gu=function(f,R){this.JSC$8036_domain_=this.userInfo_=this.scheme_="";this.JSC$8036_port_=null;this.fragment_=this.JSC$8036_path_="";this.JSC$8036_ignoreCase_=!1;var u;f instanceof _.gu?(this.JSC$8036_ignoreCase_=R!==void 0?R:f.JSC$8036_ignoreCase_,_.sF(this,f.scheme_),this.userInfo_=f.userInfo_,_.nd(this,f.JSC$8036_domain_),_.Vc(this,f.JSC$8036_port_),_.YI(this,f.getPath()),_.vb(this,f.JSC$8036_queryData_.clone()),_.iV(this,f.fragment_)):f&&(u=_.$8(String(f)))?(this.JSC$8036_ignoreCase_=!!R,_.sF(this,
u[1]||"",!0),this.userInfo_=r4(u[2]||""),_.nd(this,u[3]||"",!0),_.Vc(this,u[4]),_.YI(this,u[5]||"",!0),_.vb(this,u[6]||"",!0),_.iV(this,u[7]||"",!0)):(this.JSC$8036_ignoreCase_=!!R,this.JSC$8036_queryData_=new _.fW(null,this.JSC$8036_ignoreCase_))};
_.gu.prototype.toString=function(){var f=[],R=this.scheme_;R&&f.push(Rn(R,mgi,!0),":");var u=this.JSC$8036_domain_;if(u||R=="file")f.push("//"),(R=this.userInfo_)&&f.push(Rn(R,mgi,!0),"@"),f.push(_.e0(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.JSC$8036_port_,u!=null&&f.push(":",String(u));if(u=this.getPath())this.JSC$8036_domain_&&u.charAt(0)!="/"&&f.push("/"),f.push(Rn(u,u.charAt(0)=="/"?Q0l:WyA,!0));(u=this.JSC$8036_queryData_.toString())&&f.push("?",u);(u=this.fragment_)&&f.push("#",Rn(u,
EDA));return f.join("")};
_.gu.prototype.resolve=function(f){var R=this.clone(),u=!!f.scheme_;u?_.sF(R,f.scheme_):u=!!f.userInfo_;u?R.userInfo_=f.userInfo_:u=!!f.JSC$8036_domain_;u?_.nd(R,f.JSC$8036_domain_):u=f.JSC$8036_port_!=null;var O=f.getPath();if(u)_.Vc(R,f.JSC$8036_port_);else if(u=!!f.JSC$8036_path_){if(O.charAt(0)!="/")if(this.JSC$8036_domain_&&!this.JSC$8036_path_)O="/"+O;else{var c=R.getPath().lastIndexOf("/");c!=-1&&(O=R.getPath().slice(0,c+1)+O)}c=O;if(c==".."||c==".")O="";else if(_.qX(c,"./")||_.qX(c,"/.")){O=
_.hn(c,"/");c=c.split("/");for(var h=[],l=0;l<c.length;){var K=c[l++];K=="."?O&&l==c.length&&h.push(""):K==".."?((h.length>1||h.length==1&&h[0]!="")&&h.pop(),O&&l==c.length&&h.push("")):(h.push(K),O=!0)}O=h.join("/")}else O=c}u?_.YI(R,O):u=f.JSC$8036_queryData_.toString()!=="";u?_.vb(R,f.JSC$8036_queryData_.clone()):u=!!f.fragment_;u&&_.iV(R,f.fragment_);return R};
_.gu.prototype.clone=function(){return new _.gu(this)};
_.sF=function(f,R,u){f.scheme_=u?r4(R,!0):R;f.scheme_&&(f.scheme_=f.scheme_.replace(/:$/,""));return f};
_.nd=function(f,R,u){f.JSC$8036_domain_=u?r4(R,!0):R;return f};
_.Vc=function(f,R){if(R){R=Number(R);if(isNaN(R)||R<0)throw Error("Ta`"+R);f.JSC$8036_port_=R}else f.JSC$8036_port_=null;return f};
_.gu.prototype.getPath=function(){return this.JSC$8036_path_};
_.YI=function(f,R,u){f.JSC$8036_path_=u?r4(R,!0):R;return f};
_.vb=function(f,R,u){R instanceof _.fW?(f.JSC$8036_queryData_=R,tFf(f.JSC$8036_queryData_,f.JSC$8036_ignoreCase_)):(u||(R=Rn(R,C_k)),f.JSC$8036_queryData_=new _.fW(R,f.JSC$8036_ignoreCase_));return f};
_.Sr=function(f,R,u){f.JSC$8036_queryData_.set(R,u);return f};
_.x$=function(f,R){return f.JSC$8036_queryData_.get(R)};
_.iV=function(f,R,u){f.fragment_=u?r4(R):R;return f};
_.uz=function(f){_.Sr(f,"zx",Bi());return f};
_.oj=function(f,R){return f instanceof _.gu?f.clone():new _.gu(f,R)};
QDP=function(f,R){f instanceof _.gu||(f=_.oj(f));R instanceof _.gu||(R=_.oj(R));return f.resolve(R)};
r4=function(f,R){return f?R?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""};
Rn=function(f,R,u){return typeof f==="string"?(f=encodeURI(f).replace(R,y5C),u&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null};
y5C=function(f){f=f.charCodeAt(0);return"%"+(f>>4&15).toString(16)+(f&15).toString(16)};
mgi=/[#\/\?@]/g;WyA=/[#\?:]/g;Q0l=/[#\?]/g;C_k=/[#\?@]/g;EDA=/#/g;_.fW=function(f,R){this.count_=this.keyMap_=null;this.encodedQuery_=f||null;this.JSC$8037_ignoreCase_=!!R};
_.OV=function(f){f.keyMap_||(f.keyMap_=new Map,f.count_=0,f.encodedQuery_&&mtf(f.encodedQuery_,function(R,u){f.add(VM(R),u)}))};
_.X=_.fW.prototype;_.X.getCount=function(){_.OV(this);return this.count_};
_.X.add=function(f,R){_.OV(this);this.encodedQuery_=null;f=cs(this,f);var u=this.keyMap_.get(f);u||this.keyMap_.set(f,u=[]);u.push(R);this.count_+=1;return this};
_.X.remove=function(f){_.OV(this);f=cs(this,f);return this.keyMap_.has(f)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(f).length,this.keyMap_.delete(f)):!1};
_.X.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.X.isEmpty=function(){_.OV(this);return this.count_==0};
_.X.containsKey=function(f){_.OV(this);f=cs(this,f);return this.keyMap_.has(f)};
_.X.containsValue=function(f){var R=this.getValues();return _.g7(R,f)};
_.X.forEach=function(f,R){_.OV(this);this.keyMap_.forEach(function(u,O){u.forEach(function(c){f.call(R,c,O,this)},this)},this)};
_.X.getKeys=function(){_.OV(this);for(var f=Array.from(this.keyMap_.values()),R=Array.from(this.keyMap_.keys()),u=[],O=0;O<R.length;O++)for(var c=f[O],h=0;h<c.length;h++)u.push(R[O]);return u};
_.X.getValues=function(f){_.OV(this);var R=[];if(typeof f==="string")this.containsKey(f)&&(R=R.concat(this.keyMap_.get(cs(this,f))));else{f=Array.from(this.keyMap_.values());for(var u=0;u<f.length;u++)R=R.concat(f[u])}return R};
_.X.set=function(f,R){_.OV(this);this.encodedQuery_=null;f=cs(this,f);this.containsKey(f)&&(this.count_-=this.keyMap_.get(f).length);this.keyMap_.set(f,[R]);this.count_+=1;return this};
_.X.get=function(f,R){if(!f)return R;f=this.getValues(f);return f.length>0?String(f[0]):R};
_.dgE=function(f,R,u){f.remove(R);u.length>0&&(f.encodedQuery_=null,f.keyMap_.set(cs(f,R),_.iB(u)),f.count_+=u.length)};
_.fW.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var f=[],R=Array.from(this.keyMap_.keys()),u=0;u<R.length;u++){var O=R[u],c=_.e0(O);O=this.getValues(O);for(var h=0;h<O.length;h++){var l=c;O[h]!==""&&(l+="="+_.e0(O[h]));f.push(l)}}return this.encodedQuery_=f.join("&")};
_.fW.prototype.clone=function(){var f=new _.fW;f.encodedQuery_=this.encodedQuery_;this.keyMap_&&(f.keyMap_=new Map(this.keyMap_),f.count_=this.count_);return f};
var cs=function(f,R){R=String(R);f.JSC$8037_ignoreCase_&&(R=R.toLowerCase());return R},tFf=function(f,R){R&&!f.JSC$8037_ignoreCase_&&(_.OV(f),f.encodedQuery_=null,f.keyMap_.forEach(function(u,O){var c=O.toLowerCase();
O!=c&&(this.remove(O),_.dgE(this,c,u))},f));
f.JSC$8037_ignoreCase_=R};
_.fW.prototype.extend=function(f){for(var R=0;R<arguments.length;R++)_.wKA(arguments[R],function(u,O){this.add(O,u)},this)};var Xw=function(f,R){eD.call(this);for(var u=0,O;O=O8F[u];u++)if(O in f&&!/^https?:\/\//.test(f[O]))throw Error("Va`"+f[O]+"`"+O);this.cfg_=f;this.name=this.cfg_.cn||XKC();this.JSC$8032_domHelper_=R||a0();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.uE(this);f.lpu=f.lpu||Flf(this.JSC$8032_domHelper_.getWindow().location.href)+"/robots.txt";f.ppu=f.ppu||Flf(f.pu||"")+"/robots.txt";$I[this.name]=this;apf(window,"unload",Nqk)||W7(window,"unload",Nqk)};
_.f6(Xw,eD);var Lyf=RegExp("^%*tp$"),b8I=RegExp("^%+tp$");_.X=Xw.prototype;_.X.connectionDelay_=null;_.X.peerWindowDeferred_=null;_.X.transport_=null;_.X.state_=1;_.X.isConnected=function(){return this.state_==2};
_.X.peerWindowObject_=null;_.X.iframeElement_=null;_.X.connect=function(f){this.connectCb_=f||_.Fe;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Ykl(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.X.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8032_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var f=this.iframeElement_.contentWindow;f||(f=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=f}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");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$8032_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new SD(this,this.cfg_.ph,this.JSC$8032_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.X.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.YD(this.transport_);this.connectCb_=this.transport_=null;_.YD(this.connectionDelay_);this.connectionDelay_=null};
_.X.send=function(f,R){if(this.isConnected()){try{var u=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(c){u=!1}if(u){_.OE(R)&&(R=(0,_.d4)(R));u=this.transport_;var O=u.send;Lyf.test(f)&&(f="%"+f);f=f.replace(/[%:|]/g,encodeURIComponent);O.call(u,f,R)}else this.close()}};
_.X.xpcDeliver=function(f,R,u){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.NG)(this.xpcDeliver,this,f,R,u));else if(kxi(this,u)&&!this.isDisposed()&&this.state_!=3)if(f&&f!="tp")this.isConnected()&&(f=f.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),f=b8I.test(f)?f.substring(1):f,f=this.getService(f,R))&&(R=$cf(R,f.objectPayload),R!=null&&f.callback(R));else switch(f=this.transport_,u=lwG(R),R=u[1],u[0]){case "SETUP_ACK":awl(f,1);f.setupAckReceived_.fired_||f.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":f.protocolVersion_==2&&(awl(f,2),f.setupAckReceived_.fired_||f.setupAckReceived_.callback(!0));break;case "SETUP":awl(f,1);A5f(f,1);break;case "SETUP_NTPV2":f.protocolVersion_==2&&(u=f.peerProtocolVersion_,awl(f,2),A5f(f,2),u!=1&&f.peerEndpointId_==null||f.peerEndpointId_==R||qfl(f),f.peerEndpointId_=R)}};
var hfk=function(f){var R=f.cfg_.role;return typeof R==="number"?R:window.parent==f.peerWindowObject_?1:0},kxi=function(f,R){var u=f.cfg_.ph;
return _.Kh(R==null?"":String(R))||_.Kh(u==null?"":String(u))||R==f.cfg_.ph};
Xw.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete $I[this.name];_.YD(this.peerLoadHandler_);delete this.peerLoadHandler_;Xw.superClass_.disposeInternal.call(this)};
var Nqk=function(){for(var f in $I)_.YD($I[f])},$I={};var j0f=function(f,R){this.JSC$8046_win=f;this.allowAdsHttpEndpoint=R;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8046_domHelper=a0(f);this.scrollManager=new ouC(f);this.accessibilityManager=new PCC(f);pKH(this)},pKH=function(f){var R=function(){f.allowAdsPopup&&f.allowAdsPopup.style.setProperty("display","none","important");
f.wallElement.style.setProperty("display","","important");Ucf(f.accessibilityManager);BnC(f.accessibilityManager,f.wallElement.querySelector(".fc-dialog-container"),!1,!1,f.wallElement.querySelector(".fc-button-whitelist"));var c=f.scrollManager;c.JSC$8004_domHelper.JSC$7334_document_.body.style.overflow=c.originalBodyOverflow};
f.allowAdsPopup=f.JSC$8046_domHelper.JSC$7336_createDom("DIV",{"class":"fc-whitelist-root"});f.allowAdsPopup.style.setProperty("display","none","important");f.JSC$8046_domHelper.appendChild(f.JSC$8046_domHelper.JSC$7334_document_.body,f.allowAdsPopup);var u=f.JSC$8046_domHelper.JSC$7336_createDom("DIV",{"class":"fc-dialog-overlay"});f.JSC$8046_domHelper.appendChild(f.allowAdsPopup,u);var O=f.JSC$8046_domHelper.JSC$7336_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:R});f.JSC$8046_domHelper.appendChild(f.allowAdsPopup,
O);u=f.JSC$8046_domHelper.JSC$7336_createDom("IFRAME");u.className="fc-whitelist-dialog";u.frameBorder="0";u.id="fc-whitelist-iframe";u.tabIndex="0";_.D0(u,f.allowAdsHttpEndpoint);f.JSC$8046_domHelper.appendChild(O,u);O={};O.pu=_.k3(f.allowAdsHttpEndpoint).toString();O.tp=1;O.cn="fc-whitelist-channel";O.ifrid=u.id;O.osh=!0;f.allowAdsCrossPageChannel=new Xw(O);f.allowAdsCrossPageChannel.registerService("close",R);f.allowAdsCrossPageChannel.registerService("refresh",function(){f.JSC$8046_win.location.reload()});
f.allowAdsCrossPageChannel.registerService("resize",function(c){if(c){var h=f.allowAdsPopup.querySelector(".fc-whitelist-dialog");c.width&&h.style.setProperty("width",c.width,"important");c.height&&h.style.setProperty("height",c.height,"important")}},!0);
f.allowAdsCrossPageChannel.connect()};
j0f.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8046_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var h_=window,ZC=document,Dgk=h_.location,J5I=function(){},zff=/\[native code\]/,kv=function(f,R,u){return f[R]=f[R]||u},TqG=function(f){f=f.sort();
for(var R=[],u=void 0,O=0;O<f.length;O++){var c=f[O];c!=u&&R.push(c);u=c}return R},KW=function(){var f;
if((f=Object.create)&&zff.test(f))f=f(null);else{f={};for(var R in f)f[R]=void 0}return f},q2=kv(h_,"gapi",{});var A_={};A_=kv(h_,"___jsl",KW());kv(A_,"I",0);kv(A_,"hel",10);var H8H=function(){var f=Dgk.href;if(A_.dpo)var R=A_.h;else{R=A_.h;var u=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),O=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(f=f&&(u.exec(f)||O.exec(f)))try{R=decodeURIComponent(f[2])}catch(c){}}return R},Iwf=function(f){var R=kv(A_,"PQ",[]);
A_.PQ=[];var u=R.length;if(u===0)f();else for(var O=0,c=function(){++O===u&&f()},h=0;h<u;h++)R[h](c)},MFf=function(f){return kv(kv(A_,"H",KW()),f,KW())};var an=function(f){this.JSC$8048_obj_=f};
an.prototype.value=function(){return this.JSC$8048_obj_};
an.prototype.getWidth=function(){return this.JSC$8048_obj_.width};
an.prototype.getHeight=function(){return this.JSC$8048_obj_.height};
an.prototype.getStyle=function(){return this.JSC$8048_obj_.style};var P_f=function(f){this.JSC$8051_obj_=f||{}};
_.X=P_f.prototype;_.X.value=function(){return this.JSC$8051_obj_};
_.X.setUrl=function(f){this.JSC$8051_obj_.url=f;return this};
_.X.getUrl=function(){return this.JSC$8051_obj_.url};
_.X.getStyle=function(){return this.JSC$8051_obj_.style};
_.X.setId=function(f){this.JSC$8051_obj_.id=f;return this};
_.X.getId=function(){return this.JSC$8051_obj_.id};
_.X.getContext=function(){return this.JSC$8051_obj_.context};
var UgC=function(f){f.JSC$8051_obj_.attributes=f.JSC$8051_obj_.attributes||{};return new an(f.JSC$8051_obj_.attributes)};var eff=function(){P_f.apply(this,arguments)};
_.y(eff,P_f);var GxC=kv(A_,"perf",KW());kv(GxC,"g",KW());var BqH=kv(GxC,"i",KW());kv(GxC,"r",[]);KW();KW();var xgG=function(f,R,u){R&&R.length>0&&(R=oDI(R),u&&u.length>0&&(R+="___"+oDI(u)),R.length>28&&(R=R.substr(0,28)+(R.length-28)),u=R,R=kv(BqH,"_p",KW()),kv(R,u,KW())[f]=(new Date).getTime(),R=GxC.r,typeof R==="function"?R(f,"_p",u):R.push([f,"_p",u]))},oDI=function(f){return f.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var SfA=KW(),$gk=[],Fw=function(f){throw Error("Ya`"+f);};
$gk.push(["jsl",function(f){for(var R in f)if(Object.prototype.hasOwnProperty.call(f,R)){var u=f[R];typeof u=="object"?A_[R]=kv(A_,R,[]).concat(u):kv(A_,R,u)}if(R=f.u)f=kv(A_,"us",[]),f.push(R),(R=/^https:(.*)$/.exec(R))&&f.push("http:"+R[1])}]);
var gDf=/^(\/[a-zA-Z0-9_\-]+)+$/,s0H=[/\/amp\//,/\/amp$/,/^\/amp$/],nDA=/^[a-zA-Z0-9\-_\.,!]+$/,VFl=/^gapi\.loaded_[0-9]+$/,Yff=/^[a-zA-Z0-9,._-]+$/,fNC=function(f,R,u,O,c){var h=f.split(";"),l=h.shift(),K=SfA[l],q=null;K?q=K(h,R,u,O):Fw("no hint processor for: "+l);q||Fw("failed to generate load url");R=q;u=R.match(vDk);(O=R.match(i8Y))&&O.length===1&&r5f.test(R)&&u&&u.length===1||Fw("failed sanity: "+f);try{f="?";if(c&&c.length>0){Xi(c);var F=c.join(",");q=q+"?le="+F;f="&"}if(A_.rol){var w=A_.ol;
w&&w.length&&(q=""+q+f+"ol="+w.length)}}catch(m){}return q},ORY=function(f,R,u,O){f=RdI(f);
VFl.test(u)||Fw("invalid_callback");R=u$H(R);O=O&&O.length?u$H(O):null;var c=function(h){return encodeURIComponent(h).replace(/%2C/g,",")};
return[encodeURIComponent(f.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",c(f.version),"/m=",c(R),O?"/exm="+c(O):"","/rt=j/sv=1/d=1/ed=1",f.activeMods?"/am="+c(f.activeMods):"",f.resourceSig?"/rs="+c(f.resourceSig):"",f.zcms?"/t="+c(f.zcms):"","/cb=",c(u)].join("")},RdI=function(f){f.charAt(0)!=="/"&&Fw("relative path");
for(var R=f.substring(1).split("/"),u=[];R.length;){f=R.shift();if(!f.length||f.indexOf(".")==0)Fw("empty/relative directory");else if(f.indexOf("=")>0){R.unshift(f);break}u.push(f)}f={};for(var O=0,c=R.length;O<c;++O){var h=R[O].split("="),l=decodeURIComponent(h[0]),K=decodeURIComponent(h[1]);h.length==2&&l&&K&&(f[l]=f[l]||K)}R="/"+u.join("/");gDf.test(R)||Fw("invalid_prefix");u=0;for(O=s0H.length;u<O;++u)s0H[u].test(R)&&Fw("invalid_prefix");u=cKF(f,"k",!0);O=cKF(f,"am");c=cKF(f,"rs");f=cKF(f,"t");
return{pathPrefix:R,version:u,activeMods:O,resourceSig:c,zcms:f}},u$H=function(f){for(var R=[],u=0,O=f.length;u<O;++u){var c=f[u].replace(/\./g,"_").replace(/-/g,"_");
Yff.test(c)&&R.push(c)}return R.join(",")},cKF=function(f,R,u){f=f[R];
!f&&u&&Fw("missing: "+R);if(f){if(nDA.test(f))return f;Fw("invalid: "+R)}return null},r5f=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,i8Y=/\/cb=/g,vDk=/\/\//g;
SfA.m=function(f,R,u,O){(f=f[0])||Fw("missing_hint");return"https://apis.google.com"+ORY(f,R,u,O)};
var Xif=decodeURI("%73cript"),hdk=/^[-+_0-9\/A-Za-z]+={0,2}$/,ZRf=function(f,R){for(var u=[],O=0;O<f.length;++O){var c=f[O],h;if(h=c){a:{for(h=0;h<R.length;h++)if(R[h]===c)break a;h=-1}h=h<0}h&&u.push(c)}return u},lNf=function(){var f=A_.nonce;
return f!==void 0?f&&f===String(f)&&f.match(hdk)?f:A_.nonce=null:ZC.querySelector?(f=ZC.querySelector("script[nonce]"))?(f=f.nonce||f.getAttribute("nonce")||"",f&&f===String(f)&&f.match(hdk)?A_.nonce=f:A_.nonce=null):null:null},q8k=function(f){if(ZC.readyState!="loading")kPH(f);
else{var R=lNf(),u="";R!==null&&(u=' nonce="'+R+'"');f="<"+Xif+' src="'+encodeURI(f)+'"'+u+"></"+Xif+">";ZC.write(KDk?KDk.createHTML(f):f)}},kPH=function(f){var R=ZC.createElement(Xif);
R.setAttribute("src",KDk?KDk.createScriptURL(f):f);f=lNf();f!==null&&R.setAttribute("nonce",f);R.async="true";(f=ZC.getElementsByTagName(Xif)[0])?f.parentNode.insertBefore(R,f):(ZC.head||ZC.body||ZC.documentElement).appendChild(R)},aNG=function(f,R,u){AKH(function(){var O=R===H8H()?kv(q2,"_",KW()):KW();
O=kv(MFf(R),"_",O);f(O)},u)},K4n=function(f,R){var u=R||{};
typeof R=="function"&&(u={},u.callback=R);var O=(R=u)&&R._c;if(O)for(var c=0;c<$gk.length;c++){var h=$gk[c][0],l=$gk[c][1];l&&Object.prototype.hasOwnProperty.call(O,h)&&l(O[h],f,R)}R=[];f?R=f.split(":"):u.features&&(R=u.features);if(!(f=u.h)&&(f=H8H(),!f))throw Error("Za");FDI(R||[],u,f)},FDI=function(f,R,u){f=TqG(f)||[];
var O=R.callback,c=R.config,h=R.timeout,l=R.ontimeout,K=R.onerror,q=void 0;typeof K=="function"&&(q=K);var F=null,w=!1;if(h&&!l||!h&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";K=kv(MFf(u),"r",[]).sort();var m=kv(MFf(u),"L",[]).sort(),W=A_.le||[],C=[].concat(K),d=function(g,x){if(w)return 0;h_.clearTimeout(F);m.push.apply(m,p);var fh=((q2||{}).config||{}).update;fh?fh(c):c&&kv(A_,"cu",[]).push(c);if(x){xgG("me0",g,C);try{aNG(x,u,q)}finally{xgG("me1",g,C)}}return 1};
h>0&&(F=h_.setTimeout(function(){w=!0;l()},h));
var p=ZRf(f,m);if(p.length){p=ZRf(f,K);var J=kv(A_,"CP",[]),M=J.length;J[M]=function(g){if(!g)return 0;xgG("ml1",p,C);var x=function(V){J[M]=null;d(p,g)&&Iwf(function(){O&&O();V()})},fh=function(){var V=J[M+1];
V&&V()};
M>0&&J[M-1]?J[M]=function(){x(fh)}:x(fh)};
if(p.length){var P="loaded_"+A_.I++;q2[P]=function(g){J[M](g);q2[P]=null};
f=fNC(u,p,"gapi."+P,K,W);K.push.apply(K,p);xgG("ml0",p,C);R.sync||h_.___gapisync?q8k(f):kPH(f)}else J[M](J5I)}else d(p)&&O&&O()},wiC;
var mGG=null,QjG=_.Oe.trustedTypes;if(QjG&&QjG.createPolicy){try{mGG=QjG.createPolicy("goog#gapi",{createHTML:eS2,createScript:eS2,createScriptURL:eS2})}catch(f){_.Oe.console&&_.Oe.console.error(f.message)}wiC=mGG}else wiC=mGG;var KDk=wiC,AKH=function(f,R){if(A_.hee&&A_.hel>0)try{return f()}catch(u){R&&R(u),A_.hel--,K4n("debug_error",function(){try{window.___jsl.hefn(u)}catch(O){throw u;}})}else try{return f()}catch(u){throw R&&R(u),u;
}},WDk=q2.load;
WDk&&kv(A_,"ol",[]).push(WDk);q2.load=function(f,R){return AKH(function(){return K4n(f,R)})};var jr;var E$F=function(f,R){this.serviceId_=f;this.moduleId_=R||null};
E$F.prototype.toString=function(){return this.serviceId_};
E$F.prototype.getModuleId=function(){return this.moduleId_};var X5n=new E$F("MpJwZc","MpJwZc");var Z0e=new _.Kd("a"),hMX=function(f,R,u){_.qZ.call(this,f,R);this.node=R;this.kind=u};
_.y(hMX,_.qZ);var trk=function(){this.JSC$8064_keys_={};this.urlPrefix_="";this.JSC$8064_queryData_={}};
trk.prototype.toString=function(){var f=this.urlPrefix_+C3H(this),R=_.As(this.JSC$8064_queryData_),u="";R!=""&&(u="?"+R);return f+u};
var yKk=function(f){f=ww(f,"md");return!!f&&f!=="0"},C3H=function(f){var R=[],u=(0,_.NG)(function(O){this.JSC$8064_keys_[O]!==void 0&&R.push(O+"="+this.JSC$8064_keys_[O])},f);
yKk(f)?(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 f.JSC$8064_keys_||m4(f,"d","0"),u("d"),u("exm"),u("excm"),(f.JSC$8064_keys_.excm||f.JSC$8064_keys_.exm)&&R.push("ed=1"),u("im"),u("dg"),u("sm"),ww(f,"br")!="1"&&ww(f,"br")!="0"||u("br"),u("br-d"),ww(f,"rb")=="1"&&u("rb"),ww(f,"zs")!=="0"&&u("zs"),dGC(f)!==""&&u("wt"),u("gssmodulesetproto"),u("ujg"),u("sp"),u("rs"),u("cb"),u("ee"),u("slk"),u("dti"),u("m"));return R.join("/")},
ww=function(f,R){return f.JSC$8064_keys_[R]?f.JSC$8064_keys_[R]:null},m4=function(f,R,u){u?f.JSC$8064_keys_[R]=u:delete f.JSC$8064_keys_[R]},N9k=function(f,R){f.urlPrefix_=R},LDG=function(f,R){R&&R.length>0?(R.sort(),m4(f,"exm",R.join(","))):m4(f,"exm",null)},bRE=function(f,R){R&&R.length>0?(R.sort(),m4(f,"excm",R.join(","))):m4(f,"excm",null)},piG=function(f){return(f=ww(f,"m"))?f.split(","):[]},dGC=function(f){switch(ww(f,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},jjf=function(f,R){var u=Object.keys(R).filter(function(O){return!!Object.keys(R[O]).length}).map(function(O){var c=Object.keys(R[O]);
c.length>1&&c.sort();return O+":"+c.join(",")});
u.sort();m4(f,"ee",u.join(";"))},$WD=function(f){var R=ww(f,"ee");
if(!R)return{};f={};R=_.Z(R.split(";"));for(var u=R.next();!u.done;u=R.next()){var O=_.Z(u.value.split(":"));u=O.next().value;O=O.next().value;f[u]={};O=_.Z(O.split(","));for(var c=O.next();!c.done;c=O.next())f[u][c.value]=!0}return f},DGl=function(f){delete f.JSC$8064_keys_.m;
delete f.JSC$8064_keys_.exm;delete f.JSC$8064_keys_.ed};
trk.prototype.clone=function(){var f=new trk;f.JSC$8064_keys_=Object.assign({},this.JSC$8064_keys_);f.urlPrefix_=this.urlPrefix_;f.JSC$8064_queryData_=Object.assign({},this.JSC$8064_queryData_);return f};
var g8t=function(f,R){R=R===void 0?!0:R;var u=JKA(f),O=new trk,c=_.$8(u)[5];_.dq.forEach(zdY,function(l){var K=c.match("/"+l+"=([^/]+)");K&&m4(O,l,K[1])});
var h="";h=f.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";N9k(O,f.substr(0,f.indexOf(h)+h.length));if(!R)return O;(f=_.$8(u)[6]||null)&&mtf(f,function(l,K){O.JSC$8064_queryData_[l]=K});
return O},o8B=function(f){f=_.Kt(JKA(f));
return f===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(f)?/\/k=/.test(f):!1},JKA=function(f){return f.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?f.substr(65):f},zdY={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"},T9E=RegExp("^loaded_(g|h)?[_\\d]+$");_.Qi=function(f){this.JSC$8076_id_=f;this.opts={}};
_.Qi.prototype.JSC$8078_setLabel=function(f){this.label_=f||void 0;return this};
_.Qi.prototype.addUploadMetadata=function(f,R){var u=this.opts.data||{};u[f]=R;this.opts.data=u;return this};
var HRH=function(f){var R=_.dq.filter(f.opts,function(u){return u!==null});
R=_.dq.isEmpty(R)?null:R;f=[f.JSC$8076_id_,f.label_,R];R=WP7(f);return f=f.slice(0,R+1)};
_.Qi.prototype.toString=function(){var f=HRH(this);return"("+_.L8(f,function(R){return JSON.stringify(R)}).join(",")+")"};
_.Qi.prototype.getId=function(){return this.JSC$8076_id_};
_.Qi.prototype.getOptions=function(){return _.dq.clone(this.opts)};var Ws=function(){_.Qi.call(this,"image-search")};
_.y(Ws,_.Qi);Ws.prototype.setSize=function(f){this.opts.imgsz=f;return this};
Ws.prototype.JSC$8078_setLabel=function(f){_.Qi.prototype.JSC$8078_setLabel.call(this,f);return this};
Ws.prototype.addUploadMetadata=function(f,R){_.Qi.prototype.addUploadMetadata.call(this,f,R);return this};var EV=function(){_.Qi.call(this,"maps")};
_.y(EV,_.Qi);EV.prototype.setZoom=function(f){this.opts.zoom=f;return this};
EV.prototype.JSC$8078_setLabel=function(f){_.Qi.prototype.JSC$8078_setLabel.call(this,f);return this};
EV.prototype.addUploadMetadata=function(f,R){_.Qi.prototype.addUploadMetadata.call(this,f,R);return this};_.t_=function(){_.Qi.call(this,"photos")};
_.y(_.t_,_.Qi);_.t_.prototype.JSC$8078_setLabel=function(f){_.Qi.prototype.JSC$8078_setLabel.call(this,f);return this};
_.t_.prototype.addUploadMetadata=function(f,R){_.Qi.prototype.addUploadMetadata.call(this,f,R);return this};var CW=function(){_.Qi.call(this,"url")};
_.y(CW,_.Qi);var INl=function(){var f=new CW;f.opts.type="video";f.opts.site="youtube.com";return f};
CW.prototype.JSC$8078_setLabel=function(f){_.Qi.prototype.JSC$8078_setLabel.call(this,f);return this};
CW.prototype.addUploadMetadata=function(f,R){_.Qi.prototype.addUploadMetadata.call(this,f,R);return this};var yi=function(){_.Qi.call(this,"video-search")};
_.y(yi,_.Qi);var Mrt=function(){var f=new yi;f.opts.site="youtube.com";return f};
yi.prototype.JSC$8078_setLabel=function(f){_.Qi.prototype.JSC$8078_setLabel.call(this,f);return this};
yi.prototype.addUploadMetadata=function(f,R){_.Qi.prototype.addUploadMetadata.call(this,f,R);return this};var P3k=function(){_.Qi.call(this,"web")};
_.y(P3k,_.Qi);P3k.prototype.JSC$8078_setLabel=function(f){_.Qi.prototype.JSC$8078_setLabel.call(this,f);return this};
P3k.prototype.addUploadMetadata=function(f,R){_.Qi.prototype.addUploadMetadata.call(this,f,R);return this};var dw=function(){this.items_=[];this.opts={}},UGk=function(f){switch(f){case "image-search":return new Ws;
case "maps":return new EV;case "photos":return new _.t_;case "url":return new CW;case "video-search":return new yi;case "web":return new P3k}return new _.Qi(f)};
dw.prototype.addView=function(f){this.items_.push(typeof f==="string"?UGk(f):f);return this};
var edl=function(f){return"("+_.L8(f.items_,function(R){return R.toString()}).join(",")+")"};
dw.prototype.toString=function(){return edl(this)};
dw.prototype.getViews=function(f,R){R=R===void 0?[]:R;for(var u=this.items_,O=0;O<u.length;O++){var c=u[O];c instanceof dw?c.getViews(f,R):c.getId()==f&&R.push(c)}return R};
dw.prototype.getOptions=function(){return _.dq.clone(this.opts)};var MG=function(f){this.basePickerUrl_=f||"https://docs.google.com/picker";this.nav_=new dw};
MG.prototype.nav_=null;MG.prototype.addView=function(f){this.nav_.addView(f);return this};
MG.prototype.getBaseUrl=function(){return this.basePickerUrl_};
MG.prototype.getViews=function(f){return this.nav_.getViews(f)};
_.GPF=function(f,R){f.callback_=R;return f};var B9I=new Map;B9I.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");B9I.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");B9I.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var o$Y=new Set;o$Y.add("application/vnd.google-apps.kix");o$Y.add("application/vnd.google-apps.ritz");o$Y.add("application/vnd.google-apps.punch");var f1l=function(f,R,u){var O=u&&_.bH(u,1);u=xGA(u);var c=f[0].getId();switch(_.p6(c,2)){case 13:return S8t(f,R,O,u);case 3:return $Gk(f,R,O,u);case 10:return g$l(f,R,O,u);case 27:return g$l(f,R,O,u);case 12:return sjl(f,R);case 2:return n$F(f,R,O,u);case 5:return Vrl(f,R,O,u);case 9:return Y8C(f,R,O,u);case 6:return v$i(f,R,O,u);case 25:return iRG(f,R,O,u);case 1:return _.at(f[0],zFf,26)?rKH(f,R,O,u):g$l(f,R,O,u);default:return{}}},v$i=function(f,R,u,O){f=f.map(function(c){return{id:c.getId().getId(),
serviceId:"youtube",name:c.getName(),description:_.bH(c,3),type:N2(c),lastEditedUtc:_.JfI(_.Ry(c,_.Mm,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:c.getUrl(),embedUrl:_.bH(c,13),thumbnails:LW(np(c))}});
return{action:R,docs:f,viewToken:O,view:u||"youtube",v2Translated:!0}},n$F=function(f,R,u,O){var c=f.map(function(h){var l=h.getId().getId(),K=_.bH(h,7),q=h.getName(),F=N2(h),w=_.JfI(_.Ry(h,_.Mm,12)).getTime(),m=h.getUrl(),W=Number(YD0(h)),C=_.bH(h,3),d=_.bH(h,11),p=LW(np(h));
var J=_.Ry(h,VO,21);J=_.dZ(J,1);var M=_.Ry(h,VO,21);M=_.bH(M,10);var P=_.bH(h,13);var g=_.Ry(h,VO,21);g=_.dZ(g,9);var x=_.Ry(h,VO,21);x=_.bH(x,11);l={id:l,serviceId:"docs",mimeType:K,name:q,type:F,lastEditedUtc:w,url:m,sizeBytes:W,description:C,iconUrl:d,thumbnails:p,isShared:J,downloadUrl:M,embedUrl:P,copyable:g,resourceKey:x};K=_.Ry(h,VO,21);_.dZ(K,12)&&(l.uploadState="success",l.isNew=!0);K=_.Ry(h,VO,21);_.at(K,$z,3)&&(h=_.Ry(h,VO,21),h=_.Ry(h,$z,3),_.at(h,xz,2)&&(K=Hi(h.getDuration().getSeconds()),
q=h.getDuration(),q=_.Rj(q,2),l.duration=K+q/1E9),l.aspectRatio=h.getAspectRatio());return l});
return{action:R,docs:c,viewToken:O,view:u||"all",extraUserInputs:RmA(f),v2Translated:!0}},Vrl=function(f,R,u,O){f=f.map(function(c){var h=_.Ry(c,BHi,15);
h=_.Ry(h,SA,1);QL(c,10,SA,h);return{id:c.getId().getId(),serviceId:"web",mimeType:_.bH(c,7),name:c.getName(),type:N2(c),url:c.getUrl(),description:_.bH(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LW(np(c))}});
return{action:R,docs:f,viewToken:O,view:u||"image-search",v2Translated:!0}},Y8C=function(f,R,u,O){f=f.map(function(c){return{serviceId:"url",
name:np(c)[0].getUrl().split("/").pop(),type:N2(c),mimeType:_.bH(c,7),url:c.getUrl(),description:_.bH(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LW(np(c))}});
return{action:R,docs:f,viewToken:O,view:u||"url",v2Translated:!0}},rKH=function(f,R,u,O){f=f.map(function(c){return{id:c.getId().getId(),
serviceId:"picasa",name:c.getName(),type:N2(c),description:_.bH(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LW(np(c))}});
return{action:R,docs:f,viewToken:O,view:u||"webcam",v2Translated:!0}},g$l=function(f,R,u,O){return{action:R,
docs:f.map(uTf),viewToken:O,view:OcI(u||"upload",f),extraUserInputs:RmA(f),v2Translated:!0}},OcI=function(f,R){return R.some(function(u){var O;
return((O=_.Ry(u,gB,30))==null?void 0:_.p6(O,3))===9})?f+"/gmailphotos":f},$Gk=function(f,R,u,O){var c=f.map(function(h){var l={id:h.getId().getId(),
serviceId:"picasa",mimeType:_.bH(h,7),name:h.getName(),type:N2(h),lastEditedUtc:_.JfI(_.Ry(h,_.Mm,12)).getTime(),url:h.getUrl(),sizeBytes:Number(YD0(h)),description:_.bH(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LW(np(h)),mediaKey:h.getId().getId(),parentId:_.bH(h,4)},K,q=(K=_.Ry(h,IkC,18))==null?void 0:_.Ry(K,HCC,3);q&&(l.latitude=L6(q,1),l.longitude=L6(q,2));var F;h=(F=_.Ry(h,IkC,18))==null?void 0:NH(F,6);F=h!=null?Hi(h):void 0;F&&(l.version=
F);return l});
return{action:R,docs:c,viewToken:O,view:u||"photos",extraUserInputs:RmA(f),v2Translated:!0}},S8t=function(f,R,u,O){f=f.map(function(c){return{id:c.getId().getId(),
serviceId:"et",name:np(c)[0].getUrl().split("/").pop(),description:_.bH(c,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LW(np(c),"etjpg")}});
return{action:R,docs:f,viewToken:O,view:u||"et",v2Translated:!0}},iRG=function(f,R,u,O){f=f.map(function(c){var h=c.getId().getId(),l=O["2"];
return{id:h,serviceId:l.type!=="gmail_themes"&&l.parent==="6226252643674576769"?"picasa":"static_themes",name:c.getName(),mimeType:_.bH(c,7),type:N2(c),description:_.bH(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:c.getUrl(),embedUrl:c.getUrl(),thumbnails:LW(np(c))}});
return{action:R,docs:f,viewToken:O,view:u||"photos",v2Translated:!0}},sjl=function(f,R){f=f.map(function(u){var O=_.Ry(u,THk,27);
O=_.CE(O,1,_.Bt,_.fR())[0];return{id:u.getId().getId(),serviceId:"contacts",mimeType:_.bH(u,7),name:u.getName(),description:_.bH(u,3),url:"mailto:"+O,thumbnail:[{url:_.bH(u,11)}],email:O}});
return{action:R,docs:f,view:"contacts",v2Translated:!0}},xGA=function(f){if(!f)return{};
var R=_.bH(f,3);R=R&&JSON.parse(R)||{};return{0:_.bH(f,1),1:_.bH(f,2),2:R}},LW=function(f,R){R=R===void 0?"":R;
if(!f.length)return null;R=="etjpg"&&(f=f.filter(function(u){return u.getUrl().includes("w1200-h300")}));
return f.map(function(u){return{url:u.getUrl(),height:u.getHeight(),width:u.getWidth(),type:R}})},RmA=function(f){return{isAttachment:f.some(function(R){return _.dZ(R,31)})}},uTf=function(f){var R,u={id:(R=f.getId())==null?void 0:R.getId(),
serviceId:cyG(f),mimeType:_.bH(f,7),name:f.getName(),type:N2(f),sizeBytes:Number(YD0(f)),description:_.bH(f,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LW(np(f)),isNew:!0};if(R=_.Ry(f,gB,30)){u.dataUrl=_.bH(R,1)||null;a:{var O=_.Ry(f,gB,30);switch(_.p6(O,3)){case 9:O=_.JM(O,eFY,2,s2);O={remoteRefs:O&&_.bH(O,1)};break a;case 10:case 15:O=_.JM(O,UtF,4,s2);var c=np(f);O={photo_id:O&&_.bH(O,1),media_key:f.getId().getId(),media_type:_.p6(f,6)===1?1:2,image_url:c&&
c[0].getUrl(),width:c&&String(c[0].getWidth()),height:c&&String(c[0].getHeight())};break a}O=null}u.uploadMetadata=O;u.uploadId=_.bH(R,9)||null;u.uploadState=XQf(R)||null}(O=R&&_.JM(R,UtF,4,s2))&&(u.id=_.bH(O,1));(O=R&&_.JM(R,GIk,5,s2))&&(u.contentId=_.bH(O,1));(O=R&&_.JM(R,MYF,7,s2))&&(u.contentId=_.bH(O,1));(O=R&&_.JM(R,PfC,6,s2))&&(u.contentId=_.bH(O,1));(R==null?void 0:_.p6(R,3))===1&&(u.mediaKey=f.getId().getId());return u},cyG=function(f){var R;
switch(((R=_.Ry(f,gB,30))==null?void 0:_.p6(R,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},N2=function(f){switch(_.p6(f,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 _.bH(f,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},XQf=function(f){switch(f==null?void 0:_.p6(f,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 koH,hml,ZcH,l1C;_.bz=function(f,R){var u=R||{};R=u.document||document;var O=_.k3(f).toString(),c=(new E2(R)).createElement("SCRIPT"),h={script_:c,timeout_:void 0},l=new G0(hml,h),K=null,q=u.timeout!=null?u.timeout:5E3;q>0&&(K=window.setTimeout(function(){ZcH(c,!0);l.errback(new l1C(1,"Timeout reached for loading script "+O))},q),h.timeout_=K);
c.onload=c.onreadystatechange=function(){c.readyState&&c.readyState!="loaded"&&c.readyState!="complete"||(ZcH(c,u.cleanupWhenDone||!1,K),l.callback(null))};
c.onerror=function(){ZcH(c,!0,K);l.errback(new l1C(0,"Error while loading script "+O))};
h=u.attributes||{};_.dq.extend(h,{type:"text/javascript",charset:"UTF-8"});dXF(c,h);_.UO(c,f);koH(R).appendChild(c);return l};
koH=function(f){var R=Wi("HEAD",f);return R&&R.length!==0?R[0]:f.documentElement};
hml=function(){if(this&&this.script_){var f=this.script_;f&&f.tagName=="SCRIPT"&&ZcH(f,!0,this.timeout_)}};
ZcH=function(f,R,u){u!=null&&_.Oe.clearTimeout(u);f.onload=function(){};
f.onerror=function(){};
f.onreadystatechange=function(){};
R&&window.setTimeout(function(){_.Q1(f)},0)};
l1C=function(f,R){var u="Jsloader error (code #"+f+")";R&&(u+=": "+R);_.R7.call(this,u);this.code=f};
_.f6(l1C,_.R7);var KME=_.Sg(["https://apis.google.com/js/api.js"]),q$C=_.R0(KME),wQH=function(f,R){var u=!1,O=AyG(f,R).then(function(h){u=!0;return h}),c=_.o_i(5E3).then(function(){return u?AyG(f,R):a1Y(R).then(function(h){return FME(h,f)})});
return DeI([O,c])},AyG=function(f,R){return mKF(R).then(function(u){return FME(u,f)})},FME=function(f,R){var u=_.hn(R,"gapi.")?R.slice(5):R;
return f[u]?_.ll(f[u]):new _.ah(function(O,c){var h=Cd(function(){c(Error("bb"))},3E4);
f.load(R,{callback:function(){_.Oe.clearTimeout(h);O(f[u])},
onerror:function(l){_.Oe.clearTimeout(h);c(l)}})})},mKF=function(f){return f.gapi&&f.gapi.load?_.ll(f.gapi):a1Y(f)},a1Y=function(f){return _.bz(q$C,{document:f.document}).then(function(){return f.gapi})},Qsl=function(){};
Qsl.prototype.load=function(f,R){R=R===void 0?window:R;var u=Date.now();return wQH(f,R).then(function(O){var c=Date.now();return{library:O,loadStartMs:u,loadEndMs:c}},function(O){throw O instanceof Error?O:Error(String(O));
})};var A1D=function(){_.d9.call(this);this.gapiLoader_=new Qsl;this.origin_=null;this.gapiPickerIframeResolver_=_.BM();this.gapiIframesResolver_=_.BM();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.y(A1D,_.d9);var WMG=function(f,R){var u=_.Ph("gapi.iframes",R);return u?(f=Date.now(),_.ll({library:u,loadStartMs:f,loadEndMs:f})):f.gapiLoader_.load("gapi.iframes",R)},EnC=function(f,R,u,O,c,h){var l=!1;
l=l===void 0?!1:l;WMG(f,p8(R.ownerDocument)).then(function(K){var q=K.library;f.gapiIframesResolver_.resolve(q);K=f.gapiPickerIframeResolver_;var F=K.resolve,w=l;w=w===void 0?!1:w;var m={};m["host-message-handler"]=u;f.hostMessageHandlerInternal_=m;var W=_.oj(O);W=_.oj(W);W=_.Vc(_.nd(_.sF(new _.gu,W.scheme_),W.JSC$8036_domain_),W.JSC$8036_port_).toString();f.origin_=W;W=(new eff).setUrl(O);W.JSC$8051_obj_.where=R;W.JSC$8051_obj_.allowPost=w;W.JSC$8051_obj_.messageHandlers=m;w=_.Ph("makeWhiteListIframesFilter",
q)([f.origin_]);W.JSC$8051_obj_.messageHandlersFilter=w;c!=null&&W.setId(c);h!=null&&(W.JSC$8051_obj_.rpctoken=h);w=UgC(W);w.JSC$8048_obj_.style={display:"block","min-width":"100%",width:"1px"};w.JSC$8048_obj_.height="100%";UgC(W).value().allow="camera 'src' "+f.origin_;q=q.getContext().openChild(W.value());F.call(K,q)},function(K){f.gapiIframesResolver_.reject(K);
f.gapiPickerIframeResolver_.reject(K)});
return f.gapiPickerIframeResolver_.promise},tNA=function(f,R){return _.EF([f.gapiIframesResolver_.promise,
f.gapiPickerIframeResolver_.promise]).then(function(u){var O=_.Z(u);u=O.next().value;return(O=O.next().value)?O.send("picker-message-handler",R,void 0,_.Ph("makeWhiteListIframesFilter",u)([f.origin_])):_.NO(Error("cb"))})};
A1D.prototype.disposeInternal=function(){C4E(this);_.d9.prototype.disposeInternal.call(this)};
var C4E=function(f){f.gapiPickerIframeResolver_.promise.then(function(R){R&&(R.unregister("host-message-handler"),delete f.hostMessageHandlerInternal_["host-message-handler"])})};var yyf=function(){this.nextId=0};var NPC=function(f,R){switch(f.action){case "select-contacts":f=dKI(f.contacts);break;case "visibility":f=f.visible;var u=new vI;f=_.TR(u,1,7).setVisible(f);u={};u["iframe-command"]=f.serialize();f=u;break;default:f=null}return f?tNA(R,f):_.ll()},dKI=function(f){if(!f||f.length==0)return null;
var R=new vI;_.TR(R,1,11);var u=new yyf;f.forEach(function(O){if(O.email){var c=new C6;c=_.Vo(c,2,O.name?O.name:O.email);var h=new THk;O=_.Zmn(h,1,_.Pt,O.email,_.Bt);O=_.OO(c,27,O);c=O.setId;h=(new og).setId(":"+(u.nextId++).toString(36));h=_.TR(h,2,12);O=c.call(O,h)}else O=null;O&&QL(R,7,C6,O)});
f={};f["iframe-command"]=R.serialize();return f};_.LME=function(){if(KX0){var f=/Windows NT ([0-9.]+)/;return(f=f.exec(_.Q2()))?f[1]:"0"}return _.km2?(f=/1[0|1][_.][0-9_.]+/,(f=f.exec(_.Q2()))?f[0].replace(/_/g,"."):"10"):vIq?(f=/Android\s+([^\);]+)(\)|;)/,(f=f.exec(_.Q2()))?f[1]:""):AYB||aPn||FX5?(f=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(f=f.exec(_.Q2()))?f[1].replace(/_/g,"."):""):""}();var pW;pW=function(f){return(f=f.exec(_.Q2()))?f[1]:""};
_.bcl=function(){if(_.ZY)return pW(/Firefox\/([0-9.]+)/);if(_.O0||sb||h2P)return CTe;if(_.lH){if(_.P0()||_.FP0()){var f=pW(/CriOS\/([0-9.]+)/);if(f)return f}return pW(/Chrome\/([0-9.]+)/)}if(_.IV&&!_.P0())return pW(/Version\/([0-9.]+)/);if(td2||CEl){if(f=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Q2()))return f[1]+"."+f[2]}else if(bPP)return(f=pW(/Android\s+([0-9.]+)/))?f:pW(/Version\/([0-9.]+)/);return""}();var pQA=function(){};
_.ik(pQA);pQA.prototype.nextId_=0;_.j4=function(f){return":"+(f.nextId_++).toString(36)};var DC=function(f){_.mq.call(this);this.JSC$8146_dom_=f||a0();this.JSC$8146_id_=null;this.inDocument_=!1;this.JSC$8146_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.f6(DC,_.mq);DC.prototype.idGenerator_=pQA.getInstance();DC.prototype.getId=function(){return this.JSC$8146_id_||(this.JSC$8146_id_=_.j4(this.idGenerator_))};
DC.prototype.setId=function(f){this.parent_&&this.parent_.childIndex_&&(_.dq.remove(this.parent_.childIndex_,this.JSC$8146_id_),_.dq.add(this.parent_.childIndex_,f,this));this.JSC$8146_id_=f};
DC.prototype.getElement=function(){return this.JSC$8146_element_};
var J_=function(f){f.googUiComponentHandler_||(f.googUiComponentHandler_=new _.uE(f));return f.googUiComponentHandler_},jsG=function(f,R){if(f==R)throw Error("db");
var u;if(u=R&&f.parent_&&f.JSC$8146_id_){u=f.parent_;var O=f.JSC$8146_id_;u=u.childIndex_&&O?_.dq.get(u.childIndex_,O)||null:null}if(u&&f.parent_!=R)throw Error("db");f.parent_=R;DC.superClass_.setParentEventTarget.call(f,R)};
DC.prototype.setParentEventTarget=function(f){if(this.parent_&&this.parent_!=f)throw Error("eb");DC.superClass_.setParentEventTarget.call(this,f)};
DC.prototype.JSC$8148_createDom=function(){this.JSC$8146_element_=this.JSC$8146_dom_.createElement("DIV")};
DC.prototype.render=function(f){DKA(this,f)};
var DKA=function(f,R,u){if(f.inDocument_)throw Error("fb");f.JSC$8146_element_||f.JSC$8148_createDom();R?R.insertBefore(f.JSC$8146_element_,u||null):f.JSC$8146_dom_.JSC$7334_document_.body.appendChild(f.JSC$8146_element_);f.parent_&&!f.parent_.inDocument_||f.enterDocument()};
_.X=DC.prototype;_.X.decorate=function(f){if(this.inDocument_)throw Error("fb");if(f&&this.canDecorate(f)){this.wasDecorated_=!0;var R=_.jF(f);this.JSC$8146_dom_&&this.JSC$8146_dom_.JSC$7334_document_==R||(this.JSC$8146_dom_=a0(f));this.decorateInternal(f);this.enterDocument()}else throw Error("gb");};
_.X.canDecorate=function(){return!0};
_.X.decorateInternal=function(f){this.JSC$8146_element_=f};
_.X.enterDocument=function(){this.inDocument_=!0;Jyt(this,function(f){!f.inDocument_&&f.getElement()&&f.enterDocument()})};
_.X.exitDocument=function(){Jyt(this,function(f){f.inDocument_&&f.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.X.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Jyt(this,function(f){f.dispose()});
!this.wasDecorated_&&this.JSC$8146_element_&&_.Q1(this.JSC$8146_element_);this.parent_=this.model_=this.JSC$8146_element_=this.childIndex_=this.children_=null;DC.superClass_.disposeInternal.call(this)};
_.X.getModel=function(){return this.model_};
_.X.addChild=function(f,R){var u=this.children_?this.children_.length:0;if(f.inDocument_&&(R||!this.inDocument_))throw Error("fb");if(u<0||u>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);f.parent_==this?(_.dq.set(this.childIndex_,f.getId(),f),_.v0(this.children_,f)):_.dq.add(this.childIndex_,f.getId(),f);jsG(f,this);_.tte(this.children_,u,0,f);f.inDocument_&&this.inDocument_&&f.parent_==this?(R=this.getContentElement(),
(R.childNodes[u]||null)!=f.getElement()&&(f.getElement().parentElement==R&&R.removeChild(f.getElement()),u=R.childNodes[u]||null,R.insertBefore(f.getElement(),u))):R?(this.JSC$8146_element_||this.JSC$8148_createDom(),u=this.children_?this.children_[u+1]||null:null,DKA(f,this.getContentElement(),u?u.JSC$8146_element_:null)):this.inDocument_&&!f.inDocument_&&f.JSC$8146_element_&&f.JSC$8146_element_.parentNode&&f.JSC$8146_element_.parentNode.nodeType==1&&f.enterDocument()};
_.X.getContentElement=function(){return this.JSC$8146_element_};
var Jyt=function(f,R){f.children_&&f.children_.forEach(R,void 0)};
DC.prototype.removeChild=function(f,R){if(f){var u=typeof f==="string"?f:f.getId();f=this.childIndex_&&u?_.dq.get(this.childIndex_,u)||null:null;u&&f&&(_.dq.remove(this.childIndex_,u),_.v0(this.children_,f),R&&(f.exitDocument(),f.JSC$8146_element_&&_.Q1(f.JSC$8146_element_)),jsG(f,null))}if(!f)throw Error("ib");return f};_.f6(OQ7,uM0);_.f6(c17,uM0);var zmH;var TPY=function(f,R){R?f.setAttribute("role",R):f.removeAttribute("role")},zt=function(f,R,u){Array.isArray(u)&&(u=u.join(" "));
var O="aria-"+R;u===""||u==void 0?(zmH||(u={},zmH=(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=zmH,R in u?f.setAttribute(O,u[R]):f.removeAttribute(O)):f.setAttribute(O,u)};var HcC;_.Tt=function(f,R,u){_.mq.call(this);this.target=f;this.handle=R||f;this.limits=u||new Jk(NaN,NaN,NaN,NaN);this.JSC$8151_document_=_.jF(f);this.JSC$8151_eventHandler_=new _.uE(this);_.qG(this,this.JSC$8151_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;_.y0(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=HcC};
_.f6(_.Tt,_.mq);HcC=_.Oe.document&&_.Oe.document.documentElement&&!!_.Oe.document.documentElement.setCapture&&!!_.Oe.document.releaseCapture;_.I1f=function(f,R){f.hysteresisDistanceSquared_=Math.pow(R,2)};
_.X=_.Tt.prototype;_.X.setEnabled=function(f){this.enabled_=f};
_.X.disposeInternal=function(){_.Tt.superClass_.disposeInternal.call(this);_.w4(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8151_document_.releaseCapture();this.handle=this.target=null};
_.X.startDrag=function(f){var R=f.type=="mousedown";if(!this.enabled_||this.dragging_||R&&(f.event_.button!=0||_.km2&&f.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Hs("start",this,f.clientX,f.clientY,f)))this.dragging_=!0,R&&f.preventDefault();else return;else R&&f.preventDefault();R=this.JSC$8151_document_;var u=R.documentElement,O=!this.useSetCapture_;this.JSC$8151_eventHandler_.listen(R,["touchmove","mousemove"],this.handleMove_,
{capture:O,passive:!1});this.JSC$8151_eventHandler_.listen(R,["touchend","mouseup"],this.endDrag,O);this.useSetCapture_?(u.setCapture(!1),this.JSC$8151_eventHandler_.listen(u,"losecapture",this.endDrag)):this.JSC$8151_eventHandler_.listen(p8(R),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8151_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,O);this.clientX=this.startX=f.clientX;this.clientY=this.startY=f.clientY;this.screenX=f.screenX;this.screenY=f.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=A5(a0(this.JSC$8151_document_))}};
_.X.endDrag=function(f,R){this.JSC$8151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8151_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Hs("end",this,f.clientX,f.clientY,f,MNt(this,this.deltaX),P4F(this,this.deltaY),R||f.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.X.handleMove_=function(f){if(this.enabled_){var R=f.clientX-this.clientX,u=f.clientY-this.clientY;this.clientX=f.clientX;this.clientY=f.clientY;this.screenX=f.screenX;this.screenY=f.screenY;if(!this.dragging_){var O=this.startX-this.clientX,c=this.startY-this.clientY;if(O*O+c*c>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Hs("start",this,f.clientX,f.clientY,f)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(f);return}}u=UKf(this,R,u);R=u.x;u=u.y;this.dragging_&&this.dispatchEvent(new Hs("beforedrag",
this,f.clientX,f.clientY,f,R,u))&&(eml(this,f,R,u),f.preventDefault())}};
var UKf=function(f,R,u){var O=A5(a0(f.JSC$8151_document_));R+=O.x-f.pageScroll.x;u+=O.y-f.pageScroll.y;f.pageScroll=O;f.deltaX+=R;f.deltaY+=u;return new _.b_(MNt(f,f.deltaX),P4F(f,f.deltaY))};
_.Tt.prototype.onScroll_=function(f){var R=UKf(this,0,0);f.clientX=this.clientX;f.clientY=this.clientY;eml(this,f,R.x,R.y)};
var eml=function(f,R,u,O){f.target.style.left=u+"px";f.target.style.top=O+"px";f.dispatchEvent(new Hs("drag",f,R.clientX,R.clientY,R,u,O))},MNt=function(f,R){var u=f.limits;
f=isNaN(u.left)?null:u.left;u=isNaN(u.width)?0:u.width;return Math.min(f!=null?f+u:Infinity,Math.max(f!=null?f:-Infinity,R))},P4F=function(f,R){var u=f.limits;
f=isNaN(u.top)?null:u.top;u=isNaN(u.height)?0:u.height;return Math.min(f!=null?f+u:Infinity,Math.max(f!=null?f:-Infinity,R))};
_.Tt.prototype.isDragging=function(){return this.dragging_};
var Hs=function(f,R,u,O,c,h,l){_.qZ.call(this,f);this.clientX=u;this.clientY=O;this.browserEvent=c;this.left=h!==void 0?h:R.deltaX;this.top=l!==void 0?l:R.deltaY};
_.f6(Hs,_.qZ);var In=function(f){this.JSC$8158_map_=new Map;var R=arguments.length;if(R>1){if(R%2)throw Error("oa");for(var u=0;u<R;u+=2)this.set(arguments[u],arguments[u+1])}else f&&this.addAll(f)};
_.X=In.prototype;_.X.getCount=function(){return this.JSC$8158_map_.size};
_.X.getValues=function(){return Array.from(this.JSC$8158_map_.values())};
_.X.getKeys=function(){return Array.from(this.JSC$8158_map_.keys())};
_.X.containsKey=function(f){return this.JSC$8158_map_.has(f)};
_.X.containsValue=function(f){return this.getValues().some(function(R){return R==f})};
_.X.equals=function(f,R){var u=this;R=R===void 0?function(O,c){return O===c}:R;
return this===f?!0:this.JSC$8158_map_.size!=f.getCount()?!1:this.getKeys().every(function(O){return R(u.JSC$8158_map_.get(O),f.get(O))})};
_.X.isEmpty=function(){return this.JSC$8158_map_.size==0};
_.X.clear=function(){this.JSC$8158_map_.clear()};
_.X.remove=function(f){return this.JSC$8158_map_.delete(f)};
_.X.get=function(f,R){return this.JSC$8158_map_.has(f)?this.JSC$8158_map_.get(f):R};
_.X.set=function(f,R){this.JSC$8158_map_.set(f,R);return this};
_.X.addAll=function(f){if(f instanceof In){f=_.Z(f.JSC$8158_map_);for(var R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;this.JSC$8158_map_.set(R,u)}}else if(f)for(f=_.Z(Object.entries(f)),R=f.next();!R.done;R=f.next())u=_.Z(R.value),R=u.next().value,u=u.next().value,this.JSC$8158_map_.set(R,u)};
_.X.forEach=function(f,R){var u=this;R=R===void 0?this:R;this.JSC$8158_map_.forEach(function(O,c){return f.call(R,O,c,u)})};
_.X.clone=function(){return new In(this)};(function(){for(var f=["ms","moz","webkit","o"],R,u=0;R=f[u]&&!_.Oe.requestAnimationFrame;++u)_.Oe.requestAnimationFrame=_.Oe[R+"RequestAnimationFrame"],_.Oe.cancelAnimationFrame=_.Oe[R+"CancelAnimationFrame"]||_.Oe[R+"CancelRequestAnimationFrame"];if(!_.Oe.requestAnimationFrame){var O=0;_.Oe.requestAnimationFrame=function(c){var h=(new Date).getTime(),l=Math.max(0,16-(h-O));O=h+l;return _.Oe.setTimeout(function(){c(h+l)},l)};
_.Oe.cancelAnimationFrame||(_.Oe.cancelAnimationFrame=function(c){clearTimeout(c)})}})();
var GoF=[[],[]],BPl=0,onH=!1,xKk=0,$KC=function(f,R){var u=xKk++,O={measureTask:{id:u,fn:f.measure,context:R},mutateTask:{id:u,fn:f.mutate,context:R},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(O.args||(O.args=[]),O.args.length=0,O.args.push.apply(O.args,arguments),O.args.push(O.state)):O.args&&O.args.length!=0?(O.args[0]=O.state,O.args.length=1):O.args=[O.state];O.isScheduled||(O.isScheduled=!0,GoF[BPl].push(O));onH||(onH=!0,window.requestAnimationFrame(S$i))}},S$i=
function(){onH=!1;
var f=GoF[BPl],R=f.length;BPl=(BPl+1)%2;for(var u,O=0;O<R;++O){u=f[O];var c=u.measureTask;u.isScheduled=!1;c.fn&&c.fn.apply(c.context,u.args)}for(O=0;O<R;++O)u=f[O],c=u.mutateTask,u.isScheduled=!1,c.fn&&c.fn.apply(c.context,u.args),u.state={};f.length=0};var gnG=_.Sg(["about:blank"]),ssk=_.Sg(["javascript:undefined"]),nnk=_.R0(gnG);_.k3(nnk);var VNG=_.R0(ssk);_.k3(VNG);var M2=function(f){_.mq.call(this);this.JSC$8164_element_=f;this.listenKeyIn_=_.y0(this.JSC$8164_element_,"focus",this,!0);this.listenKeyOut_=_.y0(this.JSC$8164_element_,"blur",this,!0)};
_.f6(M2,_.mq);M2.prototype.handleEvent=function(f){var R=new _.Ao(f.event_);R.type=f.type=="focusin"||f.type=="focus"?"focusin":"focusout";this.dispatchEvent(R)};
M2.prototype.disposeInternal=function(){M2.superClass_.disposeInternal.call(this);Ex(this.listenKeyIn_);Ex(this.listenKeyOut_);delete this.JSC$8164_element_};var Y$k=function(f,R){this.JSC$8167_element_=f;this.JSC$8167_dom_=R};var Ps=function(f,R){DC.call(this,R);this.useIframeMask_=!!f;this.lastFocus_=null;this.resizeBackgroundTask_=$KC({mutate:this.resizeBackground_},this);$KC({mutate:this.updateModalAndBackground_},this)};
_.f6(Ps,DC);_.X=Ps.prototype;_.X.focusHandler_=null;_.X.visible_=!1;_.X.bgEl_=null;_.X.bgIframeEl_=null;_.X.tabCatcherElement_=null;_.X.backwardTabWrapInProgress_=!1;_.X.getCssClass=function(){return"goog-modalpopup"};
_.X.getBackgroundElement=function(){return this.bgEl_};
_.X.JSC$8148_createDom=function(){Ps.superClass_.JSC$8148_createDom.call(this);var f=this.getElement(),R=Fn(this.getCssClass()).split(" ");UF(f,R);f.tabIndex=0;_.$$(f,!1);vnF(this);icH(this)};
var vnF=function(f){if(f.useIframeMask_&&!f.bgIframeEl_){var R=f.JSC$8146_dom_.JSC$7336_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.D0(R,nnk);f.bgIframeEl_=R;f.bgIframeEl_.className=f.getCssClass()+"-bg";_.$$(f.bgIframeEl_,!1);rnE(f.bgIframeEl_,0)}f.bgEl_||(f.bgEl_=f.JSC$8146_dom_.JSC$7336_createDom("DIV",f.getCssClass()+"-bg"),_.$$(f.bgEl_,!1))},icH=function(f){f.tabCatcherElement_||(f.tabCatcherElement_=f.JSC$8146_dom_.createElement("SPAN"),_.$$(f.tabCatcherElement_,
!1),f.tabCatcherElement_.tabIndex=0,f.tabCatcherElement_.style.position="absolute")};
_.X=Ps.prototype;_.X.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.X.canDecorate=function(f){return!!f&&f.tagName=="DIV"};
_.X.decorateInternal=function(f){Ps.superClass_.decorateInternal.call(this,f);f=Fn(this.getCssClass()).split(" ");UF(this.getElement(),f);vnF(this);icH(this);this.getElement().tabIndex=0;_.$$(this.getElement(),!1)};
_.X.enterDocument=function(){this.bgIframeEl_&&_.bw(this.bgIframeEl_,this.getElement());_.bw(this.bgEl_,this.getElement());Ps.superClass_.enterDocument.call(this);_.pp(this.tabCatcherElement_,this.getElement());this.focusHandler_=new M2(this.JSC$8146_dom_.JSC$7334_document_);J_(this).listen(this.focusHandler_,"focusin",this.onFocus);ryk(this,!1)};
_.X.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.YD(this.focusHandler_);Ps.superClass_.exitDocument.call(this);_.Q1(this.bgIframeEl_);_.Q1(this.bgEl_);_.Q1(this.tabCatcherElement_)};
_.X.setVisible=function(f){if(f!=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_&&ryk(this,f),f){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8146_dom_.JSC$7334_document_.activeElement}catch(c){}this.updateModalAndBackground_();J_(this).listen(this.JSC$8146_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8146_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);fKt(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)W7(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){J_(this).unlisten(this.JSC$8146_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8146_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)W7(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var R=this.JSC$8146_dom_,u=R.JSC$7334_document_.body,O=R.JSC$7334_document_.activeElement||u;if(!this.lastFocus_||this.lastFocus_==u){this.lastFocus_=null;break a}(O==u||R.contains(this.getElement(),O))&&this.lastFocus_.focus()}catch(c){}this.lastFocus_=
null}}};
var ryk=function(f,R){f.modalAriaVisibilityHelper_||(f.modalAriaVisibilityHelper_=new Y$k(f.JSC$8146_element_,f.JSC$8146_dom_));f=f.modalAriaVisibilityHelper_;if(R){f.hiddenElements_||(f.hiddenElements_=[]);R=f.JSC$8167_dom_.getChildren(f.JSC$8167_dom_.JSC$7334_document_.body);for(var u=0;u<R.length;u++){var O=R[u],c;if(c=O!=f.JSC$8167_element_)c=O.getAttribute("aria-hidden"),c=!(c==null||c==void 0?0:String(c));c&&(zt(O,"hidden",!0),f.hiddenElements_.push(O))}}else if(f.hiddenElements_){for(R=0;R<
f.hiddenElements_.length;R++)f.hiddenElements_[R].removeAttribute("aria-hidden");f.hiddenElements_=null}};
Ps.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var fKt=function(f,R){f.bgIframeEl_&&_.$$(f.bgIframeEl_,R);f.bgEl_&&_.$$(f.bgEl_,R);_.$$(f.getElement(),R);_.$$(f.tabCatcherElement_,R)};
_.X=Ps.prototype;_.X.onShow=function(){this.dispatchEvent("show")};
_.X.onHide=function(){fKt(this,!1);this.dispatchEvent("hide")};
_.X.isVisible=function(){return this.visible_};
_.X.focus=function(){this.focusElement_()};
_.X.resizeBackground_=function(){this.bgIframeEl_&&_.$$(this.bgIframeEl_,!1);this.bgEl_&&_.$$(this.bgEl_,!1);var f=this.JSC$8146_dom_.JSC$7334_document_;var R=_.qg(p8(this.JSC$8146_dom_.JSC$7334_document_)||window);var u=Math.max(R.width,Math.max(f.body.scrollWidth,f.documentElement.scrollWidth));f=Math.max(R.height,Math.max(f.body.scrollHeight,f.documentElement.scrollHeight));this.bgIframeEl_&&(_.$$(this.bgIframeEl_,!0),_.Vtt(this.bgIframeEl_,u,f));this.bgEl_&&(_.$$(this.bgEl_,!0),_.Vtt(this.bgEl_,
u,f))};
_.X.reposition=function(){var f;if(_.n5A(this.getElement())=="fixed")var R=f=0;else R=A5(this.JSC$8146_dom_),f=R.x,R=R.y;var u=v5t(this.getElement());var O=_.qg(p8(this.JSC$8146_dom_.JSC$7334_document_)||window);f=Math.max(f+O.width/2-u.width/2,0);R=Math.max(R+O.height/2-u.height/2,0);HI(this.getElement(),f,R);HI(this.tabCatcherElement_,f,R)};
_.X.onFocus=function(f){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():f.target==this.tabCatcherElement_&&Cd(this.focusElement_,0,this)};
_.X.focusElement_=function(){try{this.getElement().focus()}catch(f){}};
_.X.disposeInternal=function(){_.YD(this.popupShowTransition_);this.popupShowTransition_=null;_.YD(this.popupHideTransition_);this.popupHideTransition_=null;_.YD(this.bgShowTransition_);this.bgShowTransition_=null;_.YD(this.bgHideTransition_);this.bgHideTransition_=null;Ps.superClass_.disposeInternal.call(this)};var Ij=function(f,R,u){Ps.call(this,R,u);this.JSC$8177_class_=f||"modal-dialog";this.buttons_=(new UV).addButton(R8k,!0).addButton(uMG,!1,!0)};
_.f6(Ij,Ps);_.X=Ij.prototype;_.X.escapeToCancel_=!0;_.X.hasTitleCloseButton_=!0;_.X.modal_=!0;_.X.draggable_=!0;_.X.backgroundElementOpacity_=.5;_.X.title_="";_.X.JSC$8179_dragger_=null;_.X.JSC$8179_disposeOnHide_=!1;_.X.titleEl_=null;_.X.titleTextEl_=null;_.X.titleTextId_=null;_.X.titleCloseEl_=null;_.X.contentEl_=null;_.X.buttonEl_=null;_.X.getCssClass=function(){return this.JSC$8177_class_};
_.X.setTitle=function(f){this.title_=f;this.titleTextEl_&&_.Dj(this.titleTextEl_,f)};
_.X.getTitle=function(){return this.title_};
_.X.getContent=function(){return""};
_.X.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var OQk=function(f){f.getElement()||f.render();return f.getElement()};
Ij.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Ij.superClass_.getBackgroundElement.call(this)};
var c1k=function(f,R){f.backgroundElementOpacity_=R;f.getElement()&&(R=f.getBackgroundElement())&&rnE(R,f.backgroundElementOpacity_)};
Ij.prototype.setDraggable=function(f){this.draggable_=f;Xhl(this,f&&this.inDocument_)};
Ij.prototype.JSC$8179_handleDrag=function(){};
var Xhl=function(f,R){var u=Fn(f.JSC$8177_class_+"-title-draggable").split(" ");f.getElement()&&(R?UF(f.titleEl_,u):MWE(f.titleEl_,u));R&&!f.JSC$8179_dragger_?(R=new _.Tt(f.getElement(),f.titleEl_),f.JSC$8179_dragger_=R,UF(f.titleEl_,u),_.y0(f.JSC$8179_dragger_,"start",f.setDraggerLimits_,!1,f),_.y0(f.JSC$8179_dragger_,"drag",f.JSC$8179_handleDrag,!1,f)):!R&&f.JSC$8179_dragger_&&(f.JSC$8179_dragger_.dispose(),f.JSC$8179_dragger_=null)};
_.X=Ij.prototype;
_.X.JSC$8148_createDom=function(){Ij.superClass_.JSC$8148_createDom.call(this);var f=this.getElement(),R=this.JSC$8146_dom_;this.titleTextId_=this.getId();var u=this.getId()+".contentEl";this.titleEl_=R.JSC$7336_createDom("DIV",this.JSC$8177_class_+"-title",this.titleTextEl_=R.JSC$7336_createDom("SPAN",{className:this.JSC$8177_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=R.JSC$7336_createDom("SPAN",this.JSC$8177_class_+"-title-close"));j7A(f,this.titleEl_,this.contentEl_=
R.JSC$7336_createDom("DIV",{className:this.JSC$8177_class_+"-content",id:u}),this.buttonEl_=R.JSC$7336_createDom("DIV",this.JSC$8177_class_+"-buttons"));TPY(this.titleTextEl_,"heading");TPY(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;zt(this.titleCloseEl_,"label","Close");TPY(f,"dialog");zt(f,"labelledby",this.titleTextId_||"");_.$$(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(f=this.buttons_,f.JSC$8180_element_=this.buttonEl_,f.render());_.$$(this.buttonEl_,!!this.buttons_);
c1k(this,this.backgroundElementOpacity_)};
_.X.decorateInternal=function(f){Ij.superClass_.decorateInternal.call(this,f);f=this.getElement();var R=this.JSC$8177_class_+"-content";this.contentEl_=tk(document,null,R,f)[0];this.contentEl_||(this.contentEl_=this.JSC$8146_dom_.JSC$7336_createDom("DIV",R),f.appendChild(this.contentEl_));R=this.JSC$8177_class_+"-title";var u=this.JSC$8177_class_+"-title-text",O=this.JSC$8177_class_+"-title-close";(this.titleEl_=tk(document,null,R,f)[0])?(this.titleTextEl_=tk(document,null,u,this.titleEl_)[0],this.titleCloseEl_=
tk(document,null,O,this.titleEl_)[0]):(this.titleEl_=this.JSC$8146_dom_.JSC$7336_createDom("DIV",R),f.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=xXk(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.yO("SPAN",{className:u,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;zt(f,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8146_dom_.JSC$7336_createDom("SPAN",
O),this.titleEl_.appendChild(this.titleCloseEl_));_.$$(this.titleCloseEl_,this.hasTitleCloseButton_);R=this.JSC$8177_class_+"-buttons";(this.buttonEl_=tk(document,null,R,f)[0])?(this.buttons_=new UV(this.JSC$8146_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8146_dom_.JSC$7336_createDom("DIV",R),f.appendChild(this.buttonEl_),this.buttons_&&(f=this.buttons_,f.JSC$8180_element_=this.buttonEl_,f.render()),_.$$(this.buttonEl_,!!this.buttons_));c1k(this,this.backgroundElementOpacity_)};
_.X.enterDocument=function(){Ij.superClass_.enterDocument.call(this);J_(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);J_(this).listen(this.buttonEl_,"click",this.onButtonClick_);Xhl(this,this.draggable_);J_(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var f=this.getElement();TPY(f,"dialog");this.titleTextEl_.id!==""&&zt(f,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){f=this.JSC$8146_dom_;
var R=this.getBackgroundElement();f.removeNode(this.bgIframeEl_);f.removeNode(R)}this.isVisible()&&ryk(this,!1)}};
_.X.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Xhl(this,!1);Ij.superClass_.exitDocument.call(this)};
_.X.setVisible=function(f){f!=this.isVisible()&&(this.inDocument_||this.render(),Ij.superClass_.setVisible.call(this,f))};
_.X.onShow=function(){Ij.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.X.onHide=function(){Ij.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8179_disposeOnHide_&&this.dispose()};
_.X.setDraggerLimits_=function(){var f=this.JSC$8146_dom_.JSC$7334_document_,R=_.qg(p8(f)||window),u=Math.max(f.body.scrollWidth,R.width);f=Math.max(f.body.scrollHeight,R.height);var O=v5t(this.getElement());_.n5A(this.getElement())=="fixed"?this.JSC$8179_dragger_.limits=new Jk(0,0,Math.max(0,R.width-O.width),Math.max(0,R.height-O.height)):this.JSC$8179_dragger_.limits=new Jk(0,0,u-O.width,f-O.height)};
_.X.onTitleCloseClick_=function(){h8F(this)};
var h8F=function(f){if(f.hasTitleCloseButton_){var R=f.buttons_,u=R&&R.cancelButton_;u?(R=R.get(u),f.dispatchEvent(new e4(u,R))&&f.setVisible(!1)):f.setVisible(!1)}},ZQC=function(f){f.hasTitleCloseButton_=!1;
f.titleCloseEl_&&_.$$(f.titleCloseEl_,f.hasTitleCloseButton_)};
Ij.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Ij.superClass_.disposeInternal.call(this)};
Ij.prototype.onButtonClick_=function(f){a:{for(f=f.target;f!=null&&f!=this.buttonEl_;){if(f.tagName=="BUTTON")break a;f=f.parentNode}f=null}if(f&&!f.disabled){f=f.name;var R=this.buttons_.get(f);this.dispatchEvent(new e4(f,R))&&this.setVisible(!1)}};
Ij.prototype.onKey_=function(f){var R=!1,u=!1,O=this.buttons_,c=f.target;if(f.type=="keydown")if(this.escapeToCancel_&&f.keyCode==27){var h=O&&O.cancelButton_;c=c.tagName=="SELECT"&&!c.disabled;h&&!c?(u=!0,R=O.get(h),R=this.dispatchEvent(new e4(h,R))):c||(R=!0)}else{if(f.keyCode==9&&f.shiftKey&&c==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(w){}Cd(this.resetBackwardTabWrap_,0,this)}}else if(f.keyCode==13){if(c.tagName=="BUTTON"&&!c.disabled)h=c.name;
else if(c==this.titleCloseEl_)h8F(this);else if(O){var l=O.defaultButton_,K;if(K=l)a:{K=Wi("BUTTON",O.JSC$8180_element_);for(var q,F=0;q=K[F];F++)if(q.name==l||q.id==l){K=q;break a}K=null}c=(c.tagName=="TEXTAREA"||c.tagName=="SELECT"||c.tagName=="A")&&!c.disabled;!K||K.disabled||c||(h=l)}h&&O&&(u=!0,R=this.dispatchEvent(new e4(h,String(O.get(h)))))}else c!=this.titleCloseEl_||f.keyCode!=32&&f.key!=" "||h8F(this);if(R||u)f.stopPropagation(),f.preventDefault();R&&this.setVisible(!1)};
var e4=function(f,R){this.type="dialogselect";this.key=f;this.caption=R};
_.f6(e4,_.qZ);var UV=function(f){In.call(this);f||a0();this.cancelButton_=this.JSC$8180_element_=this.defaultButton_=null};
_.f6(UV,In);_.X=UV.prototype;_.X.clear=function(){In.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.X.set=function(f,R,u,O){In.prototype.set.call(this,f,R);u&&(this.defaultButton_=f);O&&(this.cancelButton_=f);return this};
_.X.addButton=function(f,R,u){return this.set(f.key,f.caption,R,u)};
_.X.render=function(){if(this.JSC$8180_element_){_.ey(this.JSC$8180_element_,mW2);var f=a0(this.JSC$8180_element_);this.forEach(function(R,u){R=f.JSC$7336_createDom("BUTTON",{name:u},R);u==this.defaultButton_&&(R.className="goog-buttonset-default");this.JSC$8180_element_.appendChild(R)},this)}};
_.X.decorate=function(f){if(f&&f.nodeType==1){this.JSC$8180_element_=f;f=Wi("BUTTON",this.JSC$8180_element_);for(var R,u,O,c=0;R=f[c];c++)if(u=R.name||R.id,O=xXk(R)||R.value,u){var h=c==0;this.set(u,O,h,R.name=="cancel");h&&_.sx(R,"goog-buttonset-default")}}};
_.X.getElement=function(){return this.JSC$8180_element_};
var R8k={key:"ok",caption:"OK"},uMG={key:"cancel",caption:"Cancel"},lKH={key:"yes",caption:"Yes"},kfE={key:"no",caption:"No"},KwE={key:"save",caption:"Save"},qCH={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new UV).addButton(R8k,!0,!0),(new UV).addButton(R8k,!0).addButton(uMG,!1,!0),(new UV).addButton(lKH,!0).addButton(kfE,!1,!0),(new UV).addButton(lKH).addButton(kfE,!0).addButton(uMG,!1,!0),(new UV).addButton(qCH).addButton(KwE).addButton(uMG,!0,!0));_.f6(XhP,Ij);_.f6(h8l,MG);var A1k=_.Sg(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),aKY=_.Sg(["//apis.google.com/js/rpc.js"]),wht=_.R0(A1k),Fwt=_.R0(aKY),lK7=null;var Pi=function(f,R){_.mq.call(this);this.JSC$8189_element_=f;f=_.vR(this.JSC$8189_element_)?this.JSC$8189_element_:this.JSC$8189_element_?this.JSC$8189_element_.body:null;this.isRtl_=!!f&&_.fkE(f);this.listenKey_=_.y0(this.JSC$8189_element_,_.co?"DOMMouseScroll":"mousewheel",this,R)};
_.f6(Pi,_.mq);Pi.prototype.handleEvent=function(f){var R=0,u=0,O=f.event_;O.type=="mousewheel"?(f=FwY(-O.wheelDelta),O.wheelDeltaX!==void 0?(R=FwY(-O.wheelDeltaX),u=FwY(-O.wheelDeltaY)):u=f):(f=O.detail,f>100?f=3:f<-100&&(f=-3),O.axis!==void 0&&O.axis===O.HORIZONTAL_AXIS?R=f:u=f);typeof this.maxDeltaX_==="number"&&(R=_.Jd(R,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(u=_.Jd(u,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(R=-R);R=new whY(f,O,R,u);this.dispatchEvent(R)};
var FwY=function(f){return _.XA&&(_.km2||qDP)&&f%40!=0?f:f/40};
Pi.prototype.disposeInternal=function(){Pi.superClass_.disposeInternal.call(this);Ex(this.listenKey_);this.listenKey_=null};
var whY=function(f,R,u,O){_.Ao.call(this,R);this.type="mousewheel";this.detail=f;this.deltaX=u;this.deltaY=O};
_.f6(whY,_.Ao);_.c9=function(f){var R="instance_";if(f.instance_&&f.hasOwnProperty(R))return f.instance_;R=new f;return f.instance_=R};var aKt;var mWA=_.Sg(["https://about:blank"]),QSf=_.Sg(['javascript:""']),Wwk=_.Sg(["about:blank"]);_.f6(g9,XhP);_.X=g9.prototype;_.X.JSC$8197_url_="";_.X.JSC$8197_iframe_=null;_.X.iframeLoaded_=!1;_.X.loadedFired_=!1;_.X.callback_=function(){};
_.X.enterDocument=function(){g9.superClass_.enterDocument.call(this);qC7(this.getBackgroundElement(),J_(this))};
_.X.render=function(f){var R=this;g9.superClass_.render.call(this,f);this.useGapi_?WMG(this.iframeManager_,window).then(function(){return E8I(R)}).then(null,function(){R.callback_({action:"error"})}):t0l(this)};
var E8I=function(f){var R=f.JSC$8146_dom_.JSC$7336_createDom("div",["picker-dialog-content","picker-frame"]);_.$$(R,!1);f.getContentElement().appendChild(R);return EnC(f.iframeManager_,R,function(u){var O=skE(u["iframe-command"]);switch(O.getCommand()){case 1:u=f.callback_;O=_.Ry(O,Yz,2);var c="";switch(O.getStatus()){case 2:c="cancel";break;case 1:c="picked";break;case 3:c="error"}var h=_.rq(O,C6,2,_.fR(M9q));O=h.length===0?{action:c}:f1l(h,c,_.Ry(O,SEE,7));u.call(f,O);f.setVisible(!1);break;case 4:ZQC(f);
f.callback_({action:"loaded"});break;case 7:case 8:u=f.callback_;a:{c=O.getCommand();h=_.Ry(O,Yz,2);switch(c){case 7:c="uploadScheduled";break;case 8:c="uploadStateChange";break;default:O={};break a}O=_.rq(h,C6,2,_.fR(M9q));if(O.length===0)O={action:c};else{var l=_.Ry(h,SEE,7);h=l&&_.bH(l,1);l=xGA(l);O=g$l(O,c,h,l)}}u.call(f,O)}},f.JSC$8197_url_,f.targetId_,f.rpcToken_).then(function(u){f.JSC$8197_iframe_=u.getIframeEl();
CtA(f);_.$$(f.JSC$8197_iframe_.parentElement,!0);_.sx(f.getElement(),"picker-dialog");y1i(f);return u})},t0l=function(f){f.JSC$8197_iframe_=f.JSC$8146_dom_.JSC$7336_createDom("IFRAME",{id:f.targetId_,
name:f.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.D0(f.JSC$8197_iframe_,dWF(f));_.sx(f.getElement(),"picker-dialog");f.getContentElement().appendChild(f.JSC$8197_iframe_);J_(f).listen(f.JSC$8197_iframe_,"load",function(){return void CtA(f)});
f.JSC$8197_iframe_.src=f.JSC$8197_url_;y1i(f)},LwG=function(f){Nvk(f,(0,_.NG)(function(R){R.setAuthToken(this.targetId_,this.rpcToken_)},f))},y1i=function(f){var R=_.x$(_.oj(f.JSC$8197_url_),"title");
R&&f.setTitle(R)},dWF=function(f){return _.qeX("Internet Explorer")>=7&&_.hn(f.JSC$8197_url_,"https")?_.R0(mWA):_.O0?_.R0(QSf):_.R0(Wwk)},CtA=function(f){LwG(f);
f.iframeLoaded_=!0;f.JSC$8197_iframe_.tabIndex=0;f.isVisible()&&f.focus()};
g9.prototype.handleKeydown_=function(f){f.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),f.stopPropagation(),f.preventDefault())};
var Nvk=function(f,R){var u=f.JSC$8195_gadgetsDomHelper_;kfe(function(){R(u.getWindow().gadgets.rpc)},u)};
g9.prototype.setUrl=function(f){f=_.Sr(new _.gu(f),"rpcService",this.targetId_);_.Sr(f,"rpctoken",this.rpcToken_);_.iV(f,"rpctoken="+this.rpcToken_);_.sF(f,"https");this.JSC$8197_url_=f.toString();this.JSC$8197_iframe_&&(this.JSC$8197_iframe_.src=this.JSC$8197_url_)};
var bQt=function(f,R){f.callback_=R;Nvk(f,(0,_.NG)(function(u){u.register(this.targetId_,(0,_.NG)(this.handlePickerAction_,this))},f))};
g9.prototype.handlePickerAction_=function(f){var R=f.action;R=="loaded"&&(this.loadedFired_=!0,phC(this,new c17(this.isVisible())),jSG(this),ZQC(this),J_(this).unlisten(this.JSC$8146_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8197_iframe_.tabIndex=0);R!="picked"&&R!="cancel"||this.setVisible(!1);this.callback_(f)};
var jSG=function(f){f.JSC$8197_appId_&&phC(f,new OQ7(f.JSC$8197_appId_,window.location.protocol+"//"+window.location.host))};
g9.prototype.setRelayUrl=function(f){Nvk(this,(0,_.NG)(function(R){R.setRelayUrl(this.targetId_,f)},this))};
var phC=function(f,R){f.useGapi_&&NPC(R,f.iframeManager_).then(null,function(){f.callback_({action:"error"})});
Nvk(f,(0,_.NG)(function(u){u.call(this.targetId_,"picker",null,R)},f))};
g9.prototype.resizePicker_=function(){var f=p8(this.JSC$8146_dom_.JSC$7334_document_)||window;if(_.x$(_.oj(this.JSC$8197_url_),"ignoreLimits")=="true")f=new _.K8(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.x$(_.oj(this.JSC$8197_url_),"shadeDialog")=="true"){var R=OQk(this);R=RFF(R);var u=_.qg(f);f=u.width-80;u=u.height-40;R&&(f-=R.left?R.left:0,f-=R.right?R.right:0,u-=R.top?R.top:0,u-=R.bottom?R.bottom:0);f=new _.K8(f>0?f:0,u>0?u:0)}else(R=this.preferredDialogWidth_)?(R=Math.max(320,
Math.min(1051,R)),(u=this.preferredDialogHeight_)||(u=_.qg(f).height*.85),u=Math.max(480,Math.min(650,u))):(R=_.qg(f),u=R.width*.618,u=u<R.height?Math.round(Math.max(480,Math.min(650,u*.85))):Math.round(Math.max(480,Math.min(650,R.height*.85))),R=Math.round(u/.618)),f=_.qg(f),R=Math.min(R,Math.max(f.width,320)),u=Math.min(u,Math.max(f.height,480)),f=new _.K8(R,u);_.Vtt(this.getContentElement(),f);this.reposition()};
g9.prototype.reposition=function(){if(_.x$(_.oj(this.JSC$8197_url_),"shadeDialog")=="true"){var f=v5t(this.getElement()),R=_.qg(this.JSC$8146_dom_.getWindow());f=Math.floor(R.width/2-f.width/2);R=OQk(this);if(R=RFF(R)){var u=R.left?R.left:0;u+=R.right?R.right:0;f=Math.floor(f-u/2)}f=f>0?f:0;R=A5(this.JSC$8146_dom_).y;HI(this.getElement(),f,R)}else g9.superClass_.reposition.call(this)};
g9.prototype.setVisible=function(f){if(f!=this.isVisible()&&this.autoSizeDialog_){var R=this.JSC$8146_dom_.getWindow();f?(this.resizePicker_(),J_(this).listen(R,"resize",this.resizePicker_),this.iframeLoaded_||J_(this).listen(R,"keydown",this.handleKeydown_)):(J_(this).unlisten(R,"resize",this.resizePicker_),this.iframeLoaded_||J_(this).unlisten(R,"keydown",this.handleKeydown_))}g9.superClass_.setVisible.call(this,f);phC(this,new c17(f))};
g9.prototype.focus=function(){g9.superClass_.focus.call(this);if(this.JSC$8197_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8197_iframe_.focus()}catch(f){}};var jk=function(f,R){R=R===void 0?g9:R;MG.call(this,f);this.pickerConstructor=R;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(f=window.location.origin)||(f=window.location.protocol+"//"+window.location.host);f&&this.urlParamMap_.set("origin",f);this.postProcessors_=[]};
_.y(jk,h8l);jk.prototype.JSC$8202_disposeOnHide_=!1;
jk.prototype.build=function(){this.JSC$8103_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8103_appId_);this.getRelayUrl()||this.setRelayUrl(_.YI(_.iV(_.vb(_.oj(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var f=new this.pickerConstructor(DWI(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);f.JSC$8179_disposeOnHide_=this.JSC$8202_disposeOnHide_;
f.JSC$8197_appId_=this.JSC$8103_appId_;f.loadedFired_&&jSG(f);bQt(f,this.callback_);return f};
var J1G=function(f){f.urlParamMap_.set("multiselectEnabled","true");return f};
jk.prototype.getHeight=function(){return this.dialogHeight_};
jk.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
jk.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
jk.prototype.getWidth=function(){return this.dialogWidth_};
var z8C=function(f){f.JSC$8202_disposeOnHide_=void 0;return f};
jk.prototype.setRelayUrl=function(f){this.urlParamMap_.set("parent",f);return this};
var Tvf=function(f,R){f.urlParamMap_.set("selectButtonLabel",R);return f};
jk.prototype.setSize=function(f,R){this.dialogWidth_=f;this.dialogHeight_=R;return this};
jk.prototype.setTitle=function(f){this.urlParamMap_.set("title",f);return this};
var DWI=function(f){f.postProcessors_.length&&f.urlParamMap_.set("pp",JSON.stringify(f.postProcessors_));f.urlParamMap_.set("nav",edl(f.nav_));var R=new _.gu(f.getBaseUrl());f.urlParamMap_.forEach(function(u,O){_.Sr(R,O,u)});
return R};var M0k=function(f,R){f.name!==void 0?(this.name=f.name,this.code=HQE[f.name]):(this.code=f=f.code,this.name=IKC(f));_.R7.call(this,qat("%s %s",this.name,R))};
_.f6(M0k,_.R7);var IKC=function(f){var R=_.dq.findKey(HQE,function(u){return f==u});
if(R===void 0)throw Error("lb`"+f);return R},Gt={},HQE=(Gt.AbortError=3,Gt.EncodingError=5,Gt.InvalidModificationError=9,Gt.InvalidStateError=7,Gt.NotFoundError=1,Gt.NotReadableError=4,Gt.NoModificationAllowedError=6,Gt.PathExistsError=12,Gt.QuotaExceededError=10,Gt.SecurityError=2,Gt.SyntaxError=8,Gt.TypeMismatchError=11,Gt);var Ptl=function(f,R){_.qZ.call(this,f.type,R);this.event_=f};
_.f6(Ptl,_.qZ);var UWi=function(f,R,u){u===void 0&&(u=f.size);return f.slice?f.slice(R,u):null};var WwD=new WeakMap,QSB=function(f,R){f=[f];for(var u=R.length-1;u>=0;--u)f.push(typeof R[u],R[u]);return f.join("\v")};_.t0P(function(){if(!_.Oe.Blob)return!1;var f=new Uint8Array(100);try{var R=new Blob([f])}catch(u){return!1}return R.size!=100?!1:!0});
var e8E=_.t0P(function(){if(!_.Oe.Blob)return!1;var f=new Uint8Array(100);try{var R=new Blob([f])}catch(u){return!1}return UWi(R,0,1)===null?!1:!0});_.Oe.U3bHHf!=null||(_.Oe.U3bHHf=0);_.Oe.U3bHHf++;var Ct2={};var Y$=void 0;var dWl=Symbol("tb");var PtP=fc("WizInjectionContext_Dispatcher");var z85=fc("WizInjectionContext_RootElement");var HQe=fc("WizInjectionContext_AppContext"),TvB=fc("WizInjectionContext_ModelRootElement"),IK5=fc("WizInjectionContext_RendererData"),M0D=fc("WizInjectionContext_InjectingConstructor"),J10=fc("WizInjectionContext_AsyncDeps"),UWn={};var SCt=!1;var GfY=Symbol("xb"),PZn=Symbol("yb"),BU7=Symbol("zb"),eDq=Symbol("Ab"),nxX=sE(function(f){return O$(f)&&GfY in f});var V0t={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:OP5,enableLazyTsx:cYX,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1,legacyTriggerSoyRendererEvents:!1};var u4=Object.assign({},{attributes:{},handleError:function(f){throw f;}},V0t);var RD2=Symbol("Bb"),Bs={},r17=(Bs[RD2]=!0,Bs.debugName="[component]",Bs.getComponentStack=function(){for(var f=[],R=this;R;)ut5(R)&&f.push(R.debugName),R=R.parent;return f},Bs.registerSignal=function(){},Bs.registerEffect=function(){},Bs);var cQ=null,hy=!1,lLn=1,kn=Symbol("Cb"),mM={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var on=Symbol("Db"),xv=Symbol("Eb"),l4=Symbol("Fb"),mv2=Object.assign({},mM,{value:on,dirty:!0,error:null,equal:OtX,kind:"computed",producerMustRecompute:function(f){return f.value===on||f.value===xv},
producerRecomputeValue:function(f){if(f.value===xv)throw Error("da");var R=f.value;f.value=xv;var u=aLP(f),O=!1;try{var c=f.computation();XT(null);O=R!==on&&R!==l4&&c!==l4&&f.equal(R,c)}catch(h){c=l4,f.error=h}finally{F$B(f,u)}O?f.value=R:(f.value=c,f.version++)}});var thl=function(){throw Error();};var ysB=null,W$2=Object.assign({},mM,{equal:OtX,value:void 0,kind:"signal"});Object.assign({},mM,{value:on,dirty:!0,error:null,equal:OtX,kind:"linkedSignal",producerMustRecompute:function(f){return f.value===on||f.value===xv},
producerRecomputeValue:function(f){if(f.value===xv)throw Error("da");var R=f.value;f.value=xv;var u=aLP(f);try{var O=f.source();var c=f.computation(O,R===on||R===l4?void 0:{source:f.sourceValue,value:R});f.sourceValue=O}catch(h){c=l4,f.error=h}finally{F$B(f,u)}R!==on&&c!==l4&&f.equal(R,c)?f.value=R:(f.value=c,f.version++)}});Object.assign({},mM,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(f){f.schedule!==null&&f.schedule(f.ref)},
hasRun:!1,cleanupFn:function(){}});var NUt=Symbol("Gb"),Ay=Symbol("Hb");var as=Array.isArray;var Htt;var BvC={},Mh7=TUt(Object.assign({},{consumerAllowSignalWrites:!0},BvC)),FM=TUt(Object.assign({},{consumerAllowSignalWrites:!0},BvC));var ty=0,S4=function(){this.queue=new Set};
S4.prototype.remove=function(f){this.queue.delete(f)};
S4.prototype.clear=function(){this.queue.clear()};
var o8f=function(){S4.apply(this,arguments)};
_.y(o8f,S4);o8f.prototype.schedule=function(f){this.queue.add(f)};
o8f.prototype.flush=function(){if(this.queue.size)for(var f=_.Z(this.queue),R=f.next();!R.done;R=f.next()){R=R.value;this.queue.delete(R);try{R.run()}catch(u){xWt(u)}}};
var SCY=new o8f,$v=function(){S4.apply(this,arguments)};
_.y($v,S4);var $Wk=function(){$v.apply(this,arguments)};
_.y($Wk,$v);$Wk.prototype.schedule=function(f){f.hasRun?this.queue.add(f):f.run()};
$Wk.prototype.flush=function(){if(this.queue.size){var f=this.queue;this.queue=new Set;Vht(f)}};
var Uv5=new $Wk,g8Y=function(){$v.apply(this,arguments)};
_.y(g8Y,$v);g8Y.prototype.schedule=function(f){var R=this;return _.k(function(u){if(u.nextAddress==1)return f.hasRun?u.jumpTo(2):_.A(u,Promise.resolve(),3);if(u.nextAddress!=2)return f.run(),u.return();R.queue.add(f);_.KG(u)})};
g8Y.prototype.flush=function(){var f=this;return _.k(function(R){if(R.nextAddress==1)return f.queue.size?_.A(R,Promise.resolve(),2):R.return();Vht(f.queue);_.KG(R)})};
var oxn=new g8Y,sSE=function(){$v.apply(this,arguments)};
_.y(sSE,$v);sSE.prototype.schedule=function(f){this.queue.add(f)};
sSE.prototype.flush=function(){this.queue.size&&Vht(this.queue)};
var GAP=new sSE,gxh=[Uv5,SCY,GAP,oxn],n8C=[Uv5,GAP,oxn],SbD=[];ysB=function(){sV0();for(var f=_.Z(SbD),R=f.next();!R.done;R=f.next())R=R.value,R()};
var xWt=c0;var dP=Symbol("Mb");var Cc=null,rse,f9n=null,Rcn;var gw={},V0Y=Object.assign({},mM,(gw[GfY]=!0,gw.effectType=PZn,gw.isResettableContext=!0,gw.producerNode=void 0,gw.hasRun=!1,gw.effectFn=null,gw.consumerIsAlwaysLive=!0,gw.consumerAllowSignalWrites=!0,gw.consumerMarkedDirty=xvt,gw.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(hy)throw Error("Nb");this.dirty=!1;if(!this.hasRun||kA7(this)){this.hasRun=!0;DWq(this);var f=r9(this),R=aLP(this);v80("effectRun",this.debugName);try{b4(this.effectFn,this.componentStack)}catch(u){throw u4.enableContextBasedComponentStacks&&
Lc(u),u;}finally{iQ5("effectRun",this.debugName),F$B(this,R),r9(f)}}}},gw.componentStack=void 0,gw.debugName="[effect]",gw[Symbol.dispose]=function(){cs7(this);
if(Z1(this))for(var f=0;f<this.producerNode.length;f++)XfP(this.producerNode[f],this.producerIndexOfThis[f]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);f=_.Z(n8C);for(var R=f.next();!R.done;R=f.next())R.value.remove(this);jS0(this)},gw));var cAt=Object.assign({},V0Y,{effectType:BU7});var XRP=Symbol("Ob");var hcq=Object.assign({},V0Y,{effectType:PZn});var oMn=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 fQ=Symbol("Pb");var A1=function(){},Wh=function(f){this.props=f;
this.__unmounted=!1};
Wh.prototype.didPatch=function(){};
Wh.prototype.didMount=function(){};
Wh.prototype.didUnmount=function(){};
Wh.prototype.didUpdate=function(){};var k2e={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,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,
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,valign:1,value:1,width:1,wrap:1},l9X={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}]}},DHh={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},AAP=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],qLe={"*":{async:1,dir:0,loading:2,target:3}};var YCE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,sV={},Fn0=(sV[1]=null,sV[2]=function(f,R){return R instanceof bh?jy(R):Wz.toString()},sV[3]=function(f,R){return aa(R)?_.F3(R):YCE.test(String(R))?String(R):Wz.toString()},sV[4]=function(f,R){return R instanceof Z0?_.k3(R):Wz.toString()},sV[5]=function(f,R){return String(R)},sV[7]=null,sV[8]=null,sV[10]=null,sV);var iUh=Symbol("Rb");var e$B=function(f){var R=v8G,u=f,O="",c="",h=1;f<0&&(f=-f);if(f===Infinity)f=(Infinity*Math.sign(u)).toString();else{for(var l=0;l<iQC.length;l++){var K=iQC[l];h=R[K];if(f>=h||h<=1&&f>.1*h){O=K;break}}O?(O+="B",c=" "):h=1;f=Math.round(u/h*10)/10+c+O}return f},iQC="Y Z E P T G M K  m u n".split(" "),v8G={"":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};_.r1H=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 h1={};RegExp.prototype.hasOwnProperty("sticky");var $xn=function(f){f=String(f);for(var R=function(O,c,h){for(var l=Math.min(c.length-h,O.length),K=0;K<l;K++){var q=c[h+K];if(O[K]!==("A"<=q&&q<="Z"?q.toLowerCase():q))return!1}return!0},u=0;(u=f.indexOf("<",u))!=-1;){if(R("\x3c/script",f,u)||R("\x3c!--",f,u))return"zSoyz";
u+=1}return f};var MK={default:"__default"};var CO2=Object.prototype.hasOwnProperty;Qyt.prototype=Object.create(null);var v5=Ncl();var Vt=null;var MIB=function(f){this.created=[];this.deleted=[];this.node=f};var POh=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var f=this,R=f;f;)R=f,f=f.parentNode;return R};var bBB=function(f,R){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=f;this.key=R;this.text=void 0};var Go=null,BQ=null,U$=null,xn=null,zcl=[],JAe=jyq,s$=[],nc=[],vrP=function(f){return Ux2(function(R,u,O){U$=BQ=R;BQ=null;u(O);DxP(null);BQ=U$;U$=U$.parentNode;return R},f)}(),Yx7=function(f){return Ux2(function(R,u,O){var c={nextSibling:R};
BQ=c;u(O);U$&&DxP(R.nextSibling);return c===BQ?null:BQ},f)}();var Yn=[],G2D=0;var vQ=new Qyt;var bi=new Qyt;var fLF=Ncl(),SL2=fLF[MK.default],gMB=fLF.style,xx2=["focusin","focusout"];var Jre=function(){},ENB=function(){},MVn=function(){},TJq=function(){};var rP=Symbol("Xb");var rAq,iBP=vMP;var lt=Symbol("Yb");var FY7={};var I82=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(" ")),
H0n=new Set(["a","font","script","style","title"]);var wv={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var mw=null,QM=function(f,R){Wh.call(this,f);var u=this;this.functionComponent=R;this.hooks=[];this.hookCounter=0;this.disposeEffects=D1(function(O){u.effectContext=O;_.jN(function(){dBn(u,u.el)})},u4.alwaysTrackContexts||!!Y$)};
_.y(QM,Wh);QM.prototype.render=function(f){var R=mw;mw=this;this.hookCounter=0;var u=XT(FM),O=r9(this.effectContext);try{return v80("render",this.componentName),this.functionComponent(f)}finally{iQ5("render",this.componentName),r9(O),XT(u),mw=R}};
_.Vy.Object.defineProperties(QM.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return vxB(this.functionComponent)}}});var Pc7=Symbol("lc"),jhl=function(f,R,u){this.kind=f;this.props=R;this.children=u};
_.y(jhl,A1);jhl.prototype.render=function(){return p5e(this.kind,this.props,this.children)};
jhl.prototype.getChildren=function(){return this.children};var eM7=[];thl=function(f){throw Error("sb`"+f.debugName);};
(function(){var f=Vt;Vt=function(R){f==null||f(R);GLh(R)}})();var RDA=void 0,utC={},Ott=new WeakMap,BJh={getComponent:function(f){if(f.hasAttribute("ng-version"))return utC;if(!f.__wizComponent)return null;f=f.__wizComponent;Ott.set(f.propsAndState,f);return f.propsAndState},
getDirectiveMetadata:function(f){if(f===utC)return{framework:"wiz",name:"<Root>",props:{}};f=Ott.get(f);if(!f)throw Error("mc");return{framework:"wiz",name:f.name,props:Object.fromEntries(Object.keys(f.props).map(function(R){return[R,R]}))}},
"\u0275setProfiler":function(f){var R;(R=RDA)==null||R();RDA=$vD(function(){f(2)})},
isSignal:function(f){return typeof f==="function"&&f[kn]!==void 0}};_.Q.debugName="RlDudd";var xBn={nonNullableCondIsNull:function(){return Error("qc")}};var VVn=function(){this.map=new Map};
VVn.prototype.push=function(f,R){var u=this.map;u.has(f)&&(this.multi||(this.multi=new Map),this.multi.set(R,u.get(f)));u.set(f,R)};
VVn.prototype.pop=function(f){var R=this.map,u=R.get(f),O;u!==void 0&&((O=this.multi)==null?0:O.has(u))?(R.set(f,this.multi.get(u)),this.multi.delete(u)):R.delete(f);return u};_.EC.debugName="nsTGHd";_.t1.debugName="tbhMcf";_.CQ.debugName="zyMFzb";_.yM.debugName="vI1rtf";var fan={LOG_NULL_EL_REF_VALUE:function(){return Error("rc")},
OUT_OF_ORDER_HOOK_CALL:function(f){return Error("sc`"+f)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(f,R){return Error("wc`"+f+"`"+R)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(f){return Error("xc`"+f)},
USE_ELEMENT_NOT_ASSIGNED:function(f){return Error("yc`"+String(f))}};rAq=DBX;var cZP=Symbol("zc");Ccn({beforeRender:function(f){var R=r9(f.effectContext);try{var u;((u=f.__syncEffects)==null?0:u.length)&&hhq(f.__syncEffects)}finally{r9(R)}},
didPatch:function(f){var R=r9(f.effectContext);try{var u;((u=f.__syncEffects)==null?0:u.length)&&hhq(f.__syncEffects)}finally{r9(R)}},
didUnmount:function(f){var R;((R=f.hooks)==null?0:R.length)&&f.hooks.forEach(XCP)}});var csH,Xfl,hDk;csH=_.Oe.window;_.J1=(csH==null?void 0:(Xfl=csH.yt)==null?void 0:Xfl.config_)||(csH==null?void 0:(hDk=csH.ytcfg)==null?void 0:hDk.data_)||{};_.V4("yt.config_",_.J1);var ZtG={},KF7=[];_.ts=function(f){var R=_.yK.apply(1,arguments);var u=Error.call(this,f);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.args=[].concat(_.yq(R));Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(_.ts,Error);var ktt=function(f,R,u){this.actionName=f;this.optionalAction=R===void 0?!1:R;this.args=u===void 0?null:u;this.returnValue=[]};_.Y=function(f){this.name=f};_.GL=new _.Y("signalAction");var Cqn=/^[\w.]*$/,wCn={q:!0,search_query:!0},FFX=String(aaB);var nW;nW=Symbol("Ac");_.Vi=function(f){this.name=f};
_.Vi.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var yZn=function(f){this.key=f},LFX=function(f){this.deferredKey=f},Ne5=function(){var f=this;
this.providers=new Map;this.JSC$8410_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(f.providers)}}};
Ne5.prototype.addProvider=function(f){this.providers.set(f.provide,f);var R=this.JSC$8410_deferred.get(f.provide);if(R)try{R.resolver(this.resolve(f.provide))}catch(u){R.rejector(u)}};
Ne5.prototype.resolve=function(f){return f instanceof LFX?lLi(this,f):f instanceof yZn?kAH(this,f.key,[],!0):kAH(this,f,[])};
var lLi=function(f,R){R=R.deferredKey;if(f.JSC$8410_deferred.has(R))return f.JSC$8410_deferred.get(R).promise;var u={};u.promise=new Promise(function(O,c){u.resolver=O;u.rejector=c});
f.JSC$8410_deferred.set(R,u);return u.promise},kAH=function(f,R,u,O){O=O===void 0?!1:O;
if(u.indexOf(R)>-1)throw Error("Bc`"+R);if(f.cachedValues.has(R))return f.cachedValues.get(R);if(!f.providers.has(R)){if(O)return;throw Error("Cc`"+R);}O=f.providers.get(R);u.push(R);if(O.useValue!==void 0)var c=O.useValue;else if(O.useFactory)c=O[nW]?K$A(f,O[nW],u):[],c=O.useFactory.apply(O,_.yq(c));else if(O.useClass){c=O.useClass;var h=c[nW]?K$A(f,c[nW],u):[];c=new (Function.prototype.bind.apply(c,[null].concat(_.yq(h))))}else throw Error("Dc`"+R);u.pop();O.skipCache||f.cachedValues.set(R,c);return c},
K$A=function(f,R,u){return R?R.map(function(O){return O instanceof yZn?kAH(f,O.key,u,!0):kAH(f,O,u)}):[]};var d15;var B5=new _.Vi("ENDPOINT_HANDLER_TOKEN");_.oh=new _.Y("urlEndpoint");var qbk=function(){this.data=[];this.cachedPackedInt52=-1};
qbk.prototype.set=function(f,R){R=R===void 0?!0:R;0<=f&&f<52&&Number.isInteger(f)&&this.data[f]!==R&&(this.data[f]=R,this.cachedPackedInt52=-1)};
qbk.prototype.get=function(f){return!!this.data[f]};
var AsY=function(f){f.cachedPackedInt52===-1&&(f.cachedPackedInt52=f.data.reduce(function(R,u,O){return R+(u?Math.pow(2,O):0)},0));
return f.cachedPackedInt52};var GOq=function(f){var R=aLl;f=f===void 0?_.Ph("yt.ads.biscotti.lastId_")||"":f;var u=Object,O=u.assign,c={};c.dt=wlF;c.flash="0";a:{try{var h=R.JSC$8416_win_.top.location.href}catch(mP){h=2;break a}h=h?h===R.doc_.location.href?0:1:2}c=(c.frm=h,c);try{c.u_tz=-(new Date).getTimezoneOffset();var l=l===void 0?If:l;try{var K=l.history.length}catch(mP){K=0}c.u_his=K;var q;c.u_h=(q=If.screen)==null?void 0:q.height;var F;c.u_w=(F=If.screen)==null?void 0:F.width;var w;c.u_ah=(w=If.screen)==null?void 0:w.availHeight;
var m;c.u_aw=(m=If.screen)==null?void 0:m.availWidth;var W;c.u_cd=(W=If.screen)==null?void 0:W.colorDepth}catch(mP){}K=R.JSC$8416_win_;try{var C=K.screenX;var d=K.screenY}catch(mP){}try{var p=K.outerWidth;var J=K.outerHeight}catch(mP){}try{var M=K.innerWidth;var P=K.innerHeight}catch(mP){}try{var g=K.screenLeft;var x=K.screenTop}catch(mP){}try{M=K.innerWidth,P=K.innerHeight}catch(mP){}try{var fh=K.screen.availWidth;var V=K.screen.availTop}catch(mP){}C=[g,x,C,d,fh,V,p,J,M,P];d=W1n(!1,R.JSC$8416_win_.top);
p={};var ZD=ZD===void 0?_.Oe:ZD;J=new qbk;"SVGElement"in ZD&&"createElementNS"in ZD.document&&J.set(0);M=Q7C();M["allow-top-navigation-by-user-activation"]&&J.set(1);M["allow-popups-to-escape-sandbox"]&&J.set(2);ZD.crypto&&ZD.crypto.subtle&&J.set(3);"TextDecoder"in ZD&&"TextEncoder"in ZD&&J.set(4);ZD=AsY(J);R=(p.bc=ZD,p.bih=d.height,p.biw=d.width,p.brdim=C.join(),p.vis=ORt(R.doc_),p.wgl=!!If.WebGLRenderingContext,p);u=O.call(u,c,R);u.ca_type="image";f&&(u.bid=f);return u},aLl=new function(){var f=
window.document;
this.JSC$8416_win_=window;this.doc_=f};
_.V4("yt.ads_.signals_.getAdSignalsString",function(f){return m1t(GOq(f))});_.rI();navigator.userAgent.indexOf(" (CrKey ");var JZ7="XMLHttpRequest"in _.Oe?function(){return new XMLHttpRequest}:null;var F$f="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),wfC=[].concat(_.yq(F$f),["client_dev_set_cookie"]);var ehX={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"},HT0="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(_.yq(F$f)),V2B=!1,M2P=_.BeP,gVn=U1X;var Wi0=[{messageFn:function(f){return"Cannot read property '"+f.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(f){return"Cannot call '"+f.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(f){return f.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var mvA={messageWeights:[],callbackWeights:[{callback:rZn,weight:500},{callback:fvn,weight:500}]};var QVi=function(){this.callbackWeights=[];this.messageWeights=[]},W$A,QFe=function(){if(!W$A){var f=W$A=new QVi;
f.messageWeights.length=0;f.callbackWeights.length=0;m6e(f,mvA)}return W$A},m6e=function(f,R){R.messageWeights&&f.messageWeights.push.apply(f.messageWeights,R.messageWeights);
R.callbackWeights&&f.callbackWeights.push.apply(f.callbackWeights,R.callbackWeights)};_.f6(_.aV,_.d9);_.aV.prototype.subscribe=function(f,R,u){var O=this.topics_[f];O||(O=this.topics_[f]=[]);var c=this.JSC$8440_key_;this.subscriptions_[c]=f;this.subscriptions_[c+1]=R;this.subscriptions_[c+2]=u;this.JSC$8440_key_=c+3;O.push(c);return c};
var Exf=function(f){var R=y45,u=!1,O=R.subscribe("handleError",function(c){u||(u=!0,this.unsubscribeByKey(O),f.apply(void 0,arguments))},R)};
_.aV.prototype.unsubscribe=function(f,R,u){if(f=this.topics_[f]){var O=this.subscriptions_;if(f=f.find(function(c){return O[c+1]==R&&O[c+2]==u}))return this.unsubscribeByKey(f)}return!1};
_.aV.prototype.unsubscribeByKey=function(f){var R=this.subscriptions_[f];if(R){var u=this.topics_[R];this.publishDepth_!=0?(this.pendingKeys_.push(f),this.subscriptions_[f+1]=function(){}):(u&&_.v0(u,f),delete this.subscriptions_[f],delete this.subscriptions_[f+1],delete this.subscriptions_[f+2])}return!!R};
_.aV.prototype.publish=function(f,R){var u=this.topics_[f];if(u){var O=Array(arguments.length-1),c=arguments.length,h;for(h=1;h<c;h++)O[h-1]=arguments[h];if(this.async_)for(h=0;h<u.length;h++)c=u[h],thF(this.subscriptions_[c+1],this.subscriptions_[c+2],O);else{this.publishDepth_++;try{for(h=0,c=u.length;h<c&&!this.isDisposed();h++){var l=u[h];this.subscriptions_[l+1].apply(this.subscriptions_[l+2],O)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;u=this.pendingKeys_.pop();)this.unsubscribeByKey(u)}}return h!=
0}return!1};
var thF=function(f,R,u){_.Wb(function(){f.apply(R,u)})};
_.aV.prototype.clear=function(f){if(f){var R=this.topics_[f];R&&(R.forEach(this.unsubscribeByKey,this),delete this.topics_[f])}else this.subscriptions_.length=0,this.topics_={}};
_.aV.prototype.getCount=function(f){if(f){var R=this.topics_[f];return R?R.length:0}f=0;for(R in this.topics_)f+=this.getCount(R);return f};
_.aV.prototype.disposeInternal=function(){_.aV.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var y45=new _.aV;var cR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(cR,_.e5);cR.prototype.getColdHashData=function(){return _.bH(this,3)};
cR.prototype.getHotHashData=function(){return _.bH(this,5)};
cR.prototype.setHotHashData=function(f){return _.FH(this,5,f)};var FxD=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(FxD,_.e5);var osn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(osn,_.e5);_.X=osn.prototype;_.X.getDeviceId=function(){return _.bH(this,6)};
_.X.getExperimentIds=function(f){var R=_.CE(this,9,_.Na,3,!0);ok(R,f);return R[f]};
_.X.getPlayerType=function(){return _.p6(this,36)};
_.X.setHomeGroupInfo=function(f){return _.OO(this,81,f)};
_.X.clearLocationPlayabilityToken=function(){return _.OL(this,89)};var mY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(mY,_.e5);mY.prototype.setKey=function(f){return _.FH(this,1,f)};
mY.prototype.getValue=function(){return DY(this,2,SU7)};
var SU7=[2,3,4,5,6];var CZi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(CZi,_.e5);CZi.prototype.setTrackingParams=function(f){return _.OL(this,1,_.eY(f,!1))};var xMt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(xMt,_.e5);var Qpt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Qpt,_.e5);Qpt.prototype.getExperimentIds=function(f){var R=_.CE(this,5,_.Lm,3,!0);ok(R,f);return R[f]};var tr=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(tr,_.e5);tr.prototype.getToken=function(){return _.w9(this,2)};
tr.prototype.setToken=function(f){return _.FH(this,2,f)};var W5=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(W5,_.e5);W5.prototype.setSafetyMode=function(f){return _.uO(this,5,f)};var wJ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(wJ,_.e5);wJ.prototype.setClient=function(f){return _.OO(this,1,f)};var m52={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 w_l;_.bj=function(){var f=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Oe.addEventListener("beforeinstallprompt",function(R){R.preventDefault();f.deferredInstallPrompt=R});
_.Oe.addEventListener("appinstalled",function(){f.appInstalledEventFired=!0},{once:!0})};
w_l=function(){if(!_.Oe.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Oe.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Oe.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Oe.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Oe.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(f){return"WEB_DISPLAY_MODE_UNKNOWN"}};var ta7=function(){this.syncHeaders=!0},ClD=function(f){var R={},u=[];
"USER_SESSION_ID"in _.J1&&u.push({key:"u",value:_.Tf("USER_SESSION_ID")});if(u=xqn(u))R.Authorization=u,u=f=f==null?void 0:f.sessionIndex,u===void 0&&(u=Number(_.Tf("SESSION_INDEX",0)),u=isNaN(u)?0:u),_.E("voice_search_auth_header_removal")||(R["X-Goog-AuthUser"]=u.toString()),"INNERTUBE_HOST_OVERRIDE"in _.J1||(R["X-Origin"]=window.location.origin),f===void 0&&"DELEGATED_SESSION_ID"in _.J1&&(R["X-Goog-PageId"]=_.Tf("DELEGATED_SESSION_ID"));return R};var ysf={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Yv=_.Ph("ytglobal.prefsUserPrefsPrefs_")||{},dvt;_.V4("ytglobal.prefsUserPrefsPrefs_",Yv);_.vs=function(){this.cookieName=_.Tf("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Tf("ALT_PREF_COOKIE_DOMAIN","youtube.com");var f=_.wU.get(this.cookieName,void 0);f&&this.parse(f)};
_.Qu=function(){dvt||(dvt=new _.vs);return dvt};
_.vs.prototype.get=function(f,R){NUY(f);L$C(f);f=Yv[f]!==void 0?Yv[f].toString():null;return f!=null?f:R?R:""};
_.vs.prototype.set=function(f,R){NUY(f);L$C(f);if(R==null)throw Error("Gc");Yv[f]=R.toString()};
_.vs.prototype.getFlag=function(f){return!!((btl("f"+(Math.floor(f/31)+1))||0)&1<<f%31)};
_.W_=function(f,R,u){f="f"+(Math.floor(R/31)+1);R=1<<R%31;var O=btl(f)||0;O=u?O|R:O&~R;O===0?delete Yv[f]:(u=O.toString(16),Yv[f]=u.toString())};
_.vs.prototype.remove=function(f){NUY(f);L$C(f);delete Yv[f]};
_.vs.prototype.save=function(){var f=!0;_.E("web_secure_pref_cookie_killswitch")&&(f=!1);_.m$(this.cookieName,this.dump(),63072E3,this.cookieDomain,f)};
_.vs.prototype.clear=function(){_.dq.clear(Yv)};
_.vs.prototype.dump=function(){var f=[],R;for(R in Yv)Yv.hasOwnProperty(R)&&f.push(R+"="+encodeURIComponent(String(Yv[R])));return f.join("&")};
var L$C=function(f){if(/^f([1-9][0-9]*)$/.test(f))throw Error("Hc`"+f);},NUY=function(f){if(!/^\w+$/.test(f))throw Error("Ic`"+f);
},btl=function(f){f=Yv[f]!==void 0?Yv[f].toString():null;
return f!=null&&/^[A-Fa-f0-9]+$/.test(f)?parseInt(f,16):null};
_.vs.prototype.parse=function(f){f=decodeURIComponent(f).split("&");for(var R=0;R<f.length;R++){var u=f[R].split("="),O=u[0];(u=u[1])&&(Yv[O]=u.toString())}};var k45={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"},Wxn={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},EE0={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},qm2={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var ue;_.iz=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.dJ=function(f,R,u){return f.addJob(R,0,u)};
_.iz.prototype.addLowPriorityJob=function(f,R){return this.addJob(f,1,R)};
_.mQ=function(f,R,u){return f.addJob(R,2,u)};
_.Cr=function(f,R,u){return f.addJob(R,3,u)};
_.Oz=function(f,R,u){return f.addJob(R,4,u)};
ue=function(f){var R=_.Ph("yt.scheduler.instance.addImmediateJob");R?R(f):f()};
_.iz.prototype.debounce=function(f,R,u){var O=this,c=0,h=function(){c&&O.cancelJob(c);c=O.addJob(f,R,u);O.cancelDebouncedJobMap.set(h,c)};
return h};
_.iz.prototype.cancelThrottle=function(f){(f=this.cancelThrottledJobMap.get(f))&&f()};var rw=function(){_.iz.apply(this,arguments)};
_.y(rw,_.iz);_.LS=function(){rw.instance||(rw.instance=new rw);return rw.instance};
rw.prototype.addJob=function(f,R,u){u!==void 0&&Number.isNaN(Number(u))&&(u=void 0);var O=_.Ph("yt.scheduler.instance.addJob");return O?O(f,R,u):u===void 0?(f(),NaN):_.ZL(f,u||0)};
rw.prototype.cancelJob=function(f){if(f===void 0||!Number.isNaN(Number(f))){var R=_.Ph("yt.scheduler.instance.cancelJob");R?R(f):_.kx(f)}};
rw.prototype.start=function(){var f=_.Ph("yt.scheduler.instance.start");f&&f()};
rw.prototype.pause=function(){var f=_.Ph("yt.scheduler.instance.pause");f&&f()};
_.JA=_.LS();_.y4.prototype.set=function(f,R){R===void 0?this.mechanism.remove(f):this.mechanism.set(f,(0,_.d4)(R))};
_.y4.prototype.get=function(f){try{var R=this.mechanism.get(f)}catch(u){return}if(R!==null)try{return JSON.parse(R)}catch(u){throw"Storage: Invalid value was encountered";}};
_.y4.prototype.remove=function(f){this.mechanism.remove(f)};var f5=function(f){this.mechanism=f};
_.f6(f5,_.y4);var pfk=function(f){this.data=f},jVk=function(f){return f===void 0||f instanceof pfk?f:new pfk(f)};
f5.prototype.set=function(f,R){f5.superClass_.set.call(this,f,jVk(R))};
f5.prototype.getWrapper=function(f){f=f5.superClass_.get.call(this,f);if(f===void 0||f instanceof Object)return f;throw"Storage: Invalid value was encountered";};
f5.prototype.get=function(f){if(f=this.getWrapper(f)){if(f=f.data,f===void 0)throw"Storage: Invalid value was encountered";}else f=void 0;return f};_.f6(dU,f5);_.Dvf=function(f){var R=f.creation;f=f.expiration;return!!f&&f<_.rI()||!!R&&R>_.rI()};
dU.prototype.set=function(f,R,u){if(R=jVk(R)){if(u){if(u<_.rI()){dU.prototype.remove.call(this,f);return}R.expiration=u}R.creation=_.rI()}dU.superClass_.set.call(this,f,R)};
dU.prototype.getWrapper=function(f,R){var u=dU.superClass_.getWrapper.call(this,f);if(u)if(!R&&_.Dvf(u))dU.prototype.remove.call(this,f);else return u};var Rz=function(){};
Rz.prototype.next=function(){return u0};
var u0={done:!0,value:void 0},OQ=function(f){return{value:f,done:!1}};
Rz.prototype.__iterator__=function(){return this};
_.JsA=function(f){if(f instanceof Rz)return f;if(typeof f.__iterator__=="function")return f.__iterator__(!1);if(_.Rk(f)){var R=0,u=new Rz;u.next=function(){for(;;){if(R>=f.length)return u0;if(R in f)return OQ(f[R++]);R++}};
return u}throw Error("Jc");};var zDG=function(f){if(f instanceof cq||f instanceof XS||f instanceof hV)return f;if(typeof f.next=="function")return new cq(function(){return f});
if(typeof f[Symbol.iterator]=="function")return new cq(function(){return f[Symbol.iterator]()});
if(typeof f.__iterator__=="function")return new cq(function(){return f.__iterator__()});
throw Error("Kc");},cq=function(f){this.func_=f};
cq.prototype.__iterator__=function(){return new XS(this.func_())};
cq.prototype[Symbol.iterator]=function(){return new hV(this.func_())};
cq.prototype.toEs6=function(){return new hV(this.func_())};
var XS=function(f){this.JSC$8524_iter_=f};
_.y(XS,Rz);XS.prototype.next=function(){return this.JSC$8524_iter_.next()};
XS.prototype[Symbol.iterator]=function(){return new hV(this.JSC$8524_iter_)};
XS.prototype.toEs6=function(){return new hV(this.JSC$8524_iter_)};
var hV=function(f){cq.call(this,function(){return f});
this.JSC$8527_iter_=f};
_.y(hV,cq);hV.prototype.next=function(){return this.JSC$8527_iter_.next()};var TUY=function(){};var Z2=function(){};
_.f6(Z2,TUY);Z2.prototype.getCount=function(){for(var f=0,R=_.Z(this),u=R.next();!u.done;u=R.next())f++;return f};
Z2.prototype[Symbol.iterator]=function(){return zDG(this.__iterator__(!0)).toEs6()};
Z2.prototype.clear=function(){var f=Array.from(this);f=_.Z(f);for(var R=f.next();!R.done;R=f.next())this.remove(R.value)};_.f6(Nv,Z2);_.X=Nv.prototype;_.X.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var f=this.storage_;if(f)try{f.setItem("__sak","1");f.removeItem("__sak");var R=!0}catch(u){R=u instanceof DOMException&&(u.name==="QuotaExceededError"||u.code===22||u.code===1014||u.name==="NS_ERROR_DOM_QUOTA_REACHED")&&f&&f.length!==0}else R=!1;this.cachedIsStorageAvailable_=R}return this.cachedIsStorageAvailable_};
_.X.set=function(f,R){l0(this);try{this.storage_.setItem(f,R)}catch(u){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.X.get=function(f){l0(this);f=this.storage_.getItem(f);if(typeof f!=="string"&&f!==null)throw"Storage mechanism: Invalid value was encountered";return f};
_.X.remove=function(f){l0(this);this.storage_.removeItem(f)};
_.X.getCount=function(){l0(this);return this.storage_.length};
_.X.__iterator__=function(f){l0(this);var R=0,u=this.storage_,O=new Rz;O.next=function(){if(R>=u.length)return u0;var c=u.key(R++);if(f)return OQ(c);c=u.getItem(c);if(typeof c!=="string")throw"Storage mechanism: Invalid value was encountered";return OQ(c)};
return O};
_.X.clear=function(){l0(this);this.storage_.clear()};
_.X.key=function(f){l0(this);return this.storage_.key(f)};
var l0=function(f){if(f.storage_==null)throw Error("Lc");f.isAvailable()||c0(Error("Lc"))};_.f6(av0,Nv);_.f6(Fal,Nv);_.f6(Lt,Z2);Lt.prototype.set=function(f,R){this.mechanism_.set(this.JSC$8542_prefix_+f,R)};
Lt.prototype.get=function(f){return this.mechanism_.get(this.JSC$8542_prefix_+f)};
Lt.prototype.remove=function(f){this.mechanism_.remove(this.JSC$8542_prefix_+f)};
Lt.prototype.__iterator__=function(f){var R=this.mechanism_[Symbol.iterator](),u=this,O=new Rz;O.next=function(){var c=R.next();if(c.done)return c;for(c=c.value;c.slice(0,u.JSC$8542_prefix_.length)!=u.JSC$8542_prefix_;){c=R.next();if(c.done)return c;c=c.value}return OQ(f?c.slice(u.JSC$8542_prefix_.length):u.mechanism_.get(c))};
return O};_.Mx=function(f){this.expiringStorage_=(f=_.wc7(f))?new dU(f):null;this.JSC$8546_domain_=document.domain||window.location.hostname};
_.Mx.prototype.set=function(f,R,u,O){u=u||31104E3;this.remove(f);if(this.expiringStorage_)try{this.expiringStorage_.set(f,R,Date.now()+u*1E3);return}catch(h){}var c="";if(O)try{c=escape((0,_.d4)(R))}catch(h){return}else c=escape(R);_.m$(f,c,u,this.JSC$8546_domain_)};
_.Mx.prototype.get=function(f,R){var u=void 0,O=!this.expiringStorage_;if(!O)try{u=this.expiringStorage_.get(f)}catch(c){O=!0}if(O&&(u=_.wU.get(f,void 0))&&(u=unescape(u),R))try{u=JSON.parse(u)}catch(c){this.remove(f),u=void 0}return u};
_.Mx.prototype.remove=function(f){this.expiringStorage_&&this.expiringStorage_.remove(f);_.hae(f,"/",this.JSC$8546_domain_)};
_.Mx.prototype.getCreationTime=function(f){return this.expiringStorage_&&(f=(this.expiringStorage_.getWrapper(f)||{}).creation,typeof f==="number")?f:null};var Q$5=function(){var f;return function(){f||(f=new _.Mx("ytidb"));return f}}();var E77;_.pt=[];E77=!1;var eat=td2||CEl;var kw={},HtY=(kw.AUTH_INVALID="No user identifier specified.",kw.EXPLICIT_ABORT="Transaction was explicitly aborted.",kw.IDB_NOT_SUPPORTED="IndexedDB is not supported.",kw.MISSING_INDEX="Index not created.",kw.MISSING_OBJECT_STORES="Object stores not created.",kw.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",kw.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",kw.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",kw.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",kw.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",kw.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",kw.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",kw),K5={},ILt=(K5.AUTH_INVALID="ERROR",K5.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",K5.EXPLICIT_ABORT="IGNORED",
K5.IDB_NOT_SUPPORTED="ERROR",K5.MISSING_INDEX="WARNING",K5.MISSING_OBJECT_STORES="ERROR",K5.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",K5.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",K5.QUOTA_EXCEEDED="WARNING",K5.QUOTA_MAYBE_EXCEEDED="WARNING",K5.UNKNOWN_ABORT="WARNING",K5.INCOMPATIBLE_DB_VERSION="WARNING",K5),q_={},Mhk=(q_.AUTH_INVALID=!1,q_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,q_.EXPLICIT_ABORT=!1,q_.IDB_NOT_SUPPORTED=!1,q_.MISSING_INDEX=!1,q_.MISSING_OBJECT_STORES=!1,q_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,q_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,q_.QUOTA_EXCEEDED=!1,q_.QUOTA_MAYBE_EXCEEDED=!0,q_.UNKNOWN_ABORT=!0,q_.INCOMPATIBLE_DB_VERSION=!1,q_),Hf=function(f,R,u,O,c){R=R===void 0?{}:R;u=u===void 0?HtY[f]:u;O=O===void 0?ILt[f]:O;c=c===void 0?Mhk[f]:c;_.ts.call(this,u,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:f},R));this.type=f;this.message=u;this.level=O;this.retryable=c;Object.setPrototypeOf(this,Hf.prototype)};
_.y(Hf,_.ts);var PZi=function(f,R){Hf.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:R,foundObjectStores:f},HtY.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,PZi.prototype)};
_.y(PZi,Hf);var ds2=function(f,R){var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.index=f;this.objectStore=R;Object.setPrototypeOf(this,ds2.prototype)};
_.y(ds2,Error);var Nu7=["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 Ub=function(f){this.executor=f},Pf=function(f){var R=this;
this.state={status:"PENDING"};this.JSC$8574_onFulfilled=[];this.JSC$8574_onRejected=[];f=f.executor;var u=function(c){if(R.state.status==="PENDING"){R.state={status:"FULFILLED",value:c};c=_.Z(R.JSC$8574_onFulfilled);for(var h=c.next();!h.done;h=c.next())h=h.value,h()}},O=function(c){if(R.state.status==="PENDING"){R.state={status:"REJECTED",
reason:c};c=_.Z(R.JSC$8574_onRejected);for(var h=c.next();!h.done;h=c.next())h=h.value,h()}};
try{f(u,O)}catch(c){O(c)}};
Pf.all=function(f){return new Pf(new Ub(function(R,u){var O=[],c=f.length;c===0&&R(O);for(var h={i$jscomp$505:0};h.i$jscomp$505<f.length;h={i$jscomp$505:h.i$jscomp$505},++h.i$jscomp$505)Pf.resolve(f[h.i$jscomp$505]).then(function(l){return function(K){O[l.i$jscomp$505]=K;c--;c===0&&R(O)}}(h)).catch(function(l){u(l)})}))};
Pf.resolve=function(f){return new Pf(new Ub(function(R,u){f instanceof Pf?f.then(R,u):R(f)}))};
Pf.reject=function(f){return new Pf(new Ub(function(R,u){u(f)}))};
Pf.prototype.then=function(f,R){var u=this,O=f!=null?f:pc7,c=R!=null?R:baP;return new Pf(new Ub(function(h,l){u.state.status==="PENDING"?(u.JSC$8574_onFulfilled.push(function(){UvC(u,u,O,h,l)}),u.JSC$8574_onRejected.push(function(){eDI(u,u,c,h,l)})):u.state.status==="FULFILLED"?UvC(u,u,O,h,l):u.state.status==="REJECTED"&&eDI(u,u,c,h,l)}))};
Pf.prototype.catch=function(f){return this.then(void 0,f)};
var UvC=function(f,R,u,O,c){try{if(f.state.status!=="FULFILLED")throw Error("Oc");var h=u(f.state.value);h instanceof Pf?GAl(f,R,h,O,c):O(h)}catch(l){c(l)}},eDI=function(f,R,u,O,c){try{if(f.state.status!=="REJECTED")throw Error("Pc");
var h=u(f.state.reason);h instanceof Pf?GAl(f,R,h,O,c):O(h)}catch(l){c(l)}},GAl=function(f,R,u,O,c){R===u?c(new TypeError("Qc")):u.then(function(h){h instanceof Pf?GAl(f,R,h,O,c):O(h)},function(h){c(h)})};var AV;AV=window;_.iZ=AV.ytcsi&&AV.ytcsi.now?AV.ytcsi.now:AV.performance&&AV.performance.timing&&AV.performance.now&&AV.performance.timing.navigationStart?function(){return AV.performance.timing.navigationStart+AV.performance.now()}:function(){return(new Date).getTime()};var GA=function(f,R){this.JSC$8586_wrapped=f;this.options=R;this.transactionCount=0;this.startedMs=Math.round((0,_.iZ)());this.hasUnknownAbortedTransaction=!1},xvY,Sbk,w5,sVG;
GA.prototype.add=function(f,R,u){return _.Sh(this,[f],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore(f).add(R,u)})};
GA.prototype.clear=function(f){return _.Sh(this,[f],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore(f).clear()})};
GA.prototype.close=function(){this.JSC$8586_wrapped.close();var f;((f=this.options)==null?0:f.closed)&&this.options.closed()};
GA.prototype.count=function(f,R){return _.Sh(this,[f],{mode:"readonly",enableRetries:!0},function(u){return u.objectStore(f).count(R)})};
var UL=function(f,R,u){f=f.JSC$8586_wrapped.createObjectStore(R,u);return new az(f)};
GA.prototype.delete=function(f,R){return _.Sh(this,[f],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore(f).delete(R)})};
var BUH=function(f,R){return _.Sh(f,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore("ResponseStore").index("byInterface").delete(R)})};
GA.prototype.get=function(f,R){return _.Sh(this,[f],{mode:"readonly",enableRetries:!0},function(u){return u.objectStore(f).get(R)})};
GA.prototype.getAll=function(f,R,u){return _.Sh(this,[f],{mode:"readonly",enableRetries:!0},function(O){return O.objectStore(f).getAll(R,u)})};
GA.prototype.put=function(f,R,u){return _.Sh(this,[f],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore(f).put(R,u)})};
GA.prototype.objectStoreNames=function(){return Array.from(this.JSC$8586_wrapped.objectStoreNames)};
_.Sh=function(f,R,u,O){var c,h,l,K,q,F,w,m,W,C,d,p;return _.k(function(J){switch(J.nextAddress){case 1:var M={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof u==="string"?M.mode=u:Object.assign(M,u);c=M;f.transactionCount++;h=c.enableRetries?3:1;l=0;case 2:if(K){J.jumpTo(4);break}l++;q=Math.round((0,_.iZ)());_.cl(J,5);F=f.JSC$8586_wrapped.transaction(R,c.mode);M=new zan(F);M=oxi(M,O);return _.A(J,M,7);case 7:return w=J.yieldResult,m=Math.round((0,_.iZ)()),xvY(f,q,m,l,void 0,
R.join(),c),J.return(w);case 5:W=_.ku(J);C=Math.round((0,_.iZ)());d=LaB(W,f.JSC$8586_wrapped.name,R.join(),f.JSC$8586_wrapped.version);if((p=d instanceof Hf&&!d.retryable)||l>=h)xvY(f,q,C,l,d,R.join(),c),K=d;J.jumpTo(2);break;case 4:return J.return(Promise.reject(K))}})};
xvY=function(f,R,u,O,c,h,l){R=u-R;c?(c instanceof Hf&&(c.type==="QUOTA_EXCEEDED"||c.type==="QUOTA_MAYBE_EXCEEDED")&&DL("QUOTA_EXCEEDED",{dbName:zA(f.JSC$8586_wrapped.name),objectStoreNames:h,transactionCount:f.transactionCount,transactionMode:l.mode}),c instanceof Hf&&c.type==="UNKNOWN_ABORT"&&(u-=f.startedMs,u<0&&u>=2147483648&&(u=0),DL("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:R,transactionCount:f.transactionCount,dbDuration:u}),f.hasUnknownAbortedTransaction=!0),
Sbk(f,!1,O,h,R,l.tag),_.jh(c)):Sbk(f,!0,O,h,R,l.tag)};
Sbk=function(f,R,u,O,c,h){DL("TRANSACTION_ENDED",{objectStoreNames:O,connectionHasUnknownAbortedTransaction:f.hasUnknownAbortedTransaction,duration:c,isSuccessful:R,tryCount:u,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})};
GA.prototype.getVersion=function(){return this.JSC$8586_wrapped.version};
GA.prototype.getName=function(){return this.JSC$8586_wrapped.name};
var az=function(f){this.JSC$8601_wrapped=f};
az.prototype.add=function(f,R){return eh(this.JSC$8601_wrapped.add(f,R))};
az.prototype.autoIncrement=function(){return this.JSC$8601_wrapped.autoIncrement};
az.prototype.clear=function(){return eh(this.JSC$8601_wrapped.clear()).then(function(){})};
var eI=function(f,R,u){f.JSC$8601_wrapped.createIndex(R,u,{unique:!1})};
az.prototype.count=function(f){return eh(this.JSC$8601_wrapped.count(f))};
var $vk=function(f,R){return gU(f,{query:R},function(u){return u.delete().then(function(){return u.continue()})}).then(function(){})};
az.prototype.delete=function(f){return f instanceof IDBKeyRange?$vk(this,f):eh(this.JSC$8601_wrapped.delete(f))};
az.prototype.get=function(f){return eh(this.JSC$8601_wrapped.get(f))};
az.prototype.getAll=function(f,R){return"getAll"in IDBObjectStore.prototype?eh(this.JSC$8601_wrapped.getAll(f,R)):gxC(this,f,R)};
var gxC=function(f,R,u){var O=[];return gU(f,{query:R},function(c){if(!(u!==void 0&&O.length>=u))return O.push(c.getValue()),c.continue()}).then(function(){return O})};
az.prototype.index=function(f){try{return new FS(this.JSC$8601_wrapped.index(f))}catch(R){if(R instanceof Error&&R.name==="NotFoundError")throw new ds2(f,this.JSC$8601_wrapped.name);throw R;}};
az.prototype.getName=function(){return this.JSC$8601_wrapped.name};
az.prototype.keyPath=function(){return this.JSC$8601_wrapped.keyPath};
az.prototype.put=function(f,R){return eh(this.JSC$8601_wrapped.put(f,R))};
var gU=function(f,R,u){f=f.JSC$8601_wrapped.openCursor(R.query,R.direction);return sVG(f).then(function(O){return Jj5(O,u)})},zan=function(f){var R=this;
this.JSC$8609_wrapped=f;this.objectStoreCache=new Map;this.JSC$8609_aborted=!1;this.done=new Promise(function(u,O){R.JSC$8609_wrapped.addEventListener("complete",function(){u()});
R.JSC$8609_wrapped.addEventListener("error",function(c){c.currentTarget===c.target&&O(R.JSC$8609_wrapped.error)});
R.JSC$8609_wrapped.addEventListener("abort",function(){var c=R.JSC$8609_wrapped.error;if(c)O(c);else if(!R.JSC$8609_aborted){c=Hf;for(var h=R.JSC$8609_wrapped.objectStoreNames,l=[],K=0;K<h.length;K++){var q=h.item(K);if(q===null)throw Error("Rc");l.push(q)}c=new c("UNKNOWN_ABORT",{objectStoreNames:l.join(),dbName:R.JSC$8609_wrapped.db.name,mode:R.JSC$8609_wrapped.mode});O(c)}})})},oxi=function(f,R){var u=new Promise(function(O,c){try{R(f).then(function(h){O(h)}).catch(c)}catch(h){c(h),f.abort()}});
return Promise.all([u,f.done]).then(function(O){return _.Z(O).next().value})};
zan.prototype.abort=function(){this.JSC$8609_wrapped.abort();this.JSC$8609_aborted=!0;throw new Hf("EXPLICIT_ABORT");};
zan.prototype.objectStore=function(f){f=this.JSC$8609_wrapped.objectStore(f);var R=this.objectStoreCache.get(f);R||(R=new az(f),this.objectStoreCache.set(f,R));return R};
var FS=function(f){this.JSC$8611_wrapped=f};
FS.prototype.count=function(f){return eh(this.JSC$8611_wrapped.count(f))};
FS.prototype.delete=function(f){return _.rU(this,{query:f},function(R){return R.delete().then(function(){return R.continue()})})};
FS.prototype.get=function(f){return eh(this.JSC$8611_wrapped.get(f))};
FS.prototype.getAll=function(f,R){return"getAll"in IDBIndex.prototype?eh(this.JSC$8611_wrapped.getAll(f,R)):nxt(this,f,R)};
var nxt=function(f,R,u){var O=[];return _.rU(f,{query:R},function(c){if(!(u!==void 0&&O.length>=u))return O.push(c.getValue()),c.continue()}).then(function(){return O})};
FS.prototype.keyPath=function(){return this.JSC$8611_wrapped.keyPath};
FS.prototype.unique=function(){return this.JSC$8611_wrapped.unique};
_.rU=function(f,R,u){f=f.JSC$8611_wrapped.openCursor(R.query===void 0?null:R.query,R.direction===void 0?"next":R.direction);return sVG(f).then(function(O){return Jj5(O,u)})};
w5=function(f,R){this.request=f;this.cursor=R};
sVG=function(f){return eh(f).then(function(R){return R?new w5(f,R):null})};
w5.prototype.continue=function(f){this.cursor.continue(f);return sVG(this.request)};
w5.prototype.delete=function(){return eh(this.cursor.delete()).then(function(){})};
w5.prototype.getValue=function(){return this.cursor.value};
w5.prototype.update=function(f){return eh(this.cursor.update(f))};var mN=function(f,R){this.name=f;this.options=R;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},VhY;
mN.prototype.openDb=function(f,R,u){u=u===void 0?{}:u;return HaB(f,R,u)};
mN.prototype.delete=function(f){f=f===void 0?{}:f;return _.oV(this.name,f)};
VhY=function(f,R){return new Hf("INCOMPATIBLE_DB_VERSION",{dbName:f.name,oldVersion:f.options.version,newVersion:R})};
_.xx=function(f,R){if(!R)throw Mv("openWithToken",zA(f.name));return f.open()};
mN.prototype.open=function(){var f=this;if(!this.isCompatible)throw VhY(this);if(this.connectionPromise)return this.connectionPromise;var R,u=function(){f.connectionPromise===R&&(f.connectionPromise=void 0)},O={blocking:function(h){h.close()},
closed:u,terminated:u,upgrade:this.options.upgrade},c=function(){var h,l,K,q,F,w,m,W,C,d;return _.k(function(p){switch(p.nextAddress){case 1:return l=(h=Error().stack)!=null?h:"",_.cl(p,2),_.A(p,f.openDb(f.name,f.options.version,O),4);case 4:for(var J=K=p.yieldResult,M=f.options,P=[],g=_.Z(Object.keys(M.objectStores)),x=g.next();!x.done;x=g.next()){x=x.value;var fh=M.objectStores[x],V=fh.removedAtVersion===void 0?Number.MAX_VALUE:fh.removedAtVersion;!(J.JSC$8586_wrapped.version>=fh.addedAtVersion)||
J.JSC$8586_wrapped.version>=V||J.JSC$8586_wrapped.objectStoreNames.contains(x)||P.push(x)}q=P;if(q.length===0){p.jumpTo(5);break}F=Object.keys(f.options.objectStores);w=K.objectStoreNames();if(f.timesReopenedToFixMissingObjectStore<_.RV("ytidb_reopen_db_retries",0))return f.timesReopenedToFixMissingObjectStore++,K.close(),_.jh(new Hf("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:f.name,expectedObjectStores:F,foundObjectStores:w})),p.return(c());if(!(f.timesDeletedToFixMissingObjectStore<_.RV("ytidb_remake_db_retries",
1))){p.jumpTo(6);break}f.timesDeletedToFixMissingObjectStore++;return _.A(p,f.delete(),7);case 7:return _.jh(new Hf("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:f.name,expectedObjectStores:F,foundObjectStores:w})),p.return(c());case 6:throw new PZi(w,F);case 5:return p.return(K);case 2:m=_.ku(p);if(m instanceof DOMException?m.name!=="VersionError":"DOMError"in self&&m instanceof DOMError?m.name!=="VersionError":!(m instanceof Object&&"message"in m)||m.message!=="An attempt was made to open a database using a lower version than the existing version."){p.jumpTo(8);
break}return _.A(p,f.openDb(f.name,void 0,Object.assign({},O,{upgrade:void 0})),9);case 9:W=p.yieldResult;C=W.getVersion();if(f.options.version!==void 0&&C>f.options.version+1)throw W.close(),f.isCompatible=!1,VhY(f,C);return p.return(W);case 8:throw u(),m instanceof Error&&!_.E("ytidb_async_stack_killswitch")&&(m.stack=m.stack+"\n"+l.substring(l.indexOf("\n")+1)),LaB(m,f.name,"",(d=f.options.version)!=null?d:-1);}})};
return this.connectionPromise=R=c()};var Ivn=new mN("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(f,R){R(1)&&UL(f,"databases",{keyPath:"actualName"})}});var o7n,G4P=new function(){}(new function(){});new _.lj;var YbC=function(f,R){mN.call(this,f,R);this.options=R;Js(f)};
_.y(YbC,mN);var ia7=function(f,R){var u;return function(){u||(u=new YbC(f,R));return u}};
YbC.prototype.openDb=function(f,R,u){u=u===void 0?{}:u;return(this.options.shared?s$5:g7B)(f,R,Object.assign({},u))};
YbC.prototype.delete=function(f){f=f===void 0?{}:f;return(this.options.shared?v7t:n7P)(this.name,f)};var vxf={},rj2=vf("ytGcfConfig",{objectStores:(vxf.coldConfigStore={addedAtVersion:1},vxf.hotConfigStore={addedAtVersion:1},vxf),shared:!1,upgrade:function(f,R){R(1)&&(eI(UL(f,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),eI(UL(f,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var itf=function(){_.d9.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var f=_.Ph("yt.gcf.config.hotUpdateCallbacks");f?(this.localHotConfigJobQueue=[].concat(_.yq(f)),this.sharedHotConfigJobQueue=f):(this.sharedHotConfigJobQueue=[],_.V4("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.y(itf,_.d9);itf.prototype.disposeInternal=function(){for(var f=_.Z(this.localHotConfigJobQueue),R=f.next();!R.done;R=f.next()){var u=this.sharedHotConfigJobQueue;R=u.indexOf(R.value);R>=0&&u.splice(R,1)}this.localHotConfigJobQueue.length=0;_.d9.prototype.disposeInternal.call(this)};var NB=function(){var f=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new itf;this.TEST_ONLY={initializeConfigDb:function(){f.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return f.coldGlobalConfigGroup},
setHotConfigGroup:function(R){rsE(f,R)},
setHotHashData:function(R){f.setHotHashData(R)},
setColdConfigGroup:function(R){f9f(f,R)},
getColdHashData:function(){return f.coldHashData},
getHotHashData:function(){return f.hotHashData},
getHotConfigGroup:function(){return f.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Rcf()},
getExportedHotConfigGroup:function(){return Qg()},
getExportedColdHashData:function(){return _.Ph("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Ph("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){uNI(f)},
resetInstance:function(){f.setHotHashData(void 0);OBF(f);delete NB.instance},
setDebounceTimer:function(R){f.debounceTimer=R},
getDebounceTimer:function(){return f.debounceTimer}}},cAY=function(){if(!NB.instance){var f=new NB;
NB.instance=f}return NB.instance},ZBA=function(f){var R;
_.k(function(u){if(u.nextAddress==1)return _.E("start_client_gcf")||_.E("delete_gcf_config_db")?_.E("start_client_gcf")?_.A(u,_.Yx(),3):u.jumpTo(2):u.return();u.nextAddress!=2&&((R=u.yieldResult)&&_.Eb()&&!_.E("delete_gcf_config_db")?(f.isConfigDbInitialized=!0,uNI(f)):(XRl(f),hcI(f)));return _.E("delete_gcf_config_db")?_.A(u,X_P(),0):u.jumpTo(0)})},hqn=function(){var f;
return(f=Qg())!=null?f:_.Tf("RAW_HOT_CONFIG_GROUP")},l9t=function(f){var R,u,O,c,h,l;
return _.k(function(K){switch(K.nextAddress){case 1:if(f.hotGlobalConfigGroup)return K.return(Qg());if(!f.isConfigDbInitialized)return R=Mv("getHotConfig IDB not initialized"),_.UC(R),K.return(Promise.reject(R));u=nt();O=_.Tf("TIME_CREATED_MS");if(!u){c=Mv("getHotConfig token error");_.UC(c);K.jumpTo(2);break}return _.A(K,cH2(u),3);case 3:if((h=K.yieldResult)&&h.timestamp>O)return rsE(f,h.config),f.setHotHashData(h.hashData),K.return(Qg());case 2:hcI(f);if(!(u&&f.hotGlobalConfigGroup&&f.hotHashData)){K.jumpTo(4);
break}return _.A(K,R4X(f.hotGlobalConfigGroup,f.hotHashData,u,O),4);case 4:return f.hotGlobalConfigGroup?K.return(Qg()):(l=new _.ts("Config not available in ytConfig"),_.UC(l),K.return(Promise.reject(l)))}})},KnC=function(f){var R,u,O,c,h,l;
return _.k(function(K){switch(K.nextAddress){case 1:if(f.coldGlobalConfigGroup)return K.return(Rcf());if(!f.isConfigDbInitialized)return R=Mv("getColdConfig IDB not initialized"),_.UC(R),K.return(Promise.reject(R));u=nt();O=_.Tf("TIME_CREATED_MS");if(!u){c=Mv("getColdConfig");_.UC(c);K.jumpTo(2);break}return _.A(K,Ov2(u),3);case 3:if((h=K.yieldResult)&&h.timestamp>O)return f9f(f,h.config),k2E(f,h.configData),OBF(f,h.hashData),K.return(Rcf());case 2:XRl(f);if(!(u&&f.coldGlobalConfigGroup&&f.coldHashData&&
f.configData)){K.jumpTo(4);break}return _.A(K,uat(f.coldGlobalConfigGroup,f.coldHashData,f.configData,u,O),4);case 4:return f.coldGlobalConfigGroup?K.return(Rcf()):(l=new _.ts("Config not available in ytConfig"),_.UC(l),K.return(Promise.reject(l)))}})},uNI=function(f){if(!f.hotGlobalConfigGroup||!f.coldGlobalConfigGroup){if(!nt()){var R=Mv("scheduleGetConfigs");
_.UC(R)}f.initJob||(f.initJob=_.JA.addLowPriorityJob(function(){return _.k(function(u){switch(u.nextAddress){case 1:return _.cl(u,2),_.A(u,l9t(f),4);case 4:_.Bf(u,3);break;case 2:_.ku(u);case 3:return _.cl(u,5),_.A(u,KnC(f),7);case 7:_.Bf(u,6);break;case 5:_.ku(u);case 6:f.initJob&&(f.initJob=0),_.KG(u)}})},100))}},Rq5=function(f,R,u){var O,c,h;
return _.k(function(l){switch(l.nextAddress){case 1:if(!_.E("start_client_gcf")){l.jumpTo(0);break}u&&rsE(f,u);f.setHotHashData(R);O=nt();if(!O){l.jumpTo(3);break}if(u){l.jumpTo(4);break}return _.A(l,cH2(O),5);case 5:c=l.yieldResult,u=(h=c)==null?void 0:h.config;case 4:return _.A(l,R4X(u,R,O),3);case 3:if(u)for(var K=u,q=_.Z(f.configUpdateService.sharedHotConfigJobQueue),F=q.next();!F.done;F=q.next())F=F.value,F(K);_.KG(l)}})},uyX=function(f,R,u){var O,c,h,l;
return _.k(function(K){if(K.nextAddress==1){if(!_.E("start_client_gcf"))return K.jumpTo(0);OBF(f,R);return(O=nt())?u?K.jumpTo(4):_.A(K,Ov2(O),5):K.jumpTo(0)}K.nextAddress!=4&&(c=K.yieldResult,u=(h=c)==null?void 0:h.config);if(!u)return K.jumpTo(0);l=u.configData;return _.A(K,uat(u,R,l,O),0)})},d5e=function(){var f=cAY(),R=(0,_.iZ)()-f.debounceTimer;
if(!(f.debounceTimer!==0&&R<_.RV("send_config_hash_timer"))){R=_.Ph("yt.gcf.config.coldConfigData");var u=_.Ph("yt.gcf.config.hotHashData"),O=_.Ph("yt.gcf.config.coldHashData");R&&u&&O&&(f.debounceTimer=(0,_.iZ)());return{coldConfigData:R,hotHashData:u,coldHashData:O}}},XRl=function(f){f9f(f,_.Tf("RAW_COLD_CONFIG_GROUP"));
OBF(f,_.Tf("SERIALIZED_COLD_HASH_DATA"));var R;k2E(f,(R=f.coldGlobalConfigGroup)==null?void 0:R.configData)},hcI=function(f){rsE(f,_.Tf("RAW_HOT_CONFIG_GROUP"));
f.setHotHashData(_.Tf("SERIALIZED_HOT_HASH_DATA"))},rsE=function(f,R){f.hotGlobalConfigGroup=R;
_.V4("yt.gcf.config.hotConfigGroup",f.hotGlobalConfigGroup||null)},f9f=function(f,R){f.coldGlobalConfigGroup=R;
_.V4("yt.gcf.config.coldConfigGroup",f.coldGlobalConfigGroup||null)};
NB.prototype.setHotHashData=function(f){this.hotHashData=f;_.V4("yt.gcf.config.hotHashData",this.hotHashData||null)};
var OBF=function(f,R){f.coldHashData=R;_.V4("yt.gcf.config.coldHashData",f.coldHashData||null)},k2E=function(f,R){f.configData=R;
_.V4("yt.gcf.config.coldConfigData",f.configData||null)},Qg=function(){return _.Ph("yt.gcf.config.hotConfigGroup")},Rcf=function(){return _.Ph("yt.gcf.config.coldConfigGroup")};var qx={},qLE=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";qx.assign=function(f){for(var R=Array.prototype.slice.call(arguments,1);R.length;){var u=R.shift();if(u){if(typeof u!=="object")throw new TypeError("Uc`"+u);for(var O in u)Object.prototype.hasOwnProperty.call(u,O)&&(f[O]=u[O])}}return f};
qx.shrinkBuf=function(f,R){if(f.length===R)return f;if(f.subarray)return f.subarray(0,R);f.length=R;return f};
var AAl={arraySet:function(f,R,u,O,c){if(R.subarray&&f.subarray)f.set(R.subarray(u,u+O),c);else for(var h=0;h<O;h++)f[c+h]=R[u+h]},
flattenChunks:function(f){var R,u;var O=u=0;for(R=f.length;O<R;O++)u+=f[O].length;var c=new Uint8Array(u);O=u=0;for(R=f.length;O<R;O++){var h=f[O];c.set(h,u);u+=h.length}return c}},a9H={arraySet:function(f,R,u,O,c){for(var h=0;h<O;h++)f[c+h]=R[u+h]},
flattenChunks:function(f){return[].concat.apply([],f)}};
qx.setTyped=function(){qLE?(qx.Buf8=Uint8Array,qx.Buf16=Uint16Array,qx.Buf32=Int32Array,qx.assign(qx,AAl)):(qx.Buf8=Array,qx.Buf16=Array,qx.Buf32=Array,qx.assign(qx,a9H))};
qx.setTyped();var FnG=!0;try{new Uint8Array(1)}catch(f){FnG=!1}
var chn=function(f){var R,u,O=f.length,c=0;for(R=0;R<O;R++){var h=f.charCodeAt(R);if((h&64512)===55296&&R+1<O){var l=f.charCodeAt(R+1);(l&64512)===56320&&(h=65536+(h-55296<<10)+(l-56320),R++)}c+=h<128?1:h<2048?2:h<65536?3:4}var K=new qx.Buf8(c);for(R=u=0;u<c;R++)h=f.charCodeAt(R),(h&64512)===55296&&R+1<O&&(l=f.charCodeAt(R+1),(l&64512)===56320&&(h=65536+(h-55296<<10)+(l-56320),R++)),h<128?K[u++]=h:(h<2048?K[u++]=192|h>>>6:(h<65536?K[u++]=224|h>>>12:(K[u++]=240|h>>>18,K[u++]=128|h>>>12&63),K[u++]=
128|h>>>6&63),K[u++]=128|h&63);return K};var $57={};$57=function(f,R,u,O){var c=f&65535|0;f=f>>>16&65535|0;for(var h;u!==0;){h=u>2E3?2E3:u;u-=h;do c=c+R[O++]|0,f=f+c|0;while(--h);c%=65521;f%=65521}return c|f<<16|0};for(var LB={},Wq,wRF=[],mxA=0;mxA<256;mxA++){Wq=mxA;for(var QyY=0;QyY<8;QyY++)Wq=Wq&1?3988292384^Wq>>>1:Wq>>>1;wRF[mxA]=Wq}LB=function(f,R,u,O){u=O+u;for(f^=-1;O<u;O++)f=f>>>8^wRF[(f^R[O])&255];return f^-1};var mn={};mn={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 HvD=[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],Mae=[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],Og5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x57=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tA=Array(576);XN(tA);var CB=Array(60);XN(CB);var FN=Array(512);XN(FN);var ay=Array(256);XN(ay);var IWD=Array(29);XN(IWD);var Plq=Array(30);XN(Plq);var fHq,Rjt,uXq,rHn=!1;var D9;
D9=[new jI(0,0,0,0,function(f,R){var u=65535;for(u>f.pending_buf_size-5&&(u=f.pending_buf_size-5);;){if(f.lookahead<=1){bO(f);if(f.lookahead===0&&R===0)return 1;if(f.lookahead===0)break}f.strstart+=f.lookahead;f.lookahead=0;var O=f.block_start+u;if(f.strstart===0||f.strstart>=O)if(f.lookahead=f.strstart-O,f.strstart=O,yb(f,!1),f.strm.avail_out===0)return 1;if(f.strstart-f.block_start>=f.w_size-262&&(yb(f,!1),f.strm.avail_out===0))return 1}f.insert=0;if(R===4)return yb(f,!0),f.strm.avail_out===0?3:
4;f.strstart>f.block_start&&yb(f,!1);return 1}),
new jI(4,4,8,4,gEe),new jI(4,5,16,8,gEe),new jI(4,6,32,32,gEe),new jI(4,4,16,16,pB),new jI(8,16,32,32,pB),new jI(8,16,128,128,pB),new jI(8,32,128,256,pB),new jI(32,128,258,1024,pB),new jI(32,258,258,4096,pB)];var ivD={};ivD=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 XW2=Object.prototype.toString;
vEn.prototype.push=function(f,R){var u=this.strm,O=this.options.chunkSize;if(this.ended)return!1;var c=R===~~R?R:R===!0?4:0;typeof f==="string"?u.input=chn(f):XW2.call(f)==="[object ArrayBuffer]"?u.input=new Uint8Array(f):u.input=f;u.next_in=0;u.avail_in=u.input.length;do{u.avail_out===0&&(u.output=new qx.Buf8(O),u.next_out=0,u.avail_out=O);f=YJq(u,c);if(f!==1&&f!==0)return WnE(this,f),this.ended=!0,!1;if(u.avail_out===0||u.avail_in===0&&(c===4||c===2))if(this.options.to==="string"){var h=qx.shrinkBuf(u.output,
u.next_out);R=h;h=h.length;if(h<65537&&(R.subarray&&FnG||!R.subarray))R=String.fromCharCode.apply(null,qx.shrinkBuf(R,h));else{for(var l="",K=0;K<h;K++)l+=String.fromCharCode(R[K]);R=l}this.chunks.push(R)}else R=qx.shrinkBuf(u.output,u.next_out),this.chunks.push(R)}while((u.avail_in>0||u.avail_out===0)&&f!==1);if(c===4)return(u=this.strm)&&u.state?(O=u.state.status,O!==42&&O!==69&&O!==73&&O!==91&&O!==103&&O!==113&&O!==666?f=Qb(u,-2):(u.state=null,f=O===113?Qb(u,-3):0)):f=-2,WnE(this,f),this.ended=
!0,f===0;c===2&&(WnE(this,0),u.avail_out=0);return!0};
var WnE=function(f,R){R===0&&(f.result=f.options.to==="string"?f.chunks.join(""):qx.flattenChunks(f.chunks));f.chunks=[];f.err=R;f.msg=f.strm.msg};var EMF=typeof TextEncoder!=="undefined"?new TextEncoder:null,IHn=EMF?function(f){return EMF.encode(f)}:function(f){f=_.CR(f);
for(var R=new Uint8Array(f.length),u=0;u<R.length;u++)R[u]=f[u];return R};var cV7={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},hUX={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var EQ=function(f,R){this.version=f;this.args=R};
EQ.prototype.serialize=function(){return{version:this.version,args:this.args}};var KBl=function(f,R){this.topic=f;this.dataClass=R};
KBl.prototype.toString=function(){return this.topic};var tIC=_.Ph("ytPubsub2Pubsub2Instance")||new _.aV;_.aV.prototype.subscribe=_.aV.prototype.subscribe;_.aV.prototype.unsubscribeByKey=_.aV.prototype.unsubscribeByKey;_.aV.prototype.publish=_.aV.prototype.publish;_.aV.prototype.clear=_.aV.prototype.clear;_.V4("ytPubsub2Pubsub2Instance",tIC);var keB=_.Ph("ytPubsub2Pubsub2SubscribedKeys")||{};_.V4("ytPubsub2Pubsub2SubscribedKeys",keB);var Ah2=_.Ph("ytPubsub2Pubsub2TopicToKeys")||{};_.V4("ytPubsub2Pubsub2TopicToKeys",Ah2);
var qPX=_.Ph("ytPubsub2Pubsub2IsAsync")||{};_.V4("ytPubsub2Pubsub2IsAsync",qPX);_.V4("ytPubsub2Pubsub2SkipSubKey",null);var yhn=void 0,t8n=void 0;var Jh7=_.RV("max_body_size_to_compress",5E5),zjD=_.RV("min_body_size_to_compress",500),T2=!0,Uqn=0,HR=0,P$7=_.RV("compression_performance_threshold_lr",250),eje=_.RV("slow_compressions_before_abandon_count",4),LBt=!1,bgX=new Map,Hg0=1,Tz7=!0;_.f6(Iy,oZn);Iy.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 COA=function(f,R,u){u||(u=0);var O=f.W_;if(typeof R==="string")for(var c=0;c<16;c++)O[c]=R.charCodeAt(u)<<24|R.charCodeAt(u+1)<<16|R.charCodeAt(u+2)<<8|R.charCodeAt(u+3),u+=4;else for(c=0;c<16;c++)O[c]=R[u]<<24|R[u+1]<<16|R[u+2]<<8|R[u+3],u+=4;for(R=16;R<80;R++)u=O[R-3]^O[R-8]^O[R-14]^O[R-16],O[R]=(u<<1|u>>>31)&4294967295;R=f.chain_[0];u=f.chain_[1];c=f.chain_[2];for(var h=f.chain_[3],l=f.chain_[4],K,q,F=0;F<80;F++)F<40?F<20?(K=h^u&(c^h),q=1518500249):(K=u^c^h,q=1859775393):F<60?(K=u&c|h&(u|c),
q=2400959708):(K=u^c^h,q=3395469782),K=(R<<5|R>>>27)+K+l+q+O[F]&4294967295,l=h,h=c,c=(u<<30|u>>>2)&4294967295,u=R,R=K;f.chain_[0]=f.chain_[0]+R&4294967295;f.chain_[1]=f.chain_[1]+u&4294967295;f.chain_[2]=f.chain_[2]+c&4294967295;f.chain_[3]=f.chain_[3]+h&4294967295;f.chain_[4]=f.chain_[4]+l&4294967295};
Iy.prototype.update=function(f,R){if(f!=null){R===void 0&&(R=f.length);for(var u=R-this.blockSize,O=0,c=this.buf_,h=this.inbuf_;O<R;){if(h==0)for(;O<=u;)COA(this,f,O),O+=this.blockSize;if(typeof f==="string")for(;O<R;){if(c[h]=f.charCodeAt(O),++h,++O,h==this.blockSize){COA(this,c);h=0;break}}else for(;O<R;)if(c[h]=f[O],++h,++O,h==this.blockSize){COA(this,c);h=0;break}}this.inbuf_=h;this.total_+=R}};
Iy.prototype.digest=function(){var f=[],R=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]=R&255,R/=256;COA(this,this.buf_);for(u=R=0;u<5;u++)for(var O=24;O>=0;O-=8)f[R]=this.chain_[u]>>O&255,++R;return f};var $qt;var C5=function(f){var R=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(w){R.databaseToken=w},
triggerThrottle:function(){R.throttledSend()},
cancelThrottle:function(){R.cancelThrottledSend()},
immediateSend:function(w){return _.k(function(m){return _.A(m,R.immediateSend(w),0)})},
requestWithinAgeLimit:function(w,m){return R.requestWithinAgeLimit(w,m)},
retryQueuedRequests:function(){R.retryQueuedRequests()}};
var u;this.throttleTimeout=(u=f.throttleTimeout)!=null?u:100;var O;this.retryMaxAttempts=(O=f.retryMaxAttempts)!=null?O:1;var c;this.requestAgeLimitMs=(c=f.requestAgeLimitMs)!=null?c:2592E6;var h;this.queuedRequestAgeLimitMs=(h=f.queuedRequestAgeLimitMs)!=null?h:12E4;var l;this.retryDelayMs=(l=f.retryDelayMs)!=null?l:5E3;var K;this.databaseToken=(K=f.databaseToken)!=null?K:void 0;this.enableCleaning=!!f.enableCleaning;var q;this.cleaningRate=(q=f.cleaningRate)!=null?q:.1;var F;this.potentialEsfErrorLimit=
(F=f.potentialEsfErrorLimit)!=null?F:10;f.handleError&&(this.handleError=f.handleError);f.handleWarning&&(this.handleWarning=f.handleWarning);f.disableYtIdbTransactions&&(this.disableYtIdbTransactions=f.disableYtIdbTransactions);f.bypassDbTokenDependency&&(this.bypassDbTokenDependency=f.bypassDbTokenDependency);this.getBooleanFlag=f.getBooleanFlag;this.jobManager=f.jobManager;this.logsStore=f.logsStore;this.networkManager=f.networkManager;this.sendFn=f.sendFn;this.onlineEvent=f.onlineEvent;this.offlineEvent=
f.offlineEvent;tV(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&yAk(this)},yAk=function(f){tV(f)&&!f.disableYtIdbTransactions&&(f.initialized=!0,f.enableCleaning&&Math.random()<=f.cleaningRate&&f.logsStore.cleanLogsStore(f.databaseToken),f.retryQueuedRequests(),f.networkManager.isNetworkAvailable()&&f.throttledSend(),f.networkManager.listen(f.onlineEvent,f.throttledSend.bind(f)),f.networkManager.listen(f.offlineEvent,f.cancelThrottledSend.bind(f)))};
_.X=C5.prototype;_.X.writeThenSend=function(f,R){var u=this;R=R===void 0?{}:R;if(tV(this)&&this.initialized){var O={url:f,options:R,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(O,this.databaseToken).then(function(c){O.id=c;u.networkManager.isNetworkAvailable()&&u.immediateSend(O)}).catch(function(c){u.immediateSend(O);
dxt(u,c)})}else this.sendFn(f,R)};
_.X.sendThenWrite=function(f,R,u){var O=this;R=R===void 0?{}:R;if(tV(this)&&this.initialized){var c={url:f,options:R,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(c.skipRetry=u);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!c.skipRetry){if(!c.skipRetry){var h=R.onError?R.onError:function(){};
R.onError=function(l,K){return _.k(function(q){if(q.nextAddress==1)return _.A(q,O.logsStore.set(c,O.databaseToken).catch(function(F){dxt(O,F)}),2);
h(l,K);_.KG(q)})}}this.sendFn(f,R,c.skipRetry)}else this.logsStore.set(c,this.databaseToken).catch(function(l){O.sendFn(f,R,c.skipRetry);
dxt(O,l)})}else this.sendFn(f,R,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&u)};
_.X.sendAndWrite=function(f,R){var u=this;R=R===void 0?{}:R;if(tV(this)&&this.initialized){var O={url:f,options:R,timestamp:this.now(),status:"NEW",sendCount:0},c=!1,h=R.onSuccess?R.onSuccess:function(){};
O.options.onSuccess=function(l,K){O.id!==void 0?u.logsStore.deleteRequest(O.id,u.databaseToken):c=!0;u.networkManager.networkStatusHint&&u.getBooleanFlag&&u.getBooleanFlag("vss_network_hint")&&u.networkManager.networkStatusHint(!0);h(l,K)};
this.sendFn(O.url,O.options,void 0,!0);this.logsStore.set(O,this.databaseToken).then(function(l){O.id=l;c&&u.logsStore.deleteRequest(O.id,u.databaseToken)}).catch(function(l){dxt(u,l)})}else this.sendFn(f,R,void 0,!0)};
_.X.throttledSend=function(){var f=this;if(!tV(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.logsStore.getMostRecentByStatus("NEW",f.databaseToken),2);if(u.nextAddress!=3)return R=u.yieldResult,R?_.A(u,f.immediateSend(R),3):(f.cancelThrottledSend(),u.return());f.intervalJob&&(f.intervalJob=0,f.throttledSend());_.KG(u)})},this.throttleTimeout))};
_.X.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.X.immediateSend=function(f){var R=this,u;return _.k(function(O){switch(O.nextAddress){case 1:if(!tV(R))throw Error("Yc");if(f.id===void 0){O.jumpTo(2);break}return _.A(O,R.logsStore.markAsQueued(f.id,R.databaseToken),3);case 3:(u=O.yieldResult)||R.handleWarning(Error("Zc"));case 2:if(R.requestWithinAgeLimit(f,R.requestAgeLimitMs)){O.jumpTo(4);break}R.handleWarning(Error("$c"));if(f.id===void 0){O.jumpTo(5);break}return _.A(O,R.logsStore.deleteRequest(f.id,R.databaseToken),5);case 5:return O.return();
case 4:f.skipRetry||(f=NcF(R,f));if(!f){O.jumpTo(0);break}if(!f.skipRetry||f.id===void 0){O.jumpTo(8);break}return _.A(O,R.logsStore.deleteRequest(f.id,R.databaseToken),8);case 8:R.sendFn(f.url,f.options,!!f.skipRetry),_.KG(O)}})};
var NcF=function(f,R){if(!tV(f))throw Error("ad");var u=R.options.onError?R.options.onError:function(){};
R.options.onError=function(c,h){var l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:l=YPl(h);(K=vZl(h))&&f.getBooleanFlag&&f.getBooleanFlag("web_enable_error_204")&&f.handleError(Error("bd"),R.url,h);if(!(f.getBooleanFlag&&f.getBooleanFlag("nwl_consider_error_code")&&l||f.getBooleanFlag&&!f.getBooleanFlag("nwl_consider_error_code")&&f.potentialEsfErrorCounter<=f.potentialEsfErrorLimit)){w.jumpTo(2);break}if(!f.networkManager.sendNetworkCheckRequest){w.jumpTo(3);break}return _.A(w,f.networkManager.sendNetworkCheckRequest(),
3);case 3:if(f.networkManager.isNetworkAvailable()){w.jumpTo(2);break}u(c,h);if(!f.getBooleanFlag||!f.getBooleanFlag("nwl_consider_error_code")||((q=R)==null?void 0:q.id)===void 0){w.jumpTo(6);break}return _.A(w,f.logsStore.resetRequest(R.id,f.databaseToken,!1),6);case 6:return w.return();case 2:if(f.getBooleanFlag&&f.getBooleanFlag("nwl_consider_error_code")&&!l&&f.potentialEsfErrorCounter>f.potentialEsfErrorLimit)return w.return();f.potentialEsfErrorCounter++;if(((F=R)==null?void 0:F.id)===void 0){w.jumpTo(8);
break}return R.sendCount<f.retryMaxAttempts?_.A(w,f.logsStore.resetRequest(R.id,f.databaseToken,!0,K?!1:void 0),12):_.A(w,f.logsStore.deleteRequest(R.id,f.databaseToken),8);case 12:f.jobManager.addLowPriorityJob(function(){f.networkManager.isNetworkAvailable()&&f.throttledSend()},f.retryDelayMs);
case 8:u(c,h),_.KG(w)}})};
var O=R.options.onSuccess?R.options.onSuccess:function(){};
R.options.onSuccess=function(c,h){var l;return _.k(function(K){if(K.nextAddress==1)return((l=R)==null?void 0:l.id)===void 0?K.jumpTo(2):_.A(K,f.logsStore.deleteRequest(R.id,f.databaseToken),2);f.networkManager.networkStatusHint&&f.getBooleanFlag&&f.getBooleanFlag("vss_network_hint")&&f.networkManager.networkStatusHint(!0);O(c,h);_.KG(K)})};
return R};
C5.prototype.requestWithinAgeLimit=function(f,R){f=f.timestamp;return this.now()-f>=R?!1:!0};
C5.prototype.retryQueuedRequests=function(){var f=this;if(!tV(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(R){R&&!f.requestWithinAgeLimit(R,f.queuedRequestAgeLimitMs)?f.jobManager.addLowPriorityJob(function(){return _.k(function(u){if(u.nextAddress==1)return R.id===void 0?u.jumpTo(2):_.A(u,f.logsStore.resetRequest(R.id,f.databaseToken),2);f.retryQueuedRequests();_.KG(u)})}):f.networkManager.isNetworkAvailable()&&f.throttledSend()})};
var dxt=function(f,R){f.writeError&&!f.networkManager.isNetworkAvailable()?f.writeError(R):f.handleError(R)},tV=function(f){return!!f.databaseToken||f.bypassDbTokenDependency};var igh;var X7P={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,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};var Lnt={},lMt=vf("ServiceWorkerLogsDatabase",{objectStores:(Lnt.SWHealthLog={addedAtVersion:1},Lnt),shared:!0,upgrade:function(f,R){R(1)&&eI(UL(f,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var mL5={},wLt=0;var tkD;var yg=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},sL=function(){if(!yg.instance){var f=_.Ph("yt.networkRequestMonitor.instance")||new yg;
_.V4("yt.networkRequestMonitor.instance",f);yg.instance=f}return yg.instance};
yg.prototype.requestComplete=function(f,R){R&&(this.anyRequestHasSucceeded=!0);f=this.removeParams(f);this.requestMap.get(f)||this.requestMap.set(f,R)};
yg.prototype.isEndpointCFR=function(f){f=this.removeParams(f);return(f=this.requestMap.get(f))?!1:f===!1&&this.anyRequestHasSucceeded?!0:null};
yg.prototype.removeParams=function(f){return f.split("?")[0]};
yg.prototype.removeParams=yg.prototype.removeParams;yg.prototype.isEndpointCFR=yg.prototype.isEndpointCFR;yg.prototype.requestComplete=yg.prototype.requestComplete;yg.getInstance=sL;var d5=function(f){_.mq.call(this);var R=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=f!=null?f:{addLowPriorityJob:function(c,h){return setTimeout(c,h)},
cancelJob:function(c){clearTimeout(c)}};
var u,O;this.isOnline=(O=(u=window.navigator)==null?void 0:u.onLine)!=null?O:!0;this.onNavigatorChange=function(){return _.k(function(c){return _.A(c,bBf(R),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||pRC(this)};
_.y(d5,_.mq);d5.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete d5.instance};
d5.prototype.isNetworkAvailable=function(){return this.isOnline};
var pRC=function(f){f.pollingJob=f.jobManager.addLowPriorityJob(function(){var R;return _.k(function(u){if(u.nextAddress==1)return f.isOnline?((R=window.navigator)==null?0:R.onLine)?u.jumpTo(3):_.A(u,bBf(f),3):_.A(u,bBf(f),3);pRC(f);_.KG(u)})},3E4)},bBf=function(f,R){return f.networkRequestPromise?f.networkRequestPromise:f.networkRequestPromise=new Promise(function(u){var O,c,h,l;
return _.k(function(K){switch(K.nextAddress){case 1:return O=window.AbortController?new window.AbortController:void 0,h=(c=O)==null?void 0:c.signal,l=!1,_.cl(K,2,3),O&&(f.abortTimeoutKey=f.jobManager.addLowPriorityJob(function(){O.abort()},R||2E4)),_.A(K,fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:l=!0;case 3:_.hu(K);f.networkRequestPromise=void 0;f.abortTimeoutKey&&(f.jobManager.cancelJob(f.abortTimeoutKey),f.abortTimeoutKey=0);l!==f.isOnline&&(f.isOnline=l,f.isOnline?f.dispatchEvent("networkstatus-online"):f.dispatchEvent("networkstatus-offline"));u(l);_.lC(K,0);break;case 2:_.ku(K),l=!1,K.jumpTo(3)}})})};var N_=function(){_.mq.call(this);var f=this;this.shouldFlushErrors=!1;d5.instance||(d5.instance=new d5(_.JA));this.sharedNetworkStatusManager=d5.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(f.shouldFlushErrors&&_.E("offline_error_handling")){var R=Cj5().get("errors",!0);if(R){for(var u in R)if(R[u]){var O=new _.ts(u,"sent via offline_errors");O.name=R[u].name;O.stack=R[u].stack;O.level=R[u].level;_.IS(O)}Cj5().set("errors",{},2592E3,!0)}}})};
_.y(N_,_.mq);var jyI=function(){if(!N_.instance){var f=_.Ph("yt.networkStatusManager.instance")||new N_;_.V4("yt.networkStatusManager.instance",f);N_.instance=f}return N_.instance};
_.X=N_.prototype;_.X.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.X.networkStatusHint=function(f){this.sharedNetworkStatusManager.isOnline=f};
_.X.getWindowStatus=function(){var f=window.navigator.onLine;return f===void 0?!0:f};
_.X.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.X.listen=function(f,R){return this.sharedNetworkStatusManager.listen(f,R)};
_.X.sendNetworkCheckRequest=function(f){f=bBf(this.sharedNetworkStatusManager,f);f.then(function(R){_.E("use_cfr_monitor")&&sL().requestComplete("generate_204",R)});
return f};
N_.prototype.sendNetworkCheckRequest=N_.prototype.sendNetworkCheckRequest;N_.prototype.listen=N_.prototype.listen;N_.prototype.enableErrorFlushing=N_.prototype.enableErrorFlushing;N_.prototype.getWindowStatus=N_.prototype.getWindowStatus;N_.prototype.networkStatusHint=N_.prototype.networkStatusHint;N_.prototype.isNetworkAvailable=N_.prototype.isNetworkAvailable;N_.getInstance=jyI;_.$M=function(f){f=f===void 0?{}:f;_.mq.call(this);var R=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=jyI();var u=_.Ph("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);u&&(f.rateLimit?(this.rateLimit=f.rateLimit,u("networkstatus-online",function(){Dxl(R,"publicytnetworkstatus-online")}),u("networkstatus-offline",function(){Dxl(R,"publicytnetworkstatus-offline")})):(u("networkstatus-online",function(){R.dispatchEvent("publicytnetworkstatus-online")}),u("networkstatus-offline",
function(){R.dispatchEvent("publicytnetworkstatus-offline")})))};
_.y(_.$M,_.mq);_.$M.prototype.isNetworkAvailable=function(){var f=_.Ph("yt.networkStatusManager.instance.isNetworkAvailable");return f?f.bind(this.nsmInstance)():!0};
_.$M.prototype.networkStatusHint=function(f){var R=_.Ph("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);R&&R(f)};
_.$M.prototype.sendNetworkCheckRequest=function(f){var R=this,u;return _.k(function(O){u=_.Ph("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(R.nsmInstance);return _.E("skip_network_check_if_cfr")&&sL().isEndpointCFR("generate_204")?O.return(new Promise(function(c){var h;R.networkStatusHint(((h=window.navigator)==null?void 0:h.onLine)||!0);c(R.isNetworkAvailable())})):u?O.return(u(f)):O.return(!0)})};
var Dxl=function(f,R){f.rateLimit?f.lastJobTime?(_.JA.cancelJob(f.schedulerJob),f.schedulerJob=_.JA.addLowPriorityJob(function(){f.lastPublicSignalSent!==R&&(f.dispatchEvent(R),f.lastPublicSignalSent=R,f.lastJobTime=(0,_.iZ)())},f.rateLimit-((0,_.iZ)()-f.lastJobTime))):(f.dispatchEvent(R),f.lastPublicSignalSent=R,f.lastJobTime=(0,_.iZ)()):f.dispatchEvent(R)};var bn5,L5=function(){C5.call(this,{logsStore:{cleanLogsStore:hGe,deleteRequest:XLP,getMostRecentByStatus:ur2,markAsQueued:Onh,resetRequest:cNq,set:RGt},networkManager:_.pL2(),handleError:function(f,R,u){var O,c=u==null?void 0:(O=u.error)==null?void 0:O.code;if(c===400||c===415){var h;f=new _.ts(f.message,R,u==null?void 0:(h=u.error)==null?void 0:h.code);_.UC(f,void 0,void 0,void 0,!0)}else _.IS(f)},
handleWarning:_.UC,sendFn:NY5,now:_.iZ,writeError:yNt,jobManager:_.LS(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.RV("potential_esf_error_limit",10),getBooleanFlag:_.E,disableYtIdbTransactions:!(_.Eb()&&_.j1n())});this.initializationPromise=new _.lj;_.E("networkless_immediately_drop_all_requests")&&ZnX();v7t("LogsDatabaseV2")};
_.y(L5,C5);_.zcF=function(){var f=_.Ph("yt.networklessRequestController.instance");f||(f=new L5,_.V4("yt.networklessRequestController.instance",f),_.E("networkless_logging")&&_.Yx().then(function(R){f.databaseToken=R;yAk(f);f.initializationPromise.resolve();f.enableCleaning&&Math.random()<=f.cleaningRate&&f.databaseToken&&K6n(f.databaseToken);_.E("networkless_immediately_drop_sw_health_store")&&JAE(f)}));
return f};
L5.prototype.writeThenSend=function(f,R){R||(R={});R=L6l(f,R);_.Eb()||(this.initialized=!1);C5.prototype.writeThenSend.call(this,f,R)};
L5.prototype.sendThenWrite=function(f,R,u){R||(R={});R=L6l(f,R);_.Eb()||(this.initialized=!1);C5.prototype.sendThenWrite.call(this,f,R,u)};
L5.prototype.sendAndWrite=function(f,R){R||(R={});R=L6l(f,R);_.Eb()||(this.initialized=!1);C5.prototype.sendAndWrite.call(this,f,R)};
L5.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var JAE=function(f){var R;_.k(function(u){if(!f.databaseToken)throw R=Mv("clearSWHealthLogsDb"),R;return u.return(qy2(f.databaseToken).catch(function(O){f.handleError(O)}))})};_.JNB=!1;_.DLq=_.Oe.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.JNB};_.V4("ytNetworklessLoggingInitializationOptions",_.DLq);var D8=function(f){var R=this;this.config_=null;f?this.config_=f:h42()&&(this.config_=_.fB());_.dJ(_.JA,function(){V8P(R)},5E3)};
D8.prototype.isReady=function(){!this.config_&&h42()&&(this.config_=_.fB());return!!this.config_};
var nZn=function(f,R,u,O){!_.Tf("VISITOR_DATA")&&R!=="visitor_id"&&Math.random()<.01&&_.UC(new _.ts("Missing VISITOR_DATA when sending innertube request.",R,u,O));if(!f.isReady()){var c=new _.ts("innertube xhrclient not ready",R,u,O);_.IS(c);throw c;}var h={headers:O.headers||{},method:"POST",postParams:u,postBody:O.postBody,postBodyFormat:O.postBodyFormat||"JSON",onTimeout:function(){O.onTimeout()},
onFetchTimeout:O.onTimeout,onSuccess:function(m,W){if(O.onSuccess)O.onSuccess(W)},
onFetchSuccess:function(m){if(O.onSuccess)O.onSuccess(m)},
onError:function(m,W){if(O.onError)O.onError(W)},
onFetchError:function(m){if(O.onError)O.onError(m)},
timeout:O.timeout,withCredentials:!0,compress:O.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");var l="";(c=f.config_.innertubeHostOverride)&&(l=c);var K=f.config_.innertubeUseThirdPartyAuth||!1,q=_.yH7(K,l,O);Object.assign(h.headers,q);h.headers.Authorization&&!l&&K&&(h.headers["x-origin"]=window.location.origin);var F=_.x8(l+("/youtubei/"+f.config_.innertubeApiVersion+"/"+R),{alt:"json"}),w=function(m){m=m===void 0?!1:m;var W;if(O.retry&&l!="www.youtube-nocookie.com"&&
(m||_.E("skip_ls_gel_retry")||h.headers["Content-Type"]!=="application/json"||(W=gZ7(R,u,q,K)),W)){var C=h.onSuccess,d=h.onFetchSuccess;h.onSuccess=function(M,P){sLq(W);C(M,P)};
u.onFetchSuccess=function(M,P){sLq(W);d(M,P)}}try{if(m&&O.retry&&!O.networklessOptions.bypassNetworkless)h.method="POST",O.networklessOptions.writeThenSend?_.zcF().writeThenSend(F,h):_.zcF().sendAndWrite(F,h);
else if(O.compress){var p=!O.networklessOptions.writeThenSend;if(h.postBody){var J=h.postBody;typeof J!=="string"&&(J=JSON.stringify(h.postBody));M8e(F,J,h,_.qv,p)}else M8e(F,JSON.stringify(h.postParams),h,oV5,p)}else _.E("web_all_payloads_via_jspb")?_.qv(F,h):oV5(F,h)}catch(M){if(M.name==="InvalidAccessError")W&&(sLq(W),W=0),_.UC(Error("dd"));else throw M;}W&&_.dJ(_.JA,function(){V8P(f)},5E3)};
_.zG0()?xsn().then(function(m){w(m)}):w(!1)};var HWh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(HWh,_.e5);var Tcf=0,Hn7=_.XA?"webkit":_.co?"moz":_.O0?"ms":h2P?"o":"";_.V4("ytDomDomGetNextId",_.Ph("ytDomDomGetNextId")||function(){return++Tcf});var HBE={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1},rc=function(f){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(f=
f||window.event){this.event=f;for(var R in f)R in HBE||(this[R]=f[R]);this.scale=f.scale;this.rotation=f.rotation;var u=f.target||f.srcElement;u&&u.nodeType==3&&(u=u.parentNode);this.target=u;var O=f.relatedTarget;if(O)try{O=O.nodeName?O:null}catch(c){O=null}else this.type=="mouseover"?O=f.fromElement:this.type=="mouseout"&&(O=f.toElement);this.relatedTarget=O;this.clientX=f.clientX!=void 0?f.clientX:f.pageX;this.clientY=f.clientY!=void 0?f.clientY:f.pageY;this.keyCode=f.keyCode?f.keyCode:f.which;
this.charCode=f.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=f.altKey;this.ctrlKey=f.ctrlKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.pageX_=f.pageX;this.pageY_=f.pageY}}catch(c){}},I9C=function(f){if(document.body&&document.documentElement){var R=document.body.scrollTop+document.documentElement.scrollTop;
f.pageX_=f.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);f.pageY_=f.clientY+R}};
rc.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
rc.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
rc.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var iO=_.Oe.ytEventsEventsListeners||{};_.V4("ytEventsEventsListeners",iO);var G$2=_.Oe.ytEventsEventsCounter||{count:0};_.V4("ytEventsEventsCounter",G$2);var BYX=_.wB(function(){var f=!1;try{var R=Object.defineProperty({},"capture",{get:function(){f=!0}});
window.addEventListener("test",null,R)}catch(u){}return f});_.f6(Rh,_.d9);Rh.prototype.onMouseMove_=function(f){f.pageX_===void 0&&I9C(f);var R=f.pageX_;f.pageY_===void 0&&I9C(f);this.position_=new _.b_(R,f.pageY_)};
Rh.prototype.checkPosition_=function(){if(this.position_){var f=(0,_.iZ)();if(this.previousTime_!=0){var R=this.previousPosition_,u=this.position_,O=R.x-u.x;R=R.y-u.y;O=Math.sqrt(O*O+R*R)/(f-this.previousTime_);this.cycles_[this.index_]=Math.abs((O-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(u=R=0;u<4;u++)R+=this.cycles_[u]||0;R>=3&&this.callback_();this.previousVelocity_=O}this.previousTime_=f;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Rh.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.oSn(this.mouseListenerKey_)};var gSe={};var fz7=new _.Y("rawColdConfigGroup");var rl5=new _.Y("rawHotConfigGroup");var MIf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(MIf,_.e5);var TwX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(TwX,_.e5);var yL=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f,500)};
_.y(yL,_.e5);yL.prototype.getPayloadCase=function(){return _.QF(this,POC)};
yL.prototype.getContext=function(){return _.Ry(this,TwX,33)};
var POC=[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];var s4h=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(s4h,_.e5);var yln=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(yln,_.e5);yln.prototype.setVideoId=function(f){return F0(this,1,dMh,el(f))};
yln.prototype.getPlaylistId=function(){return _.w9(this,EW(this,dMh,2))};
var dMh=[1,2];var B_7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(B_7,_.e5);B_7.prototype.getContext=function(){return _.Ry(this,wJ,1)};
B_7.prototype.getTier=function(){return _.p6(this,7)};var UxA,X0,hr;UxA=_.Oe.ytPubsubPubsubInstance||new _.aV;X0=_.Oe.ytPubsubPubsubSubscribedKeys||{};hr=_.Oe.ytPubsubPubsubTopicToKeys||{};_.s17=_.Oe.ytPubsubPubsubIsSynchronous||{};_.aV.prototype.subscribe=_.aV.prototype.subscribe;_.aV.prototype.unsubscribeByKey=_.aV.prototype.unsubscribeByKey;_.aV.prototype.publish=_.aV.prototype.publish;_.aV.prototype.clear=_.aV.prototype.clear;_.V4("ytPubsubPubsubInstance",UxA);_.V4("ytPubsubPubsubTopicToKeys",hr);_.V4("ytPubsubPubsubIsSynchronous",_.s17);
_.V4("ytPubsubPubsubSubscribedKeys",X0);var lc=window;var b0=_.E("web_enable_lifecycle_monitoring")&&ine()!==0,ecA=_.E("web_enable_lifecycle_monitoring");var Bck=function(f){var R=this;var u=u===void 0?0:u;var O=O===void 0?_.LS():O;this.JSC$8808_defaultPriority=u;this.scheduler=O;this.completedResolver=new _.lj;this.scheduledPayloads=f;for(f={i$jscomp$529:0};f.i$jscomp$529<this.scheduledPayloads.length;f={payload$jscomp$18:void 0,i$jscomp$529:f.i$jscomp$529},f.i$jscomp$529++)f.payload$jscomp$18=this.scheduledPayloads[f.i$jscomp$529],u=function(c){return function(){c.payload$jscomp$18.job();R.scheduledPayloads[c.i$jscomp$529].processed=!0;R.scheduledPayloads.every(function(h){return h.processed===
!0})&&R.completedResolver.resolve()}}(f),O=this.scheduler.addJob(u,G2k(this,f.payload$jscomp$18)),this.scheduledPayloads[f.i$jscomp$529]=Object.assign({},f.payload$jscomp$18,{job:u,
jobId:O})};
Bck.prototype.flushJobs=function(){var f=this,R=Array.from(this.scheduledPayloads.keys()).sort(function(O,c){return G2k(f,f.scheduledPayloads[c])-G2k(f,f.scheduledPayloads[O])});
R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=this.scheduledPayloads[u.value],u.jobId===void 0||u.processed||(this.scheduler.cancelJob(u.jobId),this.scheduler.addJob(u.job,10))};
Bck.prototype.cancel=function(){for(var f=_.Z(this.scheduledPayloads),R=f.next();!R.done;R=f.next())R=R.value,R.jobId===void 0||R.processed||this.scheduler.cancelJob(R.jobId),R.processed=!0;this.completedResolver.resolve()};
var G2k=function(f,R){var u;return(u=R.priority)!=null?u:f.JSC$8808_defaultPriority};var p5=function(f){this.state=f;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};b0&&rNB(this.state)};
p5.prototype.install=function(f){this.plugins.push(f);return this};
p5.prototype.uninstall=function(){var f=this;_.yK.apply(0,arguments).forEach(function(R){R=f.plugins.indexOf(R);R>-1&&f.plugins.splice(R,1)})};
p5.prototype.transition=function(f,R){var u=this;b0&&fO5(this.state);var O=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(l){return l===u.state&&h.to===f}):h.from===u.state&&h.to===f});
if(O){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);oMi(this,f,R);this.state=f;b0&&rNB(this.state);O=O.action.bind(this);var c=this.plugins.filter(function(h){return h[f]}).map(function(h){return h[f]});
O(xxA(this,c),R)}else throw Error("ed`"+this.state+"`"+f);};
var xxA=function(f,R){var u=R.filter(function(c){return SLA(f,c)===10}),O=R.filter(function(c){return SLA(f,c)!==10});
return f.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var c=_.yK.apply(0,arguments);return _.k(function(h){if(h.nextAddress==1)return _.A(h,f.runImmediateJobsAsync.apply(f,[u].concat(_.yq(c))),2);f.setJobSetWithScheduledJobs.apply(f,[O].concat(_.yq(c)));_.KG(h)})}:function(){var c=_.yK.apply(0,arguments);
f.runImmediateJobsSync.apply(f,[u].concat(_.yq(c)));f.setJobSetWithScheduledJobs.apply(f,[O].concat(_.yq(c)))}};
p5.prototype.runImmediateJobsSync=function(f){var R=_.yK.apply(1,arguments);_.LS();for(var u=_.Z(f),O=u.next(),c={};!O.done;c={lifecycle$jscomp$2:void 0},O=u.next())c.lifecycle$jscomp$2=O.value,ue(function(h){return function(){$xi(h.lifecycle$jscomp$2.name);u4q(function(){return h.lifecycle$jscomp$2.callback.apply(h.lifecycle$jscomp$2,_.yq(R))});
jH(h.lifecycle$jscomp$2.name)}}(c))};
p5.prototype.runImmediateJobsAsync=function(f){var R=_.yK.apply(1,arguments),u,O,c,h;return _.k(function(l){l.nextAddress==1&&(_.LS(),u=_.Z(f),O=u.next(),c={});if(l.nextAddress!=3){if(O.done)return l.jumpTo(0);c.lifecycle$jscomp$3=O.value;c.asyncJobCompletion=void 0;h=function(K){return function(){$xi(K.lifecycle$jscomp$3.name);var q=u4q(function(){return K.lifecycle$jscomp$3.callback.apply(K.lifecycle$jscomp$3,_.yq(R))});
UQX(q)?K.asyncJobCompletion=_.E("web_lifecycle_error_handling_killswitch")?q.then(function(){jH(K.lifecycle$jscomp$3.name)}):q.then(function(){jH(K.lifecycle$jscomp$3.name)},function(F){Rpt(F);
jH(K.lifecycle$jscomp$3.name)}):jH(K.lifecycle$jscomp$3.name)}}(c);
ue(h);return c.asyncJobCompletion?_.A(l,c.asyncJobCompletion,3):l.jumpTo(3)}c={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};O=u.next();return l.jumpTo(2)})};
p5.prototype.setJobSetWithScheduledJobs=function(f){var R=_.yK.apply(1,arguments),u=this,O=f.map(function(c){return{job:function(){$xi(c.name);u4q(function(){return c.callback.apply(c,_.yq(R))});
jH(c.name)},
priority:SLA(u,c)}});
O.length&&(this.jobSet=new Bck(O))};
var SLA=function(f,R){var u,O;return(O=(u=f.overridePriority)!=null?u:R.priority)!=null?O:0},$xi=function(f){b0&&f&&rNB(f)},jH=function(f){b0&&f&&fO5(f)},oMi=function(f,R,u){ecA&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+f.constructor.name+"] '"+f.state+"' to '"+R+"'"),console.log("with message: ",u),console.groupEnd())};
_.Vy.Object.defineProperties(p5.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var gMf=function(f){p5.call(this,f===void 0?"none":f);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(){}}]},syH;
_.y(gMf,p5);gMf.prototype.runApplicationNavigationBegin=function(f,R){var u=this;this.navigationTimer=_.dJ(_.JA,function(){u.currentState==="application_navigating"&&u.transition("none")},5E3);
f(R==null?void 0:R.event)};
gMf.prototype.runApplicationNavigationEnd=function(f,R){this.navigationTimer&&(_.JA.cancelJob(this.navigationTimer),this.navigationTimer=null);f(R==null?void 0:R.event)};
_.if7=function(){syH||(syH=new gMf);return syH};var vs2=[];_.V4("yt.logging.transport.getScrapedGelPayloads",function(){return vs2});var kN=function(){var f=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return f.totalEntries}}};
kN.prototype.storePayload=function(f,R){f=Ofh(f);this.store[f]?this.store[f].push(R):(this.memoizedKeySequences={},this.store[f]=[R]);this.totalEntries++;_.E("more_accurate_gel_parser")&&(R=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(R));return f};
kN.prototype.smartExtractMatchingEntries=function(f){if(!f.keys.length)return[];for(var R=nME(this,f.keys.splice(0,1)[0]),u=[],O=0;O<R.length;O++)this.store[R[O]]&&f.sizeLimit&&(this.store[R[O]].length<=f.sizeLimit?(u.push.apply(u,_.yq(this.store[R[O]])),delete this.store[R[O]]):u.push.apply(u,_.yq(this.store[R[O]].splice(0,f.sizeLimit))));this.totalEntries-=u.length;(f==null?0:f.sizeLimit)&&u.length<(f==null?void 0:f.sizeLimit)&&(f.sizeLimit-=u.length,u.push.apply(u,_.yq(this.smartExtractMatchingEntries(f))));
return u};
kN.prototype.extractMatchingEntries=function(f){f=nME(this,f);for(var R=[],u=0;u<f.length;u++)this.store[f[u]]&&(R.push.apply(R,_.yq(this.store[f[u]])),delete this.store[f[u]]);this.totalEntries-=R.length;return R};
kN.prototype.getSequenceCount=function(f){f=nME(this,f);for(var R=0,u=0;u<f.length;u++){var O=void 0;R+=((O=this.store[f[u]])==null?void 0:O.length)||0}return R};
var nME=function(f,R){var u=Ofh(R);if(f.memoizedKeySequences[u])return f.memoizedKeySequences[u];var O=Object.keys(f.store)||[];if(O.length<=1&&Ofh(R)===O[0])return O;for(var c=[],h=0;h<O.length;h++){var l=O[h].split("/");if(VIA(R.auth,l[0])){var K=R.isJspb;VIA(K===void 0?"undefined":K?"true":"false",l[1])&&VIA(R.cttAuthInfo,l[2])&&(K=R.tier,K=K===void 0?"undefined":JSON.stringify(K),VIA(K,l[3])&&c.push(O[h]))}}return f.memoizedKeySequences[u]=c},VIA=function(f,R){return f===void 0||f==="undefined"?
!0:f===R};
kN.prototype.getSequenceCount=kN.prototype.getSequenceCount;kN.prototype.extractMatchingEntries=kN.prototype.extractMatchingEntries;kN.prototype.smartExtractMatchingEntries=kN.prototype.smartExtractMatchingEntries;kN.prototype.storePayload=kN.prototype.storePayload;var T_7,Jl7,HfB,Ar,YLA,c4t,OUn,DM7,j40,Q47,zpn,Vwl,Lte;T_7=_.RV("initial_gel_batch_timeout",2E3);Jl7=_.RV("gel_queue_timeout_max_ms",6E4);HfB=_.RV("gel_min_batch_size",5);Ar=void 0;YLA=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
c4t=new YLA;OUn=new YLA;DM7=new YLA;j40=new YLA;zpn=!0;Vwl=1;_.nsq=new Map;Lte=_.Oe.ytLoggingTransportTokensToCttTargetIds_||{};_.V4("ytLoggingTransportTokensToCttTargetIds_",Lte);var N_n=_.Oe.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.V4("ytLoggingTransportTokensToJspbCttTargetIds_",N_n);var qB={};var L0=_.Oe.ytLoggingGelSequenceIdObj_||{};_.V4("ytLoggingGelSequenceIdObj_",L0);var lzq=[];var tQn=new Set,az7=0,NRD=0,dO2=0,w77=[],Fi2=[],Lit=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var eqD=function(){};
eqD.prototype.getUrl=function(f,R){R=R===void 0?!1:R;return f.hasOwnProperty("shareEndpoint")?null:_.DOX(f,null,R)};
var UV7=function(f,R,u){f={endpoint:R,actions:[]};u=(u.path?u.path[0]:u.target).icon||"";R=u.indexOf(":");R>0&&(u=u.substr(R+1));u&&f.actions.push(u);return f};var MQe=/Command$/,Izq=/Endpoint$/,zqe=new Map;var vMl,iBl;vMl=1;_.xN=function(){this.actionRoutingMap=new Map};
_.xN.prototype.triggerAction=function(f){var R=new ktt(f,!1,_.yK.apply(1,arguments));this.handleAction(R);return R.returnValue};
_.xN.prototype.triggerOptionalAction=function(f){var R=new ktt(f,!0,_.yK.apply(1,arguments));this.handleAction(R);return R.returnValue};
_.D2=function(f,R,u){R.forEach(function(O){var c=HUn(O);c&&f.triggerOptionalAction(c,O,u,void 0)})};
_.xN.prototype.handleAction=function(f){var R=this.actionRoutingMap.get(f.actionName);R&&iBl(f,R);f.optionalAction||f.returnValue.length!==0||(f=new _.ts("Unhandled action",f.actionName),_.UC(f))};
iBl=function(f,R){R.forEach(function(u){var O=null;u?O=u.apply(null,f.args):(u=Error("fd"),u.params=f.actionName,_.IS(u));f.returnValue.push(O)})};
_.SV=function(f,R,u){u||(u=vMl++);for(var O=_.Z(Object.keys(R)),c=O.next();!c.done;c=O.next()){c=c.value;var h=f.actionRoutingMap.get(c);h||(h=new Map,f.actionRoutingMap.set(c,h));f.registerActionHandler(u,c,R[c],h)}return u};
_.xN.prototype.registerActionHandler=function(f,R,u,O){O.set(f,_.MW(u))};
_.$N=function(f,R,u){R=_.Z(Object.keys(R));for(var O=R.next();!O.done;O=R.next())(O=f.actionRoutingMap.get(O.value))&&O.delete(u)};
_.ik(_.xN);var or7=function(f,R){var u=_.xN.getInstance();_.bt(function(){var O={},c=_.SV(u,(O[f]=R,O));_.jN(function(){var h={};_.$N(u,(h[f]="",h),c)})})};rAq=DBX;var OLh=new Set(["For","If","Match","Watch"]),rAI={},f8k=(rAI[MK.default]=function(){return sy7},rAI.style=function(){return sy7},rAI),RMI;
for(RMI in f8k)u4.attributes[RMI]=f8k[RMI](u4.attributes[RMI]);var rJ=new _.Vi("VISIBILITY_OBSERVER");var aBP={retrieve:function(f){return this.id.\u0275prov.token===f.\u0275prov.token?this.contextValue:this?Lw0(this,this.id):dWl}};var u0C=function(f,R,u){if(f!==VL)return!1;f=vrP(document.createElement("div"),function(){var O=ut(!1);try{u[0]()}finally{ut(O)}});
f=Array.from(f.childNodes);f.length===1&&(f=f[0]);return f};var O0f=function(f){f=f.clone();DGl(f);m4(f,"dg",null);m4(f,"d","0");LDG(f,null);bRE(f,null);return f},cri=!0,X5i=function(f,R,u){var O=u===void 0?{}:u;
u=O.cssRowKey===void 0?void 0:O.cssRowKey;var c=O.combinedSignature===void 0?void 0:O.combinedSignature;var h=O.extraEdges===void 0?void 0:O.extraEdges;O=O.callback===void 0?void 0:O.callback;m4(f,"m",R.join(","));h&&jjf(f,h);u&&(m4(f,"ck",u),c?m4(f,"rs",c):cri&&(cri=!1));if(O){if(O!=null&&!T9E.test(O))throw Error("ab`"+O);m4(f,"cb",O)}f=f.toString();_.hn(f,"/")&&(f=Flf(document.location.href)+f);return _.lh(f)};var Z0E=function(f){return hMt(f).then(function(R){return JSON.parse(R.responseText)})},hMt=function(f){var R={},u=R.xmlHttpFactory?R.xmlHttpFactory.createInstance():V5i.createInstance();
return(new _.ah(function(O,c){var h;try{u.open("GET",f,!0)}catch(q){c(new JV("Error opening XHR: "+q.message,f,u))}u.onreadystatechange=function(){if(u.readyState==4){_.Oe.clearTimeout(h);var q;!(q=n_A(u.status))&&(q=u.status===0)&&(q=akH(f),q=!(q=="http"||q=="https"||q==""));q?O(u):c(new l8C(u.status,f,u))}};
u.onerror=function(){c(new JV("Network error",f,u))};
if(R.headers)for(var l in R.headers){var K=R.headers[l];K!=null&&u.setRequestHeader(l,K)}R.withCredentials&&(u.withCredentials=R.withCredentials);R.responseType&&(u.responseType=R.responseType);R.mimeType&&u.overrideMimeType(R.mimeType);R.timeoutMs>0&&(h=_.Oe.setTimeout(function(){u.onreadystatechange=function(){};
u.abort();c(new kLk(f,u))},R.timeoutMs));
try{u.send(null)}catch(q){u.onreadystatechange=function(){},_.Oe.clearTimeout(h),c(new JV("Error sending XHR: "+q.message,f,u))}})).thenCatch(function(O){O instanceof _.BB&&u.abort();
throw O;})},JV=function(f,R,u){_.R7.call(this,f+", url="+R);
this.url=R;this.xhr=u};
_.f6(JV,_.R7);JV.prototype.name="XhrError";var l8C=function(f,R,u){JV.call(this,"Request Failed, status="+f,R,u);this.status=f};
_.f6(l8C,JV);l8C.prototype.name="XhrHttpError";var kLk=function(f,R){JV.call(this,"Request timed out",f,R)};
_.f6(kLk,JV);kLk.prototype.name="XhrTimeoutError";v9=v9||{};var zg=function(){_.d9.call(this)};
_.f6(zg,_.d9);zg.prototype.initialize=function(){};var KYf=function(f,R){this.fn_=f;this.handler_=R};
KYf.prototype.execute=function(f){this.fn_&&(this.fn_.call(this.handler_||null,f),this.fn_=this.handler_=null)};
KYf.prototype.abort=function(){this.handler_=this.fn_=null};var Tg=function(f,R){_.d9.call(this);this.deps_=f;this.JSC$8935_id_=R;this.onloadCallbacks_=[];this.JSC$8935_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.f6(Tg,_.d9);Tg.prototype.moduleConstructor_=zg;Tg.prototype.module_=null;Tg.prototype.getId=function(){return this.JSC$8935_id_};
Tg.prototype.registerCallback=function(f,R){return qWY(this.onloadCallbacks_,f,R)};
var ArI=function(f,R){qWY(f.JSC$8935_onErrorCallbacks_,R)},qWY=function(f,R,u){R=new KYf(R,u);
f.push(R);return R};
Tg.prototype.isLoaded=function(){return!!this.module_};
Tg.prototype.onLoad=function(f){var R=new this.moduleConstructor_;R.initialize(f());this.module_=R;R=(R=a8C(this.earlyOnloadCallbacks_,f()))||a8C(this.onloadCallbacks_,f());R||(this.JSC$8935_onErrorCallbacks_.length=0);return R};
Tg.prototype.onError=function(f){(f=a8C(this.JSC$8935_onErrorCallbacks_,f))&&c0(Error("ld`"+f));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var a8C=function(f,R){for(var u=[],O=0;O<f.length;O++)try{f[O].execute(R)}catch(c){c0(c),u.push(c)}f.length=0;return u.length?u:null};
Tg.prototype.disposeInternal=function(){Tg.superClass_.disposeInternal.call(this);_.YD(this.module_)};var FYk,tVF,WYi,ENf,mBI,QhE,LYC,dBi,NJf;
_.Iz=function(f,R,u,O,c){O=O===void 0?!1:O;c=c===void 0?!1:c;var h=h===void 0?!0:h;this.scsReferenceUrl_=g8t(_.k3(f).toString(),h);this.cssRowKey_=R;this.combinedSignature_=u;this.useNegativeLoading_=O;this.requestedModuleMap_={};this.JSC$8938_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(f=ww(this.scsReferenceUrl_,"excm"))?f.split(","):[];this.shouldScanForCss_=c;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;sSe();this.logger=null;_.Hq(this,piG(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
FYk=function(f,R){if(R.href||R.getAttribute("data-href"))if(R=R.href||R.getAttribute("data-href"),o8B(R)&&!g8t(R).urlPrefix_.endsWith("_/js/")){R=piG(g8t(R));R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,f.loadedCssModuleList_.includes(u)||f.loadedCssModuleList_.push(u)}};
_.Iz.prototype.JSC$8940_loadModules=function(f,R,u){var O=u===void 0?{}:u;u=O.extraEdges;var c=O.onError;var h=O.onSuccess;O=O.forceReload;this.JSC$8938_moduleInfoMap_=R;if(!f)throw Error("md");if(this.shouldScanForCss_){R=_.Z(document.getElementsByTagName("style"));for(var l=R.next();!l.done;l=R.next())FYk(this,l.value);R=_.Z(document.getElementsByTagName("link"));for(l=R.next();!l.done;l=R.next())FYk(this,l.value)}w5l(this,mBI(this,f),u,c,h,O)};
var w5l=function(f,R,u,O,c,h){O=O===void 0?function(){}:O;
c=c===void 0?function(){}:c;
h=h===void 0?!1:h;QhE(f,R,function(l,K,q){q=q===void 0?K:q;f.enableFallbackFetch&&h?f.loadWithFetch(l,K,O,c,q):f.load(l,K,O,c,q,u)},u)||O(-1)};
_.Iz.prototype.loadWithFetch=function(){_.k(function(){throw Error("nd");})};
_.Iz.prototype.maybeSetAdditionalFields=function(){};
tVF=function(f,R,u){if(f.useNegativeLoading_){var O=f.scsReferenceUrl_;f={cssRowKey:f.cssRowKey_,combinedSignature:f.combinedSignature_,extraEdges:u,requestedModuleIds:WYi(f),requestedCssModuleIds:ENf(f)};var c=f===void 0?{}:f;f=c.requestedModuleIds===void 0?[]:c.requestedModuleIds;u=c.requestedCssModuleIds===void 0?[]:c.requestedCssModuleIds;var h=c.cssRowKey===void 0?void 0:c.cssRowKey;var l=c.combinedSignature===void 0?void 0:c.combinedSignature;var K=c.extraEdges===void 0?void 0:c.extraEdges;
c=c.callback===void 0?void 0:c.callback;O=O0f(O);m4(O,"d","1");LDG(O,f);bRE(O,u);R=X5i(O,R,{cssRowKey:h,combinedSignature:l,extraEdges:K,callback:c})}else O=f.scsReferenceUrl_,f={cssRowKey:f.cssRowKey_,combinedSignature:f.combinedSignature_,requestedModuleIds:WYi(f),requestedCssModuleIds:ENf(f)},K=f===void 0?{}:f,f=K.requestedCssModuleIds===void 0?[]:K.requestedCssModuleIds,u=K.cssRowKey===void 0?void 0:K.cssRowKey,h=K.combinedSignature===void 0?void 0:K.combinedSignature,l=K.extraEdges===void 0?
void 0:K.extraEdges,K=K.callback===void 0?void 0:K.callback,O=O0f(O),bRE(O,f),R=X5i(O,R,{cssRowKey:u,combinedSignature:h,extraEdges:l,callback:K});return R};
_.Hq=function(f,R){for(var u=!1,O=[],c=0;c<R.length;++c){var h=R[c];f.requestedModuleMap_[h]||(f.requestedModuleMap_[h]=!0,f.requestedModuleList_.push(h),u=!0,O.push(h))}u&&(f.requestedModuleListSorted_=!1)};
_.M_=function(f,R){for(var u=[],O=0;O<R.length;++O){var c=R[O];f.requestedModuleMap_[c]&&(delete f.requestedModuleMap_[c],_.v0(f.requestedModuleList_,c),u.push(c))}};
_.Iz.prototype.load=function(f,R,u,O,c){c=c===void 0?R:c;_.k3(f);var h=this.useCors_,l=this.corsMode_,K=this.fetchPriority,q=_.mD("SCRIPT");_.UO(q,f);h&&(q.crossOrigin=l);q.async=!1;K&&q.setAttribute("fetchpriority",K);_.Hq(this,R);_.Cci(this,f,q,R,u,O,c)};
_.Cci=function(f,R,u,O,c,h,l){l=l===void 0?O:l;f.lastScript_=u;f.insertPos.insertBefore(u,f.insertPos.firstChild);_.yri(u,O,function(){u.parentElement.removeChild(u);f.lastScript_==u&&(f.lastScript_=null);var K=new Set;O.map(function(F){return K.add(F)});
for(var q in f.JSC$8938_moduleInfoMap_)f.JSC$8938_moduleInfoMap_[q].isLoaded()&&K.add(q);Array.from(K);h()},function(K){u.parentElement.removeChild(u);
f.lastScript_==u&&(f.lastScript_=null);_.M_(f,K);f.pendingModuleGraphUpdate_?f.pendingModuleGraphUpdate_.then(function(){c(-1,R)}):c(-1,R)},l)};
_.yri=function(f,R,u,O,c){c=c===void 0?R:c;var h=R.length,l=function(){h=0;f.onload=null;f.onerror=null;K=function(){}},K=function(){l();
var F=c.filter(function(w){return!JK().getModuleInfo(w).isLoaded()});
F.length!==0?O(F,"Response was successful but was missing module(s) "+F+"."):u()},q=function(){h--;
h==0&&K()};
R.forEach(function(F){F=JK().getModuleInfo(F);F.isLoaded()?q():(qWY(F.earlyOnloadCallbacks_,q),ArI(F,q))});
f.onload=function(){return K()};
f.onerror=function(){l();O(R)}};
WYi=function(f){f.requestedModuleListSorted_||(f.requestedModuleListSorted_=!0,f.requestedModuleList_.sort());return f.requestedModuleList_};
ENf=function(f){f=f.loadedCssModuleList_;f.sort();return f};
mBI=function(f,R){return R.filter(function(u){return!f.requestedModuleMap_[u]})};
QhE=function(f,R,u,O){if(f.pendingModuleGraphUpdate_)return f.pendingModuleGraphUpdate_.then(function(){QhE(f,R,u,O)}),!0;
if(!f.useNegativeLoading_){var c=[],h=Object.assign({},f.requestedModuleMap_);dBi(f,R,function(w){c.push(w.getId())},O,function(w){return!w.isLoaded()},h);
R=c}for(h=0;h<R.length;){for(var l=R.length-h,K=h==0?R:R.slice(h,R.length),q=tVF(f,K,O),F=_.k3(q).toString();F.length>f.urlMaxLength;)if(l>1)l-=Math.ceil((F.length-f.urlMaxLength)/6),l=Math.max(l,1),K=R.slice(h,h+l),q=tVF(f,K,O),F=_.k3(q).toString();else return f.useNegativeLoading_?(f.useNegativeLoading_=!1,f.pendingModuleGraphUpdate_=NJf(f).then(function(w){LYC(f,w,O)}),QhE(f,R.slice(h),u,O)):!1;
h+=l;f.useNegativeLoading_?u(q,K):u(q,K,h===R.length?R:[])}return!0};
LYC=function(f,R,u){JK().setAllModuleInfoString((R||{}).moduleGraph);dBi(f,WYi(f),function(O){_.Hq(f,[O.getId()])},u);
f.pendingModuleGraphUpdate_=null};
dBi=function(f,R,u,O,c,h){h=h===void 0?{}:h;var l=JK();R=_.Z(R);for(var K=R.next();!K.done;K=R.next()){K=K.value;var q=l.getModuleInfo(K);if(!(h[K]||c&&!c(q))){h[K]=!0;var F=q.deps_||[];if(O){var w=[];O[K]&&(w=Object.keys(O[K]));F=F.concat(w)}dBi(f,F,u,O,c,h);u(q)}}};
NJf=function(f){f=f.scsReferenceUrl_.clone();DGl(f);m4(f,"dg",null);m4(f,"md","1");return Z0E(f.toString())};var mIq=new Uint8Array(123);var b0f=[];var p5E=function(){this.JSC$8058_loader_=null};
_.X=p5E.prototype;_.X.setBatchModeEnabled=function(){};
_.X.setAllModuleInfoString=function(){};
_.X.addExtraEdge=function(){throw Error("od");};
_.X.removeExtraEdge=function(){throw Error("pd");};
_.X.getModuleContext=function(){return null};
_.X.isActive=function(){return!1};
_.X.isUserActive=function(){return!1};
_.X.registerCallback=function(){};var Pq=function(f,R,u,O,c){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.name="ModuleLoadFailure";this.type=f;this.status=R;this.requestedModuleIds=u;this.url=O;this.cause=c;this.message=this.toString()};
_.y(Pq,Error);Pq.prototype.toString=function(){return jhF(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var jhF=function(f){switch(f.type){case Pq.JSC$8950_Type.UNAUTHORIZED:return"Unauthorized";case Pq.JSC$8950_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Pq.JSC$8950_Type.TIMEOUT:return"Timed out";case Pq.JSC$8950_Type.OLD_CODE_GONE:return"Out of date module id";case Pq.JSC$8950_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+f.type}};
v9.ModuleLoadFailure=Pq;v9.ModuleLoadFailure.JSC$8950_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var UQ=function(){this.moduleIds_=this.JSC$8058_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8953_extraEdges_={};this.JSC$8953_callbackMap_={};this.JSC$8953_currentlyLoadingModule_=this.baseModuleInfo_=new Tg([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new G0;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.f6(UQ,p5E);var DBt=function(f,R){_.R7.call(this,"Error loading "+f+": "+R)};
_.f6(DBt,_.R7);UQ.prototype.setBatchModeEnabled=function(f){this.batchModeEnabled_=f};
UQ.prototype.setAllModuleInfoString=function(f,R){if(!(this instanceof UQ))this.setAllModuleInfoString(f,R);else if(typeof f==="string"){if(f.startsWith("d$")){f=f.substring(2);for(var u=[],O=0,c=f.indexOf("/"),h=0,l=!1,K=0;;){var q=l?f.substring(h):f.substring(h,c);if(q.length===0)O++,h="sy"+O.toString(36),q=[];else{var F=q.indexOf(":");if(F<0)h=q,q=[];else if(F===q.length-1)h=q.substring(0,F),q=Array(u[K-1]);else{h=q.substring(0,F);q=q.substring(F+1).split(",");F=K;for(var w=0;w<q.length;w++)F-=
q[w].length===0?1:Number(q[w]),q[w]=u[F]}F=0;if(h.length===0)F=1;else if(h.charAt(0)==="+"||h.charAt(0)==="-")F=Number(h);F!==0&&(O+=F,h="sy"+O.toString(36))}u.push(h);JrE(this,h,q);if(l)break;h=c+1;c=f.indexOf("/",h);c===-1&&(l=!0);K++}this.moduleIds_=u}else if(f.startsWith("p$"))zMC(this,f);else{f=f.split("/");u=[];for(O=0;O<f.length;O++){K=f[O].split(":");c=K[0];l=[];if(K[1])for(l=K[1].split(","),K=0;K<l.length;K++)l[K]=u[parseInt(l[K],36)];u.push(c);JrE(this,c,l)}this.moduleIds_=u}R&&R.length?
(_.uf(this.loadingModuleIds_,R),this.lastInitialModuleId_=_.Ue(R)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8953_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8953_currentlyLoadingModule_=null,(R=this.baseModuleInfo_.onLoad((0,_.NG)(this.getModuleContext,this)))&&R.length&&TJI(this,new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.INIT_ERROR,void 0,void 0,void 0,R[0])),eH(this))}};
var zMC=function(f,R){var u=R.substring(2);for(R=0;R<64;R++)mIq["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(R)]=R;var O={buf:u,pos:0};uq(O);var c=uq(O),h=uq(O)+1;R=Array(c);var l=Array(c),K=Array(c);h=Array(h);var q=0,F=0,w=O.pos,m=O.buf.indexOf("|",O.pos);O.pos=m+1;for(m=0;m<c;m++){var W=uq(O),C=W&2,d=W&1;W>>>=2;d?(q+=W>>>1^-(W&1),W="sy"+q.toString(36)):(d=w,w+=W,W=u.substring(d,w));R[m]=W;C&&(h[F++]=W)}h[F]="";O.pos++;F=c&-2;u=c&1;for(q=0;q<F;q+=2)w=QXP(O),K[q]=
w&7,K[q+1]=w>>>3&7;u&&(u=QXP(O),K[F]=u&7);O.pos++;for(F=0;F<c;F++)K[F]===7&&(K[F]=uq(O));O.pos++;for(u=F=0;u<c;u++){q=K[u];w=q===0?b0f:Array(q);l[u]=w;m=F;for(C=0;C<q;C++)m-=uq(O),w[C]=h[m];h[F]===R[u]&&F++}for(O=0;O<R.length;O++)JrE(f,R[O],l[O]);f.moduleIds_=R};
_.X=UQ.prototype;_.X.getModuleInfo=function(f){return this.moduleInfoMap[f]};
_.X.addExtraEdge=function(f,R){var u=this.getModuleInfo(f);u&&u.isLoaded()?this.load(R):(this.JSC$8953_extraEdges_[f]||(this.JSC$8953_extraEdges_[f]={}),this.JSC$8953_extraEdges_[f][R]=!0)};
_.X.removeExtraEdge=function(f,R){if(this.JSC$8953_extraEdges_[f]){delete this.JSC$8953_extraEdges_[f][R];for(var u in this.JSC$8953_extraEdges_[f])return;delete this.JSC$8953_extraEdges_[f]}};
_.X.isActive=function(){return this.loadingModuleIds_.length>0};
_.X.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var eH=function(f){var R=f.lastActive_,u=f.isActive();u!=R&&(f.executeCallbacks_(u?"active":"idle"),f.lastActive_=u);R=f.isUserActive();R!=f.userLastActive_&&(f.executeCallbacks_(R?"userActive":"userIdle"),f.userLastActive_=R)},JrE=function(f,R,u){f.moduleInfoMap[R]?(f=f.moduleInfoMap[R].deps_,f!=u&&f.splice.apply(f,[0,
f.length].concat(_.yq(u)))):f.moduleInfoMap[R]=new Tg(u,R)},I8A=function(f,R,u){var O=[];
Xi(R,O);R=[];for(var c={},h=0;h<O.length;h++){var l=O[h],K=f.getModuleInfo(l);if(!K)throw Error("qd`"+l);var q=new G0;c[l]=q;K.isLoaded()?q.callback(null):(H0f(f,l,K,!!u,q),f.isModuleLoading(l)||R.push(l))}R.length>0&&(f.loadingModuleIds_.length===0?f.loadModules_(R):(f.requestedModuleIdsQueue_.push(R),eH(f)));return c},H0f=function(f,R,u,O,c){u.registerCallback(c.callback,c);
ArI(u,function(h){c.errback(new DBt(R,h))});
f.isModuleLoading(R)?O&&(MVi(f,R),eH(f)):O&&MVi(f,R)};
UQ.prototype.loadModules_=function(f,R,u){var O=this;R||(this.consecutiveFailures_=0);var c=PcH(this,f);this.loadingModuleIds_=c;this.requestedLoadingModuleIds_=this.batchModeEnabled_?f:_.iB(c);eH(this);if(c.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,c);if(Object.keys(this.JSC$8953_extraEdges_).length>0&&!this.JSC$8058_loader_.supportsExtraEdges)throw Error("rd");f=(0,_.NG)(this.JSC$8058_loader_.JSC$8940_loadModules,this.JSC$8058_loader_,_.iB(c),this.moduleInfoMap,{extraEdges:this.JSC$8953_extraEdges_,
forceReload:!!u,onError:function(h,l){var K=O.requestedLoadingModuleIds_;h=h!=null?h:void 0;O.consecutiveFailures_++;var q=_.iB(c);O.requestedLoadingModuleIds_=K;c.forEach(_.mx(_.v0,O.requestedModuleIds_),O);h==401?(TJI(O,new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.UNAUTHORIZED,h)),O.requestedModuleIdsQueue_.length=0):h==410?(UBI(O,new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.OLD_CODE_GONE,h)),eMH(O)):O.consecutiveFailures_>=3?(UBI(O,new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.CONSECUTIVE_FAILURES,
h,q,l)),eMH(O)):O.loadModules_(O.requestedLoadingModuleIds_,!0,h==8001||!1)},
onTimeout:(0,_.NG)(this.handleLoadTimeout_,this)});(R=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Oe.setTimeout(f,R):f()}};
var PcH=function(f,R){R=R.filter(function(c){return f.moduleInfoMap[c].isLoaded()?(_.Oe.setTimeout(function(){return Error("sd`"+c)},0),!1):!0});
for(var u=[],O=0;O<R.length;O++)u=u.concat(GLC(f,R[O]));Xi(u);return!f.batchModeEnabled_&&u.length>1?(R=u.shift(),f.requestedModuleIdsQueue_=u.map(function(c){return[c]}).concat(f.requestedModuleIdsQueue_),[R]):u},GLC=function(f,R){var u=_.dq.createSet(f.requestedModuleIds_),O=[];
u[R]||O.push(R);R=[R];for(var c=0;c<R.length;c++)for(var h=f.getModuleInfo(R[c]).deps_,l=h.length-1;l>=0;l--){var K=h[l];f.getModuleInfo(K).isLoaded()||u[K]||(O.push(K),R.push(K))}O.reverse();Xi(O);return O};
UQ.prototype.JSC$8948_setLoaded=function(){if(this.JSC$8953_currentlyLoadingModule_){var f=this.JSC$8953_currentlyLoadingModule_.getId(),R=[];if(this.JSC$8953_extraEdges_[f]){for(var u=_.Z(Object.keys(this.JSC$8953_extraEdges_[f])),O=u.next();!O.done;O=u.next()){O=O.value;var c=this.getModuleInfo(O);c&&!c.isLoaded()&&(this.removeExtraEdge(f,O),R.push(O))}this.loadMultiple(R)}this.isDisposed()||((R=this.moduleInfoMap[f].onLoad((0,_.NG)(this.getModuleContext,this)))&&R.length&&TJI(this,new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.INIT_ERROR,
void 0,void 0,void 0,R[0])),_.v0(this.userInitiatedLoadingModuleIds_,f),_.v0(this.loadingModuleIds_,f),this.loadingModuleIds_.length===0&&eMH(this),this.lastInitialModuleId_&&f==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),eH(this),this.JSC$8953_currentlyLoadingModule_=null)}};
UQ.prototype.isModuleLoading=function(f){if(_.g7(this.loadingModuleIds_,f))return!0;for(var R=0;R<this.requestedModuleIdsQueue_.length;R++)if(_.g7(this.requestedModuleIdsQueue_[R],f))return!0;return!1};
UQ.prototype.load=function(f,R){return I8A(this,[f],R)[f]};
UQ.prototype.loadMultiple=function(f){return I8A(this,f)};
var MVi=function(f,R){_.g7(f.userInitiatedLoadingModuleIds_,R)||f.userInitiatedLoadingModuleIds_.push(R)};
UQ.prototype.beforeLoadModuleCode=function(f){var R=this;this.JSC$8953_currentlyLoadingModule_&&this.JSC$8953_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8948_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[f]&&BJC(this,this.moduleInfoMap[f].deps_||[],function(u){u.module_=new zg;_.v0(R.loadingModuleIds_,u.getId())},function(u){return!u.isLoaded()});
this.JSC$8953_currentlyLoadingModule_=this.getModuleInfo(f)};
UQ.prototype.handleLoadTimeout_=function(){UBI(this,new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.TIMEOUT));eMH(this)};
var UBI=function(f,R){f.requestedLoadingModuleIds_.length>1?f.requestedModuleIdsQueue_=f.requestedLoadingModuleIds_.map(function(u){return[u]}).concat(f.requestedModuleIdsQueue_):TJI(f,R)},TJI=function(f,R){var u=f.requestedLoadingModuleIds_;
f.loadingModuleIds_.length=0;for(var O=[],c=0;c<f.requestedModuleIdsQueue_.length;c++){var h=f.requestedModuleIdsQueue_[c].filter(function(q){var F=GLC(this,q);return nB(u,function(w){return _.g7(F,w)})},f);
_.uf(O,h)}for(c=0;c<u.length;c++)_.se(O,u[c]);for(c=0;c<O.length;c++){for(h=0;h<f.requestedModuleIdsQueue_.length;h++)_.v0(f.requestedModuleIdsQueue_[h],O[c]);_.v0(f.userInitiatedLoadingModuleIds_,O[c])}if(c=f.JSC$8953_callbackMap_.error)for(h=0;h<c.length;h++)for(var l=c[h],K=0;K<O.length;K++)l("error",O[K],R);for(O=0;O<u.length;O++)if(f.moduleInfoMap[u[O]])f.moduleInfoMap[u[O]].onError(R);f.requestedLoadingModuleIds_.length=0;eH(f)},eMH=function(f){for(;f.requestedModuleIdsQueue_.length;){var R=
f.requestedModuleIdsQueue_.shift().filter(function(u){return!this.getModuleInfo(u).isLoaded()},f);
if(R.length>0){f.loadModules_(R);return}}eH(f)};
UQ.prototype.registerCallback=function(f,R){Array.isArray(f)||(f=[f]);for(var u=0;u<f.length;u++){var O=f[u],c=R,h=this.JSC$8953_callbackMap_;h[O]||(h[O]=[]);h[O].push(c)}};
UQ.prototype.executeCallbacks_=function(f){for(var R=this.JSC$8953_callbackMap_[f],u=0;R&&u<R.length;u++)R[u](f)};
var BJC=function(f,R,u,O,c){O=O===void 0?function(){return!0}:O;
c=c===void 0?{}:c;R=_.Z(R);for(var h=R.next();!h.done;h=R.next()){h=h.value;var l=f.getModuleInfo(h);!c[h]&&O(l)&&(c[h]=!0,BJC(f,l.deps_||[],u,O,c),u(l))}};
UQ.prototype.dispose=function(){_.vK(_.dq.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8953_callbackMap_={};this.isDisposed_=!0};
UQ.prototype.isDisposed=function(){return this.isDisposed_};
_.DN=function(){return new UQ};var oNt=[5E3,2E4],xBi=function(){this.JSC$8058_loader_=null;this.JSC$8961_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8961_queue_=[];this.JSC$8961_extraEdges_=Object.create(null);this.JSC$8961_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.y(xBi,p5E);_.X=xBi.prototype;_.X.setAllModuleInfoString=function(){this.JSC$8961_currentlyLoadingModule_&&this.JSC$8961_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8948_setLoaded()};
_.X.getModuleInfo=function(f){var R=this.JSC$8961_moduleInfoMap_[f];R||(R=new Tg([],f),this.JSC$8961_moduleInfoMap_[f]=R);return R};
_.X.addExtraEdge=function(f,R){this.getModuleInfo(f).isLoaded()?this.load(R):(this.JSC$8961_extraEdges_[f]||(this.JSC$8961_extraEdges_[f]={}),this.JSC$8961_extraEdges_[f][R]=!0)};
_.X.removeExtraEdge=function(f,R){if(this.JSC$8961_extraEdges_[f]){delete this.JSC$8961_extraEdges_[f][R];for(var u in this.JSC$8961_extraEdges_[f])return;delete this.JSC$8961_extraEdges_[f]}};
_.X.isModuleLoading=function(f){return!!this.loadingModules_[f]};
_.X.load=function(f){SWi(this,[f]);return $Bf(this,f)};
_.X.loadMultiple=function(f){var R=this,u=Object.create(null),O=[];f.forEach(function(c){u[c]||(u[c]=$Bf(R,c),O.push(c))});
SWi(this,O);return u};
_.X.beforeLoadModuleCode=function(f){var R;((R=this.JSC$8961_currentlyLoadingModule_)==null?void 0:R.getId())==="synthetic_module_overhead"&&this.JSC$8948_setLoaded();var u,O;gNH(this,(O=(u=this.JSC$8961_moduleInfoMap_[f])==null?void 0:u.deps_)!=null?O:[],function(c){c.module_=new zg},function(c){return!c.isLoaded()});
this.JSC$8961_currentlyLoadingModule_=this.getModuleInfo(f)};
_.X.JSC$8948_setLoaded=function(){if(this.JSC$8961_currentlyLoadingModule_){var f=this.JSC$8961_currentlyLoadingModule_.getId(),R=[];if(this.JSC$8961_extraEdges_[f]){for(var u=_.Z(Object.keys(this.JSC$8961_extraEdges_[f])),O=u.next();!O.done;O=u.next())O=O.value,this.getModuleInfo(O).isLoaded()||(this.removeExtraEdge(f,O),R.push(O));this.loadMultiple(R)}this.JSC$8961_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8961_currentlyLoadingModule_=null;(!this.isModuleLoading(f)&&/^sy[0-9a-z]{0,4}$/.test(f)||f==="synthetic_module_overhead")&&delete this.JSC$8961_moduleInfoMap_[f];this.unsetModulesAsLoading(f)}};
_.X.setModulesAsLoading=function(){var f=this;_.yK.apply(0,arguments).forEach(function(R){f.loadingModules_[R]=!0})};
_.X.unsetModulesAsLoading=function(){var f=this;_.yK.apply(0,arguments).forEach(function(R){delete f.loadingModules_[R]})};
var $Bf=function(f,R){return new _.ah(function(u,O){var c=f.getModuleInfo(R);c.isLoaded()?u(null):(c.registerCallback(function(){u(null)}),ArI(c,function(h){var l="Error loading "+R+": "+h;
h instanceof v9.ModuleLoadFailure&&h.url&&(l=l+", requested url: "+h.url.toString());O(Error(l))}))})},SWi=function(f,R){R=R.filter(function(u){return!f.isModuleLoading(u)&&!f.getModuleInfo(u).isLoaded()});
R.length>0&&(f.setModulesAsLoading.apply(f,_.yq(R)),f.JSC$8961_queue_.push(R),shG(f))},shG=function(f){for(var R={};f.activeLoads_<Infinity&&f.JSC$8961_queue_.length>0;R={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})R.ids$jscomp$36=f.JSC$8961_queue_.shift().filter(function(u){return!f.getModuleInfo(u).isLoaded()}),R.ids$jscomp$36.length>0&&(f.activeLoads_++,R.finishLoad=function(u){return function(){f.activeLoads_--;
shG(f);u.finishLoad=function(){}}}(R),_.EF(R.ids$jscomp$36.map(function(u){return $Bf(f,u)})).then(function(u){return function(){(0,u.finishLoad)()}}(R)),R.attempt$jscomp$6=0,R.load$jscomp$1=function(u){return function(){if(Object.keys(f.JSC$8961_extraEdges_).length>0&&!f.JSC$8058_loader_.supportsExtraEdges)throw Error("rd");
f.JSC$8058_loader_.JSC$8940_loadModules(u.ids$jscomp$36,f.JSC$8961_moduleInfoMap_,{extraEdges:f.JSC$8961_extraEdges_,onError:function(O,c){var h=oNt[u.attempt$jscomp$6++];h!==void 0?setTimeout(function(){(0,u.load$jscomp$1)()},h):(f.unsetModulesAsLoading.apply(f,_.yq(u.ids$jscomp$36)),(0,u.finishLoad)(),u.ids$jscomp$36.forEach(function(l){l=f.getModuleInfo(l);
if(!l.isLoaded())l.onError(new v9.ModuleLoadFailure(v9.ModuleLoadFailure.JSC$8950_Type.CONSECUTIVE_FAILURES,O,u.ids$jscomp$36,c))}))}})}}(R),(0,R.load$jscomp$1)())},gNH=function(f,R,u,O,c){O=O===void 0?function(){return!0}:O;
c=c===void 0?{}:c;R=_.Z(R);for(var h=R.next();!h.done;h=R.next()){h=h.value;var l=f.getModuleInfo(h);!c[h]&&O(l)&&(c[h]=!0,gNH(f,l.deps_||[],u,O,c),u(l))}};var nNC=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var EG7=Symbol("ud");window.JSCompiler_renameProperty=function(f){return f};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var VVi=!nNC||HTMLElement.es5Shimmed||_.Oe.Reflect===void 0||_.Oe.customElements===void 0||_.Oe.customElements.polyfillWrapFlushCallback||!1,YWk,xrh=function(){var f=HTMLElement;if(VVi)return f;if(YWk!==void 0)return YWk;var R=_.Oe.Reflect,u=function(){return R.construct(f,[],this.constructor)};
u.prototype=f.prototype;u.prototype.constructor=u;u.es5Shimmed=!0;Object.setPrototypeOf(u,f);return YWk=u},vNC=!1;VVi||vNC||(vNC=!0,_.Oe.HTMLElement=xrh());/*

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 NxB=/(url\()([^)]*)(\))/g,ySn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,dIB,Ou;var M1=!window.ShadyDOM||!window.ShadyDOM.inUse,i0I=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),rrG=!window.customElements.polyfillWrapFlushCallback,faf;if(faf=M1&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var RhF=new CSSStyleSheet;RhF.replaceSync("");var uPH=document.createElement("div");uPH.attachShadow({mode:"open"});uPH.shadowRoot.adoptedStyleSheets=[RhF];faf=uPH.shadowRoot.adoptedStyleSheets[0]===RhF}catch(f){faf=!1}
var OTI=faf,cZl=window.Polymer&&window.Polymer.rootPath||bLP(document.baseURI||window.location.href),WC=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,MPe=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,GO=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,XCl=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,II=window.Polymer&&window.Polymer.legacyOptimizations||!1,e2=window.Polymer&&window.Polymer.legacyWarnings||!1,hhI=window.Polymer&&window.Polymer.syncInitialRender||
!1,tZ=window.Polymer&&window.Polymer.legacyUndefined||!1,ZTY=window.Polymer&&window.Polymer.orderedComputed||!1,Gg=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Bq=window.Polymer&&window.Polymer.fastDomIf||!1,oz=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,lal=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,kOt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var xw={},KFH={},yy=function(){return HTMLElement.apply(this,arguments)||this};
_.y(yy,HTMLElement);yy.import=function(f,R){return f?(f=xw[f]||KFH[f.toLowerCase()])&&R?f.querySelector(R):f:null};
yy.prototype.attributeChangedCallback=function(f,R,u){R!==u&&this.register()};
yy.prototype.register=function(f){if(f=f||this.id){if(GO&&(xw[f]||KFH[f.toLowerCase()])!==void 0)throw xw[f]=KFH[f.toLowerCase()]=null,Error("vd`"+f);this.id=f;xw[f]=KFH[f.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Vy.Object.defineProperties(yy.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var f=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;f=_.cC(this.getAttribute("assetpath")||"",f.baseURI);this.__assetpath=bLP(f)}return this.__assetpath}}});
_.Vy.Object.defineProperties(yy,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
yy["import"]=yy.import;yy.prototype.modules=xw;customElements.define("dom-module",yy);var quA=0,jX7=0,XP=[],AZG=0,pMB=!1,aaf=document.createTextNode(""),FFt,TO;(new window.MutationObserver(DID)).observe(aaf,{characterData:!0});_.SH={after:function(f){return{run:function(R){return window.setTimeout(R,f)},
cancel:function(R){window.clearTimeout(R)}}},
run:function(f,R){return window.setTimeout(f,R)},
cancel:function(f){window.clearTimeout(f)}};
_.dR={run:function(f){return window.requestAnimationFrame(f)},
cancel:function(f){window.cancelAnimationFrame(f)}};
FFt={run:function(f){return window.requestIdleCallback?window.requestIdleCallback(f):window.setTimeout(f,16)},
cancel:function(f){window.cancelIdleCallback?window.cancelIdleCallback(f):window.clearTimeout(f)}};
TO={run:function(f){pMB||(pMB=!0,aaf.textContent=AZG++);XP.push(f);return quA++},
cancel:function(f){var R=f-jX7;if(R>=0){if(!XP[R])throw Error("wd`"+f);XP[R]=null}}};var wCf=0,$w=function(f){var R=f.__mixinApplications;R||(R=new WeakMap,f.__mixinApplications=R);var u=wCf++;return function(O){var c=O.__mixinSet;if(c&&c[u])return O;var h=R,l=h.get(O);l||(l=f(O),h.set(O,l),O=Object.create(l.__mixinSet||c||null),O[u]=!0,l.__mixinSet=O);return l}};_.Qy=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(f){return ShadyDOM.patch(f)}:function(f){return f};var m1Y=$w(function(f){var R=function(){var u=f.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};
_.y(R,f);R.createProperties=function(u){var O=this.prototype,c;for(c in u)c in O||O._createPropertyAccessor(c)};
R.attributeNameForProperty=function(u){return u.toLowerCase()};
R.typeForProperty=function(){};
R.prototype._createPropertyAccessor=function(u,O){this._addPropertyToAttributeMap(u);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[u]||(this.__dataHasAccessor[u]=!0,this._definePropertyAccessor(u,O))};
R.prototype._addPropertyToAttributeMap=function(u){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var O=this.__dataAttributes[u];O||(O=this.constructor.attributeNameForProperty(u),this.__dataAttributes[O]=u);return O};
R.prototype._definePropertyAccessor=function(u,O){Object.defineProperty(this,u,{get:function(){return this.__data[u]},
set:O?function(){}:function(c){this._setPendingProperty(u,c,!0)&&this._invalidateProperties()}})};
R.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
R.prototype._initializeProperties=function(){for(var u in this.__dataHasAccessor)this.hasOwnProperty(u)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[u]=this[u],delete this[u])};
R.prototype._initializeInstanceProperties=function(u){Object.assign(this,u)};
R.prototype._setProperty=function(u,O){this._setPendingProperty(u,O)&&this._invalidateProperties()};
R.prototype._getProperty=function(u){return this.__data[u]};
R.prototype._setPendingProperty=function(u,O){var c=this.__data[u],h=this._shouldPropertyChange(u,O,c);h&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||u in this.__dataOld||(this.__dataOld[u]=c),this.__data[u]=O,this.__dataPending[u]=O);return h};
R.prototype._isPropertyPending=function(u){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(u))};
R.prototype._invalidateProperties=function(){var u=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,TO.run(function(){u.__dataInvalid&&(u.__dataInvalid=!1,u._flushProperties())}))};
R.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
R.prototype._flushProperties=function(){this.__dataCounter++;var u=this.__data,O=this.__dataPending,c=this.__dataOld;this._shouldPropertiesChange(u,O,c)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(u,O,c));this.__dataCounter--};
R.prototype._shouldPropertiesChange=function(u,O){return!!O};
R.prototype._propertiesChanged=function(){};
R.prototype._shouldPropertyChange=function(u,O,c){return c!==O&&(c===c||O===O)};
R.prototype.attributeChangedCallback=function(u,O,c,h){O!==c&&this._attributeToProperty(u,c);f.prototype.attributeChangedCallback&&f.prototype.attributeChangedCallback.call(this,u,O,c,h)};
R.prototype._attributeToProperty=function(u,O,c){if(!this.__serializing){var h=this.__dataAttributes;u=h&&h[u]||u;this[u]=this._deserializeValue(O,c||this.constructor.typeForProperty(u))}};
R.prototype._propertyToAttribute=function(u,O,c){this.__serializing=!0;c=arguments.length<3?this[u]:c;this._valueToNodeAttribute(this,c,O||this.constructor.attributeNameForProperty(u));this.__serializing=!1};
R.prototype._valueToNodeAttribute=function(u,O,c){O=this._serializeValue(O);if(c==="class"||c==="name"||c==="slot")u=(0,_.Qy)(u);O===void 0?u.removeAttribute(c):u.setAttribute(c,O===""&&window.trustedTypes?window.trustedTypes.emptyScript:O)};
R.prototype._serializeValue=function(u){switch(typeof u){case "boolean":return u?"":void 0;default:return u!=null?u.toString():void 0}};
R.prototype._deserializeValue=function(u,O){switch(O){case Boolean:return u!==null;case Number:return Number(u);default:return u}};
return R});var QIl=0,JS7=[];var WFl=$w(function(f){function R(h){h=Object.getPrototypeOf(h);return h.prototype instanceof c?h:null}
function u(h){if(!h.hasOwnProperty("__ownProperties")){var l=null;if(h.hasOwnProperty("properties")){var K=h.properties;if(K){l={};for(var q in K){var F=K[q];l[q]=typeof F==="function"?{type:F}:F}}}h.__ownProperties=l}return h.__ownProperties}
var O=m1Y(f),c=function(){return O.apply(this,arguments)||this};
_.y(c,O);c.finalize=function(){if(!this.hasOwnProperty("__finalized")){var h=R(this);h&&h.finalize();this.__finalized=!0;this._finalizeClass()}};
c._finalizeClass=function(){var h=u(this);h&&this.createProperties(h)};
c.typeForProperty=function(h){return(h=this._properties[h])&&h.type};
c.prototype._initializeProperties=function(){QIl++;this.constructor.finalize();O.prototype._initializeProperties.call(this)};
c.prototype.connectedCallback=function(){O.prototype.connectedCallback&&O.prototype.connectedCallback.call(this);this._enableProperties()};
c.prototype.disconnectedCallback=function(){O.prototype.disconnectedCallback&&O.prototype.disconnectedCallback.call(this)};
_.Vy.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var h=this;if(!this.hasOwnProperty("__observedAttributes")){z55(this.prototype);var l=this._properties;this.__observedAttributes=l?Object.keys(l).map(function(K){return h.prototype._addPropertyToAttributeMap(K)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var h=R(this);this.__properties=Object.assign({},h&&h._properties,u(this))}return this.__properties}}});
return c});var Txh={},HLe=/-[a-z]/g,IBX=/([A-Z])/g;for(var EVI={},t2i=HTMLElement.prototype;t2i;){for(var Cqi=Object.getOwnPropertyNames(t2i),yZi=0;yZi<Cqi.length;yZi++)EVI[Cqi[yZi]]=!0;t2i=Object.getPrototypeOf(t2i)}var d1C=window.trustedTypes?function(f){return trustedTypes.isHTML(f)||trustedTypes.isScript(f)||trustedTypes.isScriptURL(f)}:function(){return!1},NeC=$w(function(f){var R=m1Y(f);
f=function(){return R.apply(this,arguments)||this};
_.y(f,R);f.createPropertiesForAttributes=function(){for(var u=this.observedAttributes,O=0;O<u.length;O++)this.prototype._createPropertyAccessor(hZ(u[O]))};
f.attributeNameForProperty=function(u){return Za(u)};
f.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);R.prototype._initializeProperties.call(this)};
f.prototype._initializeProtoProperties=function(u){for(var O in u)this._setProperty(O,u[O])};
f.prototype._ensureAttribute=function(u,O){this.hasAttribute(u)||this._valueToNodeAttribute(this,O,u)};
f.prototype._serializeValue=function(u){switch(typeof u){case "object":if(u instanceof Date)return u.toString();if(u){if(d1C(u))return u;try{return JSON.stringify(u)}catch(O){return""}}default:return R.prototype._serializeValue.call(this,u)}};
f.prototype._deserializeValue=function(u,O){switch(O){case Object:try{var c=JSON.parse(u)}catch(h){c=u}break;case Array:try{c=JSON.parse(u)}catch(h){c=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+u)}break;case Date:c=isNaN(u)?String(u):Number(u);c=new Date(c);break;default:c=R.prototype._deserializeValue.call(this,u,O)}return c};
f.prototype._definePropertyAccessor=function(u,O){if(!EVI[u]){var c=this[u];c!==void 0&&(this.__data?this._setPendingProperty(u,c):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[u]=c))}R.prototype._definePropertyAccessor.call(this,u,O)};
f.prototype._hasAccessor=function(u){return this.__dataHasAccessor&&this.__dataHasAccessor[u]};
f.prototype._isPropertyPending=function(u){return!!(this.__dataPending&&u in this.__dataPending)};
return f});var LFt={"dom-if":!0,"dom-repeat":!0},bTE=!1,pCI=!1,jIA=function(){var f=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(R){return R}});
return function(R,u,O){u=u.getAttribute(O);f&&O.startsWith("on-")?R.setAttribute(O,f.createScript(u,O)):R.setAttribute(O,u)}}(),D1C=$w(function(f){var R=function(){return f.apply(this,arguments)||this};
_.y(R,f);R._parseTemplate=function(u,O){if(!u._templateInfo){var c=u._templateInfo={};c.nodeInfoList=[];c.nestedTemplate=!!O;c.stripWhiteSpace=O&&O.stripWhiteSpace||u.hasAttribute&&u.hasAttribute("strip-whitespace");this._parseTemplateContent(u,c,{parent:null})}return u._templateInfo};
R._parseTemplateContent=function(u,O,c){return this._parseTemplateNode(u.content,O,c)};
R._parseTemplateNode=function(u,O,c){var h=!1;u.localName!="template"||u.hasAttribute("preserve-content")?u.localName==="slot"&&(O.hasInsertionPoint=!0):h=this._parseTemplateNestedTemplate(u,O,c)||h;if(!bTE){bTE=!0;var l=document.createElement("textarea");l.placeholder="a";pCI=l.placeholder===l.textContent}pCI&&u.localName==="textarea"&&u.placeholder&&u.placeholder===u.textContent&&(u.textContent=null);u.firstChild&&this._parseTemplateChildNodes(u,O,c);u.hasAttributes&&u.hasAttributes()&&(h=this._parseTemplateNodeAttributes(u,
O,c)||h);return h||c.noted};
R._parseTemplateChildNodes=function(u,O,c){if(u.localName!=="script"&&u.localName!=="style")for(var h=u.firstChild,l=0,K;h;h=K){if(h.localName=="template"){var q=h.getAttribute("is");if(q&&LFt[q])for(K=h,K.removeAttribute("is"),h=K.ownerDocument.createElement(q),K.parentNode.replaceChild(h,K),h.appendChild(K);K.attributes.length;)q=K.attributes[0].name,jIA(h,K,q),K.removeAttribute(q)}K=h.nextSibling;if(h.nodeType===Node.TEXT_NODE){for(q=K;q&&q.nodeType===Node.TEXT_NODE;)h.textContent+=q.textContent,
K=q.nextSibling,u.removeChild(q),q=K;if(O.stripWhiteSpace&&!h.textContent.trim()){u.removeChild(h);continue}}q={parentIndex:l,parentInfo:c};this._parseTemplateNode(h,O,q)&&(q.infoIndex=O.nodeInfoList.push(q)-1);h.parentNode&&l++}};
R._parseTemplateNestedTemplate=function(u,O,c){O=this._parseTemplate(u,O);(O.content=u.content.ownerDocument.createDocumentFragment()).appendChild(u.content);c.templateInfo=O;return!0};
R._parseTemplateNodeAttributes=function(u,O,c){for(var h=!1,l=Array.from(u.attributes),K=l.length-1,q;q=l[K];K--)h=this._parseTemplateNodeAttribute(u,O,c,q.name,q.value)||h;return h};
R._parseTemplateNodeAttribute=function(u,O,c,h,l){return h.slice(0,3)==="on-"?(u.removeAttribute(h),c.events=c.events||[],c.events.push({name:h.slice(3),value:l}),!0):h==="id"?(c.id=l,!0):!1};
R._contentForTemplate=function(u){var O=u._templateInfo;return O&&O.content||u.content};
R.prototype._stampTemplate=function(u,O){u&&!u.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(u);O=O||this.constructor._parseTemplate(u);var c=O.nodeInfoList;u=document.importNode(O.content||u.content,!0);u.__noInsertionPoint=!O.hasInsertionPoint;var h=u.nodeList=Array(c.length);u.$={};for(var l=0,K=c.length,q=void 0;l<K&&(q=c[l]);l++){var F=h[l]=M6t(u,q);q.id&&(u.$[q.id]=F);var w=F,m=q,W=O;m.templateInfo&&(w._templateInfo=m.templateInfo,w._parentTemplateInfo=
W);if(q.events&&q.events.length)for(w=0,m=q.events,W=void 0;w<m.length&&(W=m[w]);w++)this._addMethodEventListenerToNode(F,W.name,W.value,this)}return u};
R.prototype._addMethodEventListenerToNode=function(u,O,c,h){c=Pel(h||u,c);this._addEventListenerToNode(u,O,c);return c};
R.prototype._addEventListenerToNode=function(u,O,c){u.addEventListener(O,c)};
R.prototype._removeEventListenerFromNode=function(u,O,c){u.removeEventListener(O,c)};
return R});var we=0,Eu=[],JZH={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},zhf=/[A-Z]/,TeI=function(f,R,u,O,c){var h=c?kV(f):f;if(R=R[h])for(h=0;h<R.length;h++){var l=R[h];if(l.info.lastRun!==we&&(!c||xI0(f,l.trigger))){l.info.lastRun=we;l=l.info;for(var K=u,q=O,F=0,w=K.length-1,m=-1;F<=w;){var W=F+w>>1,C=q.get(K[W].methodInfo)-q.get(l.methodInfo);if(C<0)F=W+1;else if(C>0)w=W-1;else{m=W;break}}m<
0&&(m=w+1);K.splice(m,0,l)}}},cxl=[],HTG=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"),sQ=$w(function(f){var R=D1C(NeC(f));
f=function(){var u=R.call(this)||this;u.__isPropertyEffectsClient=!0;return u};
_.y(f,R);f.prototype._initializeProperties=function(){R.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};
f.prototype._registerHost=function(){if(g5.length){var u=g5[g5.length-1];u._enqueueClient(this);this.__dataHost=u}};
f.prototype._initializeProtoProperties=function(u){this.__data=Object.create(u);this.__dataPending=Object.create(u);this.__dataOld={}};
f.prototype._initializeInstanceProperties=function(u){var O=this.__readOnly,c;for(c in u)O&&O[c]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[c]=this.__dataPending[c]=u[c])};
f.prototype._addPropertyEffect=function(u,O,c){this._createPropertyAccessor(u,O=="__readOnly");var h=oGe(this,O,!0)[u];h||(h=this[O][u]=[]);h.push(c)};
f.prototype._removePropertyEffect=function(u,O,c){u=oGe(this,O,!0)[u];c=u.indexOf(c);c>=0&&u.splice(c,1)};
f.prototype._hasPropertyEffect=function(u,O){O=this[O];return!(!O||!O[u])};
f.prototype._hasReadOnlyEffect=function(u){return this._hasPropertyEffect(u,"__readOnly")};
f.prototype._hasNotifyEffect=function(u){return this._hasPropertyEffect(u,"__notifyEffects")};
f.prototype._hasReflectEffect=function(u){return this._hasPropertyEffect(u,"__reflectEffects")};
f.prototype._hasComputedEffect=function(u){return this._hasPropertyEffect(u,"__computeEffects")};
f.prototype._setPendingPropertyOrPath=function(u,O,c,h){if(h||kV(Array.isArray(u)?u[0]:u)!==u){if(!h&&(h=FP(this,u),u=Bxt(this,u,O),!u||!R.prototype._shouldPropertyChange.call(this,u,O,h)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(u,O,c)){if(c=this.__dataLinkedPaths)for(var l in c)h=c[l],KT(l,u)?(h=q1(l,h,u),this._setPendingPropertyOrPath(h,O,!0,!0)):KT(h,u)&&(h=q1(h,l,u),this._setPendingPropertyOrPath(h,O,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[u])return this._setPendingProperty(u,
O,c);this[u]=O}return!1};
f.prototype._setUnmanagedPropertyToNode=function(u,O,c){if(c!==u[O]||typeof c=="object")O==="className"&&(u=(0,_.Qy)(u)),u[O]=c};
f.prototype._setPendingProperty=function(u,O,c){var h=this.__dataHasPaths&&lq(u);if(this._shouldPropertyChange(u,O,(h?this.__dataTemp:this.__data)[u])){this.__dataPending||(this.__dataPending={},this.__dataOld={});u in this.__dataOld||(this.__dataOld[u]=this.__data[u]);h?this.__dataTemp[u]=O:this.__data[u]=O;this.__dataPending[u]=O;if(h||this.__notifyEffects&&this.__notifyEffects[u])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[u]=c;return!0}return!1};
f.prototype._setProperty=function(u,O){this._setPendingProperty(u,O,!0)&&this._invalidateProperties()};
f.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
f.prototype._enqueueClient=function(u){this.__dataPendingClients=this.__dataPendingClients||[];u!==this&&this.__dataPendingClients.push(u)};
f.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
f.prototype.__enableOrFlushClients=function(){var u=this.__dataPendingClients;if(u){this.__dataPendingClients=null;for(var O=0;O<u.length;O++){var c=u[O];c.__dataEnabled?c.__dataPending&&c._flushProperties():c._enableProperties()}}};
f.prototype._readyClients=function(){this.__enableOrFlushClients()};
f.prototype.setProperties=function(u,O){for(var c in u)!O&&this.__readOnly&&this.__readOnly[c]||this._setPendingPropertyOrPath(c,u[c],!0);this._invalidateProperties()};
f.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
f.prototype._propertiesChanged=function(u,O,c){u=this.__dataHasPaths;this.__dataHasPaths=!1;var h;if(h=this.__computeEffects)if(ZTY){we++;var l=V67(this),K=[],q;for(q in O)TeI(q,h,K,l,u);for(;q=K.shift();)vGt(this,"",O,c,q)&&TeI(q.methodInfo,h,K,l,u);Object.assign(c,this.__dataOld);Object.assign(O,this.__dataPending);this.__dataPending=null}else for(l=O;mF(this,h,l,c,u);)Object.assign(c,this.__dataOld),Object.assign(O,this.__dataPending),l=this.__dataPending,this.__dataPending=null;h=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(O,c,u);this._flushClients();mF(this,this.__reflectEffects,O,c,u);mF(this,this.__observeEffects,O,c,u);if(h){l=this.__notifyEffects;K=we++;for(var F in h)if(h[F]){if(q=l){var w=l;q=K;var m=F,W=O,C=c,d=u,p=!1,J=d?kV(m):m;if(w=w[J]){J=0;for(var M=w.length,P=void 0;J<M&&(P=w[J]);J++)P.info&&P.info.lastRun===q||d&&!xI0(m,P.trigger)||(P.info&&(P.info.lastRun=q),P.fn(this,m,W,C,P.info,d,void 0),p=!0)}q=p}if(q)var g=!0;else{if(q=u)q=F,m=O,W=kV(q),W!==
q?(W=Za(W)+"-changed",$Il(this,W,m[q],q),q=!0):q=!1;q&&(g=!0)}}var x;g&&(x=this.__dataHost)&&x._invalidateProperties&&x._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
f.prototype._propagatePropertyChanges=function(u,O,c){this.__propagateEffects&&mF(this,this.__propagateEffects,u,O,c);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,u,O,c)};
f.prototype._runEffectsForTemplate=function(u,O,c,h){var l=this,K=function(q,F){mF(l,u.propertyEffects,q,c,F,u.nodeList);for(var w=u.firstChild;w;w=w.nextSibling)l._runEffectsForTemplate(w,q,c,F)};
u.runEffects?u.runEffects(K,O,h):K(O,h)};
f.prototype.linkPaths=function(u,O){u=aI(u);O=aI(O);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[u]=O};
f.prototype.unlinkPaths=function(u){u=aI(u);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[u]};
f.prototype.notifySplices=function(u,O){var c={path:""};u=FP(this,u,c);lR7(this,u,c.path,O)};
f.prototype.get=function(u,O){return FP(O||this,u)};
f.prototype.set=function(u,O,c){c?Bxt(c,u,O):this.__readOnly&&this.__readOnly[u]||this._setPendingPropertyOrPath(u,O,!0)&&this._invalidateProperties()};
f.prototype.push=function(u){var O=_.yK.apply(1,arguments),c={path:""},h=FP(this,u,c),l=h.length,K=h.push.apply(h,_.yq(O));O.length&&CT(this,h,c.path,l,O.length,[]);return K};
f.prototype.pop=function(u){var O={path:""};u=FP(this,u,O);var c=!!u.length,h=u.pop();c&&CT(this,u,O.path,u.length,0,[h]);return h};
f.prototype.splice=function(u,O,c){var h=_.yK.apply(3,arguments),l={path:""},K=FP(this,u,l);O<0?O=K.length-Math.floor(-O):O&&(O=Math.floor(O));var q=arguments.length===2?K.splice(O):K.splice.apply(K,[O,c].concat(_.yq(h)));(h.length||q.length)&&CT(this,K,l.path,O,h.length,q);return q};
f.prototype.shift=function(u){var O={path:""};u=FP(this,u,O);var c=!!u.length,h=u.shift();c&&CT(this,u,O.path,0,0,[h]);return h};
f.prototype.unshift=function(u){var O=_.yK.apply(1,arguments),c={path:""},h=FP(this,u,c),l=h.unshift.apply(h,_.yq(O));O.length&&CT(this,h,c.path,0,O.length,[]);return l};
f.prototype.notifyPath=function(u,O){if(arguments.length==1){var c={path:""};O=FP(this,u,c);c=c.path}else c=Array.isArray(u)?aI(u):u;this._setPendingPropertyOrPath(c,O,!0,!0)&&this._invalidateProperties()};
f.prototype._createReadOnlyProperty=function(u,O){this._addPropertyEffect(u,"__readOnly");O&&(this["_set"+(u[0].toUpperCase()+u.substring(1))]=function(c){this._setProperty(u,c)})};
f.prototype._createPropertyObserver=function(u,O,c){var h={property:u,method:O,dynamicFn:!!c};this._addPropertyEffect(u,"__observeEffects",{fn:Szl,info:h,trigger:{name:u}});c&&this._addPropertyEffect(O,"__observeEffects",{fn:Szl,info:h,trigger:{name:O}})};
f.prototype._createMethodObserver=function(u,O){var c=hAX(u);if(!c)throw Error("xd`"+u);ukn(this,c,"__observeEffects",YzX,null,O)};
f.prototype._createNotifyingProperty=function(u){this._addPropertyEffect(u,"__notifyEffects",{fn:gG7,info:{eventName:Za(u)+"-changed",property:u}})};
f.prototype._createReflectedProperty=function(u){var O=this.constructor.attributeNameForProperty(u);O[0]==="-"?console.warn("Property "+u+" cannot be reflected to attribute "+O+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(u,"__reflectEffects",{fn:sXe,info:{attrName:O}})};
f.prototype._createComputedProperty=function(u,O,c){var h=hAX(O);if(!h)throw Error("yd`"+O);O=ukn(this,h,"__computeEffects",vGt,u,c);oGe(this,"__computeInfo")[u]=O};
f.prototype._marshalArgs=function(u,O,c){for(var h=this.__data,l=[],K=0,q=u.length;K<q;K++){var F=u[K],w=F.name,m=F.structured,W=F.wildcard,C=F.value;F.literal||(W?(F=KT(w,O),m=ZrP(h,c,F?O:w),C={path:F?O:w,value:m,base:F?FP(h,w):m}):C=m?ZrP(h,c,w):h[w]);if(tZ&&!this._overrideLegacyUndefined&&C===void 0&&u.length>1)return Eu;l[K]=C}return l};
f.addPropertyEffect=function(u,O,c){this.prototype._addPropertyEffect(u,O,c)};
f.createPropertyObserver=function(u,O,c){this.prototype._createPropertyObserver(u,O,c)};
f.createMethodObserver=function(u,O){this.prototype._createMethodObserver(u,O)};
f.createNotifyingProperty=function(u){this.prototype._createNotifyingProperty(u)};
f.createReadOnlyProperty=function(u,O){this.prototype._createReadOnlyProperty(u,O)};
f.createReflectedProperty=function(u){this.prototype._createReflectedProperty(u)};
f.createComputedProperty=function(u,O,c){this.prototype._createComputedProperty(u,O,c)};
f.bindTemplate=function(u){return this.prototype._bindTemplate(u)};
f.prototype._bindTemplate=function(u,O){var c=this.constructor._parseTemplate(u),h=this.__preBoundTemplateInfo==c;if(!h)for(var l in c.propertyEffects)this._createPropertyAccessor(l);O?(c=Object.create(c),c.wasPreBound=h,this.__templateInfo?(u=u._parentTemplateInfo||this.__templateInfo,O=u.lastChild,c.parent=u,u.lastChild=c,(c.previousSibling=O)?O.nextSibling=c:u.firstChild=c):this.__templateInfo=c):this.__preBoundTemplateInfo=c;return c};
f._addTemplatePropertyEffect=function(u,O,c){(u.hostProps=u.hostProps||{})[O]=!0;u=u.propertyEffects=u.propertyEffects||{};(u[O]=u[O]||[]).push(c)};
f.prototype._stampTemplate=function(u,O){O=O||this._bindTemplate(u,!0);g5.push(this);u=R.prototype._stampTemplate.call(this,u,O);g5.pop();O.nodeList=u.nodeList;if(!O.wasPreBound)for(var c=O.childNodes=[],h=u.firstChild;h;h=h.nextSibling)c.push(h);u.templateInfo=O;c=O.nodeList;h=O.nodeInfoList;if(h.length)for(var l=0;l<h.length;l++){var K=c[l],q=h[l].bindings;if(q)for(var F=0;F<q.length;F++){var w=q[F],m=K,W=w;if(W.isCompound){for(var C=m.__dataCompoundStorage||(m.__dataCompoundStorage={}),d=W.parts,
p=Array(d.length),J=0;J<d.length;J++)p[J]=d[J].literal;d=W.target;C[d]=p;W.literal&&W.kind=="property"&&(d==="className"&&(m=(0,_.Qy)(m)),m[d]=W.literal)}RAP(K,this,w)}K.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(O,this.__data,null,!1),this._flushClients());return u};
f.prototype._removeBoundDom=function(u){u=u.templateInfo;var O=u.previousSibling,c=u.nextSibling,h=u.parent;O?O.nextSibling=c:h&&(h.firstChild=c);c?c.previousSibling=O:h&&(h.lastChild=O);u.nextSibling=u.previousSibling=null;u=u.childNodes;for(O=0;O<u.length;O++)c=u[O],(0,_.Qy)((0,_.Qy)(c).parentNode).removeChild(c)};
f._parseTemplateNode=function(u,O,c){var h=R._parseTemplateNode.call(this,u,O,c);if(u.nodeType===Node.TEXT_NODE){var l=this._parseBindings(u.textContent,O);l&&(u.textContent=OrB(l)||" ",fR5(this,O,c,"text","textContent",l),h=!0)}return h};
f._parseTemplateNodeAttribute=function(u,O,c,h,l){var K=this._parseBindings(l,O);if(K){l=h;var q="property";zhf.test(h)?q="attribute":h[h.length-1]=="$"&&(h=h.slice(0,-1),q="attribute");var F=OrB(K);F&&q=="attribute"&&(h=="class"&&u.hasAttribute("class")&&(F+=" "+u.getAttribute(h)),u.setAttribute(h,F));q=="attribute"&&l=="disable-upgrade$"&&u.setAttribute(h,"");u.localName==="input"&&l==="value"&&u.setAttribute(l,"");u.removeAttribute(l);q==="property"&&(h=hZ(h));fR5(this,O,c,q,h,K,F);return!0}return R._parseTemplateNodeAttribute.call(this,
u,O,c,h,l)};
f._parseTemplateNestedTemplate=function(u,O,c){var h=R._parseTemplateNestedTemplate.call(this,u,O,c),l=u.parentNode,K=c.templateInfo,q=l.localName==="dom-if",F=l.localName==="dom-repeat";Gg&&(q||F)&&(l.removeChild(u),c=c.parentInfo,c.templateInfo=K,c.noted=!0,h=!1);u=K.hostProps;if(Bq&&q)u&&(O.hostProps=Object.assign(O.hostProps||{},u),Gg||(c.parentInfo.noted=!0));else for(var w in u)fR5(this,O,c,"property","_host_"+w,[{mode:"{",source:w,dependencies:[w],hostProp:!0}]);return h};
f._parseBindings=function(u,O){for(var c=[],h=0,l;(l=HTG.exec(u))!==null;){l.index>h&&c.push({literal:u.slice(h,l.index)});h=l[1][0];var K=!!l[2];l=l[3].trim();var q=!1,F="",w=-1;h=="{"&&(w=l.indexOf("::"))>0&&(F=l.substring(w+2),l=l.substring(0,w),q=!0);w=hAX(l);var m=[];if(w){var W=w,C=W.args;W=W.methodName;for(var d=0;d<C.length;d++){var p=C[d];p.literal||m.push(p)}if((C=O.dynamicFns)&&C[W]||w.static)m.push(W),w.dynamicFn=!0}else m.push(l);c.push({source:l,mode:h,negate:K,customEvent:q,signature:w,
dependencies:m,event:F});h=HTG.lastIndex}h&&h<u.length&&(u=u.substring(h))&&c.push({literal:u});return c.length?c:null};
f._evaluateBinding=function(u,O,c,h,l,K){u=O.signature?YzX(u,c,h,l,O.signature):c!=O.source?FP(u,O.source):K&&lq(c)?FP(u,c):u.__data[c];O.negate&&(u=!u);return u};
_.Vy.Object.defineProperties(f.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return JZH}}});
return f}),g5=[];var IaC=window.ShadyCSS&&window.ShadyCSS.cssBuild,n5=$w(function(f){function R(O,c,h,l){if(!IaC){for(var K=c.content.querySelectorAll("style"),q=Axt(c),F=FQq(h),w=c.content.firstElementChild,m=0;m<F.length;m++){var W=F[m];W.textContent=O._processStyleText(W.textContent,l);c.content.insertBefore(W,w)}for(w=F=0;w<q.length;w++)m=q[w],W=K[F],W!==m?(m=m.cloneNode(!0),W.parentNode.insertBefore(m,W)):F++,m.textContent=O._processStyleText(m.textContent,l)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,
h);if(kOt&&IaC&&OTI&&(c=c.content.querySelectorAll("style"))){var C="";Array.from(c).forEach(function(d){C+=d.textContent;d.parentNode.removeChild(d)});
O._styleSheet=new CSSStyleSheet;O._styleSheet.replaceSync(C)}}
var u=WFl(sQ(f));f=function(){return u.call(this)||this};
_.y(f,u);f._finalizeClass=function(){u._finalizeClass.call(this);var O;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(O=this.__ownObservers)&&this.createObservers(O,this._properties);this._prepareTemplate()};
f._prepareTemplate=function(){var O=this.template;O&&(typeof O==="string"?(console.error("template getter must return HTMLTemplateElement"),O=null):II||(O=O.cloneNode(!0)));this.prototype._template=O};
f.createProperties=function(O){for(var c in O){var h=this.prototype,l=c,K=O[c],q=O;K.computed&&(K.readOnly=!0);K.computed&&(h._hasReadOnlyEffect(l)?console.warn("Cannot redefine computed property '"+l+"'."):h._createComputedProperty(l,K.computed,q));K.readOnly&&!h._hasReadOnlyEffect(l)?h._createReadOnlyProperty(l,!K.computed):K.readOnly===!1&&h._hasReadOnlyEffect(l)&&console.warn("Cannot make readOnly property '"+l+"' non-readOnly.");K.reflectToAttribute&&!h._hasReflectEffect(l)?h._createReflectedProperty(l):
K.reflectToAttribute===!1&&h._hasReflectEffect(l)&&console.warn("Cannot make reflected property '"+l+"' non-reflected.");K.notify&&!h._hasNotifyEffect(l)?h._createNotifyingProperty(l):K.notify===!1&&h._hasNotifyEffect(l)&&console.warn("Cannot make notify property '"+l+"' non-notify.");K.observer&&h._createPropertyObserver(l,K.observer,q[K.observer]);h._addPropertyToAttributeMap(l)}};
f.createObservers=function(O,c){for(var h=this.prototype,l=0;l<O.length;l++)h._createMethodObserver(O[l],c)};
f.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);u.prototype._initializeProperties.call(this);this.rootPath=cZl;this.importPath=this.constructor.importPath;var O=this.constructor;if(!O.hasOwnProperty("__propertyDefaults")){O.__propertyDefaults=null;var c=O._properties,h;for(h in c){var l=c[h];"value"in l&&(O.__propertyDefaults=O.__propertyDefaults||{},O.__propertyDefaults[h]=l)}}if(O=O.__propertyDefaults)for(var K in O)c=O[K],
this._canApplyPropertyDefault(K)&&(c=typeof c.value=="function"?c.value.call(this):c.value,this._hasAccessor(K)?this._setPendingProperty(K,c,!0):this[K]=c)};
f.prototype._canApplyPropertyDefault=function(O){return!this.hasOwnProperty(O)};
f._processStyleText=function(O,c){return L85(O,c)};
f._finalizeTemplate=function(O){var c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;var h=this.importPath;h=h?_.cC(h):"";R(this,c,O,h);this.prototype._bindTemplate(c)}};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);u.prototype.connectedCallback.call(this)};
f.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);u.prototype.ready.call(this)};
f.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));u.prototype._readyClients.call(this)};
f.prototype._attachDom=function(O){var c=(0,_.Qy)(this);if(c.attachShadow)return O?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:O}),c.shadowRoot.appendChild(O),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),hhI&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw Error("Ad");};
f.prototype.updateStyles=function(O){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,O)};
f.prototype.resolveUrl=function(O,c){!c&&this.importPath&&(c=_.cC(this.importPath));return _.cC(O,c)};
f._parseTemplateContent=function(O,c,h){c.dynamicFns=c.dynamicFns||this._properties;return u._parseTemplateContent.call(this,O,c,h)};
f._addTemplatePropertyEffect=function(O,c,h){!e2||c in this._properties||h.info.part.signature&&h.info.part.signature.static||h.info.part.hostProp||O.nestedTemplate||console.warn("Property '"+c+"' used in template but not declared in 'properties'; attribute will not be observed.");return u._addTemplatePropertyEffect.call(this,O,c,h)};
_.Vy.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var O=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof O==="function"&&(O=O());if(O===void 0){if(O=this.hasOwnProperty("is")){O=this.is;var c=null;if(O&&(!GO||XCl)&&(c=yy.import(O,"template"),GO&&!c))throw Error("zd`"+O);O=c}O=O||Object.getPrototypeOf(this.prototype).constructor.template}this._template=O}return this._template},
set:function(O){this._template=O}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var O=this.importMeta;O?this._importPath=bLP(O.url):this._importPath=(O=yy.import(this.is))&&O.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return f});var M2l=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(f){return f}}),CAq=function(f,R){Pqi(f,R);
this.value=R.reduce(function(u,O,c){return u+yxn(O)+f[c+1]},f[0]).toString()},Pqi;
CAq.prototype.toString=function(){return this.value};
_.U1t=function(f){var R=_.yK.apply(1,arguments);Pqi(f,R);var u=document.createElement("template");R=R.reduce(function(O,c,h){if(c instanceof HTMLTemplateElement)c=c.innerHTML;else if(c instanceof CAq)c=yxn(c);else throw Error("Cd`"+c);return O+c+f[h+1]},f[0]);
M2l&&(R=M2l.createHTML(R));u.innerHTML=R;return u};
Pqi=function(f,R){if(!Array.isArray(f)||!Array.isArray(f.raw)||R.length!==f.length-1)throw new TypeError("Dd");};var Vg=n5(HTMLElement);var eht=$w(function(f){var R=n5(f);f=function(){var u=R.call(this)||this;u.__lastItems=null;u.__lastMulti=null;u.__selectedMap=null;return u};
_.y(f,R);f.prototype.__updateSelection=function(u,O){var c=O.path;c=="items"?(O=O.base||[],c=this.__lastItems,u!==this.__lastMulti&&this.clearSelection(),c&&(c=tPt(O,c),this.__applySplices(c)),this.__lastItems=O,this.__lastMulti=u):O.path=="items.splices"?this.__applySplices(O.value.indexSplices):(u=c.slice(6),O=parseInt(u,10),u.indexOf(".")<0&&u==O&&this.__deselectChangedIdx(O))};
f.prototype.__applySplices=function(u){for(var O=this,c=this.__selectedMap,h={},l=0;l<u.length;h={s$jscomp$108:void 0},l++){h.s$jscomp$108=u[l];c.forEach(function(w){return function(m,W){m<w.s$jscomp$108.index||(m>=w.s$jscomp$108.index+w.s$jscomp$108.removed.length?c.set(W,m+w.s$jscomp$108.addedCount-w.s$jscomp$108.removed.length):c.set(W,-1))}}(h));
for(var K=0;K<h.s$jscomp$108.addedCount;K++){var q=h.s$jscomp$108.index+K;c.has(this.items[q])&&c.set(this.items[q],q)}}this.__updateLinks();var F=0;c.forEach(function(w,m){w<0?(O.multi?O.splice("selected",F,1):O.selected=O.selectedItem=null,c.delete(m)):F++})};
f.prototype.__updateLinks=function(){var u=this;this.__dataLinkedPaths={};if(this.multi){var O=0;this.__selectedMap.forEach(function(c){c>=0&&u.linkPaths("items."+c,"selected."+O++)})}else this.__selectedMap.forEach(function(c){u.linkPaths("selected","items."+c);
u.linkPaths("selectedItem","items."+c)})};
f.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
f.prototype.isSelected=function(u){return this.__selectedMap.has(u)};
f.prototype.isIndexSelected=function(u){return this.isSelected(this.items[u])};
f.prototype.__deselectChangedIdx=function(u){var O=this,c=this.__selectedIndexForItemIndex(u);if(c>=0){var h=0;this.__selectedMap.forEach(function(l,K){c==h++&&O.deselect(K)})}};
f.prototype.__selectedIndexForItemIndex=function(u){if(u=this.__dataLinkedPaths["items."+u])return parseInt(u.slice(9),10)};
f.prototype.deselect=function(u){var O=this.__selectedMap.get(u);if(O>=0){this.__selectedMap.delete(u);var c;this.multi&&(c=this.__selectedIndexForItemIndex(O));this.__updateLinks();this.multi?this.splice("selected",c,1):this.selected=this.selectedItem=null}};
f.prototype.deselectIndex=function(u){this.deselect(this.items[u])};
f.prototype.select=function(u){this.selectIndex(this.items.indexOf(u))};
f.prototype.selectIndex=function(u){var O=this.items[u];this.isSelected(O)?this.toggle&&this.deselectIndex(u):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(O,u),this.__updateLinks(),this.multi?this.push("selected",O):this.selected=this.selectedItem=O)};
_.Vy.Object.defineProperties(f,{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 f}),GOI=eht(Vg),Yw=function(){return GOI.apply(this,arguments)||this};
_.y(Yw,GOI);_.Vy.Object.defineProperties(Yw,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Yw.is,Yw);var Bel=window.Polymer;window.Polymer=function(f){return window.Polymer._polymerFn(f)};
Bel&&Object.assign(Polymer,Bel);Polymer._polymerFn=function(){throw Error("Ed");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:L85,resolveUrl:_.cC,pathFromUrl:bLP};Polymer.DomModule=yy;Polymer.Async={timeOut:_.SH,animationFrame:_.dR,idlePeriod:FFt,microTask:TO};Polymer.dedupingMixin=$w;Polymer.wrap=_.Qy;Polymer.PropertiesChanged=m1Y;Polymer.telemetry={instanceCount:QIl,incrementInstanceCount:function(){QIl++},
registrations:JS7,register:z55,dumpRegistrations:function(){JS7.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=WFl;Polymer.CaseMap={dashToCamelCase:hZ,camelToDashCase:Za};Polymer.PropertyAccessors=NeC;Polymer.TemplateStamp=D1C;Polymer.Path={isPath:lq,root:kV,isAncestor:UI0,isDescendant:KT,translate:q1,matches:e57,normalize:aI,split:Gwt,get:FP,set:Bxt,isDeep:lq};Polymer.Settings={useShadow:M1,useNativeCSSProperties:i0I,useNativeCustomElements:rrG,get rootPath(){return cZl},setRootPath:function(f){cZl=f},
get sanitizeDOMValue(){return WC},setSanitizeDOMValue:function(f){WC=f},
get passiveTouchGestures(){return MPe},setPassiveTouchGestures:function(f){MPe=f},
get strictTemplatePolicy(){return GO},setStrictTemplatePolicy:function(f){GO=f},
get allowTemplateFromDomModule(){return XCl},setAllowTemplateFromDomModule:function(f){XCl=f},
get legacyOptimizations(){return II},setLegacyOptimizations:function(f){II=f},
get syncInitialRender(){return hhI},setSyncInitialRender:function(f){hhI=f},
get legacyUndefined(){return tZ},setLegacyUndefined:function(f){tZ=f},
get legacyWarnings(){return e2},setLegacyWarnings:function(f){e2=f},
get orderedComputed(){return ZTY},setOrderedComputed:function(f){ZTY=f},
get fastDomIf(){return Bq},setFastDomIf:function(f){Bq=f},
get removeNestedTemplates(){return Gg},setRemoveNestedTemplates:function(f){Gg=f},
get suppressTemplateNotifications(){return oz},setSuppressTemplateNotifications:oz};Polymer.rootPath!==void 0&&(cZl=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(WC=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(MPe=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(GO=Polymer.strictTemplatePolicy);XCl=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(II=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(hhI=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(tZ=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(e2=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(ZTY=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Bq=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Gg=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(oz=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return WC},
set:function(f){WC=f}});Polymer.PropertyEffects=sQ;Polymer.StyleGather={stylesFromModules:qp7,stylesFromModule:KQ5,stylesFromTemplate:Axt,stylesFromModuleImports:FQq,cssFromModules:mp2,cssFromModule:wJB,cssFromTemplate:QAt,cssFromModuleImports:function(f){return(f=yy.import(f))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f):""}};Polymer.ElementMixin=n5;Polymer.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleDocument(f)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:tPt};Polymer.html=_.U1t;Polymer.htmlLiteral=function(f){return new CAq(f,_.yK.apply(1,arguments))};Polymer.Element=Vg;Polymer.ArraySelectorMixin=eht;Polymer.ArraySelector=Yw;var oVC=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,x1Y=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ux7=/@media\s(.*)/;var brl=null,LQ5=window.HTMLImports&&window.HTMLImports.whenReady||null,pJq;var Suf=null,vq=null,i0=function(){this.customStyles=[];this.enqueued=!1;jAP(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$1k=function(f){!f.enqueued&&vq&&(f.enqueued=!0,jAP(vq))};
i0.prototype.addCustomStyle=function(f){f.__seenByShadyCSS||(f.__seenByShadyCSS=!0,this.customStyles.push(f),$1k(this))};
i0.prototype.getStyleForCustomStyle=function(f){if(f.__shadyCSSCachedStyle)return f.__shadyCSSCachedStyle;var R;f.getStyle?R=f.getStyle():R=f;return R};
i0.prototype.processStyles=function(){for(var f=this.customStyles,R=0;R<f.length;R++){var u=f[R];if(!u.__shadyCSSCachedStyle){var O=this.getStyleForCustomStyle(u);O&&(O=O.__appliedElement||O,Suf&&Suf(O),u.__shadyCSSCachedStyle=O)}}return f};
i0.prototype.addCustomStyle=i0.prototype.addCustomStyle;i0.prototype.getStyleForCustomStyle=i0.prototype.getStyleForCustomStyle;i0.prototype.processStyles=i0.prototype.processStyles;Object.defineProperties(i0.prototype,{transformCallback:{get:function(){return Suf},
set:function(f){Suf=f}},
validateCallback:{get:function(){return vq},
set:function(f){var R=!1;vq||(R=!0);vq=f;R&&$1k(this)}}});var Jxq=!(window.ShadyDOM&&window.ShadyDOM.inUse),Dpq,nT;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(nT=window.ShadyCSS.cssBuild);var gVi=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Dpq=window.ShadyCSS.nativeCss:window.ShadyCSS?(zA5(window.ShadyCSS),window.ShadyCSS=void 0):zA5(window.WebComponents&&window.WebComponents.flags);var rFh=Dpq;var sIF=new i0;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(f,R){sIF.processStyles();dp2(f,R)},
styleElement:function(){sIF.processStyles()},
styleDocument:function(f){sIF.processStyles();dp2(document.body,f)},
getComputedStyleValue:function(f,R){return NWn(f,R)},
flushCustomStyles:function(){},
nativeCss:rFh,nativeShadow:Jxq,cssBuild:nT,disableRuntime:gVi});window.ShadyCSS.CustomStyleInterface=sIF;var nVH=window.ShadyCSS.CustomStyleInterface,r5=function(){var f=HTMLElement.call(this)||this;f._style=null;nVH.addCustomStyle(f);return f};
_.y(r5,HTMLElement);r5.prototype.getStyle=function(){if(this._style)return this._style;var f=this.querySelector("style");if(!f)return null;this._style=f;var R=f.getAttribute("include");R&&(f.removeAttribute("include"),f.textContent=mp2(R)+f.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
r5.prototype.getStyle=r5.prototype.getStyle;window.customElements.define("custom-style",r5);Polymer.CustomStyle=r5;var fJ=function(){this._timer=this._callback=this._asyncModule=null},Rb,Yui;
fJ.prototype.setConfig=function(f,R){var u=this;this._asyncModule=f;this._callback=R;this._timer=this._asyncModule.run(function(){u._timer=null;Rb.delete(u);u._callback()})};
fJ.prototype.cancel=function(){this.isActive()&&(V2f(this),Rb.delete(this))};
var V2f=function(f){f.isActive()&&(f._asyncModule.cancel(f._timer),f._timer=null)};
fJ.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
fJ.prototype.isActive=function(){return this._timer!=null};
_.uQ=function(f,R,u){f instanceof fJ?V2f(f):f=new fJ;f.setConfig(R,u);return f};
Rb=new Set;_.Or=function(f){Rb.add(f)};
Yui=function(){var f=!!Rb.size;Rb.forEach(function(R){try{R.flush()}catch(u){setTimeout(function(){throw u;})}});
return f};var Hr2=typeof document.head.style.touchAction==="string",TW5=["mousedown","mousemove","mouseup","click"],xpe=[0,1,4,2],vVC;try{vVC=(new MouseEvent("test",{buttons:1})).buttons===1}catch(f){vVC=!1}var oOB=vVC,IRD=!1;(function(){try{var f=Object.defineProperty({},"passive",{get:function(){IRD=!0}});
window.addEventListener("test",null,f);window.removeEventListener("test",null,f)}catch(R){}})();
var Up0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),eA0=[],iTf={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},RLh={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},GSe=function(f){var R=f.sourceCapabilities;if(!R||R.firesTouchEvents)if(f.__polymerGesturesHandled={skip:!0},f.type==="click"){R=!1;for(var u=sAD(f),O=0;O<u.length;O++){if(u[O].nodeType===Node.ELEMENT_NODE)if(u[O].localName==="label")eA0.push(u[O]);
else if(iTf[u[O].localName]){var c=u[O];var h=Array.prototype.slice.call(c.labels||[]);if(!h.length){h=[];try{var l=c.getRootNode();if(c.id){var K=l.querySelectorAll("label[for = '"+c.id+"']");for(c=0;c<K.length;c++)h.push(K[c])}}catch(q){}}for(c=0;c<h.length;c++)R=R||eA0.indexOf(h[c])>-1}if(u[O]===rZi)return}R||(f.preventDefault(),f.stopPropagation())}},rZi=null,ce=null,VPt=0,Ype=0,nOl=-1,vO5=!1;
document.addEventListener("touchend",function(f){ce||BW2(!0);rZi=sAD(f)[0];ce=_.uQ(ce,_.SH.after(2500),function(){BW2();ce=rZi=null})},IRD?{passive:!0}:!1);
var sAD=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(f){return f.composedPath&&f.composedPath()||[]},j2={},bq=[];
irt({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){LT(this.info)},
mousedown:function(f){if(N1(f)){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),u=this;$pB(this.info,function(O){N1(O)||(HC("up",R,O),LT(u.info))},function(O){N1(O)&&HC("up",R,O);
LT(u.info)});
HC("down",R,f)}},
touchstart:function(f){HC("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),f.changedTouches[0],f)},
touchend:function(f){HC("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),f.changedTouches[0],f)}});
irt({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(f){this.moves.length>2&&this.moves.shift();this.moves.push(f)},
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;LT(this.info)},
mousedown:function(f){if(N1(f)){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),u=this,O=function(c){var h=c.clientX,l=c.clientY;rx5(u.info,h,l)&&(u.info.state=u.info.started?c.type==="mouseup"?"end":"track":"start",u.info.state==="start"&&pT("tap"),u.info.addMove({x:h,y:l}),N1(c)||(u.info.state="end",LT(u.info)),R&&fmB(u.info,R,c),u.info.started=!0)};
$pB(this.info,O,function(c){u.info.started&&O(c);LT(u.info)});
this.info.x=f.clientX;this.info.y=f.clientY}},
touchstart:function(f){f=f.changedTouches[0];this.info.x=f.clientX;this.info.y=f.clientY},
touchmove:function(f){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f=f.changedTouches[0];var u=f.clientX,O=f.clientY;rx5(this.info,u,O)&&(this.info.state==="start"&&pT("tap"),this.info.addMove({x:u,y:O}),fmB(this.info,R,f),this.info.state="track",this.info.started=!0)},
touchend:function(f){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f=f.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:f.clientX,y:f.clientY}),fmB(this.info,R,f))}});
irt({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(f){N1(f)&&(this.info.x=f.clientX,this.info.y=f.clientY)},
click:function(f){N1(f)&&uZq(this.info,f)},
touchstart:function(f){f=f.changedTouches[0];this.info.x=f.clientX;this.info.y=f.clientY},
touchend:function(f){uZq(this.info,f.changedTouches[0],f)}});var fvf=$w(function(f){var R=function(){return f.apply(this,arguments)||this};
_.y(R,f);R.prototype._addEventListenerToNode=function(u,O,c){Da(u,O,c)||f.prototype._addEventListenerToNode.call(this,u,O,c)};
R.prototype._removeEventListenerFromNode=function(u,O,c){JZ(u,O,c)||f.prototype._removeEventListenerFromNode.call(this,u,O,c)};
return R});var X1=$w(function(f){var R=function(){return f.apply(this,arguments)||this};
_.y(R,f);R.prototype._shouldPropertyChange=function(u,O,c){return O92(this,u,O,c,!0)};
return R}),Ral=$w(function(f){var R=function(){return f.apply(this,arguments)||this};
_.y(R,f);R.prototype._shouldPropertyChange=function(u,O,c){return O92(this,u,O,c,this.mutableData)};
_.Vy.Object.defineProperties(R,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return R});
X1._mutablePropertyChange=O92;var cF0=!1;var uOC=fvf(Ral(sQ(HTMLElement))),hO=function(){var f=uOC.call(this)||this;if(GO)throw Error("Fd");f.root=null;f.$=null;f.__children=null;return f};
_.y(hO,uOC);_.X=hO.prototype;_.X.attributeChangedCallback=function(){this.mutableData=!0};
_.X.connectedCallback=function(){XBe()||(this.style.display="none");this.render()};
_.X.disconnectedCallback=function(){this.__removeChildren()};
_.X.__insertChildren=function(){(0,_.Qy)((0,_.Qy)(this).parentNode).insertBefore(this.root,this)};
_.X.__removeChildren=function(){if(this.__children)for(var f=0;f<this.__children.length;f++)this.root.appendChild(this.__children[f])};
_.X.render=function(){var f=this;if(!this.__children){var R=R||this.querySelector("template");if(!R){var u=new MutationObserver(function(){if(R=f.querySelector("template"))u.disconnect(),f.render();else throw Error("Gd");});
u.observe(this,{childList:!0});return}this.root=this._stampTemplate(R);this.$=this.root.$;this.__children=[];for(var O=this.root.firstChild;O;O=O.nextSibling)this.__children[this.__children.length]=O;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Vy.Object.defineProperties(hO,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",hO);Polymer.Debouncer=fJ;Polymer.Gestures={gestures:j2,recognizers:bq,deepTargetFind:gO7,addListener:Da,removeListener:JZ,register:irt,setTouchAction:_.zO,prevent:pT,resetMouseCanceller:function(){ce&&ce.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Da,remove:JZ};Polymer.GestureEventListeners=fvf;Polymer.MutableData=X1;Polymer.OptionalMutableData=Ral;Polymer.DomBind=hO;_.Z$=function(){do{var f=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var R=Yui()}while(f||R)};var hL0=null;Z9P.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Z9P,writable:!0}});var wBB=sQ(Z9P),FGB=X1(wBB),OaC=sQ(function(){}),PC=function(f){var R=OaC.call(this)||this;
R._configureProperties(f);R.root=R._stampTemplate(R.__dataHost);var u=[];R.children=u;for(var O=R.root.firstChild;O;O=O.nextSibling)u.push(O),O.__templatizeInstance=R;R.__templatizeOwner&&R.__templatizeOwner.__hideTemplateChildren__&&R._showHideChildren(!0);u=R.__templatizeOptions;(f&&u.instanceProps||!u.instanceProps)&&R._enableProperties();return R};
_.y(PC,OaC);_.X=PC.prototype;_.X._configureProperties=function(f){if(this.__templatizeOptions.forwardHostProp)for(var R in this.__hostProps)this._setPendingProperty(R,this.__dataHost["_host_"+R]);for(var u in f)this._setPendingProperty(u,f[u])};
_.X.forwardHostProp=function(f,R){this._setPendingPropertyOrPath(f,R,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.X._addEventListenerToNode=function(f,R,u){var O=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(f,R,function(h){h.model=O;u(h)});
else{var c=this.__dataHost.__dataHost;c&&c._addEventListenerToNode(f,R,u)}};
_.X._showHideChildren=function(f){kBn(f,this.children)};
_.X._setUnmanagedPropertyToNode=function(f,R,u){f.__hideTemplateChildren__&&f.nodeType==Node.TEXT_NODE&&R=="textContent"?f.__polymerTextContent__=u:OaC.prototype._setUnmanagedPropertyToNode.call(this,f,R,u)};
_.X.dispatchEvent=function(){return!0};
_.Vy.Object.defineProperties(PC.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var f=this.__parentModel;if(!f){var R;f=this;do f=f.__dataHost.__dataHost;while((R=f.__templatizeOptions)&&!R.parentModel);this.__parentModel=f}return f}}});
var qYP=X1(PC);var lQ=function(){var f=Vg.call(this)||this;f.__renderDebouncer=null;f._lastIf=!1;f.__hideTemplateChildren__=!1;return f};
_.y(lQ,Vg);_.X=lQ.prototype;_.X.__debounceRender=function(){var f=this;this.__renderDebouncer=_.uQ(this.__renderDebouncer,TO,function(){return f.__render()});
_.Or(this.__renderDebouncer)};
_.X.disconnectedCallback=function(){Vg.prototype.disconnectedCallback.call(this);var f=(0,_.Qy)(this).parentNode;f&&(f.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Qy)(f).host)||this.__teardownInstance()};
_.X.connectedCallback=function(){Vg.prototype.connectedCallback.call(this);XBe()||(this.style.display="none");this.if&&this.__debounceRender()};
_.X.__ensureTemplate=function(){var f=this;if(!this.__template){var R=this._templateInfo?this:(0,_.Qy)(this).querySelector("template");if(!R){var u=new MutationObserver(function(){if((0,_.Qy)(f).querySelector("template"))u.disconnect(),f.__render();else throw Error("Jd");});
u.observe(this,{childList:!0});return!1}this.__template=R}return!0};
_.X.__ensureInstance=function(){var f=(0,_.Qy)(this).parentNode;if(this.__hasInstance()){var R=this.__getInstanceNodes();if(R&&R.length&&(0,_.Qy)(this).previousSibling!==R[R.length-1])for(var u=0,O=void 0;u<R.length&&(O=R[u]);u++)(0,_.Qy)(f).insertBefore(O,this)}else{if(!f||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(f)}return!0};
_.X.render=function(){_.Z$()};
_.X.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();oz&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.X.__hasInstance=function(){};
_.X.__getInstanceNodes=function(){};
_.X.__createAndInsertInstance=function(){};
_.X.__teardownInstance=function(){};
_.X._showHideChildren=function(){};
_.Vy.Object.defineProperties(lQ,{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:lQ.prototype.__debounceRender},restamp:{type:Boolean,observer:lQ.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var cjf=function(){var f=lQ.call(this)||this;f.__instance=null;f.__syncInfo=null;return f};
_.y(cjf,lQ);_.X=cjf.prototype;_.X.__hasInstance=function(){return!!this.__instance};
_.X.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.X.__createAndInsertInstance=function(f){var R=this,u=this.__dataHost||this;if(GO&&!this.__dataHost)throw Error("Hd");var O=u._bindTemplate(this.__template,!0);O.runEffects=function(c,h,l){var K=R.__syncInfo;if(R.if)K&&(R.__syncInfo=null,R._showHideChildren(),h=Object.assign(K.changedProps,h)),c(h,l);else if(R.__instance)if(K||(K=R.__syncInfo={runEffects:c,changedProps:{}}),l)for(var q in h)c=kV(q),K.changedProps[c]=R.__dataHost[c];else Object.assign(K.changedProps,h)};
this.__instance=u._stampTemplate(this.__template,O);(0,_.Qy)(f).insertBefore(this.__instance,this)};
_.X.__syncHostProperties=function(){var f=this.__syncInfo;f&&(this.__syncInfo=null,f.runEffects(f.changedProps,!1))};
_.X.__teardownInstance=function(){var f=this.__dataHost||this;this.__instance&&(f._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.X._showHideChildren=function(){var f=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==f&&(this.__instance.__hidden=f,kBn(f,this.__instance.templateInfo.childNodes));f||this.__syncHostProperties()};
var XcF=function(){var f=lQ.call(this)||this;f.__ctor=null;f.__instance=null;f.__invalidProps=null;return f};
_.y(XcF,lQ);_.X=XcF.prototype;_.X.__hasInstance=function(){return!!this.__instance};
_.X.__getInstanceNodes=function(){return this.__instance.children};
_.X.__createAndInsertInstance=function(f){this.__ctor||(this.__ctor=Uu(this.__template,this,{mutableData:!0,forwardHostProp:function(R,u){this.__instance&&(this.if?this.__instance.forwardHostProp(R,u):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[kV(R)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Qy)(f).insertBefore(this.__instance.root,this)};
_.X.__teardownInstance=function(){if(this.__instance){var f=this.__instance.children;if(f&&f.length){var R=(0,_.Qy)(f[0]).parentNode;if(R){R=(0,_.Qy)(R);for(var u=0,O=void 0;u<f.length&&(O=f[u]);u++)R.removeChild(O)}}this.__instance=this.__invalidProps=null}};
_.X.__syncHostProperties=function(){var f=this.__invalidProps;if(f){this.__invalidProps=null;for(var R in f)this.__instance._setPendingProperty(R,this.__dataHost[R]);this.__instance._flushProperties()}};
_.X._showHideChildren=function(){var f=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==f&&(this.__instance.__hidden=f,this.__instance._showHideChildren(f));f||this.__syncHostProperties()};
_.bu=Bq?cjf:XcF;customElements.define(_.bu.is,_.bu);Polymer.enqueueDebouncer=_.Or;Polymer.flush=_.Z$;Polymer.Templatize={templatize:Uu,modelForElement:CXn};Polymer.TemplateInstanceBase=PC;Polymer.DomIf=_.bu;var haE=Ral(Vg),Lf=function(){var f=haE.call(this)||this;f.__instances=[];f.__renderDebouncer=null;f.__itemsIdxToInstIdx={};f.__chunkCount=null;f.__renderStartTime=null;f.__itemsArrayChanged=!1;f.__shouldMeasureChunk=!1;f.__shouldContinueChunking=!1;f.__chunkingId=0;f.__sortFn=null;f.__filterFn=null;f.__observePaths=null;f.__ctor=null;f.__isDetached=!0;f.template=null;return f};
_.y(Lf,haE);_.X=Lf.prototype;_.X.disconnectedCallback=function(){haE.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var f=0;f<this.__instances.length;f++)this.__detachInstance(f);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.X.connectedCallback=function(){haE.prototype.connectedCallback.call(this);XBe()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var f=(0,_.Qy)((0,_.Qy)(this).parentNode),R=0;R<this.__instances.length;R++)this.__attachInstance(R,f);this.__chunkingId&&this.__render()}};
_.X.__ensureTemplatized=function(){var f=this;if(!this.__ctor){var R=this.template=this._templateInfo?this:this.querySelector("template");if(!R){var u=new MutationObserver(function(){if(f.querySelector("template"))u.disconnect(),f.__render();else throw Error("Kd");});
u.observe(this,{childList:!0});return!1}var O={};O[this.as]=!0;O[this.indexAs]=!0;O[this.itemsIndexAs]=!0;this.__ctor=Uu(R,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:O,forwardHostProp:function(c,h){for(var l=this.__instances,K=0,q=void 0;K<l.length&&(q=l[K]);K++)q.forwardHostProp(c,h)},
notifyInstanceProp:function(c,h,l){e57(this.as,h)&&(c=c[this.itemsIndexAs],h==this.as&&(this.items[c]=l),h=q1(this.as,"items."+c,h),this.notifyPath(h,l))}})}return!0};
_.X.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.X.__functionFromPropertyValue=function(f){if(typeof f==="string"){var R=this.__getMethodHost();return function(){return R[f].apply(R,arguments)}}return f};
_.X.__sortChanged=function(f){this.__sortFn=this.__functionFromPropertyValue(f);this.items&&this.__debounceRender(this.__render)};
_.X.__filterChanged=function(f){this.__filterFn=this.__functionFromPropertyValue(f);this.items&&this.__debounceRender(this.__render)};
_.X.__computeFrameTime=function(f){return Math.ceil(1E3/f)};
_.X.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.X.__handleObservedPaths=function(f){if(this.__sortFn||this.__filterFn)if(!f)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var R=this.__observePaths,u=0;u<R.length;u++)f.indexOf(R[u])===0&&this.__debounceRender(this.__render,this.delay)};
_.X.__itemsChanged=function(f){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(f.path,f.value)||(f.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.X.__debounceRender=function(f,R){R=R===void 0?0:R;this.__renderDebouncer=_.uQ(this.__renderDebouncer,R>0?_.SH.after(R):TO,f.bind(this));_.Or(this.__renderDebouncer)};
_.X.render=function(){this.__debounceRender(this.__render);_.Z$()};
_.X.__render=function(){var f=this;if(this.__ensureTemplatized()){var R=this.items||[],u=this.__sortAndFilterItems(R),O=this.__calculateLimit(u.length);this.__updateInstances(R,O,u);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){f.__chunkingId=null;f.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);oz&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.X.__sortAndFilterItems=function(f){for(var R=this,u=Array(f.length),O=0;O<f.length;O++)u[O]=O;this.__filterFn&&(u=u.filter(function(c,h,l){return R.__filterFn(f[c],h,l)}));
this.__sortFn&&u.sort(function(c,h){return R.__sortFn(f[c],f[h])});
return u};
_.X.__calculateLimit=function(f){var R=f,u=this.__instances.length;if(this.initialCount){var O;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(R=Math.min(f,this.initialCount),this.__chunkCount=(O=Math.max(R-u,0))||1):(O=Math.min(Math.max(f-u,0),this.__chunkCount),R=Math.min(u+O,f));this.__shouldMeasureChunk=O===this.__chunkCount;this.__shouldContinueChunking=R<f;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return R};
_.X.__continueChunking=function(){if(this.__shouldMeasureChunk){var f=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/f*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.X.__updateInstances=function(f,R,u){var O=this.__itemsIdxToInstIdx={},c;for(c=0;c<R;c++){var h=this.__instances[c],l=u[c],K=f[l];O[l]=c;h?(h._setPendingProperty(this.as,K),h._setPendingProperty(this.indexAs,c),h._setPendingProperty(this.itemsIndexAs,l),h._flushProperties()):this.__insertInstance(K,c,l)}for(f=this.__instances.length-1;f>=c;f--)this.__detachAndRemoveInstance(f)};
_.X.__detachInstance=function(f){f=this.__instances[f];for(var R=(0,_.Qy)(f.root),u=0;u<f.children.length;u++)R.appendChild(f.children[u]);return f};
_.X.__attachInstance=function(f,R){R.insertBefore(this.__instances[f].root,this)};
_.X.__detachAndRemoveInstance=function(f){this.__detachInstance(f);this.__instances.splice(f,1)};
_.X.__stampInstance=function(f,R,u){var O={};O[this.as]=f;O[this.indexAs]=R;O[this.itemsIndexAs]=u;return new this.__ctor(O)};
_.X.__insertInstance=function(f,R,u){f=this.__stampInstance(f,R,u);u=(u=this.__instances[R+1])?u.children[0]:this;(0,_.Qy)((0,_.Qy)(this).parentNode).insertBefore(f.root,u);return this.__instances[R]=f};
_.X._showHideChildren=function(f){for(var R=0;R<this.__instances.length;R++)this.__instances[R]._showHideChildren(f)};
_.X.__handleItemPath=function(f,R){var u=f.slice(6),O=u.indexOf(".");f=O<0?u:u.substring(0,O);if(f==parseInt(f,10)){u=O<0?"":u.substring(O+1);this.__handleObservedPaths(u);if(f=this.__instances[this.__itemsIdxToInstIdx[f]])f._setPendingPropertyOrPath(this.as+(u?"."+u:""),R,!1,!0),f._flushProperties();return!0}};
_.X.itemForElement=function(f){return(f=this.modelForElement(f))&&f[this.as]};
_.X.indexForElement=function(f){return(f=this.modelForElement(f))&&f[this.indexAs]};
_.X.modelForElement=function(f){return CXn(this.template,f)};
_.Vy.Object.defineProperties(Lf,{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:Lf.prototype.__sortChanged},filter:{type:Function,observer:Lf.prototype.__filterChanged},observe:{type:String,observer:Lf.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!oz,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.*)"]}}});
Lf.prototype._setRenderedItemCount=function(){};
customElements.define(Lf.is,Lf);Polymer.DomRepeat=Lf;var ZaH=function(f,R){var u=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=f;this.callback=R;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){u._schedule()};
this.connect();this._schedule()},lvE=function(f){var R=(0,_.Qy)(f);
if(BC(f))return R.assignedNodes({flatten:!0});f=[];for(var u=0;u<R.childNodes.length;u++){var O=R.childNodes[u];BC(O)?f.push.apply(f,_.yq((0,_.Qy)(O).assignedNodes({flatten:!0}))):f.push(O)}return f};
_.X=ZaH.prototype;_.X.connect=function(){var f=this;BC(this._target)?this._listenSlots([this._target]):(0,_.Qy)(this._target).children&&(this._listenSlots((0,_.Qy)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(R){f._processMutations(R)}):(this._nativeChildrenObserver=new MutationObserver(function(R){f._processMutations(R)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.X.disconnect=function(){BC(this._target)?this._unlistenSlots([this._target]):(0,_.Qy)(this._target).children&&(this._unlistenSlots((0,_.Qy)(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};
_.X._schedule=function(){var f=this;this._scheduled||(this._scheduled=!0,TO.run(function(){return f.flush()}))};
_.X._processMutations=function(f){this._processSlotMutations(f);this.flush()};
_.X._processSlotMutations=function(f){if(f)for(var R=0;R<f.length;R++){var u=f[R];u.addedNodes&&this._listenSlots(u.addedNodes);u.removedNodes&&this._unlistenSlots(u.removedNodes)}};
_.X.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 f={target:this._target,addedNodes:[],removedNodes:[]},R=lvE(this._target),u=tPt(R,this._effectiveNodes),O=0,c=void 0;O<u.length&&(c=u[O]);O++)for(var h=0,l=void 0;h<c.removed.length&&(l=c.removed[h]);h++)f.removedNodes.push(l);
O=0;for(c=void 0;O<u.length&&(c=u[O]);O++)for(h=c.index;h<c.index+c.addedCount;h++)f.addedNodes.push(R[h]);this._effectiveNodes=R;R=!1;if(f.addedNodes.length||f.removedNodes.length)R=!0,this.callback.call(this._target,f);return R};
_.X._listenSlots=function(f){for(var R=0;R<f.length;R++){var u=f[R];BC(u)&&u.addEventListener("slotchange",this._boundSchedule)}};
_.X._unlistenSlots=function(f){for(var R=0;R<f.length;R++){var u=f[R];BC(u)&&u.removeEventListener("slotchange",this._boundSchedule)}};var kP=Element.prototype,k4C=kP.matches||kP.matchesSelector||kP.mozMatchesSelector||kP.msMatchesSelector||kP.oMatchesSelector||kP.webkitMatchesSelector,KaC=function(f,R){return k4C.call(f,R)},oI=function(f){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(f);
this.node=f},FaF;
_.X=oI.prototype;_.X.observeNodes=function(f){return new ZaH(this.node,f)};
_.X.unobserveNodes=function(f){f.disconnect()};
_.X.notifyObserver=function(){};
_.X.deepContains=function(f){if((0,_.Qy)(this.node).contains(f))return!0;var R=f;for(f=f.ownerDocument;R&&R!==f&&R!==this.node;)R=(0,_.Qy)(R).parentNode||(0,_.Qy)(R).host;return R===this.node};
_.X.getOwnerRoot=function(){return(0,_.Qy)(this.node).getRootNode()};
_.X.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Qy)(this.node).assignedNodes({flatten:!0}):[]};
_.X.getDestinationInsertionPoints=function(){for(var f=[],R=(0,_.Qy)(this.node).assignedSlot;R;)f.push(R),R=(0,_.Qy)(R).assignedSlot;return f};
_.X.importNode=function(f,R){return(0,_.Qy)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(f,R)};
_.X.getEffectiveChildNodes=function(){return lvE(this.node)};
_.X.queryDistributedElements=function(f){for(var R=this.getEffectiveChildNodes(),u=[],O=0,c=R.length,h=void 0;O<c&&(h=R[O]);O++)h.nodeType===Node.ELEMENT_NODE&&KaC(h,f)&&u.push(h);return u};
_.Vy.Object.defineProperties(oI.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var f=this.node;return f._activeElement!==void 0?f._activeElement:f.activeElement}}});
var KJ=function(f){this.event=f};
_.Vy.Object.defineProperties(KJ.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 qmA=oI;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var AjF=window.ShadyDOM.Wrapper,avG=function(){return AjF.apply(this,arguments)||this};
_.y(avG,AjF);Object.getOwnPropertyNames(oI.prototype).forEach(function(f){f!="activeElement"&&f!="constructor"&&(avG.prototype[f]=oI.prototype[f])});
dmn(avG.prototype,["classList"]);qmA=avG;Object.defineProperties(KJ.prototype,{localTarget:{get:function(){var f=this.event.currentTarget;f=f&&_.du(f).getOwnerRoot();for(var R=this.path,u=0;u<R.length;u++){var O=R[u];if(_.du(O).getOwnerRoot()===f)return O}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else yF0(),dmn(oI.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),NhD();FaF=qmA;_.du=function(f){f=f||document;if(f instanceof qmA)return f;if(f instanceof KJ)return f;var R=f.__domApi;R||(f instanceof Event?R=new KJ(f):R=new qmA(f),f.__domApi=R);return R};var wck=/:host\(:dir\((ltr|rtl)\)\)/g,msG=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Q$C=/:dir\((?:ltr|rtl)\)/,WaE=!(!window.ShadyDOM||!window.ShadyDOM.inUse),S2=[],qf=null,xV="",E7k=$w(function(f){WaE||qf||(xV=document.documentElement.getAttribute("dir"),qf=new MutationObserver(LGD),qf.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var R=NeC(f);f=function(){var u=R.call(this)||this;u.__autoDirOptOut=!1;return u};
_.y(f,R);f._processStyleText=function(u,O){u=R._processStyleText.call(this,u,O);!WaE&&Q$C.test(u)&&(u=this._replaceDirInCssText(u),this.__activateDir=!0);return u};
f._replaceDirInCssText=function(u){u=u.replace(wck,':host([dir="$1"])');return u=u.replace(msG,':host([dir="$2"]) $1')};
f.prototype.ready=function(){R.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
f.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(qf&&qf.takeRecords().length&&LGD(),S2.push(this),this.__autoDirOptOut||this.setAttribute("dir",xV))};
f.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var u=S2.indexOf(this);u>-1&&S2.splice(u,1)}};
f.__activateDir=!1;return f});var tdA=function(f){for(;f;){var R=Object.getOwnPropertyDescriptor(f,"observedAttributes");if(R)return R.get;f=Object.getPrototypeOf(f.prototype).constructor}return function(){return[]}};
$w(function(f){var R=n5(f),u=tdA(R);f=function(){return R.call(this)||this};
_.y(f,R);f.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:R.prototype._initializeProperties.call(this)};
f.prototype._enableProperties=function(){this.__isUpgradeDisabled||R.prototype._enableProperties.call(this)};
f.prototype._canApplyPropertyDefault=function(O){return R.prototype._canApplyPropertyDefault.call(this,O)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(O))};
f.prototype.attributeChangedCallback=function(O,c,h,l){O=="disable-upgrade"?this.__isUpgradeDisabled&&h==null&&(R.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Qy)(this).isConnected&&R.prototype.connectedCallback.call(this)):R.prototype.attributeChangedCallback.call(this,O,c,h,l)};
f.prototype.connectedCallback=function(){this.__isUpgradeDisabled||R.prototype.connectedCallback.call(this)};
f.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||R.prototype.disconnectedCallback.call(this)};
_.Vy.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u.call(this).concat("disable-upgrade")}}});
return f});var $V=!1,pBB=[],ge=[];var zL0=window.ShadyDOM,Thn=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",ImX):document.readyState==="interactive"||document.readyState==="complete"?ImX():window.addEventListener("DOMContentLoaded",ImX);var UmB=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=""},Mnn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,PXe=/@import[^;]*;/gim,SYe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,$mD=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,gRq=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,smB=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,oRh=/^@[^\s]*keyframes/,
Bhn=/\s+/g;var nRh={};var vRe=Promise.resolve();var CEF=new Set;var yjA=/;\s*/m,dsA=/^\s*(initial)|(inherit)\s*$/,Nuk=/\s*!important/,Laf=function(){this._map={}};
Laf.prototype.set=function(f,R){f=f.trim();this._map[f]={properties:R,dependants:{}}};
Laf.prototype.get=function(f){f=f.trim();return this._map[f]||null};
var bal=null,AO=function(){this._measureElement=this._currentElement=null;this._map=new Laf};
_.X=AO.prototype;_.X.detectMixin=function(f){f=x1Y.test(f)||oVC.test(f);x1Y.lastIndex=0;oVC.lastIndex=0;return f};
_.X.transformTemplate=function(f,R){if(f._gatheredStyle===void 0){var u=[];for(var O=f.content.querySelectorAll("style"),c=0;c<O.length;c++){var h=O[c];if(h.hasAttribute("shady-unscoped")){if(!Jxq){var l=h.textContent;if(!CEF.has(l)){CEF.add(l);var K=document.createElement("style");K.setAttribute("shady-unscoped","");K.textContent=l;document.head.appendChild(K)}h.parentNode.removeChild(h)}}else u.push(h.textContent),h.parentNode.removeChild(h)}(u=u.join("").trim())?(O=document.createElement("style"),
O.textContent=u,f.content.insertBefore(O,f.content.firstChild),u=O):u=null;f._gatheredStyle=u}return(f=f._gatheredStyle)?this.JSC$9171_transformStyle(f,R):null};
_.X.JSC$9171_transformStyle=function(f,R){R=R===void 0?"":R;var u=RKe(f);this.transformRules(u,R);f.textContent=fSD(u);return u};
_.X.transformCustomStyle=function(f){var R=this,u=RKe(f);OSe(u,function(O){O.selector===":root"&&(O.selector="html");R.transformRule(O)});
f.textContent=fSD(u);return u};
_.X.transformRules=function(f,R){var u=this;this._currentElement=R;OSe(f,function(O){u.transformRule(O)});
this._currentElement=null};
_.X.transformRule=function(f){f.cssText=pcH(this,f.parsedCssText,f);f.selector===":root"&&(f.selector=":host > *")};
var pcH=function(f,R,u){R=R.replace(oVC,function(O,c,h,l){return f._produceCssProperties(O,c,h,l,u)});
return f._consumeCssProperties(R,u)};
_.X=AO.prototype;_.X._getInitialValueForProperty=function(f){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(f)};
_.X._fallbacksFromPreviousRules=function(f){for(var R=this,u=f;u.parent;)u=u.parent;var O={},c=!1;OSe(u,function(h){(c=c||h===f)||h.selector===f.selector&&Object.assign(O,R._cssTextToMap(h.parsedCssText))});
return O};
_.X._consumeCssProperties=function(f,R){for(var u;u=x1Y.exec(f);){var O=u[0],c=u[1];u=u.index;var h=u+O.indexOf("@apply"),l=u+O.length;O=f.slice(0,h);f=f.slice(l);h=R?this._fallbacksFromPreviousRules(R):{};Object.assign(h,this._cssTextToMap(O));c=this._atApplyToCssProperties(c,h);f=O+c+f;x1Y.lastIndex=u+c.length}return f};
_.X._atApplyToCssProperties=function(f,R){f=f.replace(yjA,"");var u=[],O=this._map.get(f);O||(this._map.set(f,{}),O=this._map.get(f));if(O){this._currentElement&&(O.dependants[this._currentElement]=!0);var c,h=O.properties;for(c in h){var l=R&&R[c];O=[c,": var(",f,"_-_",c];l&&O.push(",",l.replace(Nuk,""));O.push(")");Nuk.test(h[c])&&O.push(" !important");u.push(O.join(""))}}return u.join("; ")};
_.X._replaceInitialOrInherit=function(f,R){var u=dsA.exec(R);u&&(R=u[1]?this._getInitialValueForProperty(f):"apply-shim-inherit");return R};
_.X._cssTextToMap=function(f,R){R=R===void 0?!1:R;f=f.split(";");for(var u,O,c={},h=0;h<f.length;h++)if(u=f[h])O=u.split(":"),O.length>1&&(u=O[0].trim(),O=O.slice(1).join(":"),R&&(O=this._replaceInitialOrInherit(u,O)),c[u]=O);return c};
_.X._invalidateMixinEntry=function(f){if(bal)for(var R in f.dependants)R!==this._currentElement&&bal(R)};
_.X._produceCssProperties=function(f,R,u,O,c){var h=this;u&&cdB(u,function(d,p){p&&h._map.get(p)&&(O="@apply "+p+";")});
if(!O)return f;var l=this._consumeCssProperties(""+O,c);c=f.slice(0,f.indexOf("--"));var K=l=this._cssTextToMap(l,!0),q=this._map.get(R),F=q&&q.properties;F?K=Object.assign(Object.create(F),l):this._map.set(R,K);var w=[],m,W=!1;for(m in K){var C=l[m];C===void 0&&(C="initial");!F||m in F||(W=!0);w.push(R+"_-_"+m+": "+C)}W&&this._invalidateMixinEntry(q);q&&(q.properties=K);u&&(c=f+";"+c);return c+w.join("; ")+";"};
AO.prototype.detectMixin=AO.prototype.detectMixin;AO.prototype.transformStyle=AO.prototype.JSC$9171_transformStyle;AO.prototype.transformCustomStyle=AO.prototype.transformCustomStyle;AO.prototype.transformRules=AO.prototype.transformRules;AO.prototype.transformRule=AO.prototype.transformRule;AO.prototype.transformTemplate=AO.prototype.transformTemplate;AO.prototype._separator="_-_";Object.defineProperty(AO.prototype,"invalidCallback",{get:function(){return bal},
set:function(f){bal=f}});var ab=new AO,j$f=function(){this.customStyleInterface=null;ab.invalidCallback=VnX},F1=function(f){!f.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(f.customStyleInterface=window.ShadyCSS.CustomStyleInterface,f.customStyleInterface.transformCallback=function(R){ab.transformCustomStyle(R)},f.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){f.customStyleInterface.enqueued&&f.flushCustomStyles()})})};
_.X=j$f.prototype;_.X.prepareTemplate=function(f,R){F1(this);X9t(f)===""&&(nRh[R]=f,R=ab.transformTemplate(f,R),f._styleAst=R)};
_.X.flushCustomStyles=function(){F1(this);if(this.customStyleInterface){var f=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var R=0;R<f.length;R++){var u=this.customStyleInterface.getStyleForCustomStyle(f[R]);u&&ab.transformCustomStyle(u)}this.customStyleInterface.enqueued=!1}}};
_.X.styleSubtree=function(f,R){F1(this);R&&dp2(f,R);if(f.shadowRoot)for(this.styleElement(f),f=f.shadowRoot.children||f.shadowRoot.childNodes,R=0;R<f.length;R++)this.styleSubtree(f[R]);else for(f=f.children||f.childNodes,R=0;R<f.length;R++)this.styleSubtree(f[R])};
_.X.styleElement=function(f){F1(this);var R=f.localName,u;R?R.indexOf("-")>-1?u=R:u=f.getAttribute&&f.getAttribute("is")||"":u=f.is;R=nRh[u];if(!(R&&X9t(R)!==""||!R||YY7(R))){if(YY7(R)||R._applyShimValidatingVersion!==R._applyShimNextVersion)this.prepareTemplate(R,u),i9B(R);if(f=f.shadowRoot)if(f=f.querySelector("style"))f.__cssRules=R._styleAst,f.textContent=fSD(R._styleAst)}};
_.X.styleDocument=function(f){F1(this);this.styleSubtree(document.body,f)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var wF=new j$f,DsA=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(f,R){wF.flushCustomStyles();wF.prepareTemplate(f,R)},
prepareTemplateStyles:function(f,R,u){window.ShadyCSS.prepareTemplate(f,R,u)},
prepareTemplateDom:function(){},
styleSubtree:function(f,R){wF.flushCustomStyles();wF.styleSubtree(f,R)},
styleElement:function(f){wF.flushCustomStyles();wF.styleElement(f)},
styleDocument:function(f){wF.flushCustomStyles();wF.styleDocument(f)},
getComputedStyleValue:function(f,R){return NWn(f,R)},
flushCustomStyles:function(){wF.flushCustomStyles()},
nativeCss:rFh,nativeShadow:Jxq,cssBuild:nT,disableRuntime:gVi};DsA&&(window.ShadyCSS.CustomStyleInterface=DsA)}window.ShadyCSS.ApplyShim=ab;var JjC;JjC=window.ShadyCSS;_.m0=$w(function(f){f=fvf(n5(f));var R=IaC?f:E7k(f),u=tdA(R),O={x:"pan-x",y:"pan-y",none:"none",all:"auto"};f=function(){return R.call(this)||this};
_.y(f,R);f.prototype.created=function(){};
f.prototype.__attributeReaction=function(c,h,l){(this.__dataAttributes&&this.__dataAttributes[c]||c==="disable-upgrade")&&this.attributeChangedCallback(c,h,l,null)};
f.prototype.setAttribute=function(c,h){if(lal&&!this._legacyForceObservedAttributes){var l=this.getAttribute(c);R.prototype.setAttribute.call(this,c,h);this.__attributeReaction(c,l,String(h))}else R.prototype.setAttribute.call(this,c,h)};
f.prototype.removeAttribute=function(c){if(lal&&!this._legacyForceObservedAttributes){var h=this.getAttribute(c);R.prototype.removeAttribute.call(this,c);this.__attributeReaction(c,h,null)}else R.prototype.removeAttribute.call(this,c)};
f.prototype._enableProperties=function(){this.__isUpgradeDisabled||R.prototype._enableProperties.call(this)};
f.prototype._canApplyPropertyDefault=function(c){return R.prototype._canApplyPropertyDefault.call(this,c)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(c))};
f.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(R.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
f.prototype.attached=function(){};
f.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(R.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
f.prototype.detached=function(){};
f.prototype.attributeChangedCallback=function(c,h,l,K){h!==l&&(c=="disable-upgrade"?this.__isUpgradeDisabled&&l==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Qy)(this).isConnected&&this.connectedCallback()):(R.prototype.attributeChangedCallback.call(this,c,h,l,K),this.attributeChanged(c,h,l)))};
f.prototype.attributeChanged=function(){};
f.prototype._initializeProperties=function(){if(II&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var c=Object.getPrototypeOf(this);c.hasOwnProperty("__hasRegisterFinished")||(this._registered(),c.__hasRegisterFinished=!0);R.prototype._initializeProperties.call(this);this.root=this;this.created();lal&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
f.prototype._takeAttributes=function(){for(var c=this.attributes,h=0,l=c.length;h<l;h++){var K=c[h];this.__attributeReaction(K.name,null,K.value)}};
f.prototype._registered=function(){};
f.prototype.ready=function(){this._ensureAttributes();R.prototype.ready.call(this)};
f.prototype._ensureAttributes=function(){};
f.prototype._applyListeners=function(){};
f.prototype.serialize=function(c){return this._serializeValue(c)};
f.prototype.deserialize=function(c,h){return this._deserializeValue(c,h)};
f.prototype.reflectPropertyToAttribute=function(c,h,l){this._propertyToAttribute(c,h,l)};
f.prototype.serializeValueToAttribute=function(c,h,l){this._valueToNodeAttribute(l||this,c,h)};
f.prototype.extend=function(c,h){if(!c||!h)return c||h;for(var l=Object.getOwnPropertyNames(h),K=0,q=void 0;K<l.length&&(q=l[K]);K++){var F=Object.getOwnPropertyDescriptor(h,q);F&&Object.defineProperty(c,q,F)}return c};
f.prototype.mixin=function(c,h){for(var l in h)c[l]=h[l];return c};
f.prototype.chainObject=function(c,h){c&&h&&c!==h&&(c.__proto__=h);return c};
f.prototype.instanceTemplate=function(c){c=this.constructor._contentForTemplate(c);return document.importNode(c,!0)};
f.prototype.fire=function(c,h,l){l=l||{};h=h===null||h===void 0?{}:h;c=new Event(c,{bubbles:l.bubbles===void 0?!0:l.bubbles,cancelable:!!l.cancelable,composed:l.composed===void 0?!0:l.composed});c.detail=h;(0,_.Qy)(l.node||this).dispatchEvent(c);return c};
f.prototype.listen=function(c,h,l){c=c||this;var K=this.__boundListeners||(this.__boundListeners=new WeakMap),q=K.get(c);q||(q={},K.set(c,q));K=h+l;q[K]||(q[K]=this._addMethodEventListenerToNode(c,h,l,this))};
f.prototype.unlisten=function(c,h,l){c=c||this;var K=this.__boundListeners&&this.__boundListeners.get(c);l=h+l;var q=K&&K[l];q&&(this._removeEventListenerFromNode(c,h,q),K[l]=null)};
f.prototype.setScrollDirection=function(c,h){_.zO(h||this,O[c]||"auto")};
f.prototype.$$=function(c){return this.root.querySelector(c)};
f.prototype.distributeContent=function(){var c=_.du(this);window.ShadyDOM&&c.shadowRoot&&ShadyDOM.flush()};
f.prototype.getEffectiveChildNodes=function(){return _.du(this).getEffectiveChildNodes()};
f.prototype.queryDistributedElements=function(c){return _.du(this).queryDistributedElements(c)};
f.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
f.prototype.getEffectiveTextContent=function(){for(var c=this.getEffectiveChildNodes(),h=[],l=0,K;K=c[l];l++)K.nodeType!==Node.COMMENT_NODE&&h.push(K.textContent);return h.join("")};
f.prototype.queryEffectiveChildren=function(c){return(c=this.queryDistributedElements(c))&&c[0]};
f.prototype.queryAllEffectiveChildren=function(c){return this.queryDistributedElements(c)};
f.prototype.getContentChildNodes=function(c){return(c=this.root.querySelector(c||"slot"))?_.du(c).getDistributedNodes():[]};
f.prototype.getContentChildren=function(c){return this.getContentChildNodes(c).filter(function(h){return h.nodeType===Node.ELEMENT_NODE})};
f.prototype.isLightDescendant=function(c){return this!==c&&(0,_.Qy)(this).contains(c)&&(0,_.Qy)(this).getRootNode()===(0,_.Qy)(c).getRootNode()};
f.prototype.isLocalDescendant=function(c){return this.root===(0,_.Qy)(c).getRootNode()};
f.prototype.scopeSubtree=function(c,h){return H97(c,h===void 0?!1:h)};
f.prototype.getComputedStyleValue=function(c){return JjC.getComputedStyleValue(this,c)};
f.prototype.debounce=function(c,h,l){this._debouncers=this._debouncers||{};return this._debouncers[c]=_.uQ(this._debouncers[c],l>0?_.SH.after(l):TO,h.bind(this))};
f.prototype.isDebouncerActive=function(c){this._debouncers=this._debouncers||{};c=this._debouncers[c];return!(!c||!c.isActive())};
f.prototype.flushDebouncer=function(c){this._debouncers=this._debouncers||{};(c=this._debouncers[c])&&c.flush()};
f.prototype.cancelDebouncer=function(c){this._debouncers=this._debouncers||{};(c=this._debouncers[c])&&c.cancel()};
f.prototype.async=function(c,h){return h>0?_.SH.run(c.bind(this),h):~TO.run(c.bind(this))};
f.prototype.cancelAsync=function(c){c<0?TO.cancel(~c):_.SH.cancel(c)};
f.prototype.create=function(c,h){c=document.createElement(c);if(h)if(c.setProperties)c.setProperties(h);else for(var l in h)c[l]=h[l];return c};
f.prototype.elementMatches=function(c,h){return KaC(h||this,c)};
f.prototype.toggleAttribute=function(c,h){var l=this;arguments.length===3&&(l=arguments[2]);arguments.length==1&&(h=!l.hasAttribute(c));if(h)return(0,_.Qy)(l).setAttribute(c,""),!0;(0,_.Qy)(l).removeAttribute(c);return!1};
f.prototype.toggleClass=function(c,h,l){l=l||this;arguments.length==1&&(h=!l.classList.contains(c));h?l.classList.add(c):l.classList.remove(c)};
f.prototype.transform=function(c,h){h=h||this;h.style.webkitTransform=c;h.style.transform=c};
f.prototype.translate3d=function(c,h,l,K){this.transform("translate3d("+c+","+h+","+l+")",K||this)};
f.prototype.arrayDelete=function(c,h){if(Array.isArray(c)){if(h=c.indexOf(h),h>=0)return c.splice(h,1)}else if(h=FP(this,c).indexOf(h),h>=0)return this.splice(c,h,1);return null};
f.prototype._logger=function(c,h){Array.isArray(h)&&h.length===1&&Array.isArray(h[0])&&(h=h[0]);switch(c){case "log":case "warn":case "error":console[c].apply(console,_.yq(h))}};
f.prototype._log=function(){this._logger("log",_.yK.apply(0,arguments))};
f.prototype._warn=function(){this._logger("warn",_.yK.apply(0,arguments))};
f.prototype._error=function(){this._logger("error",_.yK.apply(0,arguments))};
f.prototype._logf=function(c){return["[%s::%s]",this.is,c].concat(_.yq(_.yK.apply(1,arguments)))};
_.Vy.Object.defineProperties(f.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var c=(0,_.Qy)(this).getRootNode();return c instanceof DocumentFragment?c.host:c}}});
_.Vy.Object.defineProperties(f,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return lal&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],z55(this.prototype)),this.__observedAttributes):u.call(this).concat("disable-upgrade")}}});
f.prototype.is="";return f});Polymer.FlattenedNodesObserver=ZaH;Polymer.DomApi=FaF;Polymer.EventApi=KJ;Polymer.dom=_.du;Polymer.dom.matchesSelector=KaC;Polymer.dom.flush=_.Z$;Polymer.dom.addDebouncer=_.Or;Polymer.DirMixin=E7k;Polymer.RenderStatus={beforeNextRender:_.JF0,afterNextRender:_.su,flush:function(){for(;pBB.length||ge.length;)b95(pBB),b95(ge);$V=!1}};Polymer.LegacyElementMixin=_.m0;var zaf;zaf=X1._mutablePropertyChange;var Tuk={properties:{mutableData:Boolean},_shouldPropertyChange:function(f,R,u){return zaf(this,f,R,u,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(f,R,u){return zaf(this,f,R,u,!0)}};
Polymer.OptionalMutableDataBehavior=Tuk;var hK7={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},qXP={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Kz7=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},qXP),Haf=(0,_.m0)(HTMLElement),nc2=function(f,R){f||console.warn("Polymer.Class requires `info` argument");R=R?R(Haf):Haf;R=Adt(f,R,f.behaviors);R.is=R.prototype.is=
f.is;return R};Polymer.Class=nc2;Polymer.mixinBehaviors=function(f,R){return Adt({},(0,_.m0)(R),f)};
Polymer.GenerateClassFromInfo=Adt;_.NM=function(f){var R=typeof f==="function"?f:_.NM.Class(f);f._legacyForceObservedAttributes&&(R.prototype._legacyForceObservedAttributes=f._legacyForceObservedAttributes);customElements.define(R.is,R);return R};
_.NM.Class=nc2;Polymer._polymerFn=_.NM;var Ivi=window.onLegacyPolymerFunctionDefinedCallback;Ivi&&Ivi();var Yle={templatize:function(f,R){this._templatizerTemplate=f;this.ctor=Uu(f,this,{mutableData:!!R,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(f){return new this.ctor(f)},
modelForElement:function(f){return CXn(this._templatizerTemplate,f)}};Polymer.Templatizer=Yle;_.QJ=(0,_.m0)(HTMLElement).prototype;Polymer.Base=_.QJ;var Fz7=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.YV=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.y(_.YV,PolymerFakeBaseClass);var vC=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.y(vC,PolymerFakeBaseClass);var w92=Symbol("Ld"),dSh=[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 MdA=MdA||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},PEC;(function(f){function R(x,fh,V){var ZD=g.get(x);if(!ZD){if(!V)return;ZD=new M;g.set(x,ZD)}x=ZD.get(fh);if(!x){if(!V)return;x=new M;ZD.set(fh,x)}return x}
function u(x,fh,V){if(O(x,fh,V))return!0;fh=W(fh);return fh!==null?u(x,fh,V):!1}
function O(x,fh,V){fh=R(fh,V,!1);return fh===void 0?!1:!!fh.has(x)}
function c(x,fh,V){if(O(x,fh,V))return h(x,fh,V);fh=W(fh);if(fh!==null)return c(x,fh,V)}
function h(x,fh,V){fh=R(fh,V,!1);if(fh!==void 0)return fh.get(x)}
function l(x,fh){var V=K(x,fh);x=W(x);if(x===null)return V;var ZD=l(x,fh);if(ZD.length<=0)return V;if(V.length<=0)return ZD;fh=new P;x=[];V=_.Z(V);for(var mP=V.next();!mP.done;mP=V.next())mP=mP.value,fh.has(mP)||(fh.add(mP),x.push(mP));V=_.Z(ZD);for(ZD=V.next();!ZD.done;ZD=V.next())ZD=ZD.value,fh.has(ZD)||(fh.add(ZD),x.push(ZD));return x}
function K(x,fh){x=R(x,fh,!1);var V=[];x&&x.forEach(function(ZD,mP){return V.push(mP)});
return V}
function q(x){return x===void 0}
function F(x){return typeof x==="object"?x!==null:typeof x==="function"}
function w(x){return typeof x==="function"}
function m(x){return typeof x==="symbol"?x:String(x)}
function W(x){var fh=Object.getPrototypeOf(x);if(typeof x!=="function"||x===J||fh!==J)return fh;var V=Object.getPrototypeOf(x.prototype);if(V==null||V===Object.prototype)return fh;V=V.constructor;return typeof V!=="function"||V===x?fh:V}
function C(){function x(){this._keys=[];this._values=[];this._cache=fh}
var fh={};x.prototype={get size(){return this._keys.length},has:function(V){return V===this._cache?!0:this._find(V)>=0?(this._cache=V,!0):!1},
get:function(V){var ZD=this._find(V);if(ZD>=0)return this._cache=V,this._values[ZD]},
set:function(V,ZD){this.delete(V);this._keys.push(V);this._values.push(ZD);this._cache=V;return this},
delete:function(V){V=this._find(V);return V>=0?(this._keys.splice(V,1),this._values.splice(V,1),this._cache=fh,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=fh},
forEach:function(V){for(var ZD=this.size,mP=0;mP<ZD;++mP){var NX=this._keys[mP],jt=this._values[mP];this._cache=NX;V.call(this,jt,NX,this)}},
_find:function(V){for(var ZD=this._keys,mP=ZD.length,NX=0;NX<mP;++NX)if(ZD[NX]===V)return NX;return-1}};
return x}
function d(){function x(){this._map=new M}
x.prototype={get size(){return this._map.length},has:function(fh){return this._map.has(fh)},
add:function(fh){this._map.set(fh,fh);return this},
delete:function(fh){return this._map.delete(fh)},
clear:function(){this._map.clear()},
forEach:function(fh,V){this._map.forEach(fh,V)}};
return x}
function p(){function x(){this._key=V()}
function fh(zq,St){for(var Gq=0;Gq<St;++Gq)zq[Gq]=Math.random()*255|0}
function V(){do{if(mP)var zq=mP.randomBytes(16);else typeof Uint8Array==="function"?(zq=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(zq):fh(zq,16)):(zq=Array(16),fh(zq,16));zq[6]=zq[6]&79|64;zq[8]=zq[8]&191|128;for(var St="",Gq=0;Gq<16;++Gq){var LC=zq[Gq];if(Gq===4||Gq===6||Gq===8)St+="-";LC<16&&(St+="0");St+=LC.toString(16).toLowerCase()}zq="@@WeakMap@@"+St}while(NX.call(jt,zq));jt[zq]=!0;return zq}
function ZD(zq,St){if(!NX.call(zq,Jn)){if(!St)return;Object.defineProperty(zq,Jn,{value:Object.create(null)})}return zq[Jn]}
var mP=typeof global!=="undefined"&&typeof MdA==="object"&&typeof require==="function"&&require("crypto"),NX=Object.prototype.hasOwnProperty,jt={},Jn=V();x.prototype={has:function(zq){return(zq=ZD(zq,!1))?this._key in zq:!1},
get:function(zq){if(zq=ZD(zq,!1))return zq[this._key]},
set:function(zq,St){ZD(zq,!0)[this._key]=St;return this},
delete:function(zq){return(zq=ZD(zq,!1))&&this._key in zq?delete zq[this._key]:!1},
clear:function(){this._key=V()}};
return x}
var J=Object.getPrototypeOf(Function),M=typeof Map==="function"?Map:C(),P=typeof Set==="function"?Set:d(),g=new (typeof WeakMap==="function"?WeakMap:p());f.decorate=function(x,fh,V,ZD){if(q(ZD)){if(q(V)){if(!Array.isArray(x))throw new TypeError;if(!w(fh))throw new TypeError;for(V=x.length-1;V>=0;--V)if(ZD=(0,x[V])(fh),!q(ZD)){if(!w(ZD))throw new TypeError;fh=ZD}return fh}if(!Array.isArray(x))throw new TypeError;if(!F(fh))throw new TypeError;V=m(V);for(ZD=x.length-1;ZD>=0;--ZD)(0,x[ZD])(fh,V)}else{if(Array.isArray(x))if(F(fh)){if(q(V))throw new TypeError;
if(!F(ZD))throw new TypeError;}else throw new TypeError;else throw new TypeError;V=m(V);for(var mP=x.length-1;mP>=0;--mP){var NX=(0,x[mP])(fh,V,ZD);if(!q(NX)){if(!F(NX))throw new TypeError;ZD=NX}}return ZD}};
f.metadata=function(x,fh){return function(V,ZD){if(q(ZD)){if(!w(V))throw new TypeError;R(V,void 0,!0).set(x,fh)}else{if(!F(V))throw new TypeError;ZD=m(ZD);R(V,ZD,!0).set(x,fh)}}};
f.defineMetadata=function(x,fh){var V;if(F(fh))q(V)||(V=m(V));else throw new TypeError;R(fh,V,!0).set("parameters",x)};
f.hasMetadata=function(x,fh,V){if(F(fh))q(V)||(V=m(V));else throw new TypeError;return u(x,fh,V)};
f.hasOwnMetadata=function(x,fh,V){if(F(fh))q(V)||(V=m(V));else throw new TypeError;return O(x,fh,V)};
f.getMetadata=function(x,fh,V){if(F(fh))q(V)||(V=m(V));else throw new TypeError;return c(x,fh,V)};
f.getOwnMetadata=function(x,fh,V){if(F(fh))q(V)||(V=m(V));else throw new TypeError;return h(x,fh,V)};
f.getMetadataKeys=function(x,fh){if(F(x))q(fh)||(fh=m(fh));else throw new TypeError;return l(x,fh)};
f.getOwnMetadataKeys=function(x,fh){if(F(x))q(fh)||(fh=m(fh));else throw new TypeError;return K(x,fh)};
f.deleteMetadata=function(x,fh,V){if(F(fh))q(V)||(V=m(V));else throw new TypeError;var ZD=R(fh,V,!1);if(!q(ZD)){if(!ZD.delete(x))return!1;if(ZD.size>0)return!0;x=g.get(fh);x.delete(V);if(x.size>0)return!0;g.delete(fh);return!0}};
(function(x){if(typeof x.Reflect!=="undefined"){if(x.Reflect!==f)for(var fh in f)x.Reflect[fh]=f[fh]}else x.Reflect=f})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(PEC||(PEC={}));var Hqn=self;var Usl=[0,_.GR,_.xT,_.GR];var eaY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(eaY,_.e5);var G4l=_.rl(eaY,[0,_.BCD,_.ST,Usl,_.xT,_.gZ]);_.f6(_.iq,_.d9);_.X=_.iq.prototype;_.X.start=function(){this.stop();this.usingListeners_=!1;var f=BuA(this),R=o7i(this);f&&!R&&this.JSC$9214_win_.mozRequestAnimationFrame?(this.JSC$9214_id_=_.y0(this.JSC$9214_win_,"MozBeforePaint",this.callback_),this.JSC$9214_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9214_id_=f&&R?f.call(this.JSC$9214_win_,this.callback_):this.JSC$9214_win_.setTimeout(gt2(this.callback_),20)};
_.X.stop=function(){if(this.isActive()){var f=BuA(this),R=o7i(this);f&&!R&&this.JSC$9214_win_.mozRequestAnimationFrame?Ex(this.JSC$9214_id_):f&&R?R.call(this.JSC$9214_win_,this.JSC$9214_id_):this.JSC$9214_win_.clearTimeout(this.JSC$9214_id_)}this.JSC$9214_id_=null};
_.X.fire=function(){this.stop();this.JSC$9216_doAction_()};
_.X.isActive=function(){return this.JSC$9214_id_!=null};
_.X.JSC$9216_doAction_=function(){this.usingListeners_&&this.JSC$9214_id_&&Ex(this.JSC$9214_id_);this.JSC$9214_id_=null;this.JSC$9214_listener_.call(this.handler_,_.rI())};
_.X.disposeInternal=function(){this.stop();_.iq.superClass_.disposeInternal.call(this)};
var BuA=function(f){f=f.JSC$9214_win_;return f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||null},o7i=function(f){f=f.JSC$9214_win_;
return f.cancelAnimationFrame||f.cancelRequestAnimationFrame||f.webkitCancelRequestAnimationFrame||f.mozCancelRequestAnimationFrame||f.oCancelRequestAnimationFrame||f.msCancelRequestAnimationFrame||null};_.vJ=function(f,R,u){_.d9.call(this);this.JSC$9217_listener_=u!=null?f.bind(u):f;this.JSC$9217_interval_=R;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9217_timer_=null};
_.y(_.vJ,_.d9);_.X=_.vJ.prototype;_.X.fire=function(f){this.args_=arguments;this.JSC$9217_timer_||this.pauseCount_?this.shouldFire_=!0:xsi(this)};
_.X.stop=function(){this.JSC$9217_timer_&&(_.Oe.clearTimeout(this.JSC$9217_timer_),this.JSC$9217_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.X.pause=function(){this.pauseCount_++};
_.X.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9217_timer_||(this.shouldFire_=!1,xsi(this))};
_.X.disposeInternal=function(){_.d9.prototype.disposeInternal.call(this);this.stop()};
var xsi=function(f){f.JSC$9217_timer_=Cd(function(){f.JSC$9217_timer_=null;f.shouldFire_&&!f.pauseCount_&&(f.shouldFire_=!1,xsi(f))},f.JSC$9217_interval_);
var R=f.args_;f.args_=null;f.JSC$9217_listener_.apply(null,R)};var SmF=function(f,R){this.childIterator_=f[_.Oe.Symbol.iterator]();this.mapFn_=R};
SmF.prototype[Symbol.iterator]=function(){return this};
SmF.prototype.next=function(){var f=this.childIterator_.next();return{value:f.done?void 0:this.mapFn_.call(void 0,f.value),done:f.done}};
var $sk=function(f,R){return new SmF(f,R)};var g7f={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 Kcn=function(f){var R=s$C(f);if(!R)throw Error("Pd`"+f);return R},s$C=function(f){var R={};
f=String(f);var u=f.charAt(0)=="#"?f:"#"+f;if(n7l.test(u))return R.hex=c0q(u),R.type="hex",R;u=Fcq(f);return u.length?(R.hex=vl7(u[0],u[1],u[2]),R.type="rgb",R):g7f&&(f=g7f[f.toLowerCase()])?(R.hex=f,R.type="named",R):null},VdC=/#(.)(.)(.)/,c0q=function(f){if(!n7l.test(f))throw Error("Rd`"+f);
f.length==4&&(f=f.replace(VdC,"#$1$1$2$2$3$3"));return f.toLowerCase()},qIe=function(f){f=c0q(f);
f=parseInt(f.slice(1),16);return[f>>16,f>>8&255,f&255]},vl7=function(f,R,u){f=Number(f);
R=Number(R);u=Number(u);if(f!=(f&255)||R!=(R&255)||u!=(u&255))throw Error("Sd`"+f+"`"+R+"`"+u);R=f<<16|R<<8|u;return f<16?"#"+(16777216|R).toString(16).slice(1):"#"+R.toString(16)},n7l=/^#(?:[0-9a-f]{3}){1,2}$/i,Ymk=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Fcq=function(f){var R=f.match(Ymk);
if(R){f=Number(R[1]);var u=Number(R[2]);R=Number(R[3]);if(f>=0&&f<=255&&u>=0&&u<=255&&R>=0&&R<=255)return[f,u,R]}return[]};var v7Y={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},yo=v7Y;yo=v7Y;var IUe,iaH,rjA;IUe=function(f,R){switch(R){case 1:return f%4!=0||f%100==0&&f%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
iaH=function(f,R,u,O,c){f=new Date(f,R,u);c=c||0;return f.valueOf()+(((O!==void 0?O:3)-c+7)%7-((f.getDay()+6)%7-c+7)%7)*864E5};
_.We=function(f,R,u){typeof f==="number"?(this.date=rjA(f,R||0,u||1),fWF(this,u||1)):_.OE(f)?(this.date=rjA(f.getFullYear(),f.getMonth(),f.getDate()),fWF(this,f.getDate())):(this.date=new Date(_.rI()),f=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),fWF(this,f))};
rjA=function(f,R,u){R=new Date(f,R,u);f>=0&&f<100&&R.setFullYear(R.getFullYear()-1900);return R};
_.X=_.We.prototype;_.X.firstDayOfWeek_=yo.FIRSTDAYOFWEEK;_.X.firstWeekCutOffDay_=yo.FIRSTWEEKCUTOFFDAY;_.X.clone=function(){var f=new _.We(this.date);f.firstDayOfWeek_=this.firstDayOfWeek_;f.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return f};
_.X.getFullYear=function(){return this.date.getFullYear()};
_.X.getYear=function(){return this.getFullYear()};
_.X.getMonth=function(){return this.date.getMonth()};
_.X.getDate=function(){return this.date.getDate()};
_.X.getTime=function(){return this.date.getTime()};
_.X.getDay=function(){return this.date.getDay()};
_.X.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.X.getUTCMonth=function(){return this.date.getUTCMonth()};
_.X.getUTCDate=function(){return this.date.getUTCDate()};
_.X.getUTCDay=function(){return this.date.getDay()};
_.X.getUTCHours=function(){return this.date.getUTCHours()};
_.X.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.X.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.X.set=function(f){this.date=new Date(f.getFullYear(),f.getMonth(),f.getDate())};
_.X.setFullYear=function(f){this.date.setFullYear(f)};
_.X.setYear=function(f){this.setFullYear(f)};
_.X.setMonth=function(f){this.date.setMonth(f)};
_.X.setDate=function(f){this.date.setDate(f)};
_.X.setTime=function(f){this.date.setTime(f)};
_.X.setUTCFullYear=function(f){this.date.setUTCFullYear(f)};
_.X.setUTCMonth=function(f){this.date.setUTCMonth(f)};
_.X.setUTCDate=function(f){this.date.setUTCDate(f)};
_.X.add=function(f){if(f.years||f.months){var R=this.getMonth()+f.months+f.years*12,u=this.getYear()+Math.floor(R/12);R%=12;R<0&&(R+=12);var O=Math.min(IUe(u,R),this.getDate());this.setDate(1);this.setFullYear(u);this.setMonth(R);this.setDate(O)}f.days&&(u=this.getYear(),R=u>=0&&u<=99?-1900:0,f=new Date((new Date(u,this.getMonth(),this.getDate(),12)).getTime()+f.days*864E5),this.setDate(1),this.setFullYear(f.getFullYear()+R),this.setMonth(f.getMonth()),this.setDate(f.getDate()),fWF(this,f.getDate()))};
_.X.JSC$9230_toIsoString=function(f){var R=this.getFullYear(),u=R<0?"-":R>=1E4?"+":"";return[u+_.rZ(Math.abs(R),u?6:4),_.rZ(this.getMonth()+1,2),_.rZ(this.getDate(),2)].join(f?"-":"")};
_.X.equals=function(f){return!(!f||this.getYear()!=f.getYear()||this.getMonth()!=f.getMonth()||this.getDate()!=f.getDate())};
_.X.toString=function(){return this.JSC$9230_toIsoString()};
var fWF=function(f,R){f.getDate()!=R&&f.date.setUTCHours(f.date.getUTCHours()+(f.getDate()<R?1:-1))};
_.We.prototype.valueOf=function(){return this.date.valueOf()};var tO=function(f,R,u,O,c){this.reversed=!!R;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!u;f&&Er(this,f,O);this.depth=c!=void 0?c:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.f6(tO,Rz);var Er=function(f,R,u,O){if(f.node=R)f.tagType=typeof u==="number"?u:f.node.nodeType!=1?0:f.reversed?-1:1;typeof O==="number"&&(f.depth=O)};
_.X=tO.prototype;_.X.JSC$9245_copyFrom=function(f){this.node=f.node;this.tagType=f.tagType;this.depth=f.depth;this.reversed=f.reversed;this.constrained=f.constrained};
_.X.clone=function(){return new tO(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.X.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return u0;var f=this.node;var R=this.reversed?-1:1;if(this.tagType==R){var u=this.reversed?f.lastChild:f.firstChild;u?Er(this,u):Er(this,f,R*-1)}else(u=this.reversed?f.previousSibling:f.nextSibling)?Er(this,u):Er(this,f.parentNode,R*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(f=this.node)?OQ(f):u0};
_.X.equals=function(f){return f.node==this.node&&(!this.node||f.tagType==this.tagType)};
_.X.splice=function(f){var R=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;tO.prototype.next.call(this);this.reversed=!this.reversed;u=_.Rk(arguments[0])?arguments[0]:arguments;for(var O=u.length-1;O>=0;O--)_.pp(u[O],R);_.Q1(R)};var R4t=function(){},CJ=function(f){for(var R=[],u=f.getTextRangeCount(),O=0;O<u;O++)R.push(f.getTextRange(O));
return R};
R4t.prototype.isReversed=function(){return!1};
R4t.prototype.getWindow=function(){return p8(_.jF(this.JSC$9247_getStartNode()))};
var uaY=function(f,R){tO.call(this,f,R,!0)};
_.f6(uaY,tO);var yJ=function(f,R,u,O,c){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!c;if(f){this.startNode_=f;this.startOffset_=R;this.endNode_=u;this.endOffset_=O;if(f.nodeType==1&&f.tagName!="BR")if(f=f.childNodes,R=f[R])this.startNode_=R,this.startOffset_=0;else{f.length&&(this.startNode_=_.Ue(f));var h=!0}u.nodeType==1&&((this.endNode_=u.childNodes[O])?this.endOffset_=0:this.endNode_=u)}tO.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);h&&this.next()};
_.f6(yJ,uaY);_.X=yJ.prototype;_.X.JSC$9253_getStartNode=function(){return this.startNode_};
_.X.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)};
_.X.next=function(){return this.isLast()?u0:yJ.superClass_.next.call(this)};
_.X.JSC$9245_copyFrom=function(f){this.startNode_=f.startNode_;this.endNode_=f.endNode_;this.startOffset_=f.startOffset_;this.endOffset_=f.endOffset_;this.isReversed_=f.isReversed_;yJ.superClass_.JSC$9245_copyFrom.call(this,f)};
_.X.clone=function(){var f=new yJ(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);f.JSC$9245_copyFrom(this);return f};var OvA=function(){};
OvA.prototype.__iterator__=function(){return new yJ(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var dF=function(f){this.range_=f};
_.f6(dF,OvA);var cHA=function(f){var R=_.jF(f).createRange();if(f.nodeType==3)R.setStart(f,0),R.setEnd(f,f.length);else if(NU(f)||f.nodeType==3){for(var u,O=f;(u=O.firstChild)&&(NU(u)||u.nodeType==3);)O=u;R.setStart(O,0);for(O=f;(u=O.lastChild)&&(NU(u)||u.nodeType==3);)O=u;R.setEnd(O,O.nodeType==1?O.childNodes.length:O.length)}else u=f.parentNode,f=Array.prototype.indexOf.call(u.childNodes,f),R.setStart(u,f),R.setEnd(u,f+1);return R},X_l=function(f,R,u,O){var c=_.jF(f).createRange();
c.setStart(f,R);c.setEnd(u,O);return c};
_.X=dF.prototype;_.X.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.X.getContainer=function(){return this.range_.commonAncestorContainer};
_.X.compareBrowserRangeEndpoints=function(f,R,u){return this.range_.compareBoundaryPoints(u==1?R==1?_.Oe.Range.START_TO_START:_.Oe.Range.START_TO_END:R==1?_.Oe.Range.END_TO_START:_.Oe.Range.END_TO_END,f)};
_.X.isCollapsed=function(){return this.range_.collapsed};
_.X.select=function(f){this.selectInternal(p8(_.jF(this.range_.startContainer)).getSelection(),f)};
_.X.selectInternal=function(f){f.removeAllRanges();f.addRange(this.range_)};
_.X.insertNode=function(f,R){var u=this.range_.cloneRange();u.collapse(R);u.insertNode(f);u.detach();return f};
_.X.collapse=function(f){this.range_.collapse(f)};_.f6(re,dF);re.prototype.selectInternal=function(f,R){!R||this.isCollapsed()?re.superClass_.selectInternal.call(this,f,R):(f.collapse(this.range_.endContainer,this.range_.endOffset),f.extend(this.range_.startContainer,this.range_.startOffset))};_.f6(fa,dF);fa.prototype.compareBrowserRangeEndpoints=function(f,R,u){return fa.superClass_.compareBrowserRangeEndpoints.call(this,f,R,u)};
fa.prototype.selectInternal=function(f,R){R?f.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):f.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var h4A=function(f){return _.XA?new fa(f):_.co?new re(f):new dF(f)};var Nf=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Zvi;
_.f6(Nf,R4t);Zvi=function(f,R){var u=new Nf;u.browserRangeWrapper_=f;u.isReversed_=!!R;return u};
_.lWC=function(f){f=_.XA?new fa(cHA(f)):_.co?new re(cHA(f)):new dF(cHA(f));return Zvi(f)};
_.LJ=function(f,R,u,O){var c=new Nf;c.isReversed_=kTI(f,R,u,O);if(_.vR(f)&&!NU(f)){var h=f.parentNode;R=Array.prototype.indexOf.call(h.childNodes,f);f=h}_.vR(u)&&!NU(u)&&(h=u.parentNode,O=Array.prototype.indexOf.call(h.childNodes,u),u=h);c.isReversed_?(c.startNode_=u,c.startOffset_=O,c.endNode_=f,c.endOffset_=R):(c.startNode_=f,c.startOffset_=R,c.endNode_=u,c.endOffset_=O);return c};
_.X=Nf.prototype;_.X.clone=function(){var f=new Nf;f.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();f.startNode_=this.startNode_;f.startOffset_=this.startOffset_;f.endNode_=this.endNode_;f.endOffset_=this.endOffset_;f.isReversed_=this.isReversed_;return f};
_.X.JSC$9247_getType=function(){return"text"};
_.X.getBrowserRangeObject=function(){return bQ(this).range_};
_.X.getTextRangeCount=function(){return 1};
_.X.getTextRange=function(){return this};
var bQ=function(f){var R;if(!(R=f.browserRangeWrapper_)){R=f.JSC$9247_getStartNode();var u=f.JSC$9247_getStartOffset(),O=f.JSC$9247_getEndNode(),c=f.JSC$9247_getEndOffset();R=_.XA?new fa(X_l(R,u,O,c)):_.co?new re(X_l(R,u,O,c)):new dF(X_l(R,u,O,c));R=f.browserRangeWrapper_=R}return R};
_.X=Nf.prototype;_.X.getContainer=function(){return bQ(this).getContainer()};
_.X.JSC$9247_getStartNode=function(){return this.startNode_||(this.startNode_=bQ(this).range_.startContainer)};
_.X.JSC$9247_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=bQ(this).range_.startOffset};
_.X.JSC$9247_getEndNode=function(){return this.endNode_||(this.endNode_=bQ(this).range_.endContainer)};
_.X.JSC$9247_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=bQ(this).range_.endOffset};
_.X.isReversed=function(){return this.isReversed_};
_.X.JSC$9247_containsRange=function(f,R){if(f.JSC$9247_getType()=="text"){var u=bQ(this);f=bQ(f);R=R&&!f.isCollapsed();f=f.range_;u=R?u.compareBrowserRangeEndpoints(f,0,1)>=0&&u.compareBrowserRangeEndpoints(f,1,0)<=0:u.compareBrowserRangeEndpoints(f,0,0)>=0&&u.compareBrowserRangeEndpoints(f,1,1)<=0}else u=!1;return u};
_.X.isCollapsed=function(){return bQ(this).isCollapsed()};
_.X.JSC$9247_getText=function(){return bQ(this).range_.toString()};
_.X.__iterator__=function(){return new yJ(this.JSC$9247_getStartNode(),this.JSC$9247_getStartOffset(),this.JSC$9247_getEndNode(),this.JSC$9247_getEndOffset())};
_.X.select=function(){bQ(this).select(this.isReversed_)};
_.X.JSC$9247_removeContents=function(){var f=bQ(this).range_;f.extractContents();if(f.startContainer.hasChildNodes()&&(f=f.startContainer.childNodes[f.startOffset])){var R=f.previousSibling;Sek(f)==""&&_.Q1(f);R&&Sek(R)==""&&_.Q1(R)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.X.insertNode=function(f,R){f=bQ(this).insertNode(f,R);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return f};
_.X.collapse=function(f){f=this.isReversed()?!f:f;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(f);f?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var KxY=function(){};
_.f6(KxY,R4t);KxY.prototype.JSC$9247_containsRange=function(f,R){var u=CJ(this);f=CJ(f);return(R?nB:_.iqh)(f,function(O){return nB(u,function(c){return c.JSC$9247_containsRange(O,R)})})};
KxY.prototype.insertNode=function(f,R){R?_.bw(f,this.JSC$9247_getStartNode()):_.pp(f,this.JSC$9247_getEndNode());return f};var qJC,AHl=a0().JSC$7334_document_.documentElement;qJC=AHl.requestFullscreen?"fullscreenchange":AHl.webkitRequestFullscreen?"webkitfullscreenchange":AHl.mozRequestFullScreen?"mozfullscreenchange":AHl.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var aWH=function(){var f=a0().JSC$7334_document_;return!!(f.webkitIsFullScreen||f.mozFullScreen||f.msFullscreenElement||f.fullscreenElement)};var pJ=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.f6(pJ,KxY);_.X=pJ.prototype;_.X.clone=function(){var f=new pJ;f.browserRanges_=_.iB(this.browserRanges_);return f};
_.X.JSC$9247_getType=function(){return"mutli"};
_.X.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.X.getTextRangeCount=function(){return this.browserRanges_.length};
_.X.getTextRange=function(f){this.ranges_[f]||(this.ranges_[f]=Zvi(h4A(this.browserRanges_[f])));return this.ranges_[f]};
_.X.getContainer=function(){if(!this.container_){for(var f=[],R=this.getTextRangeCount(),u=0;u<R;u++)f.push(this.getTextRange(u).getContainer());this.container_=PBl.apply(null,f)}return this.container_};
var j7=function(f){f.sortedRanges_||(f.sortedRanges_=CJ(f),f.sortedRanges_.sort(function(R,u){var O=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();var c=u.JSC$9247_getStartNode();u=u.JSC$9247_getStartOffset();return O==c&&R==u?0:kTI(O,R,c,u)?1:-1}));
return f.sortedRanges_};
_.X=pJ.prototype;_.X.JSC$9247_getStartNode=function(){return j7(this)[0].JSC$9247_getStartNode()};
_.X.JSC$9247_getStartOffset=function(){return j7(this)[0].JSC$9247_getStartOffset()};
_.X.JSC$9247_getEndNode=function(){return _.Ue(j7(this)).JSC$9247_getEndNode()};
_.X.JSC$9247_getEndOffset=function(){return _.Ue(j7(this)).JSC$9247_getEndOffset()};
_.X.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.X.JSC$9247_getText=function(){return CJ(this).map(function(f){return f.JSC$9247_getText()}).join("")};
_.X.__iterator__=function(){return new D$(this)};
_.X.select=function(){var f=this.getWindow().getSelection();f.removeAllRanges();for(var R=this.getTextRangeCount(),u=0;u<R;u++)f.addRange(this.getTextRange(u).getBrowserRangeObject())};
_.X.JSC$9247_removeContents=function(){CJ(this).forEach(function(f){f.JSC$9247_removeContents()})};
_.X.collapse=function(f){if(!this.isCollapsed()){var R=f?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;R.collapse(f);this.ranges_=[R];this.sortedRanges_=[R];this.browserRanges_=[R.getBrowserRangeObject()]}};
var D$=function(f){this.iterators_=null;this.currentIdx_=0;f&&(this.iterators_=j7(f).map(function(R){return _.JsA(R)}));
tO.call(this,f?this.JSC$9253_getStartNode():null,!1,!0)};
_.f6(D$,uaY);_.X=D$.prototype;_.X.JSC$9253_getStartNode=function(){return this.iterators_[0].JSC$9253_getStartNode()};
_.X.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.X.next=function(){for(;this.currentIdx_<this.iterators_.length;){var f=this.iterators_[this.currentIdx_],R=f.next();if(R.done)this.currentIdx_++;else return Er(this,f.node,f.tagType,f.depth),R}return u0};
_.X.JSC$9245_copyFrom=function(f){this.iterators_=_.iB(f.iterators_);D$.superClass_.JSC$9245_copyFrom.call(this,f)};
_.X.clone=function(){var f=new D$(null);f.JSC$9245_copyFrom(this);return f};var Fxk,kTI;_.Qo=function(){var f=window.getSelection();return f&&Fxk(f)};
Fxk=function(f){var R=!1;if(f.createRange)try{var u=f.createRange()}catch(c){return null}else if(f.rangeCount){if(f.rangeCount>1){u=new pJ;R=f.rangeCount;for(var O=0;O<R;O++)u.browserRanges_.push(f.getRangeAt(O));return u}u=f.getRangeAt(0);R=kTI(f.anchorNode,f.anchorOffset,f.focusNode,f.focusOffset)}else return null;return Zvi(h4A(u),R)};
_.JO=function(f,R){return _.LJ(f,R,f,R)};
_.zp=function(f,R,u,O){return _.LJ(f,R,u,O)};
kTI=function(f,R,u,O){if(f==u)return O<R;var c;if(f.nodeType==1&&R)if(c=f.childNodes[R])f=c,R=0;else if(_.er(f,u))return!0;if(u.nodeType==1&&O)if(c=u.childNodes[O])u=c,O=0;else if(_.er(u,f))return!1;return(Mtk(f,u)||R-O)>0};var Tp=function(){_.mq.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.NG)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.NG)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.NG)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.NG)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.NG)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.NG)(this.dispatchProgressEvent_,this)};
_.f6(Tp,_.mq);Tp.prototype.abort=function(){try{this.reader_.abort()}catch(f){throw new M0k(f,"aborting read");}};
Tp.prototype.getError=function(){return this.reader_.error&&new M0k(this.reader_.error,"reading file")};
Tp.prototype.dispatchProgressEvent_=function(f){this.dispatchEvent(new Ptl(f,this))};
Tp.prototype.disposeInternal=function(){Tp.superClass_.disposeInternal.call(this);delete this.reader_};
var m5A=function(f){var R=new Tp,u=w_F(R);R.reader_.readAsArrayBuffer(f);return u},QpY=function(f){var R=new Tp,u=w_F(R);
R.reader_.readAsDataURL(f);return u},w_F=function(f){var R=new G0;
f.listen("loadend",_.mx(function(u,O){var c=O.reader_.result,h=O.getError();c==null||h?u.errback(h):u.callback(c);O.dispose()},R,f));
return R};var He=function(){_.mq.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9287_eventHandler_=new _.uE(this);this.JSC$9287_isInitialized_=!1};
_.f6(He,_.mq);var Wxi=new _.Kd("d"),EEG=new _.Kd("beforedragstart"),tak=new _.Kd("dragstart"),Clk=new _.Kd("beforedragmove"),yHH=new _.Kd("dragmove"),d5E=new _.Kd("beforedragend"),NAC=new _.Kd("dragend"),Lxt=new _.Kd("e");He.prototype.isDragging=function(){return!!this.JSC$9287_dragger_};
var bvA=function(f,R){R.dlgGrowthDirection_=0;R.dlgDragHoverClass_=void 0;R.dlgDragPermission=0;f.dragLists_.push(R)},p_H=function(f,R){f.getHandleForDragItem_=R};
He.prototype.init=function(){if(!this.JSC$9287_isInitialized_){for(var f=this.dragLists_.length,R=0;R<f;R++)for(var u=_.jA(this.dragLists_[R]),O=u.length,c=0;c<O;++c){var h=u[c],l=this.getHandleForDragItem_(h),K=_.cG(l);this.dragItemForHandle_[K]=h;this.dragItemHoverClasses_&&(this.JSC$9287_eventHandler_.listen(h,"mouseover",this.handleDragItemMouseover_),this.JSC$9287_eventHandler_.listen(h,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9287_eventHandler_.listen(l,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9287_eventHandler_.listen(l,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(h);this.JSC$9287_eventHandler_.listen(l,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9287_isInitialized_=!0}};
He.prototype.disposeInternal=function(){this.JSC$9287_eventHandler_.dispose();for(var f=this.dragLists_.length,R=0;R<f;R++){var u=this.dragLists_[R];u.dlgGrowthDirection_=void 0;u.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;jpf(this);He.superClass_.disposeInternal.call(this)};
var D5Y=function(f,R){for(var u=f.dragLists_.length,O=0;O<u;O++){var c=f.dragLists_[O];c.dlgBounds_=DSX(c)}u=f.dragItems_.length;for(O=0;O<u;O++)c=f.dragItems_[O],c!=R&&(c.dlgBounds_=DSX(c))};
_.X=He.prototype;
_.X.handlePotentialDragStart_=function(f){var R=_.cG(f.currentTarget);R=this.dragItemForHandle_[R];if(R.parentElement.dlgDragPermission!=2){this.currDragItem_=R;a:{R=this.currDragItem_;for(var u=R.cloneNode(!0),O=Wi("TEXTAREA",R),c=Wi("TEXTAREA",u),h=0;h<O.length;h++)c[h].value=O[h].value;switch(R.tagName){case "TR":R=_.yO("TABLE",null,_.yO("TBODY",null,u));break a;case "TD":case "TH":R=_.yO("TABLE",null,_.yO("TBODY",null,_.yO("TR",null,u)));break a;case "TEXTAREA":u.value=R.value;default:R=u;break a}R=
void 0}this.draggerEl_=R;this.draggerElClasses_&&UF(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.jF(this.currDragItem_).body.appendChild(this.draggerEl_);u=_.J5(this.currDragItem_);R=this.draggerEl_;O=_.J5(R);if(u instanceof _.b_){var l=u.y;u=u.x}HI(R,R.offsetLeft+(u-O.x),R.offsetTop+(Number(l)-O.y));this.JSC$9287_dragger_=new _.Tt(this.draggerEl_);_.I1f(this.JSC$9287_dragger_,this.hysteresisDistance_);
_.y0(this.JSC$9287_dragger_,"start",this.handleDragStart_,!1,this);_.y0(this.JSC$9287_dragger_,"end",this.handleDragEnd_,!1,this);_.y0(this.JSC$9287_dragger_,"earlycancel",this.JSC$9289_cleanup_,!1,this);this.dispatchEvent(new Ib(Wxi,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9287_dragger_));this.JSC$9287_dragger_.startDrag(f)}};
_.X.handleDragStart_=function(f){if(this.dispatchEvent(new Ib(EEG,this,f.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.T7I(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?UF(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var R=Yef(this.draggerEl_);this.draggerEl_.halfWidth=R.width/2;this.draggerEl_.halfHeight=R.height/2;R=this.draggerEl_.getBoundingClientRect();
var u=f.clientY,O=MNt(this.JSC$9287_dragger_,f.clientX);if(O>R.right){var c=this.currDragItem_.getBoundingClientRect();this.JSC$9287_dragger_.deltaX=O-(O-c.left)/c.width*R.width}u=P4F(this.JSC$9287_dragger_,u);u>R.bottom&&(this.JSC$9287_dragger_.deltaY+=u-R.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";D5Y(this,this.currDragItem_);this.currDragItem_.style.display="";_.y0(this.JSC$9287_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ib(tak,
this,f.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9287_dragger_))}else f.preventDefault(),this.JSC$9289_cleanup_()};
_.X.handleDragMove_=function(f){var R=_.J5(this.draggerEl_);R=new _.b_(R.x+this.draggerEl_.halfWidth,R.y+this.draggerEl_.halfHeight);a:{var u=null;if(this.currDragItem_.style.display!="none"){u=this.currDragItem_.parentNode;var O=DSX(u);if(JHH(R,O))break a}O=this.dragLists_.length;for(var c=0;c<O;c++){var h=this.dragLists_[c];if(h!=u&&JHH(R,h.dlgBounds_)){u=h;break a}}u=null}if(u){if(u==null)throw Error("Td");O=0;c=!1;h=void 0;switch(u.dlgGrowthDirection_){case 0:O=R.y;var l=z4E;var K=TAk;break;case 4:c=
!0;case 2:O=R.x;l=Hvk;K=TAk;break;case 5:c=!0;case 3:O=R.x,l=IWk,K=MaE}for(var q=null,F,w=_.jA(u),m=w.length,W=0;W<m;W++){var C=w[W];if(C!=this.currDragItem_){var d=l(C.dlgBounds_);if(c){var p=PlI(C,R);h===void 0&&(h=p);K(O,d)&&(F==void 0||p<h||p==h&&(K(d,F)||d==F))&&(q=C,F=d);p<h&&(h=p)}else K(O,d)&&(F==void 0||K(d,F))&&(q=C,F=d)}}l=q!==null&&PlI(q,R)>h?null:q}else l=null;if(!this.dispatchEvent(new Ib(Clk,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9287_dragger_,R,u,l)))return!1;if(u&&u.dlgDragPermission!=
1)this.currDragItem_.parentNode==u&&_.T7I(this.currDragItem_)==l||u.insertBefore(this.currDragItem_,l),this.currDragItem_.style.display="",u.dlgDragHoverClass_&&_.sx(u,u.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",K=this.dragLists_.length,F=0;F<K;F++)O=this.dragLists_[F],O.dlgDragHoverClass_&&_.$r(O,O.dlgDragHoverClass_);u!=this.currHoverList_&&(this.currHoverList_=u,D5Y(this,this.currDragItem_));this.dispatchEvent(new Ib(yHH,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9287_dragger_,
R,u,l));return!1};
_.X.JSC$9289_cleanup_=function(){jpf(this);this.JSC$9287_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var f=this.dragLists_.length,R=0;R<f;R++)this.dragLists_[R].dlgBounds_=null;f=this.dragItems_.length;for(R=0;R<f;R++)this.dragItems_[R].dlgBounds_=null};
_.X.handleDragEnd_=function(f){if(!this.dispatchEvent(new Ib(d5E,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9287_dragger_)))return!1;jpf(this);this.dispatchEvent(new Ib(NAC,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9287_dragger_));this.JSC$9289_cleanup_();return!0};
var jpf=function(f){_.YD(f.JSC$9287_dragger_);var R=f.draggerEl_&&f.draggerEl_.parentElement;f.draggerEl_&&_.Q1(f.draggerEl_);f.currDragItem_&&f.currDragItem_.style.display=="none"&&(f.origList_.insertBefore(f.currDragItem_,f.origNextItem_),f.currDragItem_.style.display="");f.currDragItemClasses_&&f.currDragItem_?MWE(f.currDragItem_,f.currDragItemClasses_||[]):f.currDragItem_&&(f.currDragItem_.style.visibility="");for(var u=f.dragLists_.length,O=0;O<u;O++){var c=f.dragLists_[O];c.dlgDragHoverClass_&&
_.$r(c,c.dlgDragHoverClass_)}R&&f.dispatchEvent(new Ib(Lxt,f,null,f.currDragItem_,f.draggerEl_,f.JSC$9287_dragger_))};
_.X=He.prototype;_.X.getHandleForDragItem_=function(f){return f};
_.X.handleDragItemMouseover_=function(f){UF(f.currentTarget,this.dragItemHoverClasses_||[])};
_.X.handleDragItemMouseout_=function(f){MWE(f.currentTarget,this.dragItemHoverClasses_||[])};
_.X.handleDragItemHandleMouseover_=function(f){UF(f.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.X.handleDragItemHandleMouseout_=function(f){MWE(f.currentTarget,this.dragItemHandleHoverClasses_||[])};
var JHH=function(f,R){return f.x>R.left&&f.x<R.left+R.width&&f.y>R.top&&f.y<R.top+R.height},PlI=function(f,R){f=f.dlgBounds_;
return Math.abs(R.y-(f.top+(f.height-1)/2))},z4E=function(f){return f.top+f.height-1},Hvk=function(f){return f.left+f.width-1},IWk=function(f){return f.left||0},TAk=function(f,R){return f<R},MaE=function(f,R){return f>R},Ib=function(f,R,u,O,c,h){_.qZ.call(this,f);
this.event=u;this.currDragItem=O;this.draggerEl=c;this.JSC$9291_dragger=h};
_.f6(Ib,_.qZ);_.f6(Om,_.d9);var U5G=new _.b_(0,0);Om.prototype.JSC$9295_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Om.prototype.JSC$9295_onMouseMove=function(f){var R=this.containerIsActuallyContent_?U5G:A5(a0(this.containerNode_)),u=this.horizontalScrolling_?this.calculateScrollDelta(f.clientX+R.x,this.scrollBounds_.left,this.scrollBounds_.width):0,O=this.calculateScrollDelta(f.clientY+R.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=u;this.scrollDelta_.y=O;!(u=!u&&!O)&&(u=this.constrainScroll_)&&(u=f.clientX+R.x,f=f.clientY+R.y,R=this.containerBounds_,u=!(R.left<=u&&R.left+R.width>=
u&&R.top<=f&&R.top+R.height>=f));u?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Om.prototype.calculateScrollDelta=function(f,R,u){var O=0;f<R?O=-8:f>R+u&&(O=8);return O};
Om.prototype.disposeInternal=function(){Om.superClass_.disposeInternal.call(this);this.JSC$9293_eventHandler_.dispose();this.scrollTimer_.dispose()};var e4E={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"}}},Mf=e4E;Mf=e4E;var Pe={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 GTl=function(){},BW=function(f){if(typeof f=="number"){var R=new GTl;
R.standardOffset_=f;var u=f;if(u==0)u="Etc/GMT";else{var O=["Etc/GMT",u<0?"-":"+"];u=Math.abs(u);O.push(Math.floor(u/60)%100);u%=60;u!=0&&O.push(":",_.rZ(u,2));u=O.join("")}R.timeZoneId_=u;u=f;u==0?u="UTC":(O=["UTC",u<0?"+":"-"],u=Math.abs(u),O.push(Math.floor(u/60)%100),u%=60,u!=0&&O.push(":",u),u=O.join(""));f=BAY(f);R.tzNames_=[u,u];R.tzNamesExt_={STD_LONG_NAME_GMT:f,STD_GENERIC_LOCATION:f};R.transitions_=[];return R}R=new GTl;R.timeZoneId_=f.id;R.standardOffset_=-f.std_offset;R.tzNames_=f.names;
R.tzNamesExt_=f.names_ext;R.transitions_=f.transitions;return R},BAY=function(f){var R=["GMT"];
R.push(f<=0?"+":"-");f=Math.abs(f);R.push(_.rZ(Math.floor(f/60)%100,2),":",_.rZ(f%60,2));return R.join("")},oEf=function(f,R){R=Date.UTC(R.getUTCFullYear(),R.getUTCMonth(),R.getUTCDate(),R.getUTCHours(),R.getUTCMinutes())/36E5;
for(var u=0;u<f.transitions_.length&&R>=f.transitions_[u];)u+=2;return u==0?0:f.transitions_[u-1]},x5H=function(f,R){f=f.standardOffset_-oEf(f,R);
return f===-1440?0:f};var oL=function(f,R){this.patternParts_=[];this.JSC$9306_dateTimeSymbols_=R||yo;typeof f=="number"?SJG(this,f):$5H(this,f)},gEE=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Ur=function(f){return f.getHours?f.getHours():0},$5H=function(f,R){for(iNB&&(R=R.replace(/\u200f/g,""));R;){for(var u=R,O=0;O<gEE.length;++O){var c=R.match(gEE[O]);
if(c){var h=c[0];R=R.substring(h.length);O==0&&(h=="''"?h="'":(h=h.substring(1,c[1]=="'"?h.length-1:h.length),h=h.replace(/''/g,"'")));f.patternParts_.push({text:h,type:O});break}}if(u===R)throw Error("Ud`"+R);}};
oL.prototype.format=function(f,R){if(!f)throw Error("Vd");var u=R?(f.getTimezoneOffset()-x5H(R,f))*6E4:0,O=u?new Date(f.getTime()+u):f,c=O;R&&O.getTimezoneOffset()!=f.getTimezoneOffset()&&(O=new Date(O.getTime()+(O.getTimezoneOffset()-f.getTimezoneOffset())*6E4),c=new Date(f.getTime()+(u+(u>0?-864E5:864E5))));u=[];for(var h=0;h<this.patternParts_.length;++h){var l=this.patternParts_[h].text;1==this.patternParts_[h].type?u.push(spY(this,l,f,O,c,R)):u.push(l)}return u.join("")};
var SJG=function(f,R){if(R<4)var u=f.JSC$9306_dateTimeSymbols_.DATEFORMATS[R];else if(R<8)u=f.JSC$9306_dateTimeSymbols_.TIMEFORMATS[R-4];else if(R<12)u=f.JSC$9306_dateTimeSymbols_.DATETIMEFORMATS[R-8],u=u.replace("{1}",f.JSC$9306_dateTimeSymbols_.DATEFORMATS[R-8]),u=u.replace("{0}",f.JSC$9306_dateTimeSymbols_.TIMEFORMATS[R-8]);else if(R===12)u=f.JSC$9306_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(R===13)u=f.JSC$9306_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{SJG(f,10);return}$5H(f,u)},e7=function(f,R){R=String(R);
f=f.JSC$9306_dateTimeSymbols_||yo;if(f.ZERODIGIT!==void 0&&!vhq){for(var u=[],O=0;O<R.length;O++){var c=R.charCodeAt(O);u.push(48<=c&&c<=57?String.fromCharCode(f.ZERODIGIT+c-48):R.charAt(O))}R=u.join("")}return R},vhq=!1,iNB=!1,Vaf=function(f,R,u,O){u=u.getFullYear();
u<=0&&O&&(u=1-u);return e7(f,nEE(u,R))},nEE=function(f,R){R==2&&(f%=100);
f<0&&R++;return _.rZ(f,R)},Gp=function(f){if(!(f.getHours&&f.getSeconds&&f.getMinutes))throw Error("Wd");
},YJI=function(f,R){Gp(R);
R=Ur(R);return f.JSC$9306_dateTimeSymbols_.AMPMS[R>=12&&R<24?1:0]},spY=function(f,R,u,O,c,h){var l=R.length;
switch(R.charAt(0)){case "G":return u=O.getFullYear()>0?1:0,l>=4?f.JSC$9306_dateTimeSymbols_.ERANAMES[u]:f.JSC$9306_dateTimeSymbols_.ERAS[u];case "y":return Vaf(f,l,O,!0);case "Y":return u=(new Date(iaH(O.getFullYear(),O.getMonth(),O.getDate(),f.JSC$9306_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,f.JSC$9306_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),l==2&&(u%=100),e7(f,nEE(u,l));case "u":return Vaf(f,l,O,!1);case "M":a:switch(u=O.getMonth(),l){case 5:l=f.JSC$9306_dateTimeSymbols_.NARROWMONTHS[u];break a;
case 4:l=f.JSC$9306_dateTimeSymbols_.MONTHS[u];break a;case 3:l=f.JSC$9306_dateTimeSymbols_.SHORTMONTHS[u];break a;default:l=e7(f,_.rZ(u+1,l))}return l;case "k":return Gp(c),e7(f,_.rZ(Ur(c)||24,l));case "S":return e7(f,(c.getMilliseconds()/1E3).toFixed(Math.min(3,l)).slice(2)+(l>3?_.rZ(0,l-3):""));case "E":return u=O.getDay(),l>=4?f.JSC$9306_dateTimeSymbols_.WEEKDAYS[u]:f.JSC$9306_dateTimeSymbols_.SHORTWEEKDAYS[u];case "a":return YJI(f,c);case "b":return YJI(f,c);case "B":return YJI(f,c);case "h":return Gp(c),
e7(f,_.rZ(Ur(c)%12||12,l));case "K":return Gp(c),e7(f,_.rZ(Ur(c)%12,l));case "H":return Gp(c),e7(f,_.rZ(Ur(c),l));case "c":a:switch(u=O.getDay(),l){case 5:l=f.JSC$9306_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[u];break a;case 4:l=f.JSC$9306_dateTimeSymbols_.STANDALONEWEEKDAYS[u];break a;case 3:l=f.JSC$9306_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[u];break a;default:l=e7(f,_.rZ(u,1))}return l;case "L":a:switch(u=O.getMonth(),l){case 5:l=f.JSC$9306_dateTimeSymbols_.STANDALONENARROWMONTHS[u];break a;
case 4:l=f.JSC$9306_dateTimeSymbols_.STANDALONEMONTHS[u];break a;case 3:l=f.JSC$9306_dateTimeSymbols_.STANDALONESHORTMONTHS[u];break a;default:l=e7(f,_.rZ(u+1,l))}return l;case "Q":return u=Math.floor(O.getMonth()/3),l<4?f.JSC$9306_dateTimeSymbols_.SHORTQUARTERS[u]:f.JSC$9306_dateTimeSymbols_.QUARTERS[u];case "d":return e7(f,_.rZ(O.getDate(),l));case "m":return Gp(c),e7(f,_.rZ(c.getMinutes?c.getMinutes():0,l));case "s":return Gp(c),e7(f,_.rZ(c.getSeconds(),l));case "v":return(h||BW(u.getTimezoneOffset())).timeZoneId_;
case "V":return f=h||BW(u.getTimezoneOffset()),l<=2?f.timeZoneId_:oEf(f,u)>0?f.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?f.tzNamesExt_.DST_GENERIC_LOCATION:f.tzNamesExt_.DST_GENERIC_LOCATION:f.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?f.tzNamesExt_.STD_GENERIC_LOCATION:f.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return u=iaH(c.getFullYear(),c.getMonth(),c.getDate(),f.JSC$9306_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,f.JSC$9306_dateTimeSymbols_.FIRSTDAYOFWEEK),e7(f,_.rZ(Math.floor(Math.round((u-(new Date((new Date(u)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,l));case "z":return f=h||BW(u.getTimezoneOffset()),l<4?f.tzNames_[oEf(f,u)>0?2:0]:f.tzNames_[oEf(f,u)>0?3:1];case "Z":return R=h||BW(u.getTimezoneOffset()),l<4?(l=-x5H(R,u),f=[l<0?"-":"+"],l=Math.abs(l),f.push(_.rZ(Math.floor(l/60)%100,2),_.rZ(l%60,2)),l=f.join("")):l=e7(f,BAY(x5H(R,u))),l;default:return""}};var vEi=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,ivk=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,h$P=function(f){this.patternParts_=[];this.JSC$9315_dateTimeSymbols_=yo;if(typeof f=="number"){f>11&&(f=10);if(f<4)var R=this.JSC$9315_dateTimeSymbols_.DATEFORMATS[f];else f<8?R=this.JSC$9315_dateTimeSymbols_.TIMEFORMATS[f-4]:(R=this.JSC$9315_dateTimeSymbols_.DATETIMEFORMATS[f-8],R=R.replace("{1}",this.JSC$9315_dateTimeSymbols_.DATEFORMATS[f-8]),R=R.replace("{0}",this.JSC$9315_dateTimeSymbols_.TIMEFORMATS[f-
8]));rHf(this,R)}else rHf(this,f)},rHf=function(f,R){for(var u=!1,O="",c=0;c<R.length;c++){var h=R.charAt(c);
if(vEi.test(h))for(O.length>0&&(f.patternParts_.push({text:O,count:0,abutStart:!1,numeric:!1}),O=""),f.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});c<R.length-1&&R.charAt(c+1)==" ";)c++;else if(u)h=="'"?c+1<R.length&&R.charAt(c+1)=="'"?(O+="'",c++):u=!1:O+=h;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(h)>=0){O.length>0&&(f.patternParts_.push({text:O,count:0,abutStart:!1,numeric:!1}),O="");for(var l=R.charAt(c),K=c+1;K<R.length&&R.charAt(K)==l;)K++;l=K-c;l<=0?K=!1:(K="MydhHmsSDkK".indexOf(h),
K=K>0||K==0&&l<3);f.patternParts_.push({text:h,count:l,abutStart:!1,numeric:K});c+=l-1}else h=="'"?c+1<R.length&&R.charAt(c+1)=="'"?(O+="'",c++):u=!0:O+=h}O.length>0&&f.patternParts_.push({text:O,count:0,abutStart:!1,numeric:!1});R=!1;for(u=0;u<f.patternParts_.length;u++)f.patternParts_[u].numeric?!R&&u+1<f.patternParts_.length&&f.patternParts_[u+1].numeric&&(R=!0,f.patternParts_[u].abutStart=!0):R=!1};
h$P.prototype.parse=function(f,R,u){var O=!1,c=!1;u&&(O=u.predictive||!1,c=u.validate||!1);if(O)for(u=0;u<this.patternParts_.length;u++){var h=this.patternParts_[u];if(h.count>0&&("abBhHkKm".indexOf(h.text.charAt(0))<0||h.count>2||h.abutStart))throw Error("Xd`"+h.text.charAt(0));}h=new fHI;u=[0];h.dayPeriodIndex=-1;for(var l=0;l<this.patternParts_.length&&!(O&&u[0]>=f.length);l++){if(this.patternParts_[l].count==0){a:{var K=f;var q=u,F=this.patternParts_[l],w=O;if(F.text.match(vEi)!=null){if(F=q[0],
RjY(K,q),q[0]>F){K=!0;break a}}else{if(K.indexOf(F.text,q[0])==q[0]){q[0]+=F.text.length;K=!0;break a}if(w&&F.text.indexOf(K.substring(q[0]))==0){q[0]+=K.length-q[0];K=!0;break a}}K=!1}if(K)continue;return 0}if(this.patternParts_[l].abutStart){a:{q=f;F=u;w=l;var m=F[0],W=0;for(K=w;K<this.patternParts_.length;K++){var C=this.patternParts_[K],d=C.count;if(d===0)break;if(K==w&&(d-=W,W++,d==0)){K=0;break a}var p=K>w&&C.numeric,J=F[0];if(!uXI(this,q,F,C,d,h,!1)||p&&F[0]-J<d)K=w-1,F[0]=m}K-=w}if(K<=0)return 0;
l+=K-1}else if(!uXI(this,f,u,this.patternParts_[l],0,h,O))return 0}a:{f=c;if(R==null)throw Error("Yd");h.era!=void 0&&h.year!=void 0&&h.era==0&&h.year>0&&(h.year=-(h.year-1));h.year!=void 0&&R.setFullYear(h.year);O=R.getDate();R.setDate(1);h.month!=void 0&&R.setMonth(h.month);h.day!=void 0?R.setDate(h.day):(c=IUe(R.getFullYear(),R.getMonth()),R.setDate(O>c?c:O));typeof R.setHours==="function"&&(h.hours==void 0&&(h.hours=R.getHours()),h.hours<12&&(h.ampm!=void 0&&h.ampm>0?h.hours+=12:h.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(h.dayPeriodName)||["night1","night2"].includes(h.dayPeriodName)&&h.hours>=6)&&(h.hours+=12)),R.setHours(h.hours));typeof R.setMinutes==="function"&&h.minutes!=void 0&&R.setMinutes(h.minutes);typeof R.setSeconds==="function"&&h.seconds!=void 0&&R.setSeconds(h.seconds);typeof R.setMilliseconds==="function"&&h.milliseconds!=void 0&&R.setMilliseconds(h.milliseconds);if(f&&(h.year&&h.year!=R.getFullYear()||h.month&&h.month!=
R.getMonth()||h.day&&h.day!=R.getDate()||h.hours&&h.hours>=24||h.minutes&&h.minutes>=60||h.seconds&&h.seconds>=60||h.milliseconds&&h.milliseconds>=1E3))R=!1;else{h.tzOffset!=void 0&&R.setTime(R.getTime()+(h.tzOffset-R.getTimezoneOffset())*60*1E3);h.ambiguousYear&&(f=new Date,f.setFullYear(f.getFullYear()-80),R.getTime()<f.getTime()&&R.setFullYear(f.getFullYear()+100));if(h.dayOfWeek!=void 0)if(h.day==void 0)h=(7+h.dayOfWeek-R.getDay())%7,h>3&&(h-=7),f=R.getMonth(),R.setDate(R.getDate()+h),R.getMonth()!=
f&&R.setDate(R.getDate()+(h>0?-7:7));else if(h.dayOfWeek!=R.getDay()){R=!1;break a}R=!0}}return R?u[0]:0};
var uXI=function(f,R,u,O,c,h,l){RjY(R,u);if(O.numeric&&c>0&&u[0]+c>R.length)return!1;switch(O.text.charAt(0)){case "G":return Be(R,u,[f.JSC$9315_dateTimeSymbols_.ERAS],function(K){return h.era=K}),!0;
case "M":case "L":return OgC(f,R,u,c,O,h);case "E":return Be(R,u,[f.JSC$9315_dateTimeSymbols_.WEEKDAYS,f.JSC$9315_dateTimeSymbols_.SHORTWEEKDAYS],function(K){return h.dayOfWeek=K});
case "B":case "b":return c=[],f=[[].concat(f.JSC$9315_dateTimeSymbols_.AMPMS)],c.push("isAm"),c.push("isPm"),R=Be(R,u,f,function(K){return h.dayPeriodIndex=K},l),h.dayPeriodName=c[h.dayPeriodIndex],l?R:!0;
case "a":return R=Be(R,u,[f.JSC$9315_dateTimeSymbols_.AMPMS],function(K){return h.ampm=K},l),l?R:!0;
case "y":return chf(f,R,u,O,c,h);case "Q":return Be(R,u,[f.JSC$9315_dateTimeSymbols_.QUARTERS,f.JSC$9315_dateTimeSymbols_.SHORTQUARTERS],function(K){h.month=K*3;h.day=1});
case "d":return ob(f,R,u,O,c,function(K){h.day=K}),!0;
case "S":return XWA(f,R,u,c,h);case "h":case "K":case "H":case "k":return R=ob(f,R,u,O,c,function(K){h.hours=O.text.charAt(0)==="h"&&K===12?0:K},l),l?R:!0;
case "m":return R=ob(f,R,u,O,c,function(K){h.minutes=K},l),l?R:!0;
case "s":return ob(f,R,u,O,c,function(K){h.seconds=K}),!0;
case "z":case "Z":case "v":return hjC(f,R,u,h);default:return!1}},chf=function(f,R,u,O,c,h){var l=u[0];
c=xP(f,R,u,c);c===null&&(c=xP(f,R,u,0,!0));if(c===null)return!1;c>=0&&u[0]-l==2&&O.count==2?(f=c,R=(new Date).getFullYear()-80,u=R%100,h.ambiguousYear=f==u,f+=Math.floor(R/100)*100+(f<u?100:0),h.year=f):h.year=c;return!0},OgC=function(f,R,u,O,c,h){return c.numeric&&ob(f,R,u,c,O,function(l){h.month=l-1})?!0:Be(R,u,[f.JSC$9315_dateTimeSymbols_.MONTHS,
f.JSC$9315_dateTimeSymbols_.STANDALONEMONTHS,f.JSC$9315_dateTimeSymbols_.SHORTMONTHS,f.JSC$9315_dateTimeSymbols_.STANDALONESHORTMONTHS],function(l){h.month=l})},XWA=function(f,R,u,O,c){var h=u[0];
f=xP(f,R,u,O);if(f===null)return!1;u=u[0]-h;c.milliseconds=u<3?f*Math.pow(10,3-u):Math.round(f/Math.pow(10,u-3));return!0},hjC=function(f,R,u,O){R.indexOf("GMT",u[0])==u[0]&&(u[0]+=3);
if(u[0]>=R.length)return O.tzOffset=0,!0;var c=u[0],h=xP(f,R,u,0,!0);if(h===null)return!1;if(u[0]<R.length&&R.charAt(u[0])==":"){var l=h*60;u[0]++;h=xP(f,R,u,0);if(h===null)return!1;l+=h}else l=h,l=l<24&&u[0]-c<=3?l*60:l%100+l/100*60;O.tzOffset=-l;return!0},ob=function(f,R,u,O,c,h,l){l=l||!1;
var K=u[0];f=xP(f,R,u,c);if(f===null)return!1;if(l&&u[0]-K<O.count){if(u[0]<R.length)return!1;f*=Math.pow(10,O.count-(u[0]-K))}h(f);return!0},Be=function(f,R,u,O,c){c=c||!1;
for(var h,l=0;l<u.length;l++){h=R;for(var K=u[l],q=c,F=0,w=null,m=f.substring(h[0]).toLowerCase(),W=0;W<K.length;W++){var C=K[W].toLowerCase();if(q&&C.indexOf(m)==0){F=m.length;w=W;break}K[W].length>F&&m.indexOf(C)==0&&(F=K[W].length,w=W)}w!==null&&(h[0]+=F);h=w;if(h!==null)return O(h),!0}return!1},RjY=function(f,R){(f=f.substring(R[0]).match(ivk))&&(R[0]+=f[0].length)},xP=function(f,R,u,O,c){R=O>0?R.substring(0,u[0]+O):R;
c=c||!1;if(f.JSC$9315_dateTimeSymbols_.ZERODIGIT){O=[];for(var h=u[0];h<R.length;h++){var l=R.charCodeAt(h)-f.JSC$9315_dateTimeSymbols_.ZERODIGIT;O.push(0<=l&&l<=9?String.fromCharCode(l+48):R.charAt(h))}R=O.join("")}else R=R.substring(u[0]);f=R.match(new RegExp("^"+(c?"[+-]?":"")+"\\d+"));if(!f)return null;u[0]+=f[0].length;return parseInt(f[0],10)},fHI=function(){};
fHI.prototype.ambiguousYear=!1;_.ZgF={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 lHi={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"},kef=lHi,KBF=lHi;KBF=kef=lHi;var AhA,S7,gF,NLh,$P,qPt;
_.UP=function(f,R,u,O){var c;if(c=R){a:if(R&&R.length===3){for(c=0;c<3;c++){var h=R[c];if(h<"A"||h>"Z"&&h<"a"||h>"z"){c=!1;break a}}c=!0}else c=!1;c=!c}if(c)throw new TypeError("Zd");this.intlCurrencyCode_=R?R.toUpperCase():null;this.currencyStyle_=u||0;this.overrideNumberFormatSymbols_=O||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_=S7(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof f==="number")switch(f){case 1:$P(this,S7(this).DECIMAL_PATTERN);break;case 2:$P(this,S7(this).SCIENTIFIC_PATTERN);break;case 3:$P(this,S7(this).PERCENT_PATTERN);break;case 4:f=S7(this).CURRENCY_PATTERN;R=["0"];if(u=
Pe[gF(this)]){u=u[0]&7;if(u>0)for(R.push("."),O=0;O<u;O++)R.push("0");f=f.replace(/0.00/g,R.join(""))}$P(this,f);break;case 5:qPt(this,1);break;case 6:qPt(this,2);break;default:throw Error("be");}else $P(this,f)};
AhA=!1;S7=function(f){return f.overrideNumberFormatSymbols_||(AhA?KBF:kef)};
gF=function(f){return f.intlCurrencyCode_||S7(f).DEF_CURRENCY_CODE};
NLh=function(f,R){if(R>308)throw Error("ae`"+R);f.maximumFractionDigits_=R;return f};
$P=function(f,R){var u=[0];f.positivePrefix_=aHY(f,R,u);for(var O=u[0],c=-1,h=0,l=0,K=0,q=-1,F=R.length,w=!0;u[0]<F&&w;u[0]++)switch(R.charAt(u[0])){case "#":l>0?K++:h++;q>=0&&c<0&&q++;break;case "0":if(K>0)throw Error("he`"+R);l++;q>=0&&c<0&&q++;break;case ",":q>0&&f.groupingArray_.push(q);q=0;break;case ".":if(c>=0)throw Error("ie`"+R);c=h+l+K;break;case "E":if(f.useExponentialNotation_)throw Error("je`"+R);f.useExponentialNotation_=!0;f.minExponentDigits_=0;u[0]+1<F&&R.charAt(u[0]+1)=="+"&&(u[0]++,
f.useSignForPositiveExponent_=!0);for(;u[0]+1<F&&R.charAt(u[0]+1)=="0";)u[0]++,f.minExponentDigits_++;if(h+l<1||f.minExponentDigits_<1)throw Error("ke`"+R);w=!1;break;default:u[0]--,w=!1}l==0&&h>0&&c>=0&&(l=c,l==0&&l++,K=h-l,h=l-1,l=1);if(c<0&&K>0||c>=0&&(c<h||c>h+l)||q==0)throw Error("le`"+R);K=h+l+K;f.maximumFractionDigits_=c>=0?K-c:0;c>=0&&(f.minimumFractionDigits_=h+l-c,f.minimumFractionDigits_<0&&(f.minimumFractionDigits_=0));f.minimumIntegerDigits_=(c>=0?c:K)-h;f.useExponentialNotation_&&(f.maximumIntegerDigits_=
h+f.minimumIntegerDigits_,f.maximumFractionDigits_==0&&f.minimumIntegerDigits_==0&&(f.minimumIntegerDigits_=1));f.groupingArray_.push(Math.max(0,q));f.decimalSeparatorAlwaysShown_=c==0||c==K;O=u[0]-O;f.positiveSuffix_=aHY(f,R,u);u[0]<R.length&&R.charAt(u[0])==";"?(u[0]++,f.multiplier_!=1&&(f.negativePercentSignExpected_=!0),f.negativePrefix_=aHY(f,R,u),u[0]+=O,f.negativeSuffix_=aHY(f,R,u)):(f.negativePrefix_+=f.positivePrefix_,f.negativeSuffix_+=f.positiveSuffix_)};
qPt=function(f,R){f.compactStyle_=R;$P(f,S7(f).DECIMAL_PATTERN);f.minimumFractionDigits_=0;NLh(f,2);if(f.minimumFractionDigits_>0)throw Error("$d");f.significantDigits_=2};
_.UP.prototype.parse=function(f,R){R=R||[0];if(this.compactStyle_!==0)throw Error("ce");f=f.replace(/ |\u202f/g,"\u00a0");var u=f.indexOf(this.positivePrefix_,R[0])==R[0],O=f.indexOf(this.negativePrefix_,R[0])==R[0];u&&O&&(this.positivePrefix_.length>this.negativePrefix_.length?O=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(u=!1));u?R[0]+=this.positivePrefix_.length:O&&(R[0]+=this.negativePrefix_.length);if(f.indexOf(S7(this).INFINITY,R[0])==R[0]){R[0]+=S7(this).INFINITY.length;var c=
Infinity}else{c=f;var h=!1,l=!1,K=!1,q=-1,F=1,w=S7(this).DECIMAL_SEP,m=S7(this).GROUP_SEP,W=S7(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");m=m.replace(/\u202f/g,"\u00a0");for(var C="";R[0]<c.length;R[0]++){var d=c.charAt(R[0]),p=FBY(this,d);if(p>=0&&p<=9)C+=p,K=!0;else if(d==w.charAt(0)){if(h||l)break;C+=".";h=!0}else if(d==m.charAt(0)&&("\u00a0"!=m.charAt(0)||R[0]+1<c.length&&FBY(this,c.charAt(R[0]+1))>=0)){if(h||l)break}else if(d==W.charAt(0)){if(l)break;C+="E";l=!0;q=R[0]}else if(d==
"+"||d=="-"){if(K&&q!=R[0]-1)break;C+=d}else if(this.multiplier_==1&&d==S7(this).PERCENT.charAt(0)){if(F!=1)break;F=100;if(K){R[0]++;break}}else if(this.multiplier_==1&&d==S7(this).PERMILL.charAt(0)){if(F!=1)break;F=1E3;if(K){R[0]++;break}}else break}this.multiplier_!=1&&(F=this.multiplier_);c=parseFloat(C)/F}if(u){if(f.indexOf(this.positiveSuffix_,R[0])!=R[0])return NaN;R[0]+=this.positiveSuffix_.length}else if(O){if(f.indexOf(this.negativeSuffix_,R[0])!=R[0])return NaN;R[0]+=this.negativeSuffix_.length}return O?
-c:c};
_.UP.prototype.format=function(f){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(f))return S7(this).NAN;var R=[];var u=f;if(this.compactStyle_==0)u=sr;else{u=Math.abs(u);var O=wWA(this,u<=1?0:mqC(u)).divisorBase;u=wWA(this,O+mqC(QLf(this,nJ(u,-O)).intValue))}f=nJ(f,-u.divisorBase);(O=f<0||f==0&&1/f<0)?u.negative_prefix?R.push(u.negative_prefix):(R.push(u.prefix),R.push(this.negativePrefix_)):(R.push(u.prefix),R.push(this.positivePrefix_));if(isFinite(f))if(f*=
O?-1:1,f*=this.multiplier_,this.useExponentialNotation_){var c=f;if(c==0)WBA(this,c,this.minimumIntegerDigits_,R),EZA(this,0,R);else{var h=Math.floor(Math.log(c)/Math.log(10)+2E-15);c=nJ(c,-h);var l=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(l=h%this.maximumIntegerDigits_,l<0&&(l=this.maximumIntegerDigits_+l),c=nJ(c,l),h-=l,l=1):this.minimumIntegerDigits_<1?(h++,c=nJ(c,-1)):(h-=this.minimumIntegerDigits_-1,c=nJ(c,this.minimumIntegerDigits_-
1));WBA(this,c,l,R);EZA(this,h,R)}}else WBA(this,f,this.minimumIntegerDigits_,R);else R.push(S7(this).INFINITY);O?u.negative_suffix?R.push(u.negative_suffix):(isFinite(f)&&R.push(u.suffix),R.push(this.negativeSuffix_)):(isFinite(f)&&R.push(u.suffix),R.push(this.positiveSuffix_));return R.join("")};
var QLf=function(f,R){var u=nJ(R,f.maximumFractionDigits_);f.significantDigits_>0&&(u=t8i(u,f.significantDigits_,f.maximumFractionDigits_));u=Math.round(u);if(isFinite(u)){var O=Math.floor(nJ(u,-f.maximumFractionDigits_));u=Math.floor(u-nJ(O,f.maximumFractionDigits_));if(u<0||u>=nJ(1,f.maximumFractionDigits_))O=Math.round(R),u=0}else O=R,u=0;return{intValue:O,fracValue:u}},WBA=function(f,R,u,O){if(f.minimumFractionDigits_>f.maximumFractionDigits_)throw Error("ee");
O||(O=[]);R=QLf(f,R);var c=R.intValue,h=R.fracValue,l=f.minimumFractionDigits_>0||h>0||!1;R=f.minimumFractionDigits_;l&&(R=f.minimumFractionDigits_);for(var K="",q=c;q>1E20;)K="0"+K,q=Math.round(nJ(q,-1));K=q+K;var F=S7(f).DECIMAL_SEP;q=S7(f).ZERO_DIGIT.codePointAt(0);var w=K.length,m=0;if(c>0||u>0){for(c=w;c<u;c++)O.push(String.fromCodePoint(q));if(f.groupingArray_.length>=2)for(u=1;u<f.groupingArray_.length;u++)m+=f.groupingArray_[u];u=w-m;if(u>0){c=f.groupingArray_;m=w=0;for(var W,C=S7(f).GROUP_SEP,
d=K.length,p=0;p<d;p++)if(O.push(String.fromCodePoint(q+Number(K.charAt(p)))),d-p>1)if(W=c[m],p<u){var J=u-p;(W===1||W>0&&J%W===1)&&O.push(C)}else m<c.length&&(p===u?m+=1:W===p-u-w+1&&(O.push(C),w+=W,m+=1))}else{u=K;K=f.groupingArray_;c=S7(f).GROUP_SEP;W=u.length;C=[];for(w=K.length-1;w>=0&&W>0;w--){m=K[w];for(d=0;d<m&&W-d-1>=0;d++)C.push(String.fromCodePoint(q+Number(u.charAt(W-d-1))));W-=m;W>0&&C.push(c)}O.push.apply(O,C.reverse())}}else l||O.push(String.fromCodePoint(q));(f.decimalSeparatorAlwaysShown_||
l)&&O.push(F);h=String(h);l=h.split("e+");l.length==2&&(h=String(t8i(parseFloat(l[0]),f.significantDigits_,1)),h=h.replace(".",""),h+=(0,_.w6h)("0",parseInt(l[1],10)-h.length+1));f.maximumFractionDigits_+1>h.length&&(h="1"+(0,_.w6h)("0",f.maximumFractionDigits_-h.length)+h);for(f=h.length;h.charAt(f-1)=="0"&&f>R+1;)f--;for(R=1;R<f;R++)O.push(String.fromCodePoint(q+Number(h.charAt(R))))},EZA=function(f,R,u){u.push(S7(f).EXP_SYMBOL);
R<0?(R=-R,u.push(S7(f).MINUS_SIGN)):f.useSignForPositiveExponent_&&u.push(S7(f).PLUS_SIGN);R=""+R;for(var O=S7(f).ZERO_DIGIT,c=R.length;c<f.minExponentDigits_;c++)u.push(O);f=O.codePointAt(0)-C$E;for(O=0;O<R.length;O++)u.push(String.fromCodePoint(f+R.codePointAt(O)))},FBY=function(f,R){R=R.codePointAt(0);
if(48<=R&&R<58)return R-48;f=S7(f).ZERO_DIGIT.codePointAt(0);return f<=R&&R<f+10?R-f:-1},C$E="0".codePointAt(0),aHY=function(f,R,u){for(var O="",c=!1,h=R.length;u[0]<h;u[0]++){var l=R.charAt(u[0]);
if(l=="'")u[0]+1<h&&R.charAt(u[0]+1)=="'"?(u[0]++,O+="'"):c=!c;else if(c)O+=l;else switch(l){case "#":case "0":case ",":case ".":case ";":return O;case "\u00a4":if(u[0]+1<h&&R.charAt(u[0]+1)=="\u00a4")u[0]++,O+=gF(f);else switch(f.currencyStyle_){case 0:l=gF(f);O+=l in Pe?Pe[l][1]:l;break;case 2:l=gF(f);var K=Pe[l];O+=K?l==K[1]?l:l+" "+K[1]:l;break;case 1:l=gF(f),O+=l in Pe?Pe[l][2]:l}break;case "%":if(!f.negativePercentSignExpected_&&f.multiplier_!=1)throw Error("fe");if(f.negativePercentSignExpected_&&
f.multiplier_!=100)throw Error("ge");f.multiplier_=100;f.negativePercentSignExpected_=!1;O+=S7(f).PERCENT;break;case "\u2030":if(!f.negativePercentSignExpected_&&f.multiplier_!=1)throw Error("fe");if(f.negativePercentSignExpected_&&f.multiplier_!=1E3)throw Error("ge");f.multiplier_=1E3;f.negativePercentSignExpected_=!1;O+=S7(f).PERMILL;break;default:O+=l}}return O},sr={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},wWA=function(f,R){f=f.compactStyle_==1?Mf.COMPACT_DECIMAL_SHORT_PATTERN:Mf.COMPACT_DECIMAL_LONG_PATTERN;f==null&&(f=Mf.COMPACT_DECIMAL_SHORT_PATTERN);if(R<3)return sr;R=Math.min(14,R);var u=f[nJ(1,R)];for(--R;!u&&R>=3;)u=f[nJ(1,R)],R--;if(!u)return sr;u=u.other;var O=f="",c=u.indexOf(";");c>=0&&(u=u.substring(0,c),c=u.substring(c+1))&&(O=/([^0]*)(0+)(.*)/.exec(c),f=O[1],O=O[3]);return u&&u!="0"?(u=/([^0]*)(0+)(.*)/.exec(u))?{divisorBase:R+
1-(u[2].length-1),negative_prefix:f,negative_suffix:O,prefix:u[1],suffix:u[3]}:sr:sr},mqC=function(f){if(!isFinite(f))return f>0?f:0;
for(var R=0;(f/=10)>=1;)R++;return R},nJ=function(f,R){if(!f||!isFinite(f)||R==0)return f;
f=String(f).split("e");return parseFloat(f[0]+"e"+(parseInt(f[1]||0,10)+R))},yhf=function(f,R){return f&&isFinite(f)?nJ(Math.round(nJ(f,R)),-R):f},t8i=function(f,R,u){if(!f)return f;
R=R-mqC(f)-1;return R<-u?yhf(f,-u):yhf(f,R)};var dqC=function(f){return f%10==1&&f%100!=11?"one":f%10==2&&f%100!=12?"two":f%10==3&&f%100!=13?"few":"other"},NzH=dqC;
NzH=dqC;var LBY;LBY=function(f,R){var u=f|0;if(void 0===R){R=Math;var O=R.min,c=f+"",h=c.indexOf(".");R=O.call(R,h===-1?0:c.length-h-1,3)}O=Math.pow(10,R);f={v:R,f:(f*O|0)%O};return u==1&&f.v==0?"one":"other"};
_.xZ=LBY;_.xZ=LBY;var bgt,pWF,jLA,JhH,zjk;_.Dqk=function(f){this.JSC$9358_pattern_=f;this.parsedPattern_=this.literals_=this.initialLiterals_=null;f=kef;var R=Mf;if(bgt!==f||pWF!==R)bgt=f,pWF=R,jLA=new _.UP(1);this.numberFormatter_=jLA};
bgt=null;pWF=null;jLA=null;JhH=RegExp("'([{}#].*?)'","g");zjk=RegExp("''","g");
_.Dqk.prototype.format=function(f){if(this.JSC$9358_pattern_){this.initialLiterals_=[];var R=TzH(this,this.JSC$9358_pattern_);this.parsedPattern_=HgG(this,R);this.JSC$9358_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.iB(this.initialLiterals_),R=[],IHf(this,this.parsedPattern_,f,!1,R),f=R.join("");this.literals_.length>0;)f=f.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else f="";return f};
var IHf=function(f,R,u,O,c){for(var h=0;h<R.length;h++)switch(R[h].type){case 4:c.push(R[h].value);break;case 3:var l=R[h].value;var K=f,q=c,F=u[l];F===void 0?q.push("Undefined parameter - "+l):(K.literals_.push(F),q.push(K.buildPlaceholder_(K.literals_)));break;case 2:l=R[h].value;K=f;q=u;F=O;var w=c,m=l.argumentIndex;q[m]===void 0?w.push("Undefined parameter - "+m):(m=l[q[m]],m===void 0&&(m=l.other),IHf(K,m,q,F,w));break;case 0:l=R[h].value;M8E(f,l,u,_.xZ,O,c);break;case 1:l=R[h].value,M8E(f,l,
u,NzH,O,c)}},M8E=function(f,R,u,O,c,h){var l=R.argumentIndex,K=R.argumentOffset,q=+u[l];
isNaN(q)?h.push("Undefined or invalid parameter - "+l):(K=q-K,l=R[u[l]],l===void 0&&(O=O(Math.abs(K)),l=R[O],l===void 0&&(l=R.other)),R=[],IHf(f,l,u,c,R),u=R.join(""),c?h.push(u):(f=f.numberFormatter_.format(K),h.push(u.replace(/#/g,f))))},TzH=function(f,R){var u=f.initialLiterals_,O=f.buildPlaceholder_.bind(f);
R=R.replace(zjk,function(){u.push("'");return O(u)});
return R=R.replace(JhH,function(c,h){u.push(h);return O(u)})},P$k=function(f){var R=0,u=[],O=[],c=/[{}]/g;
c.lastIndex=0;for(var h;h=c.exec(f);){var l=h.index;h[0]=="}"?(u.pop(),u.length==0&&(h={type:1},h.value=f.substring(R,l),O.push(h),R=l+1)):(u.length==0&&(R=f.substring(R,l),R!=""&&O.push({type:0,value:R}),R=l+1),u.push("{"))}f=f.substring(R);f!=""&&O.push({type:0,value:f});return O},Uqf=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,ejE=/^\s*(\w+)\s*,\s*selectordinal\s*,/,GeC=/^\s*(\w+)\s*,\s*select\s*,/,HgG=function(f,R){var u=[];
R=P$k(R);for(var O=0;O<R.length;O++){var c={};if(0==R[O].type)c.type=4,c.value=R[O].value;else if(1==R[O].type){var h=R[O].value;switch(Uqf.test(h)?0:ejE.test(h)?1:GeC.test(h)?2:/^\s*\w+\s*/.test(h)?3:5){case 2:c.type=2;c.value=Bzf(f,R[O].value);break;case 0:c.type=0;c.value=oZi(f,R[O].value);break;case 1:c.type=1;c.value=xqf(f,R[O].value);break;case 3:c.type=3,c.value=R[O].value}}u.push(c)}return u},Bzf=function(f,R){var u="";
R=R.replace(GeC,function(K,q){u=q;return""});
var O={};O.argumentIndex=u;R=P$k(R);for(var c=0;c<R.length;){var h=R[c].value;c++;var l=void 0;1==R[c].type&&(l=HgG(f,R[c].value));O[h.replace(/\s/g,"")]=l;c++}return O},oZi=function(f,R){var u="",O=0;
R=R.replace(Uqf,function(q,F,w){u=F;w&&(O=parseInt(w,10));return""});
var c={};c.argumentIndex=u;c.argumentOffset=O;R=P$k(R);for(var h=0;h<R.length;){var l=R[h].value;h++;var K=void 0;1==R[h].type&&(K=HgG(f,R[h].value));c[l.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=K;h++}return c},xqf=function(f,R){var u="";
R=R.replace(ejE,function(K,q){u=q;return""});
var O={};O.argumentIndex=u;O.argumentOffset=0;R=P$k(R);for(var c=0;c<R.length;){var h=R[c].value;c++;var l=void 0;1==R[c].type&&(l=HgG(f,R[c].value));O[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=l;c++}return O};
_.Dqk.prototype.buildPlaceholder_=function(f){return"\ufddf_"+(f.length-1).toString(10)+"_"};var SPF;
SPF={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 RTn=function(){this.rdtfSymbols_=$qY||SPF;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
RTn.prototype.format=function(f,R){a:{R=gZH(this,R);switch(this.style_){case 2:if(R.NARROW!=void 0){R=R.NARROW;break a}case 1:if(R.SHORT!=void 0){R=R.SHORT;break a}default:R=R.LONG;break a}R=void 0}if(!this.alwaysNumeric_&&R&&R.R&&R.R[""+f])f=R.R[""+f];else if(R){var u=Math.abs(f);f=(new _.Dqk("{N,plural,"+(f>0||f==0&&1/f==Infinity?R.F:R.P)+"}")).format({N:u})}else f="";return f};
var gZH=function(f,R){switch(R){default:case 0:return f.rdtfSymbols_.YEAR;case 1:return f.rdtfSymbols_.QUARTER;case 2:return f.rdtfSymbols_.MONTH;case 3:return f.rdtfSymbols_.WEEK;case 4:return f.rdtfSymbols_.DAY;case 5:return f.rdtfSymbols_.HOUR;case 6:return f.rdtfSymbols_.MINUTE;case 7:return f.rdtfSymbols_.SECOND}};var sLI=function(f,R,u,O,c,h,l,K){this.x0=f;this.y0=R;this.x1=u;this.y1=O;this.x2=c;this.y2=h;this.x3=l;this.y3=K};
sLI.prototype.clone=function(){return new sLI(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
sLI.prototype.equals=function(f){return this.x0==f.x0&&this.y0==f.y0&&this.x1==f.x1&&this.y1==f.y1&&this.x2==f.x2&&this.y2==f.y2&&this.x3==f.x3&&this.y3==f.y3};
var nZi=function(f,R){if(R==0)return f.x0;if(R==1)return f.x3;var u=WI(f.x0,f.x1,R),O=WI(f.x1,f.x2,R);f=WI(f.x2,f.x3,R);u=WI(u,O,R);O=WI(O,f,R);return WI(u,O,R)},V8l=function(f,R){var u=(R-f.x0)/(f.x3-f.x0);
if(u<=0)return 0;if(u>=1)return 1;for(var O=0,c=1,h=0,l=0;l<8;l++){h=nZi(f,u);var K=(nZi(f,u+1E-6)-h)/1E-6;if(Math.abs(h-R)<1E-6)return u;if(Math.abs(K)<1E-6)break;else h<R?O=u:c=u,u-=(h-R)/K}for(l=0;Math.abs(h-R)>1E-6&&l<8;l++)h<R?(O=u,u=(u+c)/2):(c=u,u=(u+O)/2),h=nZi(f,u);return u};var VJ=function(){_.mq.call(this);this.JSC$9379_name_="closure_frame"+YPF++;this.iframesForDisposal_=[];vZF[this.JSC$9379_name_]=this},YP;
_.f6(VJ,_.mq);var vZF={},YPF=0,igC=function(f,R){var u=a0(f);_.wKA(R,function(O,c){Array.isArray(O)||(O=[O]);_.Gf(O,function(h){h=u.JSC$7336_createDom("INPUT",{type:"hidden",name:c,value:h});f.appendChild(h)})})};
_.X=VJ.prototype;_.X.JSC$9381_form_=null;_.X.JSC$9381_iframe_=null;_.X.iframeName_=null;_.X.nextIframeId_=0;_.X.JSC$9381_active_=!1;_.X.complete_=!1;_.X.success_=!1;_.X.lastContent_=null;_.X.JSC$9381_lastErrorCode_=0;_.X.iframeDisposalTimer_=null;
_.X.send=function(f,R,u,O){if(this.JSC$9381_active_)throw Error("me");f=new _.gu(f);R=R?R.toUpperCase():"GET";u&&_.uz(f);YP||(YP=_.yO("FORM"),YP.acceptCharset="utf-8",u=YP.style,u.position="absolute",u.visibility="hidden",u.top=u.left="-10px",u.width=u.height="10px",u.overflow="hidden",document.body.appendChild(YP));this.JSC$9381_form_=YP;R=="GET"&&igC(this.JSC$9381_form_,f.JSC$8036_queryData_);O&&igC(this.JSC$9381_form_,O);u=f.toString();u=Y$7(u);O=this.JSC$9381_form_;u=_.Nu(Am(u));u!==void 0&&(O.action=
u);this.JSC$9381_form_.method=R;rhF(this);fMk(this)};
_.X.abort=function(f){if(this.JSC$9381_active_){var R=ve(this);if(R)if(af(R))R.removeAllListeners(void 0);else if(R=Fz(R)){var u=0,O;for(O in R.listeners)for(var c=R.listeners[O].concat(),h=0;h<c.length;++h)Ex(c[h])&&++u}this.success_=this.JSC$9381_active_=this.complete_=!1;this.JSC$9381_lastErrorCode_=f||7;this.dispatchEvent("abort");RGY(this)}};
_.X.disposeInternal=function(){this.JSC$9381_active_&&this.abort();VJ.superClass_.disposeInternal.call(this);this.JSC$9381_iframe_&&urA(this);fMk(this);this.JSC$9381_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9381_form_=null;this.JSC$9381_lastErrorCode_=0;delete vZF[this.JSC$9379_name_]};
_.X.isComplete=function(){return this.complete_};
_.X.isSuccess=function(){return this.success_};
_.X.isActive=function(){return this.JSC$9381_active_};
_.X.getResponseText=function(){return this.lastContent_};
_.X.getLastError=function(){return _.s8H(this.JSC$9381_lastErrorCode_)};
var rhF=function(f){f.JSC$9381_active_=!0;f.complete_=!1;f.JSC$9381_lastErrorCode_=0;f.iframeName_=f.JSC$9379_name_+"_"+(f.nextIframeId_++).toString(36);f.JSC$9381_iframe_=a0(f.JSC$9381_form_).JSC$7336_createDom("IFRAME",{name:f.iframeName_,id:f.iframeName_});var R=f.JSC$9381_iframe_.style;R.visibility="hidden";R.width=R.height="10px";R.display="none";_.XA?R.marginTop=R.marginLeft="-10px":(R.position="absolute",R.top=R.left="-10px");a0(f.JSC$9381_form_).JSC$7334_document_.body.appendChild(f.JSC$9381_iframe_);
R=f.iframeName_+"_inner";var u=UXG(f.JSC$9381_iframe_);if(document.baseURI){var O=Op(R);O='<head><base href="'+Op(document.baseURI)+'"></head><body><iframe id="'+O+'" name="'+O+'"></iframe>';O=pj(O)}else O=Op(R),O=pj('<body><iframe id="'+O+'" name="'+O+'"></iframe>');u.write(jy(O));_.y0(u.getElementById(R),"load",f.onIframeLoaded_,!1,f);O=Wi("TEXTAREA",f.JSC$9381_form_);for(var c=0,h=O.length;c<h;c++){var l=O[c].value;Sek(O[c])!=l&&(_.Dj(O[c],l),O[c].value=l)}O=u.importNode(f.JSC$9381_form_,!0);O.target=
R;O.action=f.JSC$9381_form_.action;u.body.appendChild(O);c=Wi("SELECT",f.JSC$9381_form_);h=Wi("SELECT",O);l=0;for(var K=c.length;l<K;l++)for(var q=Wi("OPTION",c[l]),F=Wi("OPTION",h[l]),w=0,m=q.length;w<m;w++)F[w].selected=q[w].selected;c=Wi("INPUT",f.JSC$9381_form_);h=Wi("INPUT",O);l=0;for(K=c.length;l<K;l++)if(c[l].type=="file"&&c[l].value!=h[l].value){f.JSC$9381_form_.target=R;O=f.JSC$9381_form_;break}try{f.errorHandled_=!1,O.submit(),u.close(),_.co&&setTimeout(f.testForFirefoxSilentError_.bind(f),
250)}catch(W){_.w4(u.getElementById(R),"load",f.onIframeLoaded_,!1,f),u.close(),iQ(f,2)}};
VJ.prototype.onIframeLoaded_=function(){_.w4(ve(this),"load",this.onIframeLoaded_,!1,this);try{var f=this.JSC$9381_iframe_?UXG(ve(this)):null;this.complete_=!0;this.JSC$9381_active_=!1;try{var R=f.body;this.lastContent_=R.textContent||R.innerText}catch(c){var u=1}var O;u||typeof this.errorChecker_!="function"||(O=this.errorChecker_(f))&&(u=4);u?iQ(this,u):(this.success_=!0,this.JSC$9381_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),RGY(this))}catch(c){iQ(this,1)}};
var iQ=function(f,R){f.errorHandled_||(f.success_=!1,f.JSC$9381_active_=!1,f.complete_=!0,f.JSC$9381_lastErrorCode_=R,f.dispatchEvent("complete"),f.dispatchEvent("error"),RGY(f),f.errorHandled_=!0)},RGY=function(f){urA(f);
fMk(f);f.JSC$9381_form_=null;f.dispatchEvent("ready")},urA=function(f){var R=f.JSC$9381_iframe_;
R&&(R.onreadystatechange=null,R.onload=null,R.onerror=null,f.iframesForDisposal_.push(R));f.iframeDisposalTimer_&&(clearTimeout(f.iframeDisposalTimer_),f.iframeDisposalTimer_=null);_.co?f.iframeDisposalTimer_=setTimeout(f.disposeIframes_.bind(f),2E3):f.disposeIframes_();f.JSC$9381_iframe_=null;f.iframeName_=null};
VJ.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var f=this.iframesForDisposal_.pop();_.Q1(f)}};
var fMk=function(f){f.JSC$9381_form_&&f.JSC$9381_form_==YP&&_.Lp(f.JSC$9381_form_)},ve=function(f){return f.JSC$9381_iframe_?UXG(f.JSC$9381_iframe_).getElementById(f.iframeName_+"_inner"):null};
VJ.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9381_active_){var f=this.JSC$9381_iframe_?UXG(ve(this)):null;f&&!Dw(f,"documentUri")?(_.w4(ve(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?iQ(this,3):iQ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.rF=function(f){return f=="\r"||f=="\n"||f==" "||f=="\t"};var OnC;_.fu=function(f){this.errorMessage_=null;this.result_=[];this.JSC$9383_buffer_="";this.stack_=[];this.JSC$9383_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!f||!f.deliverMessageAsRawString)};
OnC={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};_.fu.prototype.isInputValid=function(){return this.streamState_!=3};
_.fu.prototype.done=function(){return this.streamState_===2};
var RU=function(f,R,u){f.streamState_=3;f.errorMessage_="The stream is broken @"+f.JSC$9383_pos_+"/"+u+". With input:\n"+R;throw Error(f.errorMessage_);};
_.fu.prototype.acceptsBinaryInput=function(){return!1};
_.fu.prototype.parse=function(f){function R(){for(;W<f.length;)if(_.rF(f[W]))W++,h.JSC$9383_pos_++;else break;return W<F}
function u(){for(var d;;){d=f[W++];if(!d)break;h.JSC$9383_pos_++;switch(h.state_){case q.INIT:d==="{"?h.state_=q.OBJECT_OPEN:d==="["?h.state_=q.ARRAY_OPEN:_.rF(d)||RU(h,f,W);continue;case q.KEY_START:case q.OBJECT_OPEN:if(_.rF(d))continue;if(h.state_===q.KEY_START)l.push(q.KEY_END);else if(d==="}"){c("{}");h.state_=O();continue}else l.push(q.OBJECT_END);d==='"'?h.state_=q.STRING:RU(h,f,W);continue;case q.KEY_END:case q.OBJECT_END:if(_.rF(d))continue;d===":"?(h.state_===q.OBJECT_END&&(l.push(q.OBJECT_END),
h.depth_++),h.state_=q.VALUE):d==="}"?(h.depth_--,c(),h.state_=O()):d===","?(h.state_===q.OBJECT_END&&l.push(q.OBJECT_END),h.state_=q.KEY_START):RU(h,f,W);continue;case q.ARRAY_OPEN:case q.VALUE:if(_.rF(d))continue;if(h.state_===q.ARRAY_OPEN)if(h.depth_++,h.state_=q.VALUE,d==="]"){h.depth_--;if(h.depth_===0){h.state_=q.ARRAY_END;return}c("[]");h.state_=O();continue}else l.push(q.ARRAY_END);d==='"'?h.state_=q.STRING:d==="{"?h.state_=q.OBJECT_OPEN:d==="["?h.state_=q.ARRAY_OPEN:d==="t"?h.state_=q.TRUE1:
d==="f"?h.state_=q.FALSE1:d==="n"?h.state_=q.NULL1:d!=="-"&&("0123456789".indexOf(d)!==-1?h.state_=q.NUM_DIGIT:RU(h,f,W));continue;case q.ARRAY_END:if(d===",")l.push(q.ARRAY_END),h.state_=q.VALUE,h.depth_===1&&(m=W);else if(d==="]"){h.depth_--;if(h.depth_===0)return;c();h.state_=O()}else if(_.rF(d))continue;else RU(h,f,W);continue;case q.STRING:var p=W;a:for(;;){for(;h.unicodeCount_>0;)if(d=f[W++],h.unicodeCount_===4?h.unicodeCount_=0:h.unicodeCount_++,!d)break a;if(d==='"'&&!h.slashed_){h.state_=
O();break}if(d==="\\"&&!h.slashed_&&(h.slashed_=!0,d=f[W++],!d))break;if(h.slashed_)if(h.slashed_=!1,d==="u"&&(h.unicodeCount_=1),d=f[W++])continue;else break;K.lastIndex=W;d=K.exec(f);if(!d){W=f.length+1;break}W=d.index+1;d=f[d.index];if(!d)break}h.JSC$9383_pos_+=W-p;continue;case q.TRUE1:if(!d)continue;d==="r"?h.state_=q.TRUE2:RU(h,f,W);continue;case q.TRUE2:if(!d)continue;d==="u"?h.state_=q.TRUE3:RU(h,f,W);continue;case q.TRUE3:if(!d)continue;d==="e"?h.state_=O():RU(h,f,W);continue;case q.FALSE1:if(!d)continue;
d==="a"?h.state_=q.FALSE2:RU(h,f,W);continue;case q.FALSE2:if(!d)continue;d==="l"?h.state_=q.FALSE3:RU(h,f,W);continue;case q.FALSE3:if(!d)continue;d==="s"?h.state_=q.FALSE4:RU(h,f,W);continue;case q.FALSE4:if(!d)continue;d==="e"?h.state_=O():RU(h,f,W);continue;case q.NULL1:if(!d)continue;d==="u"?h.state_=q.NULL2:RU(h,f,W);continue;case q.NULL2:if(!d)continue;d==="l"?h.state_=q.NULL3:RU(h,f,W);continue;case q.NULL3:if(!d)continue;d==="l"?h.state_=O():RU(h,f,W);continue;case q.NUM_DECIMAL_POINT:d===
"."?h.state_=q.NUM_DIGIT:RU(h,f,W);continue;case q.NUM_DIGIT:if("0123456789.eE+-".indexOf(d)!==-1)continue;else W--,h.JSC$9383_pos_--,h.state_=O();continue;default:RU(h,f,W)}}}
function O(){var d=l.pop();return d!=null?d:q.VALUE}
function c(d){h.depth_>1||(d||(d=m===-1?h.JSC$9383_buffer_+f.substring(w,W):f.substring(m,W)),h.deliverMessageAsRawString_?h.result_.push(d):h.result_.push(JSON.parse(d)),m=W)}
for(var h=this,l=h.stack_,K=h.stringInputPattern_,q=OnC,F=f.length,w=0,m=-1,W=0;W<F;)switch(h.streamState_){case 3:return RU(h,f,W),null;case 2:return R()&&RU(h,f,W),null;case 0:if(R()){var C=f[W++];h.JSC$9383_pos_++;if(C==="["){h.streamState_=1;w=W;h.state_=q.ARRAY_OPEN;continue}else RU(h,f,W)}return null;case 1:return u(),h.depth_===0&&h.state_==q.ARRAY_END?(h.streamState_=2,h.JSC$9383_buffer_=f.substring(W)):h.JSC$9383_buffer_=m===-1?h.JSC$9383_buffer_+f.substring(w):f.substring(m),h.result_.length>
0?(C=h.result_,h.result_=[],C):null}return null};_.f6(_.cc,dU);XO.prototype.getValue=function(){return this.JSC$9391_value_};
XO.prototype.clone=function(){return new XO(this.JSC$9391_key_,this.JSC$9391_value_)};var uL=function(f){this.nodes_=[];if(f)a:{if(f instanceof uL){var R=f.getKeys();f=f.getValues();if(this.getCount()<=0){for(var u=this.nodes_,O=0;O<R.length;O++)u.push(new XO(R[O],f[O]));break a}}else R=_.dq.getKeys(f),f=_.dq.getValues(f);for(u=0;u<R.length;u++)this.insert(R[u],f[u])}};
_.X=uL.prototype;_.X.insert=function(f,R){var u=this.nodes_;u.push(new XO(f,R));f=u.length-1;R=this.nodes_;for(u=R[f];f>0;){var O=f-1>>1;if(R[O].JSC$9391_key_>u.JSC$9391_key_)R[f]=R[O],f=O;else break}R[f]=u};
_.X.remove=function(){var f=this.nodes_,R=f.length,u=f[0];if(!(R<=0)){if(R==1)f.length=0;else{f[0]=f.pop();f=0;R=this.nodes_;for(var O=R.length,c=R[f];f<O>>1;){var h=f*2+1,l=f*2+2;h=l<O&&R[l].JSC$9391_key_<R[h].JSC$9391_key_?l:h;if(R[h].JSC$9391_key_>c.JSC$9391_key_)break;R[f]=R[h];f=h}R[f]=c}return u.getValue()}};
_.X.peek=function(){var f=this.nodes_;if(f.length!=0)return f[0].getValue()};
_.X.getValues=function(){for(var f=this.nodes_,R=[],u=f.length,O=0;O<u;O++)R.push(f[O].getValue());return R};
_.X.getKeys=function(){for(var f=this.nodes_,R=[],u=f.length,O=0;O<u;O++)R.push(f[O].JSC$9391_key_);return R};
_.X.containsValue=function(f){return this.nodes_.some(function(R){return R.getValue()==f})};
_.X.containsKey=function(f){return this.nodes_.some(function(R){return R.JSC$9391_key_==f})};
_.X.clone=function(){return new uL(this)};
_.X.getCount=function(){return this.nodes_.length};
_.X.isEmpty=function(){return this.nodes_.length===0};
_.X.clear=function(){this.nodes_.length=0};_.OT=function(f,R){this.JSC$9397_map_={};this.JSC$9397_keys_=[];this.version_=this.size=0;var u=arguments.length;if(u>1){if(u%2)throw Error("oa");for(var O=0;O<u;O+=2)this.set(arguments[O],arguments[O+1])}else f&&this.addAll(f)};
_.X=_.OT.prototype;_.X.getCount=function(){return this.size};
_.X.getValues=function(){cm(this);for(var f=[],R=0;R<this.JSC$9397_keys_.length;R++)f.push(this.JSC$9397_map_[this.JSC$9397_keys_[R]]);return f};
_.X.getKeys=function(){cm(this);return this.JSC$9397_keys_.concat()};
_.X.containsKey=function(f){return this.has(f)};
_.X.has=function(f){return XU(this.JSC$9397_map_,f)};
_.X.containsValue=function(f){for(var R=0;R<this.JSC$9397_keys_.length;R++){var u=this.JSC$9397_keys_[R];if(XU(this.JSC$9397_map_,u)&&this.JSC$9397_map_[u]==f)return!0}return!1};
_.X.equals=function(f,R){if(this===f)return!0;if(this.size!=f.getCount())return!1;R=R||cNI;cm(this);for(var u,O=0;u=this.JSC$9397_keys_[O];O++)if(!R(this.get(u),f.get(u)))return!1;return!0};
var cNI=function(f,R){return f===R};
_.OT.prototype.isEmpty=function(){return this.size==0};
_.OT.prototype.clear=function(){this.JSC$9397_map_={};this.version_=this.size=this.JSC$9397_keys_.length=0};
_.OT.prototype.remove=function(f){return this.delete(f)};
_.OT.prototype.delete=function(f){return XU(this.JSC$9397_map_,f)?(delete this.JSC$9397_map_[f],--this.size,this.version_++,this.JSC$9397_keys_.length>2*this.size&&cm(this),!0):!1};
var cm=function(f){if(f.size!=f.JSC$9397_keys_.length){for(var R=0,u=0;R<f.JSC$9397_keys_.length;){var O=f.JSC$9397_keys_[R];XU(f.JSC$9397_map_,O)&&(f.JSC$9397_keys_[u++]=O);R++}f.JSC$9397_keys_.length=u}if(f.size!=f.JSC$9397_keys_.length){R={};for(O=u=0;u<f.JSC$9397_keys_.length;){var c=f.JSC$9397_keys_[u];XU(R,c)||(f.JSC$9397_keys_[O++]=c,R[c]=1);u++}f.JSC$9397_keys_.length=O}};
_.X=_.OT.prototype;_.X.get=function(f,R){return XU(this.JSC$9397_map_,f)?this.JSC$9397_map_[f]:R};
_.X.set=function(f,R){XU(this.JSC$9397_map_,f)||(this.size+=1,this.JSC$9397_keys_.push(f),this.version_++);this.JSC$9397_map_[f]=R};
_.X.addAll=function(f){if(f instanceof _.OT)for(var R=f.getKeys(),u=0;u<R.length;u++)this.set(R[u],f.get(R[u]));else for(R in f)this.set(R,f[R])};
_.X.forEach=function(f,R){for(var u=this.getKeys(),O=0;O<u.length;O++){var c=u[O],h=this.get(c);f.call(R,h,c,this)}};
_.X.clone=function(){return new _.OT(this)};
_.X.transpose=function(){for(var f=new _.OT,R=0;R<this.JSC$9397_keys_.length;R++){var u=this.JSC$9397_keys_[R];f.set(this.JSC$9397_map_[u],u)}return f};
_.X.keys=function(){return zDG(this.__iterator__(!0)).toEs6()};
_.X.values=function(){return zDG(this.__iterator__(!1)).toEs6()};
_.X.entries=function(){var f=this;return $sk(this.keys(),function(R){return[R,f.get(R)]})};
_.X.__iterator__=function(f){cm(this);var R=0,u=this.version_,O=this,c=new Rz;c.next=function(){if(u!=O.version_)throw Error("ne");if(R>=O.JSC$9397_keys_.length)return u0;var h=O.JSC$9397_keys_[R++];return OQ(f?h:O.JSC$9397_map_[h])};
return c};
var XU=function(f,R){return Object.prototype.hasOwnProperty.call(f,R)};var hGE=function(){this.JSC$9400_map_=new _.OT;this.JSC$9400_head_=new XLl("");this.JSC$9400_head_.next=this.JSC$9400_head_.prev=this.JSC$9400_head_},Znt=function(f,R){if(R=f.JSC$9400_map_.get(R))R.remove(),f.insert_(R);
return R};
_.X=hGE.prototype;_.X.get=function(f,R){return(f=Znt(this,f))?f.value:R};
_.X.set=function(f,R){var u=Znt(this,f);u?u.value=R:(u=new XLl(f,R),this.JSC$9400_map_.set(f,u),this.insert_(u))};
_.X.peek=function(){return this.JSC$9400_head_.next.value};
_.X.shift=function(){return lMY(this,this.JSC$9400_head_.next)};
_.X.pop=function(){return lMY(this,this.JSC$9400_head_.prev)};
_.X.remove=function(f){return(f=this.JSC$9400_map_.get(f))?(this.removeNode(f),!0):!1};
_.X.removeNode=function(f){f.remove();this.JSC$9400_map_.remove(f.key)};
_.X.getCount=function(){return this.JSC$9400_map_.getCount()};
_.X.isEmpty=function(){return this.JSC$9400_map_.isEmpty()};
_.X.getKeys=function(){return this.map(function(f,R){return R})};
_.X.getValues=function(){return this.map(function(f){return f})};
_.X.contains=function(f){return this.some(function(R){return R==f})};
_.X.containsKey=function(f){return this.JSC$9400_map_.containsKey(f)};
_.X.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9400_head_.prev)};
_.X.forEach=function(f,R){for(var u=this.JSC$9400_head_.next;u!=this.JSC$9400_head_;u=u.next)f.call(R,u.value,u.key,this)};
_.X.map=function(f,R){for(var u=[],O=this.JSC$9400_head_.next;O!=this.JSC$9400_head_;O=O.next)u.push(f.call(R,O.value,O.key,this));return u};
_.X.some=function(f,R){for(var u=this.JSC$9400_head_.next;u!=this.JSC$9400_head_;u=u.next)if(f.call(R,u.value,u.key,this))return!0;return!1};
_.X.every=function(f,R){for(var u=this.JSC$9400_head_.next;u!=this.JSC$9400_head_;u=u.next)if(!f.call(R,u.value,u.key,this))return!1;return!0};
_.X.insert_=function(f){f.next=this.JSC$9400_head_.next;f.prev=this.JSC$9400_head_;this.JSC$9400_head_.next=f;for(f.next.prev=f;this.getCount()>100;)this.removeNode(this.JSC$9400_head_.prev)};
var lMY=function(f,R){f.JSC$9400_head_!=R&&f.removeNode(R);return R.value},XLl=function(f,R){this.key=f;
this.value=R};
XLl.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var k$I=function(){uL.apply(this,arguments)};
_.y(k$I,uL);k$I.prototype.enqueue=function(f,R){this.insert(f,R)};var K6i=function(){var f=Error();f.name="SecurityError";throw f;},w47=function(){return{get opener(){return null},
get closed(){return!0},get location(){K6i()},get document(){K6i()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Jdq={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 HS7={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 qyA={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(HS7).join("|");var ANk=function(){function f(K){K.substr(-1)!==";"&&(K+=";");return l(K)}
for(var R=Object.keys(qyA).sort(TIn),u=Object.keys(HS7).sort(TIn),O=0,c=0;O<u.length;O++)R[c]===u[O]?(u[O]+=";?",c++):u[O]+=";";var h=new RegExp("&(?:"+u.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),l=IS5();return function(K){return String(K).replace(h,f)}}();/*

 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 aMY={};var F6i=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"),wLY=/[\\&]/,mLC=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Q1E=RegExp('[&<>"]',"g"),W6C=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),ESA=function(f){return f.charCodeAt(0)===92?f.charAt(1):ANk(f)},tkk=function(f){return wLY.test(f)?f.replace(mLC,ESA):f},CjC=function(f){try{var R,u="";
if(typeof c!=="string"){var O=c;var c=";/?:@&=+$,-_.!~*'()#"}typeof O==="undefined"&&(O=!0);var h,l=aMY[c];if(l)var K=l;else{l=aMY[c]=[];for(h=0;h<128;h++){var q=String.fromCharCode(h);/^[0-9a-z]$/i.test(q)?l.push(q):l.push("%"+("0"+h.toString(16).toUpperCase()).slice(-2))}for(h=0;h<c.length;h++)l[c.charCodeAt(h)]=c[h];K=l}var F=0;for(R=f.length;F<R;F++){var w=f.charCodeAt(F);if(O&&w===37&&F+2<R&&/^[0-9a-f]{2}$/i.test(f.slice(F+1,F+3)))u+=f.slice(F,F+3),F+=2;else if(w<128)u+=K[w];else if(w>=55296&&
w<=57343){if(w>=55296&&w<=56319&&F+1<R){var m=f.charCodeAt(F+1);if(m>=56320&&m<=57343){u+=encodeURIComponent(f[F]+f[F+1]);F++;continue}}u+="%EF%BF%BD"}else u+=encodeURIComponent(f[F])}return u}catch(W){return f}},yNY=function(f){switch(f){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return f}},hL=function(f,R){return Q1E.test(f)?R?f.replace(W6C,yNY):f.replace(Q1E,yNY):f};/*

 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 ZV;if(String.fromCodePoint)ZV=function(f){try{return String.fromCodePoint(f)}catch(R){if(R instanceof RangeError)return String.fromCharCode(65533);throw R;}};
else{var dLf=String.fromCharCode,NYC=Math.floor;ZV=function(){var f=[],R=-1,u=arguments.length;if(!u)return"";for(var O="";++R<u;){var c=Number(arguments[R]);if(!isFinite(c)||c<0||c>1114111||NYC(c)!==c)return String.fromCharCode(65533);if(c<=65535)f.push(c);else{c-=65536;var h=(c>>10)+55296;c=c%1024+56320;f.push(h,c)}if(R+1===u||f.length>16384)O+=dLf.apply(null,f),f.length=0}return O}};var L6F=function(f){this.root=this.current=f;this.entering=!0};
L6F.prototype.next=function(){var f=this.current,R=this.entering;if(f===null)return null;a:switch(f._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}R&&u?f._firstChild?(this.current=f._firstChild,this.entering=!0):this.entering=!1:f===this.root?this.current=null:f._next===null?(this.current=
f._parent,this.entering=!1):(this.current=f._next,this.entering=!0);return{entering:R,node:f}};
var k7=function(f,R){this._type=f;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=R;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};
k7.prototype.appendChild=function(f){lL(f);f._parent=this;this._lastChild?(this._lastChild._next=f,f._prev=this._lastChild):this._firstChild=f;this._lastChild=f};
var lL=function(f){f._prev?f._prev._next=f._next:f._parent&&(f._parent._firstChild=f._next);f._next?f._next._prev=f._prev:f._parent&&(f._parent._lastChild=f._prev);f._parent=null;f._next=null;f._prev=null},bnC=function(f,R){lL(R);
R._next=f._next;R._next&&(R._next._prev=R);R._prev=f;f._next=R;R._parent=f._parent;R._next||(R._parent._lastChild=R)};
k7.prototype.insertBefore=function(f){lL(f);f._prev=this._prev;f._prev&&(f._prev._next=f);f._next=this;this._prev=f;f._parent=this._parent;f._prev||(f._parent._firstChild=f)};
_.Vy.Object.defineProperties(k7.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(f){this._literal=f}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(f){this._destination=f}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(f){this._title=f}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(f){this._info=f}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(f){this._level=f}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(f){this._listData.type=f}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(f){this._listData.tight=f}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(f){this._listData.start=f}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(f){this._onEnter=f}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(f){this._onExit=f}}});var Mgl=/[ \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,
Pk7={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 pLA=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]/),
j1f=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),DLI=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),JNf=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),zGG=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),TYf=/`+/,HnH=/^`+/,IMC=/\.\.\./g,MkF=/--+/g,PjY=/^<([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])?)*)>/,
ULC=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,eGf=/^ *(?:\n *)?/,G$A=/^[ \t\n\x0b\x0c\x0d]/,BYt=/[ \t\n\x0b\x0c\x0d]+/g,oSi=/^\s/,xLC=/ *$/,SyH=/^ */,$Lk=/^ *(?:\n|$)/,gSE=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),s1H=/^[^\n`\[\]\\!<&*_'"]+/m,kH=function(f){var R=new k7("text");R._literal=f;return R},Ku=function(f){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=f||{}};
Ku.prototype.match=function(f){f=f.exec(this.subject.slice(this.pos));if(f===null)return null;this.pos+=f.index+f[0].length;return f[0]};
Ku.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var qj=function(f){f.match(eGf);return!0},nSH=function(f,R,u){var O=0;
var c=f.pos;if(R===39||R===34)O++,f.pos++;else for(;f.peek()===R;)O++,f.pos++;if(O===0)O=null;else{var h=c===0?"\n":f.subject.charAt(c-1);var l=f.peek();l=l===-1?"\n":ZV(l);var K=oSi.test(l);l=pLA.test(l);var q=oSi.test(h);var F=pLA.test(h);h=!K&&!(l&&!q&&!F);K=!q&&!(F&&!K&&!l);R===95?(q=h&&(!K||F),l=K&&(!h||l)):(q=R===39||R===34?h&&!K:h,l=K);f.pos=c;O={numdelims:O,can_open:q,can_close:l}}if(!O)return!1;c=O.numdelims;l=f.pos;f.pos+=c;l=R===39?"\u2019":R===34?"\u201c":f.subject.slice(l,f.pos);l=kH(l);
u.appendChild(l);f.delimiters={cc:R,numdelims:c,origdelims:c,node:l,previous:f.delimiters,next:null,can_open:O.can_open,can_close:O.can_close};f.delimiters.previous!==null&&(f.delimiters.previous.next=f.delimiters);return!0},VkE=function(f,R){R.previous!==null&&(R.previous.next=R.next);
R.next===null?f.delimiters=R.previous:R.next.previous=R.previous},Yyt=function(f,R){var u,O,c=[],h=!1;
c[95]=R;c[42]=R;c[39]=R;c[34]=R;for(u=f.delimiters;u!==null&&u.previous!==R;)u=u.previous;for(;u!==null;){var l=u.cc;if(u.can_close){var K=u.previous;for(O=!1;K!==null&&K!==R&&K!==c[l];){h=(u.can_open||K.can_close)&&(K.origdelims+u.origdelims)%3===0;if(K.cc===u.cc&&K.can_open&&!h){O=!0;break}K=K.previous}var q=u;if(l===42||l===95)if(O){var F=u.numdelims>=2&&K.numdelims>=2?2:1;var w=K.node;var m=u.node;K.numdelims-=F;u.numdelims-=F;w._literal=w._literal.slice(0,w._literal.length-F);m._literal=m._literal.slice(0,
m._literal.length-F);var W=new k7(F===1?"emph":"strong");for(F=w._next;F&&F!==m;){var C=F._next;lL(F);W.appendChild(F);F=C}bnC(w,W);F=K;C=u;F.next!==C&&(F.next=C,C.previous=F);K.numdelims===0&&(lL(w),VkE(f,K));u.numdelims===0&&(lL(m),K=u.next,VkE(f,u),u=K)}else u=u.next;else l===39?(u.node._literal="\u2019",O&&(K.node._literal="\u2018"),u=u.next):l===34&&(u.node._literal="\u201d",O&&(K.node.literal="\u201c"),u=u.next);O||h||(c[l]=q.previous,q.can_open||VkE(f,q))}else u=u.next}for(;f.delimiters!==
null&&f.delimiters!==R;)VkE(f,f.delimiters)},vSC=function(f){f=f.match(j1f);
return f===null?null:tkk(f.substr(1,f.length-2))},inE=function(f){var R=f.match(DLI);
if(R===null){R=f.pos;for(var u=0,O;(O=f.peek())!==-1;)if(O===92)f.pos+=1,f.peek()!==-1&&(f.pos+=1);else if(O===40)f.pos+=1,u+=1;else if(O===41)if(u<1)break;else f.pos+=1,--u;else if(G$A.exec(ZV(O))!==null)break;else f.pos+=1;R=f.subject.substr(R,f.pos-R);return CjC(tkk(R))}return CjC(tkk(R.substr(1,R.length-2)))},rNf=function(f){f=f.match(gSE);
return f===null||f.length>1001?0:f.length},fOC=function(f,R,u,O){f.brackets!==null&&(f.brackets.bracketAfter=!0);
f.brackets={node:R,previous:f.brackets,previousDelimiter:f.delimiters,index:u,image:O,active:!0}},RpY=function(f,R){var u;
return(u=f.match(s1H))?(f.options.smart?R.appendChild(kH(u.replace(IMC,"\u2026").replace(MkF,function(O){var c=0,h=0;O.length%3===0?h=O.length/3:O.length%2===0?c=O.length/2:O.length%3===2?(c=1,h=(O.length-2)/3):(c=2,h=(O.length-4)/3);O="";var l;for(l=0;l<h;l++)O+="\u2014";for(l=0;l<c;l++)O+="\u2013";return O}))):R.appendChild(kH(u)),!0):!1},u4I=function(f,R,u){f.subject=R;
f.pos=0;R=f.pos;var O=rNf(f);if(O===0)return 0;var c=f.subject.substr(0,O);if(f.peek()===58)f.pos++;else return f.pos=R,0;qj(f);O=inE(f);if(O===null||O.length===0)return f.pos=R,0;var h=f.pos;qj(f);var l=vSC(f);l===null&&(l="",f.pos=h);var K=!0;f.match($Lk)===null&&(l===""?K=!1:(l="",f.pos=h,K=f.match($Lk)!==null));if(!K)return f.pos=R,0;c=USn(c);if(c==="")return f.pos=R,0;u[c]||(u[c]={destination:O,title:l});return f.pos-R},OfC=function(f,R){var u,O=f.peek();
if(O===-1)return!1;switch(O){case 10:f.pos+=1;if((u=R._lastChild)&&u.type==="text"&&u._literal[u._literal.length-1]===" "){var c=u._literal[u._literal.length-2]===" ";u._literal=u._literal.replace(xLC,"");R.appendChild(new k7(c?"linebreak":"softbreak"))}else R.appendChild(new k7("softbreak"));f.match(SyH);u=!0;break;case 92:u=f.subject;f.pos+=1;f.peek()===10?(f.pos+=1,u=new k7("linebreak"),R.appendChild(u)):JNf.test(u.charAt(f.pos))?(R.appendChild(kH(u.charAt(f.pos))),f.pos+=1):R.appendChild(kH("\\"));
u=!0;break;case 96:a:if(u=f.match(HnH),u===null)u=!1;else{c=f.pos;for(var h;(h=f.match(TYf))!==null;)if(h===u){h=new k7("code");h._literal=f.subject.slice(c,f.pos-u.length).trim().replace(BYt," ");R.appendChild(h);u=!0;break a}f.pos=c;R.appendChild(kH(u));u=!0}break;case 42:case 95:u=nSH(f,O,R);break;case 39:case 34:u=f.options.smart&&nSH(f,O,R);break;case 91:u=f.pos;f.pos+=1;c=kH("[");R.appendChild(c);fOC(f,c,u,!1);u=!0;break;case 33:u=f.pos;f.pos+=1;f.peek()===91?(f.pos+=1,c=kH("!["),R.appendChild(c),
fOC(f,c,u+1,!0)):R.appendChild(kH("!"));u=!0;break;case 93:var l,K=!1,q;f.pos+=1;var F=f.pos;c=f.brackets;if(c===null)R.appendChild(kH("]"));else if(c.active){u=c.image;var w=f.pos;f.peek()===40&&(f.pos++,qj(f)&&(h=inE(f))!==null&&qj(f)&&(G$A.test(f.subject.charAt(f.pos-1))&&(l=vSC(f)),1)&&qj(f)&&f.peek()===41?(f.pos+=1,K=!0):f.pos=w);if(!K){var m=f.pos,W=rNf(f);W>2?q=f.subject.slice(m,m+W):c.bracketAfter||(q=f.subject.slice(c.index,F));W===0&&(f.pos=w);q&&(q=f.refmap[USn(q)])&&(h=q.destination,l=
q.title,K=!0)}if(K){F=new k7(u?"image":"link");F._destination=h;F._title=l||"";for(h=c.node._next;h;)l=h._next,lL(h),F.appendChild(h),h=l;R.appendChild(F);Yyt(f,c.previousDelimiter);f.brackets=f.brackets.previous;lL(c.node);if(!u)for(c=f.brackets;c!==null;)c.image||(c.active=!1),c=c.previous}else f.brackets=f.brackets.previous,f.pos=F,R.appendChild(kH("]"))}else R.appendChild(kH("]")),f.brackets=f.brackets.previous;u=!0;break;case 60:(u=f.match(PjY))?(u=u.slice(1,u.length-1),c=new k7("link"),c._destination=
CjC("mailto:"+u),c._title="",c.appendChild(kH(u)),R.appendChild(c),u=!0):(u=f.match(ULC))?(u=u.slice(1,u.length-1),c=new k7("link"),c._destination=CjC(u),c._title="",c.appendChild(kH(u)),R.appendChild(c),u=!0):u=!1;u||(u=f.match(F6i),u===null?u=!1:(c=new k7("html_inline"),c._literal=u,R.appendChild(c),u=!0));break;case 38:(u=f.match(zGG))?(R.appendChild(kH(ANk(u))),u=!0):u=!1;break;default:u=RpY(f,R)}u||(f.pos+=1,R.appendChild(kH(ZV(O))));return!0};
Ku.prototype.parseInlines=function(f){this.subject=f._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;OfC(this,f););f._string_content=null;Yyt(this,null)};
Ku.prototype.parse=Ku.prototype.parseInlines;var clA=[/./,/^<(?: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")],X2H=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],hpl=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,ZfE=/^[#`~*+_=<>0-9-\|]|\|/,lOF=/[^ \t\f\v\r\n]/,kJt=/^[*+-]/,Ktf=/^(\d{1,9})([.)])/,qUf=/^#{1,6}(?:[ \t]+|$)/,AlG=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,aOk=/^(?:`{3,}|~{3,})(?= *$)/,Fti=/^(?:=+|-+)[ \t]*$/,w2C=/\r\n|\n|\r/,Gat=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,BI2=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,mMf={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(f){return f!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(f,R){for(f=R._firstChild;f;){if(eKl(f)&&f._next){R._listData.tight=!1;break}for(var u=f._firstChild;u;){if(eKl(u)&&(f._next||u._next)){R._listData.tight=!1;break}u=u._next}f=f._next}},
canContain:function(f){return f==="item"},
acceptsLines:!1},block_quote:{continue:function(f){var R=f.currentLine;if(f.indented||Zv(R,f.nextNonspace)!==62)return 1;AL(f);aU(f,1,!1);hj(Zv(R,f.offset))&&aU(f,1,!0);return 0},
finalize:function(){},
canContain:function(f){return f!=="item"},
acceptsLines:!1},item:{continue:function(f,R){if(f.blank){if(R._firstChild==null)return 1;AL(f)}else if(f.indent>=R._listData.markerOffset+R._listData.padding)aU(f,R._listData.markerOffset+R._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(f){return f!=="item"&&!oje(f)},
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(f,R){var u=f.currentLine,O=f.indent;if(R._isFenced){if((O=O<=3&&u.charAt(f.nextNonspace)===R._fenceChar&&u.slice(f.nextNonspace).match(aOk))&&O[0].length>=R._fenceLength)return f.finalize(R,f.lineNumber),2;for(R=R._fenceOffset;R>0&&hj(Zv(u,f.offset));)aU(f,1,!0),R--}else if(O>=4)aU(f,4,!0);else if(f.blank)AL(f);else return 1;return 0},
finalize:function(f,R){if(R._isFenced){var u=R._string_content,O=u.indexOf("\n");f=u.slice(0,O);u=u.slice(O+1);R.info=tkk(f.trim());R._literal=u}else R._literal=R._string_content.replace(/(\n *)+$/,"\n");R._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(f,R){return!f.blank||R._htmlBlockType!==6&&R._htmlBlockType!==7?0:1},
finalize:function(f,R){R._literal=R._string_content.replace(/(\n *)+$/,"");R._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(f){return f.blank?1:0},
finalize:function(f,R){for(var u,O=!1;Zv(R._string_content,0)===91&&(u=u4I(f.inlineParser,R._string_content,f.refmap));)R._string_content=R._string_content.slice(u),O=!0;O&&!lOF.test(R._string_content)&&lL(R)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(f){return lE(f.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(f){return f=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(f,R){if(!R._rowIsDelimiter){f=R._isHeader?"th":"td";for(var u=R._parent._tableColumns,O=R._string_content,c=0,h="",l,K=R._sourcepos[0][0];c<O.length;){switch(O[c]){case "|":l&&(l._string_content=h.trim(),h="",l=null,u--,u<=0&&(c=O.length));break;default:if(!l){l=new k7(f,[[K,c],[K,c]]);var q=R._parent._columnAlignment,F=R._parent._tableColumns-u;q&&F<=q.length&&F>=0&&(l._alignment=q[F]);R.appendChild(l)}h+=O[c];l._sourcepos[1][1]=c}c++}l&&(l._string_content=h.trim());R._string_content=
""}},
canContain:function(f){return f!=="row"},
acceptsLines:!1}},Q4H=[function(f){if(f.indented||Zv(f.currentLine,f.nextNonspace)!==62)return 0;AL(f);aU(f,1,!1);hj(Zv(f.currentLine,f.offset))&&aU(f,1,!0);FU(f);f.addChild("block_quote",f.nextNonspace);return 1},
function(f){var R;if(!f.indented&&(R=f.currentLine.slice(f.nextNonspace).match(qUf))){AL(f);aU(f,R[0].length,!1);FU(f);var u=f.addChild("heading",f.nextNonspace);u.level=R[0].trim().length;u._string_content=f.currentLine.slice(f.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");aU(f,f.currentLine.length-f.offset);return 2}return 0},
function(f){var R;if(!f.indented&&(R=f.currentLine.slice(f.nextNonspace).match(AlG))){var u=R[0].length;FU(f);var O=f.addChild("code_block",f.nextNonspace);O._isFenced=!0;O._fenceLength=u;O._fenceChar=R[0][0];O._fenceOffset=f.indent;AL(f);aU(f,u,!1);return 2}return 0},
function(f,R){if(!f.indented&&Zv(f.currentLine,f.nextNonspace)===60){var u=f.currentLine.slice(f.nextNonspace),O;for(O=1;O<=7;O++)if(clA[O].test(u)&&(O<7||R.type!=="paragraph"))return FU(f),f.addChild("html_block",f.offset)._htmlBlockType=O,2}return 0},
function(f,R){var u;if(!f.indented&&R.type==="paragraph"&&(u=f.currentLine.slice(f.nextNonspace).match(Fti))){FU(f);var O=new k7("heading",R.sourcepos);O.level=u[0][0]==="="?1:2;O._string_content=R._string_content;bnC(R,O);lL(R);f.tip=O;aU(f,f.currentLine.length-f.offset,!1);return 2}return 0},
function(f){return!f.indented&&hpl.test(f.currentLine.slice(f.nextNonspace))?(FU(f),f.addChild("thematic_break",f.nextNonspace),aU(f,f.currentLine.length-f.offset,!1),2):0},
function(f,R){var u,O;if(!(O=f.indented&&R.type!=="list")){a:{var c=R,h=f.currentLine.slice(f.nextNonspace);O={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:f.indent};if(u=h.match(kJt))O.type="bullet",O.bulletChar=u[0][0];else{if(!(u=h.match(Ktf))||c.type==="paragraph"&&u[1]!=="1"){u=null;break a}O.type="ordered";O.start=parseInt(u[1],10);O.delimiter=u[2]}var l=Zv(f.currentLine,f.nextNonspace+u[0].length);if(l!==-1&&l!==9&&l!==32||c.type==="paragraph"&&!f.currentLine.slice(f.nextNonspace+
u[0].length).match(lOF))u=null;else{AL(f);aU(f,u[0].length,!0);c=f.column;h=f.offset;do aU(f,1,!0),l=Zv(f.currentLine,f.offset);while(f.column-c<5&&hj(l));l=Zv(f.currentLine,f.offset)===-1;var K=f.column-c;K>=5||K<1||l?(O.padding=u[0].length+1,f.column=c,f.offset=h,hj(Zv(f.currentLine,f.offset))&&aU(f,1,!0)):O.padding=u[0].length+K;u=O}}O=!u}if(O)return 0;FU(f);(O=f.tip.type!=="list")||(R=R._listData,O=!(R.type===u.type&&R.delimiter===u.delimiter&&R.bulletChar===u.bulletChar));O&&(R=f.addChild("list",
f.nextNonspace),R._listData=u);R=f.addChild("item",f.nextNonspace);R._listData=u;return 1},
function(f){var R;return((R=f.options.shouldParseIndentAsCodeBlock)!=null?R:1)&&f.indented&&f.tip.type!=="paragraph"&&!f.blank?(aU(f,4,!0),FU(f),f.addChild("code_block",f.offset),2):0},
function(f,R){var u=lE(f.currentLine),O=lE(f.lookahead);if(u!==0&&O<0&&Math.abs(u)==Math.abs(O)&&!oje(R.type)){FU(f);R=f.addChild("table",f.nextNonspace);R._tableRows=1;R._tableColumns=Math.abs(u);u=f.lookahead;if(BI2.test(u)){O=[];for(var c=0,h=!1,l=0,K=void 0;c<u.length;){var q=l>=3;switch(u[c]){case "-":l++;break;case "|":h&&(O.push(K),K=void 0,l=0);h=!0;break;case ":":K||q||(K="left"),!K&&q&&(K="right"),K==="left"&&q&&(K="center")}c++}u=O}else u=void 0;R._columnAlignment=u;R=f.addChild("row",
f.nextNonspace);R._isHeader=!0;aU(f,f.currentLine.length-f.offset,!1);R._string_content=f.currentLine;return 1}return 0},
function(f,R){if(R.type=="table"&&lE(f.currentLine)!==0){FU(f);var u=R;R=f.addChild("row",f.nextNonspace);lE(f.currentLine)<0?R._rowIsDelimiter=!0:u._tableRows+=1;aU(f,f.currentLine.length-f.offset,!1);R._string_content=f.currentLine;return 2}return 0}],eEX=function(){var f={shouldParseIndentAsCodeBlock:!1};
f=f===void 0?{}:f;this.lastMatchedContainer=this.doc=xSt();this.refmap={};this.lastLineLength=0;this.inlineParser=new Ku(f);this.options=f;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=mMf;this.blockStarts=Q4H},WtH=function(f){f.partiallyConsumedTab&&(f.offset+=1,f.tip._string_content+=" ".repeat(4-f.column%
4));
f.tip._string_content+=f.currentLine.slice(f.offset)+"\n"};
eEX.prototype.addChild=function(f,R){for(;!this.blocks[this.tip.type].canContain(f);)this.finalize(this.tip,this.lineNumber-1);f=new k7(f,[[this.lineNumber,R+1],[0,0]]);f._string_content="";this.tip.appendChild(f);return this.tip=f};
var FU=function(f){if(!f.allClosed){for(;f.oldtip!==f.lastMatchedContainer;){var R=f.oldtip._parent;f.finalize(f.oldtip,f.lineNumber-1);f.oldtip=R}f.allClosed=!0}},aU=function(f,R,u){for(var O=f.currentLine,c,h;R>0&&(h=O[f.offset]);)h==="\t"?(c=4-f.column%4,u?(f.partiallyConsumedTab=c>R,c=c>R?R:c,f.column+=c,f.offset+=f.partiallyConsumedTab?0:1,R-=c):(f.partiallyConsumedTab=!1,f.column+=c,f.offset+=1,--R)):(f.partiallyConsumedTab=!1,f.offset+=1,f.column+=1,--R)},AL=function(f){f.offset=f.nextNonspace;
f.column=f.nextNonspaceColumn;f.partiallyConsumedTab=!1},EsG=function(f){for(var R=f.currentLine,u=f.offset,O=f.column,c;(c=R.charAt(u))!=="";)if(c===" ")u++,O++;
else if(c==="\t")u++,O+=4-O%4;else break;f.blank=c==="\n"||c==="\r"||c==="";f.nextNonspace=u;f.nextNonspaceColumn=O;f.indent=f.nextNonspaceColumn-f.column;f.indented=f.indent>=4};
eEX.prototype.finalize=function(f,R){var u=f._parent;f._open=!1;f.sourcepos[1]=[R,this.lastLineLength];this.blocks[f.type].finalize(this,f);this.tip=u};
eEX.prototype.parse=function(f){this.tip=this.doc=xSt();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!f)return this.doc;this.options.time&&console.time("preparing input");var R=f.split(w2C),u=R.length;f.charCodeAt(f.length-1)===10&&--u;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(f=0;f<u;f++)a:{var O=void 0,c=R[f],h=R[f+1],l=!0,K=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;c.indexOf("\x00")!==-1&&(c=c.replace(/\0/g,"\ufffd"));this.currentLine=c;for(this.lookahead=h;(O=K._lastChild)&&O._open;){K=O;EsG(this);switch(this.blocks[K.type].continue(this,K)){case 0:break;case 1:l=!1;break;case 2:this.lastLineLength=c.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!l){K=K._parent;break}}this.allClosed=K===this.oldtip;this.lastMatchedContainer=
K;O=K.type!=="paragraph"&&mMf[K.type].acceptsLines;h=this.blockStarts;for(l=h.length;!O;){EsG(this);if(!this.indented&&!ZfE.test(c.slice(this.nextNonspace))){AL(this);break}for(var q=0;q<l;){var F=h[q](this,K);if(F===1){K=this.tip;break}else if(F===2){K=this.tip;O=!0;break}else q++}if(q===l){AL(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){FU(this);this.blank&&K.lastChild&&(K.lastChild._lastLineBlank=!0);O=K.type;h=this.blank&&!(O==="block_quote"||O==="code_block"&&K._isFenced||
O==="item"&&!K._firstChild&&K.sourcepos[0][0]===this.lineNumber);for(l=K;l;)l._lastLineBlank=h,l=l._parent;this.blocks[O].acceptsLines?(WtH(this),O==="html_block"&&K._htmlBlockType>=1&&K._htmlBlockType<=5&&X2H[K._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(K,this.lineNumber)):this.offset<c.length&&!this.blank&&(this.addChild("paragraph",this.offset),AL(this),WtH(this))}else WtH(this);this.lastLineLength=c.length}for(;this.tip;)this.finalize(this.tip,u);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");c=new L6F(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;u=c.next();)R=u.node,f=R.type,u.entering||f!=="paragraph"&&f!=="heading"&&f!=="th"&&f!="td"||this.inlineParser.parse(R);this.options.time&&console.timeEnd("inline parsing");return this.doc};SXe.prototype.render=function(f){f=new L6F(f);var R;this.buffer="";for(this.lastOut="\n";R=f.next();){var u=R.node.type;if(this[u])this[u](R.node,R.entering)}return this.buffer};
SXe.prototype.out=function(f){wm(this,f)};
var wm=function(f,R){f.buffer+=R;f.lastOut=R};
SXe.prototype.cr=function(){this.lastOut!=="\n"&&wm(this,"\n")};var twF=/^javascript:|vbscript:|file:|data:/i,CuE=/^data:image\/(?:png|gif|jpeg|webp)/i,ylf=function(f){return twF.test(f)&&!CuE.test(f)};
Ka.prototype=Object.create(SXe.prototype);_.X=Ka.prototype;_.X.text=function(f){this.out(f.literal)};
_.X.html_inline=function(f){this.options.safe?wm(this,"\x3c!-- raw HTML omitted --\x3e"):wm(this,f.literal)};
_.X.html_block=function(f){this.cr();this.options.safe?wm(this,"\x3c!-- raw HTML omitted --\x3e"):wm(this,f.literal);this.cr()};
_.X.softbreak=function(){wm(this,this.options.softbreak)};
_.X.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.X.link=function(f,R){var u=this.attrs(f);R?(this.options.safe&&ylf(f.destination)||u.push(["href",hL(f.destination,!0)]),f.title&&u.push(["title",hL(f.title,!0)]),this.tag("a",u)):this.tag("/a")};
_.X.image=function(f,R){R?(this.disableTags===0&&(this.options.safe&&ylf(f.destination)?wm(this,'<img src="" alt="'):wm(this,'<img src="'+hL(f.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(f.title&&wm(this,'" title="'+hL(f.title,!0)),wm(this,'" />')))};
_.X.emph=function(f,R){this.tag(R?"em":"/em")};
_.X.strong=function(f,R){this.tag(R?"strong":"/strong")};
_.X.paragraph=function(f,R){var u=f.parent.parent;f=this.attrs(f);u!==null&&u.type==="list"&&u.listTight||(R?(this.cr(),this.tag("p",f)):(this.tag("/p"),this.cr()))};
_.X.heading=function(f,R){var u="h"+f.level;f=this.attrs(f);R?(this.cr(),this.tag(u,f)):(this.tag("/"+u),this.cr())};
_.X.code=function(f){this.tag("code");this.out(f.literal);this.tag("/code")};
_.X.code_block=function(f){var R=f.info?f.info.split(/\s+/):[],u=this.attrs(f);R.length>0&&R[0].length>0&&u.push(["class","language-"+hL(R[0],!0)]);this.cr();this.tag("pre");this.tag("code",u);this.out(f.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.X.thematic_break=function(f){f=this.attrs(f);this.cr();this.tag("hr",f,!0);this.cr()};
_.X.block_quote=function(f,R){f=this.attrs(f);R?(this.cr(),this.tag("blockquote",f)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.X.list=function(f,R){var u=f.listType==="bullet"?"ul":"ol",O=this.attrs(f);R?(f=f.listStart,f!==null&&f!==1&&O.push(["start",f.toString()]),this.cr(),this.tag(u,O)):(this.cr(),this.tag("/"+u));this.cr()};
_.X.item=function(f,R){f=this.attrs(f);R?this.tag("li",f):(this.tag("/li"),this.cr())};
_.X.custom_inline=function(f,R){R&&f.onEnter?wm(this,f.onEnter):!R&&f.onExit&&wm(this,f.onExit)};
_.X.custom_block=function(f,R){this.cr();R&&f.onEnter?wm(this,f.onEnter):!R&&f.onExit&&wm(this,f.onExit);this.cr()};
_.X.table=function(f,R){f=this.attrs(f);R?(this.cr(),this.tag("table",f)):(this.tag("/table"),this.cr())};
_.X.row=function(f,R){f._rowIsDelimiter||(f=this.attrs(f),R?this.tag("tr",f):this.tag("/tr"))};
_.X.td=function(f,R){var u=this.attrs(f);f._alignment&&u.push(["align",f._alignment]);R?this.tag("td",u):this.tag("/td")};
_.X.th=function(f,R){var u=this.attrs(f);f._alignment&&u.push(["align",f._alignment]);R?this.tag("th",u):this.tag("/th")};
_.X.out=function(f){wm(this,hL(f,!1))};
_.X.tag=function(f,R,u){if(!(this.disableTags>0)){this.buffer+="<"+f;if(R&&R.length>0){f=0;for(var O;(O=R[f])!==void 0;)this.buffer+=" "+O[0]+'="'+O[1]+'"',f++}u&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.X.attrs=function(f){var R=[];this.options.sourcepos&&(f=f.sourcepos)&&R.push(["data-sourcepos",String(f[0][0])+":"+String(f[0][1])+"-"+String(f[1][0])+":"+String(f[1][1])]);return R};
Ka.prototype.text=Ka.prototype.text;Ka.prototype.html_inline=Ka.prototype.html_inline;Ka.prototype.html_block=Ka.prototype.html_block;Ka.prototype.softbreak=Ka.prototype.softbreak;Ka.prototype.linebreak=Ka.prototype.linebreak;Ka.prototype.link=Ka.prototype.link;Ka.prototype.image=Ka.prototype.image;Ka.prototype.emph=Ka.prototype.emph;Ka.prototype.strong=Ka.prototype.strong;Ka.prototype.paragraph=Ka.prototype.paragraph;Ka.prototype.heading=Ka.prototype.heading;Ka.prototype.code=Ka.prototype.code;
Ka.prototype.code_block=Ka.prototype.code_block;Ka.prototype.thematic_break=Ka.prototype.thematic_break;Ka.prototype.block_quote=Ka.prototype.block_quote;Ka.prototype.list=Ka.prototype.list;Ka.prototype.item=Ka.prototype.item;Ka.prototype.custom_inline=Ka.prototype.custom_inline;Ka.prototype.custom_block=Ka.prototype.custom_block;Ka.prototype.table=Ka.prototype.table;Ka.prototype.row=Ka.prototype.row;Ka.prototype.td=Ka.prototype.td;Ka.prototype.th=Ka.prototype.th;Ka.prototype.out=Ka.prototype.out;
Ka.prototype.tag=Ka.prototype.tag;Ka.prototype.attrs=Ka.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 dMC,N_i,aI0;(function(){function f(D,L){return D<L?-1:D>L?1:D>=L?0:NaN}
function R(D){return function(L,H){return f(D(L),H)}}
function u(){for(var D=0,L=arguments.length,H={},n;D<L;++D){if(!(n=arguments[D]+"")||n in H)throw Error("pe`"+n);H[n]=[]}return new O(H)}
function O(D){this._=D}
function c(D,L){return D.trim().split(/^|\s+/).map(function(H){var n="",Xn=H.indexOf(".");Xn>=0&&(n=H.slice(Xn+1),H=H.slice(0,Xn));if(H&&!L.hasOwnProperty(H))throw Error("qe`"+H);return{type:H,name:n}})}
function h(D,L,H){for(var n=0,Xn=D.length;n<Xn;++n)if(D[n].name===L){D[n]=bS2;D=D.slice(0,n).concat(D.slice(n+1));break}H!=null&&D.push({name:L,value:H});return D}
function l(D){var L=D,H=L.indexOf(":");H>=0&&(L=D.slice(0,H))!=="xmlns"&&(D=D.slice(H+1));return Sn.hasOwnProperty(L)?{space:Sn[L],local:D}:D}
function K(D){return function(){var L=this.ownerDocument,H=this.namespaceURI;return H==="http://www.w3.org/1999/xhtml"&&L.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?L.createElement(D):L.createElementNS(H,D)}}
function q(D){return function(){return this.ownerDocument.createElementNS(D.space,D.local)}}
function F(D){D=l(D);return(D.local?q:K)(D)}
function w(){}
function m(D){return D==null?w:function(){return this.querySelector(D)}}
function W(D){return Array(D.length)}
function C(D,L){this.ownerDocument=D.ownerDocument;this.namespaceURI=D.namespaceURI;this._next=null;this._parent=D;this.__data__=L}
function d(D){return function(){return D}}
function p(D,L,H,n,Xn,An){for(var Ee=0,Lh,r7=L.length,V2=An.length;Ee<V2;++Ee)(Lh=L[Ee])?(Lh.__data__=An[Ee],n[Ee]=Lh):H[Ee]=new C(D,An[Ee]);for(;Ee<r7;++Ee)if(Lh=L[Ee])Xn[Ee]=Lh}
function J(D,L,H,n,Xn,An,Ee){var Lh,r7,V2={},fC=L.length,lf=An.length,gH=Array(fC),aw;for(Lh=0;Lh<fC;++Lh)if(r7=L[Lh])gH[Lh]=aw="$"+Ee.call(r7,r7.__data__,Lh,L),aw in V2?Xn[Lh]=r7:V2[aw]=r7;for(Lh=0;Lh<lf;++Lh)aw="$"+Ee.call(D,An[Lh],Lh,An),(r7=V2[aw])?(n[Lh]=r7,r7.__data__=An[Lh],V2[aw]=null):H[Lh]=new C(D,An[Lh]);for(Lh=0;Lh<fC;++Lh)(r7=L[Lh])&&V2[gH[Lh]]===r7&&(Xn[Lh]=r7)}
function M(D,L){return D<L?-1:D>L?1:D>=L?0:NaN}
function P(D){return function(){this.removeAttribute(D)}}
function g(D){return function(){this.removeAttributeNS(D.space,D.local)}}
function x(D,L){return function(){this.setAttribute(D,L)}}
function fh(D,L){return function(){this.setAttributeNS(D.space,D.local,L)}}
function V(D,L){return function(){var H=L.apply(this,arguments);H==null?this.removeAttribute(D):this.setAttribute(D,H)}}
function ZD(D,L){return function(){var H=L.apply(this,arguments);H==null?this.removeAttributeNS(D.space,D.local):this.setAttributeNS(D.space,D.local,H)}}
function mP(D){return function(){this.style.removeProperty(D)}}
function NX(D,L,H){return function(){this.style.setProperty(D,L,H)}}
function jt(D,L,H){return function(){var n=L.apply(this,arguments);n==null?this.style.removeProperty(D):this.style.setProperty(D,n,H)}}
function Jn(D,L){return D.style.getPropertyValue(L)||(D.ownerDocument&&D.ownerDocument.defaultView||D.document&&D||D.defaultView).getComputedStyle(D,null).getPropertyValue(L)}
function zq(D){return function(){delete this[D]}}
function St(D,L){return function(){this[D]=L}}
function Gq(D,L){return function(){var H=L.apply(this,arguments);H==null?delete this[D]:this[D]=H}}
function LC(){this.textContent=""}
function wN(D){return function(){this.textContent=D}}
function GI(D){return function(){var L=D.apply(this,arguments);this.textContent=L==null?"":L}}
function ak(){this.innerHTML=""}
function kC(D){return function(){this.innerHTML=D}}
function Rw(D){return function(){var L=D.apply(this,arguments);this.innerHTML=L==null?"":L}}
function KC(){return null}
function qe(){var D=this.parentNode;D&&D.removeChild(this)}
function LE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function k5(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function yA(D,L,H){D=HG(D,L,H);return function(n){var Xn=n.relatedTarget;Xn&&(Xn===this||Xn.compareDocumentPosition(this)&8)||D.call(this,n)}}
function HG(D,L,H){return function(){D.call(this,this.__data__,L,H)}}
function GX(D){return D.trim().split(/^|\s+/).map(function(L){var H="",n=L.indexOf(".");n>=0&&(H=L.slice(n+1),L=L.slice(0,n));return{type:L,name:H}})}
function bf(D){return function(){var L=this.__on;if(L){for(var H=0,n=-1,Xn=L.length,An;H<Xn;++H)(An=L[H],D.type&&An.type!==D.type||An.name!==D.name)?L[++n]=An:this.removeEventListener(An.type,An.listener,An.capture);++n?L.length=n:delete this.__on}}}
function $C(D,L,H){var n=nwH.hasOwnProperty(D.type)?yA:HG;return function(Xn,An,Ee){Xn=this.__on;var Lh;An=n(L,An,Ee);if(Xn){Ee=0;for(var r7=Xn.length;Ee<r7;++Ee)if((Lh=Xn[Ee]).type===D.type&&Lh.name===D.name){this.removeEventListener(Lh.type,Lh.listener,Lh.capture);this.addEventListener(Lh.type,Lh.listener=An,Lh.capture=H);Lh.value=L;return}}this.addEventListener(D.type,An,H);Lh={type:D.type,name:D.name,value:L,listener:An,capture:H};Xn?Xn.push(Lh):this.__on=[Lh]}}
function Bl(D,L,H){var n=D.ownerDocument&&D.ownerDocument.defaultView||D.document&&D||D.defaultView,Xn=n.CustomEvent;typeof Xn==="function"?Xn=new Xn(L,H):(Xn=n.document.createEvent("Event"),H?(Xn.initEvent(L,H.bubbles,H.cancelable),Xn.detail=H.detail):Xn.initEvent(L,!1,!1));D.dispatchEvent(Xn)}
function qt(D,L){return function(){return Bl(this,D,L)}}
function Y5(D,L){return function(){return Bl(this,D,L.apply(this,arguments))}}
function tf(D,L){this._groups=D;this._parents=L}
function lK(){return new tf([[document.documentElement]],p9K)}
function CC(){this._="@"+(++jGt).toString(36)}
function Eh(D,L,H){D.prototype=L.prototype=H;H.constructor=D}
function k_(D,L){D=Object.create(D.prototype);for(var H in L)D[H]=L[H];return D}
function kM(){}
function Uh(D){var L;D=(D+"").trim().toLowerCase();return(L=DSa.exec(D))?(L=parseInt(L[1],16),new vt(L>>8&15|L>>4&240,L>>4&15|L&240,(L&15)<<4|L&15,1)):(L=JdX.exec(D))?Wl(parseInt(L[1],16)):(L=zKX.exec(D))?new vt(L[1],L[2],L[3],1):(L=TI5.exec(D))?new vt(L[1]*255/100,L[2]*255/100,L[3]*255/100,1):(L=HSw.exec(D))?Kv(L[1],L[2],L[3],L[4]):(L=ISm.exec(D))?Kv(L[1]*255/100,L[2]*255/100,L[3]*255/100,L[4]):(L=Mgz.exec(D))?Ob(L[1],L[2]/100,L[3]/100,1):(L=Pkw.exec(D))?Ob(L[1],L[2]/100,L[3]/100,L[4]):VHf.hasOwnProperty(D)?
Wl(VHf[D]):D==="transparent"?new vt(NaN,NaN,NaN,0):null}
function Wl(D){return new vt(D>>16&255,D>>8&255,D&255,1)}
function Kv(D,L,H,n){n<=0&&(D=L=H=NaN);return new vt(D,L,H,n)}
function BG(D){D instanceof kM||(D=Uh(D));if(!D)return new vt;D=D.rgb();return new vt(D.r,D.g,D.b,D.opacity)}
function bK(D,L,H,n){return arguments.length===1?BG(D):new vt(D,L,H,n==null?1:n)}
function vt(D,L,H,n){this.r=+D;this.g=+L;this.b=+H;this.opacity=+n}
function iK(D){D=Math.max(0,Math.min(255,Math.round(D)||0));return(D<16?"0":"")+D.toString(16)}
function Ob(D,L,H,n){n<=0?D=L=H=NaN:H<=0||H>=1?D=L=NaN:L<=0&&(D=NaN);return new Ct(D,L,H,n)}
function Ek(D){if(D instanceof Ct)return new Ct(D.h,D.s,D.l,D.opacity);D instanceof kM||(D=Uh(D));if(!D)return new Ct;if(D instanceof Ct)return D;D=D.rgb();var L=D.r/255,H=D.g/255,n=D.b/255,Xn=Math.min(L,H,n),An=Math.max(L,H,n),Ee=NaN,Lh=An-Xn,r7=(An+Xn)/2;Lh?(Ee=L===An?(H-n)/Lh+(H<n)*6:H===An?(n-L)/Lh+2:(L-H)/Lh+4,Lh/=r7<.5?An+Xn:2-An-Xn,Ee*=60):Lh=r7>0&&r7<1?0:Ee;return new Ct(Ee,Lh,r7,D.opacity)}
function cf(D,L,H,n){return arguments.length===1?Ek(D):new Ct(D,L,H,n==null?1:n)}
function Ct(D,L,H,n){this.h=+D;this.s=+L;this.l=+H;this.opacity=+n}
function Gd(D,L,H){return(D<60?L+(H-L)*D/60:D<180?H:D<240?L+(H-L)*(240-D)/60:L)*255}
function AZ(D){if(D instanceof tn)return new tn(D.l,D.a,D.b,D.opacity);if(D instanceof EE){if(isNaN(D.h))return new tn(D.l,0,0,D.opacity);var L=D.h*YQA;return new tn(D.l,Math.cos(L)*D.c,Math.sin(L)*D.c,D.opacity)}D instanceof vt||(D=BG(D));var H=X5(D.r),n=X5(D.g),Xn=X5(D.b);L=MX(.2225045*H+.7168786*n+.0606169*Xn);if(H===n&&n===Xn)var An=H=L;else An=MX((.4360747*H+.3850649*n+.1430804*Xn)/.96422),H=MX((.0139322*H+.0971045*n+.7141733*Xn)/.82521);return new tn(116*L-16,500*(An-L),200*(L-H),D.opacity)}
function tn(D,L,H,n){this.l=+D;this.a=+L;this.b=+H;this.opacity=+n}
function MX(D){return D>US5?Math.pow(D,1/3):D/vwF+i5i}
function o7(D){return D>Xp?D*D*D:vwF*(D-i5i)}
function ml(D){return 255*(D<=.0031308?12.92*D:1.055*Math.pow(D,1/2.4)-.055)}
function X5(D){return(D/=255)<=.04045?D/12.92:Math.pow((D+.055)/1.055,2.4)}
function Dp(D){if(D instanceof EE)return new EE(D.h,D.c,D.l,D.opacity);D instanceof tn||(D=AZ(D));if(D.a===0&&D.b===0)return new EE(NaN,0,D.l,D.opacity);var L=Math.atan2(D.b,D.a)*rVE;return new EE(L<0?L+360:L,Math.sqrt(D.a*D.a+D.b*D.b),D.l,D.opacity)}
function A9(D,L,H,n){return arguments.length===1?Dp(D):new EE(D,L,H,n==null?1:n)}
function EE(D,L,H,n){this.h=+D;this.c=+L;this.l=+H;this.opacity=+n}
function wH(D,L,H,n){if(arguments.length===1){var Xn=D;if(Xn instanceof Wt)Xn=new Wt(Xn.h,Xn.s,Xn.l,Xn.opacity);else{Xn instanceof vt||(Xn=BG(Xn));var An=Xn.g/255,Ee=Xn.b/255,Lh=(f$H*Ee+Xn.r/255*-1.7884503806-3.5172982438*An)/(f$H+-1.7884503806-3.5172982438);Ee-=Lh;var r7=(1.97294*(An-Lh)- -.29227*Ee)/-.90649;Ee=(An=Math.sqrt(r7*r7+Ee*Ee)/(1.97294*Lh*(1-Lh)))?Math.atan2(r7,Ee)*rVE-120:NaN;Xn=new Wt(Ee<0?Ee+360:Ee,An,Lh,Xn.opacity)}}else Xn=new Wt(D,L,H,n==null?1:n);return Xn}
function Wt(D,L,H,n){this.h=+D;this.s=+L;this.l=+H;this.opacity=+n}
function a8(D,L,H,n,Xn){var An=D*D,Ee=An*D;return((1-3*D+3*An-Ee)*L+(4-6*An+3*Ee)*H+(1+3*D+3*An-3*Ee)*n+Ee*Xn)/6}
function hf(D){return function(){return D}}
function QK(D,L){return function(H){return D+H*L}}
function FT(D,L,H){return D=Math.pow(D,H),L=Math.pow(L,H)-D,H=1/H,function(n){return Math.pow(D+n*L,H)}}
function Me(D,L){var H=L-D;return H?QK(D,H>180||H<-180?H-360*Math.round(H/360):H):hf(isNaN(D)?L:D)}
function tu(D){return(D=+D)===1?KB:function(L,H){return H-L?FT(L,H,D):hf(isNaN(L)?H:L)}}
function KB(D,L){var H=L-D;return H?QK(D,H):hf(isNaN(D)?L:D)}
function Gw(D){return function(L){var H=L.length,n=Array(H),Xn=Array(H),An=Array(H),Ee;for(Ee=0;Ee<H;++Ee){var Lh=bK(L[Ee]);n[Ee]=Lh.r||0;Xn[Ee]=Lh.g||0;An[Ee]=Lh.b||0}n=D(n);Xn=D(Xn);An=D(An);Lh.opacity=1;return function(r7){Lh.r=n(r7);Lh.g=Xn(r7);Lh.b=An(r7);return Lh+""}}}
function $5(D,L){return D=+D,L-=D,function(H){return D+L*H}}
function ct(D){return function(){return D}}
function KE(D){return function(L){return D(L)+""}}
function rN(D,L){var H=L0n.lastIndex=bJ2.lastIndex=0,n,Xn,An,Ee=-1,Lh=[],r7=[];D+="";for(L+="";(n=L0n.exec(D))&&(Xn=bJ2.exec(L));)(An=Xn.index)>H&&(An=L.slice(H,An),Lh[Ee]?Lh[Ee]+=An:Lh[++Ee]=An),(n=n[0])===(Xn=Xn[0])?Lh[Ee]?Lh[Ee]+=Xn:Lh[++Ee]=Xn:(Lh[++Ee]=null,r7.push({i:Ee,x:$5(n,Xn)})),H=bJ2.lastIndex;H<L.length&&(An=L.slice(H),Lh[Ee]?Lh[Ee]+=An:Lh[++Ee]=An);return Lh.length<2?r7[0]?KE(r7[0].x):ct(L):(L=r7.length,function(V2){for(var fC=0,lf;fC<L;++fC)Lh[(lf=r7[fC]).i]=lf.x(V2);return Lh.join("")})}
function bC(D,L,H,n,Xn,An){var Ee,Lh,r7;if(Ee=Math.sqrt(D*D+L*L))D/=Ee,L/=Ee;if(r7=D*H+L*n)H-=D*r7,n-=L*r7;if(Lh=Math.sqrt(H*H+n*n))H/=Lh,n/=Lh,r7/=Lh;D*n<L*H&&(D=-D,L=-L,r7=-r7,Ee=-Ee);return{translateX:Xn,translateY:An,rotate:Math.atan2(L,D)*RxA,skewX:Math.atan(r7)*RxA,scaleX:Ee,scaleY:Lh}}
function nG(D,L,H,n){function Xn(V2){return V2.length?V2.pop()+" ":""}
function An(V2,fC,lf,gH,aw,mv){V2!==lf||fC!==gH?(aw=aw.push("translate(",null,L,null,H),mv.push({i:aw-4,x:$5(V2,lf)},{i:aw-2,x:$5(fC,gH)})):(lf||gH)&&aw.push("translate("+lf+L+gH+H)}
function Ee(V2,fC,lf,gH){V2!==fC?(V2-fC>180?fC+=360:fC-V2>180&&(V2+=360),gH.push({i:lf.push(Xn(lf)+"rotate(",null,n)-2,x:$5(V2,fC)})):fC&&lf.push(Xn(lf)+"rotate("+fC+n)}
function Lh(V2,fC,lf,gH){V2!==fC?gH.push({i:lf.push(Xn(lf)+"skewX(",null,n)-2,x:$5(V2,fC)}):fC&&lf.push(Xn(lf)+"skewX("+fC+n)}
function r7(V2,fC,lf,gH,aw,mv){V2!==lf||fC!==gH?(aw=aw.push(Xn(aw)+"scale(",null,",",null,")"),mv.push({i:aw-4,x:$5(V2,lf)},{i:aw-2,x:$5(fC,gH)})):lf===1&&gH===1||aw.push(Xn(aw)+"scale("+lf+","+gH+")")}
return function(V2,fC){var lf=[],gH=[];V2=D(V2);fC=D(fC);An(V2.translateX,V2.translateY,fC.translateX,fC.translateY,lf,gH);Ee(V2.rotate,fC.rotate,lf,gH);Lh(V2.skewX,fC.skewX,lf,gH);r7(V2.scaleX,V2.scaleY,fC.scaleX,fC.scaleY,lf,gH);V2=fC=null;return function(aw){for(var mv=-1,x3=gH.length,tm;++mv<x3;)lf[(tm=gH[mv]).i]=tm.x(aw);return lf.join("")}}}
function JT(D){return function(L,H){var n=D((L=cf(L)).h,(H=cf(H)).h),Xn=KB(L.s,H.s),An=KB(L.l,H.l),Ee=KB(L.opacity,H.opacity);return function(Lh){L.h=n(Lh);L.s=Xn(Lh);L.l=An(Lh);L.opacity=Ee(Lh);return L+""}}}
function E0(D){return function(L,H){var n=D((L=A9(L)).h,(H=A9(H)).h),Xn=KB(L.c,H.c),An=KB(L.l,H.l),Ee=KB(L.opacity,H.opacity);return function(Lh){L.h=n(Lh);L.c=Xn(Lh);L.l=An(Lh);L.opacity=Ee(Lh);return L+""}}}
function tM(D){return function n(H){function Xn(An,Ee){var Lh=D((An=wH(An)).h,(Ee=wH(Ee)).h),r7=KB(An.s,Ee.s),V2=KB(An.l,Ee.l),fC=KB(An.opacity,Ee.opacity);return function(lf){An.h=Lh(lf);An.s=r7(lf);An.l=V2(Math.pow(lf,H));An.opacity=fC(lf);return An+""}}
H=+H;Xn.gamma=n;return Xn}(1)}
function EH(){return ep||(u1H(Sht),ep=xp.now()+Ay0)}
function Sht(){ep=0}
function tg(){this._call=this._time=this._next=null}
function od(D,L,H){var n=new tg;n.restart(D,L,H);return n}
function xq(){ep=(a1t=xp.now())+Ay0;ha=Sx=0;try{EH();++ha;for(var D=FMe,L;D;)(L=ep-D._time)>=0&&D._call.call(null,L),D=D._next;--ha}finally{ha=0;D=FMe;for(var H=Infinity;D;)if(D._call){H>D._time&&(H=D._time);var n=D;D=D._next}else L=D._next,D._next=null,D=n?n._next=L:FMe=L;$p=n;Sf(H);ep=0}}
function aRP(){var D=xp.now(),L=D-a1t;L>1E3&&(Ay0-=L,a1t=D)}
function Sf(D){ha||(Sx&&(Sx=clearTimeout(Sx)),D-ep>24?(D<Infinity&&(Sx=setTimeout(xq,D-xp.now()-Ay0)),gD&&(gD=clearInterval(gD))):(gD||(a1t=xp.now(),gD=setInterval(aRP,1E3)),ha=1,u1H(xq)))}
function OJC(D,L,H){var n=new tg;L=L==null?0:+L;n.restart(function(Xn){n.stop();D(Xn+L)},L,H);
return n}
function pet(D,L,H,n,Xn,An){var Ee=D.__transition;if(!Ee)D.__transition={};else if(H in Ee)return;eKz(D,H,{name:L,index:n,group:Xn,on:Gal,tween:BIS,time:An.time,delay:An.delay,duration:An.duration,ease:An.ease,timer:null,state:0})}
function jb5(D,L){D=lz(D,L);if(D.state>0)throw Error("re");return D}
function GY(D,L){D=lz(D,L);if(D.state>2)throw Error("se");return D}
function lz(D,L){D=D.__transition;if(!D||!(D=D[L]))throw Error("te");return D}
function eKz(D,L,H){function n(r7){var V2,fC;if(H.state!==1)return An();for(gH in Ee){var lf=Ee[gH];if(lf.name===H.name){if(lf.state===3)return OJC(n);lf.state===4?(lf.state=6,lf.timer.stop(),lf.on.call("interrupt",D,D.__data__,lf.index,lf.group),delete Ee[gH]):+gH<L&&(lf.state=6,lf.timer.stop(),delete Ee[gH])}}OJC(function(){H.state===3&&(H.state=4,H.timer.restart(Xn,H.delay,H.time),Xn(r7))});
H.state=2;H.on.call("start",D,D.__data__,H.index,H.group);if(H.state===2){H.state=3;Lh=Array(fC=H.tween.length);var gH=0;for(V2=-1;gH<fC;++gH)if(lf=H.tween[gH].value.call(D,D.__data__,H.index,H.group))Lh[++V2]=lf;Lh.length=V2+1}}
function Xn(r7){r7=r7<H.duration?H.ease.call(null,r7/H.duration):(H.timer.restart(An),H.state=5,1);for(var V2=-1,fC=Lh.length;++V2<fC;)Lh[V2].call(null,r7);H.state===5&&(H.on.call("end",D,D.__data__,H.index,H.group),An())}
function An(){H.state=6;H.timer.stop();delete Ee[L];for(var r7 in Ee)return;delete D.__transition}
var Ee=D.__transition,Lh;Ee[L]=H;H.timer=od(function(r7){H.state=1;H.timer.restart(n,H.delay,H.time);H.delay<=r7&&n(r7-H.delay)},0,H.time)}
function ojh(D,L){var H,n;return function(){var Xn=GY(this,D),An=Xn.tween;if(An!==H){n=H=An;An=0;for(var Ee=n.length;An<Ee;++An)if(n[An].name===L){n=n.slice();n.splice(An,1);break}}Xn.tween=n}}
function xSl(D,L,H){var n,Xn;if(typeof H!=="function")throw Error();return function(){var An=GY(this,D),Ee=An.tween;if(Ee!==n){Xn=(n=Ee).slice();Ee={name:L,value:H};for(var Lh=0,r7=Xn.length;Lh<r7;++Lh)if(Xn[Lh].name===L){Xn[Lh]=Ee;break}Lh===r7&&Xn.push(Ee)}An.tween=Xn}}
function DfP(D,L,H){var n=D._id;D.each(function(){var Xn=GY(this,n);(Xn.value||(Xn.value={}))[L]=H.apply(this,arguments)});
return function(Xn){return lz(Xn,n).value[L]}}
function cOE(D,L){var H;return(typeof L==="number"?$5:L instanceof Uh?XeA:(H=Uh(L))?(L=H,XeA):rN)(D,L)}
function SXh(D){return function(){this.removeAttribute(D)}}
function $Sw(D){return function(){this.removeAttributeNS(D.space,D.local)}}
function gje(D,L,H){var n,Xn;return function(){var An=this.getAttribute(D);return An===H?null:An===n?Xn:Xn=L(n=An,H)}}
function sG9(D,L,H){var n,Xn;return function(){var An=this.getAttributeNS(D.space,D.local);return An===H?null:An===n?Xn:Xn=L(n=An,H)}}
function nje(D,L,H){var n,Xn,An;return function(){var Ee=H(this);if(Ee==null)return void this.removeAttribute(D);var Lh=this.getAttribute(D);return Lh===Ee?null:Lh===n&&Ee===Xn?An:An=L(n=Lh,Xn=Ee)}}
function Vga(D,L,H){var n,Xn,An;return function(){var Ee=H(this);if(Ee==null)return void this.removeAttributeNS(D.space,D.local);var Lh=this.getAttributeNS(D.space,D.local);return Lh===Ee?null:Lh===n&&Ee===Xn?An:An=L(n=Lh,Xn=Ee)}}
function YXz(D,L){function H(){var n=this,Xn=L.apply(n,arguments);return Xn&&function(An){n.setAttributeNS(D.space,D.local,Xn(An))}}
H._value=L;return H}
function vjh(D,L){function H(){var n=this,Xn=L.apply(n,arguments);return Xn&&function(An){n.setAttribute(D,Xn(An))}}
H._value=L;return H}
function iS9(D,L){return function(){jb5(this,D).delay=+L.apply(this,arguments)}}
function rdN(D,L){return L=+L,function(){jb5(this,D).delay=L}}
function fY5(D,L){return function(){GY(this,D).duration=+L.apply(this,arguments)}}
function Rvt(D,L){return L=+L,function(){GY(this,D).duration=L}}
function uAm(D,L){if(typeof L!=="function")throw Error();return function(){GY(this,D).ease=L}}
function O6K(D){return(D+"").trim().split(/^|\s+/).every(function(L){var H=L.indexOf(".");H>=0&&(L=L.slice(0,H));return!L||L==="start"})}
function cMe(D,L,H){var n,Xn,An=O6K(L)?jb5:GY;return function(){var Ee=An(this,D),Lh=Ee.on;if(Lh!==n)(Xn=(n=Lh).copy()).on(L,H);Ee.on=Xn}}
function XoX(D){return function(){var L=this.parentNode,H;for(H in this.__transition)if(+H!==D)return;L&&L.removeChild(this)}}
function hvN(D,L){var H,n,Xn;return function(){var An=Jn(this,D),Ee=(this.style.removeProperty(D),Jn(this,D));return An===Ee?null:An===H&&Ee===n?Xn:Xn=L(H=An,n=Ee)}}
function Z6S(D){return function(){this.style.removeProperty(D)}}
function lY5(D,L,H){var n,Xn;return function(){var An=Jn(this,D);return An===H?null:An===n?Xn:Xn=L(n=An,H)}}
function kR2(D,L,H){var n,Xn,An;return function(){var Ee=Jn(this,D),Lh=H(this);Lh==null&&(Lh=(this.style.removeProperty(D),Jn(this,D)));return Ee===Lh?null:Ee===n&&Lh===Xn?An:An=L(n=Ee,Xn=Lh)}}
function KOt(D,L,H){function n(){var Xn=this,An=L.apply(Xn,arguments);return An&&function(Ee){Xn.style.setProperty(D,An(Ee),H)}}
n._value=L;return n}
function q0X(D){return function(){this.textContent=D}}
function AMK(D){return function(){var L=D(this);this.textContent=L==null?"":L}}
function Kq(D,L,H,n){this._groups=D;this._parents=L;this._name=H;this._id=n}
function JOe(D){return{type:D}}
function zxP(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function wQ7(){}
function hxE(D,L){var H=new wQ7;if(D instanceof wQ7)D.each(function(Ee,Lh){H.set(Lh,Ee)});
else if(Array.isArray(D)){var n=-1,Xn=D.length,An;if(L==null)for(;++n<Xn;)H.set(n,D[n]);else for(;++n<Xn;)H.set(L(An=D[n],n,D),An)}else if(D)for(n in D)H.set(n,D[n]);return H}
function mKl(){}
function ZJt(D){return function(L){for(var H={},n=0;n<D.length;n++)H[D[n]]=L[n]||"";return H}}
function aYK(D,L){var H=ZJt(D);return function(n,Xn){return L(H(n),Xn,D)}}
function FOm(D){var L=Object.create(null),H=[];D.forEach(function(n){for(var Xn in n)Xn in L||H.push(L[Xn]=Xn)});
return H}
function l$Y(D){function L(Ee,Lh){function r7(){if(mv)return TF7;if(x3)return x3=!1,kpt;var oy,vi=lf,yu;if(Ee.charCodeAt(vi)===34){for(;lf++<fC&&Ee.charCodeAt(lf)!==34||Ee.charCodeAt(++lf)===34;);(oy=lf)>=fC?mv=!0:(yu=Ee.charCodeAt(lf++))===10?x3=!0:yu===13&&(x3=!0,Ee.charCodeAt(lf)===10&&++lf);return Ee.slice(vi+1,oy-1).replace(/""/g,'"')}for(;lf<fC;){if((yu=Ee.charCodeAt(oy=lf++))===10)x3=!0;else if(yu===13)x3=!0,Ee.charCodeAt(lf)===10&&++lf;else if(yu!==An)continue;return Ee.slice(vi,oy)}return mv=
!0,Ee.slice(vi,fC)}
var V2=[],fC=Ee.length,lf=0,gH=0,aw,mv=fC<=0,x3=!1;Ee.charCodeAt(fC-1)===10&&--fC;for(Ee.charCodeAt(fC-1)===13&&--fC;(aw=r7())!==TF7;){for(var tm=[];aw!==kpt&&aw!==TF7;)tm.push(aw),aw=r7();Lh&&(tm=Lh(tm,gH++))==null||V2.push(tm)}return V2}
function H(Ee){return Ee.map(n).join(D)}
function n(Ee){return Ee==null?"":Xn.test(Ee)?'"'+Ee.replace(/"/g,'""')+'"':Ee}
var Xn=new RegExp('["'+D+"\n\r]"),An=D.charCodeAt(0);return{parse:function(Ee,Lh){var r7,V2;Ee=L(Ee,function(fC,lf){if(r7)return r7(fC,lf-1);V2=fC;r7=Lh?aYK(fC,Lh):ZJt(fC)});
Ee.columns=V2||[];return Ee},
parseRows:L,format:function(Ee,Lh){Lh==null&&(Lh=FOm(Ee));return[Lh.map(n).join(D)].concat(Ee.map(function(r7){return Lh.map(function(V2){return n(r7[V2])}).join(D)})).join("\n")},
formatRows:function(Ee){return Ee.map(H).join("\n")}}}
function woN(D){if(!D.ok)throw Error("ue`"+D.status+"`"+D.statusText);return D.text()}
function K0H(D){return function(L,H,n){arguments.length===2&&typeof H==="function"&&(n=H,H=void 0);return fetch(L,H).then(woN).then(function(Xn){return D(Xn,n)})}}
function qrE(D,L,H,n){if(isNaN(L)||isNaN(H))return D;var Xn,An=D._root;n={data:n};var Ee=D._x0,Lh=D._y0,r7=D._x1,V2=D._y1,fC,lf,gH,aw,mv;if(!An)return D._root=n,D;for(;An.length;)if((gH=L>=(fC=(Ee+r7)/2))?Ee=fC:r7=fC,(aw=H>=(lf=(Lh+V2)/2))?Lh=lf:V2=lf,Xn=An,!(An=An[mv=aw<<1|gH]))return Xn[mv]=n,D;var x3=+D._x.call(null,An.data);var tm=+D._y.call(null,An.data);if(L===x3&&H===tm)return n.next=An,Xn?Xn[mv]=n:D._root=n,D;do Xn=Xn?Xn[mv]=Array(4):D._root=Array(4),(gH=L>=(fC=(Ee+r7)/2))?Ee=fC:r7=fC,(aw=
H>=(lf=(Lh+V2)/2))?Lh=lf:V2=lf;while((mv=aw<<1|gH)===(gH=(tm>=lf)<<1|x3>=fC));return Xn[gH]=An,Xn[mv]=n,D}
function rY(D,L,H,n,Xn){this.node=D;this.x0=L;this.y0=H;this.x1=n;this.y1=Xn}
function mHe(D){return D[0]}
function QtX(D){return D[1]}
function HJ0(D,L,H,n,Xn,An){this._x=D;this._y=L;this._x0=H;this._y0=n;this._x1=Xn;this._y1=An;this._root=void 0}
function AOF(D){for(var L={data:D.data},H=L;D=D.next;)H=H.next={data:D.data};return L}
function QsP(D,L){if((L=(D=L?D.toExponential(L-1):D.toExponential()).indexOf("e"))<0)return null;var H=D.slice(0,L);return[H.length>1?H[0]+H.slice(2):H,+D.slice(L+1)]}
function WOz(D){return D=QsP(Math.abs(D)),D?D[1]:NaN}
function ETS(D,L){return function(H,n){for(var Xn=H.length,An=[],Ee=0,Lh=D[0],r7=0;Xn>0&&Lh>0;){r7+Lh+1>n&&(Lh=Math.max(1,n-r7));An.push(H.substring(Xn-=Lh,Xn+Lh));if((r7+=Lh+1)>n)break;Lh=D[Ee=(Ee+1)%D.length]}return An.reverse().join(L)}}
function tTh(D){return function(L){return L.replace(/[0-9]/g,function(H){return D[+H]})}}
function I$e(D){return new M7h(D)}
function M7h(D){if(!(L=CH5.exec(D)))throw Error("ve`"+D);var L;this.fill=L[1]||" ";this.align=L[2]||">";this.sign=L[3]||"-";this.symbol=L[4]||"";this.zero=!!L[5];this.width=L[6]&&+L[6];this.comma=!!L[7];this.precision=L[8]&&+L[8].slice(1);this.trim=!!L[9];this.type=L[10]||""}
function a$t(D,L){L=QsP(D,L);if(!L)return D+"";D=L[0];L=L[1];return L<0?"0."+Array(-L).join("0")+D:D.length>L+1?D.slice(0,L+1)+"."+D.slice(L+1):D+Array(L-D.length+2).join("0")}
function F0F(D){return D}
function yM2(D){function L(Lh){function r7(sv){var AA=yu,pm=hx,AT,ur;if(vi==="c")pm=i3(sv)+pm,sv="";else{sv=+sv;var m2=sv<0;sv=i3(Math.abs(sv),tm);if(oy){var SN=sv.length,bc=1,xM=-1;a:for(;bc<SN;++bc)switch(sv[bc]){case ".":xM=AT=bc;break;case "0":xM===0&&(xM=bc);AT=bc;break;default:if(!+sv[bc])break a;xM>0&&(xM=0)}sv=xM>0?sv.slice(0,xM)+sv.slice(AT+1):sv}m2&&+sv===0&&(m2=!1);AA=(m2?lf==="("?lf:"-":lf==="-"||lf==="("?"":lf)+AA;pm=(vi==="s"?weY[8+mfl/3]:"")+pm+(m2&&lf==="("?")":"");if(my)for(m2=-1,
AT=sv.length;++m2<AT;)if(ur=sv.charCodeAt(m2),48>ur||ur>57){pm=(ur===46?Xn+sv.slice(m2+1):sv.slice(m2))+pm;sv=sv.slice(0,m2);break}}x3&&!aw&&(sv=H(sv,Infinity));ur=AA.length+sv.length+pm.length;m2=ur<mv?Array(mv-ur+1).join(V2):"";x3&&aw&&(sv=H(m2+sv,m2.length?mv-pm.length:Infinity),m2="");switch(fC){case "<":sv=AA+sv+pm+m2;break;case "=":sv=AA+m2+sv+pm;break;case "^":sv=m2.slice(0,ur=m2.length>>1)+AA+sv+pm+m2.slice(ur);break;default:sv=m2+AA+sv+pm}return An(sv)}
Lh=I$e(Lh);var V2=Lh.fill,fC=Lh.align,lf=Lh.sign,gH=Lh.symbol,aw=Lh.zero,mv=Lh.width,x3=Lh.comma,tm=Lh.precision,oy=Lh.trim,vi=Lh.type;vi==="n"?(x3=!0,vi="g"):QbE[vi]||(tm==null&&(tm=12),oy=!0,vi="g");if(aw||V2==="0"&&fC==="=")aw=!0,V2="0",fC="=";var yu=gH==="$"?n[0]:gH==="#"&&/[boxX]/.test(vi)?"0"+vi.toLowerCase():"",hx=gH==="$"?n[1]:/[%p]/.test(vi)?Ee:"",i3=QbE[vi],my=/[defgprs%]/.test(vi);tm=tm==null?6:/[gprs]/.test(vi)?Math.max(1,Math.min(21,tm)):Math.max(0,Math.min(20,tm));r7.toString=function(){return Lh+
""};
return r7}
var H=D.grouping&&D.thousands?ETS(D.grouping,D.thousands):F0F,n=D.currency,Xn=D.decimal,An=D.numerals?tTh(D.numerals):F0F,Ee=D.percent||"%";return{format:L,formatPrefix:function(Lh,r7){var V2=L((Lh=I$e(Lh),Lh.type="f",Lh));Lh=Math.max(-8,Math.min(8,Math.floor(WOz(r7)/3)))*3;var fC=Math.pow(10,-Lh),lf=weY[8+Lh/3];return function(gH){return V2(fC*gH)+lf}}}}
function Bo(){this.reset()}
function W0k(D,L,H){var n=D.s=L+H,Xn=n-L;D.t=L-(n-Xn)+(H-Xn)}
function WM0(D){return D>1?$R:D<-1?-$R:Math.asin(D)}
function dHS(){}
function EPk(D){var L=D[0];D=D[1];var H=gh(D);return[H*gh(L),H*j8(L),j8(D)]}
function t7l(D,L){return[D[1]*L[2]-D[2]*L[1],D[2]*L[0]-D[0]*L[2],D[0]*L[1]-D[1]*L[0]]}
function CQk(D){var L=En5(D[0]*D[0]+D[1]*D[1]+D[2]*D[2]);D[0]/=L;D[1]/=L;D[2]/=L}
function NZ9(){var D=[],L;return{point:function(H,n){L.push([H,n])},
lineStart:function(){D.push(L=[])},
lineEnd:dHS,rejoin:function(){D.length>1&&D.push(D.pop().concat(D.shift()))},
result:function(){var H=D;D=[];L=null;return H}}}
function tN2(D,L,H,n){this.x=D;this.z=L;this.o=H;this.e=n;this.v=!1;this.n=this.p=null}
function LOl(D,L,H,n,Xn){var An=[],Ee=[];D.forEach(function(lf){if(!((gH=lf.length-1)<=0)){var gH,aw=lf[0],mv=lf[gH],x3=aw;if(qA(x3[0]-mv[0])<1E-6&&qA(x3[1]-mv[1])<1E-6){Xn.lineStart();for(Lh=0;Lh<gH;++Lh)Xn.point((aw=lf[Lh])[0],aw[1]);Xn.lineEnd()}else An.push(gH=new tN2(aw,lf,null,!0)),Ee.push(gH.o=new tN2(aw,null,gH,!1)),An.push(gH=new tN2(mv,lf,null,!1)),Ee.push(gH.o=new tN2(mv,null,gH,!0))}});
if(An.length){Ee.sort(L);yOG(An);yOG(Ee);var Lh=0;for(D=Ee.length;Lh<D;++Lh)Ee[Lh].e=H=!H;H=An[0];for(var r7;;){for(var V2=H,fC=!0;V2.v;)if((V2=V2.n)===H)return;L=V2.z;Xn.lineStart();do{V2.v=V2.o.v=!0;if(V2.e){if(fC)for(Lh=0,D=L.length;Lh<D;++Lh)Xn.point((r7=L[Lh])[0],r7[1]);else n(V2.x,V2.n.x,1,Xn);V2=V2.n}else{if(fC)for(L=V2.p.z,Lh=L.length-1;Lh>=0;--Lh)Xn.point((r7=L[Lh])[0],r7[1]);else n(V2.x,V2.p.x,-1,Xn);V2=V2.p}V2=V2.o;L=V2.z;fC=!fC}while(!V2.v);Xn.lineEnd()}}}
function yOG(D){if(L=D.length){for(var L,H=0,n=D[0],Xn;++H<L;)n.n=Xn=D[H],Xn.p=n,n=Xn;n.n=Xn=D[0];Xn.p=n}}
function b6t(D){return D.length>1}
function poa(D,L){return((D=D.x)[0]<0?D[1]-$R-1E-6:$R-D[1])-((L=L.x)[0]<0?L[1]-$R-1E-6:$R-L[1])}
function PQ7(){}
function dfC(D){return function(L,H){var n=gh(L),Xn=gh(H);n=D(n*Xn);return[n*Xn*j8(L),n*j8(H)]}}
function sM(D){return function(L,H){var n=En5(L*L+H*H),Xn=D(n),An=j8(Xn);Xn=gh(Xn);return[NFY(L*An,n*Xn),WM0(n&&H*An/n)]}}
function jta(D){var L=0,H=D.children,n=H&&H.length;if(n)for(;--n>=0;)L+=H[n].value;else L=1;D.value=L}
function L0f(D,L){var H=new nV(D);D=+D.value&&(H.value=D.value);var n,Xn=[H],An,Ee,Lh,r7;for(L==null&&(L=DHm);n=Xn.pop();)if(D&&(n.value=+n.data.value),(Ee=L(n.data))&&(r7=Ee.length))for(n.children=Array(r7),Lh=r7-1;Lh>=0;--Lh)Xn.push(An=n.children[Lh]=new nV(Ee[Lh])),An.parent=n,An.depth=n.depth+1;return H.eachBefore(JMm)}
function DHm(D){return D.children}
function zvm(D){D.data=D.data.data}
function JMm(D){var L=0;do D.height=L;while((D=D.parent)&&D.height<++L)}
function nV(D){this.data=D;this.depth=this.height=0;this.parent=null}
function Wc(D,L,H,n){function Xn(An){return D(An=new Date(+An)),An}
Xn.floor=Xn;Xn.ceil=function(An){return D(An=new Date(An-1)),L(An,1),D(An),An};
Xn.round=function(An){var Ee=Xn(An),Lh=Xn.ceil(An);return An-Ee<Lh-An?Ee:Lh};
Xn.offset=function(An,Ee){return L(An=new Date(+An),Ee==null?1:Math.floor(Ee)),An};
Xn.range=function(An,Ee,Lh){var r7=[],V2;An=Xn.ceil(An);Lh=Lh==null?1:Math.floor(Lh);if(!(An<Ee&&Lh>0))return r7;do r7.push(V2=new Date(+An)),L(An,Lh),D(An);while(V2<An&&An<Ee);return r7};
Xn.filter=function(An){return Wc(function(Ee){if(Ee>=Ee)for(;D(Ee),!An(Ee);)Ee.setTime(Ee-1)},function(Ee,Lh){if(Ee>=Ee)if(Lh<0)for(;++Lh<=0;)for(;L(Ee,-1),!An(Ee););
else for(;--Lh>=0;)for(;L(Ee,1),!An(Ee););})};
H&&(Xn.count=function(An,Ee){Uf0.setTime(+An);exB.setTime(+Ee);D(Uf0);D(exB);return Math.floor(H(Uf0,exB))},Xn.every=function(An){An=Math.floor(An);
return isFinite(An)&&An>0?An>1?Xn.filter(n?function(Ee){return n(Ee)%An===0}:function(Ee){return Xn.count(0,Ee)%An===0}):Xn:null});
return Xn}
function Bn(D){return Wc(function(L){L.setDate(L.getDate()-(L.getDay()+7-D)%7);L.setHours(0,0,0,0)},function(L,H){L.setDate(L.getDate()+H*7)},function(L,H){return(H-L-(H.getTimezoneOffset()-L.getTimezoneOffset())*6E4)/6048E5})}
function oM(D){return Wc(function(L){L.setUTCDate(L.getUTCDate()-(L.getUTCDay()+7-D)%7);L.setUTCHours(0,0,0,0)},function(L,H){L.setUTCDate(L.getUTCDate()+H*7)},function(L,H){return(H-L)/6048E5})}
function TZS(D){if(0<=D.y&&D.y<100){var L=new Date(-1,D.m,D.d,D.H,D.M,D.S,D.L);L.setFullYear(D.y);return L}return new Date(D.y,D.m,D.d,D.H,D.M,D.S,D.L)}
function C4e(D){if(0<=D.y&&D.y<100){var L=new Date(Date.UTC(-1,D.m,D.d,D.H,D.M,D.S,D.L));L.setUTCFullYear(D.y);return L}return new Date(Date.UTC(D.y,D.m,D.d,D.H,D.M,D.S,D.L))}
function VY(D){return{y:D,m:0,d:1,H:0,M:0,S:0,L:0}}
function H6m(D){function L(pm,AT){return function(ur){var m2=[],SN=-1,bc=0,xM=pm.length,qW,pu;for(ur instanceof Date||(ur=new Date(+ur));++SN<xM;)if(pm.charCodeAt(SN)===37){m2.push(pm.slice(bc,SN));(bc=bJA[qW=pm.charAt(++SN)])!=null?qW=pm.charAt(++SN):bc=qW==="e"?" ":"0";if(pu=AT[qW])qW=pu(ur,bc);m2.push(qW);bc=SN+1}m2.push(pm.slice(bc,SN));return m2.join("")}}
function H(pm,AT){return function(ur){var m2=VY(1900);if(n(m2,pm,ur,0)!=ur.length)return null;if("Q"in m2)return new Date(m2.Q);"p"in m2&&(m2.H=m2.H%12+m2.p*12);if("V"in m2){if(m2.V<1||m2.V>53)return null;"w"in m2||(m2.w=1);if("Z"in m2){ur=C4e(VY(m2.y));var SN=ur.getUTCDay();ur=SN>4||SN===0?Gpq.ceil(ur):Gpq(ur);ur=peY.offset(ur,(m2.V-1)*7);m2.y=ur.getUTCFullYear();m2.m=ur.getUTCMonth();m2.d=ur.getUTCDate()+(m2.w+6)%7}else ur=AT(VY(m2.y)),SN=ur.getDay(),ur=SN>4||SN===0?BFh.ceil(ur):BFh(ur),ur=jbC.offset(ur,
(m2.V-1)*7),m2.y=ur.getFullYear(),m2.m=ur.getMonth(),m2.d=ur.getDate()+(m2.w+6)%7}else if("W"in m2||"U"in m2)"w"in m2||(m2.w="u"in m2?m2.u%7:"W"in m2?1:0),SN="Z"in m2?C4e(VY(m2.y)).getUTCDay():AT(VY(m2.y)).getDay(),m2.m=0,m2.d="W"in m2?(m2.w+6)%7+m2.W*7-(SN+5)%7:m2.w+m2.U*7-(SN+6)%7;return"Z"in m2?(m2.H+=m2.Z/100|0,m2.M+=m2.Z%100,C4e(m2)):AT(m2)}}
function n(pm,AT,ur,m2){for(var SN=0,bc=AT.length,xM=ur.length,qW;SN<bc;){if(m2>=xM)return-1;qW=AT.charCodeAt(SN++);if(qW===37){if(qW=AT.charAt(SN++),qW=AA[qW in bJA?AT.charAt(SN++):qW],!qW||(m2=qW(pm,ur,m2))<0)return-1}else if(qW!=ur.charCodeAt(m2++))return-1}return m2}
var Xn=D.dateTime,An=D.date,Ee=D.time,Lh=D.periods,r7=D.days,V2=D.shortDays,fC=D.months,lf=D.shortMonths,gH=Yp(Lh),aw=vy(Lh),mv=Yp(r7),x3=vy(r7),tm=Yp(V2),oy=vy(V2),vi=Yp(fC),yu=vy(fC),hx=Yp(lf),i3=vy(lf),my={a:function(pm){return V2[pm.getDay()]},
A:function(pm){return r7[pm.getDay()]},
b:function(pm){return lf[pm.getMonth()]},
B:function(pm){return fC[pm.getMonth()]},
c:null,d:Dfl,e:Dfl,f:IY9,H:MTK,I:PHS,j:UHz,L:JOE,m:evm,M:GRw,p:function(pm){return Lh[+(pm.getHours()>=12)]},
Q:zxl,s:TFH,S:BZ5,u:oTS,U:xHz,V:S0h,w:$Hm,W:gTw,x:null,X:null,y:stK,Y:nTh,Z:VTw,"%":HJG},sv={a:function(pm){return V2[pm.getUTCDay()]},
A:function(pm){return r7[pm.getUTCDay()]},
b:function(pm){return lf[pm.getUTCMonth()]},
B:function(pm){return fC[pm.getUTCMonth()]},
c:null,d:I$E,e:I$E,f:Y0l,H:vTt,I:i65,j:rMe,L:M7C,m:fj5,M:RJw,p:function(pm){return Lh[+(pm.getUTCHours()>=12)]},
Q:zxl,s:TFH,S:uew,u:Opa,U:ckS,V:XIt,w:hJm,W:Zpm,x:null,X:null,y:lj5,Y:kDa,Z:KCe,"%":HJG},AA={a:function(pm,AT,ur){return(AT=tm.exec(AT.slice(ur)))?(pm.w=oy[AT[0].toLowerCase()],ur+AT[0].length):-1},
A:function(pm,AT,ur){return(AT=mv.exec(AT.slice(ur)))?(pm.w=x3[AT[0].toLowerCase()],ur+AT[0].length):-1},
b:function(pm,AT,ur){return(AT=hx.exec(AT.slice(ur)))?(pm.m=i3[AT[0].toLowerCase()],ur+AT[0].length):-1},
B:function(pm,AT,ur){return(AT=vi.exec(AT.slice(ur)))?(pm.m=yu[AT[0].toLowerCase()],ur+AT[0].length):-1},
c:function(pm,AT,ur){return n(pm,Xn,AT,ur)},
d:PQH,e:PQH,f:q2w,H:UfG,I:UfG,j:Akz,L:ajz,m:FCa,M:wIe,p:function(pm,AT,ur){return(AT=gH.exec(AT.slice(ur)))?(pm.p=aw[AT[0].toLowerCase()],ur+AT[0].length):-1},
Q:mUh,s:Qga,S:WCe,u:Ez9,U:tAw,V:Cwl,w:ykN,W:dUN,x:function(pm,AT,ur){return n(pm,An,AT,ur)},
X:function(pm,AT,ur){return n(pm,Ee,AT,ur)},
y:NB5,Y:LCh,Z:bpz,"%":pIm};my.x=L(An,my);my.X=L(Ee,my);my.c=L(Xn,my);sv.x=L(An,sv);sv.X=L(Ee,sv);sv.c=L(Xn,sv);return{format:function(pm){var AT=L(pm,my);AT.toString=function(){return pm};
return AT},
parse:function(pm){var AT=H(pm,TZS);AT.toString=function(){return pm};
return AT},
utcFormat:function(pm){var AT=L(pm,sv);AT.toString=function(){return pm};
return AT},
utcParse:function(pm){var AT=H(pm,C4e);AT.toString=function(){return pm};
return AT}}}
function E$(D,L,H){var n=D<0?"-":"";D=(n?-D:D)+"";var Xn=D.length;return n+(Xn<H?Array(H-Xn+1).join(L)+D:D)}
function jg5(D){return D.replace(DU9,"\\$&")}
function Yp(D){return new RegExp("^(?:"+D.map(jg5).join("|")+")","i")}
function vy(D){for(var L={},H=-1,n=D.length;++H<n;)L[D[H].toLowerCase()]=H;return L}
function ykN(D,L,H){return(L=dA.exec(L.slice(H,H+1)))?(D.w=+L[0],H+L[0].length):-1}
function Ez9(D,L,H){return(L=dA.exec(L.slice(H,H+1)))?(D.u=+L[0],H+L[0].length):-1}
function tAw(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.U=+L[0],H+L[0].length):-1}
function Cwl(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.V=+L[0],H+L[0].length):-1}
function dUN(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.W=+L[0],H+L[0].length):-1}
function LCh(D,L,H){return(L=dA.exec(L.slice(H,H+4)))?(D.y=+L[0],H+L[0].length):-1}
function NB5(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.y=+L[0]+(+L[0]>68?1900:2E3),H+L[0].length):-1}
function bpz(D,L,H){return(L=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(L.slice(H,H+6)))?(D.Z=L[1]?0:-(L[2]+(L[3]||"00")),H+L[0].length):-1}
function FCa(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.m=L[0]-1,H+L[0].length):-1}
function PQH(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.d=+L[0],H+L[0].length):-1}
function Akz(D,L,H){return(L=dA.exec(L.slice(H,H+3)))?(D.m=0,D.d=+L[0],H+L[0].length):-1}
function UfG(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.H=+L[0],H+L[0].length):-1}
function wIe(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.M=+L[0],H+L[0].length):-1}
function WCe(D,L,H){return(L=dA.exec(L.slice(H,H+2)))?(D.S=+L[0],H+L[0].length):-1}
function ajz(D,L,H){return(L=dA.exec(L.slice(H,H+3)))?(D.L=+L[0],H+L[0].length):-1}
function q2w(D,L,H){return(L=dA.exec(L.slice(H,H+6)))?(D.L=Math.floor(L[0]/1E3),H+L[0].length):-1}
function pIm(D,L,H){return(D=Jkw.exec(L.slice(H,H+1)))?H+D[0].length:-1}
function mUh(D,L,H){return(L=dA.exec(L.slice(H)))?(D.Q=+L[0],H+L[0].length):-1}
function Qga(D,L,H){return(L=dA.exec(L.slice(H)))?(D.Q=+L[0]*1E3,H+L[0].length):-1}
function Dfl(D,L){return E$(D.getDate(),L,2)}
function MTK(D,L){return E$(D.getHours(),L,2)}
function PHS(D,L){return E$(D.getHours()%12||12,L,2)}
function UHz(D,L){return E$(1+jbC.count(ZQ(D),D),L,3)}
function JOE(D,L){return E$(D.getMilliseconds(),L,3)}
function IY9(D,L){return JOE(D,L)+"000"}
function evm(D,L){return E$(D.getMonth()+1,L,2)}
function GRw(D,L){return E$(D.getMinutes(),L,2)}
function BZ5(D,L){return E$(D.getSeconds(),L,2)}
function oTS(D){D=D.getDay();return D===0?7:D}
function xHz(D,L){return E$(zJX.count(ZQ(D),D),L,2)}
function S0h(D,L){var H=D.getDay();D=H>=4||H===0?oP2(D):oP2.ceil(D);return E$(oP2.count(ZQ(D),D)+(ZQ(D).getDay()===4),L,2)}
function $Hm(D){return D.getDay()}
function gTw(D,L){return E$(BFh.count(ZQ(D),D),L,2)}
function stK(D,L){return E$(D.getFullYear()%100,L,2)}
function nTh(D,L){return E$(D.getFullYear()%1E4,L,4)}
function VTw(D){D=D.getTimezoneOffset();return(D>0?"-":(D*=-1,"+"))+E$(D/60|0,"0",2)+E$(D%60,"0",2)}
function I$E(D,L){return E$(D.getUTCDate(),L,2)}
function vTt(D,L){return E$(D.getUTCHours(),L,2)}
function i65(D,L){return E$(D.getUTCHours()%12||12,L,2)}
function rMe(D,L){return E$(1+peY.count(lo(D),D),L,3)}
function M7C(D,L){return E$(D.getUTCMilliseconds(),L,3)}
function Y0l(D,L){return M7C(D,L)+"000"}
function fj5(D,L){return E$(D.getUTCMonth()+1,L,2)}
function RJw(D,L){return E$(D.getUTCMinutes(),L,2)}
function uew(D,L){return E$(D.getUTCSeconds(),L,2)}
function Opa(D){D=D.getUTCDay();return D===0?7:D}
function ckS(D,L){return E$(TBK.count(lo(D),D),L,2)}
function XIt(D,L){var H=D.getUTCDay();D=H>=4||H===0?xfP(D):xfP.ceil(D);return E$(xfP.count(lo(D),D)+(lo(D).getUTCDay()===4),L,2)}
function hJm(D){return D.getUTCDay()}
function Zpm(D,L){return E$(Gpq.count(lo(D),D),L,2)}
function lj5(D,L){return E$(D.getUTCFullYear()%100,L,2)}
function kDa(D,L){return E$(D.getUTCFullYear()%1E4,L,4)}
function KCe(){return"+0000"}
function HJG(){return"%"}
function zxl(D){return+D}
function TFH(D){return Math.floor(+D/1E3)}
function XV(D){for(var L=D.length/6|0,H=Array(L),n=0;n<L;)H[n]="#"+D.slice(n*6,++n*6);return H}
function $n(D){return Hp9(D[D.length-1])}
function yyB(D){var L=D.length;return function(H){return D[Math.max(0,Math.min(L-1,Math.floor(H*L)))]}}
function exf(D){this._context=D}
function GpI(D){this._curve=D}
function BFC(D,L,H){var n=D._x1-D._x0;L-=D._x1;var Xn=(D._y1-D._y0)/(n||L<0&&-0);D=(H-D._y1)/(L||n<0&&-0);return((Xn<0?-1:1)+(D<0?-1:1))*Math.min(Math.abs(Xn),Math.abs(D),.5*Math.abs((Xn*L+D*n)/(n+L)))||0}
function oPA(D,L){var H=D._x1-D._x0;return H?(3*(D._y1-D._y0)/H-L)/2:L}
function SrP(D,L,H){var n=D._x0,Xn=D._x1,An=D._y1,Ee=(Xn-n)/3;D._context.bezierCurveTo(n+Ee,D._y0+Ee*L,Xn-Ee,An-Ee*H,Xn,An)}
function $fn(D){this._context=D}
function xfl(D){this._context=D}
function rD(D,L,H){this.k=D;this.x=L;this.y=H}
(function(D){D.length===1&&(D=R(D));return{left:function(L,H,n,Xn){n==null&&(n=0);Xn==null&&(Xn=L.length);for(;n<Xn;){var An=n+Xn>>>1;D(L[An],H)<0?n=An+1:Xn=An}return n},
right:function(L,H,n,Xn){n==null&&(n=0);Xn==null&&(Xn=L.length);for(;n<Xn;){var An=n+Xn>>>1;D(L[An],H)>0?Xn=An:n=An+1}return n}}})(f);
var bS2={value:function(){}};
O.prototype=u.prototype={constructor:O,on:function(D,L){var H=this._,n=c(D+"",H),Xn,An=-1,Ee=n.length;if(arguments.length<2)for(;++An<Ee;){var Lh;if(Lh=Xn=(D=n[An]).type){a:{Lh=H[Xn];for(var r7=0,V2=Lh.length;r7<V2;++r7)if((Xn=Lh[r7]).name===D.name){Xn=Xn.value;break a}Xn=void 0}Lh=Xn}if(Lh)return Xn}else{if(L!=null&&typeof L!=="function")throw Error("we`"+L);for(;++An<Ee;)if(Xn=(D=n[An]).type)H[Xn]=h(H[Xn],D.name,L);else if(L==null)for(Xn in H)H[Xn]=h(H[Xn],D.name,null);return this}},
copy:function(){var D={},L=this._,H;for(H in L)D[H]=L[H].slice();return new O(D)},
call:function(D,L){if((Xn=arguments.length-2)>0)for(var H=Array(Xn),n=0,Xn,An;n<Xn;++n)H[n]=arguments[n+2];if(!this._.hasOwnProperty(D))throw Error("qe`"+D);An=this._[D];n=0;for(Xn=An.length;n<Xn;++n)An[n].value.apply(L,H)},
apply:function(D,L,H){if(!this._.hasOwnProperty(D))throw Error("qe`"+D);D=this._[D];for(var n=0,Xn=D.length;n<Xn;++n)D[n].value.apply(L,H)}};
var Sn={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/"},Srl=function(D){return function(){return this.matches(D)}};
if(typeof document!=="undefined"){var fb=document.documentElement;if(!fb.matches){var Ij9=fb.webkitMatchesSelector||fb.msMatchesSelector||fb.mozMatchesSelector||fb.oMatchesSelector;Srl=function(D){return function(){return Ij9.call(this,D)}}}}var $ff=Srl;
C.prototype={constructor:C,appendChild:function(D){return this._parent.insertBefore(D,this._next)},
insertBefore:function(D,L){return this._parent.insertBefore(D,L)},
querySelector:function(D){return this._parent.querySelector(D)},
querySelectorAll:function(D){return this._parent.querySelectorAll(D)}};
var nwH={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(nwH={mouseenter:"mouseover",mouseleave:"mouseout"}));var p9K=[null];tf.prototype=lK.prototype={constructor:tf,select:function(D){typeof D!=="function"&&(D=m(D));for(var L=this._groups,H=L.length,n=Array(H),Xn=0;Xn<H;++Xn)for(var An=L[Xn],Ee=An.length,Lh=n[Xn]=Array(Ee),r7,V2,fC=0;fC<Ee;++fC)(r7=An[fC])&&(V2=D.call(r7,r7.__data__,fC,An))&&("__data__"in r7&&(V2.__data__=r7.__data__),Lh[fC]=V2);return new tf(n,this._parents)},
filter:function(D){typeof D!=="function"&&(D=$ff(D));for(var L=this._groups,H=L.length,n=Array(H),Xn=0;Xn<H;++Xn)for(var An=L[Xn],Ee=An.length,Lh=n[Xn]=[],r7,V2=0;V2<Ee;++V2)(r7=An[V2])&&D.call(r7,r7.__data__,V2,An)&&Lh.push(r7);return new tf(n,this._parents)},
data:function(D,L){if(!D)return aw=Array(this.size()),V2=-1,this.each(function(vi){aw[++V2]=vi}),aw;
var H=L?J:p,n=this._parents,Xn=this._groups;typeof D!=="function"&&(D=d(D));for(var An=Xn.length,Ee=Array(An),Lh=Array(An),r7=Array(An),V2=0;V2<An;++V2){var fC=n[V2],lf=Xn[V2],gH=lf.length,aw=D.call(fC,fC&&fC.__data__,V2,n),mv=aw.length,x3=Lh[V2]=Array(mv),tm=Ee[V2]=Array(mv);gH=r7[V2]=Array(gH);H(fC,lf,x3,tm,gH,aw,L);lf=fC=0;for(var oy;fC<mv;++fC)if(gH=x3[fC]){for(fC>=lf&&(lf=fC+1);!(oy=tm[lf])&&++lf<mv;);gH._next=oy||null}}Ee=new tf(Ee,n);Ee._enter=Lh;Ee._exit=r7;return Ee},
exit:function(){return new tf(this._exit||this._groups.map(W),this._parents)},
merge:function(D){var L=this._groups;D=D._groups;for(var H=L.length,n=Math.min(H,D.length),Xn=Array(H),An=0;An<n;++An)for(var Ee=L[An],Lh=D[An],r7=Ee.length,V2=Xn[An]=Array(r7),fC,lf=0;lf<r7;++lf)if(fC=Ee[lf]||Lh[lf])V2[lf]=fC;for(;An<H;++An)Xn[An]=L[An];return new tf(Xn,this._parents)},
order:function(){for(var D=this._groups,L=-1,H=D.length;++L<H;)for(var n=D[L],Xn=n.length-1,An=n[Xn],Ee;--Xn>=0;)if(Ee=n[Xn])An&&An!==Ee.nextSibling&&An.parentNode.insertBefore(Ee,An),An=Ee;return this},
sort:function(D){function L(lf,gH){return lf&&gH?D(lf.__data__,gH.__data__):!lf-!gH}
D||(D=M);for(var H=this._groups,n=H.length,Xn=Array(n),An=0;An<n;++An){for(var Ee=H[An],Lh=Ee.length,r7=Xn[An]=Array(Lh),V2,fC=0;fC<Lh;++fC)if(V2=Ee[fC])r7[fC]=V2;r7.sort(L)}return(new tf(Xn,this._parents)).order()},
call:function(){var D=arguments[0];arguments[0]=this;D.apply(null,arguments);return this},
nodes:function(){var D=Array(this.size()),L=-1;this.each(function(){D[++L]=this});
return D},
node:function(){for(var D=this._groups,L=0,H=D.length;L<H;++L)for(var n=D[L],Xn=0,An=n.length;Xn<An;++Xn){var Ee=n[Xn];if(Ee)return Ee}return null},
size:function(){var D=0;this.each(function(){++D});
return D},
empty:function(){return!this.node()},
each:function(D){for(var L=this._groups,H=0,n=L.length;H<n;++H)for(var Xn=L[H],An=0,Ee=Xn.length,Lh;An<Ee;++An)(Lh=Xn[An])&&D.call(Lh,Lh.__data__,An,Xn);return this},
attr:function(D,L){var H=l(D);if(arguments.length<2){var n=this.node();return H.local?n.getAttributeNS(H.space,H.local):n.getAttribute(H)}return this.each((L==null?H.local?g:P:typeof L==="function"?H.local?ZD:V:H.local?fh:x)(H,L))},
style:function(D,L,H){return arguments.length>1?this.each((L==null?mP:typeof L==="function"?jt:NX)(D,L,H==null?"":H)):Jn(this.node(),D)},
property:function(D,L){return arguments.length>1?this.each((L==null?zq:typeof L==="function"?Gq:St)(D,L)):this.node()[D]},
text:function(D){return arguments.length?this.each(D==null?LC:(typeof D==="function"?GI:wN)(D)):this.node().textContent},
html:function(D){return arguments.length?this.each(D==null?ak:(typeof D==="function"?Rw:kC)(D)):this.node().innerHTML},
append:function(D){var L=typeof D==="function"?D:F(D);return this.select(function(){return this.appendChild(L.apply(this,arguments))})},
insert:function(D,L){var H=typeof D==="function"?D:F(D),n=L==null?KC:typeof L==="function"?L:m(L);return this.select(function(){return this.insertBefore(H.apply(this,arguments),n.apply(this,arguments)||null)})},
remove:function(){return this.each(qe)},
clone:function(D){return this.select(D?k5:LE)},
datum:function(D){return arguments.length?this.property("__data__",D):this.node().__data__},
on:function(D,L,H){var n=GX(D+""),Xn=n.length,An;if(arguments.length<2){var Ee=this.node().__on;if(Ee)for(var Lh=0,r7=Ee.length,V2;Lh<r7;++Lh){var fC=0;for(V2=Ee[Lh];fC<Xn;++fC)if((An=n[fC]).type===V2.type&&An.name===V2.name)return V2.value}}else{Ee=L?$C:bf;H==null&&(H=!1);for(fC=0;fC<Xn;++fC)this.each(Ee(n[fC],L,H));return this}},
dispatch:function(D,L){return this.each((typeof L==="function"?Y5:qt)(D,L))}};
var jGt=0;CC.prototype=function(){return new CC}.prototype={constructor:CC,
get:function(D){for(var L=this._;!(L in D);)if(!(D=D.parentNode))return;return D[L]},
set:function(D,L){return D[this._]=L},
remove:function(D){return this._ in D&&delete D[this._]},
toString:function(){return this._}};
var k1=1/.7,DSa=/^#([0-9a-f]{3})$/,JdX=/^#([0-9a-f]{6})$/,zKX=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),TI5=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),HSw=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),ISm=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*\\)$"),
Mgz=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Pkw=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*\\)$"),VHf={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};
Eh(kM,Uh,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Eh(vt,bK,k_(kM,{brighter:function(D){D=D==null?k1:Math.pow(k1,D);return new vt(this.r*D,this.g*D,this.b*D,this.opacity)},
darker:function(D){D=D==null?.7:Math.pow(.7,D);return new vt(this.r*D,this.g*D,this.b*D,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"#"+iK(this.r)+iK(this.g)+iK(this.b)},
toString:function(){var D=this.opacity;D=isNaN(D)?1:Math.max(0,Math.min(1,D));return(D===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))+(D===1?")":", "+D+")")}}));
Eh(Ct,cf,k_(kM,{brighter:function(D){D=D==null?k1:Math.pow(k1,D);return new Ct(this.h,this.s,this.l*D,this.opacity)},
darker:function(D){D=D==null?.7:Math.pow(.7,D);return new Ct(this.h,this.s,this.l*D,this.opacity)},
rgb:function(){var D=this.h%360+(this.h<0)*360,L=this.l,H=L+(L<.5?L:1-L)*(isNaN(D)||isNaN(this.s)?0:this.s);L=2*L-H;return new vt(Gd(D>=240?D-240:D+120,L,H),Gd(D,L,H),Gd(D<120?D+240:D-120,L,H),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 YQA=Math.PI/180,rVE=180/Math.PI,i5i=4/29,Xp=6/29,vwF=3*Xp*Xp,US5=Xp*Xp*Xp;Eh(tn,function(D,L,H,n){return arguments.length===1?AZ(D):new tn(D,L,H,n==null?1:n)},k_(kM,{brighter:function(D){return new tn(this.l+18*(D==null?1:D),this.a,this.b,this.opacity)},
darker:function(D){return new tn(this.l-18*(D==null?1:D),this.a,this.b,this.opacity)},
rgb:function(){var D=(this.l+16)/116,L=isNaN(this.a)?D:D+this.a/500,H=isNaN(this.b)?D:D-this.b/200;L=.96422*o7(L);D=1*o7(D);H=.82521*o7(H);return new vt(ml(3.1338561*L-1.6168667*D-.4906146*H),ml(-.9787684*L+1.9161415*D+.033454*H),ml(.0719453*L-.2289914*D+1.4052427*H),this.opacity)}}));
Eh(EE,A9,k_(kM,{brighter:function(D){return new EE(this.h,this.c,this.l+18*(D==null?1:D),this.opacity)},
darker:function(D){return new EE(this.h,this.c,this.l-18*(D==null?1:D),this.opacity)},
rgb:function(){return AZ(this).rgb()}}));
var f$H=1.78277*-.29227-.1347134789;Eh(Wt,wH,k_(kM,{brighter:function(D){D=D==null?k1:Math.pow(k1,D);return new Wt(this.h,this.s,this.l*D,this.opacity)},
darker:function(D){D=D==null?.7:Math.pow(.7,D);return new Wt(this.h,this.s,this.l*D,this.opacity)},
rgb:function(){var D=isNaN(this.h)?0:(this.h+120)*YQA,L=+this.l,H=isNaN(this.s)?0:this.s*L*(1-L),n=Math.cos(D);D=Math.sin(D);return new vt(255*(L+H*(-.14861*n+1.78277*D)),255*(L+H*(-.29227*n+-.90649*D)),255*(L+1.97294*n*H),this.opacity)}}));
var XeA=function H(L){function n(An,Ee){var Lh=Xn((An=bK(An)).r,(Ee=bK(Ee)).r),r7=Xn(An.g,Ee.g),V2=Xn(An.b,Ee.b),fC=KB(An.opacity,Ee.opacity);return function(lf){An.r=Lh(lf);An.g=r7(lf);An.b=V2(lf);An.opacity=fC(lf);return An+""}}
var Xn=tu(L);n.gamma=H;return n}(1),Hp9=Gw(function(L){var H=L.length-1;
return function(n){var Xn=n<=0?n=0:n>=1?(n=1,H-1):Math.floor(n*H),An=L[Xn],Ee=L[Xn+1];return a8((n-Xn/H)*H,Xn>0?L[Xn-1]:2*An-Ee,An,Ee,Xn<H-1?L[Xn+2]:2*Ee-An)}});
Gw(function(L){var H=L.length;return function(n){var Xn=Math.floor(((n%=1)<0?++n:n)*H);return a8((n-Xn/H)*H,L[(Xn+H-1)%H],L[Xn%H],L[(Xn+1)%H],L[(Xn+2)%H])}});
var L0n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bJ2=new RegExp(L0n.source,"g"),RxA=180/Math.PI,gPB={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},RQ,sb7,gPf,dKq,MAz=nG(function(L){if(L==="none")return gPB;RQ||(RQ=document.createElement("DIV"),sb7=document.documentElement,gPf=document.defaultView);RQ.style.transform=L;L=gPf.getComputedStyle(sb7.appendChild(RQ),null).getPropertyValue("transform");sb7.removeChild(RQ);L=L.slice(7,-1).split(",");return bC(+L[0],+L[1],+L[2],+L[3],
+L[4],+L[5])},"px, ","px)","deg)"),PwK=nG(function(L){if(L==null)return gPB;
dKq||(dKq=document.createElementNS("http://www.w3.org/2000/svg","g"));dKq.setAttribute("transform",L);if(!(L=dKq.transform.baseVal.consolidate()))return gPB;L=L.matrix;return bC(L.a,L.b,L.c,L.d,L.e,L.f)},", ",")",")");
JT(Me);JT(KB);E0(Me);E0(KB);tM(Me);var nPt=tM(KB),ha=0,Sx=0,gD=0,FMe,$p,a1t=0,ep=0,Ay0=0,xp=typeof performance==="object"&&performance.now?performance:Date,u1H=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(L){setTimeout(L,17)};
tg.prototype=od.prototype={constructor:tg,restart:function(L,H,n){if(typeof L!=="function")throw new TypeError("xe");n=(n==null?EH():+n)+(H==null?0:+H);this._next||$p===this||($p?$p._next=this:FMe=this,$p=this);this._call=L;this._time=n;Sf()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Sf())}};
var Gal=u("start","end","interrupt"),BIS=[],UUX=lK.prototype.constructor,sbH=0,KD=lK.prototype;Kq.prototype=function(L){return lK().transition(L)}.prototype={constructor:Kq,
select:function(L){var H=this._name,n=this._id;typeof L!=="function"&&(L=m(L));for(var Xn=this._groups,An=Xn.length,Ee=Array(An),Lh=0;Lh<An;++Lh)for(var r7=Xn[Lh],V2=r7.length,fC=Ee[Lh]=Array(V2),lf,gH,aw=0;aw<V2;++aw)(lf=r7[aw])&&(gH=L.call(lf,lf.__data__,aw,r7))&&("__data__"in lf&&(gH.__data__=lf.__data__),fC[aw]=gH,pet(fC[aw],H,n,aw,fC,lz(lf,n)));return new Kq(Ee,this._parents,H,n)},
filter:function(L){typeof L!=="function"&&(L=$ff(L));for(var H=this._groups,n=H.length,Xn=Array(n),An=0;An<n;++An)for(var Ee=H[An],Lh=Ee.length,r7=Xn[An]=[],V2,fC=0;fC<Lh;++fC)(V2=Ee[fC])&&L.call(V2,V2.__data__,fC,Ee)&&r7.push(V2);return new Kq(Xn,this._parents,this._name,this._id)},
merge:function(L){if(L._id!==this._id)throw Error();var H=this._groups;L=L._groups;for(var n=H.length,Xn=Math.min(n,L.length),An=Array(n),Ee=0;Ee<Xn;++Ee)for(var Lh=H[Ee],r7=L[Ee],V2=Lh.length,fC=An[Ee]=Array(V2),lf,gH=0;gH<V2;++gH)if(lf=Lh[gH]||r7[gH])fC[gH]=lf;for(;Ee<n;++Ee)An[Ee]=H[Ee];return new Kq(An,this._parents,this._name,this._id)},
selection:function(){return new UUX(this._groups,this._parents)},
transition:function(){for(var L=this._name,H=this._id,n=++sbH,Xn=this._groups,An=Xn.length,Ee=0;Ee<An;++Ee)for(var Lh=Xn[Ee],r7=Lh.length,V2,fC=0;fC<r7;++fC)if(V2=Lh[fC]){var lf=lz(V2,H);pet(V2,L,n,fC,Lh,{time:lf.time+lf.delay+lf.duration,delay:0,duration:lf.duration,ease:lf.ease})}return new Kq(Xn,this._parents,L,n)},
call:KD.call,nodes:KD.nodes,node:KD.node,size:KD.size,empty:KD.empty,each:KD.each,on:function(L,H){var n=this._id;return arguments.length<2?lz(this.node(),n).on.on(L):this.each(cMe(n,L,H))},
attr:function(L,H){var n=l(L),Xn=n==="transform"?PwK:cOE;return this.attrTween(L,typeof H==="function"?(n.local?Vga:nje)(n,Xn,DfP(this,"attr."+L,H)):H==null?(n.local?$Sw:SXh)(n):(n.local?sG9:gje)(n,Xn,H+""))},
attrTween:function(L,H){var n="attr."+L;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(H==null)return this.tween(n,null);if(typeof H!=="function")throw Error();var Xn=l(L);return this.tween(n,(Xn.local?YXz:vjh)(Xn,H))},
style:function(L,H,n){var Xn=L==="transform"?MAz:cOE;return H==null?this.styleTween(L,hvN(L,Xn)).on("end.style."+L,Z6S(L)):this.styleTween(L,typeof H==="function"?kR2(L,Xn,DfP(this,"style."+L,H)):lY5(L,Xn,H+""),n)},
styleTween:function(L,H,n){var Xn="style."+L;if(arguments.length<2)return(Xn=this.tween(Xn))&&Xn._value;if(H==null)return this.tween(Xn,null);if(typeof H!=="function")throw Error();return this.tween(Xn,KOt(L,H,n==null?"":n))},
text:function(L){return this.tween("text",typeof L==="function"?AMK(DfP(this,"text",L)):q0X(L==null?"":L+""))},
remove:function(){return this.on("end.remove",XoX(this._id))},
tween:function(L,H){var n=this._id;if(arguments.length<2){n=lz(this.node(),n).tween;for(var Xn=0,An=n.length,Ee;Xn<An;++Xn)if((Ee=n[Xn]).name===L)return Ee.value;return null}return this.each((H==null?ojh:xSl)(n,L,H))},
delay:function(L){var H=this._id;return arguments.length?this.each((typeof L==="function"?iS9:rdN)(H,L)):lz(this.node(),H).delay},
duration:function(L){var H=this._id;return arguments.length?this.each((typeof L==="function"?fY5:Rvt)(H,L)):lz(this.node(),H).duration},
ease:function(L){var H=this._id;return arguments.length?this.each(uAm(H,L)):lz(this.node(),H).ease}};
var V7P={time:null,delay:0,duration:250,ease:function(L){return((L*=2)<=1?L*L*L:(L-=2)*L*L+2)/2}};
lK.prototype.transition=function(L){var H;if(L instanceof Kq){var n=L._id;L=L._name}else n=++sbH,(H=V7P).time=EH(),L=L==null?null:L+"";for(var Xn=this._groups,An=Xn.length,Ee=0;Ee<An;++Ee)for(var Lh=Xn[Ee],r7=Lh.length,V2,fC=0;fC<r7;++fC)if(V2=Lh[fC]){var lf=V2,gH=L,aw=n,mv=fC,x3=Lh,tm;if(!(tm=H))a:{tm=void 0;for(var oy=n;!(tm=V2.__transition)||!(tm=tm[oy]);)if(!(V2=V2.parentNode)){tm=(V7P.time=EH(),V7P);break a}}pet(lf,gH,aw,mv,x3,tm)}return new Kq(Xn,this._parents,L,n)};
["e","w"].map(JOe);["n","s"].map(JOe);"n e s w nw ne se sw".split(" ").map(JOe);zxP.prototype=function(){return new zxP}.prototype={constructor:zxP,
moveTo:function(L,H){this._+="M"+(this._x0=this._x1=+L)+","+(this._y0=this._y1=+H)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(L,H){this._+="L"+(this._x1=+L)+","+(this._y1=+H)},
bezierCurveTo:function(L,H,n,Xn,An,Ee){this._+="C"+ +L+","+ +H+","+ +n+","+ +Xn+","+(this._x1=+An)+","+(this._y1=+Ee)},
rect:function(L,H,n,Xn){this._+="M"+(this._x0=this._x1=+L)+","+(this._y0=this._y1=+H)+"h"+ +n+"v"+ +Xn+"h"+-n+"Z"},
toString:function(){return this._}};
wQ7.prototype=hxE.prototype={constructor:wQ7,has:function(L){return" "+L in this},
get:function(L){return this[" "+L]},
set:function(L,H){this[" "+L]=H;return this},
remove:function(L){L=" "+L;return L in this&&delete this[L]},
clear:function(){for(var L in this)L[0]===" "&&delete this[L]},
keys:function(){var L=[],H;for(H in this)H[0]===" "&&L.push(H.slice(1));return L},
values:function(){var L=[],H;for(H in this)H[0]===" "&&L.push(this[H]);return L},
entries:function(){var L=[],H;for(H in this)H[0]===" "&&L.push({key:H.slice(1),value:this[H]});return L},
size:function(){var L=0,H;for(H in this)H[0]===" "&&++L;return L},
empty:function(){for(var L in this)if(L[0]===" ")return!1;return!0},
each:function(L){for(var H in this)H[0]===" "&&L(this[H],H.slice(1),this)}};
var xA=hxE.prototype;mKl.prototype=function(L,H){var n=new mKl;if(L instanceof mKl)L.each(function(Ee){n.add(Ee)});
else if(L){var Xn=-1,An=L.length;if(H==null)for(;++Xn<An;)n.add(L[Xn]);else for(;++Xn<An;)n.add(H(L[Xn],Xn,L))}return n}.prototype={constructor:mKl,
has:xA.has,add:function(L){this[" "+L]=L;return this},
remove:xA.remove,clear:xA.clear,values:xA.keys,size:xA.size,empty:xA.empty,each:xA.each};var kpt={},TF7={},eJ5=l$Y(",").parse,GDX=l$Y("\t").parse;K0H(eJ5);K0H(GDX);var ff=function(L,H,n){H=new HJ0(H==null?mHe:H,n==null?QtX:n,NaN,NaN,NaN,NaN);return L==null?H:H.addAll(L)}.prototype=HJ0.prototype;
ff.copy=function(){var L=new HJ0(this._x,this._y,this._x0,this._y0,this._x1,this._y1),H=this._root,n,Xn;if(!H)return L;if(!H.length)return L._root=AOF(H),L;for(n=[{source:H,target:L._root=Array(4)}];H=n.pop();)for(var An=0;An<4;++An)if(Xn=H.source[An])Xn.length?n.push({source:Xn,target:H.target[An]=Array(4)}):H.target[An]=AOF(Xn);return L};
ff.add=function(L){var H=+this._x.call(null,L),n=+this._y.call(null,L);return qrE(this.cover(H,n),H,n,L)};
ff.addAll=function(L){var H,n,Xn=L.length,An,Ee,Lh=Array(Xn),r7=Array(Xn),V2=Infinity,fC=Infinity,lf=-Infinity,gH=-Infinity;for(n=0;n<Xn;++n)isNaN(An=+this._x.call(null,H=L[n]))||isNaN(Ee=+this._y.call(null,H))||(Lh[n]=An,r7[n]=Ee,An<V2&&(V2=An),An>lf&&(lf=An),Ee<fC&&(fC=Ee),Ee>gH&&(gH=Ee));lf<V2&&(V2=this._x0,lf=this._x1);gH<fC&&(fC=this._y0,gH=this._y1);this.cover(V2,fC).cover(lf,gH);for(n=0;n<Xn;++n)qrE(this,Lh[n],r7[n],L[n]);return this};
ff.cover=function(L,H){if(isNaN(L=+L)||isNaN(H=+H))return this;var n=this._x0,Xn=this._y0,An=this._x1,Ee=this._y1;if(isNaN(n))An=(n=Math.floor(L))+1,Ee=(Xn=Math.floor(H))+1;else if(n>L||L>An||Xn>H||H>Ee){var Lh=An-n,r7=this._root,V2;switch(V2=(H<(Xn+Ee)/2)<<1|L<(n+An)/2){case 0:do{var fC=Array(4);fC[V2]=r7;r7=fC}while(Lh*=2,An=n+Lh,Ee=Xn+Lh,L>An||H>Ee);break;case 1:do fC=Array(4),fC[V2]=r7,r7=fC;while(Lh*=2,n=An-Lh,Ee=Xn+Lh,n>L||H>Ee);break;case 2:do fC=Array(4),fC[V2]=r7,r7=fC;while(Lh*=2,An=n+Lh,
Xn=Ee-Lh,L>An||Xn>H);break;case 3:do fC=Array(4),fC[V2]=r7,r7=fC;while(Lh*=2,n=An-Lh,Xn=Ee-Lh,n>L||Xn>H)}this._root&&this._root.length&&(this._root=r7)}else return this;this._x0=n;this._y0=Xn;this._x1=An;this._y1=Ee;return this};
ff.data=function(){var L=[];this.visit(function(H){if(!H.length){do L.push(H.data);while(H=H.next)}});
return L};
ff.extent=function(L){return arguments.length?this.cover(+L[0][0],+L[0][1]).cover(+L[1][0],+L[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
ff.find=function(L,H,n){var Xn=this._x0,An=this._y0,Ee,Lh,r7,V2,fC=this._x1,lf=this._y1,gH=[],aw=this._root,mv;aw&&gH.push(new rY(aw,Xn,An,fC,lf));n==null?n=Infinity:(Xn=L-n,An=H-n,fC=L+n,lf=H+n,n*=n);for(;mv=gH.pop();)if(!(!(aw=mv.node)||(Ee=mv.x0)>fC||(Lh=mv.y0)>lf||(r7=mv.x1)<Xn||(V2=mv.y1)<An))if(aw.length){mv=(Ee+r7)/2;var x3=(Lh+V2)/2;gH.push(new rY(aw[3],mv,x3,r7,V2),new rY(aw[2],Ee,x3,mv,V2),new rY(aw[1],mv,Lh,r7,x3),new rY(aw[0],Ee,Lh,mv,x3));if(aw=(H>=x3)<<1|L>=mv)mv=gH[gH.length-1],gH[gH.length-
1]=gH[gH.length-1-aw],gH[gH.length-1-aw]=mv}else if(mv=L-+this._x.call(null,aw.data),x3=H-+this._y.call(null,aw.data),mv=mv*mv+x3*x3,mv<n){var tm=Math.sqrt(n=mv);Xn=L-tm;An=H-tm;fC=L+tm;lf=H+tm;tm=aw.data}return tm};
ff.remove=function(L){if(isNaN(V2=+this._x.call(null,L))||isNaN(fC=+this._y.call(null,L)))return this;var H,n=this._root,Xn,An=this._x0,Ee=this._y0,Lh=this._x1,r7=this._y1,V2,fC,lf,gH,aw,mv,x3;if(!n)return this;if(n.length)for(;;){(aw=V2>=(lf=(An+Lh)/2))?An=lf:Lh=lf;(mv=fC>=(gH=(Ee+r7)/2))?Ee=gH:r7=gH;if(!(H=n,n=n[x3=mv<<1|aw]))return this;if(!n.length)break;if(H[x3+1&3]||H[x3+2&3]||H[x3+3&3]){var tm=H;var oy=x3}}for(;n.data!==L;)if(!(Xn=n,n=n.next))return this;(L=n.next)&&delete n.next;if(Xn)return L?
Xn.next=L:delete Xn.next,this;if(!H)return this._root=L,this;L?H[x3]=L:delete H[x3];(n=H[0]||H[1]||H[2]||H[3])&&n===(H[3]||H[2]||H[1]||H[0])&&!n.length&&(tm?tm[oy]=n:this._root=n);return this};
ff.removeAll=function(L){for(var H=0,n=L.length;H<n;++H)this.remove(L[H]);return this};
ff.root=function(){return this._root};
ff.size=function(){var L=0;this.visit(function(H){if(!H.length){do++L;while(H=H.next)}});
return L};
ff.visit=function(L){var H=[],n,Xn=this._root,An,Ee,Lh,r7,V2;for(Xn&&H.push(new rY(Xn,this._x0,this._y0,this._x1,this._y1));n=H.pop();)if(!L(Xn=n.node,Ee=n.x0,Lh=n.y0,r7=n.x1,V2=n.y1)&&Xn.length){n=(Ee+r7)/2;var fC=(Lh+V2)/2;(An=Xn[3])&&H.push(new rY(An,n,fC,r7,V2));(An=Xn[2])&&H.push(new rY(An,Ee,fC,n,V2));(An=Xn[1])&&H.push(new rY(An,n,Lh,r7,fC));(An=Xn[0])&&H.push(new rY(An,Ee,Lh,n,fC))}};
ff.visitAfter=function(L){var H=[],n=[],Xn;for(this._root&&H.push(new rY(this._root,this._x0,this._y0,this._x1,this._y1));Xn=H.pop();){var An=Xn.node;if(An.length){var Ee,Lh=Xn.x0,r7=Xn.y0,V2=Xn.x1,fC=Xn.y1,lf=(Lh+V2)/2,gH=(r7+fC)/2;(Ee=An[0])&&H.push(new rY(Ee,Lh,r7,lf,gH));(Ee=An[1])&&H.push(new rY(Ee,lf,r7,V2,gH));(Ee=An[2])&&H.push(new rY(Ee,Lh,gH,lf,fC));(Ee=An[3])&&H.push(new rY(Ee,lf,gH,V2,fC))}n.push(Xn)}for(;Xn=n.pop();)L(Xn.node,Xn.x0,Xn.y0,Xn.x1,Xn.y1);return this};
ff.x=function(L){return arguments.length?(this._x=L,this):this._x};
ff.y=function(L){return arguments.length?(this._y=L,this):this._y};
var CH5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;I$e.prototype=M7h.prototype;M7h.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 mfl,QbE={"%":function(L,H){return(L*100).toFixed(H)},
b:function(L){return Math.round(L).toString(2)},
c:function(L){return L+""},
d:function(L){return Math.round(L).toString(10)},
e:function(L,H){return L.toExponential(H)},
f:function(L,H){return L.toFixed(H)},
g:function(L,H){return L.toPrecision(H)},
o:function(L){return Math.round(L).toString(8)},
p:function(L,H){return a$t(L*100,H)},
r:a$t,s:function(L,H){var n=QsP(L,H);if(!n)return L+"";var Xn=n[0];n=n[1];n=n-(mfl=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1;var An=Xn.length;return n===An?Xn:n>An?Xn+Array(n-An+1).join("0"):n>0?Xn.slice(0,n)+"."+Xn.slice(n):"0."+Array(1-n).join("0")+QsP(L,Math.max(0,H+n-1))[0]},
X:function(L){return Math.round(L).toString(16).toUpperCase()},
x:function(L){return Math.round(L).toString(16)}},weY="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),BBm;
(function(L){return BBm=yM2(L)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Bo.prototype={constructor:Bo,reset:function(){this.s=this.t=0},
add:function(L){W0k(NP5,L,this.t);W0k(this,NP5.s,this.s);this.s?this.t+=NP5.t:this.s=NP5.t},
valueOf:function(){return this.s}};
var NP5=new Bo,p0=Math.PI,$R=p0/2,nPY=p0/4,ozz=p0*2,Yr7=p0/180,qA=Math.abs,vP2=Math.atan,NFY=Math.atan2,gh=Math.cos,j8=Math.sin,En5=Math.sqrt;new Bo;new Bo;new Bo;var iJ7=new Bo;(function(L,H,n,Xn){return function(An){function Ee(i3,my){L(i3,my)&&An.point(i3,my)}
function Lh(i3,my){aw.point(i3,my)}
function r7(){hx.point=Lh;aw.lineStart()}
function V2(){hx.point=Ee;aw.lineEnd()}
function fC(i3,my){yu.push([i3,my]);x3.point(i3,my)}
function lf(){x3.lineStart();yu=[]}
function gH(){fC(yu[0][0],yu[0][1]);x3.lineEnd();var i3=x3.clean(),my=mv.result(),sv=my.length,AA;yu.pop();oy.push(yu);yu=null;if(sv)if(i3&1){if(sv=my[0],(my=sv.length-1)>0){tm||(An.polygonStart(),tm=!0);An.lineStart();for(i3=0;i3<my;++i3)An.point((AA=sv[i3])[0],AA[1]);An.lineEnd()}}else sv>1&&i3&2&&my.push(my.pop().concat(my.shift())),vi.push(my.filter(b6t))}
var aw=H(An),mv=NZ9(),x3=H(mv),tm=!1,oy,vi,yu,hx={point:Ee,lineStart:r7,lineEnd:V2,polygonStart:function(){hx.point=fC;hx.lineStart=lf;hx.lineEnd=gH;vi=[];oy=[]},
polygonEnd:function(){hx.point=Ee;hx.lineStart=r7;hx.lineEnd=V2;var i3=vi,my=i3.length;var sv=-1;for(var AA=0,pm,AT;++sv<my;)AA+=i3[sv].length;for(pm=Array(AA);--my>=0;)for(AT=i3[my],sv=AT.length;--sv>=0;)pm[--AA]=AT[sv];vi=pm;i3=oy;my=Xn[0];AA=Xn[1];var ur=j8(AA);sv=[j8(my),-gh(my),0];AT=pm=0;iJ7.reset();ur===1?AA=$R+1E-6:ur===-1&&(AA=-$R-1E-6);ur=0;for(var m2=i3.length;ur<m2;++ur)if(bc=(SN=i3[ur]).length){var SN,bc,xM=SN[bc-1],qW=xM[0],pu=xM[1]/2+nPY,LMe=j8(pu),V7l=gh(pu);for(pu=0;pu<bc;++pu,qW=
rOn,LMe=YrH,V7l=uD,xM=bcP){var bcP=SN[pu],rOn=bcP[0];uD=bcP[1]/2+nPY;var YrH=j8(uD),uD=gh(uD),qh=rOn-qW,fVl=qh>=0?1:-1,Rnn=fVl*qh,pQ2=Rnn>p0;LMe*=YrH;iJ7.add(NFY(LMe*fVl*j8(Rnn),V7l*uD+LMe*gh(Rnn)));pm+=pQ2?qh+fVl*ozz:qh;pQ2^qW>=my^rOn>=my&&(xM=t7l(EPk(xM),EPk(bcP)),CQk(xM),qW=t7l(sv,xM),CQk(qW),qW=(pQ2^qh>=0?-1:1)*WM0(qW[2]),AA>qW||AA===qW&&(xM[0]||xM[1]))&&(AT+=pQ2^qh>=0?1:-1)}}i3=(pm<-1E-6||pm<1E-6&&iJ7<-1E-6)^AT&1;vi.length?(tm||(An.polygonStart(),tm=!0),LOl(vi,poa,i3,n,An)):i3&&(tm||(An.polygonStart(),
tm=!0),An.lineStart(),n(null,null,1,An),An.lineEnd());tm&&(An.polygonEnd(),tm=!1);vi=oy=null},
sphere:function(){An.polygonStart();An.lineStart();n(null,null,1,An);An.lineEnd();An.polygonEnd()}};
return hx}})(function(){return!0},function(L){var H=NaN,n=NaN,Xn=NaN,An;
return{lineStart:function(){L.lineStart();An=1},
point:function(Ee,Lh){var r7=Ee>0?p0:-p0,V2=qA(Ee-H);if(qA(V2-p0)<1E-6)L.point(H,n=(n+Lh)/2>0?$R:-$R),L.point(Xn,n),L.lineEnd(),L.lineStart(),L.point(r7,n),L.point(Ee,n),An=0;else if(Xn!==r7&&V2>=p0){qA(H-Xn)<1E-6&&(H-=Xn*1E-6);qA(Ee-r7)<1E-6&&(Ee-=r7*1E-6);V2=H;var fC=n,lf=Ee,gH,aw,mv=j8(V2-lf);n=qA(mv)>1E-6?vP2((j8(fC)*(aw=gh(Lh))*j8(lf)-j8(Lh)*(gH=gh(fC))*j8(V2))/(gH*aw*mv)):(fC+Lh)/2;L.point(Xn,n);L.lineEnd();L.lineStart();L.point(r7,n);An=0}L.point(H=Ee,n=Lh);Xn=r7},
lineEnd:function(){L.lineEnd();H=n=NaN},
clean:function(){return 2-An}}},function(L,H,n,Xn){L==null?(n*=$R,Xn.point(-p0,n),Xn.point(0,n),Xn.point(p0,n),Xn.point(p0,0),Xn.point(p0,-n),Xn.point(0,-n),Xn.point(-p0,-n),Xn.point(-p0,0),Xn.point(-p0,n)):qA(L[0]-H[0])>1E-6?(L=L[0]<H[0]?p0:-p0,n=n*L/2,Xn.point(-L,n),Xn.point(0,n),Xn.point(L,n)):Xn.point(H[0],H[1])},[-p0,
-$R]);new Bo;new Bo;new Bo;new Bo;PQ7.prototype={constructor:PQ7,point:function(L,H){this.stream.point(L,H)},
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()}};
gh(30*Yr7);(function(L){return function(H){var n=new PQ7,Xn;for(Xn in L)n[Xn]=L[Xn];n.stream=H;return n}})({point:function(L,H){this.stream.point(L*Yr7,H*Yr7)}});
dfC(function(L){return En5(2/(1+L))}).invert=sM(function(L){return 2*WM0(L/2)});
dfC(function(L){return(L=L>1?0:L<-1?p0:Math.acos(L))&&L/j8(L)}).invert=sM(function(L){return L});
En5(3);sM(vP2);sM(WM0);sM(function(L){return 2*vP2(L)});
nV.prototype=L0f.prototype={constructor:nV,count:function(){return this.eachAfter(jta)},
each:function(L){var H,n=[this],Xn;do{var An=n.reverse();for(n=[];H=An.pop();)if(L(H),H=H.children){var Ee=0;for(Xn=H.length;Ee<Xn;++Ee)n.push(H[Ee])}}while(n.length);return this},
eachAfter:function(L){for(var H,n=[this],Xn=[],An,Ee;H=n.pop();)if(Xn.push(H),H=H.children)for(An=0,Ee=H.length;An<Ee;++An)n.push(H[An]);for(;H=Xn.pop();)L(H);return this},
eachBefore:function(L){for(var H,n=[this],Xn;H=n.pop();)if(L(H),H=H.children)for(Xn=H.length-1;Xn>=0;--Xn)n.push(H[Xn]);return this},
sum:function(L){return this.eachAfter(function(H){for(var n=+L(H.data)||0,Xn=H.children,An=Xn&&Xn.length;--An>=0;)n+=Xn[An].value;H.value=n})},
sort:function(L){return this.eachBefore(function(H){H.children&&H.children.sort(L)})},
path:function(L){var H=this;var n=H;var Xn=L;if(n!==Xn){var An=n.ancestors(),Ee=Xn.ancestors(),Lh=null;n=An.pop();for(Xn=Ee.pop();n===Xn;)Lh=n,n=An.pop(),Xn=Ee.pop();n=Lh}for(Xn=[H];H!==n;)H=H.parent,Xn.push(H);for(H=Xn.length;L!==n;)Xn.splice(H,0,L),L=L.parent;return Xn},
ancestors:function(){for(var L=this,H=[L];L=L.parent;)H.push(L);return H},
links:function(){var L=this,H=[];L.each(function(n){n!==L&&H.push({source:n.parent,target:n})});
return H},
copy:function(){return L0f(this).eachBefore(zvm)}};
(function(L,H){this._=L;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=H}).prototype=Object.create(nV.prototype);
var Uf0=new Date,exB=new Date,vPA=Wc(function(){},function(L,H){L.setTime(+L+H)},function(L,H){return H-L});
vPA.every=function(L){L=Math.floor(L);return isFinite(L)&&L>0?L>1?Wc(function(H){H.setTime(Math.floor(H/L)*L)},function(H,n){H.setTime(+H+n*L)},function(H,n){return(n-H)/L}):vPA:null};
Wc(function(L){L.setTime(Math.floor(L/1E3)*1E3)},function(L,H){L.setTime(+L+H*1E3)},function(L,H){return(H-L)/1E3},function(L){return L.getUTCSeconds()});
Wc(function(L){L.setTime(Math.floor(L/6E4)*6E4)},function(L,H){L.setTime(+L+H*6E4)},function(L,H){return(H-L)/6E4},function(L){return L.getMinutes()});
Wc(function(L){var H=L.getTimezoneOffset()*6E4%36E5;H<0&&(H+=36E5);L.setTime(Math.floor((+L-H)/36E5)*36E5+H)},function(L,H){L.setTime(+L+H*36E5)},function(L,H){return(H-L)/36E5},function(L){return L.getHours()});
var jbC=Wc(function(L){L.setHours(0,0,0,0)},function(L,H){L.setDate(L.getDate()+H)},function(L,H){return(H-L-(H.getTimezoneOffset()-L.getTimezoneOffset())*6E4)/864E5},function(L){return L.getDate()-1}),zJX=Bn(0),BFh=Bn(1);
Bn(2);Bn(3);var oP2=Bn(4);Bn(5);Bn(6);Wc(function(L){L.setDate(1);L.setHours(0,0,0,0)},function(L,H){L.setMonth(L.getMonth()+H)},function(L,H){return H.getMonth()-L.getMonth()+(H.getFullYear()-L.getFullYear())*12},function(L){return L.getMonth()});
var ZQ=Wc(function(L){L.setMonth(0,1);L.setHours(0,0,0,0)},function(L,H){L.setFullYear(L.getFullYear()+H)},function(L,H){return H.getFullYear()-L.getFullYear()},function(L){return L.getFullYear()});
ZQ.every=function(L){return isFinite(L=Math.floor(L))&&L>0?Wc(function(H){H.setFullYear(Math.floor(H.getFullYear()/L)*L);H.setMonth(0,1);H.setHours(0,0,0,0)},function(H,n){H.setFullYear(H.getFullYear()+n*L)}):null};
Wc(function(L){L.setUTCSeconds(0,0)},function(L,H){L.setTime(+L+H*6E4)},function(L,H){return(H-L)/6E4},function(L){return L.getUTCMinutes()});
Wc(function(L){L.setUTCMinutes(0,0,0)},function(L,H){L.setTime(+L+H*36E5)},function(L,H){return(H-L)/36E5},function(L){return L.getUTCHours()});
var peY=Wc(function(L){L.setUTCHours(0,0,0,0)},function(L,H){L.setUTCDate(L.getUTCDate()+H)},function(L,H){return(H-L)/864E5},function(L){return L.getUTCDate()-1}),TBK=oM(0),Gpq=oM(1);
oM(2);oM(3);var xfP=oM(4);oM(5);oM(6);Wc(function(L){L.setUTCDate(1);L.setUTCHours(0,0,0,0)},function(L,H){L.setUTCMonth(L.getUTCMonth()+H)},function(L,H){return H.getUTCMonth()-L.getUTCMonth()+(H.getUTCFullYear()-L.getUTCFullYear())*12},function(L){return L.getUTCMonth()});
var lo=Wc(function(L){L.setUTCMonth(0,1);L.setUTCHours(0,0,0,0)},function(L,H){L.setUTCFullYear(L.getUTCFullYear()+H)},function(L,H){return H.getUTCFullYear()-L.getUTCFullYear()},function(L){return L.getUTCFullYear()});
lo.every=function(L){return isFinite(L=Math.floor(L))&&L>0?Wc(function(H){H.setUTCFullYear(Math.floor(H.getUTCFullYear()/L)*L);H.setUTCMonth(0,1);H.setUTCHours(0,0,0,0)},function(H,n){H.setUTCFullYear(H.getUTCFullYear()+n*L)}):null};
var bJA={"-":"",_:" ",0:"0"},dA=/^\s*\d+/,Jkw=/^%/,DU9=/[\\^$*+?|[\]().{}]/g,js0;(function(L){js0=H6m(L);dMC=js0.utcFormat;N_i=js0.utcParse;return js0})({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||dMC("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||N_i("%Y-%m-%dT%H:%M:%S.%LZ");XV("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
XV("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");XV("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");XV("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");XV("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");XV("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");XV("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
XV("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");XV("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");XV("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");XV("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");XV("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var xUS=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(XV);$n(xUS);var S2X=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(XV);$n(S2X);var $Uz=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(XV);$n($Uz);var gzz=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(XV);
$n(gzz);var sgh=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(XV);$n(sgh);var nzX=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(XV);$n(nzX);var VA2=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(XV);$n(VA2);var Y22=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(XV);$n(Y22);var vzK=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(XV);$n(vzK);var ipN=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(XV);$n(ipN);var rkS=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(XV);$n(rkS);var fqh=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(XV);$n(fqh);var RIz=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(XV);$n(RIz);var uzK=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(XV);$n(uzK);var Ode=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(XV);$n(Ode);var cot=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(XV);$n(cot);var Xb5=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(XV);$n(Xb5);var hIK=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(XV);$n(hIK);var ZdN=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(XV);$n(ZdN);var lqm=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(XV);$n(lqm);var k0S=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(XV);$n(k0S);var KqN=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(XV);$n(KqN);var qFa=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(XV);$n(qFa);var Aom=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(XV);$n(Aom);var aqm=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(XV);$n(aqm);var Fqz=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(XV);$n(Fqz);var wb2=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(XV);$n(wb2);nPt(wH(300,.5,0),wH(-240,.5,1));nPt(wH(-100,.75,.35),wH(80,1.5,.8));nPt(wH(260,.75,.35),wH(80,1.5,.8));wH();bK();yyB(XV("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
yyB(XV("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
yyB(XV("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
yyB(XV("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
exf.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(L,H){L=+L;H=+H;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(L,H):this._context.moveTo(L,H);break;case 1:this._point=2;default:this._context.lineTo(L,H)}}};
(function(L){function H(n){return new GpI(L(n))}
H._curve=L;return H})(function(L){return new exf(L)});
GpI.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(L,H){this._curve.point(H*Math.sin(L),H*-Math.cos(L))}};
$fn.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:SrP(this,this._t0,oPA(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(L,H){var n=NaN;L=+L;H=+H;if(L!==this._x1||H!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(L,H):this._context.moveTo(L,H);break;case 1:this._point=2;break;case 2:this._point=3;SrP(this,oPA(this,n=BFC(this,L,H)),n);break;default:SrP(this,this._t0,n=BFC(this,L,H))}this._x0=this._x1;this._x1=L;this._y0=this._y1;this._y1=H;this._t0=n}}};
(function(L){this._context=new xfl(L)}.prototype=Object.create($fn.prototype)).point=function(L,H){$fn.prototype.point.call(this,H,L)};
xfl.prototype={moveTo:function(L,H){this._context.moveTo(H,L)},
closePath:function(){this._context.closePath()},
lineTo:function(L,H){this._context.lineTo(H,L)},
bezierCurveTo:function(L,H,n,Xn,An,Ee){this._context.bezierCurveTo(H,L,Xn,n,Ee,An)}};
rD.prototype={constructor:rD,scale:function(L){return L===1?this:new rD(this.k*L,this.x,this.y)},
translate:function(L,H){return L===0&H===0?this:new rD(this.k,this.x+this.k*L,this.y+this.k*H)},
apply:function(L){return[L[0]*this.k+this.x,L[1]*this.k+this.y]},
invert:function(L){return[(L[0]-this.x)/this.k,(L[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new rD(1,0,0);aI0=Uh;Sn.svg=Sn.svg;Sn.xhtml=Sn.xhtml;Sn.xlink=Sn.xlink;Sn.xml=Sn.xml;Sn.xmlns=Sn.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 LtE="hammer_"+(Math.random()*1E6|0),bff=function(){var f=document||document;if(!f[LtE]){var R=function(){(function(u,O,c,h){function l(tn,MX,o7){return setTimeout(W(tn,o7),MX)}
function K(tn,MX,o7){return Array.isArray(tn)?(q(tn,o7[MX],o7),!0):!1}
function q(tn,MX,o7){var ml;if(tn)if(tn.forEach)tn.forEach(MX,o7);else if(tn.length!==h){var X5=0;for(ml=tn.length;X5<ml;X5++)MX.call(o7,tn[X5],X5,tn)}else for(X5 in tn)tn.hasOwnProperty(X5)&&MX.call(o7,tn[X5],X5,tn)}
function F(tn,MX,o7){for(var ml=Object.keys(MX),X5=0,Dp=ml.length;X5<Dp;X5++)if(!o7||o7&&tn[ml[X5]]===h)tn[ml[X5]]=MX[ml[X5]];return tn}
function w(tn,MX){return F(tn,MX,!0)}
function m(tn,MX,o7){MX=MX.prototype;var ml=tn.prototype=Object.create(MX);ml.constructor=tn;ml._super=MX;o7&&F(ml,o7)}
function W(tn,MX){return function(){return tn.apply(MX,arguments)}}
function C(tn,MX){return typeof tn=="function"?tn.apply(MX?MX[0]||h:h,MX):tn}
function d(tn,MX,o7){q(J(MX),function(ml){tn.addEventListener(ml,o7,!1)})}
function p(tn,MX,o7){q(J(MX),function(ml){tn.removeEventListener(ml,o7,!1)})}
function J(tn){return tn.trim().split(/\s+/g)}
function M(tn,MX,o7){if(tn.indexOf&&!o7)return tn.indexOf(MX);for(var ml=0,X5=tn.length;ml<X5;ml++)if(o7&&tn[ml][o7]==MX||!o7&&tn[ml]===MX)return ml;return-1}
function P(tn,MX,o7){for(var ml=[],X5=[],Dp=0,A9=tn.length;Dp<A9;Dp++){var EE=MX?tn[Dp][MX]:tn[Dp];M(X5,EE)<0&&ml.push(tn[Dp]);X5[Dp]=EE}o7&&(ml=MX?ml.sort(function(wH,Wt){return wH[MX]>Wt[MX]}):ml.sort());
return ml}
function g(tn,MX){for(var o7,ml=MX[0].toUpperCase()+MX.slice(1),X5=0,Dp=Y5.length;X5<Dp;X5++)if(o7=(o7=Y5[X5])?o7+ml:MX,o7 in tn)return o7;return h}
function x(tn,MX){var o7=this;this.manager=tn;this.callback=MX;this.element=tn.element;this.target=tn.options.inputTarget;this.domHandler=function(ml){C(tn.options.enable,[tn])&&o7.handler(ml)};
this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,this.evTarget,this.domHandler);this.evWin&&d(u,this.evWin,this.domHandler)}
function fh(tn){var MX;Wl?MX=St:Kv?MX=Gq:Uh?MX=LC:MX=zq;return new MX(tn,V)}
function V(tn,MX,o7){var ml=o7.pointers.length,X5=o7.changedPointers.length,Dp=MX&1&&ml-X5===0;o7.isFirst=!!Dp;o7.isFinal=!!(MX&12&&ml-X5===0);Dp&&(tn.session={});o7.eventType=MX;MX=tn.session;ml=o7.pointers;X5=ml.length;MX.firstInput||(MX.firstInput=ZD(o7));X5>1&&!MX.firstMultiple?MX.firstMultiple=ZD(o7):X5===1&&(MX.firstMultiple=!1);Dp=MX.firstInput;var A9=(X5=MX.firstMultiple)?X5.center:Dp.center,EE=o7.center=mP(ml);o7.timeStamp=Eh();o7.deltaTime=o7.timeStamp-Dp.timeStamp;o7.angle=Jn(A9,EE);o7.distance=
jt(A9,EE);Dp=o7.center;A9=MX.offsetDelta||{};EE=MX.prevDelta||{};var wH=MX.prevInput||{};if(o7.eventType===1||wH.eventType===4)EE=MX.prevDelta={x:wH.deltaX||0,y:wH.deltaY||0},A9=MX.offsetDelta={x:Dp.x,y:Dp.y};o7.deltaX=EE.x+(Dp.x-A9.x);o7.deltaY=EE.y+(Dp.y-A9.y);o7.offsetDirection=NX(o7.deltaX,o7.deltaY);X5?(Dp=X5.pointers,Dp=jt(ml[0],ml[1],bK)/jt(Dp[0],Dp[1],bK)):Dp=1;o7.scale=Dp;X5?(X5=X5.pointers,ml=Jn(ml[1],ml[0],bK)-Jn(X5[1],X5[0],bK)):ml=0;o7.rotation=ml;A9=MX.lastInterval||o7;ml=o7.timeStamp-
A9.timeStamp;o7.eventType!=8&&(ml>25||A9.velocity===h)?(Dp=A9.deltaX-o7.deltaX,A9=A9.deltaY-o7.deltaY,EE=Dp/ml||0,wH=A9/ml||0,ml=EE,X5=wH,EE=CC(EE)>CC(wH)?EE:wH,Dp=NX(Dp,A9),MX.lastInterval=o7):(EE=A9.velocity,ml=A9.velocityX,X5=A9.velocityY,Dp=A9.direction);o7.velocity=EE;o7.velocityX=ml;o7.velocityY=X5;o7.direction=Dp;MX=tn.element;a:{for(ml=o7.srcEvent.target;ml;){if(ml==MX){ml=!0;break a}ml=ml.parentNode}ml=!1}ml&&(MX=o7.srcEvent.target);o7.target=MX;tn.emit("hammer.input",o7);tn.recognize(o7);
tn.session.prevInput=o7}
function ZD(tn){for(var MX=[],o7=0;o7<tn.pointers.length;o7++)MX[o7]={clientX:lK(tn.pointers[o7].clientX),clientY:lK(tn.pointers[o7].clientY)};return{timeStamp:Eh(),pointers:MX,center:mP(MX),deltaX:tn.deltaX,deltaY:tn.deltaY}}
function mP(tn){var MX=tn.length;if(MX===1)return{x:lK(tn[0].clientX),y:lK(tn[0].clientY)};for(var o7=0,ml=0,X5=0;X5<MX;X5++)o7+=tn[X5].clientX,ml+=tn[X5].clientY;return{x:lK(o7/MX),y:lK(ml/MX)}}
function NX(tn,MX){return tn===MX?1:CC(tn)>=CC(MX)?tn>0?2:4:MX>0?8:16}
function jt(tn,MX,o7){o7||(o7=BG);var ml=MX[o7[0]]-tn[o7[0]];tn=MX[o7[1]]-tn[o7[1]];return Math.sqrt(ml*ml+tn*tn)}
function Jn(tn,MX,o7){o7||(o7=BG);return Math.atan2(MX[o7[1]]-tn[o7[1]],MX[o7[0]]-tn[o7[0]])*180/Math.PI}
function zq(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;x.apply(this,arguments)}
function St(){this.evEl=Ek;this.evWin=cf;x.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Gq(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};x.apply(this,arguments)}
function LC(){x.apply(this,arguments);var tn=W(this.handler,this);this.touch=new Gq(this.manager,tn);this.mouse=new zq(this.manager,tn)}
function wN(tn,MX){this.manager=tn;this.set(MX)}
function GI(tn){if(tn.indexOf("none")>-1)return"none";var MX=tn.indexOf("pan-x")>-1,o7=tn.indexOf("pan-y")>-1;return MX&&o7?"pan-x pan-y":MX||o7?MX?"pan-x":"pan-y":tn.indexOf("manipulation")>-1?"manipulation":"auto"}
function ak(tn){this.id=k_++;this.manager=null;this.options=w(tn||{},this.defaults);tn=this.options.enable;this.options.enable=tn===h?!0:tn;this.state=1;this.simultaneous={};this.requireFail=[]}
function kC(tn){return tn==16?"down":tn==8?"up":tn==2?"left":tn==4?"right":""}
function Rw(tn,MX){return(MX=MX.manager)?MX.get(tn):tn}
function KC(){ak.apply(this,arguments)}
function qe(){KC.apply(this,arguments);this.pY=this.pX=null}
function LE(){KC.apply(this,arguments)}
function k5(){ak.apply(this,arguments);this._input=this._timer=null}
function yA(){KC.apply(this,arguments)}
function HG(){KC.apply(this,arguments)}
function GX(){ak.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function bf(tn,MX){MX=MX||{};var o7=MX.recognizers;MX.recognizers=o7===h?bf.defaults.preset:o7;return new $C(tn,MX)}
function $C(tn,MX){MX=MX||{};this.options=w(MX,bf.defaults);this.options.inputTarget=this.options.inputTarget||tn;this.handlers={};this.session={};this.recognizers=[];this.element=tn;this.input=fh(this);this.touchAction=new wN(this,this.options.touchAction);Bl(this,!0);q(MX.recognizers,function(o7){var ml=this.add(new o7[0](o7[1]));o7[2]&&ml.recognizeWith(o7[2]);o7[3]&&ml.requireFailure(o7[2])},this)}
function Bl(tn,MX){var o7=tn.element;q(tn.options.cssProps,function(ml,X5){o7.style[g(o7.style,X5)]=MX?ml:""})}
function qt(tn,MX){var o7=O.createEvent("Event");o7.initEvent(tn,!0,!0);o7.gesture=MX;MX.target.dispatchEvent(o7)}
var Y5=" webkit moz MS ms o".split(" "),tf=O.createElement("div"),lK=Math.round,CC=Math.abs,Eh=Date.now,k_=1,kM=/mobile|tablet|ip(ad|hone|od)|android/i,Uh="ontouchstart"in u,Wl=g(u,"PointerEvent")!==h,Kv=Uh&&kM.test(navigator.userAgent),BG=["x","y"],bK=["clientX","clientY"];x.prototype={handler:function(){},
destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler);this.evTarget&&p(this.target,this.evTarget,this.domHandler);this.evWin&&p(u,this.evWin,this.domHandler)}};
var vt={mousedown:1,mousemove:2,mouseup:4};m(zq,x,{handler:function(tn){var MX=vt[tn.type];MX&1&&tn.button===0&&(this.pressed=!0);MX&2&&tn.which!==1&&(MX=4);this.pressed&&this.allow&&(MX&4&&(this.pressed=!1),this.callback(this.manager,MX,{pointers:[tn],changedPointers:[tn],pointerType:"mouse",srcEvent:tn}))}});
var iK={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ob={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ek="pointerdown",cf="pointermove pointerup pointercancel";u.MSPointerEvent&&(Ek="MSPointerDown",cf="MSPointerMove MSPointerUp MSPointerCancel");m(St,x,{handler:function(tn){var MX=this.store,o7=!1,ml=tn.type.toLowerCase().replace("ms","");ml=iK[ml];var X5=Ob[tn.pointerType]||tn.pointerType;ml&1&&(tn.button===0||X5=="touch")?MX.push(tn):ml&12&&(o7=!0);var Dp=M(MX,tn.pointerId,"pointerId");
Dp<0||(MX[Dp]=tn,this.callback(this.manager,ml,{pointers:MX,changedPointers:[tn],pointerType:X5,srcEvent:tn}),o7&&MX.splice(Dp,1))}});
var Ct={touchstart:1,touchmove:2,touchend:4,touchcancel:8};m(Gq,x,{handler:function(tn){var MX=Ct[tn.type];var o7=Array.prototype.slice.call(tn.touches,0);var ml=this.targetIds;if(MX&3&&o7.length===1)ml[o7[0].identifier]=!0,ml=[o7,o7];else{var X5,Dp=Array.prototype.slice.call(tn.targetTouches,0),A9=Array.prototype.slice.call(tn.changedTouches,0),EE=[];if(MX===1)for(o7=0,X5=Dp.length;o7<X5;o7++)ml[Dp[o7].identifier]=!0;o7=0;for(X5=A9.length;o7<X5;o7++)ml[A9[o7].identifier]&&EE.push(A9[o7]),MX&12&&
delete ml[A9[o7].identifier];ml=EE.length?[P(Dp.concat(EE),"identifier",!0),EE]:void 0}ml&&this.callback(this.manager,MX,{pointers:ml[0],changedPointers:ml[1],pointerType:"touch",srcEvent:tn})}});
m(LC,x,{handler:function(tn,MX,o7){var ml=o7.pointerType=="mouse";if(o7.pointerType=="touch")this.mouse.allow=!1;else if(ml&&!this.mouse.allow)return;MX&12&&(this.mouse.allow=!0);this.callback(tn,MX,o7)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Gd=g(tf.style,"touchAction"),AZ=Gd!==h;wN.prototype={set:function(tn){tn=="compute"&&(tn=this.compute());AZ&&(this.manager.element.style[Gd]=tn);this.actions=tn.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var tn=[];q(this.manager.recognizers,function(MX){C(MX.options.enable,[MX])&&(tn=tn.concat(MX.getTouchAction()))});
return GI(tn.join(" "))},
preventDefaults:function(tn){if(!AZ){var MX=tn.srcEvent;tn=tn.offsetDirection;if(this.manager.session.prevented)MX.preventDefault();else{var o7=this.actions,ml=o7.indexOf("none")>-1,X5=o7.indexOf("pan-y")>-1;o7=o7.indexOf("pan-x")>-1;if(ml||X5&&o7||X5&&tn&6||o7&&tn&24)return this.preventSrc(MX)}}},
preventSrc:function(tn){this.manager.session.prevented=!0;tn.preventDefault()}};
ak.prototype={defaults:{},set:function(tn){F(this.options,tn);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(tn){if(K(tn,"recognizeWith",this))return this;var MX=this.simultaneous;tn=Rw(tn,this);MX[tn.id]||(MX[tn.id]=tn,tn.recognizeWith(this));return this},
dropRecognizeWith:function(tn){if(K(tn,"dropRecognizeWith",this))return this;tn=Rw(tn,this);delete this.simultaneous[tn.id];return this},
requireFailure:function(tn){if(K(tn,"requireFailure",this))return this;var MX=this.requireFail;tn=Rw(tn,this);M(MX,tn)===-1&&(MX.push(tn),tn.requireFailure(this));return this},
dropRequireFailure:function(tn){if(K(tn,"dropRequireFailure",this))return this;tn=Rw(tn,this);tn=M(this.requireFail,tn);tn>-1&&this.requireFail.splice(tn,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(tn){return!!this.simultaneous[tn.id]},
emit:function(tn){function MX(X5){o7.manager.emit(o7.options.event+(X5?ml&16?"cancel":ml&8?"end":ml&4?"move":ml&2?"start":"":""),tn)}
var o7=this,ml=this.state;ml<8&&MX(!0);MX();ml>=8&&MX(!0)},
tryEmit:function(tn){if(this.canEmit())return this.emit(tn);this.state=32},
canEmit:function(){for(var tn=0;tn<this.requireFail.length;tn++)if(!(this.requireFail[tn].state&33))return!1;return!0},
recognize:function(tn){tn=F({},tn);C(this.options.enable,[this,tn])?(this.state&56&&(this.state=1),this.state=this.process(tn),this.state&30&&this.tryEmit(tn)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
m(KC,ak,{defaults:{pointers:1},attrTest:function(tn){var MX=this.options.pointers;return MX===0||tn.pointers.length===MX},
process:function(tn){var MX=this.state,o7=tn.eventType,ml=MX&6;tn=this.attrTest(tn);return ml&&(o7&8||!tn)?MX|16:ml||tn?o7&4?MX|8:MX&2?MX|4:2:32}});
m(qe,KC,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var tn=this.options.direction;if(tn===30)return["none"];var MX=[];tn&6&&MX.push("pan-y");tn&24&&MX.push("pan-x");return MX},
directionTest:function(tn){var MX=this.options,o7=!0,ml=tn.distance,X5=tn.direction,Dp=tn.deltaX,A9=tn.deltaY;X5&MX.direction||(MX.direction&6?(X5=Dp===0?1:Dp<0?2:4,o7=Dp!=this.pX,ml=Math.abs(tn.deltaX)):(X5=A9===0?1:A9<0?8:16,o7=A9!=this.pY,ml=Math.abs(tn.deltaY)));tn.direction=X5;return o7&&ml>MX.threshold&&X5&MX.direction},
attrTest:function(tn){return KC.prototype.attrTest.call(this,tn)&&(this.state&2||!(this.state&2)&&this.directionTest(tn))},
emit:function(tn){this.pX=tn.deltaX;this.pY=tn.deltaY;var MX=kC(tn.direction);MX&&this.manager.emit(this.options.event+MX,tn);this._super.emit.call(this,tn)}});
m(LE,KC,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(tn){return this._super.attrTest.call(this,tn)&&(Math.abs(tn.scale-1)>this.options.threshold||this.state&2)},
emit:function(tn){this._super.emit.call(this,tn);tn.scale!==1&&this.manager.emit(this.options.event+(tn.scale<1?"in":"out"),tn)}});
m(k5,ak,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(tn){var MX=this.options,o7=tn.pointers.length===MX.pointers,ml=tn.distance<MX.threshold,X5=tn.deltaTime>MX.time;this._input=tn;if(!ml||!o7||tn.eventType&12&&!X5)this.reset();else if(tn.eventType&1)this.reset(),this._timer=l(function(){this.state=8;this.tryEmit()},MX.time,this);
else if(tn.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(tn){this.state===8&&(tn&&tn.eventType&4?this.manager.emit(this.options.event+"up",tn):(this._input.timeStamp=Eh(),this.manager.emit(this.options.event,this._input)))}});
m(yA,KC,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(tn){return this._super.attrTest.call(this,tn)&&(Math.abs(tn.rotation)>this.options.threshold||this.state&2)}});
m(HG,KC,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return qe.prototype.getTouchAction.call(this)},
attrTest:function(tn){var MX=this.options.direction;if(MX&30)var o7=tn.velocity;else MX&6?o7=tn.velocityX:MX&24&&(o7=tn.velocityY);return this._super.attrTest.call(this,tn)&&MX&tn.direction&&CC(o7)>this.options.velocity&&tn.eventType&4},
emit:function(tn){var MX=kC(tn.direction);MX&&this.manager.emit(this.options.event+MX,tn);this.manager.emit(this.options.event,tn)}});
m(GX,ak,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(tn){var MX=this.options,o7=tn.pointers.length===MX.pointers,ml=tn.distance<MX.threshold,X5=tn.deltaTime<MX.time;this.reset();if(tn.eventType&1&&this.count===0)return this.failTimeout();if(ml&&X5&&o7){if(tn.eventType!=4)return this.failTimeout();o7=this.pTime?tn.timeStamp-this.pTime<MX.interval:!0;ml=!this.pCenter||jt(this.pCenter,tn.center)<MX.posThreshold;this.pTime=tn.timeStamp;this.pCenter=tn.center;ml&&o7?this.count+=1:this.count=1;this._input=tn;if(this.count%MX.taps===0)return this.hasRequireFailures()?
(this._timer=l(function(){this.state=8;this.tryEmit()},MX.interval,this),2):8}return 32},
failTimeout:function(){this._timer=l(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))}});
bf.VERSION="2.0.2";bf.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[yA,{enable:!1}],[LE,{enable:!1},["rotate"]],[HG,{direction:6}],[qe,{direction:6},["swipe"]],[GX],[GX,{event:"doubletap",taps:2},["tap"]],[k5]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};$C.prototype={set:function(tn){F(this.options,tn);return this},
stop:function(tn){this.session.stopped=tn?2:1},
recognize:function(tn){var MX=this.session;if(!MX.stopped){this.touchAction.preventDefaults(tn);var o7=this.recognizers,ml=MX.curRecognizer;if(!ml||ml&&ml.state&8)ml=MX.curRecognizer=null;for(var X5=0,Dp=o7.length;X5<Dp;X5++){var A9=o7[X5];MX.stopped===2||ml&&A9!=ml&&!A9.canRecognizeWith(ml)?A9.reset():A9.recognize(tn);!ml&&A9.state&14&&(ml=MX.curRecognizer=A9)}}},
get:function(tn){if(tn instanceof ak)return tn;for(var MX=this.recognizers,o7=0;o7<MX.length;o7++)if(MX[o7].options.event==tn)return MX[o7];return null},
add:function(tn){if(K(tn,"add",this))return this;var MX=this.get(tn.options.event);MX&&this.remove(MX);this.recognizers.push(tn);tn.manager=this;this.touchAction.update();return tn},
remove:function(tn){if(K(tn,"remove",this))return this;var MX=this.recognizers;tn=this.get(tn);MX.splice(M(MX,tn),1);this.touchAction.update();return this},
on:function(tn,MX){var o7=this.handlers;q(J(tn),function(ml){o7[ml]=o7[ml]||[];o7[ml].push(MX)});
return this},
off:function(tn,MX){var o7=this.handlers;q(J(tn),function(ml){MX?o7[ml].splice(M(o7[ml],MX),1):delete o7[ml]});
return this},
emit:function(tn,MX){this.options.domEvents&&qt(tn,MX);var o7=this.handlers[tn]&&this.handlers[tn].slice();if(o7&&o7.length){MX.type=tn;MX.preventDefault=function(){MX.srcEvent.preventDefault()};
tn=0;for(var ml=o7.length;tn<ml;tn++)o7[tn](MX)}},
destroy:function(){this.element&&Bl(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
F(bf,{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:$C,Input:x,TouchAction:wN,Recognizer:ak,AttrRecognizer:KC,Tap:GX,Pan:qe,Swipe:HG,Pinch:LE,Rotate:yA,Press:k5,on:d,off:p,each:q,merge:w,extend:F,inherit:m,bindFn:W,prefixed:g});
u[c]=bf})(window,document,"Hammer");
return window.Hammer}.call({});
R.DOCUMENT=f;f[LtE]=R}return f[LtE]};/*

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

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

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var Pm,OLC,cSC;Pm=Element.prototype;OLC=Pm.matches||Pm.matchesSelector||Pm.mozMatchesSelector||Pm.msMatchesSelector||Pm.oMatchesSelector||Pm.webkitMatchesSelector;cSC=function(){};
_.h5A=function(f){var R=XMf,u=[];return R._collectTabbableNodes(f,u)?R._sortByTabIndex(u):u};
_.X=cSC.prototype;_.X._normalizedTabIndex=function(f){return(OLC.call(f,"input, select, textarea, button, object")?OLC.call(f,":not([disabled])"):OLC.call(f,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(f=f.getAttribute("tabindex")||0,Number(f)):-1};
_.X._collectTabbableNodes=function(f,R){if(f.nodeType!==Node.ELEMENT_NODE||!this._isVisible(f))return!1;var u=this._normalizedTabIndex(f),O=u>0;u>=0&&R.push(f);if(f.localName==="content"||f.localName==="slot")u=_.du(f).getDistributedNodes();else{var c;u=((c=_.du(f).shadowRoot)!=null?c:_.du(f.root||f)).children}for(f=0;f<u.length;f++)O=this._collectTabbableNodes(u[f],R)||O;return O};
_.X._isVisible=function(f){var R=f.style;return R.visibility!=="hidden"&&R.display!=="none"?(R=window.getComputedStyle(f),R.visibility!=="hidden"&&R.display!=="none"):!1};
_.X._sortByTabIndex=function(f){var R=f.length;if(R<2)return f;var u=Math.ceil(R/2);R=this._sortByTabIndex(f.slice(0,u));f=this._sortByTabIndex(f.slice(u));return this._mergeSortByTabIndex(R,f)};
_.X._mergeSortByTabIndex=function(f,R){for(var u=[];f.length>0&&R.length>0;)this._hasLowerTabOrder(f[0],R[0])?u.push(R.shift()):u.push(f.shift());return u.concat(f,R)};
_.X._hasLowerTabOrder=function(f,R){f=Math.max(f.tabIndex,0);R=Math.max(R.tabIndex,0);return f===0||R===0?R>f:f>R};
var XMf=new cSC;var ZLH;var lBH;_.NM({_template:function(){if(lBH!==void 0)return lBH;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ZLH===void 0&&(ZLH=document.createElement("template"));var O=ZLH;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return lBH=f},
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&&_.du(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.du(this.parentNode).removeChild(this)},
_onTransitionend:function(f){f&&f.target===this&&this.complete()},
_openedChanged:function(f){f?this.prepare():(f=window.getComputedStyle(this),f.transitionDuration!=="0s"&&f.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 UT=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Da(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)};
UT.prototype._bringOverlayAtIndexToFront=function(f){var R=this._overlays[f];if(R){var u=this._overlays.length-1,O=this._overlays[u];O&&this._shouldBeBehindOverlay(R,O)&&u--;if(!(f>=u)){O=Math.max(this._getZ(_.kwE(this)),this._minimumZ);for(this._getZ(R)<=O&&this._applyOverlayZ(R,O);f<u;)this._overlays[f]=this._overlays[f+1],f++;this._overlays[u]=R}}};
UT.prototype.addOverlay=function(f){var R=this._overlays.indexOf(f);if(R>=0)this._bringOverlayAtIndexToFront(R);else{R=this._overlays.length;var u=this._overlays[R-1],O=Math.max(this._getZ(u),this._minimumZ),c=this._getZ(f);u&&this._shouldBeBehindOverlay(f,u)&&(this._applyOverlayZ(u,O),R--,O=Math.max(this._getZ(this._overlays[R-1]),this._minimumZ));c<=O&&this._applyOverlayZ(f,O);this._overlays.splice(R,0,f)}this.trackBackdrop()};
UT.prototype.removeOverlay=function(f){f=this._overlays.indexOf(f);f!==-1&&(this._overlays.splice(f,1),this.trackBackdrop())};
_.kwE=function(f){return f._overlays[f._overlays.length-1]};
_.X=UT.prototype;_.X.trackBackdrop=function(){var f=this._overlayWithBackdrop();if(f||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(f)-1,this.backdropElement.opened=!!f,this.backdropElement.prepare()};
_.X._overlayWithBackdrop=function(){for(var f=this._overlays.length-1;f>=0;f--)if(this._overlays[f].withBackdrop)return this._overlays[f]};
_.X._getZ=function(f){var R=this._minimumZ;if(f){var u,O,c=Number(((u=f.hostElement)!=null?u:f).style.zIndex||window.getComputedStyle((O=f.hostElement)!=null?O:f).zIndex);c===c&&(R=c)}return R};
_.X._setZ=function(f,R){var u;((u=f.hostElement)!=null?u:f).style.zIndex=R};
_.X._applyOverlayZ=function(f,R){this._setZ(f,R+2)};
_.X._overlayInPath=function(f){f=f||[];for(var R=0;R<f.length;R++){var u=void 0;if(((u=f[R].polymerController)!=null?u:f[R])._manager===this)return f[R]}};
_.X._onCaptureClick=function(f){var R=this._overlays.length-1;if(R!==-1)for(var u=_.du(f).path,O,c;(O=this._overlays[R])&&this._overlayInPath(u)!==((c=O.hostElement)!=null?c:O);)if(O._onCaptureClick(f),O.allowClickThrough)R--;else break};
_.X._onCaptureFocus=function(f){var R=_.kwE(this);R&&R._onCaptureFocus(f)};
_.X._onCaptureKeyDown=function(f){var R=_.kwE(this);R&&(_.mJ.keyboardEventMatchesKeys(f,"esc")?R._onCaptureEsc(f):_.mJ.keyboardEventMatchesKeys(f,"tab")&&R._onCaptureTab(f))};
_.X._shouldBeBehindOverlay=function(f,R){return!f.alwaysOnTop&&R.alwaysOnTop&&!R.contains(f)};
_.Vy.Object.defineProperties(UT.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 f=document.activeElement;f&&f instanceof Element!==!1||(f=document.body);for(;f.root&&_.du(f.root).activeElement;)f=_.du(f.root).activeElement;return f}}});
_.ev=new UT;var pI5=0,jgn=0,DUn=null,Jk7=[],Ns=["wheel","mousewheel","DOMMouseScroll"],zJq;_.E("web_no_lock_on_touchstart_killswitch")&&(Ns.push("touchstart"),Ns.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;_.Gh={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:_.ev},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var f;return this._focusedChild||_.du((f=this.hostElement)!=null?f:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var f;return _.h5A((f=this.hostElement)!=null?f: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 f;this._observer=_.du((f=this.hostElement)!=null?f:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var f;_.du((f=this.hostElement)!=null?f:this).unobserveNodes(this._observer)}this._observer=null;for(var R in this.__rafs)this.__rafs[R]!==null&&cancelAnimationFrame(this.__rafs[R]);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(f){this.fire("iron-overlay-canceled",f,{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 f;((f=this.hostElement)!=null?f:this).style.outline="none";var R;((R=this.hostElement)!=null?R:this).style.display="none"}},
_openedChanged:function(f){if(f){var R;((R=this.hostElement)!=null?R: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 f;if(this.withBackdrop&&!((f=this.hostElement)!=null?f:this).hasAttribute("tabindex")){var R;((R=this.hostElement)!=null?R: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 f;((f=this.hostElement)!=null?f:this).style.display="none";var R;((R=this.hostElement)!=null?R:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var f,R;((f=this.hostElement)!=null?f:this).style.transition=((R=this.hostElement)!=null?R:this).style.webkitTransition="none";var u,O;((u=this.hostElement)!=null?u:this).style.transform=((O=this.hostElement)!=null?O:this).style.webkitTransform="none";var c;((c=this.hostElement)!=null?c:this).style.display=""},
_finishPositioning:function(){var f;((f=this.hostElement)!=null?f:this).style.display="none";this.scrollTop=this.scrollTop;var R,u;((R=this.hostElement)!=null?R:this).style.transition=((u=this.hostElement)!=null?u:this).style.webkitTransition="";var O,c;((O=this.hostElement)!=null?O:this).style.transform=((c=this.hostElement)!=null?c:this).style.webkitTransform="";var h;((h=this.hostElement)!=null?h:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var f=this._manager.deepActiveElement,R;if(!(R=f===document.body))a:{for(;f;f=f.assignedSlot||f.parentNode||f.host)if(f===this){R=!0;break a}R=!1}R&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(f){this.noCancelOnOutsideClick||this.cancel(f)},
_onCaptureFocus:function(f){if(this.withBackdrop){var R=_.du(f).path;R.indexOf(this)===-1?(f.stopPropagation(),this._applyFocus()):this._focusedChild=R[0]}},
_onCaptureEsc:function(f){this.noCancelOnEscKey||this.cancel(f)},
_onCaptureTab:function(f){if(this.withBackdrop){this.__ensureFirstLastFocusables();var R=f.shiftKey,u=R?this.__firstFocusableNode:this.__lastFocusableNode;R=R?this.__lastFocusableNode:this.__firstFocusableNode;if(u===R)u=!0;else{var O=this._manager.deepActiveElement;u=O===u||O===this}u&&(f.preventDefault(),this._focusedChild=R,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 f=this._focusableNodes;this.__firstFocusableNode=f[0];this.__lastFocusableNode=f[f.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(f,R){var u=this.__rafs;u[f]!==null&&cancelAnimationFrame(u[f]);u[f]=requestAnimationFrame(function(){u[f]=null;R.call(this)}.bind(this))},
__updateScrollObservers:function(f,R,u){f&&R&&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),zJq=_._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()):(f=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),f!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(f,1),zJq=_._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(M1)for(var f=this;f;)f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&f.host&&this.__rootNodes.push(f),f=f.host||f.assignedSlot||f.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(R){R.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(f){f.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(f){return f==="lock"||f==="refit"||f==="cancel"},
__onCaptureScroll:function(f){if(!(this.__isAnimating||_.du(f).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(f)}},
__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)}};
_.Bm=[ufF,_.Lu,_.Gh];_.NM({_template:function(){if(fBY!==void 0)return fBY;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;r4C===void 0&&(r4C=document.createElement("template"));var O=r4C;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return fBY=f},
is:"tp-yt-iron-dropdown",behaviors:[_.QX,_.mJ,_.Bm,$MI],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 f=_.du(this.$.content).getDistributedNodes(),R=0,u=f.length;R<u;R++)if(f[R].nodeType===Node.ELEMENT_NODE)return f[R]},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(),_.Gh._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Gh._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Gh._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var f=this.containedElement,R=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),u=0;u<R.length;u++)R[u].node=f;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(f){this._readied&&(f?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var f=this.focusTarget||this.containedElement;f&&this.opened&&!this.noAutoFocus?f.focus():_.Gh._applyFocus.apply(this,arguments)}});var K8E;var qzi;/*

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 ASf=new _.Cu({type:"iconset"});
_.NM({_template:function(){if(qzi!==void 0)return qzi;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;K8E===void 0&&(K8E=document.createElement("template"));
var O=K8E;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return qzi=f},
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(f){f=(f||"").split(":");this._iconName=f.pop();this._iconsetName=f.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&&_.du(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=ASf.byKey(this._iconsetName)){var f=this._iconset.applyIcon(this,this._iconName,this.theme);f&&f.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,_.du(this.root).appendChild(this._img)}});var aBl;var F8Y;_.NM({_template:function(){if(F8Y!==void 0)return F8Y;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;aBl===void 0&&(aBl=document.createElement("template"));var O=aBl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return F8Y=f},
is:"tp-yt-iron-input",behaviors:[_.dm],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(){_.Mj.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.du(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.du(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 f=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":f=/[0-9.,e-]/}return f},_bindValueChanged:function(f,R){R&&(f===void 0?R.value=null:f!==R.value&&(this.inputElement.value=f),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:f}))},
_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(f){var R=f.keyCode==19||f.keyCode==20||f.keyCode==45||f.keyCode==46||f.keyCode==144||f.keyCode==145||f.keyCode>32&&f.keyCode<41||f.keyCode>111&&f.keyCode<124;return!(f.keyCode==8||f.keyCode==9||f.keyCode==13||f.keyCode==27)&&!(f.charCode==0&&R)},
_onKeypress:function(f){if(this.allowedPattern||this.inputElement.type==="number"){var R=this._patternRegExp;if(R&&!(f.metaKey||f.ctrlKey||f.altKey)){this._patternAlreadyChecked=!0;var u=String.fromCharCode(f.charCode);this._isPrintable(f)&&!R.test(u)&&(f.preventDefault(),this._announceInvalidCharacter("Invalid character "+u+" not entered."))}}},
_checkPatternValidity:function(){var f=this._patternRegExp;if(!f)return!0;for(var R=0;R<this.inputElement.value.length;R++)if(!f.test(this.inputElement.value[R]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var f=this.inputElement.checkValidity();f&&(this.required&&this.bindValue===""?f=!1:this.hasValidator()&&(f=_.dm.validate.call(this,this.bindValue)));this.invalid=!f;this.fire("iron-input-validate");return f},
_announceInvalidCharacter:function(f){this.fire("iron-announce",{text:f})},
_computeValue:function(f){return f}});var wMl;var mII;var QXl=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),W8H=QXl&&QXl[1]>=8;
_.NM({_template:function(){if(mII!==void 0)return mII;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;wMl===void 0&&(wMl=document.createElement("template"));var O=wMl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return mII=f},
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:[Yle,_.Lu,_.SUk,Tuk],_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 _.du(_.du(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var f=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,f-this._physicalCount)},set _virtualStart(f){f=this._clamp(f,0,this._maxVirtualStart);this.grid&&(f-=f%this._itemsPerRow);this._virtualStartVal=f},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(f){f%=this._physicalCount;f<0&&(f=this._physicalCount+f);this.grid&&(f-=f%this._itemsPerRow);this._physicalStartVal=f},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(f){this._physicalCountVal=f},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 f=this._firstVisibleIndexVal;if(f==null){var R=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
f=this._iterateItems(function(u,O){R+=this._getPhysicalSizeIncrement(u);if(R>this._scrollPosition)return this.grid?O-O%this._itemsPerRow:O;if(this.grid&&this._virtualCount-1===O)return O-O%this._itemsPerRow})||0}return f},
get lastVisibleIndex(){var f=this._lastVisibleIndexVal;if(f==null){if(this.grid)f=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var R=this._physicalTop+this._scrollOffset;this._iterateItems(function(u,O){R<this._scrollBottom&&(f=O);R+=this._getPhysicalSizeIncrement(u)})}this._lastVisibleIndexVal=f}return f},
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,_.dR);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(f){this.style.webkitOverflowScrolling=f===this?"touch":"";this.style.overflowY=f===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.dR)},
updateViewportBoundaries:function(){var f=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(f["padding-top"],10);this._isRTL=f.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var f=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),R=f-this._scrollPosition,u=R>=0;this._scrollPosition=f;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(R)>this._physicalSize&&this._physicalSize>0?(R-=this._scrollOffset,u=Math.round(R/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&&(f=this._getReusables(u),u?(this._physicalTop=f.physicalTop,this._virtualStart+=f.indexes.length,this._physicalStart+=f.indexes.length):(this._virtualStart=this._virtualStart-f.indexes.length,this._physicalStart=this._physicalStart-f.indexes.length),this._update(f.indexes,u?null:f.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),TO))},
_getReusables:function(f){var R=[],u=this._hiddenContentSize*this._ratio,O=this._virtualStart,c=this._virtualEnd,h=this._physicalCount,l=this._physicalTop+this._scrollOffset;var K=this._physicalBottom+this._scrollOffset;var q=this._scrollPosition,F=this._scrollBottom;if(f){var w=this._physicalStart;K=q-l}else w=this._physicalEnd,K-=F;for(;;){var m=this._getPhysicalSizeIncrement(w);K-=m;if(R.length>=h||K<=u)break;if(f){if(c+R.length+1>=this._virtualCount)break;if(l+m>=q-this._scrollOffset)break;R.push(w);
l+=m;w=(w+1)%h}else{if(O-R.length<=0)break;if(l+this._physicalSize-m<=F)break;R.push(w);l-=m;w=w===0?h-1:w-1}}return{indexes:R,physicalTop:l-this._scrollOffset}},
_update:function(f,R){if(!(f&&f.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(f);this._updateMetrics(f);if(R)for(;R.length;)f=R.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(f);this._positionItems();this._updateScrollerSize()}},
_createPool:function(f){this._ensureTemplatized();var R,u=Array(f);for(R=0;R<f;R++){var O=this.stamp(null);u[R]=O.root.querySelector("*");this._itemsParent.appendChild(O.root)}return u},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(f){f=this._clamp(this._physicalCount+f,3,this._virtualCount-this._virtualStart);f=this._convertIndexToCompleteRow(f);if(this.grid){var R=f%this._itemsPerRow;R&&f-R<=this._physicalCount&&(f+=this._itemsPerRow);f-=R}f-=this._physicalCount;R=Math.round(this._physicalCount*.5);if(!(f<0)){if(f>0){R=window.performance.now();[].push.apply(this._physicalItems,this._createPool(f));for(var u=0;u<f;u++)this._physicalSizes.push(0);this._physicalCount+=f;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=f);this._update();this._templateCost=(window.performance.now()-R)/f;R=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||R===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,R)),FFt):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,R),TO))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var f=this._getReusables(!0);this._physicalTop=f.physicalTop;this._virtualStart+=f.indexes.length;this._physicalStart+=f.indexes.length;this._update(f.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 f={__key__:!0};f[this.as]=!0;f[this.indexAs]=!0;f[this.selectedAs]=!0;f.tabIndex=!0;this._instanceProps=f;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(f,R){typeof R!=="undefined"&&(this.notifyResize(),_.Z$(),f&&this._updateGridMetrics())},
_itemsChanged:function(f){if(f.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,
_.dR);else if(f.path==="items.splices"){this._adjustVirtualIndex(f.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(f.value.indexSplices.some(function(u){return u.addedCount>0||u.removed.length>0})){var R=this._getActiveElement();
this.contains(R)&&R.blur()}f=f.value.indexSplices.some(function(u){return u.index+u.addedCount>=this._virtualStart&&u.index<=this._virtualEnd},this);
this._isClientFull()&&!f||this._debounce("_render",this._render,_.dR)}else f.path!=="items.length"&&this._forwardItemPath(f.path,f.value)},
_forwardItemPath:function(f,R){f=f.slice(6);var u=f.indexOf(".");u===-1&&(u=f.length);var O,c=this.modelForElement(this._offscreenFocusedItem),h=parseInt(f.substring(0,u),10);if(O=this._isIndexRendered(h)){var l=this._getPhysicalIndex(h);var K=this.modelForElement(this._physicalItems[l])}else c&&(K=c);K&&K[this.indexAs]===h&&(f=f.substring(u+1),f=this.as+(f?"."+f:""),K._setPendingPropertyOrPath(f,R,!1,!0),K._flushProperties&&K._flushProperties(),O&&(this._updateMetrics([l]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(f){f.forEach(function(R){R.removed.forEach(this._removeItem,this);R.index<this._virtualStart&&(R=Math.max(R.addedCount-R.removed.length,R.index-this._virtualStart),this._virtualStart+=R,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=R))},this)},
_removeItem:function(f){this.$.selector.deselect(f);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===f&&this._removeFocusedItem()},
_iterateItems:function(f,R){var u,O;if(arguments.length===2&&R)for(O=0;O<R.length;O++){var c=R[O];var h=this._computeVidx(c);if((u=f.call(this,c,h))!=null)return u}else{c=this._physicalStart;for(h=this._virtualStart;c<this._physicalCount;c++,h++)if((u=f.call(this,c,h))!=null)return u;for(c=0;c<this._physicalStart;c++,h++)if((u=f.call(this,c,h))!=null)return u}},
_computeVidx:function(f){return f>=this._physicalStart?this._virtualStart+(f-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+f},
_assignModels:function(f){this._iterateItems(function(R,u){var O=this._physicalItems[R],c=this.items&&this.items[u];if(c!=null){var h=this.modelForElement(O);h.__key__=null;this._forwardProperty(h,this.as,c);this._forwardProperty(h,this.selectedAs,this.$.selector.isSelected(c));this._forwardProperty(h,this.indexAs,u);this._forwardProperty(h,"tabIndex",this._focusedVirtualIndex===u?0:-1);this._physicalIndexForKey[h.__key__]=R;h._flushProperties&&h._flushProperties(!0);O.removeAttribute("hidden")}else O.setAttribute("hidden",
"")},f)},
_updateMetrics:function(f){_.Z$();var R=0,u=0,O=this._physicalAverageCount,c=this._physicalAverage;this._iterateItems(function(h){u+=this._physicalSizes[h];this._physicalSizes[h]=this._physicalItems[h].offsetHeight;R+=this._physicalSizes[h];this._physicalAverageCount+=this._physicalSizes[h]?1:0},f);
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+R-u,this._itemsPerRow=1);this._physicalAverageCount!==O&&(this._physicalAverage=Math.round((c*O+R)/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 f=this._physicalTop;if(this.grid){var R=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(u,O){var c=Math.floor(O%this._itemsPerRow*this._itemWidth+R);this._isRTL&&(c*=-1);this.translate3d(c+"px",f+"px",0,this._physicalItems[u]);this._shouldRenderNextRow(O)&&(f+=this._rowHeight)})}else this._iterateItems(function(u){this.translate3d(0,f+"px",0,this._physicalItems[u]);
f+=this._physicalSizes[u]})},
_getPhysicalSizeIncrement:function(f){return this.grid?this._computeVidx(f)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[f]},
_shouldRenderNextRow:function(f){return f%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var f=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(f!==0){this._physicalTop=this._physicalTop-f;var R=this._scrollPosition;!W8H&&R>0&&this._resetScrollPosition(R-f)}},
_resetScrollPosition:function(f){this.scrollTarget&&f>=0&&(this._scrollPosition=this._scrollTop=f)},
_updateScrollerSize:function(f){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((f=(f=(f=f||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(f){return this.scrollToIndex(this.items.indexOf(f))},
scrollToIndex:function(f){if(!(typeof f!=="number"||f<0||f>this.items.length-1)&&(_.Z$(),this._physicalCount!==0)){f=this._clamp(f,0,this._virtualCount-1);if(!this._isIndexRendered(f)||f>=this._maxVirtualStart)this._virtualStart=this.grid?f-this._itemsPerRow*2:f-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var R=this._physicalStart,u=this._virtualStart,O=0,c=this._hiddenContentSize;u<f&&
O<=c;)O+=this._getPhysicalSizeIncrement(R),R=(R+1)%this._physicalCount,u++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+O);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)},_.dR)},
selectItem:function(f){return this.selectIndex(this.items.indexOf(f))},
selectIndex:function(f){if(!(f<0||f>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(f)){var R=this.modelForElement(this._physicalItems[this._getPhysicalIndex(f)]);R&&(R[this.selectedAs]=!0);this.updateSizeForIndex(f)}this.$.selector.selectIndex(f)}},
deselectItem:function(f){return this.deselectIndex(this.items.indexOf(f))},
deselectIndex:function(f){f<0||f>=this._virtualCount||(this._isIndexRendered(f)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(f)])[this.selectedAs]=!1,this.updateSizeForIndex(f)),this.$.selector.deselectIndex(f))},
toggleSelectionForItem:function(f){return this.toggleSelectionForIndex(this.items.indexOf(f))},
toggleSelectionForIndex:function(f){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(f):this.$.selector.isSelected(this.items[f]))?this.deselectIndex(f):this.selectIndex(f)},
clearSelection:function(){this._iterateItems(function(f){this.modelForElement(this._physicalItems[f])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(f){(f?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(f){var R=this.modelForElement(f.target);if(R){var u=_.du(f).path[0];f=this._getActiveElement();var O=this._physicalItems[this._getPhysicalIndex(R[this.indexAs])];if(u.localName!=="input"&&u.localName!=="button"&&u.localName!=="select"){u=R.tabIndex;R.tabIndex=-100;var c=f?f.tabIndex:-1;R.tabIndex=u;f&&O!==f&&O.contains(f)&&c!==-100||this.toggleSelectionForItem(R[this.as])}}},
_multiSelectionChanged:function(f){this.clearSelection();this.$.selector.multi=f},
updateSizeForItem:function(f){return this.updateSizeForIndex(this.items.indexOf(f))},
updateSizeForIndex:function(f){if(!this._isIndexRendered(f))return null;this._updateMetrics([this._getPhysicalIndex(f)]);this._positionItems();return null},
_manageFocus:function(){var f=this._focusedVirtualIndex;f>=0&&f<this._virtualCount?this._isIndexRendered(f)?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(f){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(f/this._itemsPerRow)*this._itemsPerRow:f},
_isIndexRendered:function(f){return f>=this._virtualStart&&f<=this._virtualEnd},
_isIndexVisible:function(f){return f>=this.firstVisibleIndex&&f<=this.lastVisibleIndex},
_getPhysicalIndex:function(f){return(this._physicalStart+(f-this._virtualStart))%this._physicalCount},
focusItem:function(f){this._focusPhysicalItem(f)},
_focusPhysicalItem:function(f){if(!(f<0||f>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(f)||this.scrollToIndex(f);var R=this._physicalItems[this._getPhysicalIndex(f)],u=this.modelForElement(R),O;u.tabIndex=-100;R.tabIndex===-100&&(O=R);O||(O=_.du(R).querySelector('[tabindex="-100"]'));u.tabIndex=0;this._focusedVirtualIndex=f;O&&O.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 f=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var R=this.stamp(null);this._focusBackfillItem=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}this._offscreenFocusedItem=this._physicalItems[f];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[f]=this._focusBackfillItem;this._focusedPhysicalIndex=f;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var f=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),R=this._physicalItems[f];if(R){var u=this.modelForElement(R),O=this.modelForElement(this._offscreenFocusedItem);u[this.as]===O[this.as]?(this._focusBackfillItem=R,u.tabIndex=-1,this._physicalItems[f]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(f){f=this.modelForElement(f.target);var R=this.modelForElement(this._focusedItem),u=this._offscreenFocusedItem!==null,O=this._focusedVirtualIndex;f&&(R===f?this._isIndexVisible(O)||this.scrollToIndex(O):(this._restoreFocusedItem(),R&&(R.tabIndex=-1),f.tabIndex=0,this._focusedVirtualIndex=O=f[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(O),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],u&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(f){switch(f.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&f.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&&f.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(f)}},
_clamp:function(f,R,u){return Math.min(u,Math.max(R,f))},
_debounce:function(f,R,u){this._debouncers=this._debouncers||{};this._debouncers[f]=_.uQ(this._debouncers[f],u,R.bind(this));_.Or(this._debouncers[f])},
_forwardProperty:function(f,R,u){f._setPendingProperty(R,u)},
_forwardHostPropV2:function(f,R){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).forwardHostProp(f,R)},this)},
_notifyInstancePropV2:function(f,R,u){e57(this.as,R)&&(f=f[this.indexAs],R==this.as&&(this.items[f]=u),this.notifyPath(q1(this.as,"items."+f,R),u))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(f,R,u){R.indexOf(this.as+".")===0&&this.notifyPath("items."+f.__key__+"."+R.slice(this.as.length+1),u)},
_forwardParentPath:function(f,R){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).notifyPath(f,R)},this)},
_forwardParentProp:function(f,R){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&(this.modelForElement(u)[f]=R)},this)},
_getActiveElement:function(){var f=this._itemsParent.node.domHost;return _.du(f?f.root:document).activeElement},
_scrollTargetChanged:function(f,R){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(R)if(f==="document")this.scrollTarget=this._doc;else if(typeof f==="string"){var u,O;this.scrollTarget=(R=(O=(u=this.domHost)==null?void 0:u.polymerController)!=null?O:this.domHost)&&R.$?R.$[f]:_.du(this.ownerDocument).querySelector("#"+f)}else this._isValidScrollTarget()&&(this._oldScrollTarget=f,this._toggleScrollListener(this._shouldHaveListener,f))}});var EGk;var t6k;var CeY=function(f,R,u,O){f-=u;R-=O;return Math.sqrt(f*f+R*R)},ySi=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
TBB.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Hpn=function(f){f.maxRadius=0;f.mouseDownStart=0;f.mouseUpStart=0;f.xStart=0;f.yStart=0;f.xEnd=0;f.yEnd=0;f.containerMetrics=new TBB(f.element)};
Ijn.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var f=ySi()-this.mouseDownStart;this.mouseUpStart&&(f-=this.mouseUpElapsed);return f},get mouseUpElapsed(){return this.mouseUpStart?ySi()-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 f=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(f*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-f/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var f=this.radius/(this.containerMetrics.size/2);var R=this.xNow-this.containerMetrics.width/2;var u=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+R+"px, "+u+"px)";this.waveContainer.style.transform="translate3d("+R+"px, "+u+"px, 0)";this.wave.style.webkitTransform="scale("+f+","+f+")";this.wave.style.transform="scale3d("+f+","+f+",1)"},
downAction:function(f){var R=this.containerMetrics.width/2,u=this.containerMetrics.height/2;Hpn(this);this.mouseDownStart=ySi();this.center?(this.xStart=R,this.yStart=u):(this.xStart=f?f.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=f?f.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=R,this.yEnd=u);f=this.containerMetrics;R=this.xStart;u=this.yStart;this.maxRadius=Math.max(CeY(R,u,0,0),CeY(R,u,
f.width,0),CeY(R,u,0,f.height),CeY(R,u,f.width,f.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=ySi())},
remove:function(){_.du(_.du(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.NM({_template:function(){if(t6k!==void 0)return t6k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;EGk===void 0&&(EGk=document.createElement("template"));var O=EGk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return t6k=f},
is:"tp-yt-paper-ripple",behaviors:[_.mJ],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(){_.du(this).parentNode.nodeType==11?this.keyEventTarget=_.du(this).getOwnerRoot().host:this.keyEventTarget=_.du(this).parentNode;var f=this.keyEventTarget;this.listen(f,"up","uiUpAction");this.listen(f,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(f){f.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var f=0;f<this.ripples.length;++f)if(!this.ripples[f].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(f){this.noink||this.downAction(f)},
downAction:function(f){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(f),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(f){this.noink||this.upAction(f)},
upAction:function(f){this.holdDown||(this.ripples.forEach(function(R){R.upAction(f)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var f=0;f<this.ripples.length;++f){var R=this.ripples[f];R.isOpacityFullyDecayed&&!R.isRestingAtMaxRadius&&this.removeRipple(R)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var f=new Ijn(this);_.du(this.$.waves).appendChild(f.waveContainer);this.$.background.style.backgroundColor=f.color;this.ripples.push(f);this._setAnimating(!0);return f},
removeRipple:function(f){var R=this.ripples.indexOf(f);R<0||(this.ripples.splice(R,1),f.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var f;for(f=0;f<this.ripples.length;++f){var R=this.ripples[f];R.draw();this.$.background.style.opacity=R.outerOpacity;R.isOpacityFullyDecayed&&!R.isRestingAtMaxRadius&&this.removeRipple(R)}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(f,R){R!==void 0&&(f?this.downAction():this.upAction())}});var oU={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(f){Wm._downHandler.call(this,f);this.pressed&&this.ensureRipple(f)},
ensureRipple:function(f){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var R=this._rippleContainer||this.root;R&&_.du(R).appendChild(this._ripple);if(f){R=_.du(this._rippleContainer||this);var u=_.du(f).rootTarget;R.deepContains(u)&&this._ripple.uiDownAction(f)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(f){this.hasRipple()&&(this._ripple.noink=f)}};var dIf={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 f=1;this.disabled?f=0:this.active||this.pressed?f=4:this.receivedFocusFromKeyboard&&(f=3);this._setElevation(f)},
_computeKeyboardClass:function(f){this.toggleClass("keyboard-focus",f)},
_spaceKeyDownHandler:function(f){Wm._spaceKeyDownHandler.call(this,f);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(f){Wm._spaceKeyUpHandler.call(this,f);this.hasRipple()&&this._ripple.uiUpAction()}},Nxf=[T_k,
_.QX,oU,dIf];_.L8C={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(f){f&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=f)},
_createRipple:function(){var f=oU._createRipple();f.id="ink";f.setAttribute("center","");f.classList.add("circle");return f}};
_.bLl=[T_k,_.QX,oU,_.L8C];_.pMf=[_.bLl,Mwi,{_checkedChanged:function(){IOE._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){oU._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var jXk;var DIk;var JSH=function(){};
_.X=JSH.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._buttonStateChanged=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._createRipple=function(){};
_.X._noinkChanged=function(){};
_.X._computeKeyboardClass=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
_.X._setElevation=function(){};
JSH=_.NM({_template:function(){if(DIk!==void 0)return DIk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;jXk===void 0&&(jXk=document.createElement("template"));var O=jXk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return DIk=f},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Nxf],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?dIf._calculateElevation.apply(this):this._setElevation(0)}});var z5C;var TxC;var HLE={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(f){_.E("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(f)},
_onDialogClickWrapped:function(f){_.E("dialog_behavior_no_tap_killswitch")||this._onDialogClick(f)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(f,R){R&&(f?(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))},
_updateClosingReasonConfirmed:function(f){this.closingReason=this.closingReason||{};this.closingReason.confirmed=f},
_onDialogClick:function(f){for(var R=_.du(f).path,u=0,O,c=R.indexOf((O=this.hostElement)!=null?O:this);u<c;u++)if(O=R[u],O.hasAttribute&&(O.hasAttribute("dialog-dismiss")||O.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(O.hasAttribute("dialog-confirm"));this.close();f.stopPropagation();break}}},IBt=[_.Bm,
HLE];var M6Y=document.createElement("template");_.N(M6Y,'<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(M6Y.content);var PeF=document.createElement("template");_.N(PeF,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(PeF.content);_.NM({_template:function(){if(TxC!==void 0)return TxC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;z5C===void 0&&(z5C=document.createElement("template"));var O=z5C;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return TxC=f},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[IBt,$MI],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 UIG;var e5k;_.NM({_template:function(){if(e5k!==void 0)return e5k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;UIG===void 0&&(UIG=document.createElement("template"));var O=UIG;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return e5k=f},
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 f,R,u;if(((f=window.ShadyDOM)==null?void 0:f.noPatch)!==!0&&((R=window.ShadyDOM)==null?void 0:R.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(HLE)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var GwY=_.Sg(['<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>']),BxY=_.U1t(GwY);BxY.setAttribute("style","display: none;");document.head.appendChild(BxY.content);var oGE;var xIG;var SzF;var $IF;_.NM({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[bL],configure:function(f){var R=f.node,u=R.getBoundingClientRect().height;return this._effect=new KeyframeEffect(R,[{height:u/2+"px"},{height:u+"px"}],this.timingFromConfig(f))}});
_.NM({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[bL],configure:function(f){var R=f.node,u=R.getBoundingClientRect().width;return this._effect=new KeyframeEffect(R,[{width:u/2+"px"},{width:u+"px"}],this.timingFromConfig(f))}});
_.NM({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[bL],configure:function(f){var R=f.node,u=R.getBoundingClientRect().width;return this._effect=new KeyframeEffect(R,[{width:u+"px"},{width:u-u/20+"px"}],this.timingFromConfig(f))}});
_.NM({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[bL],configure:function(f){var R=f.node,u=R.getBoundingClientRect().height;this.setPrefixedProperty(R,"transformOrigin","0 0");return this._effect=new KeyframeEffect(R,[{height:u+"px",transform:"translateY(0)"},{height:u/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(f))}});var xH={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},gGH=function(){};
_.X=gGH.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._focusBlurHandler=function(){};
_.X._changedControlState=function(){};
_.X._setFocused=function(){};
gGH=_.NM({_template:function(){if($IF!==void 0)return $IF;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;SzF===void 0&&(SzF=document.createElement("template"));var O=SzF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return $IF=f},
is:"tp-yt-paper-menu-button",behaviors:[_.mJ,_.QX],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:xH.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:xH.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:xH.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 f=_.du(this.$.content).getDistributedNodes(),R=0,u=f.length;R<u;R++)if(f[R].nodeType===Node.ELEMENT_NODE)return f[R]},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(f,R){f?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):R!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(f){_.QX._disabledChanged.apply(this,arguments);f&&this.opened&&this.close()},
__onIronOverlayCanceled:function(f){var R=this.$.trigger;_.du(f.detail).path.indexOf(R)>-1&&f.preventDefault()}});
Object.keys(xH).forEach(function(f){gGH[f]=xH[f]});var sXE=_.ET.IronButtonState,nGl=(0,_.m0)(HTMLElement);
_.NM({_template:function(){if(xIG!==void 0)return xIG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;oGE===void 0&&(oGE=document.createElement("template"));var O=oGE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return xIG=f},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[sXE,_.QX,oU,_.tL,_.dm],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(f){var R=(0,_.Qy)(this);R.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:f});R.shadowRoot.appendChild(f);return nGl.prototype._attachDom.call(this,f)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var f=this.contentElement;f&&f.selectedItem&&this._setSelectedItem(f.selectedItem)},
get contentElement(){for(var f=_.du(this.$.content).getDistributedNodes(),R=0,u=f.length;R<u;R++)if(f[R].nodeType===Node.ELEMENT_NODE)return f[R]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(f){this._setSelectedItem(f.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(f){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)===this&&this.open()},
_selectedItemChanged:function(f){var R="";f?R=f.label||f.getAttribute("label")||f.textContent.trim():R="";this.value=R;this._setSelectedItemLabel(R)},
_computeMenuVerticalOffset:function(f,R){return R?R:f?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var f=this.opened?"true":"false",R=this.contentElement;R&&R.setAttribute("aria-expanded",f)},
_computeLabelClass:function(f,R,u){var O="label";if(f)u&&(O+=" label-is-hidden");else if(u||R)O+=" label-is-floating";return O},
_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 V6H;var Yzt;_.NM({is:"tp-yt-paper-icon-button",_template:function(){if(Yzt!==void 0)return Yzt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;V6H===void 0&&(V6H=document.createElement("template"));var O=V6H;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return Yzt=f},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.bLl],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(f,R){var u=this.getAttribute("aria-label");u&&R!=u||this.setAttribute("aria-label",f)}});var vGY;var iLf;_.Sv=[T_k,_.QX,{hostAttributes:{role:"option",tabindex:"0"}}];_.NM({_template:function(){if(iLf!==void 0)return iLf;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;vGY===void 0&&(vGY=document.createElement("template"));var O=vGY;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return iLf=f},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Sv]});var rSi;var fRC;var RAl={attached:function(){this.fire("addon-attached")},
update:function(){}};var uki=1,Orf=1,cxF=1,XJf=[_.QX,_.mJ,{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();!Vg&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(f,R){f?f=f+" "+R:f=R;return f},
_onAddonAttached:function(f){f=_.du(f).rootTarget;if(f.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,f.id);else{var R="paper-input-add-on-"+Orf++;f.id=R;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,R)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(f){_.QX._focusBlurHandler.call(this,f);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var f=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",f);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(f){try{var R=this.inputElement.selectionStart;this.value=f;this.inputElement.selectionStart=R;this.inputElement.selectionEnd=R}catch(u){this.value=f}},
_computeAlwaysFloatLabel:function(f,R){return R||f},
_updateAriaLabelledBy:function(){var f=_.du(this.root).querySelector("label");if(f){if(f.id)var R=f.id;else R="paper-input-label-"+uki++,f.id=R;this._ariaLabelledBy=R}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+cxF++)},
_onChange:function(f){this.shadowRoot&&this.fire(f.type,{sourceEvent:f},{node:this,bubbles:f.bubbles,cancelable:f.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var f=document.activeElement;f instanceof HTMLElement&&f!==document.body&&f!==document.documentElement||this._focusableElement.focus()}}}];var hAt;var Zrl;_.NM({_template:function(){if(Zrl!==void 0)return Zrl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;hAt===void 0&&(hAt=document.createElement("template"));var O=hAt;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return Zrl=f},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[RAl],properties:{_charCounterStr:{type:String,value:"0"}},update:function(f){if(f.inputElement){f.value=f.value||"";var R=f.value.toString().length.toString();f.inputElement.hasAttribute("maxlength")&&(R+="/"+f.inputElement.getAttribute("maxlength"));this._charCounterStr=R}}});var lRk;var kSA;_.NM({_template:function(){if(kSA!==void 0)return kSA;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;lRk===void 0&&(lRk=document.createElement("template"));var O=lRk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return kSA=f},
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 hZ(this.attrForValue)},get _inputElement(){return _.du(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(f){this._addons||(this._addons=[]);f=f.target;this._addons.indexOf(f)===-1&&(this._addons.push(f),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(f){this._handleValueAndAutoValidate(f.target)},
_onValueChanged:function(f){var R=f.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,R.value===void 0||R.value===""))return;this._handleValueAndAutoValidate(f.target)},
_handleValue:function(f){var R=this._inputElementValue;R||R===0||f.type==="number"&&!f.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:f,value:R,invalid:this.invalid})},
_handleValueAndAutoValidate:function(f){this.autoValidate&&f&&(this.invalid=!(f.validate?f.validate(this._inputElementValue):f.checkValidity()));this._handleValue(f)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(f){if(this._addons)for(var R,u=0;R=this._addons[u];u++)R.update(f)},
_computeInputContentClass:function(f,R,u,O,c){var h="input-content";f?(c&&(h+=" label-is-hidden"),O&&!this.noUnfloatedLabelError&&(h+=" is-invalid")):(f=this.querySelector("label"),R||c?(h+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",O?h+=" is-invalid":u&&(h+=" label-is-highlighted")):(f&&(this.$.labelAndInputContainer.style.position="relative"),O&&!this.noUnfloatedLabelError&&(h+=" is-invalid")));u&&(h+=" focused");return h},
_computeUnderlineClass:function(f,R){var u="underline";R?u+=" is-invalid":f&&(u+=" is-highlighted");return u},
_computeAddOnContentClass:function(f,R){var u="add-on-content";R?u+=" is-invalid":f&&(u+=" is-highlighted");return u}});var KQC;var qpk;_.NM({_template:function(){if(qpk!==void 0)return qpk;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;KQC===void 0&&(KQC=document.createElement("template"));var O=KQC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return qpk=f},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[RAl],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(f){this._setInvalid(f.invalid)}});_.NM({is:"tp-yt-paper-input",_template:function(){if(fRC!==void 0)return fRC;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;rSi===void 0&&(rSi=document.createElement("template"));var O=rSi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return fRC=f},
behaviors:[XJf,_.tL],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 AxY;var aRl;_.NM({_template:function(){if(aRl!==void 0)return aRl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=
f.content,u=R.insertBefore;AxY===void 0&&(AxY=document.createElement("template"));var O=AxY;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return aRl=f},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Sv]});var FQI;var wJf;_.NM({_template:function(){if(wJf!==void 0)return wJf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;FQI===void 0&&(FQI=document.createElement("template"));var O=FQI;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return wJf=f},
is:"tp-yt-paper-item-body"});var mpA;var QAY;var WQk=function(){};
_.X=WQk.prototype;_.X.indexOf=function(){};
_.X.selectPrevious=function(){};
_.X.selectNext=function(){};
_.X.selectIndex=function(){};
_.X.forceSynchronousItemUpdate=function(){};
_.X._checkFallback=function(){};
_.X._addListener=function(){};
_.X._removeListener=function(){};
_.X._activateEventChanged=function(){};
_.X._updateItems=function(){};
_.X._selectSelected=function(){};
_.X._filterItem=function(){};
_.X._valueToItem=function(){};
_.X._valueToIndex=function(){};
_.X._indexToValue=function(){};
_.X._valueForItem=function(){};
_.X._observeItems=function(){};
_.X._itemActivate=function(){};
_.X.multiChanged=function(){};
_.X._updateAttrForSelected=function(){};
_.X._updateSelected=function(){};
_.X._selectMulti=function(){};
_.X._selectionChange=function(){};
_.X._toggleSelected=function(){};
_.X._valuesToItems=function(){};
_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X.select=function(){};
_.X._resetTabindices=function(){};
_.X._updateMultiselectable=function(){};
_.X._focusWithKeyboardEvent=function(){};
_.X._clearSearchText=function(){};
_.X._focusPrevious=function(){};
_.X._focusNext=function(){};
_.X._applySelection=function(){};
_.X._focusedItemChanged=function(){};
_.X._onIronItemsChanged=function(){};
_.X._onShiftTabDown=function(){};
_.X._onFocus=function(){};
_.X._onUpKey=function(){};
_.X._onDownKey=function(){};
_.X._onEscKey=function(){};
_.X._onKeydown=function(){};
_.X._activateHandler=function(){};
_.X._disabledChanged=function(){};
_.X._setSelectedItem=function(){};
_.X._setItems=function(){};
_.X._setSelectedItems=function(){};
_.X._setFocusedItem=function(){};
WQk=_.NM({_template:function(){if(QAY!==void 0)return QAY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;mpA===void 0&&(mpA=document.createElement("template"));var O=mpA;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return QAY=f},
is:"tp-yt-paper-listbox",behaviors:[GJt],hostAttributes:{role:"listbox"}});var EOi;var tPY;var CAI={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(f,R){return[f||R?"active":"",R?"cooldown":""].join(" ")},
__activeChanged:function(f,R){this.__setAriaHidden(!f);this.__coolingDown=!f&&R},
__altChanged:function(f){this.setAttribute("aria-label",f||"loading")},
__setAriaHidden:function(f){f?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.NM({_template:function(){if(tPY!==void 0)return tPY;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;EOi===void 0&&(EOi=document.createElement("template"));var O=EOi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return tPY=f},
is:"tp-yt-paper-spinner",behaviors:[CAI]});var yxi;var dpA;_.NM({_template:function(){if(dpA!==void 0)return dpA;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;yxi===void 0&&(yxi=document.createElement("template"));var O=yxi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return dpA=f},
is:"tp-yt-paper-spinner-lite",behaviors:[CAI]});var NWi;var LQC;_.NM({_template:function(){if(LQC!==void 0)return LQC;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;NWi===void 0&&(NWi=document.createElement("template"));var O=NWi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return LQC=f},
is:"tp-yt-paper-tab",behaviors:[_.QX,_.ET.IronButtonState,oU],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 f=_.du(this).parentNode;return!!f&&!!f.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(f){if(this.link){var R=this.queryEffectiveChildren("a");R&&f.target!==R&&R.click()}}});var brF;var pJI;var jAl=_.Sg(['<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>']),DpI=_.U1t(jAl);document.head.appendChild(DpI.content);_.NM({_template:function(){if(pJI!==void 0)return pJI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;brF===void 0&&(brF=document.createElement("template"));var O=brF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return pJI=f},
is:"tp-yt-paper-tabs",behaviors:[_.Lu,_.osf],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(f){_.du(this).querySelectorAll("tp-yt-paper-tab").forEach(f?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(f){f.setAttribute("noink","")},
_removeNoinkAttribute:function(f){f.removeAttribute("noink")},
_computeScrollButtonClass:function(f,R,u,O){return!R||u?"hidden":f?O?"hidden":"not-visible":""},
_computeTabsContentClass:function(f,R){var u="tabs-content";f&&(u+=" scrollable");if(!f||R)u+=" fit-container";return u},
_computeSelectionBarClass:function(f,R){var u="selection-bar";f?u+=" hidden":R&&(u+=" align-bottom");return u},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(f){return""+f},
_onIronSelect:function(f){this._tabChanged(f.detail.item,this._previousTab);this._previousTab=f.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();_.Nj._activateHandler.apply(this,arguments)},
_scheduleActivation:function(f,R){this._pendingActivationItem=f;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,R)},
_delayedActivationHandler:function(){var f=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;f.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(f){f.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(f,R){this.scrollable&&this._affectScroll(R&&-R.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(f){this.$.tabsContainer.scrollLeft+=f;f=this.$.tabsContainer.scrollLeft;this._leftHidden=f===0||this.hideScrollButtons;this._rightHidden=f===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(f,R){if(f){var u=this.$.tabsContent.getBoundingClientRect(),O=u.width,c=f.getBoundingClientRect();u=c.left-u.left;this._pos={width:this._calcPercent(c.width,O),left:this._calcPercent(u,O)};if(this.noSlide||R==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var h=R.getBoundingClientRect();R=this.items.indexOf(R);f=this.items.indexOf(f);this.$.selectionBar.classList.add("expand");
f=R<f;this._isRTL&&(f=!f);f?this._positionBar(this._calcPercent(c.left+c.width-h.left,O)-5,this._left):this._positionBar(this._calcPercent(h.left+h.width-c.left,O)-5,this._calcPercent(u,O)+5);this.scrollable&&this._scrollToSelectedIfNeeded(c.width,u)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(f,R){R-=this.$.tabsContainer.scrollLeft;R<0?this.$.tabsContainer.scrollLeft+=R:(R+=f-this.$.tabsContainer.offsetWidth,R>0&&(this.$.tabsContainer.scrollLeft+=R))},
_calcPercent:function(f,R){return 100*f/R},
_positionBar:function(f,R){f=f||0;R=R||0;this._width=f;this._left=R;this.transform("translateX("+R+"%) scaleX("+f/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var f=this.$.selectionBar.classList;f.contains("expand")?(f.remove("expand"),f.add("contract"),this._positionBar(this._pos.width,this._pos.left)):f.contains("contract")&&f.remove("contract")}});var JxI;var zAC;_.NM({_template:function(){if(zAC!==void 0)return zAC;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;JxI===void 0&&(JxI=document.createElement("template"));var O=JxI;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return zAC=f},
is:"tp-yt-paper-textarea",behaviors:[XJf,_.tL],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(f){this.$.input.textarea.selectionStart=f},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(f){this.$.input.textarea.selectionEnd=f},_ariaLabelledByChanged:function(f){this._focusableElement.setAttribute("aria-labelledby",f)},
_ariaDescribedByChanged:function(f){this._focusableElement.setAttribute("aria-describedby",f)},
get _focusableElement(){return this.inputElement.textarea}});var TWC;var HrA;/*

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 IRk=function(){};
_.X=IRk.prototype;_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._focusedChanged=function(){};
_.X.registered=function(){};
_.X._invalidChanged=function(){};
_.X.hasValidator=function(){};
_.X.validate=function(){};
_.X._getValidity=function(){};
_.X._requiredChanged=function(){};
_.X._valueChanged=function(){};
_.X._checkedChanged=function(){};
_.X._buttonStateChanged=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
IRk=_.NM({is:"tp-yt-paper-toggle-button",_template:function(){if(HrA!==void 0)return HrA;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;TWC===void 0&&(TWC=document.createElement("template"));var O=TWC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return HrA=f},
behaviors:[_.pMf],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");_.su(this,function(){_.zO(this,"pan-y")})},
_ontrack:function(f){f=f.detail;f.state==="start"?this._trackStart(f):f.state==="track"?this._trackMove(f):f.state==="end"&&this._trackEnd(f)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(f){f=f.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+f:f)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+f:f));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 f=oU._createRipple();f.id="ink";f.setAttribute("recenters","");f.classList.add("circle","toggle-ink");return f}});var MPE;var PAF;_.NM({_template:function(){if(PAF!==void 0)return PAF;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;MPE===void 0&&(MPE=document.createElement("template"));var O=MPE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return PAF=f},
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 f=_.du(this).parentNode,R=_.du(this).getOwnerRoot(),u;this.for?u=_.du(R).querySelector("#"+this.for):u=f.nodeType==Node.DOCUMENT_FRAGMENT_NODE?R.host:f;return u},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(f){f==="entry"?this.show():f==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.du(this).textContent.trim()===""){for(var f=!0,R=_.du(this).getEffectiveChildNodes(),u=0;u<R.length;u++)if(R[u].textContent.trim()!==""){f=!1;break}if(f)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 f=this.offset;this.marginTop!=14&&this.offset==14&&(f=this.marginTop);var R=this.offsetParent.getBoundingClientRect(),u=this._target.getBoundingClientRect(),O=this.getBoundingClientRect(),c=(u.width-O.width)/2,h=(u.height-O.height)/2,l=u.left-R.left,K=u.top-R.top;switch(this.position){case "top":var q=l+c;var F=K-O.height-f;break;case "bottom":q=l+c;F=K+u.height+f;break;case "left":q=l-O.width-f;F=K+h;break;case "right":q=l+u.width+
f,F=K+h}this.fitToVisibleBounds?(R.left+q+O.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,q)+"px",this.style.right="auto"),R.top+F+O.height>window.innerHeight?(this.style.bottom=R.height+"px",this.style.top="auto"):(this.style.top=Math.max(-R.top,F)+"px",this.style.bottom="auto")):(this.style.left=q+"px",this.style.top=F+"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(f){f!==500&&this.updateStyles({"--paper-tooltip-delay-in":f+"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(f){if(f==="entry"&&this.animationEntry!=="")return this.animationEntry;if(f==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[f]&&typeof this.animationConfig[f][0].name==="string"){if(this.animationConfig[f][0].timing&&this.animationConfig[f][0].timing.delay&&this.animationConfig[f][0].timing.delay!==0){var R=this.animationConfig[f][0].timing.delay;f==="entry"?this.updateStyles({"--paper-tooltip-delay-in":R+"ms"}):f==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":R+
"ms"})}return this.animationConfig[f][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 UpG=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(UpG,_.e5);var eAG=_.rl(UpG,[0,_.gZ]);var $H=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($H,_.e5);var GSE=[3,4],BWA=[5,6];var oOf=[0,GSE,BWA,_.oCC,-1,_.$T,_.xtF,-1,o0n,xP5];var xpE=_.rl($H,oOf),SpA=_.fj(oOf);var $pf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($pf,_.e5);var gOk=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(gOk,_.e5);var sAk=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(sAk,_.e5);var nOF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(nOF,_.e5);var VPY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(VPY,_.e5);var gm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(gm,_.e5);gm.prototype.getSource=function(){return _.p6(this,1)};
gm.prototype.getMessage=function(){return _.bH(this,4)};
gm.prototype.getData=function(){return _.Ry(this,VPY,8)};var YpE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(YpE,_.e5);var sT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(sT,_.e5);var nu=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(nu,_.e5);var VX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(VX,_.e5);VX.prototype.getUrl=function(){return _.bH(this,1)};
VX.prototype.setUrl=function(f){return _.FH(this,1,f)};
VX.prototype.hasUrl=function(){return _.Bt(_.AM(this,1))!=null};var vOC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(vOC,_.e5);var irY=[3];var rxC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(rxC,_.e5);var YH=function(f){var R=new rxC;return _.uO(R,2,f)};
rxC.prototype.getLanguage=function(){return DY(this,4,vm)};
var fmf=function(f){var R=YH(1);return _.cz(R,6,vm,f)},vm=[3,
4,5,6];var RLC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(RLC,_.e5);var iL=function(f){var R=new RLC;return _.uO(R,1,f)},rm=function(f,R){return _.cz(f,2,uZI,R)},uZI=[2,
3,4,5];var O9A=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(O9A,_.e5);var fN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(fN,_.e5);var cFG=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(cFG,_.e5);var XBE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(XBE,_.e5);var hLG=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(hLG,_.e5);var Z9l=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Z9l,_.e5);var lmY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(lmY,_.e5);var RY=function(f){return _.Ry(f,nu,5)};var kBi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(kBi,_.e5);kBi.prototype.getValue=function(){return NH(this,1)};var KGC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(KGC,_.e5);var ux=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(ux,_.e5);ux.prototype.getMetadata=function(){return _.JM(this,hLG,7,Od)};
ux.prototype.hasMetadata=function(){return _.FA(this,hLG,7,Od)};
var qYl=_.uqh(ux),Od=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var cY=function(f){this.JSC$9923_name_=f;this.files_=[];this.directories_=[];this.directoryMap_={}};
cY.prototype.getName=function(){return this.JSC$9923_name_};var ht=function(f,R){this.callback_=R;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new cY("");AFG(this,f,this.rootDirectory_);Xu(this)},AFG=function(f,R,u){for(var O=0;O<R.length;O++){var c=R[O];
c.isFile?(f.fileOps_++,c.file((0,_.NG)(f.handleFileSuccess_,f,u),(0,_.NG)(f.handleFileError_,f))):f.unscannedDirectories_.push(new amH(c,u))}},Xu=function(f){if(f.unscannedDirectories_.length>0&&f.directoryOps_<5&&!f.hasError_){f.directoryOps_++;
var R=f.unscannedDirectories_.shift(),u=R.entry,O=new cY(u.name);R=R.parent;R.directoryMap_[O.getName()]=O;R.directories_.push(O);u=u.createReader();u.readEntries((0,_.NG)(f.handleDirectorySuccess_,f,u,O),(0,_.NG)(f.handleDirectoryError_,f))}f.directoryOps_!=0||f.fileOps_!=0||f.unscannedDirectories_.length!=0&&!f.hasError_||f.callback_(f.rootDirectory_.files_,f.rootDirectory_.directories_,f.hasError_)};
ht.prototype.handleDirectorySuccess_=function(f,R,u){AFG(this,u,R);u.length==0?(this.directoryOps_--,Xu(this)):f.readEntries((0,_.NG)(this.handleDirectorySuccess_,this,f,R),(0,_.NG)(this.handleDirectoryError_,this))};
ht.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Xu(this)};
ht.prototype.handleFileSuccess_=function(f,R){f.files_.push(R);this.fileOps_--;Xu(this)};
ht.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Xu(this)};
var amH=function(f,R){this.entry=f;this.parent=R};var Zl=function(f){_.mq.call(this);_.y0(f,"drop",this.onObjectsDropped_,!1,this);_.y0(f,"dragenter",this.onFilesDragged_,!1,this);_.y0(f,"dragover",this.onFilesDragged_,!1,this);_.y0(f,"dragleave",this.onDragLeave_,!1,this);_.y0(f,"dragend",this.onDragLeave_,!1,this)};
_.f6(Zl,_.mq);var FGf=function(f,R){_.qZ.call(this,"f");this.files=f;this.directories=R};
_.f6(FGf,_.qZ);var wBf=function(){_.qZ.call(this,"h")};
_.f6(wBf,_.qZ);var mmY=function(){_.qZ.call(this,"i")};
_.f6(mmY,_.qZ);var QmF=function(){_.qZ.call(this,"g")};
_.f6(QmF,_.qZ);Zl.prototype.onObjectsDropped_=function(f){var R=this;f.preventDefault();var u=f.event_.dataTransfer;if((f=u&&u.items)&&f.length>0&&f[0].webkitGetAsEntry){u=[];for(var O=[],c=0;c<f.length;c++){var h=f[c].webkitGetAsEntry();h?u.push(h):O.push(f[c])}new ht(u,function(l,K,q){q?R.dispatchEvent(new QmF("Error occurred while reading from the file system.")):R.dispatchEvent(new FGf(l,K,O))})}else(f=u&&u.files)&&this.dispatchEvent(new FGf(Array.from(f),[]))};
Zl.prototype.onFilesDragged_=function(f){f.type==="dragenter"&&this.dispatchEvent(new wBf);f.preventDefault()};
Zl.prototype.onDragLeave_=function(){this.dispatchEvent(new mmY)};var WGf=function(f,R){this.JSC$9946_name_=f;this.inputElement_=R};
WGf.prototype.getName=function(){return this.JSC$9946_name_};
WGf.prototype.getInputElement=function(){return this.inputElement_};var lx=function(f,R,u){R=R===void 0?"single_file":R;u=u===void 0?[]:u;_.mq.call(this);this.overlayTarget_=f;this.parentOverlay_=f!=null?f.parentNode:_.mD("scotty-overlay-parent");this.selectorType_=R;this.acceptTypes_=u;this.overlay_=ERl(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.y(lx,_.mq);
var ERl=function(f,R,u,O){var c=document.createElement("input");c.setAttribute("type","file");c.setAttribute("name","Filedata");_.y0(c,"change",f.onFilesSelected_,!1,f);u==="multiple_file"&&(c.multiple="true");u==="single_directory"&&(c.webkitdirectory="true");O.length>0&&c.setAttribute("accept",O.join(","));c.style.position="absolute";c.style.overflow="hidden";c.style.height="0px";c.style.width="0px";c.style.opacity="0";c.setAttribute("aria-hidden","true");c.setAttribute("tabIndex",-1);if(f.overlayTarget_!=
null)return c.style.height=R.offsetHeight+"px",c.style.width=R.offsetWidth+"px",f.parentOverlay_&&(f.parentOverlay_.style.position="relative"),_.pp(c,R),HI(c,new _.b_(R.offsetLeft,R.offsetTop)),c;f.parentOverlay_.appendChild(c);return c};
lx.prototype.click=function(){this.overlay_.click()};
lx.prototype.onFilesSelected_=function(f){a:{try{var R=(new XMLHttpRequest).upload!==void 0;break a}catch(F){}R=!1}if(R){var u;f=Array.from((u=f.target.files)!=null?u:[]);u=[];if(this.selectorType_==="single_directory"&&(_.XA||sb||_.co)){u=new cY("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(R=0;R<f.length;R++)for(var O=f[R],c=O.webkitRelativePath.split("/"),h=u,l=0;l<c.length;l++){var K=c[l];if(l==c.length-1){K!="."&&h.files_.push(O);break}var q=h.directoryMap_[K];q==void 0&&(K=
q=new cY(K),h.directoryMap_[K.getName()]=K,h.directories_.push(K));h=q}u=u.directories_}this.dispatchEvent(new tnH(f,u,null))}else f=f.target.value,f.match(/^c:\\fakepath\\/i)&&(f=f.substring(12)),this.dispatchEvent(new tnH([],[],new WGf(f,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=ERl(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var tnH=function(f,R){_.qZ.call(this,"j");this.files=f;this.directories=R};
_.y(tnH,_.qZ);var CXi=function(f){this.uploadUrl_=f};var yFG=function(){_.mq.call(this)};
_.f6(yFG,_.mq);var kh=function(f){_.qZ.call(this,f)};
_.f6(kh,_.qZ);var KN=function(f){_.qZ.call(this,f)};
_.f6(KN,_.qZ);var dmi=function(f,R,u,O,c){_.mq.call(this);u=document.createElement("form");u.setAttribute("method",R);u.setAttribute("enctype","multipart/form-data");u.setAttribute("encoding","multipart/form-data");R=document.createElement("input");R.setAttribute("type","hidden");R.setAttribute("name","metadata");R.setAttribute("value",c);u.appendChild(R);u.appendChild(O);this.JSC$9963_form_=u;f=new _.gu(f);_.Sr(f,"upload_protocol","multipart");this.JSC$9963_url_=f.toString();this.JSC$9963_request_=new VJ;this.state_=
"Ready";this.JSC$9963_errorDescription_=null;this.JSC$9963_eventHandler_=new _.uE(this);_.qG(this,this.JSC$9963_eventHandler_);this.JSC$9963_eventHandler_.listen(this.JSC$9963_request_,"success",this.onTransferSuccess_);this.JSC$9963_eventHandler_.listen(this.JSC$9963_request_,"error",this.onTransferError_)};
_.y(dmi,yFG);_.X=dmi.prototype;_.X.run=function(){this.state_="Transferring";var f=this.JSC$9963_request_,R=this.JSC$9963_form_;if(f.JSC$9381_active_)throw Error("me");var u=new _.gu(this.JSC$9963_url_||R.action);f.JSC$9381_form_=R;R=f.JSC$9381_form_;u=_.Nu(u.toString());u!==void 0&&(R.action=u);rhF(f)};
_.X.getResponseCode=function(){return null};
_.X.getResponseText=function(){return this.JSC$9963_request_&&this.JSC$9963_request_.getResponseText()||null};
_.X.JSC$25858_getErrorDescription=function(){return this.JSC$9963_errorDescription_};
_.X.cancel=function(){this.JSC$9963_request_&&this.JSC$9963_request_.abort();this.state_="Cancelled";this.dispatchEvent(new kh("o"))};
_.X.pause=function(){};
_.X.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new kh("l"))};
_.X.onTransferError_=function(){this.JSC$9963_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new kh("n"))};var qi=function(){_.NZ.call(this)};
_.y(qi,_.NZ);qi.prototype.createXhr=function(){var f=_.NZ.prototype.createXhr.call(this);f.upload&&(f.upload.onprogress=(0,_.NG)(this.onProgress_,this));return f};
qi.prototype.onProgress_=function(f){this.dispatchEvent(f)};var Nhk=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},b9C=function(f,R){var u=f.attempt_+1;
if(f.maxAttempts_>0&&u>f.maxAttempts_)return!1;u==0?R():f.delayCallId_=Cd(function(){f.delayCallId_=null;R()},LGk(f),f);
f.attempt_=u;return!0};
Nhk.prototype.reset=function(){this.delayCallId_&&_.Oe.clearTimeout(this.delayCallId_);this.attempt_=-1};
var LGk=function(f){var R=250*Math.pow(2,f.attempt_);f.maxDelayMs_>=0&&(R=Math.min(R,f.maxDelayMs_));return R};var PwB=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var At=function(){_.mq.call(this);this.JSC$9973_request_=this.state_=null;this.JSC$9973_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9973_bytesTransferred_=0;this.retryIterator_=new Nhk;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9973_errorDescription_=null;this.JSC$9973_eventHandler_=new _.uE(this);_.qG(this,this.JSC$9973_eventHandler_);this.JSC$9973_url_=this.blob_=null;this.JSC$9973_method_=void 0;this.chunkSize_=this.JSC$9973_metadata_=
this.JSC$9973_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9973_responseText_=this.JSC$9973_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.f6(At,yFG);_.X=At.prototype;_.X.run=function(){aY(this)};
_.X.getResponseCode=function(){return this.JSC$9973_responseCode_};
_.X.getResponseText=function(){return this.JSC$9973_responseText_};
_.X.JSC$25858_getErrorDescription=function(){return this.JSC$9973_errorDescription_};
_.X.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9973_eventHandler_.removeAll();this.JSC$9973_request_&&this.JSC$9973_request_.abort();this.retryIterator_.reset();var f=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(f==="Upload"||f==="Query")f=new qi,f.JSC$7804_withCredentials_=this.JSC$9973_withCredentials_,f.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9973_bytesTransferred_=
0;this.dispatchEvent(new kh("o"))}};
_.X.pause=function(){this.pauseRequested_=!0};
var aY=function(f){var R=f.state_;f.pauseRequested_?(f.pauseRequested_=!1,f.stateAfterUnpausing_=R,f.state_="Paused"):b9C(f.retryIterator_,function(){switch(f.state_){case "Start":f.JSC$9973_request_=new qi;var u=_.dq.clone(f.JSC$9973_headers_);f.blob_.size!=null&&(u["Content-Length"]=f.blob_.size);u=UUq(u);u["X-Goog-Upload-Protocol"]="resumable";u["X-Goog-Upload-Command"]="start";f.JSC$9973_eventHandler_.removeAll();f.JSC$9973_eventHandler_.listen(f.JSC$9973_request_,"complete",f.onStartComplete_);
f.JSC$9973_request_.JSC$7804_withCredentials_=f.JSC$9973_withCredentials_;f.JSC$9973_request_.send(f.JSC$9973_url_,f.JSC$9973_method_,f.JSC$9973_metadata_,u);f.lastCommandResponseCode_=null;f.dispatchEvent(new KN("q"));break;case "Upload":u=f.transferHandle_.uploadUrl_;var O=f.blob_.size;if(e8E()){var c=f.chunkSize_;var h=f.offset_+c>=O;O=UWi(f.blob_,f.offset_,h?O:f.offset_+c)}else f.offset_=0,O=f.blob_,h=!0;f.JSC$9973_request_=new qi;f.JSC$9973_request_.JSC$7804_withCredentials_=f.JSC$9973_withCredentials_;
f.JSC$9973_eventHandler_.removeAll();f.JSC$9973_eventHandler_.listen(f.JSC$9973_request_,"progress",f.onUploadProgress_);c=(0,_.NG)(f.JSC$9975_onUploadComplete_,f,f.offset_+O.size,h);f.JSC$9973_eventHandler_.listen(f.JSC$9973_request_,"complete",c);f.lastCommandResponseCode_=null;f.dispatchEvent(new KN("q"));h=Object.assign({},f.JSC$9973_headers_||{},{"X-Goog-Upload-Command":"upload"+(h?", finalize":""),"X-Goog-Upload-Offset":f.offset_});f.JSC$9973_request_.send(u,"POST",O,h);break;case "Query":f.JSC$9973_request_=
new qi;f.JSC$9973_eventHandler_.removeAll();f.JSC$9973_eventHandler_.listen(f.JSC$9973_request_,"complete",f.onQueryComplete_);u=Object.assign({},f.JSC$9973_headers_||{},{"X-Goog-Upload-Command":"query"});f.JSC$9973_request_.send(f.transferHandle_.uploadUrl_,"POST","",u);f.lastCommandResponseCode_=null;f.dispatchEvent(new KN("q"));break;default:throw Error("bf");}})||Fu(f,"Transfer encountered too many consecutive failures.")},Fu=function(f,R){f.state_="Error";
f.JSC$9973_errorDescription_=R;f.dispatchEvent(new kh("n"))};
At.prototype.onStartComplete_=function(f){var R=f.target;this.lastCommandResponseCode_=R.getStatus();this.dispatchEvent(new KN("r"));if(pBf(R))jmi(this,R);else if(Dmk(R)){f=nR(f.target.getAllResponseHeaders());for(var u in f)_.hn(u.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new kh("m"));u=La(f,"X-Goog-Upload-URL");f=(f=La(f,"X-Goog-Upload-Chunk-Granularity"))?parseInt(f,10):1;u===void 0||isNaN(f)||f<=0?Fu(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
f)*f,this.transferHandle_=new CXi(u),this.dispatchEvent(new kh("p")),this.state_="Upload",this.retryIterator_.reset(),aY(this))}else aY(this)};
At.prototype.onUploadProgress_=function(f){this.JSC$9973_bytesTransferred_=this.offset_+f.loaded;this.dispatchEvent(new kh("k"))};
At.prototype.JSC$9975_onUploadComplete_=function(f,R,u){var O=this,c,h;return _.k(function(l){switch(l.nextAddress){case 1:c=u.target;O.lastCommandResponseCode_=c.getStatus();O.dispatchEvent(new KN("r"));if(JFG(c)||c.getStatus()==404)return O.JSC$9973_bytesTransferred_=f,jmi(O,c),l.return();if(Dmk(c)){l.jumpTo(2);break}if(!(h=O.detectCorruptedBlobEnabled_)){l.jumpTo(3);break}return _.A(l,zLG(O),4);case 4:h=l.yieldResult;case 3:if(h)return Fu(O,"Blob has been modified or corrupted."),l.return();O.requireUploadRequestModification_=
c.getStatus()==400;O.state_="Query";aY(O);return l.return();case 2:if(R)return Fu(O,"Got a non-final success response after issuing a finalize command."),l.return();O.JSC$9973_bytesTransferred_=f;O.offset_=f;O.retryIterator_.reset();aY(O);return l.return()}})};
At.prototype.onQueryComplete_=function(f){var R=f.target;this.lastCommandResponseCode_=R.getStatus();this.dispatchEvent(new KN("r"));pBf(R)?(R.getStatus()===200&&(this.JSC$9973_bytesTransferred_=this.blob_.size),jmi(this,R)):Dmk(R)?(f=nR(f.target.getAllResponseHeaders()),f=parseInt(La(f,"X-Goog-Upload-Size-Received"),10),isNaN(f)?Fu(this,"Server did not respond with current offset."):f<this.offset_?Fu(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
f+"."):this.requireUploadRequestModification_&&this.offset_===f?Fu(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<f&&this.retryIterator_.reset(),this.offset_=this.JSC$9973_bytesTransferred_=f,this.state_="Upload",aY(this))):aY(this)};
var jmi=function(f,R){f.JSC$9973_responseCode_=R.getStatus();var u=nR(R.getAllResponseHeaders());eJn(u);f.JSC$9973_responseText_=R.getResponseText();f.state_="Response received";f.dispatchEvent(new kh("l"))},Dmk=function(f){var R=f.getStatus();
f=nR(f.getAllResponseHeaders());f=La(f,"X-Goog-Upload-Status");return R===200&&f==="active"},JFG=function(f){f=nR(f.getAllResponseHeaders());
return La(f,"X-Goog-Upload-Status")==="final"},pBf=function(f){if(JFG(f))return!0;
f=f.getStatus();return f>=400&&f<500},zLG=function(f){var R;
return _.k(function(u){if(u.nextAddress==1){if(!f.blob_||f.originalBlobSize_<=0)return u.return(!1);if(f.blob_.size!==f.originalBlobSize_)return u.return(!0);_.cl(u,2);if(R=UWi(f.blob_,0,1)){var O=new Tp,c=w_F(O);O.reader_.readAsBinaryString(R);u=_.A(u,c,4)}else u=u.return(!0);return u}if(u.nextAddress!=2)return u.return(f.blob_.size!==f.originalBlobSize_);_.ku(u);return u.return(!0)})};var Thf=function(f,R,u,O,c,h){_.mq.call(this);this.payload_=O;this.JSC$9976_url_=f;this.JSC$9976_method_=R;this.JSC$9976_headers_=u;this.JSC$9976_metadata_=c;this.encoding_=h||"binary";f=new _.We;this.boundary_="uploader-"+Bi()+"-"+f.JSC$9230_toIsoString();this.JSC$9976_responseText_=this.JSC$9976_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9976_errorDescription_=null;this.JSC$9976_eventHandler_=new _.uE(this);_.qG(this,this.JSC$9976_eventHandler_)};
_.y(Thf,yFG);_.X=Thf.prototype;
_.X.run=function(){var f=_.dq.clone(this.JSC$9976_headers_);this.payload_.length!=null&&(f["Content-Length"]=this.payload_.length);f=UUq(f);f["X-Goog-Upload-Protocol"]="multipart";f["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new qi;this.JSC$9976_eventHandler_.removeAll();this.JSC$9976_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9976_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9976_url_,this.JSC$9976_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9976_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",f)};
_.X.getResponseCode=function(){return this.JSC$9976_responseCode_};
_.X.getResponseText=function(){return this.JSC$9976_responseText_};
_.X.JSC$25858_getErrorDescription=function(){return this.JSC$9976_errorDescription_};
_.X.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9976_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new kh("o")))};
_.X.pause=function(){};
_.X.onTransferProgress_=function(){this.dispatchEvent(new kh("k"))};
_.X.onTransferComplete_=function(f){var R=f.target.getStatus();R===void 0||R===-1?(this.JSC$9976_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new kh("n"))):(this.JSC$9976_responseCode_=R,f=f.target,R=nR(f.getAllResponseHeaders()),eJn(R),this.JSC$9976_responseText_=f.getResponseText(),this.state_="Complete",this.dispatchEvent(new kh("l")))};_.H9k=function(f,R,u,O){O=O===void 0?!1:O;if(u instanceof WGf)return new dmi(f,"POST",R,u.getInputElement(),"");if(typeof u==="string"||u instanceof String)return new Thf(f,"POST",R,u,"");var c=new At(void 0);c.JSC$9973_url_=f;c.JSC$9973_method_="POST";c.JSC$9973_headers_=R;c.blob_=u;c.originalBlobSize_=u.size;c.JSC$9973_metadata_="";O&&(c.JSC$9973_withCredentials_=O);c.state_="Start";return c};var wS=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(wS,_.e5);_.X=wS.prototype;_.X.getEnableSsEngine=function(){return _.dZ(this,2)};
_.X.getEnableAwr=function(){return _.dZ(this,3)};
_.X.getAlohaAutoGaRollout=function(){return _.dZ(this,5)};
_.X.getEnableConfigurator=function(){return _.dZ(this,6)};
_.X.getEnableMweb=function(){return _.dZ(this,7)};
var Mni=function(){var f=Imt();return _.pa(f,7,!0)};
wS.prototype.getEnableCtlConsentCheckbox=function(){return _.dZ(this,8)};
wS.prototype.getEnableIframe=function(){return _.dZ(this,9)};
var Imt=function(){var f=new wS;f=_.pa(f,5,!0);f=_.pa(f,2,!0);f=_.pa(f,4,!1);f=_.pa(f,8,!0);return _.pa(f,9,!0)};
wS.prototype.getEnableScreenshotNudge=function(){return _.dZ(this,10)};
var PXE=function(){var f=Mni();return _.pa(f,10,!0)};
wS.prototype.getEnableWebStartupConfigEndpoint=function(){return _.dZ(this,11)};
wS.prototype.getEnableJunkNudge=function(){return _.dZ(this,12)};
var uzB=function(){var f=PXE();return _.pa(f,12,!0)};
_.X=wS.prototype;_.X.getEnableConfiguratorLocale=function(){return _.dZ(this,13)};
_.X.getEnableTinyNoPointer=function(){return _.dZ(this,14)};
_.X.getEnableSupportSessionLogging=function(){return _.dZ(this,15)};
_.X.getEnableFileUploadForScreenshot=function(){return _.dZ(this,16)};
_.X.getEnableDirectDeflectionForSingleCategory=function(){return _.dZ(this,17)};
_.X.getEnableImageSanitization=function(){return _.dZ(this,18)};
_.X.getEnableAlohaBinarySplit=function(){return _.dZ(this,19)};
_.X.getEnableDbFeedbackIntents=function(){return _.dZ(this,20)};
_.X.getEnableMarkMandatoryFieldsWithRequired=function(){return _.dZ(this,21)};
_.X.getEnableFeedbackCategoryCustomUi=function(){return _.dZ(this,22)};
_.X.getEnableRealtimeCtl=function(){return _.dZ(this,23)};var RIl=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(RIl,_.e5);var GDq=[/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 ozl="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 xU2=_.Sg(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),S2q=_.Sg(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var gzl,nzq;var Umf,eLi;
Umf=function(f,R,u){f.timeOfStartCall=(new Date).getTime();var O=u||_.Oe,c=O.document,h=f.nonce||_.Td(O.document);h&&!f.nonce&&(f.nonce=h);if(f.flow=="help"){var l=_.Ph("document.location.href",O);!f.helpCenterContext&&l&&(f.helpCenterContext=l.substring(0,1200));l=!0;if(R&&JSON&&JSON.stringify){var K=JSON.stringify(R);(l=K.length<=1200)&&(f.psdJson=K)}l||(R={invalidPsd:!0})}R=[f,R,u];O.GOOGLE_FEEDBACK_START_ARGUMENTS=R;u=f.feedbackServerUri||"//www.google.com/tools/feedback";if(l=O.GOOGLE_FEEDBACK_START)l.apply(O,R);
else{O=u+"/load.js?";for(var q in f)R=f[q],R==null||_.OE(R)||(O+=encodeURIComponent(q)+"="+encodeURIComponent(R)+"&");f=a0(c).createElement("SCRIPT");h&&f.setAttribute("nonce",h);_.UO(f,_.lh(O));c.body.appendChild(f)}};
eLi=function(f,R,u,O){var c,h;_.k(function(l){c=u||_.Oe;var K=f.serverEnvironment==="DEV",q=u||_.Oe;q=f.nonce||_.Td(q.document);K={integrationKeys:{productId:f.productId,feedbackBucket:f.bucket,triggerId:f.triggerId},callbacks:{onClose:f.callback,onLoad:f.onLoadCallback},formContent:{locale:f.locale,disableScreenshot:f.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:f.abuseLink,additionalDataConsent:f.additionalDataConsent},initializationData:{isLocalServer:K,nonce:q,useNightlyRelease:K,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:f.feedbackServerUri,colorScheme:f.colorScheme},extraData:{productVersion:f.productVersion,authUser:f.authuser,configuratorId:f.configuratorId,customZIndex:f.customZIndex,tinyNoPointer:f.tinyNoPointer,
allowNonLoggedInFeedback:f.allowNonLoggedInFeedback,enableAnonymousFeedback:f.enableAnonymousFeedback}};R&&(q=new Map(Object.entries(R)),K.extraData.productSpecificData=q);h=K;return _.A(l,ip7(h,O,c),0)})};
_.GBI=function(f,R,u){try{if(f.flow==="help"){var O=f.helpCenterPath.replace(/^\//,"");_.zd(u||window,"https://support.google.com/"+O)}else f.flow==="submit"?Umf(f,R,u):OdD(f.productId,f.feedbackServerUri).then(function(c){c=_.Ry(c,wS,1);var h=!lP7||(c==null?void 0:c.getEnableMweb()),l=!f.tinyNoPointer||(c==null?void 0:c.getEnableTinyNoPointer());!c||c.getAlohaAutoGaRollout()&&h&&l?eLi(f,R,u,c):Umf(f,R,u)},function(c){c&&c.name!=="DuplicateFormError"&&Umf(f,R,u)})}catch(c){eLi(f,R,u,null)}};
_.V4("userfeedback.api.startFeedback",_.GBI);var co0=/https?:\/\/\S+\.\S+/,Xbn=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],hIB=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var fJt=function(f){var R=f.split(""),u=[-263237435,15,R,function(O,c,h){var l=c.length;h.forEach(function(K,q,F){this.push(F[q]=c[(c.indexOf(K)-c.indexOf(this[q])+q+l--)%c.length])},O.split(""))},
function(O,c){O=(O%c.length+c.length)%c.length;c.splice(-O).reverse().forEach(function(h){c.unshift(h)})},
"response",function(){for(var O=64,c=[];++O-c.length-32;){switch(O){case 58:O-=14;case 91:case 92:case 93:continue;case 123:O=47;case 94:case 95:case 96:continue;case 46:O=95}c.push(String.fromCharCode(O))}return c},
null,12,1540023973,65941107,null,R,function(O,c){for(O=(O%c.length+c.length)%c.length;O--;)c.unshift(c.pop())},
695603893,function(O){for(var c=O.length;c;)O.push(O.splice(--c,1)[0])},
"'[;'[(",function(O,c){O.push(c)},
null,function(O,c,h,l,K){return c(h,l,K)},
"continuation",R,function(O,c){if(O.length!=0){c=(c%O.length+O.length)%O.length;var h=O[0];O[0]=O[c];O[c]=h}},
function(){for(var O=64,c=[];++O-c.length-32;){switch(O){case 91:O=44;continue;case 123:O=65;break;case 65:O-=18;continue;case 58:O=96;continue;case 46:O=95}c.push(String.fromCharCode(O))}return c},
'"),/]];'];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(O){return"aTlOUOubTO4AP____8P_"+f}return R.join("")};_.Bhi=new _.Y("runAttestationCommand");var oRC=new _.Y("verifyCommand");_.mZ=new _.Y("accessibilityContext");var xmC=new _.Y("accessibilityData");var SYE=new _.Y("profileCardCommand");var E12=new _.Y("signInEndpoint");var WW7=new _.Y("signOutEndpoint");var gRI;_.$mk=new _.Y("accountItemSectionRenderer");gRI=new _.Y("accountItemRenderer");_.smf=new _.Y("saveCommandToSessionStorageAction");var nRC=new _.Y("crossAccountChannelTransferEndpoint");var wvn=new _.Y("getAccountMenuEndpoint");_.mw7=new _.Y("getAccountSwitcherEndpoint");var FTh=new _.Y("getAccountsListEndpoint");var Vnt=new _.Y("getAccountsListInnertubeEndpoint");_.QE=new _.Y("addToToastAction");var YYH=new _.Y("hideEnclosingAction");_.WY=new _.Y("replaceEnclosingAction");var vRE=new _.Y("buttonRefreshAction");var i9f=new _.Y("adsControlFlowOpportunityReceivedCommand");var rFC=new _.Y("openAdAllowlistInstructionCommand");var fSk=new _.Y("videoMastheadAdPrimaryVideoRenderer");var RKE=new _.Y("displayAdRenderer");var gdh=new _.Y("instreamVideoAdRenderer");_.uxk=new _.Y("inFeedAdLayoutRenderer");var OSE=new _.Y("sequenceItemInPlayerAdLayoutRenderer");_.cdf=new _.Y("adSlotRenderer");var X9Y=new _.Y("adAvatarViewModel");var hKH=new _.Y("adBadgeViewModel");var ZSI=new _.Y("adButtonViewModel");var Ed=new _.Y("adImageViewModel");var b2n=new _.Y("reelsAdCardButtonedViewModel");var lSf=new _.Y("reelsPlayerOverlayLayoutViewModel");var kaf=new _.Y("showSchedulingPanelCommand");var Kzk=new _.Y("backstageCommentsRenderer");var qXl=new _.Y("backstageImageRenderer");var AdY=new _.Y("backstagePostRenderer");var aSF=new _.Y("postRenderer");var FzH=new _.Y("sharedPostRenderer");var w9A=new _.Y("createBackstagePostEndpoint");var mSt=new _.Y("getPostVideoPreviewEndpoint");var QGG=new _.Y("updateBackstagePostEndpoint");var WzI=new _.Y("filterChipTransformCommand");var EjG=new _.Y("insertRichSectionCommand");var Gil=new _.Y("talkToRecsDeselectCommand");var tgi=new _.Y("talkToRecsNextCommand");var ePX=new _.Y("talkToRecsSelectCommand");var Ckf=new _.Y("talkToRecsUpdateTextCommand");_.wY=new _.Y("browseEndpoint");_.ydI=new _.Y("confirmDialogEndpoint");var dSC=new _.Y("expandOnHoverCardRenderer");var NIA=new _.Y("lumiereShelfDetailsRenderer");var Lzt=new _.Y("revealBusinessEmailCommand");var bSl=new _.Y("validateChannelHandleCommand");var p9f=new _.Y("channelCreationFormEndpoint");var jGG=new _.Y("aboutChannelViewModel");var DSt=new _.Y("channelThumbnailWithLinkRenderer");var JdI=new _.Y("channelCreationServiceEndpoint");var zKI=new _.Y("updateChannelPageSettingsEndpoint");var tt=function(f){this.delegate=f},CN=function(){tt.apply(this,arguments)};
_.y(CN,tt);_.Vy.Object.defineProperties(CN.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(f){this.delegate.entityMetadata=f}}});var TIi=function(){CN.apply(this,arguments)};
_.y(TIi,CN);TIi.prototype.getAssociations=function(){return[]};var Dr0=new _.Y("webThumbnailDetailsExtensionData");var AD7=new _.Y("commandContext");var HSk=new _.Y("addVideoLinkAction");var ISC=new _.Y("createPollAction");var MgF=new _.Y("hideIdentityChipAction");var Pkk=new _.Y("openUpdateCommentDialogAction");var yE=new _.Y("updateBackstagePollAction");var USi=new _.Y("updateCommentVoteAction");var eKF=new _.Y("commentThreadRenderer");var GaY=function(){CN.apply(this,arguments)};
_.y(GaY,CN);GaY.prototype.getAssociations=function(){return[]};_.BIA=new _.Y("commentDialogRenderer");var ojE=new _.Y("updateCommentsSettingsEndpoint");var xSY=new _.Y("commentViewModel");var SXE=new _.Y("triStateButtonViewModel");var $Sk=new _.Y("voiceReplyContainerViewModel");_.kE=new _.Y("commandExecutorCommand");var J4=new _.Y("emoji");var gjk=new _.Y("updateCreatorChannelInnertubeCommand");_.sGf=new _.Y("appendContinuationItemsAction");_.njk=new _.Y("changeEngagementPanelVisibilityAction");_.Tw=new _.Y("continuationCommand");var Vgt=new _.Y("listMutationCommand");_.dS=new _.Y("openPopupAction");var YXF=new _.Y("persistSubscriptionsDisplayPreferencesCommand");var cMk;_.vjE=new _.Y("playlistRemoveVideosAction");_.iSf=new _.Y("updatePlaylistAction");_.rdH=new _.Y("addToPlaylistCommand");_.fYi=new _.Y("endPlaylistCommand");_.RvG=new _.Y("recoverPlaylistCommand");_.uAC=new _.Y("refreshPlaylistCommand");_.O6f=new _.Y("refreshFormCommand");cMk=new _.Y("openOnePickAddVideoModalCommand");_.yc5=new _.Y("reloadContinuationItemsCommand");_.XoI=new _.Y("scrollToEngagementPanelCommand");var hvH=new _.Y("selectCountryCommand");var Z6A=new _.Y("showReloadUiCommand");var lYi=new _.Y("undoFeedbackAction");var kRl=new _.Y("updateButtonAction");var KOG=new _.Y("updateSubscribeButtonAction");var q0I=new _.Y("updateToggleAction");var AMf=new _.Y("webNativeShareCommand");_.vc=new _.Y("webCommandMetadata");_.Ni=new _.Y("webHandleServiceEndpointExtension");var Cbh=new _.Y("webNavigationEndpointData");var aYf=new _.Y("copyLinkCommand");var FOC=new _.Y("playlistVotingRefreshPopupCommand");var woH=new _.Y("selectChipCommand");var mHk=new _.Y("setCookieCommand");var QtI=new _.Y("setLocalStorageCommand");var WOF=new _.Y("setPrefStorageEntryCommand");var yMl;_.ETA=new _.Y("settingsUpdateCheckboxCommand");_.tTE=new _.Y("settingsUpdateTextCommand");_.CHi=new _.Y("settingsUpdateOptionsCommand");yMl=new _.Y("settingsUpdateSwitchCommand");_.dHA=new _.Y("settingsUpdateConnectedAppRendererCommand");var NZf=new _.Y("updateTextInputFormFieldRendererCommand");var LOY=new _.Y("updateToggleButtonStateCommand");var b6G=new _.Y("updateUrlParamCommand");var pot=new _.Y("webSubmitFormCommand");var jtt=new _.Y("channelSwitcherPageRenderer"),DHC=new _.Y("updateChannelSwitcherPageAction");_.OX=new _.Y("continuationItemRenderer");_.LN=new _.Y("richItemRenderer");var JMC=new _.Y("richSectionRenderer");_.zvC=new _.Y("richShelfRenderer");_.TZA=new _.Y("metadataBadgeRenderer");_.H6C=new _.Y("multiPageMenuNotificationSectionRenderer");_.IYf=new _.Y("playlistLoopButtonStateRenderer");var MTf=new _.Y("claimLegacyYoutubeChannelEndpoint");var PHA=new _.Y("getNotificationMenuEndpoint");var UHF=new _.Y("getSearchInVideoCommand");_.evC=new _.Y("getTranscriptEndpoint");_.AH=new _.Y("signalServiceEndpoint");var GRk=new _.Y("verifyAgeEndpoint");var O3l=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(O3l,_.e5);O3l.prototype.getPath=function(){return _.bH(this,1)};
O3l.prototype.getValue=function(){return _.bH(this,2)};var BZi=[0,_.xT,-1];var oTA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(oTA,_.e5);var u6P=_.rl(oTA,[0,_.ST,BZi]);var xHF=new _.Y("dismissalEndpoint");var S0E=new _.Y("elementsCommand");_.TW=new _.Y("innertubeCommand");var $HC=new _.Y("multipleInlinePlaybackCommand");var XjB=new _.Y("loggingDirectives");var gTk=new _.Y("acknowledgeChannelTouStrikeCommand");var stf=function(){CN.apply(this,arguments)};
_.y(stf,CN);stf.prototype.getAssociations=function(){return[]};var nTE=function(){CN.apply(this,arguments)};
_.y(nTE,CN);nTE.prototype.getAssociations=function(){return[]};var xG=new _.Y("entityBatchUpdate");_.VTk=new _.Y("entityUpdateCommand");var Y0Y=function(){CN.apply(this,arguments)};
_.y(Y0Y,CN);Y0Y.prototype.getAssociations=function(){var f=[];this.delegate.alternateChannel&&f.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&f.push.apply(f,_.yq(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&f.push(this.delegate.oneofChannelEntity);return[].concat(_.yq(new Set(f)))};var vTG=function(){CN.apply(this,arguments)};
_.y(vTG,CN);vTG.prototype.getAssociations=function(){var f=[];this.delegate.entryCollection&&f.push(this.delegate.entryCollection);return[].concat(_.yq(new Set(f)))};
var i6i=function(){CN.apply(this,arguments)};
_.y(i6i,CN);i6i.prototype.getAssociations=function(){var f=[];this.delegate.parentPlaylist&&f.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var R=_.Z(this.delegate.entries),u=R.next();!u.done;u=R.next())f.push.apply(f,_.yq((new rMk(u.value)).getAssociations()));return[].concat(_.yq(new Set(f)))};
var rMk=function(){tt.apply(this,arguments)};
_.y(rMk,tt);rMk.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);return[].concat(_.yq(new Set(f)))};var fji=function(){CN.apply(this,arguments)};
_.y(fji,CN);fji.prototype.getAssociations=function(){var f=[];this.delegate.descriptionEntity&&f.push(this.delegate.descriptionEntity);this.delegate.creators&&f.push.apply(f,_.yq(this.delegate.creators));this.delegate.theBiggestFan&&f.push(this.delegate.theBiggestFan);return[].concat(_.yq(new Set(f)))};
var RJk=function(){CN.apply(this,arguments)};
_.y(RJk,CN);RJk.prototype.getAssociations=function(){return[]};var uek=new _.Y("fantasyRosterViewModel");var Opt=new _.Y("addFollowUpSurveyCommand");var ckA=new _.Y("getSurveyCommand");var XIG=new _.Y("ratingSurveyOptionRenderer");_.DS=new _.Y("feedbackEndpoint");var hJC=new _.Y("reportHistoryTableCellRenderer"),ZpC=new _.Y("reportHistoryTableTextCellRenderer"),lji=new _.Y("reportHistoryTableReasonCellRenderer");_.kDt=new _.Y("flagEndpoint");var KCk=new _.Y("getFlowCommand");var q2k=new _.Y("submitFormWithValidationFlowCommand");var AkF=function(){CN.apply(this,arguments)};
_.y(AkF,CN);AkF.prototype.getAssociations=function(){return[]};var ajF=new _.Y("flowFormState");var FCt=new _.Y("gameCardRenderer");var wIk=new _.Y("accountLinkingStateChangedCommand");var mUE=function(){CN.apply(this,arguments)};
_.y(mUE,CN);mUE.prototype.getAssociations=function(){return[]};var Qgt=new _.Y("changeMiniAppPlayStateCommand");var WCk=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(WCk,_.e5);var bx=[1,2,3];var Ezf=[0,bx,Py7,_.UP0,DPD];var tAk=_.rl(WCk,Ezf),CwY=_.fj(Ezf);var ykH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(ykH,_.e5);var dUH=[0,_.eT,_.xT];var NBi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(NBi,_.e5);var LCE=[0,_.xT,_.eT,-1];var bpF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(bpF,_.e5);var pIC=function(f,R){return _.uO(f,3,R)};var jgi=_.fj([0,1,dUH,_.gZ,LCE]);var DUf=new _.Y("miniAppScoreChallengeViewModel");var Jkk=new _.Y("miniGameCardViewModel");var zJI=new _.Y("teaserCardViewModel");var TBf=function(){CN.apply(this,arguments)};
_.y(TBf,CN);TBf.prototype.getAssociations=function(){return[]};_.Hpf=new _.Y("feedbackItemRenderer");var Ijf=function(){CN.apply(this,arguments)};
_.y(Ijf,CN);Ijf.prototype.getAssociations=function(){return[]};_.MAF=new _.Y("playerInterstitialRenderer");var Pwf=new _.Y("getKidsBlocklistPickerCommand");_.UUI=new _.Y("updateKidsBlacklistEndpoint");_.GB=new _.Y("likeEndpoint");var eJi,GDI,BBC;eJi=new _.Y("addChatItemAction");GDI=new _.Y("removeChatItemAction");BBC=new _.Y("markChatItemAsDeletedAction");_.ozF=new _.Y("setLiveChatCollapsedStateAction");var xUA=function(){CN.apply(this,arguments)};
_.y(xUA,CN);xUA.prototype.getAssociations=function(){return[]};var S2I=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(S2I,_.e5);var $UF=_.rl(S2I,[0,1,_.eT]);var gzF=new _.Y("liveChatEndpoint");var sgE=new _.Y("liveChatItemContextMenuEndpoint");var nzI=new _.Y("liveChatReplayEndpoint");_.VAl=new _.Y("emojiPickerRenderer");var Y2l=new _.Y("liveChatAuthorBadgeViewModel");var vzf=new _.Y("deleteLiveChatMessageCommand");var ipH=new _.Y("liveChatActionEndpoint");var rkA=new _.Y("createLiveChatPollEndpoint");var fqE=new _.Y("manageLiveChatUserEndpoint");var RIF=new _.Y("moderateLiveChatEndpoint");_.uzf=new _.Y("sendLiveChatMessageEndpoint");var Odk=new _.Y("sendLiveChatVoteEndpoint");var coG=new _.Y("clearLocationCommand");var Xbi=new _.Y("resolveLocationCommand");var hIf=new _.Y("interactionLoggingCommandMetadata");var PM2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(PM2,_.e5);var MSl=function(f,R){return _.X$(f,1,R)};var ZdH=[0,_.ot];var I60=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(I60,_.e5);var Hwq=function(f,R){return QL(f,1,PM2,R)};I60.prototype.JSC$10068_serializeBinary=Ren([0,_.ST,ZdH]);var pbl={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 lqC={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"},
k0A={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 UX0={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"};_.gbt=new _.Y("logFlowLoggingEventCommand");_.mi=new _.Y("loggingContext");var KqH=new _.Y("captionLanguageSelectActionCommand");var qFt=new _.Y("showCaptionLanguageSelectActionCommand");var AoC=new _.Y("dismissDialogEndpoint");var aqC=new _.Y("hideItemSectionVideosByIdCommand");var FqF=new _.Y("showMiniplayerCommand");var wbl=function(){CN.apply(this,arguments)};
_.y(wbl,CN);wbl.prototype.getAssociations=function(){return[]};var mZI=function(){CN.apply(this,arguments)};
_.y(mZI,CN);mZI.prototype.getAssociations=function(){return[]};var Qfk=function(){CN.apply(this,arguments)};
_.y(Qfk,CN);Qfk.prototype.getAssociations=function(){return[]};var Wqf=function(){CN.apply(this,arguments)};
_.y(Wqf,CN);Wqf.prototype.getAssociations=function(){var f=[];this.delegate.downloadsList&&f.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&f.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&f.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&f.push(this.delegate.refresh);return[].concat(_.yq(new Set(f)))};var EIE=function(){CN.apply(this,arguments)};
_.y(EIE,CN);EIE.prototype.getAssociations=function(){var f=[];this.delegate.refresh&&f.push(this.delegate.refresh);if(this.delegate.downloads)for(var R=_.Z(this.delegate.downloads),u=R.next();!u.done;u=R.next())f.push.apply(f,_.yq((new tDF(u.value)).getAssociations()));return[].concat(_.yq(new Set(f)))};
var tDF=function(){tt.apply(this,arguments)};
_.y(tDF,tt);tDF.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.playlist&&f.push(this.delegate.playlist);this.delegate.videoItem&&f.push(this.delegate.videoItem);this.delegate.playlistItem&&f.push(this.delegate.playlistItem);return[].concat(_.yq(new Set(f)))};var CVG=function(){CN.apply(this,arguments)};
_.y(CVG,CN);CVG.prototype.getAssociations=function(){var f=[];this.delegate.localImageEntities&&f.push.apply(f,_.yq(this.delegate.localImageEntities));return[].concat(_.yq(new Set(f)))};var yoC=function(){CN.apply(this,arguments)};
_.y(yoC,CN);yoC.prototype.getAssociations=function(){var f=[];this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.localImageEntities&&f.push.apply(f,_.yq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.yq(new Set(f)))};var dZk=function(){CN.apply(this,arguments)};
_.y(dZk,CN);dZk.prototype.getAssociations=function(){return[]};var N4i=function(){CN.apply(this,arguments)};
_.y(N4i,CN);N4i.prototype.getAssociations=function(){var f=[];this.delegate.fakeChildren&&f.push.apply(f,_.yq(this.delegate.fakeChildren));return[].concat(_.yq(new Set(f)))};var Lqk=function(){CN.apply(this,arguments)};
_.y(Lqk,CN);Lqk.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&f.push(this.delegate.offlineVideoPolicy);return[].concat(_.yq(new Set(f)))};var bdA=function(){CN.apply(this,arguments)};
_.y(bdA,CN);bdA.prototype.getAssociations=function(){return[]};var pbF=function(){CN.apply(this,arguments)};
_.y(pbF,CN);pbF.prototype.getAssociations=function(){var f=[];this.delegate.channelOwner&&f.push(this.delegate.channelOwner);this.delegate.videos&&f.push.apply(f,_.yq(this.delegate.videos));this.delegate.collaboratorChannels&&f.push.apply(f,_.yq(this.delegate.collaboratorChannels));this.delegate.downloadState&&f.push(this.delegate.downloadState);this.delegate.refresh&&f.push(this.delegate.refresh);return[].concat(_.yq(new Set(f)))};var jfE=function(){CN.apply(this,arguments)};
_.y(jfE,CN);jfE.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.channelContributor&&f.push(this.delegate.channelContributor);return[].concat(_.yq(new Set(f)))};var DZk=function(){tt.apply(this,arguments)};
_.y(DZk,tt);DZk.prototype.getAssociations=function(){var f=[];this.delegate.recommendedVideoMetadata&&f.push.apply(f,_.yq((new Jok(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.yq(new Set(f)))};
var Jok=function(){tt.apply(this,arguments)};
_.y(Jok,tt);Jok.prototype.getAssociations=function(){var f=[];this.delegate.localImageEntities&&f.push.apply(f,_.yq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.yq(new Set(f)))};var zIt=function(){tt.apply(this,arguments)};
_.y(zIt,tt);zIt.prototype.getAssociations=function(){var f=[];this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);return[].concat(_.yq(new Set(f)))};var T4C=function(){CN.apply(this,arguments)};
_.y(T4C,CN);T4C.prototype.getAssociations=function(){var f=[];this.delegate.owner&&f.push(this.delegate.owner);this.delegate.downloadState&&f.push(this.delegate.downloadState);this.delegate.userState&&f.push.apply(f,_.yq((new zIt(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&f.push.apply(f,_.yq((new DZk(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.yq(new Set(f)))};var Hdf=function(){CN.apply(this,arguments)};
_.y(Hdf,CN);Hdf.prototype.getAssociations=function(){var f=[];this.delegate.userChannelDetails&&f.push(this.delegate.userChannelDetails);return[].concat(_.yq(new Set(f)))};var IqA=function(){CN.apply(this,arguments)};
_.y(IqA,CN);IqA.prototype.getAssociations=function(){var f=[];this.delegate.channelOwner&&f.push(this.delegate.channelOwner);this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&f.push.apply(f,_.yq(this.delegate.localImageEntities));this.delegate.downloadStatus&&f.push(this.delegate.downloadStatus);return[].concat(_.yq(new Set(f)))};var uuq=new _.Y("downloadsPageSmartDownloadsOptInBannerParams");var MDA=function(){CN.apply(this,arguments)};
_.y(MDA,CN);MDA.prototype.getAssociations=function(){return[]};var PVE=function(){CN.apply(this,arguments)};
_.y(PVE,CN);PVE.prototype.getAssociations=function(){return[]};var UZk=function(){CN.apply(this,arguments)};
_.y(UZk,CN);UZk.prototype.getAssociations=function(){return[]};var eIC=function(){CN.apply(this,arguments)};
_.y(eIC,CN);eIC.prototype.getAssociations=function(){return[]};var G0A=function(){CN.apply(this,arguments)};
_.y(G0A,CN);G0A.prototype.getAssociations=function(){return[]};var B4Y=function(){CN.apply(this,arguments)};
_.y(B4Y,CN);B4Y.prototype.getAssociations=function(){return[]};var oIf=function(){CN.apply(this,arguments)};
_.y(oIf,CN);oIf.prototype.getAssociations=function(){return[]};var xZA=function(){CN.apply(this,arguments)};
_.y(xZA,CN);xZA.prototype.getAssociations=function(){return[]};var SFk=function(){CN.apply(this,arguments)};
_.y(SFk,CN);SFk.prototype.getAssociations=function(){return[]};_.jP=new _.Y("dislikeButtonViewModel");_.pr=new _.Y("likeButtonViewModel");var $ZF=new _.Y("videoSummaryContentViewModel");var gIC=new _.Y("videoSummaryParagraphViewModel");var sfC=new _.Y("changeTimelyActionVisibilityCommand");var nIY=new _.Y("hideEngagementPanelEndpoint");var VDF=new _.Y("refreshPanelEndpoint");var YFY=new _.Y("scrollToSectionEndpoint");var vII=new _.Y("seekToVideoTimestampCommand");_.jg=new _.Y("showEngagementPanelEndpoint");var idC=new _.Y("showTransientPlayerScrimOverlayCommand");var roH=new _.Y("toggleEngagementPanelCommand");_.fCE=new _.Y("createBroadcastCommand");var Rol=new _.Y("metadataUpdateCommand");var uwF=function(){CN.apply(this,arguments)};
_.y(uwF,CN);uwF.prototype.getAssociations=function(){return[]};var OWC=function(){CN.apply(this,arguments)};
_.y(OWC,CN);OWC.prototype.getAssociations=function(){return[]};var c_G=function(){CN.apply(this,arguments)};
_.y(c_G,CN);c_G.prototype.getAssociations=function(){return[]};_.Xst=new _.Y("merchandiseShelfRenderer");var hoI=new _.Y("gridMovieRenderer");_.ZWl=new _.Y("movieRenderer");var lCY=function(){CN.apply(this,arguments)};
_.y(lCY,CN);lCY.prototype.getAssociations=function(){var f=[];this.delegate.trackDownloadMetadatas&&f.push.apply(f,_.yq(this.delegate.trackDownloadMetadatas));return[].concat(_.yq(new Set(f)))};var ktY=function(){CN.apply(this,arguments)};
_.y(ktY,CN);
ktY.prototype.getAssociations=function(){var f=[];this.delegate.downloadedTracks&&f.push.apply(f,_.yq(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&f.push.apply(f,_.yq(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&f.push.apply(f,_.yq(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&f.push.apply(f,_.yq(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&f.push.apply(f,_.yq(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
f.push.apply(f,_.yq(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&f.push.apply(f,_.yq(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&f.push.apply(f,_.yq(this.delegate.metadataOnlyTracks));return[].concat(_.yq(new Set(f)))};var K4f=function(){CN.apply(this,arguments)};
_.y(K4f,CN);K4f.prototype.getAssociations=function(){var f=[];this.delegate.trackDownloadMetadatas&&f.push.apply(f,_.yq(this.delegate.trackDownloadMetadatas));return[].concat(_.yq(new Set(f)))};var qVG=function(){CN.apply(this,arguments)};
_.y(qVG,CN);qVG.prototype.getAssociations=function(){var f=[];this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.localImageEntities&&f.push.apply(f,_.yq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.yq(new Set(f)))};var A_H=function(){CN.apply(this,arguments)};
_.y(A_H,CN);
A_H.prototype.getAssociations=function(){var f=[];this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&f.push.apply(f,_.yq(this.delegate.primaryArtists));this.delegate.details&&f.push(this.delegate.details);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.tracks&&f.push.apply(f,_.yq(this.delegate.tracks));this.delegate.share&&f.push(this.delegate.share);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.refresh&&
f.push(this.delegate.refresh);return[].concat(_.yq(new Set(f)))};
var aCA=function(){CN.apply(this,arguments)};
_.y(aCA,CN);aCA.prototype.getAssociations=function(){var f=[];this.delegate.albumRelease&&f.push(this.delegate.albumRelease);this.delegate.tracks&&f.push.apply(f,_.yq(this.delegate.tracks));return[].concat(_.yq(new Set(f)))};
var F4I=function(){CN.apply(this,arguments)};
_.y(F4I,CN);F4I.prototype.getAssociations=function(){var f=[];this.delegate.albumRelease&&f.push(this.delegate.albumRelease);return[].concat(_.yq(new Set(f)))};var wsf=function(){CN.apply(this,arguments)};
_.y(wsf,CN);wsf.prototype.getAssociations=function(){var f=[];this.delegate.details&&f.push(this.delegate.details);this.delegate.userDetails&&f.push(this.delegate.userDetails);return[].concat(_.yq(new Set(f)))};
var m2t=function(){CN.apply(this,arguments)};
_.y(m2t,CN);m2t.prototype.getAssociations=function(){var f=[];this.delegate.parentArtist&&f.push(this.delegate.parentArtist);return[].concat(_.yq(new Set(f)))};
var Qni=function(){CN.apply(this,arguments)};
_.y(Qni,CN);Qni.prototype.getAssociations=function(){var f=[];this.delegate.parentArtist&&f.push(this.delegate.parentArtist);return[].concat(_.yq(new Set(f)))};var W4Y=function(){CN.apply(this,arguments)};
_.y(W4Y,CN);W4Y.prototype.getAssociations=function(){return[]};var Evk=function(){CN.apply(this,arguments)};
_.y(Evk,CN);Evk.prototype.getAssociations=function(){return[]};var t4F=function(){CN.apply(this,arguments)};
_.y(t4F,CN);
t4F.prototype.getAssociations=function(){var f=[];this.delegate.tracks&&f.push.apply(f,_.yq(this.delegate.tracks));this.delegate.refresh&&f.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&f.push(this.delegate.details);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&f.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.entryCollection&&
f.push(this.delegate.entryCollection);this.delegate.share&&f.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&f.push.apply(f,_.yq((new CzG(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.yq(new Set(f)))};
var CzG=function(){tt.apply(this,arguments)};
_.y(CzG,tt);CzG.prototype.getAssociations=function(){var f=[];this.delegate.creatorEntity&&f.push(this.delegate.creatorEntity);return[].concat(_.yq(new Set(f)))};var y_H=function(){CN.apply(this,arguments)};
_.y(y_H,CN);y_H.prototype.getAssociations=function(){return[]};var d2i=function(){CN.apply(this,arguments)};
_.y(d2i,CN);
d2i.prototype.getAssociations=function(){var f=[];this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&f.push.apply(f,_.yq(this.delegate.artists));this.delegate.audioModeVersion&&f.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&f.push(this.delegate.videoModeVersion);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.details&&f.push(this.delegate.details);this.delegate.albumRelease&&f.push(this.delegate.albumRelease);this.delegate.share&&
f.push(this.delegate.share);this.delegate.libraryEdit&&f.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);this.delegate.lyrics&&f.push(this.delegate.lyrics);return[].concat(_.yq(new Set(f)))};
var NwA=function(){CN.apply(this,arguments)};
_.y(NwA,CN);NwA.prototype.getAssociations=function(){var f=[];this.delegate.parentTrack&&f.push(this.delegate.parentTrack);return[].concat(_.yq(new Set(f)))};
var L4G=function(){CN.apply(this,arguments)};
_.y(L4G,CN);L4G.prototype.getAssociations=function(){var f=[];this.delegate.parentTrack&&f.push(this.delegate.parentTrack);return[].concat(_.yq(new Set(f)))};var rh=new _.Y("musicResponsiveListItemRenderer");var bzh=new _.Y("addToPlaylistEndpoint");var bWG=new _.Y("captionPickerEndpoint");var psH=new _.Y("suggestStats");var jnH=new _.Y("backstageImageUploadEndpoint");var D2G=new _.Y("createBackstagePostDialogEndpoint");_.J_C=new _.Y("createCommentReplyDialogEndpoint");_.zoY=new _.Y("updateCommentDialogEndpoint");_.Twt=new _.Y("updateCommentReplyDialogEndpoint");var HWC=new _.Y("menuEndpoint");var Wkh=new _.Y("modalEndpoint");var ICi=new _.Y("playlistEditorEndpoint");var M4l=new _.Y("copyTextEndpoint");var Pzl,U2t;Pzl=new _.Y("shareEndpoint");U2t=new _.Y("shareEntityEndpoint");_.eok=new _.Y("shareEntityServiceEndpoint");_.eR0=new _.Y("userFeedbackEndpoint");_.$7=new _.Y("watchEndpoint");var OqB=new _.Y("watchPlaylistEndpoint");var Gtt=new _.Y("addUpcomingEventReminderEndpoint");_.pN=new _.Y("getCommentsFromInboxCommand");var Bwk=new _.Y("notificationOptOutEndpoint");var ovC=new _.Y("recordNotificationInteractionsEndpoint");var x2E=new _.Y("removeUpcomingEventReminderEndpoint");var NXn=new _.Y("getDownloadActionCommand");_.SVk=new _.Y("offlineOrchestrationActionCommand");var $2f=function(){CN.apply(this,arguments)};
_.y($2f,CN);$2f.prototype.getAssociations=function(){return[]};var gvE=function(){CN.apply(this,arguments)};
_.y(gvE,CN);gvE.prototype.getAssociations=function(){return[]};var snk=function(){CN.apply(this,arguments)};
_.y(snk,CN);snk.prototype.getAssociations=function(){return[]};var nvC=function(){CN.apply(this,arguments)};
_.y(nvC,CN);nvC.prototype.getAssociations=function(){return[]};var V4t=function(){CN.apply(this,arguments)};
_.y(V4t,CN);V4t.prototype.getAssociations=function(){var f=[];this.delegate.transfer&&f.push(this.delegate.transfer);this.delegate.adsPlaybackData&&f.push.apply(f,_.yq(this.delegate.adsPlaybackData));this.delegate.drmLicense&&f.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&f.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.yq(new Set(f)))};var YVl=function(){CN.apply(this,arguments)};
_.y(YVl,CN);YVl.prototype.getAssociations=function(){return[]};var vvf=function(){CN.apply(this,arguments)};
_.y(vvf,CN);vvf.prototype.getAssociations=function(){var f=[];this.delegate.offlineVideoStreams&&f.push.apply(f,_.yq(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&f.push.apply(f,_.yq(this.delegate.captionTrack));return[].concat(_.yq(new Set(f)))};var iWl=function(){CN.apply(this,arguments)};
_.y(iWl,CN);iWl.prototype.getAssociations=function(){return[]};var r_A=new _.Y("showMoreDrawerCommand");var f2A=new _.Y("updateEngagementPanelContentCommand");var RUf=new _.Y("getPdgBuyFlowCommand");var uSC=new _.Y("liveChatPurchaseMessageEndpoint");var O5C=new _.Y("openSuperStickerBuyFlowCommand");var cVH=new _.Y("updatePdgFeatureEnablementCommand");var XqC=function(){CN.apply(this,arguments)};
_.y(XqC,CN);XqC.prototype.getAssociations=function(){return[]};var hUt=function(){CN.apply(this,arguments)};
_.y(hUt,CN);hUt.prototype.getAssociations=function(){return[]};_.Z5k=new _.Y("pdgCommentChipRenderer");_.l2A=new _.Y("permissionRoleBottomBarRenderer");_.kgI=new _.Y("updatePermissionRoleCommand");var KNC=new _.Y("prefetchWatchCommand");var qQA=new _.Y("updatePlayerErrorMessageCommand");var QB7=new _.Y("toggleCaptionsVisibilityCommand");_.AVI=new _.Y("quickActionsViewModel");var a2C=new _.Y("playerResponse");var FNf=new _.Y("playlistRenderer");_.wqf=new _.Y("playlistVideoListRenderer");_.ji=new _.Y("playlistEditEndpoint");var m_f=new _.Y("createImagePollCommand");var Qzk=new _.Y("createQuizCommand");var WNY=new _.Y("quizRenderer");var EwI=new _.Y("uploadedVideoRenderer");var tHi=new _.Y("decorateMessageEndpoint");var C0f=new _.Y("lpOfferCardOptionViewModel");var yVC=new _.Y("sfvAudioItemPlaybackCommand");var d_F=function(){CN.apply(this,arguments)};
_.y(d_F,CN);d_F.prototype.getAssociations=function(){return[]};_.Dl=new _.Y("reelNonVideoContentEndpoint");_.Ey=new _.Y("reelWatchEndpoint");_.Jt=new _.Y("reelItemRenderer");_.N5k=new _.Y("reelMetapanelViewModel");_.LNk=new _.Y("reelNonVideoContentRenderer");_.b5C=new _.Y("reelPlayerOverlayRenderer");var pqC=new _.Y("shortsLockupViewModel");var jzG=new _.Y("sponsorButtonViewModel");var D_E=new _.Y("reelItemWatchResponse");var JVE=new _.Y("textBadgeRenderer");_.z9=new _.Y("buttonRenderer");_.T9=new _.Y("toggleButtonRenderer");var wkh=new _.Y("switchButtonViewModel");_.zUi=new _.Y("confirmDialogRenderer");var T5A;T5A=new _.Y("menuRenderer");_.H5f=new _.Y("menuFlexibleItemRenderer");var I2G=new _.Y("pollRenderer");_.MHG=new _.Y("backgroundPromoRenderer");var U_f;_.P0C=new _.Y("chipCloudRenderer");U_f=new _.Y("chipCloudChipRenderer");var eUY=new _.Y("dropdownRenderer");var GgF=new _.Y("gridVideoRenderer");_.B5l=new _.Y("itemSectionRenderer");_.owA=new _.Y("messageRenderer");var x_k=new _.Y("sortFilterHeaderRenderer");_.HY=new _.Y("videoRenderer");var SQF=new _.Y("resolveUrlCommandMetadata");var $_F=function(){CN.apply(this,arguments)};
_.y($_F,CN);$_F.prototype.getAssociations=function(){return[]};_.gwY=new _.Y("getAnswerCommand");_.m6=new _.Y("searchEndpoint");var szl=new _.Y("genAiRichTextViewModel");var dwh=new _.Y("overviewAnswerViewModel");var iJk=new _.Y("addToPlaylistServiceEndpoint");var rOi=new _.Y("clearSearchHistoryEndpoint");var fVF=new _.Y("clearWatchHistoryEndpoint");var Rnf=new _.Y("webSerializedServiceEndpointExtension");_.uUt=new _.Y("createCommentEndpoint");var OuH=new _.Y("createCommentReplyEndpoint");var cLt=new _.Y("performCommentActionEndpoint");var XmC=new _.Y("updateCommentEndpoint");var hnY=new _.Y("updateCommentReplyEndpoint");_.IY=new _.Y("createPlaylistServiceEndpoint");var ZuC=new _.Y("deletePlaylistEndpoint");var lVE=new _.Y("deleteVideoEndpoint");var LTq=new _.Y("getReportFormEndpoint");var khl=new _.Y("modifyChannelNotificationPreferenceEndpoint");var BEq;_.Kr=new _.Y("offlinePlaylistEndpoint");BEq={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 o12;_.kO=new _.Y("offlineVideoEndpoint");o12={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 KJf=new _.Y("pingingEndpoint");_.qTl=new _.Y("selectActiveIdentityEndpoint");var ALk=new _.Y("setSettingEndpoint");var B8X=new _.Y("undoFeedbackEndpoint");var aVF=new _.Y("unsubscribeEndpoint");_.FJE=new _.Y("updatedMetadataEndpoint");var wmH=function(){CN.apply(this,arguments)};
_.y(wmH,CN);wmH.prototype.getAssociations=function(){return[]};_.mjC=new _.Y("updateLocalAppSettingCommand");var QUG=new _.Y("saveImageToDeviceEndpoint");var WJl=new _.Y("shareImageCommand");var EHi=new _.Y("sharingProviderDataCommand");var tvf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(tvf,_.e5);var CLt=[0,_.xT,-1];tvf.prototype.JSC$10269_serializeBinary=Ren(CLt);var yLk=_.fj(CLt);var djH=new _.Y("userMentionSuggestionRenderer");var NmC=new _.Y("liveChatTunnelCommand");var LJF=new _.Y("showSponsorshipsGiftOfferDialogCommand");var buA=new _.Y("sponsorshipsScrollableShelfViewModel");var pmi=new _.Y("updateUpcomingEventReminderButtonStateCommand");var jUY=new _.Y("upcomingEventReminderButtonStateRenderer");var DjC=new _.Y("subscribeEndpoint");var JLE=new _.Y("registerTasksCommand");var znC=new _.Y("showDialogCommand");_.Fk=new _.Y("showSheetCommand");var TmH=new _.Y("showSnackbarCommand");var HuI=function(){CN.apply(this,arguments)};
_.y(HuI,CN);HuI.prototype.getAssociations=function(){return[]};var IVE=function(){CN.apply(this,arguments)};
_.y(IVE,CN);IVE.prototype.getAssociations=function(){return[]};_.SP=new _.Y("avatarViewModel");var Mvl=new _.Y("badgeViewModel");_.dW=new _.Y("buttonViewModel");_.Mi=new _.Y("chipViewModel");var LrD=new _.Y("collectionThumbnailViewModel");var PLH=new _.Y("contentPreviewImageViewModel");var UjE=new _.Y("decoratedAvatarViewModel");var XSn=new _.Y("downloadButtonViewModel");_.QJe=new _.Y("engagementBarViewModel");_.enf=new _.Y("imageBannerViewModel");var y37=new _.Y("lockupContentMetadataRowExtension");var Ght=new _.Y("lockupMetadataViewModel");_.BmA=new _.Y("lockupViewModel");var oHG=new _.Y("avatarStackViewModel");var xjA=function(){CN.apply(this,arguments)};
_.y(xjA,CN);xjA.prototype.getAssociations=function(){return[]};_.STH=new _.Y("pageHeaderViewModel");var $jG=new _.Y("snackbarViewModel");var gHC=new _.Y("thumbnailHoverOverlayToggleActionsViewModel");_.Np=new _.Y("toggleButtonViewModel");var sUl=function(){CN.apply(this,arguments)};
_.y(sUl,CN);sUl.prototype.getAssociations=function(){return[]};_.WV7=new _.Y("votingViewModel");var nHf=new _.Y("sectionHeaderViewModel");var VvC=new _.Y("notifyDropdownOptionSelectedCommand");var Hx7=new _.Y("listViewModel");_.wW=new _.Y("listItemViewModel");var YTY=new _.Y("dialogHeaderViewModel");var vHI=function(){CN.apply(this,arguments)};
_.y(vHI,CN);vHI.prototype.getAssociations=function(){return[]};var iuI=function(){CN.apply(this,arguments)};
_.y(iuI,CN);iuI.prototype.getAssociations=function(){return[]};var rLE=function(){CN.apply(this,arguments)};
_.y(rLE,CN);rLE.prototype.getAssociations=function(){return[]};_.flA=new _.Y("transcriptSubmitCaptionCorrectionCommand");var ROk=function(){CN.apply(this,arguments)};
_.y(ROk,CN);ROk.prototype.getAssociations=function(){return[]};var hY0=new _.Y("unpluggedStringRunImage");var uuI=new _.Y("tabViewModel");var ONY=new _.Y("tabbedViewModel");var ctG=function(){CN.apply(this,arguments)};
_.y(ctG,CN);ctG.prototype.getAssociations=function(){return[]};_.XYi=new _.Y("updateDescriptionAction");var hOC=new _.Y("updateToggleButtonTextAction");_.ZNY=new _.Y("autoplaySwitchButtonRenderer");var Ta;_.llH=new _.Y("multiMarkersPlayerBarRenderer");Ta=new _.Y("chapterRenderer");var k9f=new _.Y("heatMarkerRenderer");var rQt=new _.Y("heatmapRenderer");var KZE=new _.Y("smartSkipPlayerScrimOverlayRenderer");var qdk=new _.Y("timedMarkerDecorationRenderer");var XaP=new _.Y("postWebToNativeMessageCommand");var AtF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(AtF,_.e5);var alf=_.rl(AtF,[0,_.xT,-2]);var FZk=new _.Y("whitelistEditEndpoint");var wYG=new _.Y("clearUrlParamCommand");var mik=new _.Y("commerceActionCommand");_.QYF=new _.Y("getPaymentInstrumentsParamsCommand");var WZF=new _.Y("getPaymentsClientTokenCommand");var EhF=new _.Y("googlePaymentBillingCommand");var til=new _.Y("googlePaymentPurchaseManagerCommand");_.CxF=new _.Y("logGtmCommand");var yti=new _.Y("updateCardItemOnClickCommand");_.diY=new _.Y("ypcPauseSubscriptionCommand");_.NSF=new _.Y("ypcResumeSubscriptionCommand");var LZI=function(){CN.apply(this,arguments)};
_.y(LZI,CN);LZI.prototype.getAssociations=function(){return[]};var bNY=function(){CN.apply(this,arguments)};
_.y(bNY,CN);bNY.prototype.getAssociations=function(){return[]};var pYG=function(){CN.apply(this,arguments)};
_.y(pYG,CN);pYG.prototype.getAssociations=function(){return[]};var jYk=function(){CN.apply(this,arguments)};
_.y(jYk,CN);jYk.prototype.getAssociations=function(){return[]};var Dif=function(){CN.apply(this,arguments)};
_.y(Dif,CN);Dif.prototype.getAssociations=function(){return[]};var cRq=new _.Y("ypcOffersEndpoint");var JtA=new _.Y("cardItemRenderer"),zOE=new _.Y("cardItemTextRenderer");var TSE=new _.Y("commerceCartItemQuantityPickerRenderer");var HNG=new _.Y("linkCardRenderer");var iKt=new _.Y("quantityIncrementerButtonViewModel");var IlA=new _.Y("quantityIncrementerViewModel");var Mit=new _.Y("themedImageViewModel");_.Pxl=new _.Y("ypcCancelRecurrenceEndpoint");var UiE=new _.Y("ypcCompleteTransactionEndpoint");_.eOH=new _.Y("ypcGetCartEndpoint");_.OY=new _.Y("ypcGetOffersEndpoint");_.PY=new _.Y("ypcHandleTransactionEndpoint");var G9E=new _.Y("ypcLogWalletAnalyticDataEndpoint");_.BSk=new _.Y("ypcRedeemCodeEndpoint");var ohI=new _.Y("ypcUpdateFopEndpoint");rm(iL(1),YH(4));Qi5((new MessageChannel).port2);var xiF=function(){this.register=new Map},DZ7=function(f,R,u){f=f+"_"+R;
Ud.register.has(f)?u=Ud.register.get(f):(u=u(),Ud.register.set(f,u));return u},SdH=function(f){f=_.Z(f.register.values());
for(var R=f.next();!R.done;R=f.next())_.Ad(R.value,"ABORTED")};
xiF.prototype.clear=function(){SdH(this);this.register.clear()};
var Ud=new xiF;var k02=Date.now().toString();var qFX,$if=_.Oe.ytLoggingDocDocumentNonce_;$if||($if=jd(16),_.V4("ytLoggingDocDocumentNonce_",$if));qFX=$if;var EIe={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 ghG;ghG=1;_.Dv=function(f){this.veData=f};
_.t4=function(f){return new _.Dv({trackingParams:f})};
_.dx=function(f,R,u,O,c,h){var l=ghG++;return new _.Dv({veType:f,veCounter:l,elementIndex:u,dataElement:R,youtubeData:O,jspbYoutubeData:c,loggingDirectives:h})};
_.X=_.Dv.prototype;
_.X.getAsJson=function(){var f={};this.veData.trackingParams!==void 0?f.trackingParams=this.veData.trackingParams:(f.veType=this.veData.veType,this.veData.veCounter!==void 0&&(f.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(f.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(f.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(f.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(f.isCounterfactual=!0);
return f};
_.X.getAsJspb=function(){var f=new CZi;this.veData.trackingParams!==void 0?f.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.zR(f,2,this.veData.veType),this.veData.veCounter!==void 0&&_.zR(f,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.zR(f,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.X$(f,5,!0));if(this.veData.dataElement!==void 0){var R=this.veData.dataElement.getAsJspb();_.OO(f,7,R)}this.veData.youtubeData!==void 0&&_.OO(f,8,this.veData.jspbYoutubeData);
return f};
_.X.toString=function(){return JSON.stringify(this.getAsJson())};
_.X.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.X.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.V4("yt_logging_screen.getRootVeType",mZq);_.V4("yt_logging_screen.getCurrentCsn",_.z4);_.V4("yt_logging_screen.getCttAuthInfo",T4);_.V4("yt_logging_screen.setCurrentScreen",_.Hc);var sYY=function(){this.events=new Map},nhY=function(f){var R=[];
f=_.Z(f.events.values());for(var u=f.next();!u.done;u=f.next())R.push(u.value);return R};
sYY.prototype.clear=function(){this.events.clear()};var YdE=function(){this.logTransport=new ViI;this.loggedEventRegister=new sYY;this.unloggedEventRegister=new sYY;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10326_flushTimer=new _.R$(this.flushInterval);this.JSC$10326_flushTimer.listen("tick",this.flush,!1,this)};
YdE.prototype.flush=function(){if(this.eventsCount){var f={loggedEvents:nhY(this.loggedEventRegister),unloggedEvents:nhY(this.unloggedEventRegister)};if(_.E("export_player_version_to_ytconfig")){var R;(R=_.Tf("PLAYER_CLIENT_VERSION"))?(R=R.split("-")[0].replace(/\./g,""),R=isNaN(Number(R))?"0":R):R="";var u=_.Tf("PLAYER_CLIENT_VERSION");if(u){u=u.split("-");var O="";u.length>1&&(O=u[u.length-1]);u=lqh(O.startsWith("canary_experiment")?"canary":O.startsWith("canary_control")?"control":"none")}else u=
"CLIENT_CANARY_STATE_UNKNOWN";f.dimensions={playerClientVersion:R,playerCanaryState:u}}this.logTransport.flush(f);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10326_flushTimer.enabled&&this.JSC$10326_flushTimer.stop()}};
var vhI=function(f){ei==null&&(ei=new YdE);var R=ei;var u=R.loggedEventRegister;f.dimensions=f.dimensions||{};f.dimensions.csn=_.z4()||"";var O=yoh(f.dimensions).join(";");if(f.records!=null)if(u.events.has(O)){var c;(c=u.events.get(O).records)==null||c.push.apply(c,_.yq(f.records))}else u.events.set(O,f);R.JSC$10326_flushTimer.enabled||R.JSC$10326_flushTimer.start();R.eventsCount++;R.eventsCount>=100&&R.flush()};var ViI=function(){};
ViI.prototype.flush=function(f,R){_.E("enable_client_sli_logging")&&_.Jr("sliEventBatch",f,{sendIsolatedPayload:!!R})};var ei;var rtY;rtY=function(f){var R=iNf;f=f===void 0?{}:f;R=R.name;var u=jfe("SUCCESS");vhI({dimensions:f,records:[{name:R,state:"SLI_STATE_END",status:u}]})};
_.JoD=function(f,R,u,O){this.name=f;this.sliId=R;this.timeoutMs=u;this.statusOnTimeout=O;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.JoD.prototype.getId=function(){return this.sliId};
_.qS=function(f,R){R=R===void 0?{}:R;f.ongoing||(f.ongoing=!0,f.dimensions=R,f.logSliId=vsA(),vhI({dimensions:f.dimensions,records:[{name:f.name,state:"SLI_STATE_START",sliId:f.logSliId}]}),f.timeoutMs>0&&(f.timeoutHandle=setTimeout(function(){_.Ad(f,f.statusOnTimeout)},f.timeoutMs)))};
_.Ad=function(f,R){f.ongoing&&(f.timeoutMs>0&&clearTimeout(f.timeoutHandle),f.ongoing=!1,R={dimensions:f.dimensions,records:[{name:f.name,status:jfe(R),state:"SLI_STATE_END",sliId:f.logSliId}]},Ud.register.delete(f.name+"_"+f.sliId),vhI(R))};var iNf=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var fnA=function(){CN.apply(this,arguments)};
_.y(fnA,CN);fnA.prototype.getAssociations=function(){return[]};var sOl=new _.Y("highlightTextDecoratorColorMapExtension");var $d5=new _.Y("styleRunColorMapExtension");var UZ7=_.Sg(["data-"]),B4t={};var xZ2={};var G9=function(f){this.wrappedPromise_=f===void 0?null:f;this.state_=0;this.JSC$10358_value_=null};
G9.prototype.then=function(f,R,u){return this.wrappedPromise_?this.wrappedPromise_.then(f,R,u):this.state_===1&&f?(f=f.call(u,this.JSC$10358_value_))&&typeof f.then==="function"?f:_.BY(f):this.state_===2&&R?(f=R.call(u,this.JSC$10358_value_))&&typeof f.then==="function"?f:_.RTi(f):this};
G9.prototype.getValue=function(){return this.JSC$10358_value_};
G9.prototype.isRejected=function(){return this.state_==2};
CrI(G9);_.RTi=function(f){var R=new G9;f=f===void 0?null:f;R.state_=2;R.JSC$10358_value_=f===void 0?null:f;return R};
_.BY=function(f){var R=new G9;f=f===void 0?null:f;R.state_=1;R.JSC$10358_value_=f===void 0?null:f;return R};var c_0="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var ulk=["load","abort","error"],oY=function(f,R,u){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10378_maxAspectRatio_=f;this.disableAnimation_=R===void 0?!1:R;this.disableExifRotation_=u===void 0?!1:u;this.JSC$10378_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10378_reject_=this.resolve_=null};
oY.prototype.transform=function(f){var R=this;this.mime_=f.type;of(QpY(f),this.dataUrlRead_,this.readError_,this);of(m5A(f.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(u,O){R.resolve_=u;R.JSC$10378_reject_=O})};
oY.prototype.dataUrlRead_=function(f){this.dataUrl_=f;this.angle_!=null&&Oif(this)};
oY.prototype.exifRead_=function(f){if(this.disableExifRotation_)this.angle_=0;else{a:if(f=new DataView(f),f.byteLength<2||f.getUint16(0)!==65496)f=-2;else{for(var R=2,u=f.byteLength;R<u;){var O=f.getUint16(R),c=f.getUint16(R+2);if(O===65505){R+=4;O=f.getUint32(R);c=f.getUint16(R+4);if(O!==1165519206||c!==0)break;R+=6;O=f.getUint16(R)===18761;R+=f.getUint32(R+4,O);c=f.getUint16(R,O);R+=2;for(var h=0;h<c;h++){if(f.getUint16(R,O)===274){R+=8;f=f.getUint16(R,O);break a}R+=12}}else if(O>>8!==255)break;
else R+=c+2}f=-1}switch(f){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&&Oif(this)};
oY.prototype.readError_=function(){this.JSC$10378_reject_()};
var Oif=function(f){W7(f.JSC$10378_image_,ulk,f.completeTransform_,!1,f);f.JSC$10378_image_.src=_.EO(f.dataUrl_).toString();f.JSC$10378_image_.src!=Wz.toString()&&f.JSC$10378_image_.src.substr(0,11)==="data:image/"||f.JSC$10378_reject_()};
oY.prototype.completeTransform_=function(){if(this.JSC$10378_image_.src!=Wz.toString()){var f=_.EO(this.dataUrl_),R=this.JSC$10378_image_.naturalHeight?this.JSC$10378_image_.naturalWidth/this.JSC$10378_image_.naturalHeight:null;this.invalidAspectRatio=R>this.JSC$10378_maxAspectRatio_||R<1/this.JSC$10378_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var u=this.JSC$10378_image_.naturalWidth,O=this.JSC$10378_image_.naturalHeight,c=R=0,h=this.JSC$10378_image_.naturalHeight?this.JSC$10378_image_.naturalWidth/
this.JSC$10378_image_.naturalHeight:null;h>this.JSC$10378_maxAspectRatio_?(u=this.JSC$10378_maxAspectRatio_*O,R=(u-this.JSC$10378_image_.naturalWidth)/2,this.cropped=!0):h<1/this.JSC$10378_maxAspectRatio_?(O=this.JSC$10378_maxAspectRatio_*u,c=(O-this.JSC$10378_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)h=u,u=O,O=h,h=R,R=c,c=h;switch(this.angle_){case 90:c-=u;break;case 180:R-=u;c-=O;break;case 270:R-=
O}this.cropped||this.angle_%360!==0?(f=document.createElement("canvas"),f.width=u||1,f.height=O||1,this.JSC$10378_image_.naturalWidth&&this.JSC$10378_image_.naturalHeight&&(u=f.getContext("2d"),u.rotate(Math.PI/180*this.angle_),u.drawImage(this.JSC$10378_image_,R,c,this.JSC$10378_image_.naturalWidth,this.JSC$10378_image_.naturalHeight)),this.transformedData=_.EO(f.toDataURL(this.mime_))):this.transformedData=f}else this.transformedData=f;this.resolve_(this)}};var xh=function(f,R){_.qZ.call(this,f);this.value=R};
_.y(xh,_.qZ);
var Si=function(f,R,u,O,c,h,l){l=l===void 0?!1:l;_.mq.call(this);var K=this;this.JSC$10383_url_=f;this.channelId_=R;this.maxFileSizeMb_=u;this.JSC$10383_maxAspectRatio_=O;this.dropZoneEl_=c;this.rejectInvalidAspectRatio_=l;this.selectButtonEl_=h;this.JSC$10383_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Zl(this.dropZoneEl_);this.selectOverlay_=new lx(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10383_image_=this.transfer_=null;this.handler_=new _.uE(this);_.qG(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(h,"click",function(){K.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.y(Si,_.mq);Si.prototype.disposeInternal=function(){for(var f=this.selectButtonEl_.nextSibling;f&&f.parentNode&&f.tagName=="INPUT";)f.parentNode.removeChild(f),f=this.selectButtonEl_.nextSibling;this.cancel();_.mq.prototype.disposeInternal.call(this)};
Si.prototype.uploadPromise=function(){if(this.JSC$10383_image_==null)return null;this.uploadPromise_||ciY(this);return this.uploadPromise_};
Si.prototype.cancel=function(){X1t(this);this.JSC$10383_image_=null};
var X1t=function(f){f.transfer_&&f.transfer_.cancel();f.transfer_=null;f.uploadPromise_=null;f.resolve_=null;f.JSC$10383_reject_=null},ciY=function(f){X1t(f);
f.transfer_=_.H9k(f.JSC$10383_url_,{"X-YouTube-ChannelId":f.channelId_},f.JSC$10383_image_);f.handler_.listenOnce(f.transfer_,"l",f.JSC$10385_onUploadComplete_);f.handler_.listenOnce(f.transfer_,"n",f.onUploadError_);f.transfer_.run();f.uploadPromise_=new Promise(function(R,u){f.resolve_=R;f.JSC$10383_reject_=u})};
_.X=Si.prototype;_.X.onChange_=function(f){f.files.length&&(this.JSC$10383_image_=f.files[0],this.JSC$10383_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10383_image_=null,this.dispatchEvent(new xh("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(ciY(this),(new oY(this.JSC$10383_maxAspectRatio_)).transform(this.JSC$10383_image_).then((0,_.NG)(this.onPreview_,this),(0,_.NG)(this.onPreviewError_,this))))};
_.X.onPreview_=function(f){if(f.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10383_image_=null),this.dispatchEvent(new xh("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;f.cropped&&this.dispatchEvent(new xh("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new xh("yt.comments.ImageUploadOverlay.CHANGE_EVENT",f.transformedData))};
_.X.onPreviewError_=function(){this.JSC$10383_image_=null;this.dispatchEvent(new xh("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.X.onHover_=function(f){f.stopPropagation();f.preventDefault();if(f.type==="dragover")f=!0;else if(f.type==="dragleave")f=!1;else return;this.dispatchEvent(new xh("yt.comments.ImageUploadOverlay.HOVER_EVENT",f))};
_.X.JSC$10385_onUploadComplete_=function(){var f=(0,_.g_i)(this.transfer_.getResponseText());this.resolve_(f.encryptedBlobId)};
_.X.onUploadError_=function(){this.JSC$10383_reject_();X1t(this)};var hTl=function(f){f=f||{};var R={},u={};this.url=f.url||"";this.args=f.args||_.dq.clone(R);this.assets=f.assets||{};this.attrs=f.attrs||_.dq.clone(u);this.fallback=f.fallback||null;this.fallbackMessage=f.fallbackMessage||null;this.html5=!!f.html5;this.disable=f.disable||{};this.loaded=!!f.loaded;this.messages=f.messages||{}};
hTl.prototype.clone=function(){var f=new hTl,R;for(R in this)if(this.hasOwnProperty(R)){var u=this[R];f[R]=_.F5(u)=="object"?_.dq.clone(u):u}return f};var Zif,lnC,kCf,iX,q1Y,AiH,ant,FuF,w1l,mki,QCt,WuG,EaC,toG,C5H,yiC,dkC,NtF,Luk,biY,p1t,jCi,DkG,JiG,zTA,Ttf,HiE,MoF,P5f,aJe,UkH,eTi,GCC,Btt,oaC,xkC,S1F,$kI,gaC,sCi,naA,Vol,Y1Y,vaC,iif,riI,fXC,R7Y,usl,OkY,cCl,XTC,h7C,ZkI,lXH,kMF,$h,KfF,qqG,ACY,aXk,Ffk,wTf,m7k,Qri,Wfl,Edf,tGC,CUC,yCi,d7f,NjC,Lff,bkf,pTi,qR7,jrC,D7t,JCi,z7Y,Tjk,Hkk,IXk,MGl,PUf,U7l,e7I,GMC,BjY,odG,x7C,SqF,$7t,gdC,srC,ndF,VGi,YqA,vdI,ikG,rCl;Zif=["account/accounts_list"];lnC=["acknowledge_channel_tou_strike"];kCf=["notification/add_upcoming_event_reminder"];
_.KuA=["att/get"];iX=["browse","music/browse","unplugged/browse"];q1Y=["channel/claim_legacy_youtube_channel"];AiH=["history/clear_search_history"];ant=["history/clear_watch_history"];FuF=["comment/perform_comment_action"];w1l=["comment/get_comment_replies"];mki=["ypc/commerce_action"];QCt=["backstage/create_post"];WuG=["live/create_broadcast"];EaC=["channel/create_channel"];toG=["comment/create_comment_reply"];C5H=["comment/create_comment"];yiC=["live_chat/create_poll"];dkC=["playlist/create"];
NtF=["decorate_message"];Luk=["live_chat/delete_message"];biY=["playlist/delete"];p1t=["video/delete"];jCi=["like/dislike"];DkG=["dismissal/dismiss"];JiG=["flag/flag"];zTA=["flow"];Ttf=["account/account_menu"];HiE=["playlist/get_add_to_playlist"];MoF=["get_answer"];P5f=["channel/get_channel_creation_form"];aJe=["offline/get_download_action"];UkH=["kids/get_kids_blocklist_picker"];eTi=["live_chat/get_item_context_menu"];GCC=["live_chat/get_live_chat_message_buy_flow"];Btt=["live_chat/get_live_chat_replay"];
oaC=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];xkC=["live_chat/get_live_chat_super_sticker_buy_flow"];S1F=["notification/get_notification_menu"];$kI=["playlist/get_settings_editor"];gaC=["backstage/get_post_video_preview"];sCi=["account/get_profile_card"];naA=["share/get_share_panel"];Vol=["share/get_sharing_provider_data"];Y1Y=["get_survey"];vaC=["notification/get_unseen_count"];iif=["get_user_mention_suggestions"];riI=["get_watch"];fXC=["guide"];
R7Y=["feedback"];usl=["kids/update_blacklist"];OkY=["like/like"];cCl=["live_chat/live_chat_action"];XTC=["live_chat/manage_user"];h7C=["video_manager/metadata_update"];ZkI=["live_chat/moderate"];lXH=["notification/modify_channel_preference"];kMF=["notification/opt_out"];$h=["get_panel","get_posts_by_host_panel"];KfF=["player"];qqG=["browse/edit_playlist"];ACY=["notification/record_interactions"];aXk=["reel/reel_item_watch"];Ffk=["reel/reel_watch_sequence"];wTf=["like/removelike"];m7k=["notification/remove_upcoming_event_reminder"];
Qri=["flag/get_form"];Wfl=["miniapp/report_value"];Edf=["navigation/resolve_url"];tGC=["channel/reveal_business_email"];CUC=["in_video/search"];yCi=["search","sfv/search","unplugged/search"];d7f=["live_chat/send_message"];NjC=["live_chat/send_live_chat_vote"];Lff=["account/set_setting"];bkf=["submit_caption_correction"];pTi=["subscription/subscribe"];qR7=["get_transcript"];jrC=["resolve_location","unplugged/resolve_location"];D7t=["subscription/unsubscribe"];JCi=["backstage/update_post"];z7Y=["channel_edit/update_channel_page_settings"];
Tjk=["comment/update_comment_reply"];Hkk=["comment/update_comment"];IXk=["comment/update_comments_settings"];MGl=["creator/update_creator_channel"];PUf=["pdg/update_enablement"];U7l=["updated_metadata"];e7I=["channel_edit/validate_channel_handle"];GMC=["verify_age"];BjY=["next","unplugged/watch_next"];odG=["whitelist/edit"];x7C=["ypc/cancel_recurrence"];SqF=["ypc/complete_transaction"];$7t=["ypc/get_cart"];gdC=["ypc/get_fix_instrument_params"];srC=["ypc/get_offers"];ndF=["ypc/get_payment_instruments_params"];
VGi=["ypc/handle_transaction"];YqA=["ypc/log_payment_server_analytics"];vdI=["ypc/pause_subscription"];ikG=["ypc/redeem_code"];rCl=["ypc/resume_subscription"];var fsE=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,262800,262799,262802,262798,82039];var ap=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.V4("yt.msgs_",ap);var gS=new _.Vi("ACTION_ROUTER_TOKEN");_.sd=function(){this.autonavState_=_.E("kevlar_is_pupi_enabled")?2:m2X()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.sd.prototype.getState=function(){return this.autonavState_};
_.sd.prototype.pause=function(f){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=f):this.autonavState_==1&&(this.disabledAutonavPauseReason_=f)};
_.sd.prototype.setState=function(f,R,u){R&&(this.autoplayChangedByUser=!0);R=this.autonavState_===3||f===3;this.autonavState_!=f&&(this.autonavState_=f,f!=3&&_.Qnn(f==2),f=_.E("kevlar_is_pupi_enabled")?u||R:!0,_.xN.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,f,u))};
_.sd.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.ik(_.sd);var nN=function(){this.hasRun=!1};var VE={},J_5=(VE.auto_search="LATENCY_ACTION_AUTO_SEARCH",VE.ad_to_ad="LATENCY_ACTION_AD_TO_AD",VE.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",VE.app_startup="LATENCY_ACTION_APP_STARTUP",VE.browse="LATENCY_ACTION_BROWSE",VE.cast_splash="LATENCY_ACTION_CAST_SPLASH",VE.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",VE.channels="LATENCY_ACTION_CHANNELS",VE.chips="LATENCY_ACTION_CHIPS",VE.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",VE.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
VE.editor="LATENCY_ACTION_EDITOR",VE.embed="LATENCY_ACTION_EMBED",VE.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",VE.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",VE.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",VE.explore="LATENCY_ACTION_EXPLORE",VE.favorites="LATENCY_ACTION_FAVORITES",VE.home="LATENCY_ACTION_HOME",VE.inboarding="LATENCY_ACTION_INBOARDING",VE.landing="LATENCY_ACTION_LANDING",VE.library="LATENCY_ACTION_LIBRARY",VE.live=
"LATENCY_ACTION_LIVE",VE.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",VE.management="LATENCY_ACTION_MANAGEMENT",VE.mini_app="LATENCY_ACTION_MINI_APP_PLAY",VE.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",VE.onboarding="LATENCY_ACTION_ONBOARDING",VE.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",VE.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",VE.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",VE.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
VE.prebuffer="LATENCY_ACTION_PREBUFFER",VE.prefetch="LATENCY_ACTION_PREFETCH",VE.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",VE.profile_switcher="LATENCY_ACTION_LOGIN",VE.projects="LATENCY_ACTION_PROJECTS",VE.reel_watch="LATENCY_ACTION_REEL_WATCH",VE.results="LATENCY_ACTION_RESULTS",VE.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",VE.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",VE.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",VE.review="LATENCY_ACTION_REVIEW",VE.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",VE.search_ui="LATENCY_ACTION_SEARCH_UI",VE.search_suggest="LATENCY_ACTION_SUGGEST",VE.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",VE.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",VE.seek="LATENCY_ACTION_PLAYER_SEEK",VE.settings="LATENCY_ACTION_SETTINGS",VE.store="LATENCY_ACTION_STORE",VE.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",VE.tenx="LATENCY_ACTION_TENX",VE.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",VE.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
VE.watch="LATENCY_ACTION_WATCH",VE.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",VE["watch,watch7"]="LATENCY_ACTION_WATCH",VE["watch,watch7_html5"]="LATENCY_ACTION_WATCH",VE["watch,watch7ad"]="LATENCY_ACTION_WATCH",VE["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",VE.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",VE.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",VE.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",VE.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",VE.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",VE.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",VE.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",VE.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",VE);var YVP=function(f,R){EQ.call(this,1,arguments);this.timer=R};
_.y(YVP,EQ);var V4X=new KBl("aft-recorded",YVP);var ICn=_.Oe.ytLoggingGelSequenceIdObj_||{};_.V4("ytLoggingGelSequenceIdObj_",ICn);var Yh=_.Oe.ytLoggingLatencyUsageStats_||{};_.V4("ytLoggingLatencyUsageStats_",Yh);var vY=function(){this.cleanupJob=0},U2X=function(){vY.instance||(vY.instance=new vY);
return vY.instance};
_.X=vY.prototype;_.X.baseline=function(f,R,u){ix(this,"baseline_"+f)||_.Jr("latencyActionBaselined",{clientActionNonce:f},{timestamp:R,cttAuthInfo:u})};
_.X.tick=function(f,R,u,O){ix(this,"tick_"+f+"_"+R)||_.Jr("latencyActionTicked",{tickName:f,clientActionNonce:R},{timestamp:u,cttAuthInfo:O})};
_.X.info=function(f,R,u){var O=Object.keys(f).join("");ix(this,"info_"+O+"_"+R)||(f=Object.assign({},f),f.clientActionNonce=R,_.Jr("latencyActionInfo",f,{cttAuthInfo:u}))};
_.X.jspbInfo=function(f,R,u){for(var O="",c=0;c<Ov(f).length;c++)Ov(f)[c]!==void 0&&(O=c===0?O.concat(""+c):O.concat("_"+c));ix(this,"info_"+O+"_"+R)||(_.FH(f,2,R),R={cttAuthInfo:u},u=_.E("jspb_sparse_encoded_pivot")?new yL([{}]):new yL,_.cz(u,7,POC,f),M4P("latencyActionInfo",u,R))};
_.X.span=function(f,R,u){var O=Object.keys(f).join("");ix(this,"span_"+O+"_"+R)||(f.clientActionNonce=R,_.Jr("latencyActionSpan",f,{cttAuthInfo:u}))};
var ix=function(f,R){Yh[R]=Yh[R]||{count:0};var u=Yh[R];u.count++;u.time=(0,_.iZ)();f.cleanupJob||(f.cleanupJob=_.dJ(_.JA,function(){var O=(0,_.iZ)(),c;for(c in Yh)Yh[c]&&O-Yh[c].time>6E4&&delete Yh[c];f&&(f.cleanupJob=0)},5E3));
return u.count>5?(u.count===6&&Math.random()*1E5<1&&(u=new _.ts("CSI data exceeded logging limit with key",R.split("_")),R.indexOf("plev")>=0||_.Ih(u)),!0):!1};var RVl,u7C;RVl=window;u7C=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.tH=RVl.performance||RVl.mozPerformance||RVl.msPerformance||RVl.webkitPerformance||new u7C;var nv5=!1,GtX=!1,vvn=(0,_.NG)(_.tH.clearResourceTimings||_.tH.webkitClearResourceTimings||_.tH.mozClearResourceTimings||_.tH.msClearResourceTimings||_.tH.oClearResourceTimings||_.Fe,_.tH);var Oqf=window;Oqf.ytcsi&&(Oqf.ytcsi.infoGel=_.ja,Oqf.ytcsi.tick=_.JH);var kgq=function(f){EQ.call(this,1,arguments);this.csn=f};
_.y(kgq,EQ);var wW2=new KBl("screen-created",kgq),LN7=[],l22=N57,b5h=0,M5=new Map,KNh=new Map,qQ2=new Map;var zS=Symbol("tf"),sJ=new WeakMap;var rS=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Q0=function(){rS.instance||(rS.instance=new rS);
return rS.instance};
_.X=rS.prototype;_.X.setClient=function(f){this.client=f};
_.X.JSC$10464_newScreen=function(){this.clear();this.csn=_.z4()};
_.X.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.X.reportShown=function(f,R,u){var O=this.JSC$10464_getTrackingParams(f),c=f.visualElement?f.visualElement:O;R=this.shownElements.has(c);var h=this.visibleState.get(c);this.shownElements.add(c);this.visibleState.set(c,!0);f.impressionLog&&!R&&f.impressionLog();if(O||f.visualElement)if(u=ceI(this,f,u))if(c=XdC(this,f),fi(this,f)||c){O=f.visualElement?f.visualElement:_.t4(O);var l=f.interactionLoggingClientData;c||R?fi(this,f)&4?h||Ewq(this.client,u,O,l):fi(this,f)&1&&!R&&m_n(this.client,u,O,l):m_n(this.client,
u,O,l)}};
_.X.reportHidden=function(f,R,u){var O=this.JSC$10464_getTrackingParams(f),c=f.visualElement?f.visualElement:O;R=this.hiddenElements.has(c);var h=this.visibleState.get(c);this.hiddenElements.add(c);this.visibleState.set(c,!1);if(h===!1)return!0;if(!O&&!f.visualElement)return!1;u=ceI(this,f,u);if(!u||!fi(this,f)&&XdC(this,f))return!1;O=f.visualElement?f.visualElement:_.t4(O);fi(this,f)&8?tHn(this.client,u,O):fi(this,f)&2&&!R&&(f=this.client,R=Ip({cttAuthInfo:T4(u)||void 0},u),O={csn:u,ve:O.getAsJson(),
eventType:2},u==="UNDEFINED_CSN"?UJ("visualElementHidden",R,O):f?jV("visualElementHidden",O,f,R):_.Jr("visualElementHidden",O,R));return!0};
_.X.JSC$10464_getTrackingParams=function(f){var R=this.getData(f),u,O;if(_.E("il_use_view_model_logging_context")&&(R==null?0:(u=R.context)==null?0:(O=u.loggingContext)==null?0:O.loggingDirectives))return R.context.loggingContext.loggingDirectives.trackingParams||"";var c,h;if(R==null?0:(c=R.rendererContext)==null?0:(h=c.loggingContext)==null?0:h.loggingDirectives)return R.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(R==null?0:R.loggingDirectives)return R.loggingDirectives.trackingParams||
"";var l;return((l=f.veContainer)==null?0:l.trackingParams)?f.veContainer.trackingParams:(R==null?void 0:R.trackingParams)||""};
_.X.JSC$10464_elementShouldLogGesture=function(f,R){f=this.getData(f);return!!((Math.floor(Number(f&&f.loggingDirectives&&f.loggingDirectives.gestures&&f.loggingDirectives.gestures.types||""))||0)&R)};
_.X.JSC$10464_getNearestParentVe=function(f){var R=this.JSC$10464_getTrackingParams(f);return f.visualElement?f.visualElement:R?_.t4(R):f.parentElement?this.JSC$10464_getNearestParentVe(f.parentElement):null};
var ceI=function(f,R,u){var O=_.z4(u);return f.csn===null||O===f.csn||u?O:(f=new _.ts("VisibilityLogger called before newScreen",{caller:R.tagName,previous_csn:f.csn,current_csn:O}),_.Ih(f),null)};
rS.prototype.getData=function(f){var R,u=f.data||((R=f.props)==null?void 0:R.data);if(!u&&_.E("enable_wiz_always_try_logging_info_map")){var O;u=(O=nv(f))==null?void 0:O[zS]}else if(f.isWebComponentWrapper){var c;u=(c=nv(f))==null?void 0:c[zS]}return u};
var XdC=function(f,R){var u;return!((u=f.getData(R))==null||!u.loggingDirectives)},fi=function(f,R){f=f.getData(R);
return Math.floor(Number(f&&f.loggingDirectives&&f.loggingDirectives.visibility&&f.loggingDirectives.visibility.types||""))||1};var RC;RC=function(){};
_.aF=function(){RC.instance||(RC.instance=new RC);return RC.instance};
RC.prototype.setClient=function(f){_.MW(Q0().setClient).bind(Q0())(f)};
_.hVk=function(){_.aF();_.MW(Q0().JSC$10464_newScreen).bind(Q0())()};
RC.prototype.clear=function(){_.MW(Q0().clear).bind(Q0())()};
RC.prototype.reportShown=function(f,R,u){_.MW(Q0().reportShown).bind(Q0())(f,R,u)};
RC.prototype.reportHidden=function(f,R,u){return _.MW(Q0().reportHidden).bind(Q0())(f,R,u)};
var obB=function(f,R){return _.MW(Q0().JSC$10464_getTrackingParams).bind(Q0())(R)},LKt=function(f,R){return _.MW(Q0().JSC$10464_getNearestParentVe).bind(Q0())(R)};var u5,Zql;u5=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};
_.wR=function(){u5.instance||(u5.instance=new u5);return u5.instance};
u5.prototype.setClient=function(f){this.client=f};
Zql=function(f,R,u){u=u===void 0?{}:u;_.MW(function(){var O,c,h,l=((O=_.t(R==null?void 0:R.commandMetadata,_.vc))==null?void 0:O.rootVe)||((c=_.t(R==null?void 0:R.commandMetadata,hIf))==null?void 0:(h=c.screenVisualElement)==null?void 0:h.uiType);if(l){O=_.t(R==null?void 0:R.commandMetadata,SQF);if(O==null?0:O.parentTrackingParams){var K=_.t4(O.parentTrackingParams);if(O.parentCsn)var q=O.parentCsn}else u.clickedVisualElement?K=u.clickedVisualElement:R.clickTrackingParams&&(K=_.t4(R.clickTrackingParams));
a:{O=_.t(R,_.$7);c=_.t(R,OqB);if(O){if(c=W4t(O,"VIDEO")){O={token:c,videoId:O.videoId};break a}}else if(c&&(O=W4t(c,"PLAYLIST"))){O={token:O,playlistId:c.playlistId};break a}O=void 0}u=Object.assign({},{cttAuthInfo:O,parentCsn:q},u);if(_.E("expectation_logging")){var F;u.loggingExpectations=((F=_.t(R==null?void 0:R.commandMetadata,hIf))==null?void 0:F.loggingExpectations)||void 0}_.O1(f,l,K,u)}else _.Ih(new _.ts("Error: Trying to create a new screen without a rootVeType",R))})()};
_.O1=function(f,R,u,O){O=O===void 0?{}:O;_.MW(function(){fsE.includes(R)||(_.Ih(new _.ts("createClientScreen() called with a non-page VE",R)),R=83769);O.isHistoryNavigation||(f.forwardHistoryStack=[],f.backHistoryStack.push({rootVe:R,key:O.key||""}));f.graftQueue=[];f.stateChangedQueue=[];O.dataPromises?lsC(f,R,u,O):k5G(f,R,u,O)})()};
_.K9H=function(f,R,u){u=u===void 0?0:u;_.MW(function(){R.then(function(O){f.pendingScreenCreation.has(u)&&f.pendingScreenFn&&f.pendingScreenFn();var c=_.z4(u),h=_.Jj(u);if(c&&h){var l;(O==null?0:(l=O.response)==null?0:l.trackingParams)&&P_(f.client,c,h,_.t4(O.response.trackingParams));var K;(O==null?0:(K=O.playerResponse)==null?0:K.trackingParams)&&P_(f.client,c,h,_.t4(O.playerResponse.trackingParams))}})})()};
u5.prototype.graftServerVe=function(f,R,u){var O=this;return _.MW(function(){var c=_.t4(f);_.c1(O,c,R,u);return c})()};
_.bw7=function(f,R,u,O){return _.E("enable_client_ve_spec")&&R.clientVeSpec?(R=_.dx(R.clientVeSpec.uiType,void 0,R.clientVeSpec.elementIndex,R.clientVeSpec.clientYoutubeData,void 0,R),_.c1(f,R,u,O)?R:null):R.trackingParams?f.graftServerVe(R.trackingParams,u,O):null};
_.Fy=function(f,R,u,O){return _.MW(function(){if(!R.veType)return _.H5(new _.ts("Error: Trying to graft a client VE without a veType.")),null;if(R.visibilityTypes){var c=R.visibilityTypes.reduce(function(h,l){return h|l});
c={visibility:{types:String(c)}}}c=_.dx(R.veType,R.visualElement,R.elementIndex,R.clientYouTubeData,void 0,c);return _.c1(f,c,u,O)?c:null})()};
_.c1=function(f,R,u,O){O=O===void 0?0:O;return _.MW(function(){if(f.pendingScreenCreation.has(O))return f.graftQueue.push([R,u]),!0;var c=_.z4(O),h=u||_.Jj(O);if(c&&h){if(_.E("combine_ve_grafts")){var l=f.cachedVisualElements.get(h.toString());l?l.push(R):(f.cachedRootVisualElements.set(h.toString(),h),f.cachedVisualElements.set(h.toString(),[R]));f.attachTimeout||(f.attachTimeout=_.dJ(_.JA,function(){qcY(f,c)},1200))}else P_(f.client,c,h,R);
return!0}return!1})()};
_.Xl=function(f,R,u){u=u===void 0?0:u;var O=f.recurringGrafts.get(u)||new Map;if(_.E("smarter_ve_dedupping"))for(var c=Array.from(O.keys()),h=0;h<c.length;h++){var l=void 0,K=void 0;var q=R;var F=c[h];F.isClientVe()&&q.isClientVe()?(l=q.getAsJson(),K=F.getAsJson(),q=l.veType!==K.veType||l.elementIndex!==K.elementIndex||l.dataElement!==K.dataElement||q.getLoggingDirectives()!==F.getLoggingDirectives()?!1:!0):q=F.veData.trackingParams!==void 0&&q.veData.trackingParams!==void 0?((K=q.veData)==null?void 0:
K.trackingParams)===((l=F.veData)==null?void 0:l.trackingParams):!1;if(q)return}else if(O.has(R))return;O.set(R,void 0);f.recurringGrafts.set(u,O);_.z4(u)==="UNDEFINED_CSN"||f.pendingScreenCreation.has(u)||_.c1(f,R,void 0,u)};
_.hi=function(f,R,u,O){O=_.z4(O===void 0?0:O);if(!O)return!1;yVh(f.client,O,R,u);return!0};
_.Zn=function(f,R,u,O){if(!R)return!1;O=_.z4(O===void 0?0:O);if(!O)return!1;yVh(f.client,O,_.t4(R),u);return!0};
_.MI=function(f,R){var u=R.getScreenLayer&&R.getScreenLayer();if(R.visualElement)return _.hi(f,R.visualElement,void 0,u);R=obB(_.aF(),R);return _.Zn(f,R,void 0,u)};
u5.prototype.clickCommand=function(f,R,u){return _.Zn(this,f.clickTrackingParams,R,u===void 0?0:u)};
u5.prototype.stateChanged=function(f,R,u){this.visualElementStateChanged(_.t4(f),R,u===void 0?0:u)};
u5.prototype.visualElementStateChanged=function(f,R,u){u=u===void 0?0:u;u===0&&this.pendingScreenCreation.has(u)?this.stateChangedQueue.push([f,R]):this.logStateChanged(f,R,u)};
u5.prototype.logStateChanged=function(f,R,u){u=u===void 0?0:u;var O=_.z4(u);f=f||_.Jj(u);return O&&f?(d_l(this.client,O,f,R),!0):!1};
var lsC=function(f,R,u,O){O=O===void 0?{}:O;f.pendingScreenCreation.add(O.layer||0);f.pendingScreenFn=function(){k5G(f,R,u,O);var l=_.Jj(O.layer);if(l){for(var K=_.Z(f.graftQueue),q=K.next();!q.done;q=K.next())q=q.value,_.c1(f,q[0],q[1]||l,O.layer);l=_.Z(f.stateChangedQueue);for(K=l.next();!K.done;K=l.next())K=K.value,f.logStateChanged(K[0],K[1])}};
u||_.z4(O.layer)||f.pendingScreenFn();if(O.dataPromises)for(var c=_.Z(O.dataPromises),h=c.next();!h.done;h=c.next())_.K9H(f,h.value,O.layer);else _.TL(Error("uf"))},k5G=function(f,R,u,O){O=O===void 0?{}:O;
var c=void 0;O.layer||(O.layer=0);c=O.parentLayer!==void 0?O.parentLayer:O.layer;var h=_.z4(c);c=_.Jj(c);var l=u||c,K;l&&(O.parentCsn!==void 0?K={clientScreenNonce:O.parentCsn,visualElement:l}:h&&h!=="UNDEFINED_CSN"&&(K={clientScreenNonce:h,visualElement:l}));var q,F=_.Tf("EVENT_ID");h==="UNDEFINED_CSN"&&F&&(q={servletData:{serializedServletEventId:F}});_.E("combine_ve_grafts")&&h&&qcY(f,h);_.E("no_client_ve_attach_unless_shown")&&l&&h&&wqB(l,h);try{var w=_.AVq(f.client,R,K,O.csnToClone,O.cttAuthInfo,
q,O.implicitGestureType,void 0,O.loggingExpectations)}catch(C){_.MB(C,{rootVeType:R,rootVe:c,parentVisualElement:u,currentCsn:h,parentEl:K,csnToClone:O.csnToClone});_.TL(C);return}_.Hc(w,R,O.layer,O.cttAuthInfo);h&&h!=="UNDEFINED_CSN"&&c&&!tDl(h)&&tHn(f.client,h,c,!0);f.backHistoryStack[f.backHistoryStack.length-1]&&!f.backHistoryStack[f.backHistoryStack.length-1].csn&&(f.backHistoryStack[f.backHistoryStack.length-1].csn=w||"");_.ja({clientScreenNonce:w});_.hVk();var m=_.Jj(O.layer);h&&h!=="UNDEFINED_CSN"&&
m&&(_.E("web_mark_root_visible")||_.E("music_web_mark_root_visible"))&&_.B_(w,m);f.pendingScreenCreation.delete(O.layer||0);f.pendingScreenFn=void 0;var W;(W=f.recurringGrafts.get(O.layer))==null||W.forEach(function(C,d){C?_.c1(f,d,C,O.layer):m&&_.c1(f,d,m,O.layer)});
AeC(f)},AeC=function(f){for(var R=0;R<f.afterNewScreenOneOffJobs.length;R++){var u=f.afterNewScreenOneOffJobs[R];
try{u()}catch(O){_.TL(O)}}for(R=f.afterNewScreenOneOffJobs.length=0;R<f.afterNewScreenRecurringJobs.length;R++){u=f.afterNewScreenRecurringJobs[R];try{u()}catch(O){_.TL(O)}}},qcY=function(f,R){if(R===void 0)for(var u=WqB(),O=0;O<u.length;O++)u[O]!==void 0&&qcY(f,u[O]);
else f.cachedVisualElements.forEach(function(c,h){(h=f.cachedRootVisualElements.get(h))&&a25(f.client,R,h,c)}),f.cachedVisualElements.clear(),f.cachedRootVisualElements.clear(),f.attachTimeout=void 0};var l5=function(f){f=f===void 0?{layer:0}:f;this.hasRun=!1;this.createScreenConfig=f;f={};this.fqv=(f.response=!1,f.playerResponse=!1,f)};
_.y(l5,nN);l5.prototype.validate=function(f){return!(!f.data||!f.data.response&&!f.data.playerResponse)};
l5.prototype.handle=function(f){var R=_.wR(),u=this.createScreenConfig.layer;f.data.response&&f.data.response.trackingParams&&!this.fqv.response&&(R.graftServerVe(f.data.response.trackingParams,void 0,u),this.fqv.response=!0);f.data.playerResponse&&f.data.playerResponse.trackingParams&&!this.fqv.playerResponse&&(R.graftServerVe(f.data.playerResponse.trackingParams,void 0,u),this.fqv.playerResponse=!0)};var ka=function(){this.wJ=_.BM();this.de=[];this.qx3=0};
ka.prototype.processChunk=function(f){if(f){for(var R=_.Z(this.de),u=R.next();!u.done;u=R.next())u=u.value,u.validate(f)&&(u.handle(f),u.hasRun=!0);_.JH("np"+this.qx3);this.qx3++}};var zUn,Vu,YE,D_e=0,JVe=function(f,R,u,O,c,h){var l=YE;this.name=f;this.attributes=R;this.startTime=u;this.id=O;this.sessionId=c;this.traceId=h;this.parent=l};
JVe.prototype.attr=function(f,R){this.attributes[f]=R};
JVe.prototype.close=function(f){if(!Vu)throw Error("wf");var R=Vu;if(this!==YE)throw Error("vf");var u=YE;f&&(u.status=f);u.endTime=performance.now();f=_.Z(R.spanProcessors);for(R=f.next();!R.done;R=f.next()){var O=void 0,c=void 0;(c=(O=R.value).onSpanEnd)==null||c.call(O,u)}YE=u==null?void 0:u.parent};
JVe.prototype[Symbol.dispose]=function(){this.close()};var o4P,asG,mAl;_.KU=function(f,R,u,O,c,h,l){l=l===void 0?[]:l;this.buildCommandPayload=f;this.navigate=R;this.handleServiceRequest=u;this.sendAction=O;this.JSC$10505_screenManager=c;this.commandResolverMap=h;this.autoLogResolverAllowlist=l;this.pendingCommands=new Set;this.isTracingEnabled=!1;asG(this)};
o4P=function(f,R,u){var O=pAh,c=jQq,h=_.wR(),l=F9Y;u=u===void 0?[]:u;_.KU.instance=new _.KU(f,R,O,c,h,l,u)};
asG=function(f){if(!f.isTracingEnabled&&Vu&&(Vu.enabledSpans?Vu.enabledSpans.command:1)){var R=f.resolveCommand;f.resolveCommand=function(u,O){a:{for(c in u)if(Object.prototype.hasOwnProperty.call(u,c)){var c={commandType:c};break a}c={}}c=T52("command",c);return I20(c,R.bind(this,u,O),null)};
f.isTracingEnabled=!0}};
mAl=function(f,R,u){if(!f.commandResolverMap)return!1;var O=eUt(R,f.commandResolverMap);return O?((f.autoLogResolverAllowlist.some(function(c){return!!_.t(R,c)})||(u==null?0:u.forceClickLogging))&&wdk(f,R,u),O instanceof Promise?O.then(function(c){c.resolve(R,u)}):O.resolve(R,u),!0):!1};
_.KU.prototype.resolveCommand=function(f,R){var u=this,O=QDl(f);if(mAl(this,f,R))return!0;if(O)return W9G(this,f,R);if(!this.buildCommandPayload)return MH0(f,"Unhandled command by buildCommandPayload"),!1;var c=this.buildCommandPayload(f,R);if(R==null?0:R.commandController)c.commandController=R.commandController;if(c.type===0){if(!this.navigate)return P0h(f,"navigate"),!1;if(!Elf(c.command))return MH0(f,"Page requests need to specify a url"),!1;_.E("logging_avoid_blocking_during_navigation")&&_.if7().transition("application_navigating");
f=this.navigate(c)||[];j8C(f).then(function(){u.pendingCommands.delete(c.command)});
return!0}if(c.type===1){if(!this.handleServiceRequest)return P0h(f,"handleServiceRequest"),!1;(R==null?0:R.forceClickLogging)&&wdk(this,c.command,R);f=this.handleServiceRequest(c);j8C(f).then(function(){u.pendingCommands.delete(c.command)});
return!0}if(c.type===2){if(!this.sendAction)return P0h(f,"sendAction"),!1;wdk(this,c.command,R);this.sendAction(c);return!0}return!1};
var wdk=function(f,R,u){if((u==null||!u.disableClickTracking)&&f.JSC$10505_screenManager)if(R.clickTrackingParams&&_.E("log_click_with_layer_from_element_in_command_handler")){var O;u=u==null?void 0:(O=u.form)==null?void 0:O.element;f.JSC$10505_screenManager.clickCommand(R,null,u&&u.getScreenLayer&&u.getScreenLayer())}else R.clickTrackingParams?f.JSC$10505_screenManager.clickCommand(R):!_.E("disable_clicked_visual_element_in_command_handler")&&(u==null?0:u.clickedVisualElement)&&_.hi(f.JSC$10505_screenManager,
u.clickedVisualElement)},QDl=function(f){var R=!!_.t(f,_.kE),u;
f=((u=_.t(f,_.AH))==null?void 0:u.signal)==="CLIENT_SIGNAL";return R||f},W9G=function(f,R,u){var O=_.t(R,_.kE);
if(O)var c=(O==null?void 0:O.commands)||[];else{var h;if(((h=_.t(R,_.AH))==null?void 0:h.signal)==="CLIENT_SIGNAL"){var l;c=((l=_.t(R,_.AH))==null?void 0:l.actions)||[]}}if(c){R=_.Z(c);for(c=R.next();!c.done;c=R.next()){c=c.value;try{f.resolveCommand(c,u)}catch(K){K instanceof Error&&_.TL(K)}}return!0}MH0(R,"Could not handle the meta command");return!1},Elf=function(f){var R;
return!((R=_.t(f==null?void 0:f.commandMetadata,_.vc))==null||!R.url)};var Ki=function(){nN.apply(this,arguments)};
_.y(Ki,nN);Ki.prototype.validate=function(f){var R,u;return!this.hasRun&&!!((R=f.data.response)==null?0:(u=R.onResponseReceivedEndpoints)==null?0:u.length)};
Ki.prototype.handle=function(f){var R=_.KU.instance;f=_.Z(f.data.response.onResponseReceivedEndpoints);for(var u=f.next();!u.done;u=f.next())R.resolveCommand(u.value)};var t$I,CdA,yef;
t$I=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.ll();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.qk=function(){CdA||(CdA=new t$I);return CdA};
yef=function(){var f=_.qk();f.miniplayerButtonActivation=!1;f.userActivation=!1;f.playlistWatchPageActivation=!1;f.productDetailsPageActivation=!1;f.miniAppPageActivation=!1;f.playablesDestPageActivation=!1;f.lockupActivation=!1;f.showMiniplayerCommandActivation=!1;f.playlistSuggestionsShelfActivation=!1;f.mediaSessionPipActivation=!1;f.watchPipActivation=!1;f.watchWhileActivation=!1;f.shortsPipActivation=!1};
_.dAi=function(){var f=_.qk(),R=f.mediaSessionPipActivation,u=f.watchPipActivation,O=f.watchWhileActivation,c=f.playlistWatchPageActivation,h=f.lockupActivation,l=f.showMiniplayerCommandActivation,K=f.navigatingAwayFromWatchDeletedVideo,q=f.shortsPipActivation,F=f.playlistSuggestionsShelfActivation,w=f.productDetailsPageActivation,m=f.miniAppPageActivation,W=f.playablesDestPageActivation;return!f.miniplayerButtonActivation&&!c&&!F&&!w&&!m&&!W&&!h&&!l&&!R&&!u&&!O&&!q||K};var yWl;_.Ai=il("FEwhat_to_watch","/",3854);_.d0q=il("FEdownloads","/feed/downloads",42352);yWl=il("FEmusic_offline","browse/FEmusic_offline",42352);var gz=function(f,R){R=R===void 0?[]:R;var u=u===void 0?[]:u;R=cMD.apply(null,[Xoq.apply(null,_.yq(R))].concat(_.yq(u)));this.store=kRP(f,void 0,R)};
gz.prototype.getState=function(){return this.store.getState()};
gz.prototype.dispatch=function(f){return this.store.dispatch(f)};
gz.prototype.subscribe=function(f){return this.store.subscribe(f)};
gz.prototype.replaceReducer=function(f){return this.store.replaceReducer(f)};
gz.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.aC=function(f,R,u){var O=R(f.getState());return f.subscribe(function(){var c=R(f.getState());if(c!==O){var h=O;O=c;u(c,h)}})};var hnt;_.aA=function(f,R,u){return _.OP({type:"REPLACE_ENTITY",payload:{entityPayload:u,entityType:f,key:R}})};
hnt=function(f){return _.OP({type:"REPLACE_ENTITIES",payload:f})};
_.bA=function(f,R,u,O){return _.OP({type:"UPDATE_ENTITY",payload:{entityPayload:u,entityType:f,key:R,mergeOption:O}})};var i5n=function(f){var R=this;f=f===void 0?[]:f;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;f.forEach(function(u){R.append(u)})};
_.X=i5n.prototype;_.X.getLength=function(){return this.totalLength};
_.X.append=function(f){var R=this.arrays.length===0?!1:(R=this.arrays[this.arrays.length-1])&&R.buffer===f.buffer&&R.byteOffset+R.length===f.byteOffset;R?(R=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(R.buffer,R.byteOffset,R.length+f.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(f);this.totalLength+=f.length};
_.X.split=function(f){for(var R=new i5n,u=new i5n,O=_.Z(this.arrays),c=O.next();!c.done;c=O.next())c=c.value,f>=c.length?(R.append(c),f-=c.length):f?(R.append(new Uint8Array(c.buffer,c.byteOffset,f)),u.append(new Uint8Array(c.buffer,c.byteOffset+f,c.length-f)),f=0):u.append(c);return{headView:R,tailView:u}};
_.X.extract=function(f,R){return this.split(f).tailView.split(R).headView};
_.X.isFocused=function(f){return f>=this.arrayPos&&f<this.arrayPos+this.arrays[this.arrayIdx].length};
_.X.focus=function(f){if(!this.isFocused(f))for(f<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=f&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var N2l=function(f,R){f.focus(R);return f.arrays[f.arrayIdx][R-f.arrayPos]};(function(){var f=function(O){return new Uint8Array(O)},R=function(O){for(var c=new Uint8Array(O.length),h=0;h<O.length;h++)c[h]=O[h];
return c},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?f:R})();
var gwt=Array(1024),$_l=window.TextDecoder?new TextDecoder:void 0,nw7=window.TextEncoder?new TextEncoder:void 0;var vwl=function(f){this.arrayView=f;this.pos=0;this.pendingTagAndType=-1},cW=function(f){var R=N2l(f.arrayView,f.pos);
++f.pos;if(R<128)return R;for(var u=R&127,O=1;R>=128;)R=N2l(f.arrayView,f.pos),++f.pos,O*=128,u+=(R&127)*O;return u},rVe=function(f,R){var u=f.pendingTagAndType;
for(f.pendingTagAndType=-1;f.pos+1<=f.arrayView.totalLength;){u<0&&(u=cW(f));var O=u>>3,c=u&7;if(O===R)return!0;if(O>R){f.pendingTagAndType=u;break}u=-1;switch(c){case 0:cW(f);break;case 1:f.pos+=8;break;case 2:O=cW(f);f.pos+=O;break;case 5:f.pos+=4}}return!1};var Rx2=function(){this.pos=0;this.submessagePosStack=[];this.buf=YQ2(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},ZH=function(f,R){R=f.pos+R;
if(!(f.buf.length>=R)){for(var u=f.buf.length*2;u<R;)u*=2;f.buf=YQ2(u,f.buf.subarray(0,f.pos));f.view=new DataView(f.buf.buffer,f.buf.byteOffset,f.buf.byteLength)}},hh=function(f,R){if(R>268435455){ZH(f,4);
for(var u=R&1073741823,O=0;O<4;O++)f.view.setUint8(f.pos,u&127|128),u>>=7,f.pos+=1;R=Math.floor(R/268435456)}for(ZH(f,4);R>127;)f.view.setUint8(f.pos,R&127|128),R>>=7,f.pos+=1;f.view.setUint8(f.pos,R);f.pos+=1};for(var u17={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},f$7={},L9f=_.Z(Object.entries(u17)),bqY=L9f.next();!bqY.done;bqY=L9f.next()){var pdE=_.Z(bqY.value),jDC=pdE.next().value,DAk=pdE.next().value,Jek=jDC,zVt=DAk;zVt&&(f$7[zVt]=Jek)};var cOe=function(f,R){f=f===void 0?{}:f;switch(R.type){case "ENTITY_LOADED":return R.payload.reduce(function(O,c){var h,l=(h=c.options)==null?void 0:h.persistenceOption;if(l&&l!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&l!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return O;if(!c.entityKey)return _.TL(Error("yf")),O;if(c.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!c.payload)return c=new _.ts("REPLACE entity mutation is missing a payload",{entityKey:c.entityKey}),_.TL(c),O;var K=(0,_.dq.getAnyKey)(c.payload);
return hxe(O,K,c.entityKey,c.payload[K])}if(c.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{c=c.entityKey;try{var q=_.XX(c).entityType;K=hxe(O,q,c);break a}catch(m){if(m instanceof Error){c=new _.ts("Failed to deserialize entity key",{entityKey:c,originalMessage:m.message});_.TL(c);K=O;break a}throw m;}K=void 0}return K}if(c.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!c.payload)return c=new _.ts("UPDATE entity mutation is missing a payload",{entityKey:c.entityKey}),_.TL(c),O;K=(0,_.dq.getAnyKey)(c.payload);
var F,w;return ZJX(O,K,c.entityKey,c.payload[K],(F=c.fieldMask)==null?void 0:(w=F.mergeOptions)==null?void 0:w.repeatedFieldsMergeOption)}return O},f);
case "REPLACE_ENTITY":var u=R.payload;return hxe(f,u.entityType,u.key,u.entityPayload);case "REPLACE_ENTITIES":return Object.keys(R.payload).reduce(function(O,c){var h=R.payload[c];return Object.keys(h).reduce(function(l,K){return hxe(l,c,K,h[K])},O)},f);
case "UPDATE_ENTITY":return u=R.payload,ZJX(f,u.entityType,u.key,u.entityPayload,u.mergeOption);default:return f}};var l$t;var T2H=!1,Fl,wt,mu,Qp,W1,Hqi=function(f){_.d9.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!T2H){var R,u=new Uint8Array(256),O=new Uint8Array(256);var c=1;for(R=0;R<256;R++)u[c]=R,O[R]=c,c^=c<<1^(c>>7&&283);Fl=new Uint8Array(256);wt=Kg(256);mu=Kg(256);Qp=Kg(256);W1=Kg(256);for(var h=0;h<256;h++){c=h?O[255^u[h]]:0;c^=c<<1^c<<2^c<<3^c<<4;c=c&255^c>>>8^99;Fl[h]=c;R=c<<1^(c>>7&&283);var l=R^c;wt[h]=R<<24|c<<16|c<<8|l;mu[h]=l<<24|wt[h]>>>8;Qp[h]=c<<24|mu[h]>>>
8;W1[h]=c<<24|Qp[h]>>>8}T2H=!0}c=Kg(44);for(u=0;u<4;u++)c[u]=f[4*u]<<24|f[4*u+1]<<16|f[4*u+2]<<8|f[4*u+3];for(O=1;u<44;u++)f=c[u-1],u%4||(f=(Fl[f>>16&255]^O)<<24|Fl[f>>8&255]<<16|Fl[f&255]<<8|Fl[f>>>24],O=O<<1^(O>>7&&283)),c[u]=c[u-4]^f;this.key=c};
_.y(Hqi,_.d9);
Hqi.prototype.encrypt=function(f){var R=f.length;f=new Uint8Array(f.buffer.slice(f.byteOffset,f.byteOffset+R));for(var u=this.cipherBlock,O=0;O<R&&this.blockOffset<16;)f[O++]^=u[this.blockOffset++];for(var c=R-(R-O)%16;O<c;)IsH(this),f[O++]^=u[0],f[O++]^=u[1],f[O++]^=u[2],f[O++]^=u[3],f[O++]^=u[4],f[O++]^=u[5],f[O++]^=u[6],f[O++]^=u[7],f[O++]^=u[8],f[O++]^=u[9],f[O++]^=u[10],f[O++]^=u[11],f[O++]^=u[12],f[O++]^=u[13],f[O++]^=u[14],f[O++]^=u[15];if(O<R)for(IsH(this),this.blockOffset=0;O<R;)f[O++]^=
u[this.blockOffset++];return f};
var M$G=function(f,R){for(var u=0;u<4;u++)f.counter[u]=R[u*4]<<24|R[u*4+1]<<16|R[u*4+2]<<8|R[u*4+3];f.blockOffset=16},IsH=function(f){for(var R=f.key,u=f.counter[0]^R[0],O=f.counter[1]^R[1],c=f.counter[2]^R[2],h=f.counter[3]^R[3],l=3;l>=0&&!(f.counter[l]=-~f.counter[l]);l--);
for(var K,q,F=4;F<40;)l=wt[u>>>24]^mu[O>>16&255]^Qp[c>>8&255]^W1[h&255]^R[F++],K=wt[O>>>24]^mu[c>>16&255]^Qp[h>>8&255]^W1[u&255]^R[F++],q=wt[c>>>24]^mu[h>>16&255]^Qp[u>>8&255]^W1[O&255]^R[F++],h=wt[h>>>24]^mu[u>>16&255]^Qp[O>>8&255]^W1[c&255]^R[F++],u=l,O=K,c=q;f=f.cipherBlock;l=R[40];f[0]=Fl[u>>>24]^l>>>24;f[1]=Fl[O>>16&255]^l>>16&255;f[2]=Fl[c>>8&255]^l>>8&255;f[3]=Fl[h&255]^l&255;l=R[41];f[4]=Fl[O>>>24]^l>>>24;f[5]=Fl[c>>16&255]^l>>16&255;f[6]=Fl[h>>8&255]^l>>8&255;f[7]=Fl[u&255]^l&255;l=R[42];
f[8]=Fl[c>>>24]^l>>>24;f[9]=Fl[h>>16&255]^l>>16&255;f[10]=Fl[u>>8&255]^l>>8&255;f[11]=Fl[O&255]^l&255;l=R[43];f[12]=Fl[h>>>24]^l>>>24;f[13]=Fl[u>>16&255]^l>>16&255;f[14]=Fl[O>>8&255]^l>>8&255;f[15]=Fl[c&255]^l&255};var PdG=!1;(function(){var f=function(O){return new Uint8Array(O)},R=function(O){for(var c=new Uint8Array(O.length),h=0;h<O.length;h++)c[h]=O[h];
return c},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?f:R})();
var E1;var UAi=function(f){this.JSC$10573_aesKey=f};
UAi.prototype.encrypt=function(f,R){var u=this,O,c;return _.k(function(h){if(h.nextAddress==1){a:{if(!PdG&&!sb){if(E1){var l=E1;break a}E1=(l=window.crypto)==null?void 0:l.subtle;var K,q,F;if(((K=E1)==null?0:K.importKey)&&((q=E1)==null?0:q.sign)&&((F=E1)==null?0:F.encrypt)){l=E1;break a}E1=void 0}l=void 0}O=l;if(!O)return h.return(eVY(u,f,R));_.cl(h,3);return _.A(h,G5i(u,f,R,O),5)}if(h.nextAddress!=3)return h.return(h.yieldResult);c=_.ku(h);_.Ih(c);PdG=!0;return h.return(eVY(u,f,R))})};
var G5i=function(f,R,u,O){var c,h;return _.k(function(l){switch(l.nextAddress){case 1:if(f.cryptoKey){l.jumpTo(2);break}return _.A(l,O.importKey("raw",f.JSC$10573_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:f.cryptoKey=l.yieldResult;case 2:return c={name:"AES-CTR",counter:u,length:128},_.A(l,O.encrypt(c,f.cryptoKey,R),4);case 4:return h=l.yieldResult,l.return(new Uint8Array(h))}})},eVY=function(f,R,u){f.encryptorPolyfill||(f.encryptorPolyfill=new Hqi(f.JSC$10573_aesKey));
M$G(f.encryptorPolyfill,u);return f.encryptorPolyfill.encrypt(R)},B2A=function(f){this.JSC$10577_aesKey=f};
B2A.prototype.encrypt=function(f,R){this.encryptor||(this.encryptor=new Hqi(this.JSC$10577_aesKey));M$G(this.encryptor,R);return this.encryptor.encrypt(f)};var olE={},qre=vf("yt-idb-pref-storage",{objectStores:(olE.prefs={addedAtVersion:1},olE),shared:!1,upgrade:function(f,R){R(1)&&eI(UL(f,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.ti=function(f){this.token=f};
_.ti.getInstance=function(){return _.k(function(f){return f.return(new Promise(function(R){_.Yx().then(function(u){u?(_.ti.instance||(_.ti.instance=new _.ti(u)),R(_.ti.instance)):R(void 0)})}))})};
_.ti.prototype.get=function(f){var R=this,u,O,c;return _.k(function(h){if(h.nextAddress==1)return _.A(h,AOl(R.token),2);if(h.nextAddress!=3)return u=h.yieldResult,_.A(h,u.get("prefs",f),3);O=h.yieldResult;if(!O)return h.return();c=(0,_.iZ)();return O.expirationTimestampMs<=c?h.return():h.return(O.value)})};
_.ti.prototype.set=function(f,R,u){u=u===void 0?31536E3:u;var O=this,c,h,l;return _.k(function(K){if(K.nextAddress==1)return c=(0,_.iZ)(),h={key:f,value:R,expirationTimestampMs:c+u*1E3},_.A(K,AOl(O.token),2);l=K.yieldResult;return _.A(K,l.put("prefs",h),0)})};
_.ti.prototype.remove=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,AOl(R.token),2);u=O.yieldResult;return _.A(O,u.delete("prefs",f),0)})};var Ci={},xAf=(Ci.INVALID_ENCODER_VERSION="Invalid encoder version",Ci.KEY_CREATION_FAILED="Failed to create encoder key",Ci.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Ci.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Ci.WRONG_DATA_TYPE="Encoder cannot process the data type",Ci),qq=function(f,R){R=R===void 0?{}:R;_.ts.call(this,xAf[f],Object.assign({},{name:"PESEncoderError",type:f},R));this.type=f;this.level="WARNING";Object.setPrototypeOf(this,qq.prototype)};
_.y(qq,_.ts);var ScC=function(){},$AC=function(f,R,u){try{return f.encodeImpl(R,u)}catch(O){mfP(O,F0l)}},gli=function(f,R,u){var O;
return _.k(function(c){if(c.nextAddress==1)return _.cl(c,2),_.A(c,f.decodeAsyncImpl(R,u),4);if(c.nextAddress!=2)return c.return(c.yieldResult);O=_.ku(c);mfP(O,wet);_.KG(c)})};
ScC.prototype.decodeAsyncImpl=function(f,R){return Promise.resolve(this.decodeImpl(f,R))};var yp=function(f,R){this.aesEncryptor=f;this.aesEncryptorAsync=R};
_.y(yp,ScC);yp.prototype.encodeImpl=function(f,R){R=Qbe(R);f=(new TextEncoder).encode(JSON.stringify(f));return this.aesEncryptor.encrypt(f,R)};
yp.prototype.decodeImpl=function(f,R){if(!(f instanceof Uint8Array))throw a$X(1);var u=new TextDecoder;R=Qbe(R);f=this.aesEncryptor.encrypt(f,R);return JSON.parse(u.decode(f))};
yp.prototype.decodeAsyncImpl=function(f,R){var u=this,O,c,h;return _.k(function(l){if(l.nextAddress==1){if(!(f instanceof Uint8Array))throw a$X(1);O=new TextDecoder;c=Qbe(R);return _.A(l,u.aesEncryptorAsync.encrypt(f,c),2)}h=l.yieldResult;return l.return(JSON.parse(O.decode(h)))})};var W0D={accountLinkStatusEntity:mUE,booleanEntity:stf,buttonEntity:ROk,captionTrack:$2f,channelHandle:TIi,chipEntity:HuI,commerceAcquisitionClientPayloadEntity:LZI,commerceCartListEntity:bNY,contextNoteFeedEntityPayload:GaY,continuationTokenEntity:bdA,downloadQualityPickerEntity:wbl,downloadsPageRefreshTokenEntity:Qfk,downloadsPageViewConfigurationEntity:MDA,downloadStatusEntity:mZI,dismissState:IVE,sfvAudioItemCurrentlyPlayingEntity:d_F,emojiFountainDataEntity:iuI,emojiCustomizationSetEntity:vHI,
fakeChannel:Y0Y,fakePlaylist:vTG,fakePlaylistEntryCollection:i6i,fakeVideo:fji,fakeVideoDescription:RJk,featuredProductsEntity:uwF,flowStateEntity:AkF,iconBadgeEntity:pYG,interstitialInteractionStateEntity:Ijf,likeButtonAnimationEntity:PVE,liveChatPollStateEntity:xUA,liveViewerLeaderboardChatEntryPointStateEntity:XqC,liveViewerLeaderboardPointsEntity:hUt,liveReactionsDataEntity:rLE,logoEntity:TBf,macroMarkerEntity:UZk,mainDownloadsLibraryEntity:Wqf,mainDownloadsListEntity:EIE,mainPlaylistDownloadStateEntity:CVG,
mainPlaylistEntity:pbF,mainPlaylistVideoEntity:jfE,mainVideoDownloadStateEntity:yoC,mainVideoEntity:T4C,markersEngagementPanelSyncEntity:eIC,markersVisibilityOverrideEntity:G0A,musicAlbumReleaseDetail:aCA,musicAlbumReleaseDownloadMetadataEntity:lCY,musicAlbumRelease:A_H,musicAlbumReleaseUserDetail:F4I,musicArtistDetail:m2t,musicArtist:wsf,musicArtistUserDetail:Qni,musicDownloadsLibraryEntity:ktY,musicLibraryEdit:W4Y,musicLibraryStatusEntity:Evk,musicPlaylist:t4F,musicPlaylistDownloadMetadataEntity:K4f,
musicShare:y_H,musicTrackDetail:NwA,musicTrackDownloadMetadataEntity:qVG,musicTrack:d2i,musicTrackUserDetail:L4G,offlineOrchestrationActionWrapperEntity:gvE,offlineVideoPolicy:snk,offlineVideoStreams:nvC,offlineabilityEntity:dZk,orchestrationWebSamplingEntity:N4i,pageHeaderEntity:xjA,pdpStateEntity:jYk,pinnedProductEntity:OWC,playbackData:V4t,playerStateEntity:B4Y,quantityIncrementerEntity:Dif,refresh:YVl,saveToPlaylistListEntity:$_F,selectedChipIndexEntityPayload:oIf,settingEntity:wmH,stringEntity:nTE,
suggestedFeedbackChipStateEntity:xZA,transfer:vvf,trendingOfferEntity:c_G,videoDownloadContextEntity:iWl,videoOverviewAsyncDataEntity:fnA,videoPlaybackPositionEntity:ctG,votingEntity:sUl,ytMainChannelEntity:Hdf,youchatPendingResponseEntity:SFk,ytMainDownloadedVideoEntity:Lqk,ytMainVideoEntity:IqA};var sDf,V$A,mB,Ou7,cLX,iqC,fZI,rel,vlH;sDf=function(f,R){this.JSC$10596_wrapped=f;this.JSC$10596_encoderRegistry=R;this.changedKeys={}};
V$A=function(f,R){a:{f=nlk(f.JSC$10596_encoderRegistry,R.version);try{var u=f.decodeImpl(R.data,R.key);break a}catch(O){mfP(O,wet)}u=void 0}return u};
_.Yck=function(f,R,u){return f.JSC$10596_wrapped.objectStore("EntityStore").get(R).then(function(O){if(O){if(u&&O.entityType!==u)throw Error("zf");return V$A(f,O)}})};
mB=function(f,R,u){return u?(u=u.map(function(O){return _.Yck(f,O,R)}),Pf.all(u)):f.JSC$10596_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(R)).then(function(O){return O.map(function(c){return V$A(f,c)})})};
_.uUX=function(f,R,u){var O=OJ5(R),c=nlk(f.JSC$10596_encoderRegistry,1),h=Object.assign({},R);return f.JSC$10596_wrapped.objectStore("EntityStore").get(O).then(function(l){if(l){if(l.entityType!==u)throw Error("zf");h.entityMetadata||(l=V$A(f,l),h.entityMetadata=l.entityMetadata)}}).then(function(){var l={key:O,
entityType:u,data:$AC(c,h,O),version:1};return Pf.all([f.JSC$10596_wrapped.objectStore("EntityStore").put(l),vlH(f,h,u)])}).then(function(){iqC(f,O,u);
return O})};
Ou7=function(f,R){var u=_.XX(R).entityType;return Pf.all([f.JSC$10596_wrapped.objectStore("EntityStore").delete(R),rel(f,R)]).then(function(){iqC(f,R,u)})};
cLX=function(f,R,u,O){var c=nlk(f.JSC$10596_encoderRegistry,1);return _.Yck(f,R,O).then(function(h){if(h){h=SQl(h,u);var l={key:R,entityType:O,data:$AC(c,h,R),version:1};return Pf.all([f.JSC$10596_wrapped.objectStore("EntityStore").put(l),vlH(f,h,O)])}}).then(function(){iqC(f,R,O);
return R})};
iqC=function(f,R,u){var O=f.changedKeys[u];O||(O=new Set,f.changedKeys[u]=O);O.add(R)};
fZI=function(f,R,u){var O=OJ5(R);u=EP7(u);if(!u)return Pf.resolve([]);u=new u(R);f=f.JSC$10596_wrapped.objectStore("EntityAssociationStore");R=[];u=_.Z(u.getAssociations());for(var c=u.next();!c.done;c=u.next())R.push(f.put({parentEntityKey:O,childEntityKey:c.value}));return Pf.all(R).then(function(h){return h.map(function(l){return l[1]})})};
rel=function(f,R){return f.JSC$10596_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(R))};
vlH=function(f,R,u){var O=OJ5(R);return rel(f,O).then(function(){return fZI(f,R,u)})};var RgY=function(){};
_.y(RgY,ScC);RgY.prototype.encodeImpl=function(f){return f};
RgY.prototype.decodeImpl=function(f){if(f instanceof Uint8Array)throw a$X(0);return f};var yO0=function(){this.cacheMap={};this.cacheMap[0]=new RgY;if(!_.E("aes_pes_encoder_killswitch")){var f=this.cacheMap;try{var R=_.Wf();var u=Qbe(R);var O=new yp(new B2A(u),new UAi(u))}catch(c){throw f=c instanceof Error?new qq("KEY_CREATION_FAILED",{originalMessage:c.message}):new qq("KEY_CREATION_FAILED"),_.TL(f),f;}f[1]=O}},nlk=function(f,R){R=R===void 0?0:R;
f=f.cacheMap[R];if(!f)throw R=new qq("INVALID_ENCODER_VERSION",{encoderVersion:R}),_.TL(R),R;return f};var aL=function(f,R){_.d9.call(this);this.token=f;this.JSC$10610_encoderRegistry=R;this.observers=[];f=new _.Oe.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Wf());f.onmessage=this.handleMessage.bind(this);this.channel=f};
_.y(aL,_.d9);_.wz=function(f,R,u){var O,c,h,l;return _.k(function(K){if(K.nextAddress==1)return _.A(K,K07(f.token),2);if(K.nextAddress!=3)return O=K.yieldResult,_.A(K,_.Sh(O,["EntityStore","EntityAssociationStore"],R,function(q){c=new sDf(q,f.JSC$10610_encoderRegistry);return u(c)}),3);
h=K.yieldResult;c&&(l=c.changedKeys,Object.keys(l).length>0&&(f.channel.postMessage(l),uGI(f,l)));return K.return(h)})};
aL.prototype.observe=function(f){var R=this;this.observers.push(f);return function(){var u=R.observers.indexOf(f);u>=0&&R.observers.splice(u,1)}};
var y2q=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,_.wz(f,{mode:"readonly",enableRetries:!0},function(O){return O.JSC$10596_wrapped.objectStore("EntityStore").getAll()}),2);
R=u.yieldResult;return u.return(Promise.all(R.filter(function(O){return!!O}).map(function(O){var c,h;
return _.k(function(l){if(l.nextAddress==1){c=O.key;h=O.entityType;var K=gli(nlk(f.JSC$10610_encoderRegistry,O.version),O.data,O.key);return _.A(l,K,2)}return l.return({key:c,entityType:h,data:l.yieldResult})})})))})};
aL.prototype.handleMessage=function(f){uGI(this,f.data)};
var uGI=function(f,R){f=_.Z(f.observers);for(var u=f.next();!u.done;u=f.next())u=u.value,u(R)};
aL.prototype.disposeInternal=function(){this.channel.close()};
var t7P;var dt,cEH,ROD,dj7;dt={};_.OIA=(dt.mainVideoEntity="mainVideoEntityActionMetadata",dt.mainPlaylistEntity="mainPlaylistEntityActionMetadata",dt.musicTrack="musicTrackEntityActionMetadata",dt.musicPlaylist="musicPlaylistEntityActionMetadata",dt);cEH=new _.Vi("DOWNLOADS_ENTITY_TYPE_MAP");ROD=_.l$("","downloadsPageViewConfigurationEntity");dj7=_.l$("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.ct0=_.l$("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.l$("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.l$("SMART_DOWNLOADS_ENABLED","settingEntity");_.l$("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var khP=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var mjh=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var $j0={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Nk,xil,$qY,Lbe;Nk=window;_.PW=Nk.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.fn2=Nk.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.xZ;xil=Nk.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||yo;$qY=Nk.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||SPF;_.XXi=Nk.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.ZgF;Lbe=Nk.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||KBF;BW({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 OiB=Sd7(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(f){return f}}}),gL0=Sd7(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(f){return f}}}),nht=new Map;var X1X=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],rtt;var hgl=function(f){return _.OP({type:"SET_EPHEMERAL_ACTION",payload:f})};var ZIG={ephemeralAction:null};var lZf={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var p1X={sharedUi:function(f,R){f=f===void 0?lZf:f;switch(R.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},f,{animatedThumbnailEnabled:R.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},f,{inlinePreviewEnabled:R.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},f,{currentPageType:R.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},f,{currentPageSubType:R.payload});default:return f}},
a11y:Aj({ephemeralAction:function(f,R){f=f===void 0?ZIG.ephemeralAction:f;switch(R.type){case "SET_EPHEMERAL_ACTION":return R.payload;default:return f}}})};var to0=Aj({isLeaderTab:function(f,R){f=f===void 0?!0:f;switch(R.type){case "SET_IS_LEADER_TAB":var u,O;return(O=R==null?void 0:(u=R.payload)==null?void 0:u.isLeaderTab)!=null?O:f;default:return f}}});var kHH=function(f){return _.OP({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:f}})};var bit=Aj({isDesktopSmallWidth:function(f,R){switch(R.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return R.payload.isDesktopSmallWidth;default:return f===void 0?!1:f}},
isShortsActive:function(f,R){switch(R.type){case "SET_IS_SHORTS_ACTIVE":return R.payload.isShortsActive;default:return f===void 0?!1:f}},
isWatchWhileMode:function(f,R){switch(R.type){case "SET_IS_WATCH_WHILE_MODE":return R.payload.isWatchWhileMode;default:return f===void 0?!1:f}},
playerState:function(f,R){switch(R.type){case "SET_PLAYER_STATE":return R.payload.playerState;default:return f===void 0?-1:f}},
isFullscreen:function(f,R){switch(R.type){case "SET_IS_FULLSCREEN":return R.payload.isFullscreen;default:return f===void 0?!1:f}},
isSmallScreenSqueezeback:function(f,R){switch(R.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return R.payload.isSmallScreenSqueezeback;default:return f===void 0?!1:f}},
isShortsPipActive:function(f,R){switch(R.type){case "SET_IS_SHORTS_PIP_ACTIVE":return R.payload.isShortsPipActive;default:return f===void 0?!1:f}},
isPlaybackStarted:function(f,R){switch(R.type){case "SET_IS_PLAYBACK_STARTED":return R.payload.isPlaybackStarted;default:return f===void 0?!1:f}}});var q1t={playlistId:"",inviteLinkURL:""};var K_C={};var Eah=Aj({continuationCommand:function(f,R){f=f===void 0?K_C:f;switch(R.type){case "SET_CONTINUATION_COMMAND":return R.payload.continuationCommand;default:return f}}});var Dk0=function(){return function(f){return function(R){var u=f(R);_.OJ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[R],!0);return u}}};var q7I,TE5;q7I=new _.lj;_.fr=new _.Vi("WATCH_PLAYER_PROMISE_TOKEN");_.AEt=new _.lj;_.aZf=new _.Vi("SHORTS_PLAYER_PROMISE_TOKEN");TE5=new _.Vi("");var Ji0=function(){return function(f){return function(R){R.type==="ENTITY_LOADED"&&_.vh().resolve(_.fr).then(function(u){var O;(O=u.dispatchReduxAction)==null||O.call(u,R)});
return f(R)}}};var anX={currentFormId:"",commandsMap:{}};var F_Y={};var C57=Aj({additionalContext:function(f,R){switch(R.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var u;return(u=R.payload)!=null?u:"";default:return f===void 0?"":f}},
impersonatedChannelUrl:function(f,R){switch(R.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var u;return(u=R.payload)!=null?u:"";default:return f===void 0?"":f}},
selectedVideoIds:function(f,R){f=f===void 0?F_Y:f;switch(R.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var u={};return Object.assign({},f,(u[R.payload]=!0,u));case "VIDEO_UNSELECTED":return R=R.payload,f=Object.assign({},f),delete f[R],f;default:return f}}});var yih=Aj({parentClickTrackingParams:function(f,R){switch(R.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return R.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return f===void 0?"":f}}});var wXF=function(f){return _.OP({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:f})};var mDi={};var dkh=Aj({stepStates:function(f,R){f=f===void 0?mDi:f;switch(R.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var u=f,O=R.payload,c,h,l;f={};R={selectionStates:Object.assign({},(l=(c=u[O.stepId])==null?void 0:c.selectionStates)!=null?l:{},(f[O.token]={isSelected:O.isSelected},f)),userQuery:(h=u[O.stepId])==null?void 0:h.userQuery};c={};return Object.assign({},u,(c[O.stepId]=R,c));case "TALK_TO_RECS_UPDATE_USER_QUERY":return c=f,h=R.payload,l={selectionStates:Object.assign({},
(O=(u=c[h.stepId])==null?void 0:u.selectionStates)!=null?O:{}),userQuery:{userQuery:h.userQuery,token:h.userQueryToken}},u={},Object.assign({},c,(u[h.stepId]=l,u));default:return f}}});var Q6l,W_k;Q6l=function(f){return _.OP({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:f})};
W_k=function(f){return _.OP({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:f})};
_.bk=function(f){return _.OP({type:"SET_CURRENT_PAGE_TYPE",payload:f})};
_.EiG=function(f){return _.OP({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:f})};var w1P={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"};_.tXY=function(f){return _.OP({type:"SET_PLAYER_STATE",payload:{playerState:f}})};var CgC=[],yEC={width:0,height:0};var Ntl=Aj({isTheaterMode:function(f,R){f=f===void 0?_.E("kevlar_disable_theater_mode_persistence")?!1:_.Hh("START_IN_THEATER_MODE"):f;switch(R.type){case "SET_IS_THEATER_MODE":return R.payload.isTheaterMode;default:return f}},
isWatchActive:function(f,R){switch(R.type){case "SET_IS_WATCH_ACTIVE":return R.payload.isWatchActive;default:return f===void 0?!1:f}},
isLearningJourneyActive:function(f,R){switch(R.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return R.payload.isLearningJourneyActive;default:return f===void 0?!1:f}},
isWatchFullscreen:function(f,R){switch(R.type){case "SET_IS_WATCH_FULLSCREEN":return R.payload.isWatchFullscreen;default:return f===void 0?!1:f}},
isWatchNarrowWidth:function(f,R){switch(R.type){case "SET_IS_WATCH_NARROW_WIDTH":return R.payload.isWatchNarrowWidth;default:return f===void 0?!1:f}},
isWatchRetroMode:function(f,R){switch(R.type){case "SET_IS_WATCH_RETRO_MODE":return R.payload.isWatchRetroMode;default:return f===void 0?!1:f}},
isLiveChatCollapsed:function(f,R){switch(R.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return R.payload.isLiveChatCollapsed;default:return f===void 0?!1:f}},
openEngagementPanels:function(f,R){f=f===void 0?CgC:f;var u=[].concat(_.yq(f));switch(R.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return u.push(R.payload.panelToAdd),u;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return u.splice(u.indexOf(R.payload.panelToRemove),1),u;default:return f}},
playerState:function(f,R){switch(R.type){case "SET_PLAYER_STATE":return R.payload.playerState;default:return f===void 0?-1:f}},
watchScrollTop:function(f,R){switch(R.type){case "SET_WATCH_SCROLL_TOP":return R.payload.watchScrollTop;default:return f===void 0?0:f}},
watchWindowSize:function(f,R){f=f===void 0?yEC:f;switch(R.type){case "SET_WATCH_WINDOW_SIZE":return R.payload.watchWindowSize;default:return f}}});var dDI={feedbackTokens:[]};var LuD=Aj({surveyFeedbackData:function(f,R){f=f===void 0?dDI:f;switch(R.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return R.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},f,R.payload);default:return f}}});var QCX={};var Ttn=void 0;_.E("web_enable_redux_store_on_demand")||(Ttn=zT2());var N3k=function(f,R,u){var O=this;this.listId=f;this.JSC$10744_updateCallback=R;this.isOfflineVideoCallback=u;_.sP().subscribe(function(){O.handleUpdate()})};
N3k.prototype.getPlaylistData=function(){var f=_.sP().getState().entities;if(this.listId&&this.listId!=="PPSV"){var R=Huq(f,this.listId,!0),u=_.l$(this.listId,"mainPlaylistEntity"),O,c;f=f==null?void 0:(O=f.mainPlaylistEntity)==null?void 0:(c=O[u])==null?void 0:c.title;return Hie(R,f,this.listId)}R=_.QU0(ll7(f));f=_.QU0(_.Nq(f));return Hie(R.concat(f))};
N3k.prototype.getPlaylistId=function(){return this.listId};
N3k.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10744_updateCallback(this.listId,this.getPlaylistData(),{})};var Li=function(f,R,u,O){O=O===void 0?[]:O;this.JSC$10747_playlistNetworkManager=f;this.listId=R;this.JSC$10747_updateCallback=u;this.videoIds=O;this.pendingUpdates=[];this.currentIndex=0};
Li.prototype.JSC$10747_setCurrentIndex=function(f){this.currentIndex=f};
Li.prototype.setListId=function(f){this.listId=f};
var L_t=function(f,R){f.currentCreateRequest&&f.currentCreateRequest.cancel(R);f.currentUpdateRequest&&f.currentUpdateRequest.cancel(R);f.currentRefreshRequest&&f.currentRefreshRequest.cancel(R)};
Li.prototype.delete=function(){L_t(this,"PROXY DELETED")};
Li.prototype.addVideos=function(f,R,u){var O=this;u!==void 0?this.videoIds.splice.apply(this.videoIds,[u,0].concat(_.yq(f))):this.videoIds.push.apply(this.videoIds,_.yq(f));this.listId||this.currentCreateRequest?(f.forEach(function(c,h){c={addedVideoId:c,action:"ACTION_ADD_VIDEO"};u&&(c.addedVideoPosition=u+h);O.pendingUpdates.push(c)}),b5(this)):bIY(this,R.onCreateListCommand)};
var pXH=function(f,R,u,O,c){dXl(f.videoIds,R,u);R>f.currentIndex&&u<=f.currentIndex?f.JSC$10747_setCurrentIndex(f.currentIndex+1):R===f.currentIndex?f.JSC$10747_setCurrentIndex(u):R<f.currentIndex&&u>=f.currentIndex&&f.JSC$10747_setCurrentIndex(f.currentIndex-1);f.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:O,movedSetVideoIdPredecessor:c});b5(f)},bIY=function(f,R){L_t(f,"OBSOLETE");
f.currentCreateRequest=j6f(f.JSC$10747_playlistNetworkManager,R,f.videoIds);_.to(f.currentCreateRequest,function(){f.currentCreateRequest=void 0}).then(function(u){f.setListId(u.playlistId);
f.pendingUpdates.length>0?b5(f):DDG(f)})},b5=function(f){if(f.pendingUpdates.length!==0&&(f.currentRefreshRequest&&f.currentRefreshRequest.cancel("OBSOLETE"),!f.currentUpdateRequest&&!f.currentCreateRequest)){var R=f.pendingUpdates.splice(0,f.pendingUpdates.length);
f.currentUpdateRequest=f.JSC$10747_playlistNetworkManager.updatePlaylist(f.listId,R);_.to(f.currentUpdateRequest,function(){f.currentUpdateRequest=void 0}).then(function(){f.pendingUpdates.length>0?b5(f):DDG(f)}).thenCatch(function(){f.pendingUpdates.unshift.apply(f.pendingUpdates,_.yq(R))})}},DDG=function(f){f.currentRefreshRequest=_.JEI(f.JSC$10747_playlistNetworkManager,f.listId,f.currentIndex,f.videoIds[f.currentIndex]);
_.to(f.currentRefreshRequest,function(){f.currentRefreshRequest=void 0}).then(function(R){f.JSC$10747_updateCallback(R.playlistId,R.playlistPanelRenderer,R.autoplayRenderer)})};
Li.prototype.size=function(){return this.videoIds.length};var zgC=function(f,R,u,O){O=O===void 0?[]:O;Li.call(this,f,R,u,O);this.JSC$10747_playlistNetworkManager=f;this.listId=R;this.JSC$10747_updateCallback=u;this.videoIds=O};
_.y(zgC,Li);_.pi=function(f,R,u,O,c,h,l){c=c===void 0?[]:c;l=l===void 0?Rf:l;Li.call(this,f,R,u,c);this.JSC$10747_playlistNetworkManager=f;this.listId=R;this.JSC$10747_updateCallback=u;this.onAuthChange=O;this.videoIds=c;this.storage=h;this.cookieReader=l;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Oz(_.JA,this.checkLoggedInStatusChange.bind(this),1E3)};
_.y(_.pi,Li);_.X=_.pi.prototype;_.X.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Oz(_.JA,this.checkLoggedInStatusChange.bind(this),1E3)};
_.X.JSC$10747_setCurrentIndex=function(f){Li.prototype.JSC$10747_setCurrentIndex.call(this,f);this.store()};
_.X.delete=function(){_.JA.cancelJob(this.queueSapisIdJob);Li.prototype.delete.call(this)};
_.X.setListId=function(f){Li.prototype.setListId.call(this,f);this.store()};
_.X.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var T3i=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],HIl=["playerResponse","videoDetails"],IZI=["response","currentVideoEndpoint","watchEndpoint","videoId"],MXl=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Pgf=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],UDC=["response","contents","twoColumnWatchNextResults","playlist","playlist"],egk=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
GHC=["response","contents","twoColumnWatchNextResults"];var jo={},eTn=(jo.WEB_UNPLUGGED="^unplugged/",jo.WEB_UNPLUGGED_ONBOARDING="^unplugged/",jo.WEB_UNPLUGGED_OPS="^unplugged/",jo.WEB_UNPLUGGED_PUBLIC="^unplugged/",jo.WEB_CREATOR="^creator/",jo.WEB_KIDS="^kids/",jo.WEB_EXPERIMENTS="^experiments/",jo.WEB_MUSIC="^music/",jo.WEB_REMIX="^music/",jo.WEB_MUSIC_EMBEDDED_PLAYER="^music/",jo.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",jo);var Cd2,j6f;Cd2=function(f,R){this.networkManager=f;this.innertubeTransportService=R};
j6f=function(f,R,u){if(!_.t(R,_.IY))return _.NO(Error("Df"));_.t(R,_.IY).videoIds=u;u={create_playlist_title:_.Fa("QUEUE",void 0,"Queue")};return P5B(_.e6(f.innertubeTransportService,R,u),In7)};
_.JEI=function(f,R,u,O){R={videoId:O,playlistId:R,playlistIndex:u};u=_.Ve(BjY);return P5B(_.Dn(f.innertubeTransportService,R,u),Uk7)};
Cd2.prototype.updatePlaylist=function(f,R){return P5B(_.e6(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:f,actions:R}}),Mol)};var B3f=function(f){this.storage=f},oif;
B3f.prototype.store=function(f,R){R=R===void 0?0:R;if(this.storage&&f.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",f),this.storage.set("TLPQindex",String(R)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(u){}};
B3f.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
B3f.prototype.getPlaylistId=function(){if(!this.storage)return null;var f=null;try{f=this.storage.get("TLPQplaylist")}catch(R){}return f};var xkh=["navigationEndpoint","watchEndpoint","videoId"],oah=["nextButtonVideo","watchEndpoint","videoId"];_.DM=new _.Vi("NETWORK_TOKEN");_.sz=new _.Vi("PAGE_TOKEN");_.Ji=new _.Vi("PLAYLIST_TOKEN");var xDG;xDG=new _.Vi("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.JN=new _.Vi("INNERTUBE_TRANSPORT_TOKEN");var S7A,zC,giC,s6C,VXC,Y7t;S7A=new Set(["ci","cr","carml"]);zC=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10794_parkedJobs=new Map;this.parkedProcessors=new Map};
_.TC=function(){zC.instance||(zC.instance=new zC);return zC.instance};
zC.prototype.onAny=function(f){return _.$Dk(this,f,2)};
zC.prototype.parkOrScheduleJob=function(f,R,u,O,c){_.H1(this,u)?_.LS().addJob(f,R,O):(c&&(f=giC(f),s6C(this,f,R,u,c)),c=this.JSC$10794_parkedJobs.get(u),c||(this.JSC$10794_parkedJobs.set(u,[]),c=this.JSC$10794_parkedJobs.get(u)),c.push({job:f,priority:R,delay:O}))};
zC.prototype.addListener=function(f,R,u){u&&(R=giC(R),s6C(this,R,0,f,u));u=this.parkedProcessors.get(f);u||(this.parkedProcessors.set(f,[]),u=this.parkedProcessors.get(f));u.push(R)};
zC.prototype.processSignal=function(f){if(!_.H1(this,f)){this.inProgressSignals.add(f);var R=this.JSC$10794_parkedJobs.get(f);if(R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,_.LS().addJob(u.job,u.priority,u.delay);this.JSC$10794_parkedJobs.delete(f)}if(R=this.parkedProcessors.get(f)){R=_.Z(R);for(u=R.next();!u.done;u=R.next())u=u.value,u();this.parkedProcessors.delete(f)}this.signals.push(f);this.inProgressSignals.delete(f)}};
_.H1=function(f,R){return S7A.has(R)||_.Hh("IS_HOMEPAGE_COLD")||_.Hh("IS_RESULTS_PAGE_COLD")||_.Hh("IS_WATCH_PAGE_COLD")?f.signals.indexOf(R)>=0:!0};
giC=function(f){var R=!1;return function(){R||(R=!0,f())}};
s6C=function(f,R,u,O,c){if(niC.has(O))_.LS().addJob(R,u,c);else{var h=f.compoundSignals.get(O);h&&_.LS().addJob(function(){_.H1(f,O)||(h.isTimeoutConditionSatisfied?_.LS().addJob(R,u):h.timeoutConditionObservers.push(function(){_.LS().addJob(R,u)}))},u,c)}};
_.$Dk=function(f,R,u){if(R.length>1){var O=[],c=Object.create(null);R=_.Z(R);for(var h=R.next();!h.done;h=R.next())h=h.value,c[h]||(O.push(h),c[h]=!0);R=O}if(R.length===1)return R[0];h=R;O="";c=u===2?"|":"&";h.sort();h=_.Z(h);for(var l=h.next();!l.done;l=h.next())O+=l.value+c;if(!f.compoundSignals.get(O)){c=0;h=[];l=_.Z(R);for(var K=l.next();!K.done;K=l.next())K=K.value,c++,_.H1(f,K)||h.push(K);(u=u===2)&&c>h.length||!u&&!h.length?f.signals.push(O):VXC(f,O,u,R,h)}return O};
VXC=function(f,R,u,O,c){var h=c.length,l=function(){u||--h===0?f.processSignal(R):Y7t(f,R)};
c=_.Z(c);for(var K=c.next();!K.done;K=c.next())f.addListener(K.value,l);f.compoundSignals.set(R,{signals:O,isOnAny:u,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Y7t(f,R)};
Y7t=function(f,R){if(!_.H1(f,R)){var u=f.compoundSignals.get(R);if(u&&!u.isTimeoutConditionSatisfied){for(var O=!1,c=0,h=0,l=_.Z(u.signals),K=l.next();!K.done;K=l.next()){var q=K.value;K=!_.H1(f,q);niC.has(q)?O=!0:(q=f.compoundSignals.get(q))?K&&!q.isTimeoutConditionSatisfied&&(h++,u.isInitialized||q.timeoutConditionObservers.push(function(){Y7t(f,R)})):K&&c++}u.isInitialized=!0;
u.isOnAny?O&&(u.isTimeoutConditionSatisfied=!0):c===0&&h===0&&(u.isTimeoutConditionSatisfied=!0);if(u.isTimeoutConditionSatisfied)for(u=_.Z(u.timeoutConditionObservers),O=u.next();!O.done;O=u.next())O=O.value,O()}}};
zC.prototype.processSignal=zC.prototype.processSignal;zC.prototype.parkOrScheduleJob=zC.prototype.parkOrScheduleJob;zC.prototype.onAny=zC.prototype.onAny;_.V4("ytsignals.getInstance",_.TC);zC.prototype.onAny=zC.prototype.onAny;zC.prototype.parkOrScheduleJob=zC.prototype.parkOrScheduleJob;zC.prototype.processSignal=zC.prototype.processSignal;var niC=new Set(["eop","eocs","dl","pcl"]);_.MS=new _.Vi("MINIPLAYER_SERVICE");var IC,viH,iIC;IC=function(f,R,u){var O=_.xN.getInstance();if(!oif){var c=new Fal;var h=void 0,l=_.Tf("ID_TOKEN");l&&c.isAvailable()&&(h=new Lt(c,"yt-queue"+l));oif=new B3f(h)}c=oif;h=_.TC();this.JSC$10801_actionRouter=O;this.pageManager=f;this.playlistManager=R;this.JSC$10801_playlistNetworkManager=u;this.storage=c;this.signals=h;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Mk=function(){if(!viH){var f=_.vh(),R=f.resolve(_.Y8(_.sz)),u=f.resolve(_.Y8(_.DM)),O=f.resolve(_.Y8(_.Ji));f=f.resolve(_.JN);viH=new IC(R,O,new Cd2(u,f))}return viH};
iIC=function(f,R,u){if(u){var O;if(((O=f.responsePlaylistData)==null?void 0:O.playlistId)!==u)return}f.responsePlaylistData&&(u=VoP(R,f.responsePlaylistData),f.responsePlaylistData=(0,_.dq.unsafeClone)(f.responsePlaylistData),va5(f.responsePlaylistData,u));u=f.temporaryItems.findIndex(function(c){return c.videoId===R});
u>-1&&f.temporaryItems.splice(u,1);_.P1(f,_.U1(f,f.response?f.response.autoplayRenderer:void 0))};
_.rEl=function(f,R){if(f.responsePlaylistData){var u=Y1t(R,f.responsePlaylistData);va5(f.responsePlaylistData,u);if(f.queueProxy){var O=f.queueProxy;u<0||(O.videoIds.splice(u,1),u<O.currentIndex&&O.JSC$10747_setCurrentIndex(O.currentIndex-1),O.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:R}),b5(O))}}_.P1(f,_.U1(f,f.response?f.response.autoplayRenderer:void 0))};
IC.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.P1(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
IC.prototype.setPlaylistData=function(f,R,u){this.temporaryItems=[];this.listId=f;this.responsePlaylistData=R;_.P1(this,_.U1(this,u))};
var fAC=function(f){return(f==null?0:f.playlistId)?f.playlistId:"PPSV"},RuC=function(f){return f&&f.playlistId?f.playlistId==="PPSV"?!0:znh(_.sP().getState().entities,f.playlistId):!1};
IC.prototype.isPlayingOfflineVideo=function(){return this.response?RuC(this.response):!1};
IC.prototype.closeMiniplayer=function(f){var R=this.queueProxy&&this.queueProxy.size()<=1,u=_.vh().resolve(_.MS);if(!this.queueProxy||R)this.queueProxy&&this.clearQueue(),u.close(!0);else{u.pipController.getWindow()&&window.focus();R=this.responsePlaylistData;var O=this.temporaryItems.length+(R&&R.contents?R.contents.length:0);R=_.Fa("QUEUE_CLEARED_UNPLURALIZED")||_.wA("QUEUE_CLEARED",O);R=_.vW(R);u=_.Fa("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");O=_.Fa("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.wA("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",O);var c=_.Fa("MINIPLAYER_CLOSE",void 0,"Close"),h=_.Fa("CANCEL",void 0,"Cancel");_.D2(this.JSC$10801_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.S8(u),dialogMessages:[_.S8(O)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.S8(c),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
R]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.S8(h)}}}}}}],f)}};
_.U1=function(f,R){var u={},O=f.response;u.autoplayRenderer=R;if(!f.responsePlaylistData&&!f.temporaryItems.length)return!O||!O.hasRelatedVideoData&&_.E("kevlar_prefetch_data_augments_network_data")||(u.playerData={rvs:O.relatedVideoArgs,endScreenRenderer:O.endScreenRenderer}),u;u.playerData={};if(f.index===void 0)return _.TL(Error("Ff")),u;u.panel=f.responsePlaylistData?(0,_.dq.unsafeClone)(f.responsePlaylistData):{titleText:_.S8(_.Fa("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
R=u.panel;if(R.contents)for(var c=_.Z(f.temporaryItems),h=c.next();!h.done;h=c.next())R.contents.push({playlistPanelVideoRenderer:h.value});f.queueProxy&&O&&O.playingVideo&&O.playingVideoId&&!na2(O.playingVideoId,u.panel)&&(R=O.playingVideo,c=u.panel,h=f.index,c.contents&&c.contents.splice(h===void 0?0:h,0,{playlistPanelVideoRenderer:R}));O&&O.playingVideoId&&(R=f.index,c=u.panel,R=!c.contents||R>=c.contents.length?void 0:c.contents[R].playlistPanelVideoRenderer,R&&R.videoId===O.playingVideoId||(R=
VoP(O.playingVideoId,u.panel),f.index=R!==-1?R:f.index?f.index-1:0));R=sCn(f.index+1,u.panel);c=void 0;f.index>0&&(c=sCn(f.index-1,u.panel));if(c||R)u.autoplayRenderer=S1l(R,c,u.autoplayRenderer);!R&&(O==null?0:O.relatedVideoArgs)&&(u.playerData.rvs=O.relatedVideoArgs);O=O?O.playlistIndexOffset:0;f.queueProxy?fX5(u.panel,f.index,O,ga5,!0,!0,!0):fX5(u.panel,f.index,O);u.playerData.playlistPanelRenderer=u.panel;return u};
IC.prototype.openToast=function(f){_.vh().resolve(_.MS).openToast(f,_.Fa("ADDED_TO_QUEUE",void 0,"Added to queue"))};
IC.prototype.isMiniplayerActive=function(){return _.vh().resolve(_.MS).isMiniplayerActive()};
_.P1=function(f,R){f.playlistManager.setAutoplayRenderer(R.autoplayRenderer||null);f.playlistManager.setPlaylistData(R.panel||null);R.playerData&&f.playlistManager.setPlayerPlaybackControlData(R.playerData)};var usP="#";var uCl={},Oet={},cUI={},XOI={},huE={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:(uCl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",uCl),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:(Oet.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Oet),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:(cUI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",cUI),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:(XOI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",XOI),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 U7P=[{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:huE},{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:huE}}];var pTn;_.ZM=[[["YzgzeTRlaDRna2luZCNibW8=","anpxa252YWx1ZSMzMTZkbWV4"],"M3Y4b3hBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCNoM3FneWk0"]];
pTn=[[["bWFyeSNtNnV2NnloOTJ6ZmJwcmk=",null],[null,["dWx0cy1yZW5kZXJlciM1NTNhcHZhN3Byc3V5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVz","dmk3emVzdHlsZS1zY29wZSMxaWw0dGY5"]],["czhidWFtYXN0aGVhZC1hZCN2ZHo5N3Vw",["dWJ0cmp0bXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjM2V5NHE="]],[null,["ZDdwdzdwbHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjaWo2a2c=","amJ2YzZzdHlsZS1zY29wZSNmeXlyeWNz"]],[null,["OHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjbHk1Y3l0c2RlOGE=","aTF1eDZqMm9zdHlsZS1zY29wZSM3Zng="]],[null,["NDZsZzFoNXdqMXh5dGQtYWQtc2xvdC1yZW5kZXJlciN3"]]],[["ejVwenZoZzRwbGF5ZXItYWRzI2t3NnI=",
null]]];_.hN=["YWxsYmFja3MjcW0zNTRiNXRnemw5Z2xvYmFsQw==","OXR5azd1ODNmb25BYm5vcm1hbGl0eURldGVjdGVkI2tybw==","cCNxdjdmOWNqeTAzbnRvbkFkU2tp","I3pkMGR4MTVpOGFvMHJhd19wbGF5ZXJfcmVzcG9uc2U=","bG90cyMybGwweWdkNXkzMHJhZFM="];_.eo="YWxsYmFja3MjcW0zNTRiNXRnemw5Z2xvYmFsQw== OXR5azd1ODNmb25BYm5vcm1hbGl0eURldGVjdGVkI2tybw== cCNxdjdmOWNqeTAzbnRvbkFkU2tp I3pkMGR4MTVpOGFvMHJhd19wbGF5ZXJfcmVzcG9uc2U= bHRpcGxlX3NraXBzX2tzI3QzcmZmMWg0b2xwN3dlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== ZiM0Nmo2OWR0NDVyejZhYl9zYV9l bG90cyMybGwweWdkNXkzMHJhZFM=".split(" ");var GC;GC=function(f,R,u){this.xDi=f;this.isAsync=R;this.jhX=u};
_.Yq2=[new GC("b.f_",!1,0),new GC("j.s_",!1,2),new GC("r.s_",!1,4),new GC("e.h_",!1,6),new GC("i.s_",!0,8),new GC("s.t_",!1,10),new GC("p.h_",!1,12),new GC("s.i_",!1,14),new GC("f.i_",!1,16),new GC("a.b_",!1,18),new GC("a.o_",!1),new GC("g.o_",!1,22),new GC("p.i_",!1,24),new GC("p.m_",!1),new GC("n.k_",!0,20),new GC("i.f_",!1),new GC("a.s_",!0),new GC("m.c_",!1),new GC("n.h_",!1,26),new GC("o.p_",!1),new GC("m.p_",!0,28),new GC("o.a_",!1),new GC("d.p_",!1),new GC("e.i_",!1)].reduce(function(f,R){f[R.xDi]=
R;return f},{});var ZeE=function(){};
ZeE.prototype.flush=function(f,R){f=f===void 0?[]:f;R=R===void 0?!1:R;if(_.E("enable_client_streamz_web")){f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=Qwt(u.value),this.rootSpec&&_.OO(u,2,this.rootSpec),u={serializedIncrementBatch:_.fE(u.JSC$7615_serializeBinary())},_.Jr("streamzIncremented",u,{sendIsolatedPayload:R})}};
var h75=function(){};
_.y(h75,ZeE);var lAC=function(f){var R=new K2Y;var u=new Zmi;u=_.FH(u,1,"botguard");f=_.FH(u,2,f);this.rootSpec=_.cz(R,1,qhl,f)};
_.y(lAC,ZeE);var Oy,klI=new Map;var z7t,lX7,Qrn,qq0,Ff7,LfB,Hk7,d7B;z7t=2;lX7=2;Qrn=2;qq0=2;Ff7=2;LfB=2;Hk7=2;d7B=new auY;var qli,AUC,aAE;qli=function(){this.ongoingFlowNonces=new Map};
_.qL=function(){AUC||(AUC=new qli);return AUC};
_.kS=function(f,R,u){return{eventType:{flowEventNamespace:f,flowEventType:R},metadata:u,statusCode:void 0,csn:void 0,can:void 0}};
_.ik0=function(f,R){var u=_.qL(),O=aAE(u,R,!0);_.Kn(u,f,R,O)};
_.Kn=function(f,R,u,O){f={flowNonce:O||aAE(f,u),flowType:u,flowEventType:R.eventType};R.metadata&&(f.flowMetadata=R.metadata);R.statusCode!==void 0&&(f.flowEventStatus=R.statusCode);R.csn&&(f.csn=R.csn);R.can&&(f.can=R.can);_.Jr("flowEvent",f,void 0)};
aAE=function(f,R,u){u=u===void 0?!1:u;var O=f.ongoingFlowNonces.get(R);if(!O||u)O=jd(16),f.ongoingFlowNonces.set(R,O);return O};_.Fpi=new Aul;var u7h={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_JOURNEY_WATCH:"learning_journey_watch"};var B1=function(f,R,u,O,c,h,l){u=u===void 0?!1:u;O=O===void 0?!1:O;h=h===void 0?_.Mk():h;this.hasRun=!1;this.ox3=f;this.bUI=R;this.xU9=u;this.fromHistory=O;this.previousVideoId=c;this.mUr=h;this.tempData=l;this.wJs=new _.F1E};
_.y(B1,nN);B1.prototype.validate=function(f){return!(!f.data.playerResponse||f.data.page!=="watch"&&f.data.page!=="learning_journey_watch"&&f.data.page!=="shorts"||this.hasRun)};
B1.prototype.handle=function(f){var R=this,u=_.t(f.endpoint,_.$7),O=_.t(f.endpoint,_.Ey);if(_.E("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.ox3.resolve();else{var c={};u?c.watch_endpoint=u:O&&(c.watch_endpoint=O,O.endTimeSeconds&&(c.end=O.endTimeSeconds));f.data.page==="watch"?(f.data.filler||this.xU9||(_.zT("cfg"),_.xN.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(c,wOG(this,f.endpoint)),_.E("enable_masthead_quartile_ping_fix")&&Object.assign(c,m$l(this)),Object.assign(c,void 0),f.data.forceExternalPlaylist&&(c.external_list=!0)):f.data.page==="shorts"?_.xN.getInstance().triggerAction("yt-start-loading-shorts"):f.data.page==="learning_journey_watch"&&_.xN.getInstance().triggerAction("yt-start-loading-learning-journey");if(u=this.bUI()){try{u.loadVideoWithPlayerResponse(f.data.playerResponse,c),u.getPlayerPromise().then(this.ox3.resolve)}catch(h){_.TL(h),
this.ox3.resolve()}this.hasRun=!0;u.getPlayerPromise().then(function(h){h.addEventListener("onAbnormalityDetected",function(){var l=f.data.playerResponse,K=h.getVideoData().cpn;Hk7=0;_.Kpf=K;if(K=VGn(l))R.wJs.increment("IN_PLAYER"),_.AN(5),_.E("ab_st_vid_ks")?h.pauseVideo(!0):h.stopVideo(),l.playabilityStatus=Object.assign({},l.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:K}}),l.videoDetails=void 0,_.xN.getInstance().triggerOptionalAction("yt-updated-playability-status",
l.playabilityStatus)})})}else _.Ih(Error("If"))}};
var wOG=function(f,R){var u=_.t(R,_.$7);if(R&&u&&u.playlistId&&u.videoId&&(f=f.mUr,f.queueProxy?(f=f.queueProxy,u=f.listId===u.playlistId?f.attributionData.get(u.videoId):void 0):u=void 0,u))return{queue_info:u}},m$l=function(f){var R;
if((R=f.tempData)==null?0:R.adpings)return{adpings:f.tempData.adpings}};var oC=function(f,R,u){this.hasRun=!1;this.yFX=f;this.pTf=R;this.vK9=u};
_.y(oC,nN);oC.prototype.validate=function(f){return!!_.dq.getValueByKeys.apply(null,[f.data].concat(_.yq(GHC)))};
oC.prototype.handle=function(f){var R=this;this.yFX.promise.then(function(){var u=f.data;var O=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(T3i))),c=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(UDC))),h=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(IZI)));var l=(l=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(HIl))))?{videoId:l.videoId,thumbnail:l.thumbnail,title:l.title?_.S8(l.title):void 0,shortBylineText:l.author?_.S8(l.author):void 0}:void 0;var K=void 0;_.E("web_get_playlist_id_from_current_endpoint_ks")||
(K=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(MXl))));var q=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(egk))),F=_.dq.getValueByKeys.apply(null,[u].concat(_.yq(Pgf))),w=!!q||!!F&&!!F.results&&F.results.length>0,m=0;c&&c.currentIndex&&c.localCurrentIndex&&(m=c.currentIndex-c.localCurrentIndex);c&&c.playlistId&&(K=c.playlistId);u={rawResponse:u,autoplayRenderer:O,hasRelatedVideoData:w,playingVideo:l,playingVideoId:h,playlistPanelRenderer:c,playlistId:K,playlistIndex:c&&c.currentIndex,relatedVideoArgs:q,
endScreenRenderer:F,playlistIndexOffset:m};a:{O=R.vK9;c=R.pTf;O.response=u;if(RuC(u))O.downloadPlaylistProxy&&O.downloadPlaylistProxy.getPlaylistId()===fAC(u)||(O.downloadPlaylistProxy=new N3k(fAC(u),O.setPlaylistData.bind(O),O.isPlayingOfflineVideo.bind(O))),O.responsePlaylistData=O.downloadPlaylistProxy.getPlaylistData(),O.listId=fAC(u),O.index=0;else if(u.playlistPanelRenderer&&u.playlistId&&u.autoplayRenderer)u.playlistId.startsWith("TLPQ")?O.queueProxy?O.listId===u.playlistId?(O.index=u.playlistIndex,
O.responsePlaylistData=u.playlistPanelRenderer,O.queueProxy.JSC$10747_setCurrentIndex(O.index)):u.playingVideoId&&O.index!==void 0&&c.clientParams.autoSaveToQueue&&(O.index+=1,O.queueProxy.JSC$10747_setCurrentIndex(O.index),O.queueProxy.addVideos([u.playingVideoId],{},O.index)):(O.queueProxy=new _.pi(O.JSC$10801_playlistNetworkManager,u.playlistId,O.setPlaylistData.bind(O),O.clearQueue.bind(O),_.iiB(u.playlistPanelRenderer),O.storage),O.responsePlaylistData=u.playlistPanelRenderer,O.listId=u.playlistId,
O.index=u.playlistIndex):(O.index=u.playlistIndex,O.listId!==u.playlistId&&O.clearQueue(),O.responsePlaylistData=u.playlistPanelRenderer,O.listId=u.playlistId,O.playlistProxy=new zgC(O.JSC$10801_playlistNetworkManager,u.playlistId,O.setPlaylistData.bind(O),_.iiB(u.playlistPanelRenderer)));else if(!O.queueProxy)O.responsePlaylistData=void 0;else if(u.playingVideoId&&c.clientParams.autoSaveToQueue){if(O.index===void 0){_.TL(Error("Ef"));O.clearQueue();break a}O.queueProxy.videoIds.includes(u.playingVideoId)||
(O.index+=1,O.queueProxy.JSC$10747_setCurrentIndex(O.index),O.queueProxy.addVideos([u.playingVideoId],{},O.index))}_.P1(O,_.U1(O,O.response.autoplayRenderer))}})};var Q3k=function(f,R){R=R===void 0?_.Mk():R;ka.call(this);this.de.push(new oC(this.wJ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},R));this.de.push(new B1(this.wJ,f,!1,!1));_.E("web_response_commands_chunk_processor")&&this.de.push(new Ki)};
_.y(Q3k,ka);Q3k.prototype.processChunk=function(f){f&&f.data.player===void 0&&this.wJ.resolve();ka.prototype.processChunk.call(this,f)};var xa=function(f,R){f=f===void 0?{layer:0}:f;this.hasRun=!1;this.createScreenConfig=f;this.xr3=R};
_.y(xa,nN);xa.prototype.validate=function(f){return!(this.hasRun||!f.endpoint)};
xa.prototype.handle=function(f){var R=_.wR(),u,O,c=(O=_.t((u=f.endpoint)==null?void 0:u.commandMetadata,_.vc))==null?void 0:O.rootVe;this.xr3&&c?_.O1(R,c,this.xr3,this.createScreenConfig):Zql(R,f.endpoint,this.createScreenConfig);this.hasRun=!0};var So=function(f,R){this.hasRun=!1;this.hVG=f;this.previousVideoId=R};
_.y(So,nN);So.prototype.validate=function(f){return _.E("kevlar_continue_playback_without_player_response")&&(f=_.t(f.endpoint,_.$7),(f==null?0:f.videoId)&&this.previousVideoId&&(f==null?void 0:f.videoId)===this.previousVideoId&&(f==null?0:f.continuePlayback))?!1:this.hVG.qx3===0};
So.prototype.handle=function(f){_.xN.getInstance().triggerAction("yt-stop-old-player",f.data,!0)};var Wpf=function(f){f=f===void 0?{layer:0}:f;ka.call(this);this.de.push(new So(this));this.de.push(new xa(f));this.de.push(new l5(f))};
_.y(Wpf,ka);var EcF=function(){this.hasRun=this.hasRun=!1};
_.y(EcF,nN);EcF.prototype.validate=function(f){return!this.hasRun&&!(!f.data.csn||!f.data.rootVe)};
EcF.prototype.handle=function(f){this.hasRun=!0;_.Hc(f.data.csn,f.data.rootVe,3)};var tMi=function(){nN.apply(this,arguments)};
_.y(tMi,nN);tMi.prototype.validate=function(f){return!!f.data.preconnect};
tMi.prototype.handle=function(f){_.JH("bc");f=_.Z(f.data.preconnect);for(var R=f.next();!R.done;R=f.next())R=R.value,(new Image).src=R};var CPE=function(f,R,u){u=u===void 0?{layer:0}:u;ka.call(this);this.de.push(new B1(this.wJ,f));this.de.push(new xa(u));this.de.push(new l5(u))};
_.y(CPE,ka);var yUI=function(f,R,u,O,c){u=u===void 0?{layer:0}:u;O=O===void 0?_.Mk():O;ka.call(this);var h=!!R&&!!R.clientParams&&!!R.clientParams.miniplayer;h&&this.de.push(new EcF);this.de.push(new oC(this.wJ,R,O));this.de.push(new tMi);var l,K;this.de.push(new B1(this.wJ,f,h,!((l=R.clientParams)==null||!l.fromHistory),(K=R.clientParams)==null?void 0:K.previousVideoId,O,R.tempData));var q;this.de.push(new So(this,(q=R.clientParams)==null?void 0:q.previousVideoId));var F;(F=R.clientParams)!=null&&F.fromHistory||
(u.layer||(u=Object.assign({},u,{layer:h?3:0})),this.de.push(new xa(u,c)),this.de.push(new l5(u)));_.E("web_response_commands_chunk_processor")&&this.de.push(new Ki)};
_.y(yUI,ka);var $a,LpA;$a={};
_.d$l=($a["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$a["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$a["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$a["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$a["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$a["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$a["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$a);_.gt=new _.Mx("yt-edu");_.NpA=function(){this.JSC$10902_eduDisplayedThisLoad_={}};
LpA=function(f){var R=_.NpA.getInstance();var u=_.RV("kevlar_tooltip_impression_cap");R=u&&parseInt(_.gt.get(f+"-impression")||0,10)>=u||_.gt.get(f+"-dismissed")?!1:(u=_.d$l[f])&&!R.JSC$10902_eduDisplayedThisLoad_[u.setKey||f]&&(u.titleText&&_.Fa(u.titleText)||u.bodyText&&_.Fa(u.bodyText))?!0:!1;if(!R)return null;R=_.d$l[f];if(!R)return null;u=R.bodyText?_.Fa(R.bodyText):void 0;var O=R.titleText?_.Fa(R.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:R.position,popup:{bubbleHintRenderer:{text:O?
_.S8(O):void 0,detailsText:u?_.S8(u):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.S8(_.Fa("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:f}}]}}}}}}}},{eduImpressionAction:{key:f}}]};
_.ik(_.NpA);var rCP=!1;for(var beH="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),pOt=[],s1=6;s1>=1;s1--)pOt.push({columnCount:s1,query:s1==1?0:s1*2*107-4+32,className:"grid-"+s1+"-columns",width:s1*2*107+"px"});_.D$H=function(f){this.actionRouter_=f=f===void 0?_.xN.getInstance():f;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.j3H(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.j3H=function(f){var R=f.miniGuideVisible_?72:0,u=f.documentWidth_-(f.guidePersistentAndVisible_?240:R);return pOt.find(function(O){return u>O.query})};
_.ik(_.D$H);var JUF=function(){var f=this;this.JSC$10914_keyboardInUse=!1;document.addEventListener("keydown",function(){f.onKeydown()});
document.addEventListener("mousedown",function(){f.JSC$10914_keyboardInUse=!1})},zuf;
JUF.prototype.isKeyBoardInUse=function(){return this.JSC$10914_keyboardInUse};
JUF.prototype.onKeydown=function(){this.JSC$10914_keyboardInUse=!0};var TpI,Ya;_.ni=new _.Mx("yt-mentions");_.Vp=function(){};
TpI=function(f,R){return Ya(R,"drag-to-reorder-edu-displayed")};
Ya=function(f,R,u,O,c,h){u=u===void 0?"OPEN_POPUP_POSITION_TOP":u;if(R){if(_.ni.get(R))return;_.ni.set(R,!0,O)}if(c&&h!==void 0){R=Number(_.ni.get(c)||0);if(R>=h)return;_.ni.set(c,R+1)}return[{openPopupAction:{popupType:"HINT",position:u,popup:{bubbleHintRenderer:{detailsText:f,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.ik(_.Vp);var HeY,IAi,MMH;HeY=function(f,R,u,O){this.JSC$10924_taskManager_=f;this.onFulfilled_=typeof R==="function"?R:null;this.onRejected_=typeof u==="function"?u:null;this.JSC$10924_context_=O};
IAi=function(f,R){f.onFulfilled_&&_.mQ(f.JSC$10924_taskManager_,function(){f.onFulfilled_.call(f.JSC$10924_context_,R)})};
MMH=function(f,R){f.onRejected_&&_.mQ(f.JSC$10924_taskManager_,function(){f.onRejected_.call(f.JSC$10924_context_,R)})};
_.v1=function(f){this.JSC$10927_taskManager_=f;this.callbacks_=[]};
_.v1.prototype.then=function(f,R,u){this.callbacks_.push(new HeY(this.JSC$10927_taskManager_,f,R,u));return this};
_.v1.prototype.onSuccess=function(f){this.callbacks_.forEach(function(R){IAi(R,f)})};
_.v1.prototype.onFailure=function(f){this.callbacks_.forEach(function(R){MMH(R,f)})};
_.v1.prototype.cancel=function(){this.callbacks_.length=0};
CrI(_.v1);_.ceq=null;_.LL=new _.Vi("ACTIVITY_TOKEN");var i5=function(f,R){this.serviceId=new E$F(f,R)};
i5.prototype.toString=function(){return this.serviceId.toString()};var PPk=function(){this.internalMap={}};
_.X=PPk.prototype;_.X.contains=function(f){return Object.prototype.hasOwnProperty.call(this.internalMap,f)};
_.X.get=function(f){if(this.contains(f))return this.internalMap[f]};
_.X.set=function(f,R){this.internalMap[f]=R};
_.X.getKeys=function(){return Object.keys(this.internalMap)};
_.X.remove=function(f){delete this.internalMap[f]};var rt=function(){this.mappings=new PPk;this.errorCallbacks=new Set};
rt.prototype.getModuleId=function(f){return f.serviceId.getModuleId()};
rt.prototype.get=function(f){var R=this.mappings.get(f.toString());return U$Y(this,R,f)};
rt.prototype.getMultipleAsync=function(){var f=_.yK.apply(0,arguments),R=this,u=f.map(function(q){return R.getModuleId(q)}),O=f.map(function(q){return R.mappings.get(q.toString())}).filter(function(q){return q});
if(O.length===f.length)return _.ll(O.map(function(q,F){return U$Y(R,q,f[F])}));
var c=JK().loadMultiple(u);O=_.EF(u.map(function(q){return c[q]}));
var h=document.hidden,l=-1,K=_.RV("get_async_timeout_ms",-1);K>-1&&(l=setTimeout(function(){_.Ih(new _.ts("Module timeout.",u,h,document.hidden))},K));
return _.to(O.then(function(){return f.map(function(q){return U$Y(R,R.mappings.get(q.toString()),q)})}).thenCatch(function(q){for(var F=_.Z(R.errorCallbacks),w=F.next();!w.done;w=F.next())w=w.value,w(q);
throw q;}),function(){clearTimeout(l)})};
rt.prototype.registerService=function(f,R){this.mappings.set(f.toString(),{type:"mapping",value:R});return f};
var U$Y=function(f,R,u){switch(R.type){case "mapping":return R.value;case "factory":return R=R.value(),f.mappings.set(u.toString(),{type:"mapping",value:R}),R;default:return _.km(R)}};
rt.prototype.onLoadError=function(f){var R=this;this.errorCallbacks.add(f);return function(){R.errorCallbacks.delete(f)}};
_.fk=new rt;var k50=/^[a-zA-Z0-9_\-]{11}$/;var K97=_.wB(function(){var f,R;return(R=(f=window).matchMedia)==null?void 0:R.call(f,"(prefers-reduced-motion: reduce)").matches});var euC=_.wB(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 f=_.Ph("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");f||(f=_.mD("VIDEO"),_.V4("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
f));return!!(f&&f.canPlayType&&f.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var mAP=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Rr;Rr=function(){this.tokenJars={};if(this.cookiesEnabled=_.Q4()){var f=_.wU.get("CONSISTENCY",void 0);f&&GlC(this,{encryptedTokenJarContents:f})}};
_.W90=function(){Rr.instance||(Rr.instance=new Rr);return Rr.instance};
Rr.prototype.handleResponse=function(f,R){if(!R)throw Error("Of");var u,O;R=((u=R.innerTubeRequest.context)==null?void 0:(O=u.request)==null?void 0:O.consistencyTokenJars)||[];var c;(f=(c=f.responseContext)==null?void 0:c.consistencyTokenJar)&&this.replace(R,f)};
Rr.prototype.replace=function(f,R){f=_.Z(f);for(var u=f.next();!u.done;u=f.next())delete this.tokenJars[u.value.encryptedTokenJarContents];GlC(this,R)};
var GlC=function(f,R){if(R.encryptedTokenJarContents&&(f.tokenJars[R.encryptedTokenJarContents]=R,typeof R.expirationSeconds==="string")){var u=Number(R.expirationSeconds);setTimeout(function(){delete f.tokenJars[R.encryptedTokenJarContents]},u*1E3);
f.cookiesEnabled&&_.m$("CONSISTENCY",R.encryptedTokenJarContents,u,void 0,!0)}};var BpC,uU;BpC=window.location.hostname.split(".").slice(-2).join(".");_.pn=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var f=_.Tf("LOCATION_PLAYABILITY_TOKEN");_.Tf("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=ocY(this))&&(f=this.localStorage.get("yt-location-playability-token"));f&&(this.locationPlayabilityToken=f,this.mostRecentPosition=void 0)};
_.pn.getInstance=function(){uU=_.Ph("yt.clientLocationService.instance");uU||(uU=new _.pn,_.V4("yt.clientLocationService.instance",uU));return uU};
_.pn.prototype.setLocationOnInnerTubeContext=function(f){f.client||(f.client={});if(this.mostRecentPosition)f.client.locationInfo||(f.client.locationInfo={}),f.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),f.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),f.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),f.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)f.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.pn.prototype.handleResponse=function(f){var R;f=(R=f.responseContext)==null?void 0:R.locationPlayabilityToken;f!==void 0&&(this.locationPlayabilityToken=f,this.mostRecentPosition=void 0,_.Tf("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=ocY(this))&&this.localStorage.set("yt-location-playability-token",f,15552E3):_.m$("YT_CL",JSON.stringify({loctok:f}),15552E3,BpC,!0))};
var ocY=function(f){return f.localStorage===void 0?new _.Mx("yt-client-location"):f.localStorage};
_.pn.prototype.clearLocationPlayabilityToken=function(f){f==="TVHTML5"?(this.localStorage=ocY(this))&&this.localStorage.remove("yt-location-playability-token"):_.hae("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.pn.prototype.getCurrentPositionFromGeolocation=function(){var f=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Pf"));var R=!1,u=1E4;_.Tf("INNERTUBE_CLIENT_NAME")==="MWEB"&&(R=!0,u=15E3);return new Promise(function(O,c){navigator.geolocation.getCurrentPosition(function(h){f.mostRecentPosition=h;O(h)},function(h){c(h)},{enableHighAccuracy:R,
maximumAge:0,timeout:u})})};
_.pn.prototype.createUnpluggedLocationInfo=function(f){var R={};f=f.coords;if(f==null?0:f.latitude)R.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)R.longitudeE7=Math.floor(f.longitude*1E7);if(f==null?0:f.accuracy)R.locationRadiusMeters=Math.round(f.accuracy);return R};
_.pn.prototype.createLocationInfo=function(f){var R={};f=f.coords;if(f==null?0:f.latitude)R.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)R.longitudeE7=Math.floor(f.longitude*1E7);return R};var x$G=function(){};
_.X=x$G.prototype;
_.X.JSC$10994_getRequest=function(f,R,u){R=R===void 0?{}:R;u=u===void 0?ysf:u;var O=R;if(this.isNavigationCommand()){var c,h=(c=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:c.url;O=_.Eln(f.clickTrackingParams,!0,!1,h,this.JSC$10994_getClientScreen(O))}else O=_.Eln(f.clickTrackingParams,!1,this.includeCsn);O={context:O};if(c=this.getExtension(f))return this.JSC$10994_buildRequest(O,c,R),c=this.getApiUrl(f),h=Object.assign({},{command:f},this.getRequestConfig(f,R)),O={input:c,requestShell:x7(c),
innerTubeRequest:O,config:h},O.config.authStrategy?O.config.authStrategy.identity=u:O.config.authStrategy={identity:u},(f=this.JSC$10994_getRequestKey(f,R))&&!O.config.requestKey&&(O.config.requestKey=f),O;f=new _.ts("Error: Failed to create Request from Command.",f);_.TL(f)};
_.X.getApiUrl=function(f){var R=_.Ve(this.getApiPaths(f)),u;(f=(u=_.t(f.commandMetadata,_.vc))==null?void 0:u.apiUrl)&&(R=f);return nIt(sf5(R))};
_.X.isNavigationCommand=function(){return!1};
_.X.JSC$10994_getClientScreen=function(){};
_.X.JSC$10994_getRequestKey=function(){};
_.X.getRequestConfig=function(){};
_.Vy.Object.defineProperties(x$G.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Oq=function(){};
_.y(Oq,x$G);Oq.prototype.JSC$11001_getStoreKey=function(){};
Oq.prototype.JSC$10994_getRequestKey=function(f,R){R=R===void 0?{}:R;return this.JSC$11001_getStoreKey(f,R)};var $$C;_.cT=function(f,R,u){var O=u&&u>0?u:0;u=O?Date.now()+O*1E3:0;if((O=O?(0,_.SlF)():$$C())&&window.JSON){typeof R!=="string"&&(R=JSON.stringify(R,void 0));try{O.set(f,R,u)}catch(c){O.remove(f)}}};
_.Xs=function(f){var R=$$C(),u=(0,_.SlF)();if(!R&&!u||!window.JSON)return null;try{var O=R.get(f)}catch(c){}if(typeof O!=="string")try{O=u.get(f)}catch(c){}if(typeof O!=="string")return null;try{O=JSON.parse(O,void 0)}catch(c){}return O};
_.hC=function(f){try{var R=$$C(),u=(0,_.SlF)();R&&R.remove(f);u&&u.remove(f)}catch(O){}};
_.SlF=_.wB(function(){try{var f=new av0;var R=f.isAvailable()?f:null}catch(u){return null}return R?new _.cc(R):null});
$$C=_.wB(function(){var f=new Fal;return f.isAvailable()?new _.cc(f):null});var lk=new _.Vi("ENTITY_STATE_TOKEN"),ZX=new _.Vi("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var gcC=XMLHttpRequest.prototype.fetch,s3C=gcC&&gcC.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!sb?!0:!1;var lU=function(f){this.JSC$11006_storeWithEntities=f};
_.y(lU,Oq);_.X=lU.prototype;_.X.getApiPaths=function(){return KfF};
_.X.getExtension=function(f){return _.t(f,_.$7)||_.t(f,_.Ey)||_.t(f,KNC)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11001_getStoreKey=function(f){if((_.E("kevlar_cache_on_ttl_player")||_.E("mweb_enable_shorts_innertube_player_prefetch")||_.E("mweb_use_new_history_manager")||_.E("web_shorts_prefetch_service_enabled"))&&(f=this.getExtension(f))&&f.videoId){var R={videoId:f.videoId};f.playlistId&&(R.playlistId=f.playlistId);f.playerParams&&(R.params=f.playerParams);return _.Sd("player",R)}};
_.X.JSC$10994_getClientScreen=function(f){var R;return((R=f.contentPlaybackContext)==null?void 0:R.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.X.JSC$10994_buildRequest=function(f,R,u){if(_.E("enable_interstitial_entity_check")){var O=this.JSC$11006_storeWithEntities;if(R.videoId)for(var c=_.Z(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),h=c.next();!h.done;h=c.next()){h=h.value;var l;var K=void 0,q=void 0,F=R.videoId,w=h;(l=O)?(F=_.l$(F+w,"interstitialInteractionStateEntity"),l=(K=(q=_.kZ(l.getState().entities,"interstitialInteractionStateEntity",F))==null?void 0:q.primaryButtonClicked)!=null?K:!1):l=!1;if(l)switch(h){case "CONTENT_CHECK_REQUIRED":R.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":R.racyCheckOk=!0}}}R.videoId&&(f.videoId=R.videoId);R.playlistId&&(f.playlistId=R.playlistId);R.index!==void 0&&(f.playlistIndex=R.index+1);R.playerParams&&(f.params=R.playerParams);"startTimeSeconds"in R&&R.startTimeSeconds&&(_.E("enable_player_request_builder_start_time_floor")?f.startTimeSecs=Math.floor(R.startTimeSeconds):f.startTimeSecs=R.startTimeSeconds);u.contentPlaybackContext&&(f.playbackContext={contentPlaybackContext:u.contentPlaybackContext});u.prefetchPlaybackContext&&
(f.playbackContext=Object.assign({},f.playbackContext,{prefetchPlaybackContext:u.prefetchPlaybackContext}),f.context.request||(f.context.request={}),f.context.request.isPrefetch=!0);f.playbackContext||(f.playbackContext={});O=euC();f.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!O,supportXhr:s3C};u.overrideMutedAtStart&&(f.overrideMutedAtStart=u.overrideMutedAtStart);f.racyCheckOk=!!R.racyCheckOk;f.contentCheckOk=!!R.contentCheckOk;!_.E("captions_prefs_killswitch")&&(u=(u=_.Xs("yt-player-caption-language-preferences"))?
u:[],u==null?0:u.length)&&(f.captionParams={viewerSelectedCaptionLangs:u})};
_.X.getRequestConfig=function(f){f=this.JSC$11001_getStoreKey(f);var R;f&&(R={storeStrategy:{storeKey:f}});_.E("web_log_player_watch_next_ticks")&&(R=R||{},R.requestTick="ps_s",R.responseTick="ps_r");return R};
lU[nW]=[lk];var kd=function(){};
_.y(kd,Oq);_.X=kd.prototype;_.X.getApiPaths=function(){return BjY};
_.X.getExtension=function(f){return _.t(f,_.$7)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11001_getStoreKey=function(f){if((f=this.getExtension(f))&&f.videoId){var R={videoId:f.videoId};f.playlistId&&(R.playlistId=f.playlistId);f.index&&(R.index=f.index);f.params&&(R.params=f.params);return _.Sd("next",R)}};
_.X.JSC$10994_getClientScreen=function(f){var R;return((R=f.contentPlaybackContext)==null?void 0:R.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.X.JSC$10994_buildRequest=function(f,R,u){R.videoId&&(f.videoId=R.videoId);R.playlistId&&(f.playlistId=R.playlistId);R.params&&(f.params=R.params);R.index!==void 0&&(f.playlistIndex=R.index);f.racyCheckOk=!(!u.racyCheckOk&&!R.racyCheckOk);f.contentCheckOk=!!R.contentCheckOk;u.contentPlaybackContext&&(f.autonavState=u.contentPlaybackContext.autonavState,f.playbackContext={vis:u.contentPlaybackContext.vis,lactMilliseconds:u.contentPlaybackContext.lactMilliseconds});u.prefetchPlaybackContext&&(f.context.request||
(f.context.request={}),f.context.request.isPrefetch=!0);_.E("captions_hats_killswitch")||(R=_.Qu().getFlag(65),R=R!=null?!R:!1,u=!!_.Xs("yt-player-sticky-caption"),f.captionsRequested=R&&u)};
_.X.getRequestConfig=function(f){f=this.JSC$11001_getStoreKey(f);var R;f&&(R={storeStrategy:{storeKey:f}});_.E("web_log_player_watch_next_ticks")&&(R=R||{},R.requestTick="wn_s",R.responseTick="wn_r");return R};
var Kk=function(){};
_.y(Kk,Oq);Kk.prototype.getApiPaths=function(){return BjY};
Kk.prototype.getExtension=function(f){return _.t(f,_.Tw)};
Kk.prototype.JSC$10994_buildRequest=function(f,R){R.token&&(f.continuation=R.token)};var q7=function(f,R){this.playerRequestBuilder=f;this.watchNextRequestBuilder=R};
_.y(q7,Oq);q7.prototype.getApiPaths=function(){return riI};
q7.prototype.getExtension=function(f){return _.t(f,_.$7)};
q7.prototype.isNavigationCommand=function(){return!0};
q7.prototype.JSC$10994_buildRequest=function(f,R,u){f.playerRequest={};this.playerRequestBuilder.JSC$10994_buildRequest(f.playerRequest,R,u);_.E("web_streaming_watch")&&(f.watchNextRequest={},this.watchNextRequestBuilder.JSC$10994_buildRequest(f.watchNextRequest,R,u))};
q7[nW]=[lU,kd];var ncA;_.AC=new _.Vi("SHORTS_CONTROLLER_TOKEN");ncA=new _.Vi("SHORTS_STATE_STORE_TOKEN");var ar=function(f,R){var u=_.yK.apply(2,arguments);f=f===void 0?0:f;_.ts.call(this,R,u);this.errorType=f;Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(ar,_.ts);var VMf,YlE,iet,zPt,eg,RS7,u_C,Rti,l7H,XPf,cqf;VMf=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(f){return f+"="}).join("|"));
YlE=RegExp(".*\\?.*playnext=1.*");_.Fs=function(f,R,u,O){this.watchEndpointMap=f;this.reelWatchEndpointMap=R;this.innerTubeTransportService=u;this.fetchPbj=O};
iet=function(f,R,u){var O=_.vh().resolve(_.Y8(vcl));_.Fs.instance=new _.Fs(f,R,u,O)};
_.rUf=function(f,R){var u=_.RV("web_pbj_log_warning_rate",0);u=u>0&&Math.random()<u;var O;if((O=_.t(R.commandMetadata,_.vc))==null||!O.rootVe)return u&&_.Ih(Error("Rf")),!1;var c;O=(c=_.t(R.commandMetadata,_.vc))==null?void 0:c.url;if(!O)return u&&_.Ih(Error("Sf")),!1;if(YlE.test(O))return!0;if(VMf.test(O))return u&&_.Ih(Error("Tf`"+O)),!1;if(_.t(R,_.$7)){if(!(f.watchEndpointMap.watchNext&&f.watchEndpointMap.player||_.E("kevlar_fetch_initial_data_op_watch_client")))return u&&_.Ih(Error("Kf")),!1;
f=_.RV("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;_.t(R,_.$7)?ZqP(R)?R=!0:(f&&_.Ih(Error("Lf")),R=!1):(f&&_.Ih(Error("Kf")),R=!1);return R}if(_.t(R,_.Ey))return lsh(R);if(_.t(R,_.Dl))return!0;f=_.Uz(f.innerTubeTransportService,R);!f&&u&&_.TL(Error("Uf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(R)});return f};
zPt=function(f,R,u,O,c,h){R={url:R};if(u==null?0:u.itct)R.parentTrackingParams=u.itct;var l=_.Ve(Edf);return _.Dn(f.innerTubeTransportService,R,l).then(function(K){(K=K.endpoint)||(K=_.Ai);(u==null?0:u.itct)&&K&&!K.trackingParams&&(K.trackingParams=u.itct);var q=QC(K);return eg(f,K,u,O,q,c,h)})};
eg=function(f,R,u,O,c,h,l,K){K=K===void 0?{}:K;if(f.fetchPbj&&!_.rUf(f,R)&&!_.E("force_one_platform")){K=f.fetchPbj(R);var q=_.ll(K.then(function(x){if(!x)throw Error("Vf");l(q)||h(R,x);return x}));
return q}var F,w,m={rootVe:(F=_.t(R.commandMetadata,_.vc))==null?void 0:F.rootVe,url:(w=_.t(R.commandMetadata,_.vc))==null?void 0:w.url,endpoint:R,page:c};if(_.t(R,_.$7)){var W,C={contentPlaybackContext:_.yC(u,(W=_.t(R.commandMetadata,_.vc))==null?void 0:W.url,O)},d=_.BM();_.E("web_streaming_watch")&&window.TextDecoderStream?(K=f7f(f.innerTubeTransportService,R,C,function(x){!m.response&&x.content&&(m.response=x.content);!m.playerResponse&&x.player&&(m.playerResponse=x.player);h(R,m)}),F=VDl(R),F.length&&
(m.preconnect=F,h(R,m)),Rti(K,d,m).catch(function(x){x instanceof ar&&x.errorType===2&&u_C(f,R,C,m,h,l,d)})):u_C(f,R,C,m,h,l,d);
return d.promise}if(_.t(R,_.Ey)){var p;if(((p=_.t(R,_.Ey))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var J=_.BM();_.OYA(_.vh().resolve(_.AC),R).then(function(x){cqf(f,u,O,c,h,J,x)});
return J.promise}K=_.ll();var M;F={contentPlaybackContext:_.yC(u,(M=_.t(R.commandMetadata,_.vc))==null?void 0:M.url,O)};(M=f.reelWatchEndpointMap.player)&&(M=M().JSC$10994_getRequest(R,F))&&(K=_.Dn(f.innerTubeTransportService,M.innerTubeRequest,M.input,R.clickTrackingParams,M.config));M=_.ll();(w=f.reelWatchEndpointMap.reelItemWatch)&&(w=w().JSC$10994_getRequest(R))&&(M=_.Dn(f.innerTubeTransportService,w.innerTubeRequest,w.input,R.clickTrackingParams,w.config));w=_.ll();(W=f.reelWatchEndpointMap.reelWatchSequence)&&
_.t(R,_.Ey).sequenceParams&&(F=W().JSC$10994_getRequest(R,F))&&(w=_.Dn(f.innerTubeTransportService,F.innerTubeRequest,F.input,R.clickTrackingParams,F.config));F=_.ll(m);W=_.BM();XPf(R,F,K,M,w,h,l,W);return W.promise}var P;if(_.t(R,OqB)&&((P=_.t(R.commandMetadata,_.vc))==null?0:P.url))return K=QDP(_.oj(p8().location.href),_.oj(_.t(R.commandMetadata,_.vc).url)).toString(),zPt(f,K,u,O,h,function(){return!1});
if(_.t(R,_.Dl))return h(R,m),_.ll(m);if(_.Uz(f.innerTubeTransportService,R)){K=Object.assign({},{tempData:u,disableCache:u.disableCache},K);var g=_.e6(f.innerTubeTransportService,R,K).then(function(x){m.response=x;l(g)||h(R,m);return m});
return g}return _.ll(m)};
_.ZYk=function(f,R,u,O){if(_.t(R,_.$7)||_.t(R,_.Ey)&&(_.E("mweb_enable_shorts_innertube_player_prefetch")||_.E("kevlar_enable_shorts_prefetch_in_sequence"))||_.t(R,KNC)&&_.E("web_enable_prefetching_videos_on_home")){var c,h={contentPlaybackContext:_.yC(u,(c=_.t(R.commandMetadata,_.vc))==null?void 0:c.url,O),prefetchPlaybackContext:Aeh(u)},l,K,q;if(((l=_.t(R,_.$7))==null?void 0:(K=l.watchEndpointSupportedPrefetchConfig)==null?void 0:(q=K.prefetchHintConfig)==null?void 0:q.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(u=
f.watchEndpointMap.watchNext)if(h=u().JSC$10994_getRequest(R,h))return Promise.resolve(_.Dn(f.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(m){return m}))}else if(_.t(R,_.Ey)&&_.E("web_prefetch_riw_for_next_video")){if(u=f.reelWatchEndpointMap.reelItemWatch)if((u=u().JSC$10994_getRequest(R,h))&&_.Dn(f.innerTubeTransportService,u.innerTubeRequest,u.input,void 0,u.config).then(function(m){return m}),u=f.reelWatchEndpointMap.player)if(h=u().JSC$10994_getRequest(R,
h))return Promise.resolve(_.Dn(f.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(m){return m}))}else if(u=f.watchEndpointMap.player)if(h=u().JSC$10994_getRequest(R,h))return Promise.resolve(_.Dn(f.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(m){return m}))}else if(_.Uz(f.innerTubeTransportService,R)){var F={tempData:u},w=htf(f.innerTubeTransportService,R);
return w?new Promise(function(m,W){var C,d;return _.k(function(p){if(p.nextAddress==1)return _.A(p,w,2);if(p.nextAddress!=4)return C=p.yieldResult,C.JSC$11001_getStoreKey(R,F)?_.A(p,_.e6(f.innerTubeTransportService,R,F),4):(W(new _.ts("Prefetching request builder with no store key.",R)),p.jumpTo(0));d=p.yieldResult;m(d);_.KG(p)})}):Promise.reject(new _.ts("Prefetching unregistered request builder.",R))}return Promise.reject(new _.ts("No request builder available to prefetch endpoint.",R))};
RS7=function(f,R){var u,O,c;if(_.t(R,_.$7)){var h=f.watchEndpointMap.watchNext;h&&(u=h());(f=f.watchEndpointMap.player)&&(O=f())}else if(_.t(R,_.Ey))(h=f.reelWatchEndpointMap.reelItemWatch)&&(u=h()),(h=f.reelWatchEndpointMap.player)&&(O=h()),(f=f.reelWatchEndpointMap.reelWatchSequence)&&(c=f());else{a:{f=Ozn(R,f.innerTubeTransportService.endpointMap);if(f!==void 0)if(typeof f.then==="function")_.TL(new _.ts("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",R));else break a;
f=void 0}f&&(u=f)}var l,K,q;return{content:(l=u)==null?void 0:l.JSC$11001_getStoreKey(R),player:(K=O)==null?void 0:K.JSC$11001_getStoreKey(R),reelSequence:(q=c)==null?void 0:q.JSC$11001_getStoreKey(R)}};
u_C=function(f,R,u,O,c,h,l){var K=_.ll(),q=f.watchEndpointMap.player;_.E("web_streaming_player")&&(q=Cn(q7));q&&(q=q().JSC$10994_getRequest(R,u))&&(K=_.Dn(f.innerTubeTransportService,q.innerTubeRequest,q.input,R.clickTrackingParams,q.config));q=_.ll();var F=f.watchEndpointMap.watchNext;F&&(u=F().JSC$10994_getRequest(R,u))&&(q=_.Dn(f.innerTubeTransportService,u.innerTubeRequest,u.input,R.clickTrackingParams,u.config));f=_.ll(O);l7H(R,f,K,q,c,h,l)};
Rti=function(f,R,u){return _.k(function(O){if(O.nextAddress==1)return _.A(O,f,2);R.resolve(u);_.KG(O)})};
l7H=function(f,R,u,O,c,h,l){var K,q,F,w,m;_.k(function(W){switch(W.nextAddress){case 1:return _.A(W,R,2);case 2:K=W.yieldResult;if(h(l.promise))return l.resolve(K),W.return();c(f,K);q=VDl(f);if(!q.length){W.jumpTo(3);break}return _.A(W,R,4);case 4:K.preconnect=q,c(f,K);case 3:return _.cl(W,5),_.A(W,u,7);case 7:F=W.yieldResult;_.Bf(W,6);break;case 5:return w=_.ku(W),l.reject(w),W.return();case 6:if(F===void 0)return K.reload=!0,c(f,K),l.resolve(K),W.return();if(h(l.promise))return l.resolve(K),W.return();
K.playerResponse=F;c(f,K);_.cl(W,8);return _.A(W,O,10);case 10:m=W.yieldResult;_.Bf(W,9);break;case 8:_.ku(W);case 9:if(m===void 0)return K.response={responseContext:{}},l.resolve(K),W.return();if(h(l.promise))return l.resolve(K),W.return();K.response=m;c(f,K);l.resolve(K);_.KG(W)}})};
XPf=function(f,R,u,O,c,h,l,K){var q,F,w,m,W,C;_.k(function(d){switch(d.nextAddress){case 1:return _.A(d,R,2);case 2:q=d.yieldResult;if(l(K.promise))return K.resolve(q),d.return();h(f,q);F=VDl(f);if(!F.length){d.jumpTo(3);break}return _.A(d,R,4);case 4:q.preconnect=F,h(f,q);case 3:return _.cl(d,5),_.A(d,u,7);case 7:w=d.yieldResult;_.Bf(d,6);break;case 5:return m=_.ku(d),K.reject(m),d.return();case 6:if(w===void 0)return q.reload=!0,h(f,q),K.resolve(q),d.return();if(l(K.promise))return K.resolve(q),
d.return();q.playerResponse=w;h(f,q);_.cl(d,8);return _.A(d,O,10);case 10:W=d.yieldResult;_.Bf(d,9);break;case 8:_.ku(d);case 9:if(W===void 0)return q.response={responseContext:{}},K.resolve(q),d.return();if(l(K.promise))return K.resolve(q),d.return();q.response=W;h(f,q);_.cl(d,11);return _.A(d,c,13);case 13:C=d.yieldResult;_.Bf(d,12);break;case 11:_.ku(d);case 12:if(l(K.promise))return K.resolve(q),d.return();q.reelWatchSequenceResponse=C;h(f,q);K.resolve(q);_.KG(d)}})};
cqf=function(f,R,u,O,c,h,l){var K,q,F,w,m,W;_.k(function(C){if((K=l)==null||!K.replacementEndpoint)return h.reject(),C.return();q=l.replacementEndpoint;(F=_.t(q,_.Ey))?(l.sequenceContinuation&&(F.sequenceParams=l.sequenceContinuation),w=_.vh().resolve(_.AC),m=F.sequenceParams,kUf(w,q)&&delete F.sequenceParams,W=eg(f,q,R,u,O,c,function(){return!1}),W.then(function(d){return _.k(function(p){if(p.nextAddress==1)return KhC(w,{reelWatchEndpoint:{sequenceParams:m}},d),_.A(p,0,2);
h.resolve(d);_.KG(p)})})):h.reject();
_.KG(C)})};_.qif=function(f){if(f.validatedFragments_.length==0)return null;if(!f.mergedPrefetchedData_){for(var R=[],u=_.Z(f.validatedFragments_),O=u.next();!O.done;O=u.next()){O=_.Z(f.fragmentConfiguration_[O.value].graftedKeys);for(var c=O.next();!c.done;c=O.next())(c=f.prefetchedData_[c.value].trackingParams)&&R.push(c)}f.mergedPrefetchedData_={};Object.assign(f.mergedPrefetchedData_,f.prefetchedData_,{clientSideGrafts:R})}return f.mergedPrefetchedData_};var Aqk;_.wj=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Aqk=function(f,R,u){if(_.Xd5(R))return f.prefetchCache_.get(_.hV7(R,u))};_.mf=new _.Vi("NAVIGATION_TOKEN");var a7C=function(f){var R=this;var u=u===void 0?yen():u;var O=O===void 0?_.vh().resolve(_.mf):O;this.onePickCommand=f;this.JSC$11104_playlistNetworkManager=u;this.navigationManager=O;this.videoPickerBuilder=_.t$q("yt-addtoplaylist");_.GPF(z8C(Tvf(J1G(this.videoPickerBuilder.setTitle(f.modalTitle).setSize(1E3).addView(Mrt()).addView(INl())).addView("youtube"),f.selectButtonLabel)),function(c){R.handleAction(c)})};
a7C.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
a7C.prototype.handleAction=function(f){var R=this;if(f&&this.onePickCommand.listId&&f.action==="picked"&&f.docs){var u=[];f.docs.forEach(function(O){u.push({addedVideoId:O.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11104_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,u).then(function(){_.E("playlist_add_video_hard_reload_killswitch")?R.navigationManager.reload():Fht(R.navigationManager)})}};var wPk=function(){if(this.constructor===wPk)throw new TypeError("Wf");};
_.X=wPk.prototype;_.X.dispose=function(){};
_.X.disconnect=function(){};
_.X.reconnect=function(){};
_.X.observe=function(f,R,u){return{element:f,option:u}};
_.X.unobserveByKey=function(){};var dAn=function(f,R){R=R===void 0?0:R;wPk.call(this);this.viewroot=f;this.defaultPrescanHeight=R;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),f?{root:f,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.y(dAn,wPk);_.X=dAn.prototype;_.X.dispose=function(){this.disconnect();this.handlers.clear()};
_.X.disconnect=function(f){this.isConnected=!1;this.pauseObservingUntilReconnect=f===void 0?!1:f;this.observer.disconnect();f=_.Z(this.prescanObservers.values());for(var R=f.next();!R.done;R=f.next())R.value.disconnect()};
_.X.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var f=_.Z(this.handlers),R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;var O=u.next().value;u=!1;O=_.Z(O.keys());for(var c=O.next();!c.done;c=O.next())if((c=c.value)&&c.state==="prescan"){u=!0;break}u&&mCt(this,R).observe(R);this.observer.observe(R)}}};
_.X.handleObserveEvent=function(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;var u=this.handlers.get(R.target);if(u){var O=R.isIntersecting;u=_.Z(u);for(var c=u.next();!c.done;c=u.next()){var h=_.Z(c.value);c=h.next().value;h=h.next().value;c&&(c.state==="visible"&&O||c.state==="hidden"&&!O)&&(h(R.target,c.state),c.calledOnce&&this.unobserveByKey({element:R.target,option:c}))}}}};
_.X.handlePrescanEvent=function(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;var u=this.handlers.get(R.target);if(u&&R.isIntersecting){u=_.Z(u);for(var O=u.next();!O.done;O=u.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;O&&O.state==="prescan"&&(c(R.target,O.state),O.calledOnce&&this.unobserveByKey({element:R.target,option:O}))}}}};
_.X.observe=function(f,R,u){var O=(O=this.handlers.get(f))&&O.has(u)?{element:f,option:u}:void 0;if(O)return O;O={element:f,option:u};this.handlers.has(f)||this.handlers.set(f,new Map);var c=this.handlers.get(f);c&&!c.has(u)&&c.set(u,R);this.pauseObservingUntilReconnect||(u.state==="prescan"&&mCt(this,f).observe(f),this.observer.observe(f));return O};
_.X.unobserveByKey=function(f){var R=this.handlers.get(f.element);if(R&&R.has(f.option)){R.delete(f.option);if(f&&f.option.state==="prescan")for(var u=_.Z(this.prescanObservers.values()),O=u.next();!O.done;O=u.next())O.value.unobserve(f.element);R.size===0&&(this.handlers.delete(f.element),this.observer.unobserve(f.element))}};
var mCt=function(f,R){var u=f.defaultPrescanHeight;R.hasAttribute("prescan-height")&&(R=Number(R.getAttribute("prescan-height")),isNaN(R)||(u=R));if(f.prescanObservers.has(u))return f.prescanObservers.get(u);R="-0.1px -0.1px "+u+"px -0.1px";R=new IntersectionObserver(f.handlePrescanEvent.bind(f),f.viewroot?{root:f.viewroot,rootMargin:R}:{rootMargin:R});f.prescanObservers.set(u,R);return R};var QWF=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],WhG=function(){var f,R=this;this.JSC$11121_actionRouter=f=f===void 0?_.xN.getInstance():f;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return R.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return R.visibilityObservedElementHandlerKeys}}},EyC,CSA,NGE;
WhG.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.E("kevlar_use_vimio_behavior")&&_.Tf("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=N2P())};
WhG.prototype.dispose=function(){this.visibilityMonitor&&_.w4(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
WhG.prototype.handleVisibilityRefreshed=function(){for(var f=_.Z(this.targetMap.entries()),R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;_.tbG(this,R,u)}};
_.dCk=function(f,R,u){CSA(f,u);var O=_.yqk(f,R);O.element=u;f.targetedElements.set(u,R);_.tbG(f,R,O)};
CSA=function(f,R){var u=f.targetedElements.get(R);if(u){var O=f.targetMap.get(u);O&&(delete O.element,f.targetMap.set(u,O));f.targetedElements.delete(R);f.visibilityObserver&&f.visibilityObservedElementHandlerKeys&&(u=f.visibilityObservedElementHandlerKeys.get(R))&&(f.visibilityObserver.unobserveByKey(u),f.visibilityObservedElementHandlerKeys.delete(R))}};
_.tbG=function(f,R,u){var O=u.action,c=u.element;c&&O&&(QWF.includes(R)||_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||f.visibilityMonitor&&f.visibilityMonitor.isNodeVisible(c)?NGE(f,R,u):f.visibilityObserver&&(f.visibilityObservedElementHandlerKeys||(f.visibilityObservedElementHandlerKeys=new WeakMap),O=f.visibilityObserver.observe(c,function(){NGE(f,R,u);f.visibilityObservedElementHandlerKeys.delete(c)},{calledOnce:!0,
state:"visible"}),f.visibilityObservedElementHandlerKeys.set(c,O)))};
NGE=function(f,R,u){var O=u.action;(u=u.element)&&O&&(_.D2(f.JSC$11121_actionRouter,[O],u),f.targetMap.delete(R),f.targetedElements.delete(u),f.triggeredTargets.add(R))};
_.yqk=function(f,R){var u=f.targetMap.get(R);u||(u={},f.targetMap.set(R,u));return u};
_.Q3=function(){EyC||(EyC=new WhG);return EyC};var LhC=document.createElement("div");LhC.style.touchAction="pan-down";var L9B=LhC.style.touchAction==="pan-down";var bYH,pPA;bYH=function(){this.hammerFn=bff();this.JSC$11129_screenManager=_.wR();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.dx(83615);_.Xl(this.JSC$11129_screenManager,this.ve);bqt()};
_.WT=function(){pPA||(pPA=new bYH);return pPA};
bYH.prototype.registerTouchEvents=function(f,R,u){var O=_.yK.apply(3,arguments),c=this.hammerFn(f,{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&&c.set({touchAction:u});this.nodeManagerMapping.set(f,c);var h=
pde(R);O=_.Z(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;if(l.includes("swipe")||l.includes("pinch")||l.includes("pan"))l.includes("swipe")?c.get("swipe").set({enable:!0,direction:h,velocity:.2}):l.includes("pinch")?c.get("pinch").set({enable:!0}):l.includes("pan")&&(c.get("pan").set({enable:!0,direction:h}),c.get("swipe").set({enable:!0,direction:h,velocity:.2}),c.get("swipe").recognizeWith("pan"));jWl(this,f,c,l)}};
var jWl=function(f,R,u,O){u.on(O,function(c){if(O.includes("pinch"))f.lastPinchTime=Date.now();else if(O.includes("swipe")&&Date.now()-f.lastPinchTime<400)return;c.pointerType!=="mouse"&&(c=O==="doubletap"?{coordinates:c.center}:O.includes("pan")?c:O.includes("swipe")?{target:c.target}:{},R.dispatchEvent(new CustomEvent(O,{bubbles:!0,composed:!0,detail:c})))})};
bYH.prototype.unregisterTouchEvents=function(f){var R=_.yK.apply(1,arguments),u=this.nodeManagerMapping.get(f);if(u){R=_.Z(R);for(var O=R.next();!O.done;O=R.next())u.off(O.value);this.nodeManagerMapping.delete(f);f.style.touchAction="unset"}};var DCi=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var jD5=null;var JqG=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},sDn=function(){JqG.instance||(JqG.instance=new JqG);
return JqG.instance},nlD=function(f){var R=f.networkEvents;
f.networkEvents=[];return _.E("enable_network_monitoring")?R:[]};var ztf;ztf={};_.TGi=vf("yt-serviceworker-metadata",{objectStores:(ztf.auth={addedAtVersion:1},ztf["resource-manifest-assets"]={addedAtVersion:2},ztf),shared:!0,upgrade:function(f,R){R(1)&&UL(f,"resource-manifest-assets");R(2)&&UL(f,"auth")},
version:2});var Is7=self.location.origin+"/";M$0([/\.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\//]);M$0([/purge_shell=1/]);var HYf=void 0;HYf=HYf===void 0?[]:HYf;for(var I7C=[],MbY=_.Z(wfC),PSC=MbY.next();!PSC.done;PSC=MbY.next())I7C.push({key:PSC.value});for(var UCC=_.Z(HYf),etC=UCC.next();!etC.done;etC=UCC.next())I7C.push(etC.value);var GUk,z$=_.Oe==null?void 0:(GUk=_.Oe.performance)==null?void 0:GUk.memory,eVt=!1,V$2={},ole={},T$={},HL=navigator;var Eq=function(f){this.JSC$11173_expiringStorage=new dU(f)};
Eq.prototype.set=function(f,R,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$11173_expiringStorage.set(f,R,u)};
Eq.prototype.get=function(f){return this.JSC$11173_expiringStorage.get(f)};
Eq.prototype.remove=function(f){this.JSC$11173_expiringStorage.remove(f)};var OI2=_.Sg(["https://www.youtube.com/",""]),cE7=_.Sg(["https://studio.youtube.com/",""]),kH7="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",hgP=null,F_t;var BGF=_.Sg(["https://www.youtube.com/iframe_api"]),tC=function(){this.playerResolver_=_.BM();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Fe;this.playbackDurationSeconds_=0},oyi=function(f){var R=function(){return window.YT&&typeof window.YT.ready==="function"};
if(R())return _.ll(window.YT);var u=_.BM(),O=_.mD("SCRIPT");O.onload=O.onreadystatechange=function(){O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||(O.onload=_.Fe,O.onreadystatechange=_.Fe,O.onerror=_.Fe,R()?u.resolve(window.YT):u.reject(new _.ts("Failed to load the iframe player library","script.onload",O.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
O.onerror=function(c){O.onload=_.Fe;O.onreadystatechange=_.Fe;O.onerror=_.Fe;u.reject(new _.ts("Failed to load the iframe player library","script.onerror",c&&c.target&&c.target.src))};
_.UO(O,_.R0(BGF));f.insertBefore(O,f.firstChild);return u.promise},xCf=function(f,R,u){var O,c;
_.k(function(h){switch(h.nextAddress){case 1:return f.playbackEndedCallback_=u,_.cl(h,2),_.A(h,oyi(R.parentElement||null),4);case 4:O=h.yieldResult;_.Bf(h,3);break;case 2:return c=_.ku(h),c instanceof _.ts&&c.args&&c.args[0]=="script.onerror"?_.Ih(c):_.TL(c),h.return();case 3:O.ready(function(){return new O.Player(R,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:f.onPlayerReady_.bind(f),onStateChange:f.onPlayerStateChange_.bind(f),
onCueRangeExit:f.onCueRangeExit_.bind(f)}})}),_.KG(h)}})};
_.X=tC.prototype;_.X.getPlayerPromise=function(){return this.playerPromise_};
_.X.onPlayerReady_=function(f){this.playerResolver_.resolve(f.target)};
_.X.onPlayerStateChange_=function(f){if(f.data==YT.PlayerState.PLAYING){f=f.target;var R=f.getCurrentTime();f.addCueRange("playback",R,R+this.playbackDurationSeconds_)}};
_.X.onCueRangeExit_=function(f){f.data=="playback"&&(f.target.stopVideo(),this.playbackEndedCallback_())};
_.X.stopVideo=function(){this.playerPromise_.then(function(f){f.stopVideo()})};
var Sii=function(f){f.playerVars_&&f.playerPromise_.then(function(R){typeof R.cueVideoByPlayerVars!="function"?_.Ih(new _.ts("vmh: player API not ready","cueVideoByPlayerVars",typeof R.cueVideoByPlayerVars)):R.cueVideoByPlayerVars(f.playerVars_)})};
tC.prototype.playVideo=function(){var f=this;this.playerVars_&&this.playerPromise_.then(function(R){typeof R.loadVideoByPlayerVars!="function"?(R=new _.ts("vmh: player API not ready","loadVideoByPlayerVars",typeof R.loadVideoByPlayerVars),_.TL(R)):R.loadVideoByPlayerVars(f.playerVars_)})};
var $Cf=function(f,R,u,O,c){R&&(u===void 0&&(u=0),O===void 0&&(O=0),f.playbackDurationSeconds_=O/1E3,f.playerVars_={adformat:"17_8",videoId:R,suggestedQuality:"hd720",startSeconds:u/1E3,player_params:c})};
tC.prototype.mute=function(){this.playerPromise_.then(function(f){f.mute()})};
tC.prototype.unMute=function(){this.playerPromise_.then(function(f){f.unMute()})};var gyk=function(f,R){var u=Pc();f||(f="unknown");R||(R="unknown");f="MAIN_APP_WEB_PAGE_TYPE_"+f.toUpperCase();f in lqC||(f="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");R="MAIN_APP_WEB_REQUEST_TYPE_"+R.toUpperCase();R in k0A||(R="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.qS(u,{mainAppWeb:{pageType:f,requestType:R,isShellLoad:_.Hh("IS_SHELL_LOAD",!1)}})},sWI={start:function(){_.qS(T45(),{mainAppWeb:_.BL()})},
success:function(){_.Ad(T45(),"SUCCESS")},
failure:function(){_.Ad(T45(),"FAILURE")},
cancelled:function(){_.Ad(T45(),"CANCELLED")}};var nyE,Vbi,Cgh;nyE=_.Sg(["/sw.js"]);Vbi=_.Sg(["/sw.js?0"]);_.YiA=_.R0(nyE);Cgh=_.R0(Vbi);var vyF=function(){var f=Error.apply(this,arguments);this.message=f.message;"stack"in f&&(this.stack=f.stack)};
_.y(vyF,Error);_.Sk.prototype.load=function(f){this.megabloxUrl_=_.Tf("YPC_MB_URL");_.Um(this.megabloxUrl_,(0,_.NG)(function(){f&&f()},this))};
_.YRe=function(f,R,u,O,c,h,l,K,q,F,w){_.dDq(q);f.load((0,_.NG)(function(){try{var m=h?h:_.Tf("HL"),W=_.Tf("SESSION_INDEX");_.qV0("client",function(){bGk("59",{helpCenterPath:"/youtube",locale:m,window:window}).JSC$7980_loadChatSupport({authuser:String(W)})})}catch(C){throw o1(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),c&&c(C),_.TL(C),C;
}iYG(this,R,u,O,c,h,l,K,q,F,w)},f))};
_.Sk.prototype.openFixFlowDialog=function(f,R,u,O){this.load((0,_.NG)(function(){try{rqG(this,_.Ph("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(f).withIntegratorCallback(R).load(u,O)}catch(c){throw _.TL(c),c;}},this))};
var rqG=function(f,R,u,O){var c=R.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.E("enable_window_constrained_buy_flow_dialog")&&(c=c.usingPopupStyle(_.Ph("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));O&&(c=c.usingCloseCallback(O));R.bootstrap.fromPaymentsUrl(f.megabloxUrl_);f=R.bootstrap.asMashupMode(c);u=u?u:_.Tf("HL");f.usingGaiaIndex(_.Tf("SESSION_INDEX")).usingLocale(u).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.E("enable_google_payments_buyflow_material2_style_web")?
f.usingStyle(":m2;pc=#444;ac=#065fd4"):f.usingStyle(":md;pc=#444;ac=#065fd4");return f},iYG=function(f,R,u,O,c,h,l,K,q,F,w){try{var m=_.Ph("payments.business.integration");
if(!m)throw new vyF("payments.business.integration is undefined");var W=m.standaloneContextAuthId.forUserId(),C=K;_.E("enable_setting_app_inert_when_buy_flow_opens")&&(C=K?function(){L_X(!1);K()}:function(){L_X(!1)});
var d=rqG(f,m,h,C);l&&d.usingServerAnalyticsEventHandler(l);var p=d.inStandaloneContext(W).buyFlow(function(J){if(J&&(!J.integratorData||J.integratorData===""||J.error))if(J.error!=null)if(String(J.error)==="-1")_.N37(q);else{var M=String(J.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";o1(10,w,M,J.debugCode);_.xS(M,q,J.debugCode);M=new _.ts("PAYMENT_ERROR_MESSAGE::"+J.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
J.internalErrorDetails);_.TL(M)}else o1(10,w,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.xS("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",q,"EMPTY_INTEGRATOR_DATA"),_.TL(Error("ag"));u&&(L_X(!1),u(J))}).withEncryptedParameters(R);
F&&p.withClientParameters(S_0(_.R10(F)));p.load(function(){o1(24,w);_.TT("ttc",void 0,"commerce_transaction");f22("commerce_transaction");O&&(L_X(!0),O())},function(J){if(J==null?0:J.debugCode)var M=J==null?void 0:J.debugCode;
else if(!J||(J==null?0:J.debugCode))M="EMPTY_LOAD_FAILURE_ERROR",_.TL(Error(M));else{M="EMPTY_LOAD_FAILURE_DEBUG_CODE";var P=new _.ts("LOAD_FAILURE:"+J.message," DEBUG_CODE:"+M);_.TL(P)}o1(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M);_.xS("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",q,M);_.TL(J);c&&c(J)})}catch(J){throw J instanceof vyF&&(o1(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),c&&c(J)),_.TL(J),J;
}};var f5f;f5f=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.sJn=function(f,R){R=R===void 0?!1:R;f=f5f.test(f)?_.lh(f):null;!R&&window.payments||!f?(f=_.BM(),R=f.promise,f.resolve()):R=_.bz(f,{attributes:{"data-payments-main":"",id:"payment-lib"}});return R};var RBI;RBI=_.Sg(["//www.googletagmanager.com/gtm.js?id=",""]);_.Ck=function(f,R){_.vM(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:R}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Tf("GL")}),R=_.mD("SCRIPT"),R.async=!0,_.UO(R,_.R0(RBI,f)),R.id="gtm",f=document.getElementsByTagName("script"),f.length==0?document.head.appendChild(R):(f=f[0],f.parentNode.insertBefore(R,f)))};
_.y3=function(f){if(f=JSON.parse(f))window.dataLayer=window.dataLayer||[],window.dataLayer.push(f)};var uWH,OOC;uWH=_.Sg(["https://clients2.google.com/gr/gr_sync.js"]);_.$Jn=function(){};
_.$Jn.prototype.init=function(){if(OOC()){var f=_.BM();f.resolve();return f.promise}return _.bz(_.R0(uWH)).then(function(){if(!OOC())throw Error("bg");},function(){throw Error("cg");
})};
_.gXt=function(){if(!OOC())return"";var f=window.google.gr;f.init({async:{schedule:"sync"},merchantId:"youtube"});f.start();f=f.finish();return f==null?"":f};
OOC=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.U=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.y(_.U,PolymerFakeBaseClassWithoutHtml);_.w_=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.y(_.w_,PolymerFakeBaseClassWithoutHtml);var bIt=window.ShadyDOM;var Zee,XOq,klq,Kpn,AU5,aAe,dj,uu;Zee=_.E("enable_shadydom_free_scoped_query_methods");XOq=_.E("enable_shadydom_free_scoped_node_methods");klq=_.E("enable_shadydom_free_scoped_readonly_properties_batch_one");Kpn=_.E("enable_shadydom_free_parent_node");AU5=_.E("enable_shadydom_free_children");aAe=_.E("enable_shadydom_free_last_child");dj=window.ShadyDOM;_.hl=dj&&dj.noPatch&&dj.wrap?dj.wrap:dj?function(f){return dj.patch(f)}:function(f){return f};
uu=function(f){if(f instanceof ShadowRoot)this.host=(0,_.hl)(f.host),this.root=f;else if(f.$$){this.host=(0,_.hl)(f);var R;this.root=(R=f.root)!=null?R:this.host}else if(f.polymerController){this.host=(0,_.hl)(f);var u;this.root=(u=this.host.shadowRoot)!=null?u:this.host}else this.root=this.host=(0,_.hl)(f)};
hue();lAh();Fpn();wO0();qln();var cgi={querySelector:function(f,R){R=j6B(R,nn(f));f=_.VC(f);return YS(f).prototype.querySelector.call(f,R)},
querySelectorAll:function(f,R){R=j6B(R,nn(f));f=_.VC(f);return YS(f).prototype.querySelectorAll.call(f,R)}},Xpi={appendChild:function(f,R){var u=nn(f),O=_.sy(R);
return _.OeX(_.VC(f),u?_.ij(R,u,O):R)},
cloneNode:function(f,R){var u=_.sy(f);f=_.VC(f);R=YS(f).prototype.cloneNode.call(f,R);return u?R4(R,u):R},
contains:function(f,R){var u=nn(f),O=_.sy(R);return u!==O?!1:cUq(f,R)},
insertBefore:function(f,R,u){var O=nn(f),c=_.sy(R);f=_.VC(f);R=O?_.ij(R,O,c):R;return YS(f).prototype.insertBefore.call(f,R,u)},
removeChild:function(f,R){var u=nn(f);f=_.VC(f);R=u?R4(R,u):R;return YS(f).prototype.removeChild.call(f,R)},
replaceChild:function(f,R,u){var O=nn(f),c=_.sy(R);R=O?_.ij(R,O,c):c?R4(R,c):R;u=O?R4(u,O):u;f=_.VC(f);return YS(f).prototype.replaceChild.call(f,R,u)},
getRootNode:function(f,R){R=R===void 0?{composed:!0}:R;var u;if(((u=R)!=null?u:{}).composed)f=GHh(f);else{R=f;for(f=JEq(f);f;)R=f,f=T3n(f);f=R}return f}},Q3D=klq?{firstChild:vi7,
nextSibling:nih,previousSibling:Y7X,firstElementChild:iIh,lastElementChild:fAh,nextElementSibling:s65,previousElementSibling:VX5,childNodes:Ruh}:{};Kpn&&(Q3D.parentNode=gih);AU5&&(Q3D.children=uCP);aAe&&(Q3D.lastChild=rEP);Zee&&m$P(cgi);XOq&&m$P(Xpi);WpB();var Ecl=function(f){this.node=f instanceof ShadowRoot?f.host:f};
tMn();CPe();var Np2=new WeakMap;var be7=Symbol("ud");var zuB=new Set(["tap","track","down","up"]),Tpq=_.E("pbcm_fi_query_decorators");var N7=function(){return _.w_.apply(this,arguments)||this};
_.y(N7,_.w_);_.X=N7.prototype;_.X.getState=function(){return this.store.getState()};
_.X.dispatch=function(f){this.store.dispatch(f)};
_.X.beforeRegister=function(){if(this&&typeof this==="object"){var f;var R=!!this.useSignals||!((f=this.polymerController)==null||!f.useSignals)}else R=!1;if(!R&&this.properties)for(R=_.Z(Object.keys(this.properties)),f=R.next();!f.done;f=R.next()){var u=f.value;f=this.properties[u];if(f.selector){if(f.computed)throw Error("ig");u=["reduxPropertiesRecomputeTrigger",'"'+u+'"'].concat(_.yq(f.selectorArgs||[])).join(",");f.computed="recomputeReduxSelector("+u+")"}}};
_.X.attached=function(){var f=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){f.reduxPropertiesRecomputeTrigger++}));
_.E("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.X.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.X.recomputeReduxSelector=function(f,R){var u=_.yK.apply(2,arguments),O=this.properties[R].selector;if(!O)throw Error("gg`"+R);return O.apply(null,[this.store.getState()].concat(_.yq(u)))};
_.X.select=function(f){var R=_.yK.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return f.apply(null,[this.store.getState()].concat(_.yq(R)))};
_.Vy.Object.defineProperties(N7.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("hg");}}});
N7.prototype.recomputeReduxSelector=N7.prototype.recomputeReduxSelector;_.B([_.I(),_.S("design:type",Number)],N7.prototype,"reduxPropertiesRecomputeTrigger",void 0);N7=_.B([_.mt()],N7);var Lk=[],PPD={},jw=function(){return vC.apply(this,arguments)||this};
_.y(jw,vC);jw.prototype._addPropertyEffect=function(f,R,u){if(R==="__observeEffects"&&u){var O,c=(O=u.info.method)!=null?O:u.info.methodName;if(c){var h=this[c];this[c]=function(){Lk.push(c);try{h==null||h.apply(this,arguments)}finally{Lk.pop()}}}}_.QJ._addPropertyEffect.apply(this,[f,
R,u])};
jw.prototype._setPendingProperty=function(f,R,u){if(Lk.length){var O=Lk[Lk.length-1],c;(c=PPD[this.is])!=null&&c.has(O)||(U$t(this.is,O),_.Jr("polymerPropertyChangedInObserver",{componentName:this.is,observerName:O}))}return _.QJ._setPendingProperty.apply(this,[f,R,u])};
jw=_.B([QG0()],jw);var eu5=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Bph,EU={};_.E("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=EU);var yR=function(){return _.w_.apply(this,arguments)||this};
_.y(yR,_.w_);yR.prototype._setUnmanagedPropertyToNode=function(f,R,u){f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!0);if(u!==f[R]||typeof u==="object")f[R]=u;f.is&&f.polymerController&&f.polymerController!==f&&tl(f.is,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!1)};
yR=_.B([_.mt()],yR);Glh()&&(PC.prototype._setUnmanagedPropertyToNode=(new yR)._setUnmanagedPropertyToNode);_.Rtn={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(f){},set polymerController(f){}}]};var pf=function(){var f=vC.apply(this,arguments)||this;f.json=function(){};
return f};
_.y(pf,vC);pf.prototype.equals=function(f,R){return f===R};
pf.prototype.isEmpty=function(f){return!f||_.Rk(f)&&f.length===0};
pf=_.B([QG0()],pf);var hBl=function(f){f=ajl(f);Hm.call(this,f)};
_.y(hBl,Hm);hBl.prototype.addProvider=function(f){f=f.key?f:ajl([f])[0];var R=this.keyIdToIndex.get(f.key.id);if(R){if(gch(f,this.providers[R]))throw Error("jg`"+f.key.displayName);}else Hm.prototype.addProvider.call(this,f)};
var ZOk=new hBl([]);var l5Y=!1;var ieX={};l5Y||(vcP(),l5Y=!0);
ieX.InjectBehavior={initializeInjection:function(){var f=this.provide;try{if((f=f!=null?f:[])&&f.length>0)for(var R=ajl(f),u=_.Z(R),O=u.next();!O.done;O=u.next())ZOk.addProvider(O.value);var c=new Set;s3h(this.behaviors||[],c);R={};for(var h=_.Z(c),l=h.next();!l.done;l=h.next()){var K=l.value;K.inject&&Object.assign(R,K.inject)}this.inject&&Object.assign(R,this.inject);for(var q=_.Z(Object.keys(R)),F=q.next();!F.done;F=q.next()){var w=F.value,m=R[w];try{this[w]=ZOk.resolve(m)}catch(W){throw W;}}}catch(W){throw Error(W.message);
}}};var f7B;var u_h=/\bclass\b/.test(function(){}.toString()),XPn=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var kKf=function(f){this.wasDefined=!0;Array.isArray(f)||f instanceof Array?(this.JSC$11302_getImpl=f[0],this.JSC$11302_setImpl=f[1]):this.JSC$11302_getImpl=f};
_.X=kKf.prototype;_.X.getWithPath=function(f){return l77(this.JSC$11302_getImpl(),f)};
_.X.setWithPath=function(f,R){var u=this;if(f.length)throw Error("kg");if(!this.JSC$11302_setImpl)throw Error("lg");WQ(function(){u.JSC$11302_setImpl(R)})};
_.X.notifyPath=function(){throw Error("mg");};
_.X.notifySplices=function(){throw Error("ng");};
_.X.getChangeRecordSignal=function(f,R){var u=this;if(f.length)throw Error("og");return function(){var O=u.getWithPath(f);return{path:R!=null?R:"",base:O,value:O}}};
_.X.getSplicesSignal=function(){throw Error("pg");};
_.X.getPathMutationSignal=function(){throw Error("qg");};
_.X.pop=function(){throw Error("rg");};
_.X.push=function(){throw Error("sg");};
_.X.splice=function(){throw Error("tg");};
_.X.unshift=function(){throw Error("ug");};var bU=function(f){var R=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(f)||f instanceof Array?(this.JSC$11307_getImpl=f[0],this.JSC$11307_setImpl=f[1]):this.JSC$11307_getImpl=f;this.wasDefined=!1;Kc(function(){R.wasDefined=R.JSC$11307_getImpl()!==void 0})};
bU.prototype.getWithPath=function(f){return l77(this.JSC$11307_getImpl(),f)};
bU.prototype.setWithPath=function(f,R){var u=this;if(f[f.length-1]!=="*"&&f[f.length-1]!=="splices"){if(f.length===0){if(!this.JSC$11307_setImpl)throw Error("vg");this.wasDefined||(this.wasDefined=R!==void 0);WQ(function(){u.JSC$11307_setImpl(R)})}else{for(var O=Kc(function(){return u.getWithPath([])}),c=0;c<f.length-1;c++){if(!O)return;
O=O[f[c]]}c=f[f.length-1];O&&(O[c]=R);this.wasDefined||(this.wasDefined=f.length>1||R!==void 0)}Kmk(this,f,{pathComponents:f,value:R})}};
bU.prototype.notifyPath=function(f,R){f.length===0?R&&this.setWithPath(f,R.value):Kmk(this,f,{pathComponents:f,value:R==null?void 0:R.value,fallbackWhenUndefined:R==null?void 0:R.value})};
var Kmk=function(f,R,u,O){if(f.setMutationSignal){var c=++f.mutationIndex,h=[f.observedPath],l=f.observedPath,K;R.length===0&&(K=l);for(var q=0;q<R.length;q++){var F=l.subPaths[R[q]];if(!F)break;h.push(F);l=F;q===R.length-1&&(K=F)}for(R=!1;h.length;)l=h.shift(),l.data={index:c,mutation:u,spliceMutationIndex:O},R||(R=l===K),R&&h.push.apply(h,_.yq(Object.values(l.subPaths)));WQ(function(){f.setMutationSignal(c)})}};
bU.prototype.notifySplices=function(f,R){var u=this,O=Kc(function(){return u.getWithPath(f)}),c=[].concat(_.yq(f),["splices"]);
Kmk(this,c,{pathComponents:c,value:{indexSplices:R}});if(O==null?0:O.length)R=this.mutationIndex,c=[].concat(_.yq(f),["length"]),Kmk(this,c,{pathComponents:c,value:O.length},R)};
var qHk=function(f,R,u,O,c,h){f.notifySplices(u,[{index:O,addedCount:c,removed:h,object:R,type:"splice"}])},Agk=function(f,R){f=f.observedPath;
for(var u=0;u<R.length;u++){var O=R[u],c=f.subPaths[O];c||(c={pathComponents:R.slice(0,u+1),subPaths:{}},f.subPaths[O]=c);f=c}},Fml=function(f,R,u){Agk(f,R);
if(!f.getMutationSignal){var O=_.Z(_.qK(f.mutationIndex,void 0,"HavCgf"));f.getMutationSignal=O.next().value;f.setMutationSignal=O.next().value}var c=f.getMutationSignal;return _.Qt(function(){c();return u(a5H(f,R))},void 0,"BYaPo")};
bU.prototype.getChangeRecordSignal=function(f,R){var u=this,O=this.mutationIndex,c;return Fml(this,f,function(h){if(h&&h.index>O){var l=h.mutation;O=h.index;c=void 0}h=Kc(function(){return u.getWithPath(f)});
if(l){var K=l.pathComponents[l.pathComponents.length-1],q=[].concat(_.yq(l.pathComponents));if(K==="splices"||K==="length")return{base:h,path:(R?[R].concat(_.yq(q)):q).join("."),value:l.value};var F=f.length>q.length?f:q,w;return{base:h!=null?h:l.fallbackWhenUndefined,path:(R?[R].concat(_.yq(F)):F).join("."),value:(w=Kc(function(){return u.getWithPath(F)}))!=null?w:l.fallbackWhenUndefined}}c||(c={base:h,
path:(R?[R].concat(_.yq(f)):f).join("."),value:h});return c})};
bU.prototype.getSplicesSignal=function(f){var R=this.mutationIndex,u;return Fml(this,f,function(O){if(O&&O.index>R&&O.spliceMutationIndex!==R){var c=O.mutation;R=O.index;u=void 0}return c&&c.pathComponents[c.pathComponents.length-1]==="splices"?u=O=c.value:u})};
bU.prototype.getPathMutationSignal=function(f){var R=this;Agk(this,f);if(!this.getMutationSignal){var u=_.Z(_.qK(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=u.next().value;this.setMutationSignal=u.next().value}var O=this.getMutationSignal,c=this.mutationIndex,h;return _.Qt(function(){O();var l=a5H(R,f);if(l&&l.index>c&&l.mutation&&kUn(l.mutation.pathComponents,f)){var K=l.mutation;c=l.index}if(!h||c!==h.index){var q,F;l=(F=Kc(function(){return R.getWithPath(f)}))!=null?F:(q=K)==null?
void 0:q.fallbackWhenUndefined;
h={index:c,value:l}}return h},void 0,"Aumsyf")};
var a5H=function(f,R){f=f.observedPath;R=_.Z(R);for(var u=R.next();!u.done;u=R.next())f=f.subPaths[u.value];return f.data};
bU.prototype.pop=function(f){var R=this,u=Kc(function(){return R.getWithPath(f)});
if(!(u instanceof Array))throw Error("wg");var O=u.length>0,c=u.pop();O&&qHk(this,u,f,u.length,0,[c]);return c};
bU.prototype.push=function(f){var R=_.yK.apply(1,arguments),u=this,O=Kc(function(){return u.getWithPath(f)});
if(!(O instanceof Array))throw Error("xg");var c=O.length,h=O.push.apply(O,_.yq(R));R.length&&qHk(this,O,f,c,R.length,[]);return h};
bU.prototype.splice=function(f,R,u){var O=_.yK.apply(3,arguments),c=this,h=Kc(function(){return c.getWithPath(f)});
if(!(h instanceof Array))throw Error("yg");R<0?R=h.length-Math.floor(-R):R&&(R=Math.floor(R));var l=h.splice.apply(h,[R,u].concat(_.yq(O)));(O.length||l.length)&&qHk(this,h,f,R,O.length,l);return l};
bU.prototype.unshift=function(f){var R=_.yK.apply(1,arguments),u=this,O=Kc(function(){return u.getWithPath(f)});
if(!(O instanceof Array))throw Error("zg");var c=O.unshift.apply(O,_.yq(R));R.length&&qHk(this,O,f,0,R.length,[]);return c};var wpk=!0,mEE=!1,$Eh=!1,QEE=!1,pk=!1,Wml=0;QEE=!1;Wml=0;wpk=!0;pk=mEE=$Eh=!1;var jG=function(f,R,u){this.model=f;this.unknownSignalResolver=R;this.options=u;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];R=_.Z(Wh0());f=R.next().value;R=R.next().value;this.owner=f;this.disposeImpl=R};
jG.prototype.dispose=function(){if(!this.isDisposed){for(var f=_.Z(this.childSignalProxies),R=f.next();!R.done;R=f.next())R.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var EQF=function(f,R){f=r9(f.owner);try{R()}finally{r9(f)}};
jG.prototype.effect=function(f){EQF(this,function(){_.zo(f)})};
var tEf=function(f,R){f.options!=null||(f.options={});var u;(u=f.options).immutableProps!=null||(u.immutableProps=new Set);f.options.immutableProps.add(R)},Sin=function(f,R){R=""+R;
Csk(f,R);var u,O;if((u=f.options)==null?0:(O=u.immutableProps)==null?0:O.has(R))return!0;var c;if((c=f.model.__signalCache)==null?0:c.has(R))u=f.model.__signalCache.get(R),Array.isArray(u)&&tEf(f,R);var h,l,K;return(K=(h=f.options)==null?void 0:(l=h.immutableProps)==null?void 0:l.has(R))!=null?K:!1},ygE=function(f,R){var u;
f.unknownSignalResolver&&(u=f.unknownSignalResolver(R));var O,c;((O=f.options)==null?0:(c=O.immutableProps)==null?0:c.has(R))?u!=null||(u=new kKf(_.qK(f.model[R],void 0,"bgwlkd"))):u!=null||(u=new bU(_.qK(f.model[R],void 0,"V1hou")));var h=f.model.hostElement;Object.defineProperty(f.model,R,{get:function(){x$0(h,R);return u.getWithPath([])},
set:function(l){Cf(h,R);f.setWithPath([R],l)},
configurable:!0});return u},Csk=function(f,R){var u,O,c;
((u=f.model.__signalCache)==null||!u.has(R))&&((O=f.options)==null?0:(c=O.externalSignalProps)==null?0:c.has(R))&&f.model[R]},TJ=function(f,R){R=""+R;
var u=f.signalCache[R];if(u!==void 0)return u;u=!1;Csk(f,R);var O;if((O=f.model.__signalCache)==null?0:O.has(R))if(u=f.model.__signalCache.get(R),Array.isArray(u))u=!0,tEf(f,R);else return f.signalCache[R]=f.model.__signalCache.get(R).signal,f.signalCache[R];var c,h;O=(h=(c=f.options)==null?void 0:c.reactivityMode)!=null?h:0;var l,K;if(!((l=f.options)==null?0:(K=l.reactiveProps)==null?0:K.has(R))&&!u&&O===1)throw Error("Ag`"+R);c=u?dEC(f,R):ygE(f,R);return f.signalCache[R]=c},dEC=function(f,R){var u=
Object.getOwnPropertyDescriptor(f.model.constructor.prototype,R),O=function(){return f.model[R]};
return new kKf(u&&u.get&&!u.set?O:[O,function(c){f.model[R]=c}])};
jG.prototype.getWithPath=function(f){var R=_.Z(f);f=R.next().value;R=s8(R);x$0(this.model.hostElement,""+f);return TJ(this,f).getWithPath(R)};
jG.prototype.setWithPath=function(f,R){if(f.length){Cf(this.model.hostElement,f.join("."));var u=_.Z(f);f=u.next().value;u=s8(u);TJ(this,f).setWithPath(u,R)}};
jG.prototype.getPathMutationSignal=function(f){var R=_.Z(f);f=R.next().value;R=s8(R);return TJ(this,f).getPathMutationSignal(R)};
jG.prototype.notifyPath=function(f,R){var u=_.Z(f);f=u.next().value;u=s8(u);TJ(this,f).notifyPath(u,R)};
var NbI=function(f,R){if(R.type==="literal")return function(){return{rootWasDefined:!0,value:R.value}};
var u=Jl(R.path),O=_.Z(u),c=O.next().value;O=s8(O);var h,l;if(R.type==="path"&&(u.length===1||((h=f.options)==null?0:(l=h.immutableProps)==null?0:l.has(c))))return function(){var m=f.getWithPath(u.slice(0,1)),W=l77(m,u.slice(1));m=m!==void 0;pk&&(m=TJ(f,u[0]).wasDefined);return{rootWasDefined:m,value:W}};
var K=TJ(f,c);if(R.type==="path"){var q=K.getPathMutationSignal(O);return function(){var m=pk?K.wasDefined:To(f.owner,function(){return K.getWithPath([])})!==void 0;
var W,C=(W=q())==null?void 0:W.value;return{rootWasDefined:m,value:C}}}if(R.type==="splices"){var F=K.getSplicesSignal(O);
return function(){var m=F();return{rootWasDefined:pk?K.wasDefined:m!==void 0,value:m}}}var w=K.getChangeRecordSignal(O,""+c);
return function(){var m=w();return{rootWasDefined:pk?K.wasDefined:m!==void 0,value:m}}},wPD=function(f,R,u){var O=u.map(function(K){return NbI(f,K)}),c=u.length===0,h=[],l=u.length!==1||u[0].type!=="path"?!1:!0;
f.effect(function(){for(var K=O.length,q=[],F=!!h.length,w=0;w<K;w++){var m=O[w](),W=m.rootWasDefined;m=m.value;c||(c=W);q[w]=m;l&&(q[w+K]=F?h[w]:q[w],h[w]=m)}c&&To(f.owner,function(){return void R.apply(null,_.yq(q))})})},Kh5=function(f,R,u,O,c){var h=TJ(f,R);
c!==void 0&&h.setWithPath([],c);wPD(f,function(){var l=_.yK.apply(0,arguments);Cf(f.model.hostElement,R,!0);h.setWithPath([],u.apply(null,_.yq(l)))},O)};
jG.prototype.arrayPush=function(f){var R=_.yK.apply(1,arguments),u=_.Z(f),O=u.next().value;u=s8(u);O=TJ(this,O);return O.push.apply(O,[u].concat(_.yq(R)))};
jG.prototype.arraySplice=function(f,R,u){var O=_.yK.apply(3,arguments),c=_.Z(f),h=c.next().value;c=s8(c);h=TJ(this,h);return h.splice.apply(h,[c,R,u].concat(_.yq(O)))};
jG.prototype.arrayUnshift=function(f){var R=_.yK.apply(1,arguments),u=_.Z(f),O=u.next().value;u=s8(u);O=TJ(this,O);return O.unshift.apply(O,[u].concat(_.yq(R)))};
jG.prototype.notifySplices=function(f,R){var u=_.Z(f);f=u.next().value;u=s8(u);TJ(this,f).notifySplices(u,R)};var NGe=/([^\s]+?)\(([\s\S]*)\)/,CS2=/\.([^.]+)$/,bY7=/\\,/g,Ey5=/&comma;/g,tb0=/\\(.)/g,Lhh=[],yqD={"*":"wildcard",splices:"splices"};var PS5=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"),TGn=/[A-Z]/,LmF=["class","hidden","id","on-dom-change"],et5=new Set([].concat(_.yq(LmF),
["if","notify-dom-change","restamp"])),GUD=new Set([].concat(_.yq(LmF),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),BGl=new Set(["restamp"]);var ey2=new Set(["className","id"]);var gyD=Symbol(),rq0=window;var ZOD=window;var FmP=0,KmD=0,H2=[],a57=0,kKB=!1,Ag7=document.createTextNode("");(new window.MutationObserver(qHD)).observe(Ag7,{characterData:!0});var MM=new Map,I4=0,bOk=function(f){this.mappedHandleId=f},mEe=function(f,R,u,O){this.mappedHandleId=f;
var c=this;this.mappedHandleId=f;this.callback=R;this.waitTime=u;this.schedulerPriority=O;this.handleId=_.JA.addJob(function(){c.callback();MM.delete(c.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.y(mEe,bOk);mEe.prototype.cancel=function(){_.JA.cancelJob(this.handleId);MM.delete(this.mappedHandleId)};
var QEe=function(f,R){this.mappedHandleId=f;var u=this;this.mappedHandleId=f;this.callback=R;this.handleId=wpD(function(){u.callback();MM.delete(u.mappedHandleId)})};
_.y(QEe,bOk);QEe.prototype.cancel=function(){var f=this.handleId-KmD;f<0||H2.length<=f||(H2[f]=null);MM.delete(this.mappedHandleId)};var Cs7=function(){};
Cs7.prototype.cancel=function(){this.jobHandle!==void 0&&(WmP(this.jobHandle),this.jobHandle=void 0)};
Cs7.prototype.run=function(f,R,u){var O=this;this.cancel();this.callback=f;this.jobHandle=_.P2(function(){f();O.callback=void 0},R,u)};
Cs7.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var EQl=new WeakMap;var ppl=$w(function(f){for(var R=f,u=0;u<3;u++)R=Object.getPrototypeOf(R);delete R.prototype.connectedCallback;var O=function(){return f.apply(this,arguments)||this};
_.y(O,f);O.prototype._attachDom=function(c){if(!c)return null;var h=(0,_.hl)(this.hostElement);h.attachShadow({mode:"open",shadyUpgradeFragment:c});h.shadowRoot.appendChild(c);return h.shadowRoot};
O.prototype._takeAttributes=function(){for(var c=this.hostElement.attributes,h=0;h<c.length;h++){var l=c[h],K=void 0,q=void 0;(q=(K=this).__attributeReaction)==null||q.call(K,l.name,null,l.value)}};
O.prototype._readyClients=function(){f.prototype._readyClients.call(this);this.root=this};
O.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);f.prototype.connectedCallback.call(this)};
_.Vy.Object.defineProperties(O,{template:{configurable:!0,enumerable:!0,get:function(){return O.prototype._template}}});
return O}),jEC=$w(function(f){var R=function(){return f.apply(this,arguments)||this};
_.y(R,f);R.prototype.created=function(){if(this.__notifyEffects)for(var u=_.Z(Object.values(this.__notifyEffects)),O=u.next();!O.done;O=u.next()){O=_.Z(O.value);for(var c=O.next();!c.done;c=O.next())c.value.fn=Lml}if(this.__reflectEffects)for(u=_.Z(Object.values(this.__reflectEffects)),O=u.next();!O.done;O=u.next())for(O=_.Z(O.value),c=O.next();!c.done;c=O.next())c.value.fn=bO7};
R.prototype._addEventListenerToNode=function(u,O,c){u=ew(u);Da(u,O,c)||f.prototype._addEventListenerToNode.call(this,u,O,c)};
R.prototype._removeEventListenerFromNode=function(u,O,c){u=ew(u);JZ(u,O,c)||f.prototype._removeEventListenerFromNode.call(this,u,O,c)};
R.prototype._propertiesChanged=function(u,O,c){if(this.__dataToNotify&&this.__notifyEffects)for(var h=_.Z(Object.keys(this.__dataToNotify)),l=h.next();!l.done;l=h.next()){l=l.value;var K=Nbq(l);this.__notifyEffects[K]||delete this.__dataToNotify[l]}else this.__dataToNotify=null;f.prototype._propertiesChanged.call(this,u,O,c)};
R.prototype.fire=function(u,O,c){O=O===void 0?{}:O;var h;return _.ul(ew((h=c==null?void 0:c.node)!=null?h:this),u,O,c)};
R.prototype._ensureAttribute=function(u,O){var c=ew(this);c.hasAttribute(u)||zJ(c,O,u)};
R.prototype.isLightDescendant=function(u){var O=ew(this);return ew(O)!==u&&_.b(O).contains(u)&&_.b(O).getRootNode()===_.b(u).getRootNode()};
return R});
_.QX.ready=function(){var f;((f=this.hostElement)!=null?f:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var R;((R=this.hostElement)!=null?R:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Lu._subscribeIronResize=function(f){var R;((R=f.hostElement)!=null?R:f).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Lu._unsubscribeIronResize=function(f){var R;((R=f.hostElement)!=null?R:f).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var DEB=[Array,Boolean,Date,Number,Object,String],B2=function(f,R,u,O){this.polySiInfo=f;this.polySiParams=R;this.polySiContext=u;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;O||this instanceof HTMLElement&&(O=this);if(!O)throw Error("Hg");this.allowedProps=R.allowedProps;this.hostElement=O;this.is=f.is;this.upgradeDisabled=!!R.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");f=new Set(R.reactiveSchemas.filter(function(c){return c.type!==
"observe"}).map(function(c){return c.propertyKey}));
this.signalProxy=new jG(this,void 0,{reactiveProps:f,reactivityMode:R.reactivityMode});this.__dataHasAccessor={};R=_.Z(R.reactiveSchemas);for(f=R.next();!f.done;f=R.next())f=f.value,f.type==="signal"&&(this.__dataHasAccessor[f.propertyKey]=!0);this.upgradeDisabled||DEf(this)};
B2.prototype.getExtraMethodsToForward=function(){return[]};
var DEf=function(f){f.polySiContext.didRegister||(f.registered(),f.polySiContext.didRegister=!0);f.polySiContext.finalizedTemplate||(f.polySiContext.finalizedTemplate={},f.polySiParams.templateGetter&&(f.polySiContext.finalizedTemplate.processedTemplate=l5t(f.polySiParams.templateGetter,f.polySiParams.is)));JgE(f);var R=f.hostElement;R.loggingStatus!=null||(R.loggingStatus={});R.loggingStatus.isInitializing=!0;Kc(function(){return void f.created()});
R.loggingStatus.isInitializing=!1;f.isPolySiElementConnected&&zBC(f)},zBC=function(f){f.didCallReady||(Kc(function(){return void f.ready()}),f.didCallReady=!0);
f.isAttached=!0;f.attached()};
_.X=B2.prototype;_.X.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||zBC(this)};
_.X.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.X.attributeChangedCallback=function(f,R,u){if(this.upgradeDisabled)f==="disable-upgrade"&&u===null&&(this.upgradeDisabled=!1,DEf(this));else if(R!==u){var O=_.wu(f),c=this.polySiContext.typesForSignals[O];if(c&&(!this.reflecting||_.E("polysi_attribute_changed_serializing_killswitch"))){switch(c){case Object:try{var h=JSON.parse(u)}catch(K){h=u}break;case Array:try{h=JSON.parse(u)}catch(K){h=null}break;case Date:h=isNaN(u)?String(u):Number(u);h=new Date(h);break;case Boolean:h=u!==null;break;case Number:h=
Number(u);break;default:h=u}this[O]=h}O=_.Z(this.polySiParams.behaviors);for(c=O.next();!c.done;c=O.next())h=void 0,(h=c.value.attributeChanged)==null||h.call(this,f,R,u);var l;(l=this.attributeChanged)==null||l.call(this,f,R,u)}};
_.X.attributeChangedCallbackWrapper=function(f,R,u){this.attributeChangedCallback(f,R,u)};
_.X.setPropertiesFromInitialAttributeValues=function(){for(var f=0;f<this.hostElement.attributes.length;f++){var R=this.hostElement.attributes[f];(R.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(R.name))&&this.attributeChangedCallback(R.name,null,R.value)}};
_.X.created=function(){this.provide=this.polySiParams.provide;var f;(f=this.initializeInjection)==null||f.call(this);f=_.Z(this.polySiParams.reactiveSchemas);for(var R=f.next();!R.done;R=f.next())R=R.value,R.type==="signal"&&(this.mutablePropNames.add(R.propertyKey),TJ(this.signalProxy,R.propertyKey));jEh(this,this.polySiInfo,this.polySiParams.behaviors);f=_.Z(this.polySiParams.reactiveSchemas);for(R=f.next();!R.done;R=f.next())R=R.value,R.type==="signal"&&R.value!==void 0&&(this.signalProxy.model[R.propertyKey]=
typeof R.value==="function"?R.value.call(this):R.value);if(this.polySiParams.signalProperties)for(f=_.Z(this.polySiParams.signalProperties),R=f.next();!R.done;R=f.next()){R=R.value;var u=void 0;((u=this.__signalCache)==null?0:u.has(R))||(this.signalProxy.model[R]=void 0)}QEE||Tbt(this);ppP(this);f=_.Z(this.polySiParams.behaviors);for(R=f.next();!R.done;R=f.next())u=void 0,(u=R.value.created)==null||u.call(this);var O;(O=this.polySiInfo.created)==null||O.call(this)};
_.X.registered=function(){var f=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var R=Object.getPrototypeOf(this);R.addReactiveSchema=function(K){f.polySiParams.reactiveSchemas.push(K)};
for(var u=_.Z(this.polySiParams.behaviors),O=u.next();!O.done;O=u.next()){var c=void 0;(c=O.value.beforeRegister)==null||c.call(R)}var h;(h=this.polySiInfo.beforeRegister)==null||h.call(R);R.addReactiveSchema=zBh;u=_.Z(this.polySiParams.behaviors);for(O=u.next();!O.done;O=u.next())c=void 0,(c=O.value.registered)==null||c.call(R);var l;(l=this.polySiInfo.registered)==null||l.call(R)};
_.X.ready=function(){var f;(f=this.beforeReady)==null||f.call(this);QEE&&Tbt(this);var R;if(f=(R=this.polySiContext.finalizedTemplate)==null?void 0:R.processedTemplate){f=hBP(f.template,f.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:f.hasInsertionPoint,thisCtx:this});R=f.nodesById;f=f.root;var u=this.hostElement;var O=O===void 0?!1:O;u=(0,_.hl)(u);if(!u.attachShadow)throw Error("Ad");if(!u.shadowRoot||O)u.attachShadow({mode:"open",shadyUpgradeFragment:f}),u.shadowRoot.appendChild(f);
this.root=u.shadowRoot;this.$=R}HOH(this);O=_.Z(this.polySiParams.behaviors);for(R=O.next();!R.done;R=O.next())f=void 0,(f=R.value.ready)==null||f.call(this);var c;(c=this.polySiInfo.ready)==null||c.call(this)};
_.X.attached=function(){for(var f=_.Z(this.polySiParams.behaviors),R=f.next();!R.done;R=f.next()){var u=void 0;(u=R.value.attached)==null||u.call(this)}var O;(O=this.polySiInfo.attached)==null||O.call(this)};
_.X.detached=function(){for(var f=_.Z(this.polySiParams.behaviors),R=f.next();!R.done;R=f.next()){var u=void 0;(u=R.value.detached)==null||u.call(this)}var O;(O=this.polySiInfo.detached)==null||O.call(this)};
var JgE=function(f){for(var R=_.Z(f.polySiParams.behaviors),u=R.next();!u.done;u=R.next())if(u=u.value,u.listeners)for(var O in u.listeners)Xpn(f,f.hostElement,O,u.listeners[O]);if(f.polySiInfo.listeners)for(var c in f.polySiInfo.listeners)Xpn(f,f.hostElement,c,f.polySiInfo.listeners[c])},Xpn=function(f,R,u,O,c){f=ZY7(f,O,c);
Da(R,u,f)||R.addEventListener(u,f);return f},Tbt=function(f){for(var R=_.Z(f.polySiParams.reactiveSchemas),u=R.next();!u.done;u=R.next())u=u.value,u.type==="compute"||u.type==="computeWithMethod"?qiB(f.signalProxy,u,f):u.type==="redux"?FhX(f.signalProxy,u,f.store):u.type==="signal"&&u.readOnly&&a7h(f.signalProxy,u)},HOH=function(f){for(var R=_.Z(f.polySiParams.reactiveSchemas),u=R.next(),O={};!u.done;O={schema$jscomp$12:void 0},u=R.next())O.schema$jscomp$12=u.value,O.schema$jscomp$12.type==="notify"?
mCX(f.signalProxy,O.schema$jscomp$12,f.hostElement):O.schema$jscomp$12.type==="observe"?QWl(f.signalProxy,O.schema$jscomp$12,f):O.schema$jscomp$12.type==="reflect"&&f.signalProxy.effect(function(h){return function(){var l=f.signalProxy.getWithPath([h.schema$jscomp$12.propertyKey]);
f.reflecting=!0;jWP(f.hostElement,h.schema$jscomp$12.propertyKey,l,!0);f.reflecting=!1}}(O));
if(f.reflectedAttributes)for(R=_.Z(Object.entries(f.reflectedAttributes)),O=R.next(),u={};!O.done;u={key$jscomp$878:void 0,value$jscomp$8812:void 0},O=R.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;u.key$jscomp$878=O;u.value$jscomp$8812=c;f.signalProxy.effect(function(h){return function(){f.reflecting=!0;jWP(f.hostElement,h.key$jscomp$878,(0,h.value$jscomp$8812)(),!0);f.reflecting=!1}}(u))}};
_.X=B2.prototype;_.X._setPendingProperty=function(f,R){this.set(f,R);return!1};
_.X._enableProperties=function(){};
_.X._setPendingPropertyOrPath=function(f,R){this.notifyPath(f,R);return!1};
_.X._addPropertyEffect=function(){};
_.X._stampTemplate=function(){throw Error("Ig");};
_.X.fire=function(f,R,u){R=R===void 0?{}:R;u=u===void 0?{}:u;var O,c,h={bubbles:(O=u.bubbles)!=null?O:!0,cancelable:!!u.cancelable,composed:(c=u.composed)!=null?c:!0},l;return _.ul(TbX((l=u.node)!=null?l:this.hostElement),f,R,h)};
_.X.get=function(f,R){var u=Jl(f);return R?l77(R,u):f==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(u)};
_.X.linkPaths=function(){};
_.X.listen=function(f,R,u){f=TbX(f);this.boundListeners!=null||(this.boundListeners=new WeakMap);var O=this.boundListeners.get(f);O||(O={},this.boundListeners.set(f,O));var c=R+u;O[c]||(O[c]=Xpn(this,f,R,u))};
_.X.notifyPath=function(f,R){this.signalProxy.notifyPath(Jl(f),arguments.length===2?{value:R}:void 0)};
_.X.canNotifyPath=function(f){return this.mutablePropNames.has(f)&&!Sin(this.signalProxy,f)};
_.X.notifySplices=function(f,R){this.signalProxy.notifySplices(Jl(f),R)};
_.X.pop=function(f){var R=this.signalProxy;f=Jl(f);var u=_.Z(f);f=u.next().value;u=s8(u);return TJ(R,f).pop(u)};
_.X.push=function(f){var R=_.yK.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Jl(f)].concat(_.yq(R)))};
_.X.set=function(f,R,u){if(u)throw Error("Jg");f==="hidden"?this.hostElement.hidden=!!R:this.signalProxy.setWithPath(Jl(f),R)};
_.X.setProperties=function(f){f=_.Z(Object.entries(f));for(var R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;this[R]=u}};
_.X.splice=function(f,R,u){var O=_.yK.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Jl(f),R,u].concat(_.yq(O)))};
_.X.unlinkPaths=function(){};
_.X.unlisten=function(f,R,u){f=TbX(f);if(this.boundListeners){var O=this.boundListeners.get(f);if(O){u=R+u;var c=O[u];c&&(JZ(f,R,c)||f.removeEventListener(R,c),delete O[u])}}};
_.X.unshift=function(f){var R=_.yK.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Jl(f)].concat(_.yq(R)))};
_.Vy.Object.defineProperties(B2.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 SHX=[Array,Boolean,Date,Number,Object,String];var sE0=!1;var DX=function(){var f=HTMLElement.apply(this,arguments)||this;f.restamp=!1;f.notifyDomChange=!1;f.JSC$11415_didCallConnected=!1;f.JSC$11415_renderDebouncer=null;f.disableTemplateUpdateSignalImpl=o4()?void 0:_.qK(!1,void 0,"zLXz1e");var R;f.getDisableTemplateUpdate=(R=f.disableTemplateUpdateSignalImpl)==null?void 0:R[0];var u;f.setDisableTemplateUpdate=(u=f.disableTemplateUpdateSignalImpl)==null?void 0:u[1];return f};
_.y(DX,HTMLElement);var I5C=function(f){f.conditionSignalImpl!=null||(f.conditionSignalImpl=new bU(_.qK(!1,void 0,"wcuOQ")));return f.conditionSignalImpl};
_.X=DX.prototype;_.X.showHideChildren=function(f){MEE(this,f,this.if)};
_.X.attributeChangedCallback=function(f,R,u){if(this.JSC$11415_didCallConnected)throw Error("Ng`"+f);f==="notify-dom-change"?this.notifyDomChange=u!==null:f==="restamp"&&(this.restamp=u!==null)};
_.X.debounceRender=function(){this.JSC$11415_renderDebouncer=_.uQ(this.JSC$11415_renderDebouncer,TO,this.JSC$11415_renderImpl.bind(this));_.Or(this.JSC$11415_renderDebouncer)};
_.X.disconnectedCallback=function(){var f=(0,_.hl)(this).parentNode;(!f||f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in f&&!f.host)&&PsF(this)};
_.X.connectedCallback=function(){var f=this;this.JSC$11415_didCallConnected=!0;wpk?nQe():this.style.display="none";this.parentSignalProxy.effect(function(){I5C(f).getWithPath([]);f.debounceRender()})};
_.X.render=function(){_.Z$()};
_.X.JSC$11415_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var f=this.if;if(f){a:{var R=(0,_.hl)(this).parentNode;if(this.hasInstance()){var u=this.instance.children;if((u==null?0:u.length)&&(0,_.hl)(this).previousSibling!==u[u.length-1])for(var O=0;O<u.length;O++)(0,_.hl)(R).insertBefore(u[O],this)}else{if(!R){R=!1;break a}UEE(this,R)}R=!0}if(!R)return}else this.restamp&&PsF(this);MEE(this,!1,f);f&&eBC(this);mEE&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.X.hasInstance=function(){return!!this.instance};
var UEE=function(f,R){var u=f.parentSignalProxy;if(o4()){var O=_.Z(_.qK(!0,void 0,"wXzgnc"));var c=O.next().value;O=O.next().value;u=f.parentSignalProxy}else{var h;var l=new jG((h=GKC(f))!=null?h:{},function(q){var F=TJ(f.parentSignalProxy,q).getChangeRecordSignal([]);q=_.qK(void 0,void 0,"mryEkc");var w=new bU(q);l.effect(function(){if(f.getDisableTemplateUpdate&&!f.getDisableTemplateUpdate()){var m=F();w.notifyPath(Jl(m.path),{value:m.value})}});
return w});
f.parentSignalProxy.childSignalProxies.push(l);var K=u=l}u=hBP(f.templateInfo,f.templateInfo.nodeInfoList,u,{eventListenerHost:f.eventListenerHost,hasInsertionPoint:f.templateInfo.hasInsertionPoint,thisCtx:f.eventListenerHost,enabledSignal:o4()?c:void 0,getModel:function(){return GKC(f)}}).root;
f.instance={root:u,children:[],hidden:!1,signalProxy:K,getTemplateUpdatesEnabled:c,setTemplateUpdatesEnabled:O};K=_.Z(u.childNodes);for(c=K.next();!c.done;c=K.next())f.instance.children.push(c.value);(0,_.hl)(R).insertBefore(f.instance.root,f)},GKC=function(f){if((f=f.parentSignalProxy.model)&&!f.hostElement){var R={},u;
for(u in f)f.hasOwnProperty(u)&&(R[u]=f[u]);return R}},PsF=function(f){if(f.instance){var R=f.instance.children;
if(R.length){var u=(0,_.hl)(R[0]).parentNode;if(u){u=(0,_.hl)(u);for(var O=0;O<R.length;O++)u.removeChild(R[O])}}o4()?f.instance.setTemplateUpdatesEnabled(!1):f.instance.signalProxy.dispose();f.instance=void 0}},MEE=function(f,R,u){R=R||!u;
f.instance&&f.instance.hidden!==R&&(f.instance.hidden=R,gQe(R,f.instance.children))},eBC=function(f){if(o4()){var R=f.instance;
R&&To(f.parentSignalProxy.owner,function(){return!R.getTemplateUpdatesEnabled()})&&R.setTemplateUpdatesEnabled(!0)}else f.setDisableTemplateUpdate(!1)};
_.Vy.Object.defineProperties(DX.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var f=this;return To(this.parentSignalProxy.owner,function(){return I5C(f).getWithPath([])})},
set:function(f){f||(o4()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));I5C(this).setWithPath([],!!f)}}});
_.Vy.Object.defineProperties(DX,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",DX);var Bbi=[],JC=function(){var f=HTMLElement.apply(this,arguments)||this;f.as="item";f.indexAs="index";f.itemsIndexAs="itemsIndex";f.targetFramerate=20;f.notifyDomChange=!1;f.isDetached=!1;f.JSC$11422_renderDebouncer=null;f.instances=[];f.chunkingId=null;f.chunkCount=null;f.shouldMeasureChunk=!1;f.shouldContinueChunking=!1;f.renderStartTime=null;f.JSC$11422_didCallConnected=!1;return f};
_.y(JC,HTMLElement);var oQC=function(f){f.itemSignalImpl!=null||(f.itemSignalImpl=new bU(_.qK(Bbi,void 0,"YBrqgf")));return f.itemSignalImpl},xEE=function(f,R){Array.isArray(R)||(R=Bbi);
oQC(f).setWithPath([],R)};
_.X=JC.prototype;_.X.showHideChildren=function(f){for(var R=_.Z(this.instances),u=R.next();!u.done;u=R.next())gQe(f,u.value.children)};
_.X.notifyPath=function(f,R){f=Jl(f);f[0]==="items"&&(f.length===1?xEE(this,R):oQC(this).setWithPath(f.slice(1),R))};
_.X.canNotifyPath=function(f){return f==="items"};
_.X.attributeChangedCallback=function(f,R,u){if(this.JSC$11422_didCallConnected)throw Error("Og`"+f);f==="as"?this.as=u:f==="index-as"?this.indexAs=u:f==="items-index-as"?this.itemsIndexAs=u:f==="initial-count"?this.initialCount=Number(u):f==="notify-dom-change"?this.notifyDomChange=u!==null:f==="target-framerate"&&(this.targetFramerate=Number(u))};
_.X.disconnectedCallback=function(){this.isDetached=!0;for(var f=0;f<this.instances.length;f++)SHt(this,f);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.X.connectedCallback=function(){var f=this,R=oQC(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var c=R(),h=Jl(c.path);if(h[0]===void 0||h[0]==="splices"||h[0]==="length")f.debounceRender();else{var l=h[0];if(l=f.instances[typeof l==="string"?Math.floor(Number(l)):l])h=[f.as].concat(_.yq(h.slice(1))),l.signalProxy.notifyPath(h,c)}});
this.JSC$11422_didCallConnected=!0;wpk?nQe():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var u=(0,_.hl)((0,_.hl)(this).parentNode),O=0;O<this.instances.length;O++)u.insertBefore(this.instances[O].root,this);this.chunkingId&&this.render()}};
_.X.debounceRender=function(){this.JSC$11422_renderDebouncer=_.uQ(this.JSC$11422_renderDebouncer,TO,this.JSC$11422_renderImpl.bind(this));_.Or(this.JSC$11422_renderDebouncer)};
_.X.render=function(){this.debounceRender();_.Z$()};
_.X.JSC$11422_renderImpl=function(){var f=this,R=this.items,u=$EC(this,R.length);gQE(this,R,u);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){f.chunkingId=null;if(f.shouldMeasureChunk){var O=performance.now()-f.renderStartTime;f.chunkCount=Math.round(Math.ceil(1E3/f.targetFramerate)/O*f.chunkCount)||1}f.shouldContinueChunking&&f.debounceRender()}));
mEE&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var $EC=function(f,R){var u=R,O=f.instances.length;if(f.initialCount){if(f.chunkCount){var c=Math.min(Math.max(R-O,0),f.chunkCount);u=Math.min(O+c,R)}else u=Math.min(R,f.initialCount),c=Math.max(u-O,0),f.chunkCount=c||1;f.shouldMeasureChunk=c===f.chunkCount;f.shouldContinueChunking=u<R;f.renderStartTime=performance.now()}return u},gQE=function(f,R,u){for(var O=0;O<u;O++){var c=f.instances[O],h=R[O];
c?(c.signalProxy.setWithPath([f.as],h),c.signalProxy.setWithPath([f.indexAs],O)):sEG(f,h,O)}for(R=f.instances.length-1;R>=O;R--)u=f,c=R,SHt(u,c),_.Z(u.instances.splice(c,1)).next().value.signalProxy.dispose()},SHt=function(f,R){f=f.instances[R];
R=(0,_.hl)(f.root);for(var u=0;u<f.children.length;u++)R.appendChild(f.children[u])},sEG=function(f,R,u){var O={};
R=Object.assign({},nQE(f),(O[f.as]=R,O[f.indexAs]=u,O[f.itemsIndexAs]=u,O));var c=new jG(R,function(l){if(l!==f.as&&l!==f.indexAs){if(l===f.itemsIndexAs)return TJ(c,f.indexAs);var K=TJ(f.parentSignalProxy,l).getChangeRecordSignal([]);l=_.qK(void 0,void 0,"Mu2Bwb");var q=new bU(l);c.effect(function(){var F=K();q.notifyPath(Jl(F.path),{value:F.value})});
return q}});
f.parentSignalProxy.childSignalProxies.push(c);O=hBP(f.templateInfo,f.templateInfo.nodeInfoList,c,{eventListenerHost:f.eventListenerHost,getModel:function(){var l={};return Object.assign({},nQE(f),(l[f.as]=c.model[f.as],l[f.indexAs]=c.model[f.indexAs],l[f.itemsIndexAs]=c.model[f.indexAs],l))},
hasInsertionPoint:f.templateInfo.hasInsertionPoint,thisCtx:f.eventListenerHost,methodInvocationRequirement:Wml,enabledSignal:f.stampingEnabled}).root;R={root:O,children:[],signalProxy:c};O=_.Z(O.childNodes);for(var h=O.next();!h.done;h=O.next())R.children.push(h.value);O=(O=f.instances[u+1])?O.children[0]:f;(0,_.hl)((0,_.hl)(f).parentNode).insertBefore(R.root,O);f.instances[u]=R},nQE=function(f){if((f=f.parentSignalProxy.model)&&!f.hostElement){var R={},u;
for(u in f)f.hasOwnProperty(u)&&(R[u]=f[u]);return R}};
JC.prototype.itemForElement=function(f){var R=this,u=this.instances.find(function(O){return O.children.includes(f)});
if(u)return To(this.parentSignalProxy.owner,function(){return u.signalProxy.getWithPath([R.as])})};
JC.prototype.indexForElement=function(f){var R=this.instances.findIndex(function(u){return u.children.includes(f)});
return R>=0?R:void 0};
_.Vy.Object.defineProperties(JC.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var f=this;return To(this.parentSignalProxy.owner,function(){return oQC(f).getWithPath([])})},
set:function(f){xEE(this,f)}},
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}}});
_.Vy.Object.defineProperties(JC,{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",JC);var VEC,YHt;_.zM=new _.Vi("STATE_STORE_TOKEN");VEC=new _.Vi("SELECT_TOKEN");YHt=new _.Vi("DISPATCH_TOKEN");var fFX={getSelectFn:function(){var f;return(f=_.vh().resolve(_.Y8(VEC)))!=null?f:VE5},
getDispatchFn:function(){var f;return(f=_.vh().resolve(_.Y8(YHt)))!=null?f:_.xs().dispatch.bind(_.xs())},
getAppStore:function(){return _.vh().resolve(_.zM)}},YHX,rgt=!1;var Oy0=void 0;var vQk=function(){};
vQk.prototype.hasAttribute=function(f){if(f==="dir")return!1;if(f==="disable-upgrade"){var R,u;return(u=(R=this.hostElement)==null?void 0:R.hasAttribute("disable-upgrade"))!=null?u:!1}throw Error("Pg`"+f);};
vQk.prototype.attributeChangedCallbackWrapper=function(f,R,u){if(f==="disable-upgrade"&&this.__isUpgradeDisabled&&u===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var O;((O=this.hostElement)!=null?O:this).isConnected&&this.connectedCallback()}else R===u||this.__isReflecting||this.attributeChangedCallback(f,R,u)};
vQk.prototype.getExtraMethodsToForward=function(){for(var f=this,R=[],u=_.Z(iOk),O=u.next(),c={};!O.done;c={tagName$jscomp$51:void 0,name$jscomp$534:void 0},O=u.next())c.name$jscomp$534=O.value,O=void 0,c.name$jscomp$534==="_setPendingProperty"?(c.tagName$jscomp$51=this.hostElement.tagName.toLowerCase(),O=function(h){return function(l,K,q){tl(h.tagName$jscomp$51,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return f._setPendingProperty(l,K,q)}}(c)):O=function(h){return function(){return f[h.name$jscomp$534].apply(f,
_.yq(_.yK.apply(0,arguments)))}}(c),R.push([c.name$jscomp$534,
O]);return R};
for(var KID=jEC(ppl((0,_.m0)(vQk))),FID=["disabled","disable-upgrade"],rgY=(0,_.m0)(function(){}),fFt=new Set(Object.getOwnPropertyNames(rgY.prototype)),EA7=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.yq(fFt))),mF7=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),iOk=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Ryf=new Set([].concat(_.yq(mF7),_.yq(iOk),_.yq(fFt))),uhi=_.Z(Ryf),OyG=uhi.next();!OyG.done;OyG=uhi.next())eu5.add(OyG.value);var WIl={created:function(){ppP(this);this.initializeInjection()}};var jMn=!1,iu=window.ShadyDOM,PaB=["appendChild","insertBefore","removeChild","replaceChild"],Mp7=[Node];iu&&Mp7.push(iu.Wrapper);var xFB,SZe,sM5={};var RF=new Set,r_="",nAB="";var fU,ui=new Set;var OF7=new Set("context didCallReady is info params signalProxy".split(" ")),XVD="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),hr5="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var c8l=Aj({entities:Xe2}),Xnk=new gz(c8l);var TM=function(){return _.w_.apply(this,arguments)||this};
_.y(TM,_.w_);_.Vy.Object.defineProperties(TM.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Xnk}}});
TM=_.B([_.mt()],TM);_.HT=[N7.prototype,TM.prototype];_.Ir={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var f=this,R={};setTimeout(function(){var u;return _.ul((u=f.hostElement)!=null?u:f,"yt-live-chat-add-tooltip-target",R)},0);
this.handler_=R.handler},
detached:function(){if(this.handler_){var f;this.handler_.removeElementFromSupportingTooltips((f=this.hostElement)!=null?f:this)}this.handler_=null}}};_.kr=new _.Vi("ICON_MANAGER_TOKEN");var hyf=[48,20,18,16,15,13,12],jon=new Map,yXl=new Set,Eb5=new Set,CNB=new Set,Wc7=new Set,tUn=new Set,NyD=new Promise(function(f){var R=!1,u=!1,O=!1,c=[],h=function(l){if("detail"in l)if(l=l.detail,l.name==="yt-icons")dYl(l),R=!0;else if(l.name==="yt-sys-icons")dYl(l),u=!0;else{var K;((K=l.name)==null?0:K.includes("yt-sys-icons"))&&l.size!==24&&(dYl(l,!0),c.push(l.size),c.length===hyf.length&&(O=!0))}R&&u&&O&&(window.removeEventListener("iron-iconset-added",h),f())};
window.addEventListener("iron-iconset-added",h)}),bF2=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"]]);_.M7={};_.M7.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.$Z,computeHref_:function(f,R){R=R===void 0?!1:R;if(!f||f.commandExecutorCommand)return null;var u=GWq(f,R);return R||u!==null?u?_.E("enable_polymer_resin")?_.EO(u).toString():u:null:(_.Ih(new _.ts("computeHref was null",this.is,f)),null)},
computeOptionalHref_:function(f){return this.computeHref_(f,!0)},
computeNofollow_:function(f){return f?J47(f)?"nofollow":null:null},
computeIcon_:function(f){return f&&f.iconType?_.li(f.iconType):""},
resolveCommand:function(f,R,u){R=R===void 0?{}:R;return _.qO(f,this.hostElement,R,u===void 0?!1:u)}};var lFA,PT;_.Zyl={};lFA=null;
PT={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_=N2P(this.viewroot));_.P2(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var f=this;this.unobserve_();if(_.E("kevlar_vimio_use_shared_monitor"))HF0(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 R=[];this.visibilityOptionVisible_&&R.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&R.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&R.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=R}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){DY7(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 f=_.Tx(this.parentNode,function(u){var O,c=(O=u.polymerController)!=null?O:u;return!!c.getVisibilityObserverForChild&&c.getVisibilityObserverForChild()},!0);
if(f){var R;this.localVisibilityObserver_=((R=f.polymerController)!=null?R:f).getVisibilityObserverForChild()}else lFA||(lFA=N2P()),this.localVisibilityObserver_=lFA;return this.localVisibilityObserver_},visibilityCallback:function(f){f?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.E("kevlar_use_vimio_behavior")||(PT={});PT&&!_.E("kevlar_use_vimio_behavior")&&(delete PT.attached,delete PT.detached);_.Zyl.YtVisibilityObserverBehavior=[PT];var kYA={};kYA.YtVisualElementBehavior=[_.Zyl.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.E("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.E("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var f=this.getScreenLayer&&this.getScreenLayer(),R=this.getVisibilityLogger();R&&R.reportShown(this,void 0,f)}},
onHidden:function(){if(_.E("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.E("kevlar_vimio_use_shared_monitor")){var f=this.getScreenLayer&&this.getScreenLayer(),R=this.getVisibilityLogger();R&&R.reportHidden(this,void 0,f)}},
getVisibilityLogger:function(){return _.E("kevlar_use_vimio_behavior")?_.aF():null},
shouldSkipLogging:function(){if(_.Tf("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var f=this.getParentRenderer&&this.getParentRenderer();if(!f)return!1;var R,u=(R=f.polymerController)!=null?R:f;if(!u.data)return!1;f=this.data.trackingParams;f=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:f;var O;R=(O=u.data)==null?void 0:O.trackingParams;var c,h;R=((c=u.data)==null?0:c.loggingDirectives)?(h=u.data)==null?void 0:h.loggingDirectives.trackingParams:R;return f&&R&&f===
R}}];var PNt=new Map,CU;var NKB=function(f){this.layer=f},Jx=function(f){return f.layer!==void 0?f.layer:f.parent?Jx(f.parent):f.layer=0};var xYq;_.r={};xYq=0;_.r.YtRendererBehavior=[_.M7.YtComponentBehavior,kYA.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_:_.E("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var f,R;(R=(f=this.monitorScrollElement)!=null?f:this.hostElement)==null||R.removeEventListener("scroll",_.ks(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();IIq(this.hostElement);CSA(_.Q3(),this.hostElement);sJ.delete(this.hostElement)},
registerRenderer:function(f){var R;((R=f.polymerController)!=null?R:f).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(f),this.markDirty())},
unregisterRenderer_:function(f){this.useVimio_||(this.childCache_.delete(f),this.markDirty())},
attached:function(){var f=this,R=this.getParentRenderer();if(R){var u,O,c;(O=(u=(c=R.polymerController)!=null?c:R).registerRenderer)==null||O.call(u,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var h,l;(l=(h=this.monitorScrollElement)!=null?h:this.hostElement)==null||l.addEventListener("scroll",_.ks(this,this.onScroll))}_.JA.addJob(function(){UYn(f.hostElement)},8);
u=new NKB(this.screenLayer||void 0);(R=nv(R))&&R.layerNode&&(u.parent=R.layerNode);R={};pqh(this.hostElement,(R.isRenderer=!0,R.layerNode=u,R[zS]=this.data,R))},
getParentRenderer:function(){for(var f=this.hostElement.parentNode,R,u;f&&((R=nv(f))==null||!R.isRenderer)&&!((u=f.polymerController)!=null?u:f).isRenderer_;)f=f.parentNode||f.host;return f},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.E("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Hh("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.E("debug_web_ve_data")&&this.data.trackingParams){var f="";try{f=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(u){_.TL(u)}if(f){var R=uO5(f,1);R!==void 0&&(this.hostElement.dataset.veIndex=String(R));f=uO5(f,2);
f!==void 0&&(this.hostElement.dataset.ve=String(f))}}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,_.E("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.t4(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Fy(_.wR(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var f=this.data.targetId;_.dCk(_.Q3(),f,this.hostElement)}else CSA(_.Q3(),this.hostElement)},
onScroll:function(){var f=Date.now();f-this.lastHandledScroll_<50||(this.lastHandledScroll_=f,this.markDirty())},
markDirty:function(){_.E("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():SI0(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var f=this.getParentRenderer();if(f&&(f=nv(f))&&f.layerNode)return Jx(f.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.yq(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var f=0;f<this.data.impressionEndpoints.length;f++)this.sendImpression(this.data.impressionEndpoints[f]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(f){f.clickTrackingParams&&delete f.clickTrackingParams;var R,u;(f==null?0:(R=f.commandMetadata)==null?0:(u=R.webCommandMetadata)==null?0:u.sendPost)?_.hH(this.hostElement,[f,{impression:!0}]):_.ZW(this.hostElement,[f],this.hostElement)},
logExplicitClick:function(f){var R=_.z4(this.getScreenLayer());if(R){var u,O=(u=f.polymerController)!=null?u:f;f=O.visualElement;O=O.trackingParams||O.clickTrackingParams;!f&&O&&(f=_.t4(O));f&&_.Sa(R,f)}}}];var KIk={},Uq=function(){return _.w_.apply(this,arguments)||this};
_.y(Uq,_.w_);Uq.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Uq.prototype.onPdgItemBehaviorClick=Uq.prototype.onPdgItemBehaviorClick;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Uq.prototype,"data",void 0);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Uq.prototype,"onPdgItemBehaviorClick",null);Uq=_.B([_.mt()],Uq);KIk.YtPdgLiveChatItemBehavior=[Uq.prototype,_.r.YtRendererBehavior];var qZC;var A8Y;_.eG={};_.eG.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var GM=function(){var f=vC.apply(this,arguments)||this;f.switchTemplateAtRegistration=!1;return f};
_.y(GM,vC);GM.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||nbB(this),_.yge(this,"doRender"),this.doRender())};
GM.prototype.debounceRender=function(){this.templatingFn&&_.UU(this,"doRender",this.doRender)};
GM.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.TL(Error("Zg"))};
GM.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
GM=_.B([QG0()],GM);var aFI=GM;var FIk=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,BT={},iFt=(BT[1]={filterString:null,isUnwrappable:null,unwrap:null},BT[2]={filterString:function(f,R,u){return Op(u)},
isUnwrappable:function(f){return f instanceof bh},
unwrap:function(f){return jy(f)}},BT[3]={filterString:function(f,R,u){return FIk.test(u)?u:Wz.toString()},
isUnwrappable:function(f){return aa(f)},
unwrap:function(f){return _.F3(f)}},BT[4]={filterString:function(){return Wz.toString()},
isUnwrappable:function(f){return f instanceof Z0},
unwrap:function(f){return _.k3(f).toString()}},BT[5]={filterString:function(f,R,u){return u},
isUnwrappable:function(f){return typeof f==="string"},
unwrap:function(f){return f.toString()}},BT[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(f){return f instanceof _.Hz},
unwrap:function(f){return Mu(f)}},BT[8]={filterString:function(f,R,u){u=String(u).toLowerCase();
return a97(f,R,u)?u:"zClosurez"},
isUnwrappable:null,unwrap:null},BT[10]={filterString:null,isUnwrappable:null,unwrap:null},BT);v5[MK["default"]]=fft;var RYe=[];var mVP=OA2("A"),Qvn=OA2("BUTTON"),tS=OA2("DIV"),WU0=OA2("LABEL");(function(){var f=Vt;Vt=function(R){f==null||f(R);LU(function(){for(var u=0;u<R.length;u++)uKn(R[u])})}})();var or=function(){var f=_.w_.apply(this,arguments)||this;f.hasUnmounted=!1;return f};
_.y(or,_.w_);_.X=or.prototype;_.X.beforeRegister=function(){var f=this.doIdomRender;this.templatingFn?_.TL(Error("Yg")):(this.templatingFn=f,this.switchTemplateAtRegistration=!0,vbn(this))};
_.X.attached=function(){};
_.X.detached=function(){uKn(this.hostElement)};
_.X.renderIdom=function(){throw Error("ah");};
_.X.doIdomRender=function(){var f=this;vrP(this.hostElement,function(){f.renderIdom()})};
or=_.B([_.mt()],or);var wnC=[aFI.prototype,or.prototype];var mFH,QMY=function(){return mFH!==void 0?mFH:mFH=document.createElement("template")};
document.head.appendChild(QMY().content);var WIF;var EAk,tpI=function(){return EAk!==void 0?EAk:EAk=document.createElement("template")};
document.head.appendChild(tpI().content);var CaY;var y8E=document.head,dFA=y8E.appendChild,Nri;if(CaY===void 0){var LIk=document.createElement("template");_.N(LIk,"\x3c!--css-build:shady--\x3e");LIk.content.insertBefore(tpI().content.cloneNode(!0),LIk.content.firstChild);CaY=LIk}Nri=CaY;dFA.call(y8E,Nri.content);var byG,pnf=function(){return byG!==void 0?byG:byG=document.createElement("template")};
document.head.appendChild(pnf().content);var jMi;var DFf=document.head,J8A=DFf.appendChild,zyk;if(jMi===void 0){var TrE=document.createElement("template");_.N(TrE,"\x3c!--css-build:shady--\x3e");TrE.content.insertBefore(pnf().content.cloneNode(!0),TrE.content.firstChild);jMi=TrE}zyk=jMi;J8A.call(DFf,zyk.content);var HyY=document.head,IFE=HyY.appendChild,Mpk;if(WIF===void 0){var Paf=document.createElement("template");_.N(Paf,"\x3c!--css-build:shady--\x3e");Paf.content.insertBefore(QMY().content.cloneNode(!0),Paf.content.firstChild);WIF=Paf}Mpk=WIF;IFE.call(HyY,Mpk.content);var UFi,eyA=function(){return UFi!==void 0?UFi:UFi=document.createElement("template")};
document.head.appendChild(eyA().content);var GYk;_.oF=new _.Vi("DARK_THEME_TOKEN");var Vmh=new _.Y("accessibilityProperties");var nKX=new _.Y("layoutProperties");var YBX=new _.Y("imageType");var Bri={};if("ytAttributedStringLinkHoverColor"in Bri)throw Error("dh`ytAttributedStringLinkHoverColor");(function(f,R){Bri[f]="value"in R&&"unit"in R?lf5(f,R):function(u){try{return R(u)}catch(O){throw Error("bh`"+f+"`"+O.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var oAC=function(f){var R=this;this.holdTime=f===void 0?500:f;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(u){var O=new CustomEvent("LONG_PRESS"),c;(c=u.changedTouches[0].target)==null||c.dispatchEvent(O)};
this.ontouchstart=function(u){R.longPressTimeout=_.Cr(_.JA,function(){R.onlongpress(u);R.longPressOccurred=!0},R.holdTime)};
this.ontouchmove=function(){_.JA.cancelJob(R.longPressTimeout);R.longPressTimeout=NaN;R.longPressOccurred=!1;R.moveOccurred=!0};
this.ontouchend=function(u){if(R.longPressTimeout&&!R.longPressOccurred&&!R.moveOccurred){var O;(O=u.changedTouches[0].target)==null||O.dispatchEvent(new Event("click"))}_.JA.cancelJob(R.longPressTimeout);R.longPressTimeout=NaN;R.longPressOccurred=!1;R.moveOccurred=!1}};var DdP=function(f,R){oAC.call(this,R);var u=this;this.callback=f;this.onlongpress=function(O){var c;(c=u.callback)==null||c.call(u,O)}};
_.y(DdP,oAC);var J07=function(f,R){var u=Object.assign({},R);f=_.Z(new Map([["ontouchstart",f.ontouchstart],["ontouchend",f.ontouchend],["ontouchmove",f.ontouchmove]]));for(var O=f.next(),c={};!O.done;c={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},O=f.next()){var h=_.Z(O.value);O=h.next().value;h=h.next().value;c.eventName$jscomp$85=O;c.eventHandler$jscomp$1=h;R[c.eventName$jscomp$85]=function(l){return function(K){var q;(q=u[l.eventName$jscomp$85])==null||q.call(u,K);(0,l.eventHandler$jscomp$1)(K)}}(c)}};_.rv=new _.Vi("COMMAND_HANDLER_TOKEN");var Kkn=new _.Y("parallelCommand");var afh=new _.Y("performOnceCommand");var A02=new _.Y("serialCommand");var Fk2=void 0;var xFf=function(){this.data=[]};
xFf.prototype.push=function(f){this.data.push(f)};var uX={};_.qK(uX,void 0,"sgPmTd");_.qK(null,void 0,"jypsq");var uvl=new xFf;var y0n=[fr7,RHn,ugl,cJ0,OZ2,rph,X6l,hHP];var gKh=new _.Y("bracketTextDecorator");var B7=new _.Y("highlightTextDecorator");_.SQ=new _.Vi("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Bi7=function(){},SZE;
(SZE=window.requestIdleCallback)==null||SZE.bind(window);var xdn={calledOnce:!1,state:"visible"},oKX={calledOnce:!1,state:"hidden"};var $FC=new _.Vi("ICON_WIZ_COMPONENT_TOKEN");_.WM=_.nf(function(f){var R=f.icon;var u=f.active;var O=f.className;var c=f.style;var h=f.dataSelected;var l=f.dataDisabled;var K=f.role;var q=f.animateIcon;var F=f.themeOverride;var w=f.ariaHidden;var m=f.ariaExpanded;var W=f.ariaLabel;var C=f.id;var d=f.size;var p=f.iconFilter;return _.a(_.Q,{cond:R,then:function(){var J=_.vh().resolve($FC);return _.a(J,{icon:R,dataSelected:h,dataDisabled:l,animateIcon:q,themeOverride:F,ariaExpanded:m,id:C,active:u,size:d,role:K,className:O,ariaHidden:w,ariaLabel:W,
style:function(){return c!=null&&c()||d==null||!d()?c==null?void 0:c():"width: "+(d==null?void 0:d())+"px;height: "+((d==null?void 0:d())+"px;")},
iconFilter:p})}})},"b");
_.WM.idomCompat=!0;var Av2=window.devicePixelRatio||1;var mr2=new Map([["yt_outline_bag_black_24","bag"]]);var xd=function(f){var R=this;this.margin=.1;this.whenInViewportWithMargin=f;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){R.requestScan()});
window.addEventListener("touchend",function(){R.requestScan()});
window.addEventListener("updateui",function(){R.requestScan()});
var u=new _.vJ((0,_.NG)(this.requestScan,this),100);window.addEventListener("scroll",function(){u.fire()},!0);
window.addEventListener("resize",(0,_.NG)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){R.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.NG)(this.requestScan,this))};
xd.prototype.observe=function(f){this.observationTargets.includes(f)||this.observationTargets.push(f)};
xd.prototype.unobserve=function(f){this.observationTargets=this.observationTargets.filter(function(R){return R!==f})};
xd.prototype.requestScan=function(){var f=this;this.scanRequested||(LU(function(){gAt(f)}),this.scanRequested=!0)};
var gAt=function(f){var R=(1+f.margin)*(document.documentElement.clientHeight||window.innerHeight);f.observationTargets=f.observationTargets.filter(function(u){var O=u.getBoundingClientRect();(O=R>O.top&&!!O.height)&&f.whenInViewportWithMargin(u);return!O&&u.parentNode});
f.scanRequested=!1};
xd.prototype.disconnect=function(){this.observationTargets=[]};var sMC,Vpk;sMC=_.Z(_.qK(Cpl(),void 0,"O3X2wd"));_.nAf=sMC.next().value;Vpk=sMC.next().value;window.addEventListener("resize",function(){Vpk(Cpl())});var YZk={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},vAA=void 0,iyt=window.innerWidth,r8C=window.innerHeight;window.addEventListener("resize",function(){vAA=void 0});var fIC;if("IntersectionObserver"in window)fIC=NVD();else{if(vAA===void 0){var Rrf;Rrf="matchMedia"in window?window.matchMedia(YZk.landscape+","+YZk.portrait).matches:void 0;vAA=Rrf!==void 0?Rrf:iyt>=930&&r8C>=550||iyt>=550&&r8C>=930}fIC=vAA?{observe:function(f){LU(function(){var R;(R=f.onViewportEntered)==null||R.call(f)})},
unobserve:function(){}}:new xd(function(f){LU(function(){var R;
(R=f.onViewportEntered)==null||R.call(f)})})}var yvP=fIC;var uck=_.nf(function(f){var R=!1,u=_.sW(function(O){_.jN(function(){R=!0;O.onload=null})});
_.pc(function(){var O,c=(O=f.data)==null?void 0:O.call(f),h,l=(h=f.getSrc)==null?void 0:h.call(f).cb,K;O=(K=f.config)==null?void 0:K.call(f);if(K=u.value)if(h=function(F,w){if(!R)return l?l(F,w):F},p3l(K,O),_.E("web_image_dont_reload_same_src")&&bM7(K,c,h))_.E("web_image_dont_reload_same_src_simulate_load")&&K.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var q;L3B(K,c||null,h,O,(q=f.lazy)==null?void 0:q.call(f))}});
return _.a("img",{el:u})},"c");
uck.idomCompat=!0;_.gR=_.nf(function(f){var R=function(){var u,O=f.data(),c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD,mP,NX,jt,Jn,zq,St,Gq;var LC={contentMode:(c=f.contentMode)==null?void 0:c.call(f),loadedClass:(h=f.loadedClass)==null?void 0:h.call(f),isPreloaded:(l=f.isPreloaded)==null?void 0:l.call(f),notifyOnLoaded:(K=f.notifyOnLoaded)==null?void 0:K.call(f),notifyOnUnloaded:(q=f.notifyOnUnloaded)==null?void 0:q.call(f),preferredThumbnail:(F=f.preferredThumbnail)==null?void 0:F.call(f),preserveHeight:(w=f.preserveHeight)==
null?void 0:w.call(f),preserveWidth:(m=f.preserveWidth)==null?void 0:m.call(f),objectPosition:(W=f.objectPosition)==null?void 0:W.call(f),targetWidth:(C=f.targetWidth)==null?void 0:C.call(f),targetHeight:(d=f.targetHeight)==null?void 0:d.call(f),shouldShowPlaceholder:(p=f.shouldShowPlaceholder)==null?void 0:p.call(f),useWidth:(J=f.useWidth)==null?void 0:J.call(f),alt:(M=f.alt)==null?void 0:M.call(f),className:(P=f.className)==null?void 0:P.call(f),onerror:f.onerror,onload:f.onload,style$:((g=f.style$)==
null?void 0:g.call(f))||((x=f.style)==null?void 0:x.call(f)),color:(fh=f.color)==null?void 0:fh.call(f),width:(V=f.width)==null?void 0:V.call(f),height:(ZD=f.height)==null?void 0:ZD.call(f),"aria-hidden$":(St=(mP=f["aria-hidden$"])==null?void 0:mP.call(f))!=null?St:(NX=f.ariaHidden)==null?void 0:NX.call(f),draggable:(jt=f.draggable)==null?void 0:jt.call(f),"data-disabled$":(Gq=(Jn=f["data-disabled$"])==null?void 0:Jn.call(f))!=null?Gq:(zq=f.dataDisabled)==null?void 0:zq.call(f)};return Jv0(O,LC,(u=
f.hideOn404)==null?void 0:u.call(f))};
return _.a(_.yM,null,_.a(_.t1,{when:function(){var u;return((u=R())==null?void 0:u.type)==="image"}},function(){return _.a(uck,{data:function(){return R().image},
getSrc:{cb:function(u,O){var c=R().image.sources,h=R().config.isPreloaded,l=R().config.useWidth,K=R().config.targetWidth,q=R().config.targetHeight,F=R().config.preferredThumbnail;return _.ax2(O,c,h,l,K,q,F)||""}},
config:function(){var u=R().config,O;for(O in u)u[O]===void 0&&delete u[O];return u},
lazy:f.renderLazy})}),_.a(_.t1,{when:function(){var u;
return((u=R())==null?void 0:u.type)==="icon"}},function(){return _.a(_.WM,{icon:function(){return R().iconName},
role:function(){return R().config.role},
className:function(){return R().config.className},
style:function(){return R().config.style$+";width: "+(R().config.width+"px;height: ")+(R().config.height+"px;color: ")+(R().config.color+";")},
ariaLabel:function(){return R().config["aria-label$"]},
ariaHidden:function(){return R().config["aria-hidden$"]},
dataDisabled:function(){return R().config["data-disabled$"]}})}))},"d");
_.gR.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var OFk=function(f){return function(R){return _.a(F8t,null,function(){var u=R.data(),O=_.Jy(R.config);return _.a(VL,null,function(){return void f(u,O)})})}}(Ix5),TVn=_.nf(function(f){var R=function(O){var c,h=_.nU(function(W){c=D1(function(){for(var C=_.Z(w()),d=C.next();!d.done;d=C.next()){d=MLq(d.value);
d=typeof d==="string"?document.createTextNode(d):d;if(!(d instanceof Node)){C=new _.ts("Part is not a node",d,typeof d);_.TL(C);break}W.appendChild(d)}})}),l=V0(function(){return iAe(O())},{isEqual:z_h}),K=_.g_(f.config),q=function(){var W,C=l();
return!((W=K())==null||!W.ariaLabel)||!(C.commandRuns&&C.commandRuns.length!==0||C.paragraphStyleRuns&&C.paragraphStyleRuns.length!==0)},F=V0(K,{isEqual:Ure}),w=function(){var W=vKq(l(),F());
fxn(W,F());return l().content?h_B(l().content,W).parts:[]},m=!0;
_.pc(function(){l();F();if(m)m=!1;else{var W=w();Promise.resolve().then(function(){var C=h.value;if(C){C.innerText="";var d;(d=c)==null||d();c=_.dv(C,function(){return _.a(PpD,{parts:W})})}})}});
return _.a("span",{el:h,class:function(){return l()&&Mm7(l(),K())},
dir:function(){var W;return((W=K())==null?0:W.userInput)?"auto":void 0},
"aria-label":function(){var W;return q()?(W=K())==null?void 0:W.ariaLabel:void 0},
role:function(){return q()?"text":void 0}})},u;
return((u=f.config)==null?0:u.renderedFromFormattedString)?R(f.text):_.a(_.Q,{cond:f.text,then:R})},"e");
TVn.idomCompat=!0;_.YO=_.nf(function(f){var R=_.g_(f.text),u=e_e(f);f.renderedFromFormattedString!==void 0&&(u.renderedFromFormattedString=!0);return _.E("attr_string_reactive")?_.a(TVn,{text:R,config:u}):_.a(_.Q,{cond:function(){var O;return R()&&((O=iAe(R()))==null?void 0:O.content)},
then:function(){return _.a(OFk,{data:f.text,config:u})},
debugInstance:"Apcuac"})},"f");
_.YO.idomCompat=!0;var BVt=function(f,R,u){R=R===void 0?"unknown":R;u=u===void 0?{}:u;_.ts.call(this,f+" ("+R+")",Object.assign({},{name:"YtWcwError",tagName:R},u));Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(BVt,_.ts);_.sP5=new WeakMap;_.gen=!1;var $rl,neP,SAD;_.SG=Symbol("fh");_.v7=Symbol("gh");$rl=Symbol("hh");neP=new Set(Object.getOwnPropertyNames(Element.prototype));SAD=Symbol("ih");var cXk=_.nf(function(f){return _.a("yt-attributed-string",{"aria-label":f.ariaLabel,hidden:f.hidden,id:f.id,class:f.className,"force-default-style":f.forceDefaultStyle},_.a(_.YO,{text:f.data,ariaLabel:f.ariaLabel,ellipsisTruncate:f.ellipsisTruncate,isOverlay:f.isOverlay,linkInheritColor:f.linkInheritColor,noPreWrap:f.noPreWrap,noWrap:f.noWrap,userInput:f.userInput,noEndpoints:f.noEndpoints,headerRuns:f.headerRuns}))},"g");
_.E("web_wiz_attributed_string")&&_.ii(cXk,"yt-attributed-string",{props:{ariaHidden:_.SG,ariaLabel:_.SG,className:_.SG,ellipsisTruncate:_.SG,isOverlay:_.SG,linkInheritColor:_.SG,noEndpoints:_.SG,noStyleRuns:_.SG,noLinkColor:_.SG,noPreWrap:_.SG,noWrap:_.SG,skipOnClick:_.SG,userInput:_.SG,headerRuns:_.SG,id:_.SG,data:_.SG,hidden:_.SG,forceDefaultStyle:_.SG,text:_.v7,stopPropagation:_.v7,disableUpgrade:_.v7,disable:_.v7,slot:_.v7}});var $d=function(){return _.U.apply(this,arguments)||this};
_.y($d,_.U);$d.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},Ix5(this.data,this.config))};
_.B([_.z(wnC),_.S("design:type",Object)],$d.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$d.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],$d.prototype,"ariaLabel",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"disable",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"ellipsisTruncate",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"isOverlay",void 0);
_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"linkInheritColor",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"noPreWrap",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"noWrap",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"userInput",void 0);_.B([_.I(),_.S("design:type",Boolean)],$d.prototype,"noEndpoints",void 0);_.B([_.I(),_.S("design:type",Array)],$d.prototype,"headerRuns",void 0);
$d=_.B([_.DO({is:"yt-attributed-string",disableElementRegistration:!0})],$d);
_.E("web_wiz_attributed_string")||_.G($d,"yt-attributed-string",function(){if(GYk===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
f.content.insertBefore(eyA().content.cloneNode(!0),f.content.firstChild);GYk=f}f=GYk;return f},{mode:2});var XVk,hrC,RCt;XVk=function(){this.firstThumbnailLoaded=!1};
_.ZFC=function(){hrC||(hrC=new XVk);return hrC};
RCt=function(f){var R=_.ZFC();R.firstThumbnailLoaded||(R.firstThumbnailLoaded=!0,_.JH("ftl",f))};
XVk.prototype.reset=function(){this.firstThumbnailLoaded=!1};var YAD=0,fch=new WeakMap,iMB=0,RX=new Set;var lII,k8t=function(){return lII!==void 0?lII:lII=document.createElement("template")};
document.head.appendChild(k8t().content);var Kci;var Xwt,Z12,gj;_.cM=_.Oe.caches;gj=function(){};
gj.prototype.open=function(f){return _.cM.open(qIE(f))};
gj.prototype.has=function(f){return _.cM.has(qIE(f))};
gj.prototype.delete=function(f){return _.cM.delete(qIE(f))};
gj.prototype.match=function(f,R){var u=this,O,c,h,l,K,q;return _.k(function(F){switch(F.nextAddress){case 1:return _.A(F,u.keys(),2);case 2:O=F.yieldResult,c=_.Z(O),h=c.next();case 3:if(h.done){F.jumpTo(5);break}l=h.value;return _.A(F,u.open(l),6);case 6:return K=F.yieldResult,_.A(F,K.match(f,R),7);case 7:if(q=F.yieldResult)return F.return(q);h=c.next();F.jumpTo(3);break;case 5:return F.return()}})};
var lc7=function(){};
_.y(lc7,gj);var qIE=function(f){if(f.includes(":"))throw Error("lh`"+f);return f+":"+_.Wf("CacheStorage get")};
lc7.prototype.keys=function(){var f,R,u,O,c,h,l,K,q;return _.k(function(F){if(F.nextAddress==1)return f=[],R=_.Wf("CacheStorage keys"),_.A(F,_.cM.keys(),2);u=F.yieldResult;O=_.Z(u);for(c=O.next();!c.done;c=O.next())h=c.value,l=_.cBX(h),K=l.originalName,q=l.datasyncId,q===R&&f.push(K);return F.return(f)})};var sq=function(){var f=_.U.apply(this,arguments)||this;f.objectURL=null;f.loadTime=Infinity;return f};
_.y(sq,_.U);_.X=sq.prototype;_.X.renderIdom=function(){O1n(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("oh");this.setConfig();this.config&&jP7(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.X.objectFitToContentMode=function(f){switch(f){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.X.logThumbnailFailureVe=function(){var f=_.dx(197497);_.c1(_.wR(),f);var R=_.z4();R&&f&&R&&_.op(R,[f])};
_.X.loadImageFromCacheIfExists=function(f){var R=this,u=f.target;(u==null?0:u.src)&&Ke7(u.src).then(function(O){R.objectURL=_.Cj(O).toString();R.setSrc(u,R.objectURL)}).catch(function(){})};
_.X.onError=function(f){var R=this;if(_.E("web_use_cache_for_image_fallback")){var u=f.target;u&&Ke7(u.src).then(function(O){R.objectURL=_.Cj(O).toString();R.setSrc(u,R.objectURL)}).catch(function(){_.E("kevlar_woffle_log_thumbnail_failure_ve")&&R.logThumbnailFailureVe();
_.E("kevlar_woffle_fallback_image")&&R.setSrc(u,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.X.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.X.setConfig=function(){var f=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(R){f.loadImageFromCacheIfExists(R);f.revokeObjectURL();ubn(f.hostElement)},
onerror:function(R){f.onError(R)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.E("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.X.setSrc=function(f,R){R&&(f.src=R)};
_.B([_.z(wnC),_.S("design:type",Object)],sq.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sq.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],sq.prototype,"alt",void 0);_.B([_.I(),_.S("design:type",Boolean)],sq.prototype,"ftlEligible",void 0);_.B([_.I(),_.S("design:type",Number)],sq.prototype,"height",void 0);_.B([_.I(),_.S("design:type",Boolean)],sq.prototype,"notifyOnLoaded",void 0);
_.B([_.I(),_.S("design:type",Boolean)],sq.prototype,"notifyOnUnloaded",void 0);_.B([_.I(),_.S("design:type",String)],sq.prototype,"objectFit",void 0);_.B([_.I(),_.S("design:type",String)],sq.prototype,"objectPosition",void 0);_.B([_.I(),_.S("design:type",String)],sq.prototype,"preferredThumbnail",void 0);_.B([_.I(),_.S("design:type",Boolean)],sq.prototype,"preserveHeight",void 0);_.B([_.I(),_.S("design:type",Boolean)],sq.prototype,"preserveWidth",void 0);
_.B([_.I({value:!0}),_.S("design:type",Boolean)],sq.prototype,"useWidth",void 0);_.B([_.I({value:function(){return!_.Hh("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.S("design:type",Boolean)],sq.prototype,"shouldRenderLazy",void 0);_.B([_.I(),_.S("design:type",Number)],sq.prototype,"width",void 0);sq=_.B([_.DO({is:"yt-image",disableElementRegistration:!0})],sq);
_.G(sq,"yt-image",function(){if(Kci===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(k8t().content.cloneNode(!0),f.content.firstChild);
Kci=f}f=Kci;return f},{mode:2});var nk=function(){return _.U.apply(this,arguments)||this};
_.y(nk,_.U);nk.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var f=_.H7(this.data.onVisibleCommand);f&&this.ytComponentBehavior.resolveCommand(f)}};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],nk.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.eG.YtVisibilityBehavior),_.S("design:type",Object)],nk.prototype,"ytVisibilityBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nk.prototype,"data",void 0);nk=_.B([_.DO({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],nk);
_.G(nk,"yt-bumper-user-edu-content-view-model",function(){if(A8Y===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;qZC===void 0&&(qZC=document.createElement("template"));var O=qZC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);A8Y=f}f=A8Y;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var AXf;var aIG,FcI=function(){if(aIG!==void 0)return aIG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;AXf===void 0&&(AXf=document.createElement("template"));var O=AXf;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return aIG=f};var wVG;_.V3={};wVG=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"]);_.V3.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var f=this.getContext_();return f?f.getTaskManager():_.JA},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var f=_.ul(this.hostElement,"yt-get-context-provider",{});f.detail&&f.detail.contextProvider?this.cachedProviderNode_=f.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return wVG.has(this.hostElement.localName)},
getNetworkManager:function(){var f=this.getContext_();if(f)return f.getNetworkManager()}};var mN7,mYE,WcH,QoF;_.Yd=function(f){var R=mYE.get(f);if(R&&(R=R.pop()))return QoF++,R;WcH++;try{var u=document.createElement(f)}catch(O){throw new _.ts("ElementPool failed to create element",f,O.message);}return u};
mN7=function(f){var R=f.is;if(R){var u=mYE.get(R);u||(u=[],mYE.set(R,u));var O=_.Tf("ELEMENT_POOL_CONFIG")||{};u.length>=(O[R]!==void 0?O[R]:_.Tf("ELEMENT_POOL_DEFAULT_CAP",0))||u.push(f)}else _.Ih(new _.ts("Element pool should only handle custom elements:",f.nodeName))};
mYE=new Map;WcH=0;QoF=0;var Xf=new WeakMap,wwP=new WeakMap;var tUi;_.vT=function(f,R,u){u=u===void 0?_.LS():u;this.JSC$11685_defaultPriority=f;this.signal=R;this.scheduler=u;this.nextJobDescriptor=0;this.JSC$11685_parkedJobs=[];this.scheduledJobs=new Map};
_.iU=function(f,R){if(R){var u=_.TC();f.signal&&!_.H1(u,f.signal)?(u.addListener(f.signal,function(){f.processSignal()}),f.JSC$11685_parkedJobs.push({job:R,
priority:void 0})):EbC(f,R)}};
tUi=function(f,R){if(R!==f.JSC$11685_defaultPriority){f.JSC$11685_defaultPriority=R;for(var u=_.Z(f.scheduledJobs.values()),O=u.next();!O.done;O=u.next())O=O.value,f.scheduler.cancelJob(O.jobId),O.jobId=f.scheduler.addJob(O.jobWrapper,R)}};
_.vT.prototype.flushJobs=function(){tUi(this,10);this.processSignal()};
_.vT.prototype.cancel=function(){for(var f=_.Z(this.scheduledJobs),R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;this.scheduler.cancelJob(u.jobId);this.scheduledJobs.delete(R)}this.JSC$11685_parkedJobs=[]};
_.vT.prototype.processSignal=function(){for(var f=_.Z(this.JSC$11685_parkedJobs),R=f.next();!R.done;R=f.next())R=R.value,EbC(this,R.job,R.priority);this.JSC$11685_parkedJobs=[]};
var EbC=function(f,R,u){u=u||f.JSC$11685_defaultPriority;if(u===10)ue(R);else{var O=f.nextJobDescriptor++,c=function(){R();f.scheduledJobs.delete(O)},h=f.scheduler.addJob(c,u);
f.scheduledJobs.set(O,{jobWrapper:c,jobId:h,priority:u})}};_.RI(tZl);var CI0={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};Ccn({beforeVisit:function(f){if(RF.has(f.type)){var R;(R=f.props).idomKey!=null||(R.idomKey=f.type)}else f.type.TAG_NAME&&(r_=f.type.TAG_NAME)},
afterRender:function(f,R){var u;r_=(u=R==null?void 0:R.type)!=null?u:""},
didPatch:function(){r_=""}});var CNf;_.rj={};CNf={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.rj.YtRendererstamperBehavior=[_.V3.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 f in this.stampDom){var R=this.stampDom[f];R&&R.id&&this.addReactiveSchema({type:"observe",method:{methodName:ABq(R.id),args:[{type:"wildcard",path:f}]}})}else{(f=(this.constructor.generatedFrom||this).observers)||(f=[]);for(R in this.stampDom){var u=this.stampDom[R];u&&u.id&&f.push(ABq(u.id)+"("+R+".*)")}this.constructor.generatedFrom.observers=f}},
addStampDomObserverFns_:function(){for(var f in this.stampDom){var R=this.stampDom[f];R.id?(this[ABq(R.id)]=this.rendererStamperObserver_.bind(this,f,R.id),this.hasDataPath_[f]=!1):(R=new _.ts("Bad rendererstamper config",this.is+":"+f),_.TL(R))}},
rendererStamperObserver_:function(f,R,u){if(u.path==f){if(u.value===void 0&&!this.hasDataPath_[f])return;this.hasDataPath_[f]=u.value!==void 0}this.rendererStamperApplyChangeRecord_(f,R,u)},
rendererStamperApplyChangeRecord_:function(f,R,u){var O=this.renderJobsMap_[R],c=null;f==u.path?(u=u.value,_.Rk(u)||(u=u===void 0||u===null?[]:[u]),f=this.stampDom[f],f.mapping&&(c=this.stampDomArray_.bind(this,u,R,f.mapping,f.reuseComponents,f.events,f.stamperStableList)),O&&O.cancel(),u=f.usePageScheduler?this.getTaskManager():void 0,O||f.initialRenderPriority==void 0)?f.renderPriority==void 0||O||(O=new _.vT(f.renderPriority,f.waitForSignal,u),this.renderJobsMap_[R]=O):(O=new _.vT(f.initialRenderPriority,
f.waitForSignal,u),this.renderJobsMap_[R]=O,c=function(h,l){h();tUi(l,10)}.bind(this,c,O)):c=f+".splices"==u.path?this.stampDomArraySplices_.bind(this,f,R,u.value):this.forwardRendererStamperChanges_.bind(this,f,R,u);
O?_.iU(O,c):c()},
forwardRendererStamperChanges_:function(f,R,u){var O=u.path.slice(f.length+1),c=this.getStampContainer_(R),h=O.indexOf("."),l=O.substring(0,h),K=!1,q=0,F=parseInt(l,0);if(l[0]=="#"){K=parseInt(l.substring(1),0);F=this.get(f);var w=this.get([f,l]);F[K]==w?q=K:q=F.indexOf(w);K=!0}else isNaN(F)||(q=F,K=!0);K&&(O=O.substring(l.length+1),h=O.indexOf("."));l=_.du(c).children[q];var m;if(c=(m=l==null?void 0:l.polymerController)!=null?m:l)O="data"+O.slice(h),typeof c.notifyPath!=="function"?_.Ih(new _.ts("notifyPath missing",
this.is+": "+f+", "+R)):u.value?c.notifyPath(O,u.value):c.notifyPath(O)},
stampDomArraySplices_:function(f,R,u){if(u&&u.indexSplices){var O=this.getStampContainer_(R);if(O){for(var c=_.du(O),h=FeB(this.stampDom[f].reuseComponents),l=u.indexSplices.length,K=0;K<l;K++){for(var q=u.indexSplices[K],F=c.children[q.index],w=q.removed.length;w>0;w--)F&&F.parentElement&&(_.du(F.parentElement).removeChild(F),h&&mN7(F),F=c.children[q.index]);w=this.stampDom[f].mapping;for(var m=q.index+q.addedCount,W=document.createDocumentFragment(),C=h,d=q.index;d<m;d++){var p=q.object[d],J=q6B(w,
p);if(J){var M=w[J];p=p[J];J=this.getComponentName_(M,p);var P=F?Xf.has(F):!1;C&&F&&F.is==J&&P?(J=F,this.telemetry_.reuse++,F=F.nextElementSibling):C&&F&&P?(J=this.createComponent_(M,p,h),P=_.du(F).nextElementSibling,c.insertBefore(J,P),WeD(this.is,c,F,h),F=P):(C=!1,J=this.createComponent_(M,p,h),W.appendChild(J));this.deferRenderStamperBinding_(J,M,p)}else M=new _.ts("Unimplemented type",f,R,O.tagName,Object.keys(p)[0]),_.TL(M)}c.insertBefore(W,F)}this.flushRenderStamperComponentBindings_();this.stampDom[f].events&&
_.ul(this.hostElement,"yt-rendererstamper-finished",{container:O})}else f=new _.ts("Container object not found",R,this.hostElement?this.hostElement.is:""),_.TL(f)}},
stampDomArray_:function(f,R,u,O,c,h){var l=this.getStampContainer_(R);if(l)if(R=_.du(l),O=FeB(O),f){var K=0,q=0,F;if(h=h===void 0?_.Hh("STAMPER_STABLE_LIST",!1):h||!1)for(F=R.firstElementChild;F&&!Xf.has(F)&&f.length>q;){h=f[q];var w=q6B(u,h);if(w){if(this.getComponentName_(u[w],h[w])!=F.is){var m=this.createComponent_(u[w],h[w],O),W=_.du(F).nextElementSibling;W?R.insertBefore(m,W):R.appendChild(m);WeD(this.is,R,F,O);F=m}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(F,u[w],h[w]);K++;
q++;F=_.du(F).nextElementSibling}else q++}EJl(this.is,R,K,O);K=F;if(f.length>q){h=document.createDocumentFragment();for(w=f.length;q<w;q++)if(m=f[q],W=q6B(u,m))F=this.createComponent_(u[W],m[W],O),this.deferRenderStamperBinding_(F,u[W],m[W]),h.appendChild(F);K&&_.du(K).parentNode&&F&&!Xf.has(F)?R.insertBefore(h,K):R.appendChild(h)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();c&&_.ul(this.hostElement,"yt-rendererstamper-finished",{container:l})}else EJl(this.is,R,0,
O);else f=new _.ts("Container object not found",R,this.hostElement?this.hostElement.is:""),_.TL(f)},
getStampContainer_:function(f){return this.$&&this.$[f]||_.b(this.hostElement).querySelector("#"+f)},
getComponentName_:function(f,R){return typeof f==="string"?f:f.matcher?f.matcher.call(this,R):f.component},
createComponent_:function(f,R,u){f=this.getComponentName_(f,R);try{var O=ui.has(f)||RF.has(f);if(u&&!O){var c=_.Yd(f);try{_.ZO(c)}catch(h){u="Failed to clear styles for "+f+".",h.message&&(u+=" Original error: "+h.message),_.Ih(new _.ts(u))}}else c=document.createElement(f)}catch(h){return c="YtRendererStamperBehavior failed to create "+f+".",h.message&&(c+=" Original description: "+h.message),h.message="YtRendererStamperBehavior failed to create element",_.MB(h,c),CNf.hasOwnProperty(f)?_.Ih(h):_.TL(h),
document.createElement("SPAN")}this.telemetry_.create++;return c},
deferRenderStamperBinding_:function(f,R,u){this.deferredBindingTasks_.push({component:f,typeOrConfig:R,data:u})},
flushRenderStamperComponentBindings_:function(){for(var f=0,R=this.deferredBindingTasks_.length;f<R;f++){var u=this.deferredBindingTasks_[f];if(!u)break;var O=void 0,c=void 0,h=void 0,l=void 0,K=u.component,q=u.typeOrConfig;u=u.data;var F=(l=K.polymerController)!=null?l:K;l=K.loggingStatus;try{l&&(l.isRendererStamper=!0);if(typeof q!=="string"){for(h in q.attributes)q.attributes[h]===!0?K.setAttribute(h,""):q.attributes[h]===!1?K.removeAttribute(h):K.setAttribute(h,q.attributes[h]);for(c in q.params)F[c]=
q.params[c],K!==F&&tl(K.localName,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(O in q.properties){var w=q.properties[O];if(w){var m=ac7(w);F[O]=this.get(m);K!==F&&tl(K.localName,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(O==="on-tap"||O==="on-click"){var W=this.get(m);K.addEventListener("click",W);wwP.set(K,{property:O,listener:{type:"element",eventName:"click",handler:W}})}}else{var C=new _.ts("Undefined property binding",O);_.TL(C)}}}if(q.classListBinding){var d=ac7(q.classListBinding),
p=d?this[d]:null;if(p)for(O=0;O<p.length;O++)_.c2(K,p[O],!0)}F.data=u}finally{l&&(l.isRendererStamper=!1)}if(O=Xf.get(K))K.hidden=!1,Xf.delete(K),_.JA.cancelJob(O)}this.deferredBindingTasks_.length=0}}];_.fq={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(f){for(var R=_.xN.getInstance(),u=_.Z(Object.keys(f)),O=u.next();!O.done;O=u.next()){var c=O.value;O=f[c];if(this&&this[O]){var h=R.actionRoutingMap.get(c);h||(h=new Map,R.actionRoutingMap.set(c,h));R.registerActionHandler(this,c,this[O].bind(this),h)}else c=Error("gd"),c.params=O,_.IS(c)}},
unregisterActionMap:function(f){_.$N(_.xN.getInstance(),f,this)}}]};var le=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var ZB;var kG=new Map;var H17=window.matchMedia("(forced-colors: active)").matches;var yXF;var dYF;var UNn=new _.Vi("LOTTIE_LOADER_TOKEN");_.ii(_.nf(function(f){return _.a("ytd-lottie-player",{id:f.id,hidden:f.hidden,class:f.className,"aria-label":f.ariaLabel,style:"display: block;"},_.a(_.qI,{data:f.data,animationName:function(){var R;return((R=f.data().animationConfig)==null?void 0:R.name)||""},
animationRef:function(){return f.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.SG,
id:_.SG,hidden:_.SG,className:_.SG,ariaLabel:_.SG}});var RD=function(){var f=_.U.apply(this,arguments)||this;f.animationRef={};return f};
_.y(RD,_.U);_.X=RD.prototype;
_.X.handlePropertyChange=function(){var f=this.animatedIcon,R=this.active,u=this.isDarkTheme;if(f){var O=this.previousActive!==R;this.previousActive=R;this.animationRef.lottieEl?O&&this.toggleAnimation(R,f.totalFrames):R?this.initializeAnimationAsToggled(f.lottiePlayerProps,f.totalFrames):this.initializeAnimationAsUntoggled(f.lottiePlayerProps);f.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=f.type;this.lottiePlayerProps=this.computeLottiePlayerProps(f,u)}};
_.X.computeLottiePlayerProps=function(f,R){var u=this.deepCloneLottiePlayerProps(f);R?(R=f.nameDarkTheme,f=f.pathDarkTheme):(R=f.name,f=f.path);u.animationConfig.name=R;(R=kG.get(f))?u.animationConfig.animationData=R:u.animationConfig.path=f;return u};
_.X.initializeAnimationAsToggled=function(f,R){f.animationConfig.initialSegment=[R-1,R]};
_.X.initializeAnimationAsUntoggled=function(f){f.animationConfig.initialSegment=void 0};
_.X.toggleAnimation=function(f,R){if(f){var u;(u=this.animationRef.lottieEl)==null||u.playSegments([0,R],!0)}else{var O;(O=this.animationRef.lottieEl)==null||O.playSegments([0,1],!0)}};
_.X.deepCloneLottiePlayerProps=function(f){var R=Object.assign({},f.lottiePlayerProps.animationConfig);f=Object.assign({},f.lottiePlayerProps);f.animationConfig=R;return f};
RD.prototype.handlePropertyChange=RD.prototype.handlePropertyChange;_.B([_.I(),_.S("design:type",Object)],RD.prototype,"animatedIcon",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],RD.prototype,"active",void 0);_.B([_.I(),_.S("design:type",Boolean)],RD.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],RD.prototype,"animatedIconType",void 0);_.B([_.I(),_.S("design:type",Boolean)],RD.prototype,"previousActive",void 0);
_.B([_.I(),_.S("design:type",Object)],RD.prototype,"lottiePlayerProps",void 0);_.B([_.I(),_.S("design:type",Object)],RD.prototype,"animationRef",void 0);_.B([_.qM("animatedIcon","active","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],RD.prototype,"handlePropertyChange",null);RD=_.B([_.DO({is:"yt-animated-icon",disableElementRegistration:!0})],RD);
_.G(RD,"yt-animated-icon",function(){if(dYF===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;yXF===void 0&&(yXF=document.createElement("template"));var O=yXF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);dYF=f}f=dYF;return f},{mode:2});var Nyk;var LcC;var Bg7=_.nf(function(f){var R=_.n0(),u=pQ(function(){return{value:null}});
_.jN(function(){var c;(c=u.value)==null||c.cancel()});
var O=_.Qt(f.data,{equals:function(c,h){return c.iconName===h.iconName&&c.iconStyle===h.iconStyle&&c.iconSize===h.iconSize&&c.iconSetName===h.iconSetName&&c.iconSelected===h.iconSelected}},"aoiXAb");
_.pc(function(){var c,h=(c=f.options)==null?void 0:c.call(f);GZB(R,u,O(),h)});
return _.a("span",{class:"yt-icon-shape",el:R})},"i");
Bg7.idomCompat=!0;var CWn=["youtube_fill","youtube_outline"];var bFA=new _.Cu({type:"iconset",value:void 0}),ud=function(){var f=_.U.apply(this,arguments)||this;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.iconName="";f.iconsetName="yt-icons";f.iconset=null;f.missingIconSet=!1;f.iconType=null;f.iconShapeDataSignal=_.qK(void 0,void 0,"RQ9kUb");f.renderingOptionsSignal=_.qK({iconWidth:"100%",iconHeight:"100%",iconFilter:f.iconFilter},void 0,"qtx8Ef");f.wizHasRendered=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(ud,_.U);ud.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
ud.prototype.handlePropertyChange=function(){var f=this,R,u,O,c,h,l,K,q,F,w;return _.k(function(m){switch(m.nextAddress){case 1:if(R=!f.icon&&!f.iconName||!f.isAttached)return m.return();u=f;O=u.icon;c=u.size;h=u.defaultToFilled;l=u.active;K=u.targetContainer;f.toggleContainerClass(K);_.E("kevlar_use_wil_icons")&&O&&(q=Qol(O),f.iconType=q.length?q[1]:null);if(O){m.jumpTo(2);break}f.iconsetName="";f.iconName="";return _.A(m,f.renderIcon(K,O),3);case 3:return m.return();case 2:F=ud.computeIcon(O);w=
Qol(F);w.length&&(f.iconsetName=w[0],f.iconName=w[1]);if(!_.E("kevlar_use_wil_icons")){m.jumpTo(4);break}return _.A(m,ud.getIconShapeData(f.iconType,f.active,f.defaultToFilled,f.size,f.iconsetName),5);case 5:f.iconShapeData=m.yieldResult;case 4:if(f.shouldRenderIconShape(K)){m.jumpTo(6);break}return _.A(m,f.determineIconSet(F,l,h,c,K),6);case 6:return _.A(m,f.renderIcon(K,O),0)}})};
ud.prototype.toggleContainerClass=function(f){f?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
ud.computeIcon=function(f){return!_.E("default_to_innertube_icon")||f.indexOf(":")>0?f:_.li(f)};
_.X=ud.prototype;_.X.determineIconSet=function(f,R,u,O){var c=this;return _.k(function(h){return h.nextAddress==1?_.E("kevlar_system_icons")||_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.A(h,c.switchToYtSysIconset(f,R,u,O),3):h.jumpTo(2):h.nextAddress!=2?h.return():_.A(h,c.useYtSysIconsetForMissingIcons(f,R,u,O),0)})};
_.X.switchToYtSysIconset=function(f,R,u,O){var c=this,h,l,K,q,F,w,m;return _.k(function(W){switch(W.nextAddress){case 1:if(!f||c.iconsetName!=="yt-icons"&&c.iconsetName!=="yt-sys-icons"){W.jumpTo(0);break}h=Qol(f);l=h[1];l=_.pVl(l);_.E("enable_polymer_icons_replace_underscores_dash")&&l.includes("_filled")&&(l=l.replace(/_filled/g,"-filled"));return _.A(W,Zz(l,!0),3);case 3:return K=W.yieldResult,_.A(W,Zz(l,!1),4);case 4:if((q=W.yieldResult)||R&&K)c.iconsetName="yt-sys-icons";c.iconName=c.getIconName(l,
R,u,q,K);if(O===24){W.jumpTo(0);break}F="yt-sys-icons"+O+":"+c.iconName;return _.A(W,Zz(F,!1,!0),6);case 6:return w=W.yieldResult,_.A(W,Zz(F,!0,!0),7);case 7:m=W.yieldResult;c.iconName=c.getIconName(l,R,u,w,m);if(!R&&w||R&&m)c.iconsetName="yt-sys-icons"+O;_.KG(W)}})};
_.X.getIconName=function(f,R,u,O,c){f.includes("-filled")&&(f=f.replace("-filled",""));return c&&(R||u)?f+"-filled":f};
_.X.useYtSysIconsetForMissingIcons=function(f,R,u,O){var c=this,h,l;return _.k(function(K){if(K.nextAddress==1)return c.iconsetName!=="yt-icons"?K.jumpTo(0):_.A(K,Zz(c.iconName,!1,!1,!0),3);if(K.nextAddress!=4)return h=K.yieldResult,_.A(K,Zz(c.iconName,!1),4);l=K.yieldResult;if(h||!l)return K.jumpTo(0);c.iconsetName="yt-sys-icons";return _.A(K,c.switchToYtSysIconset(f,R,u,O),0)})};
_.X.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
ud.getIconManager=function(){return _.k(function(f){try{return f.return(_.vh().resolve(_.kr))}catch(R){return f.return(new Promise(function(u){_.TC().parkOrScheduleJob(function(){u(_.vh().resolve(_.kr))},2,"ci")}))}})};
ud.getIconShapeData=function(f,R,u,O,c){R=R===void 0?!1:R;u=u===void 0?!1:u;O=O===void 0?24:O;c=c===void 0?"yt-icons":c;var h,l,K,q,F,w;return _.k(function(m){if(m.nextAddress==1){if(!f)return m.return(void 0);h=f.toLowerCase();l=h.endsWith("_filled")||h.endsWith("-filled");return _.A(m,ud.getIconManager(),2)}K=m.yieldResult;q=R||u||l?"youtube_fill":"youtube_outline";F={iconName:h,iconStyle:q,iconSize:O,iconSetName:c};w=!!K.resolveIcon(F);w||(F.iconSize=void 0,w=!!K.resolveIcon(F));!w&&l&&(F.iconName=
h.substring(0,h.length-7),F.iconSize=O,w=!!K.resolveIcon(F),w||(F.iconSize=void 0,w=!!K.resolveIcon(F)));w||(F.iconStyle=void 0,w=!!K.resolveIcon(F));w||_.Ih(new _.ts("Icon not supported",{iconName:F.iconName,iconStyle:F.iconStyle,iconSize:F.iconSize,iconType:h}));return m.return(w?F:void 0)})};
_.X=ud.prototype;_.X.shouldRenderIconShape=function(f){if(!_.E("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;f=this.getContainer(f);return!Icn(f,this.icon)};
_.X.renderIcon=function(f,R){var u=this,O,c,h,l,K,q,F,w;return _.k(function(m){switch(m.nextAddress){case 1:if(R&&u.icon!==R)return m.return();O=u.getContainer(f);c=Icn(O,u.icon);if(u.shouldRenderIconShape(f)&&u.iconType)return u.applyIconShape(c,O),m.return();u.removeIconShape();if(!O)return m.return();u.iconName===""&&u.iconset&&O&&(u.removeStaticIcon(u.iconset,O),c&&u.removeAnimatedIcon(O));if(u.iconName===""&&u.iconset||!u.iconsetName||!bFA)return m.return();u.iconset=bFA.byKey(u.iconsetName);
if(!u.iconset)return u.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ks(u,u.onIconsetAdded)),m.return();u.missingIconSet&&(u.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ks(u,u.onIconsetAdded)));l=(h=c||u.isAnimatedIcon?Tgn(u.icon):void 0)&&!h.lazyLoad;q=h&&((K=h)==null?void 0:K.lazyLoad)&&(h.lottiePlayerProps.animationConfig.animationData?!0:kG.get(u.isDarkTheme?h.pathDarkTheme:h.path)?!0:!1);if(l||q)return u.applyAnimatedIcon(O,h,u.iconset),m.return();if(q||
(F=h)==null||!F.lazyLoad){m.jumpTo(2);break}w=PI7(h,u.isDarkTheme);u.applyStaticIcon(u.iconset,O,u.iconName,f,c);return _.A(m,w,3);case 3:return _.A(m,u.renderIcon(u.targetContainer,u.icon),4);case 4:return m.return();case 2:u.applyStaticIcon(u.iconset,O,u.iconName,f,c),_.KG(m)}})};
_.X.getContainer=function(f){var R,u=(R=GHh(this.hostElement))==null?void 0:R.host;R=!!u&&!!u.polymerController;if(!f||R)return f?this.getTargetContainer(f,u):this.hostElement};
_.X.getTargetContainer=function(f,R){var u=_.b(R).querySelector("#"+f);u||(f=new _.ts("yt-icon container missing",R.is,f),_.TL(f));return u};
_.X.applyStaticIcon=function(f,R,u,O,c){c&&this.removeAnimatedIcon(R);this.removeIconShape();c=c&&!!this.iconType&&!!this.iconShapeData&&_.E("kevlar_use_wil_icons");try{c?this.applyIconShape(!1,R):f.applyIcon(R,u)}catch(h){this.handleError(h,O,R)}};
_.X.applyIconShape=function(f,R){this.iconset&&R&&(this.removeStaticIcon(this.iconset,R),f&&this.removeAnimatedIcon(R));f={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var u=_.Z(this.iconShapeDataSignal);R=u.next().value;u=u.next().value;var O=_.Z(this.renderingOptionsSignal),c=O.next().value;O=O.next().value;u(this.iconShapeData);O(f);if(!this.wizHasRendered)for(this.wizHasRendered=!0,f=_.Z(oJt(R,c)).next().value;f.firstChild;)_.b(this.hostElement).appendChild(f.firstChild)};
_.X.removeIconShape=function(){if(_.E("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.X.removeStaticIcon=function(f,R){f.removeIcon(R)};
_.X.applyAnimatedIcon=function(f,R,u){this.removeStaticIcon(u,f);this.removeIconShape();var O;u=this.animatedIconElement&&((O=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:O.type)===R.type;if(this.animatedIconElement&&u){this.animatedIconElement.polymerController.animatedIcon=R;var c;((c=this.animatedIconElement)==null?void 0:c.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(f),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=R,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.E("kevlar_use_wil_icons")?f.insertBefore(this.animatedIconElement,f.childNodes[0]):(f=_.b(f),f.insertBefore(this.animatedIconElement,f.childNodes[0]))};
_.X.removeAnimatedIcon=function(f){_.E("kevlar_use_wil_icons")?this.animatedIconElement&&f.contains(this.animatedIconElement)&&f.removeChild(this.animatedIconElement):(f=_.b(f),this.animatedIconElement&&f.contains(this.animatedIconElement)&&f.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.X.handleError=function(f,R,u){_.MB(f,this.iconName,R,u);R=Icn(u,this.icon);var O=!1;window.location.href.includes("JpymaW6Lh2w")?O=!0:u._svgIcon&&(u=(u=u._svgIcon.parentNode)?u.tagName:"unknown",_.MB(f,u),u==="YT-ICON"&&f.name==="NotFoundError"?O=!0:f.name==="NotFoundError"&&R&&(O=!0));O?_.Ih(f):_.TL(f)};
_.Vy.Object.defineProperties(ud,{template:{configurable:!0,enumerable:!0,get:function(){if(LcC===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;
Nyk===void 0&&(Nyk=document.createElement("template"));var O=Nyk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);LcC=f}f=LcC;return f}}});
ud.prototype.handlePropertyChange=ud.prototype.handlePropertyChange;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ud.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",String)],ud.prototype,"icon",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],ud.prototype,"active",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],ud.prototype,"defaultToFilled",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],ud.prototype,"isAnimatedIcon",void 0);
_.B([_.I({value:24}),_.S("design:type",Number)],ud.prototype,"size",void 0);_.B([_.I({value:""}),_.S("design:type",String)],ud.prototype,"targetContainer",void 0);_.B([_.I(),_.S("design:type",Object)],ud.prototype,"animatedIconElement",void 0);_.B([_.I(),_.S("design:type",Object)],ud.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],ud.prototype,"ariaHidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],ud.prototype,"ariaLabel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],ud.prototype,"role",void 0);_.B([_.I(),_.S("design:type",String)],ud.prototype,"style",void 0);_.B([_.I(),_.S("design:type",String)],ud.prototype,"iconFilter",void 0);_.B([_.qM("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],ud.prototype,"handlePropertyChange",null);
ud=_.B([_.DO({is:"yt-icon",noInjection:!0})],ud);var pVF;var jof=function(){var f=document.body,R=f.appendChild;if(pVF===void 0){var u=document.createElement("template");_.N(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>');
pVF=u}u=pVF;R.call(f,u.content)};
document.body?jof():window.addEventListener("DOMContentLoaded",jof);var DYH,JXl=function(){return DYH!==void 0?DYH:DYH=document.createElement("template")};
document.head.appendChild(JXl().content);var zri,TyE=function(){return zri!==void 0?zri:zri=document.createElement("template")};
document.head.appendChild(TyE().content);var HFG;_.Oc=new _.Vi("KEY_MANAGER_TOKEN");var su7={duration:1E3,easing:"ease",fill:"forwards"};_.RI(gJD);var VZn={duration:1E3,easing:"ease",fill:"forwards"},PNY=_.nf(function(f){var R=_.sW(),u=void 0,O=function(){var c,h;return sm((c=f.character)==null?void 0:c.call(f))||sm((h=f.previousCharacter)==null?void 0:h.call(f))};
_.pc(function(){if(f.marginMultiplier()){var c;(c=u)==null||c.cancel();if(O()){var h;c=((h=f.previousCharacter)==null?0:h.call(f))?Number(f.previousCharacter())+10:f.rollUp()?0:30;var l;if((l=f.shouldAnimate)==null||!l.call(f)){var K,q;c-=nJn((K=f.character)==null?void 0:K.call(f),(q=f.previousCharacter)==null?void 0:q.call(f),f.rollUp(),c)}}else{c=f.rollUp()?0:2;var F;(F=f.shouldAnimate)!=null&&F.call(f)||(h=c,l=f.rollUp()?-1:1,c=h-l)}R.value.style.marginTop="-"+c*f.marginMultiplier()+"px";var w;
if((w=f.shouldAnimate)==null?0:w.call(f)){var m,W;u=Y65(R.value,(m=f.character)==null?void 0:m.call(f),(W=f.previousCharacter)==null?void 0:W.call(f),f.rollUp(),c,O(),f.marginMultiplier())}else{var C;R.value.style.display=((C=f.character)==null?0:C.call(f))?"":"none"}}});
return _.a("animated-rolling-character",{el:R,class:"animated-rolling-character-wiz"},_.a(_.Q,{cond:O,then:function(){return _.a(III,null)},
else:function(){return _.a(MUt,{character:f.character})}}))},"j");
PNY.idomCompat=!0;var vJ7=_.E("web_enable_sink_animated_rolling_character_and_number")?PNY:gJD,UYi=_.E("web_enable_sink_animated_rolling_character_and_number")?PNY:_.aX(gJD),III=_.nf(function(){for(var f=[],R=1;R<30;R++)f.push(_.a("div",null,R%10));return _.a(_.RS,null,_.a("div",null,"\u00a0"),f,_.a("div",null,"\u00a0"))},"k"),MUt=_.nf(function(f){var R=f.character;
return _.a(_.RS,null,_.a("div",null,"\u00a0"),_.a(_.Q,{cond:function(){return!(R==null?0:R())||_.Kh(R==null?void 0:R())},
then:function(){return _.a("div",null,"\u00a0")},
else:function(){return _.a("div",null,R)}}),_.a("div",null,"\u00a0"))},"l");_.RI(i1n);var erk=_.nf(function(f){var R=void 0,u=void 0,O=function(){var h;return((h=f.fontSizeMultiplier)==null?0:h.call(f))?f.heightPx()*f.fontSizeMultiplier():f.heightPx()},c=_.Qt(function(){if(!f.numberText())return[];
var h,l,K=((h=f.forceRollUp)==null?void 0:h.call(f))||!u||!((l=f.numberValue)==null?0:l.call(f))||u<f.numberValue(),q,F=f.numberText();h=O();l=!((q=f.shouldAnimate)==null||!q.call(f));q=[];var w=0,m=0,W=(R?R.replace(/\D/g,"").length:0)-(F?F.replace(/\D/g,"").length:0),C=R?R.split(/(\d)/).filter(Boolean):[];for(F=F.split(/(\d)/).filter(Boolean);W<0;){var d=F[m];q.push({character:d,rollUp:K,marginMultiplier:h,shouldAnimate:l});m++;sm(d)&&W++}for(;w<W;)d=C[w],q.push({previousCharacter:d,rollUp:K,marginMultiplier:h,
shouldAnimate:l}),w++,sm(d)||W++;for(;m<F.length;)W=F[m],d=C[w],sm(W)===sm(d)?(m++,w++):sm(W)?(w++,W=void 0):sm(d)&&(m++,d=void 0),q.push({character:W,previousCharacter:d,rollUp:K,marginMultiplier:h,shouldAnimate:l});R=f.numberText();var p;u=(p=f.numberValue)==null?void 0:p.call(f);return q},void 0,"B9AmNd");
return _.a("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return f.numberText()?["height: "+O()+"px;","line-height: "+f.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.a(_.EC,{each:c,keyBy:"INDEX"},function(h){return _.a(UYi,{character:function(){return h().character},
previousCharacter:function(){return h().previousCharacter},
marginMultiplier:function(){return h().marginMultiplier},
rollUp:function(){return h().rollUp},
shouldAnimate:function(){return h().shouldAnimate}})}))},"m");
erk.idomCompat=!0;_.wuB=_.E("web_enable_sink_animated_rolling_character_and_number")?erk:i1n;_.G8i=_.E("web_enable_sink_animated_rolling_character_and_number")?erk:_.aX(i1n);var f45={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"};_.cd=_.nf(function(f){var R=_.sW(f.ref),u=f.aTagConfig?f.aTagConfig:_.Qt(function(){var O,c,h,l,K,q;var F=(q=_.H7((l=f.command)==null?void 0:l.call(f)))!=null?q:(K=f.command)==null?void 0:K.call(f);return _.MO({innertubeCommand:F,skipOnClick:(O=f.skipOnClick)==null?void 0:O.call(f),stopPropagation:(c=f.dangerousStopPropagation)==null?void 0:c.call(f),defaultTarget:(h=f.target)==null?void 0:h.call(f)})||{}},void 0,"gnrRge");
_.pc(function(){R.value._data=u()._data;R.value.params=u().params});
return _.a("a",{el:R,href:function(){return u().href$},
rel:function(){return u().rel$},
class:function(){var O,c;return(c=u().className)!=null?c:(O=f.className)==null?void 0:O.call(f)},
style:function(){var O;if((O=f.style)==null?0:O.call(f))return f.style();var c;return((c=f.disabled)==null?0:c.call(f))?"pointer-events:none":""},
"aria-haspopup":function(){return!!u()["aria-haspopup$"]},
"force-new-state":wx(function(){return u()["force-new-state$"]}),
title:wx(function(){var O,c;return(c=u().title$)!=null?c:(O=f.title)==null?void 0:O.call(f)}),
role:wx(function(){return u().role$}),
target:wx(function(){return u().target$}),
dir:wx(function(){var O;return((O=f.dir)==null?0:O.call(f))?f.dir():u().dir}),
tabindex:function(){var O;return u().tabindex$?Number(u().tabindex$):(O=f.tabIndex)==null?void 0:O.call(f)},
"aria-hidden":function(){var O,c;return(c=u()["aria-hidden$"])!=null?c:(O=f.ariaHidden)==null?void 0:O.call(f)},
"aria-label":function(){var O,c;return(c=u()["aria-label$"])!=null?c:(O=f.ariaLabel)==null?void 0:O.call(f)},
"aria-current":f.ariaCurrent,"aria-labelledby":f.ariaLabelledby,"aria-describedby":f.ariaDescribedby,"aria-selected":f.ariaSelected,"tab-identifier":f.tabIdentifier,"on:pointerdown":_.Ff(function(O){var c,h;return void((h=(c=u()).onpointerdown)==null?void 0:h.call(c,O))}),
"on:click":_.Ff(function(O){var c,h;return void((h=(c=u()).onclick)==null?void 0:h.call(c,O))})},f.children)},"n");var Byf=function(f,R){this.fillAnimation=new Animation(uR7(f),document.timeline);this.strokeAnimation=new Animation(OHe(R),document.timeline)};
Byf.prototype.play=function(){var f,R;(R=(f=this.fillAnimation).play)==null||R.call(f);var u,O;(O=(u=this.strokeAnimation).play)==null||O.call(u)};
Byf.prototype.cancel=function(){var f,R;(R=(f=this.fillAnimation).cancel)==null||R.call(f);var u,O;(O=(u=this.strokeAnimation).cancel)==null||O.call(u)};_.CL=_.nf(function(f){var R=f.model;var u=f.pointerDownEvent;var O=f.pointerUpEvent;var c=f.pointerLeaveEvent;f=_.sW();var h=_.Qm({"border-radius":function(){return R().borderRadius}}),l=_.sW(),K=_.sW(),q=_.Z(_.m8(function(){return(O==null?0:O())||(c==null?0:c())?!1:!(u==null||!u())||!1})),F=q.next().value,w=q.next().value,m=void 0,W=function(){!m&&K.value&&l.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(m=new Byf(K.value,l.value));
var P;(P=m)==null||P.play()},C=function(){var P;
(P=m)==null||P.cancel()},d=function(){var P;
(P=m)==null||P.cancel()};
_.pc(function(){(O==null?0:O())&&W()});
_.pc(function(){(u==null?0:u())&&C()});
_.pc(function(){(c==null?0:c())&&d()});
q=_.Ff(function(){W();w(!1)});
var p=_.Ff(function(){C();w(!0)}),J=_.Ff(function(){d();
w(!1)});
_.jN(function(){if(m){var P;(P=m)==null||P.cancel();m=void 0}});
var M={};F=_.KL("yt-spec-touch-feedback-shape",function(){return cPq(R().color)},(M["yt-spec-touch-feedback-shape--focused"]=function(){return!!R().focused&&!R().disabled},M["yt-spec-touch-feedback-shape--circular"]=function(){return!!R().circular},M["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!R().isExtended},M["yt-spec-touch-feedback-shape--down"]=F,M["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!R().triggerEvents},M));
return _.a("yt-touch-feedback-shape",{style:_.Qm({"border-radius":"inherit"})},_.a("div",{el:f,class:F,style:_.Qm({"margin-top":function(){return R().customTopExtend?"-"+R().customTopExtend+"px":void 0}}),
"on:mousedown":p,"on:mouseup":q,"on:pointerleave":J,"on:touchstart":p,"on:touchend":q,"aria-hidden":!0},_.a("div",{class:"yt-spec-touch-feedback-shape__stroke",style:h,el:l}),_.a("div",{class:"yt-spec-touch-feedback-shape__fill",style:h,el:K})))},"o");
_.CL.idomCompat=!0;var obf={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 X7=_.Q2();X7=X7.toLowerCase();if(_.qX(X7,"android")){var xYI=X7.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);xYI&&parseFloat(xYI[1])<100||X7.match("("+Object.keys(obf).join("|")+")")};var SIG=_.nf(function(f){return _.a(_.Q,{cond:f.aTagConfig,then:function(R){return _.a(_.cd,{aTagConfig:R,disabled:f.disabled,className:f.className,style:f.style,title:f.title,ariaLabel:f.ariaLabel,ariaCurrent:function(){var u,O;return((u=f.toggleable)==null?void 0:u.call(f))&&((O=f.toggled)==null?void 0:O.call(f))}},f.children)},
else:function(){return _.a("button",{"on:click":_.Ff(function(R){var u;return(u=f.onClick)==null?void 0:u.call(f,R)}),
class:f.className,title:f.title,style:f.style,disabled:f.disabled,"aria-pressed":function(){var R,u;return((R=f.toggleable)==null?0:R.call(f))?!((u=f.toggled)==null||!u.call(f)):void 0},
"aria-label":f.ariaLabel,"aria-disabled":f.visiblyDisabled,"aria-hidden":f.ariaHidden,tabindex:f.tabIndex},f.children)}})},"p"),gbY=_.nf(function(f){var R=f.data;
var u=f.hasIconLeading;var O=f.hasIconLeadingTrailing;var c=f.hasIconTrailing;var h=f.iconButton;var l=f.iconClassName;var K=f.secondaryIconClassName;var q=f.icon;var F=f.secondaryIcon;var w=f.textContentClassName;return _.a(he,{className:"",style:"display: inherit; justify-content: center"},_.a(_.Q,{debugInstance:"V4z1Uc",cond:function(){return q&&(u()||O()||(h==null?void 0:h()))},
then:function(){return _.a(he,null,_.a("div",{class:l,"aria-hidden":"true"},q==null?void 0:q()))}}),_.a(_.Q,{debugInstance:"ok3btb",
cond:function(){return(R().buttonText||R().animatedTextProps||R().formattedButtonText)&&!(h==null?0:h())},
then:function(){return _.a(he,null,_.a($YA,{className:w,iconPosition:function(){return R().iconPosition},
text:function(){return R().buttonText},
oneOffCustomTextWrap:function(){return R().oneOffCustomTextWrap},
formattedButtonText:function(){return R().formattedButtonText},
animatedTextProps:function(){return R().animatedTextProps}}))}}),_.a(_.Q,{debugInstance:"DO5Rz",
cond:c,then:function(){return _.a(he,null,_.a("div",{class:l},q==null?void 0:q()))}}),_.a(_.Q,{debugInstance:"bnojSc",
cond:O,then:function(){return _.a(he,null,_.a("div",{class:K},F==null?void 0:F()))}}),_.a(_.Q,{debugInstance:"HN3kad",
cond:function(){return!R().disabled&&!0},
then:function(){return _.a(_.CL,{model:function(){return{color:kbh(R())}}})}}))},"q"),$YA=_.nf(function(f){var R=function(){var u,O;
return((u=f.iconPosition)==null?void 0:u.call(f))==="icon-with-label"||((O=f.oneOffCustomTextWrap)==null?void 0:O.call(f))};
return _.a("div",{class:f.className,"aria-hidden":function(){var u,O,c;return((u=f.ariaHidden)==null?void 0:u.call(f))&&(!((O=f.animatedTextProps)==null||!O.call(f))||!((c=f.formattedButtonText)==null||!c.call(f)))}},_.a(_.yM,null,_.a(_.t1,{when:function(){var u;
return(u=f.animatedTextProps)==null?void 0:u.call(f)}},function(){return _.a(_.G8i,{numberText:function(){return f.animatedTextProps().numberText},
numberValue:function(){return f.animatedTextProps().numberValue},
heightPx:function(){return f.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return f.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return f.animatedTextProps().shouldAnimate},
forceRollUp:function(){return f.animatedTextProps().forceRollUp}})}),_.a(_.t1,{when:function(){var u;
return(u=f.formattedButtonText)==null?void 0:u.call(f)}},function(){return _.a(_.YO,{text:function(){return Object.assign({},f.formattedButtonText(),{lineBreakMode:R()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":f.formattedButtonText().lineBreakMode,
alignment:R()?"TEXT_ALIGNMENT_CENTER":f.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!R()}})}),_.a(_.t1,{when:function(){var u,O;
return((u=f.iconPosition)==null?void 0:u.call(f))==="icon-with-label"&&((O=f.text)==null?void 0:O.call(f))}},function(){return _.a(_.YO,{text:function(){return{content:f.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.a(_.CQ,null,function(){return f.text})))},"r"),soI=_.nf(function(f){return _.a(_.Q,{cond:f.hasLabel,
then:function(){var R;return _.a("label",{class:f.className},f.children,(R=f.textContent)==null?void 0:R.call(f))},
else:function(){return f.children}})},"s"),he=_.nf(function(f){return f.children},"t");var kwe=fc("stamper-context");var iA=_.nf(function(f){var R=f.data;var u=f.icon;var O=f.iconName;var c=f.secondaryIcon;var h=f.secondaryIconName;var l=f.focusedOverride;C8q();var K=Xu2(R),q=K.size,F=K.style;f=K.disabled;var w=K.onTap,m=K.alignByText,W=K.aTagConfig,C=K.customColors,d=K.segmentedPosition,p=K.toggled,J=K.toggleable,M=K.accessibilityLabel,P=K.onToggle,g=K.iconPosition,x=K.oneOffCustomTextWrap,fh=K.disableTextEllipsis,V=K.disableBackdropFilter,ZD=K.tooltipText,mP=K.ariaHidden,NX=K.tabIndex,jt=K.buttonText,Jn=K.formattedButtonText,
zq=K.animatedTextProps,St=l42(R,u,c,O,h,l),Gq=St.type;u=St.shouldFocus;O=St.hasIconLeading;c=St.hasIconTrailing;var LC=St.hasIconLeadingTrailing,wN=St.hasIconOnly;h=St.hasIconOnly40;var GI=St.hasIconWithLabel;l=St.iconButton;var ak=St.visiblyDisabled;K=St.overrideSmallSizeIcon;var kC=St.iconToRender;St=St.secondaryIconToRender;var Rw={},KC={};return _.a(soI,{className:_.KL("yt-spec-button-shape-with-label",(Rw["yt-spec-button-shape-with-label--is-overlay"]=function(){return F()==="overlay"||F()===
"overlay-dark"},Rw)),
hasLabel:GI,textContent:function(){return _.a($YA,{text:jt,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:x,iconPosition:g,formattedButtonText:Jn,animatedTextProps:zq})}},_.a(SIG,{aTagConfig:W,
className:_.KL("yt-spec-button-shape-next",function(){return qN0(Gq())},function(){return ak()?void 0:AP5(F())},function(){return a42(q())},(KC["yt-spec-button-shape-next--disabled"]=ak,KC["yt-spec-button-shape-next--focused"]=u,KC["yt-spec-button-shape-next--icon-trailing"]=c,KC["yt-spec-button-shape-next--icon-leading"]=O,KC["yt-spec-button-shape-next--icon-leading-trailing"]=LC,KC["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return LC()&&!(jt()||Jn())},KC["yt-spec-button-shape-next--icon-button"]=
function(){return wN()||GI()},KC["yt-spec-button-shape-next--icon-only-default"]=h,KC["yt-spec-button-shape-next--align-by-text"]=m,KC["yt-spec-button-shape-next--segmented-start"]=function(){return d()==="start"},KC["yt-spec-button-shape-next--segmented-end"]=function(){return d()==="end"},KC["yt-spec-button-shape-next--override-small-size-icon"]=K,KC["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=x,KC["yt-spec-button-shape-next--disable-text-ellipsis"]=fh,KC["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!V()&&KU7()},KC)),
style:function(){return FU2(C()).style},
onClick:function(qe){w==null||w(qe);J()&&(P==null||P(qe))},
disabled:f,ariaLabel:M,toggleable:J,toggled:p,title:function(){var qe;return(qe=ZD())!=null?qe:""},
visiblyDisabled:ak,ariaHidden:mP,tabIndex:NX},_.a(gbY,{data:R,hasIconLeading:O,hasIconLeadingTrailing:LC,hasIconTrailing:c,iconButton:l,icon:kC,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:St})))},"u");
iA.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var nbf=_.nf(function(f){var R=f.data;var u=f.id;var O=f.hidden;var c=f.className;var h=f.iconName;var l=f.secondaryIconName;f=_.Z(_.qK(!1,void 0,"RyKHFc"));var K=f.next().value,q=f.next().value,F=function(){var m=_.vh().resolve(_.Y8(_.Oc));m&&q(m.isKeyBoardInUse())},w=function(){q(!1)};
f=_.sW(function(m){if(_.vh().resolve(_.Y8(_.Oc)))return m.addEventListener("focusin",F),m.addEventListener("focusout",w),function(){m.removeEventListener("focusin",F);m.removeEventListener("focusout",w)}});
return _.a("yt-button-shape",{el:f,id:u,class:c,hidden:O},_.a(_.Q,{cond:R,then:function(){return _.a(iA,{data:R,iconName:h,secondaryIconName:l,focusedOverride:K})}}))},"v");
_.E("web_wiz_button_shape")&&_.ii(nbf,"yt-button-shape",{props:{data:_.SG,id:_.SG,hidden:_.SG,className:_.SG,iconName:_.SG,secondaryIconName:_.SG},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var Zs=function(){var f=_.U.apply(this,arguments)||this;f.keyboardFocused=!1;return f};
_.y(Zs,_.U);Zs.prototype.onFocus=function(){var f=_.vh().resolve(_.Y8(_.Oc));f&&(this.keyboardFocused=f.isKeyBoardInUse())};
Zs.prototype.onBlur=function(){this.keyboardFocused=!1};
Zs.prototype.renderIdom=function(){var f=this;if(this.data){var R=Ez(this.data,!!this.iconName),u=ZHq(this.data);this.data.focused=this.keyboardFocused;EUP(this.data,function(){var O;pU("yt-icon",{icon:f.iconName,active:(O=f.data)==null?void 0:O.toggled,size:R,style:"width: "+R+"px; height: "+R+"px;",iconFilter:u},gP)},function(){var O;
pU("yt-icon",{icon:f.secondaryIconName,active:(O=f.data)==null?void 0:O.toggled,size:R,style:"width: "+R+"px; height: "+R+"px;",iconFilter:u},gP)});
_.ul(this.hostElement,"yt-renderidom-finished")}};
_.Vy.Object.defineProperties(Zs,{template:{configurable:!0,enumerable:!0,get:function(){if(HFG===void 0){var f=document.createElement("template");_.N(f,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(TyE().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(JXl().content.cloneNode(!0),f.content.firstChild);HFG=f}f=HFG;return f}}});
Zs.prototype.onBlur=Zs.prototype.onBlur;Zs.prototype.onFocus=Zs.prototype.onFocus;_.B([_.z(wnC),_.S("design:type",Object)],Zs.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zs.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],Zs.prototype,"iconName",void 0);_.B([_.I(),_.S("design:type",String)],Zs.prototype,"secondaryIconName",void 0);_.B([_.I(),_.S("design:type",Object)],Zs.prototype,"keyboardFocused",void 0);
_.B([_.Kf("focusin"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zs.prototype,"onFocus",null);_.B([_.Kf("focusout"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zs.prototype,"onBlur",null);Zs=_.B([_.DO({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.E("web_wiz_button_shape")})],Zs);_.ii(_.nf(function(f){function R(){u().seconds&&h(Uie({seconds:Number(u().seconds)-Date.now()/1E3}))}
var u=f.targetTimestamp;f=f.className;var O=_.Z(_.qK("",void 0,"U1Q8Ae")),c=O.next().value,h=O.next().value;_.NW(function(){R();var l=setInterval(function(){R()},1E3);
_.jN(function(){clearInterval(l)})});
return _.a("yt-countdown",{class:_.KL("ytCountDownHost",f)},_.a("div",null,c))},"w"),"yt-countdown",{props:{targetTimestamp:_.SG,
className:_.v7}});_.TS=_.nf(function(f){var R=f.data;var u=f.className;var O=f.style;var c=f.useOutlinedIcon;var h=f.buttonOverrides;var l=f.animatedTextProps;var K=f.onClick;var q=_.sW(function(J){return function(){CSA(_.Q3(),J)}}),F=function(){return R().iconName},w,m=(w=_.vh().resolve(_.Y8(_.oF)))==null?void 0:w(),W=function(){var J=R();
var M=h==null?void 0:h(),P=l==null?void 0:l();if(J){var g=NdP(J.type);var x=!!J.title||!!J.titleFormatted;var fh=!(!J.iconName&&!J.iconImage);x=fh&&!x?"icon-only":fh?J.iconTrailing||J.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;x==="icon-only-40"&&(g="text");var V,ZD=(V=M==null?void 0:M.disabled)!=null?V:J.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||J.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";V=Object;fh=V.assign;var mP=J.title,NX=J.titleFormatted;P=P&&P.numberText&&
!isNaN(Number(P.numberValue))?P:void 0;var jt=J.accessibilityText,Jn=dVP(J.style),zq=LU7(J.state),St=bHn(J.buttonSize),Gq=yP2(J,q,ZD,K);ZD=ZD&&!J.onDisabledTap;var LC=_.MO({elementsCommand:J.onTap,forceNewState:!0});LC=P7(LC)?LC:void 0;var wN=J.customFontColor,GI=J.customBackgroundColor;var ak=J.customBorderColor;var kC=J.customDarkThemeFontColor,Rw=J.customDarkThemeBackgroundColor,KC=J.customDarkThemeBorderColor;wN=m&&kC?kC:wN;GI=m&&Rw?Rw:GI;ak=m&&KC?KC:ak;ak={color:wN?_.ML(wN):void 0,backgroundColor:GI?
_.ML(GI):void 0,borderColor:ak?_.ML(ak):void 0};J=fh.call(V,{},{buttonText:mP,formattedButtonText:NX,animatedTextProps:P,accessibilityLabel:jt,style:Jn,type:g,state:zq,size:St,iconPosition:x,onTap:Gq,disabled:ZD,aTagConfig:LC,customColors:ak,tooltipText:J.tooltip},M)}else J={style:"mono",type:"text",state:"active",size:"M"};J.focused=p();return J},C=function(){return Ez(W(),!!R().iconName)};
f=_.Z(_.qK(!1,void 0,"JjUrEe"));w=f.next().value;var d=f.next().value,p=w;f=_.Ff(function(){var J=_.vh().resolve(_.Y8(_.Oc));J&&d(J.isKeyBoardInUse());return!1});
w=_.Ff(function(){d(!1);return!1});
_.pc(function(){var J,M=_.t(R==null?void 0:(J=R())==null?void 0:J.onVisible,_.TW);M&&_.IF(M,{disableClickTracking:!0})});
_.bt(function(){q.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var J=R().targetId;J&&_.dCk(_.Q3(),J,q.value)});
return _.a("button-view-model",{el:q,class:_.KL("yt-spec-button-view-model",u),"on:focusin":f,"on:focusout":w},_.a(_.Q,{cond:function(){var J;return(R==null?0:(J=R())==null?0:J.iconImage)?{sources:[R().iconImage]}:void 0},
then:function(J){return _.a(iA,{data:W,icon:function(){return _.a(_.gR,{data:J,alt:"",targetWidth:C,targetHeight:C,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.a(iA,{data:W,icon:function(){return _.a(_.WM,{icon:F,active:function(){return(c==null?0:c())?!1:W().toggled},
animateIcon:function(){var J;return!!(O==null?0:(J=O())==null?0:J.animateIcon)},
size:C})}})}}))},"x");
_.TS.idomCompat={callbacks:{onClick:!0}};_.ii(_.nf(function(f){return _.a("yt-button-view-model",{id:f.id,class:_.KL(f.scopingClassName,f.classes),icon:function(){var R;return(R=f.icon)==null?void 0:R.call(f)},
"dialog-dismiss":function(){var R;return((R=f.dialogDismiss)==null?0:R.call(f))?"":void 0}},_.a(_.TS,{data:function(){var R;
return(R=f.data)==null?void 0:R.call(f)},
className:function(){var R;return(R=f.className)==null?void 0:R.call(f)},
style:function(){var R;return(R=f.style)==null?void 0:R.call(f)},
useOutlinedIcon:function(){var R;return(R=f.useOutlinedIcon)==null?void 0:R.call(f)},
buttonOverrides:function(){var R;return(R=f.buttonOverrides)==null?void 0:R.call(f)},
animatedTextProps:function(){var R;return(R=f.animatedTextProps)==null?void 0:R.call(f)},
onClick:function(R){var u;return(u=f.onClick)==null?void 0:u.call(f,R)}}))},"y"),"yt-button-view-model",{props:{data:_.SG,
className:_.SG,style:_.SG,useOutlinedIcon:_.SG,buttonOverrides:_.SG,animatedTextProps:_.SG,onClick:_.v7,scopingClassName:_.SG,id:_.SG,icon:_.SG,dialogDismiss:_.SG,classes:_.SG}});var ld=function(){var f=_.U.apply(this,arguments)||this;f.isGoalActive=!0;return f};
_.y(ld,_.U);ld.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
ld.prototype.progressBarChanged=function(){var f=_.b(this.hostElement).querySelector("#progress-bar-progress"),R,u,O,c=(O=Number((R=this.creatorGoalState)==null?void 0:R.currentGoalCount)/Number((u=this.creatorGoalState)==null?void 0:u.totalGoalCount)*100)!=null?O:0,h;f.style.width=((h=Math.min(c,100))!=null?h:0)+"%"};
ld.prototype.goalStateChanged=function(){var f;this.isGoalActive=((f=this.creatorGoalState)==null?void 0:f.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var R;f={"--yt-progress-bar-color":$Y2((R=this.creatorGoalState)==null?void 0:R.progressBarColor)};_.ZO(this.hostElement,f)};
ld.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Vy.Object.defineProperties(ld.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var f;return this.isGoalActive&&!((f=this.creatorGoalState)==null||!f.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.creatorGoalState)==null?0:f.endTimestampMs){var R;f=Number((R=this.creatorGoalState)==null?void 0:R.endTimestampMs)/1E3;return{seconds:String(f)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.creatorGoalState)==null?0:f.themedTargetImage){var R;f=_.t((R=this.creatorGoalState)==null?void 0:R.themedTargetImage,Mit);return this.isAppDarkTheme()?f==null?void 0:f.imageDark:f==null?void 0:f.imageLight}}}});
_.Vy.Object.defineProperties(ld,{template:{configurable:!0,enumerable:!0,get:function(){return FcI()}}});
ld.prototype.goalStateChanged=ld.prototype.goalStateChanged;ld.prototype.progressBarChanged=ld.prototype.progressBarChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],ld.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);
_.B([_.I({selectorArgs:["data.creatorGoalEntityKey"],selector:function(f,R){return _.kZ(f.entities,"creatorGoalEntity",R)}}),
_.S("design:type",Object)],ld.prototype,"creatorGoalState",void 0);_.B([_.I(),_.S("design:type",Object)],ld.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],ld.prototype,"isGoalActive",void 0);_.B([_.T("creatorGoalState","isGoalActive"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ld.prototype,"shouldShowCountdown",null);_.B([_.T("creatorGoalState"),_.S("design:type",Object),_.S("design:paramtypes",[])],ld.prototype,"endTimestamp",null);
_.B([_.T("creatorGoalState"),_.S("design:type",Object),_.S("design:paramtypes",[])],ld.prototype,"targetIconThemedImage",null);_.B([_.qM("creatorGoalState.currentGoalCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ld.prototype,"progressBarChanged",null);_.B([_.qM("creatorGoalState.creatorGoalState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ld.prototype,"goalStateChanged",null);
ld=_.B([_.DO({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ld);_.G(ld,"yt-creator-goal-progress-flow-view-model",function(){return FcI()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var VUl;var YIk;var kl=function(){return _.U.apply(this,arguments)||this};
_.y(kl,_.U);kl.prototype.attached=function(){var f,R,u;if(this==null?0:(f=this.data)==null?0:(R=f.pdgPurchasedBumperLoggingDirectives)==null?0:(u=R.loggingDirectives)==null?0:u.trackingParams){var O,c,h;DVX(this==null?void 0:(O=this.data)==null?void 0:(c=O.pdgPurchasedBumperLoggingDirectives)==null?void 0:(h=c.loggingDirectives)==null?void 0:h.trackingParams)}};
kl.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kl.prototype,"data",void 0);kl=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],kl);
_.G(kl,"yt-live-chat-item-bumper-view-model",function(){if(YIk===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;VUl===void 0&&(VUl=document.createElement("template"));var O=VUl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);YIk=f}f=YIk;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vbf;var iFY;_.S6=function(f,R){this.data=f;this.actions=R;this.data=f;this.actions=R};
_.IX=function(){};_.Ae={};_.Ae.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(f,R){JPl(this.hostElement,f,R)},
getNavigationEndpointPopupAction:function(f){return zR5(f,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(f,R){Td2(this.hostElement,f,R,this.openPopupConfig)}};var xVn=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.aD={};
_.aD.YtEndpointBehavior=[_.Ae.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Tf("openPopupConfig");(this.useClickHandler=_.Hh("useClickHandler",!1))?this.hostElement.addEventListener("click",lu(this,this.onEndpointClick_)):(Da(this.hostElement,"tap",lu(this,this.onEndpointTap_)),Da(this.hostElement,"touchend",lu(this,this.onEndpointTouchEnd_)));Da(this.hostElement,"touchstart",lu(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
lu(this,this.onEndpointTapStart_))},
onEndpointClick_:function(f){Mc7(this.hostElement,f,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(f){var R=this.hostElement,u=this.openPopupConfig,O=this.disableCommandHandlerOverride;O=O===void 0?!1:O;var c=HHq(f);if(c){c.href&&ek(c.href);var h=f.detail;var l=h.sourceEvent;h=h.preventer;l=l.button!==void 0?l.button===0&&!NI(l):h?!NI(h):!0;c.data&&l&&I4P(R,c,f,u,O)}},
onEndpointTouchEnd_:function(f){NI(f)||HHq(f)&&f.preventDefault()},
onEndpointTapStart_:function(f){Bdh(f)}}];var SNB="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),gU7=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var rXk={};rXk.YtPlaintextBehavior=[_.mJ,{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(f){f.preventDefault();f=f.clipboardData.getData("text/plain");document.execCommand("insertText",!1,f)},
preventRichTextFormatting_:function(f){_.lH&&(f=f.detail.keyboardEvent,f.stopImmediatePropagation(),f.preventDefault())}}];var ffY;var RYE;var F7=function(){var f=_.U.apply(this,arguments)||this;f.ignoreShadyDom=!1;f.hasChange_=!1;f.hasSetTitle_=!1;f.useIOObserverForVisibilityLogging_=_.E("kevlar_use_vimio_behavior")&&_.Tf("INNERTUBE_CLIENT_NAME")==="WEB";f.ytFormattedStringObserverHandlerKeys_=void 0;return f};
_.y(F7,_.U);_.X=F7.prototype;_.X.created=function(){this.useIOObserverForVisibilityLogging_=_.E("kevlar_use_vimio_behavior")&&_.Tf("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.X.ready=function(){_.Tf("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_()};
_.X.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.X.detached=function(){this.unobserveIOObservers_()};
_.X.clearContents_=function(){for(var f=this.getRoot(),R=f.lastChild;R&&R.tagName!=="STYLE";){try{f.removeChild(R)}catch(u){break}R=f.lastChild}};
_.X.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var f=_.Z(this.ytFormattedStringObserverHandlerKeys_),R=f.next();!R.done;R=f.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(R.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.X.resetForAttributedString=function(){var f=this.getRoot();!f.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),f.appendChild(this.ytAttributedStringElementRef))};
_.X.resetForFormattedString=function(){var f=this.getRoot(),R=f.querySelector("yt-attributed-string");R&&(this.ytAttributedStringElementRef=f.removeChild(R))};
_.X.textChanged=function(){this.textChanged_(this.text)};
_.X.textChanged_=function(f){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!f||!f.runs&&!f.simpleText;if(_.E("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var R=this.hostElement.firstChild;R&&R.nodeName==="FONT";){var u=R;R=R.nextSibling;this.hostElement.removeChild(u)}R=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
u=f.simpleText;var O;!u&&((O=f.runs)==null?void 0:O.length)===1&&this.isSimpleString_(f.runs[0])&&(u=f.runs[0].text);u!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Tf("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(u!==void 0){try{R.textContent=u}catch(c){}R.textContent||(this.isEmpty=!0)}else f=f.runs,u!==void 0&&(f=[{text:u}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),f&&this.updateText_(f),
R.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.X.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)};
_.X.computeAriaLabel_=function(f){return f};
_.X.computeEllipsisTruncateStyling=function(f,R){return f&&!R};
_.X.computeUseAttributedString=function(f){return _.E("web_replace_formatted_with_attributed_string")&&ZAn(f)&&!this.disableAttributedString&&!this.enableContentEditable};
_.X.setNodeStyle_=function(f,R){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.E("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?R.removeAttribute("dir"):R.setAttribute("dir","auto");R.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");R.style.color="";var u=null;this.noStyles||(f.bold&&(R.classList.add("bold"),u="bold"),f.deemphasize&&(R.classList.add("deemphasize"),u="deemphasize"),f.italics&&R.classList.add("italic"),
f.strikethrough&&R.classList.add("strikethrough"),f.errorUnderline&&(R.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),f.bracket&&R.classList.add("bracket"),f.textColor&&(R.style.color=_.I1(f.textColor)));u!==R.getAttribute("style-target")&&(u?R.setAttribute("style-target",u):R.removeAttribute("style-target"))};
_.X.setUpVisibilityLogging_=function(f,R){var u=this;this.setNodeTrackingParams_(f,R);var O;((O=R.data)==null?0:O.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(f=this.ytRendererBehavior.visibilityObserver.observe(R,function(c){var h=u.ytRendererBehavior.getVisibilityLogger();h&&h.reportShown(c)},this.ytRendererBehavior.visibilityOptionVisible_),R=this.ytRendererBehavior.visibilityObserver.observe(R,function(c){var h=u.ytRendererBehavior.getVisibilityLogger();
h&&h.reportHidden(c)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(f),this.ytFormattedStringObserverHandlerKeys_.push(R))};
_.X.setNodeTrackingParams_=function(f,R){R.data||(R.data={});if((f=f.loggingDirectives?f.loggingDirectives.trackingParams:null)||R.data.trackingParams)R.data.trackingParams=f};
_.X.computeHasLinkOnly_=function(f){return!(!f||f.length!==1||this.noEndpoints||!f[0].navigationEndpoint)};
_.X.getRoot=function(){var f=this.buildScopeDomOptions();return this.enableContentEditable?_.b(_.b(this.hostElement,f).querySelector("[contenteditable]")):_.b(this.hostElement,f)};
_.X.fixContenteditableScope=function(){var f=function(R){R&&(R.nodeType===1&&R.classList&&(R.classList.add("style-scope"),R.classList.add("yt-formatted-string")),R.childNodes&&R.childNodes.forEach(function(u){f(u)}))};
f(this.getRoot())};
_.X.updateText_=function(f){for(var R=f.length,u=this.getRoot(),O=u.firstChild;O&&O.nodeName==="STYLE";)O=O.nextSibling;for(var c=0;c<R&&O;){var h=f[c],l=_.E("remove_cr_char")&&h.text?h.text.replace("\r",""):h.text;if(this.isSimpleString_(h)&&!this.useMixedDirectionFormattedStrings)if(O.nodeName==="#text"){O.textContent!=l&&(O.textContent=l);c++;O=O.nextSibling;continue}else break;if(_.t(h,J4))break;else if(!this.noEndpoints&&h.navigationEndpoint){if(O.nodeName!=="A")break;this.setDataOnAnchor_(O,
h.navigationEndpoint)}else if(O.nodeName!=="SPAN")break;this.setNodeStyle_(h,O);this.setUpVisibilityLogging_(h,O);O.textContent!=l&&(O.textContent=l);c++;O=O.nextSibling}if(O)for(h=u.lastChild,O=c?O.previousSibling:null;h&&h!=O;){try{u.removeChild(h)}catch(K){break}h=u.lastChild}c!==R&&this.addTextNodes_(f,c)};
_.X.addTextNodes_=function(f,R){for(var u=document.createDocumentFragment(),O=f.length;R<O;R++){var c=f[R],h=_.E("remove_cr_char")&&c.text?c.text.replace("\r",""):c.text;if(this.isSimpleString_(c)&&!this.useMixedDirectionFormattedStrings)u.appendChild(document.createTextNode(h));else{var l=_.t(c,J4);if(l){if(l.image){var K=document.createElement("img");l.isCustomEmoji||K.classList.add("small-emoji");K.classList.add("emoji");l.isCustomEmoji&&(K.dataset.emojiId=l.emojiId);K.src=_.rR(l.image.thumbnails,
this.emojiSize);(c=this.get("image.accessibility.accessibilityData.label",l))?K.alt=c:l.shortcuts&&l.shortcuts.length>0?K.alt=l.shortcuts[0]:l.emojiId&&(K.alt=l.emojiId);u.appendChild(K);this.hasEmoji=!0}}else!this.noEndpoints&&c.navigationEndpoint?(K=document.createElement("a"),K.classList.add("yt-simple-endpoint"),K.setAttribute("spellcheck","false"),this.setDataOnAnchor_(K,c.navigationEndpoint)):K=document.createElement("span"),this.setNodeStyle_(c,K),this.setUpVisibilityLogging_(c,K),K.appendChild(document.createTextNode(h)),
u.appendChild(K)}}this.getRoot().appendChild(u)};
_.X.isSimpleString_=function(f){return(this.noEndpoints||!f.navigationEndpoint)&&!_.t(f,J4)&&(this.noStyles||!(f.bold||f.deemphasize||f.italics||f.strikethrough||f.errorUnderline||f.bracket||f.textColor))&&!f.loggingDirectives};
_.X.getRawText=function(){return _.$Z(this.text)};
_.X.getFirstRunText=function(){var f;if(((f=this.text)==null?0:f.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.X.setFirstRunText=function(f){var R;((R=this.text)==null?0:R.runs)&&this.text.runs[0]&&(this.text.runs[0].text=f,this.textChanged_(this.text))};
_.X.setDataOnAnchor_=function(f,R){var u=this;!_.E("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(R)||this.isSignalServiceEndpoint_(R)?(f.onclick=this.serviceEndpointHandler_(R),Lj(f,"#")):jFl({text:this.text,command:R},function(){BRX(f,R,u.target)})};
_.X.isServiceEndpoint_=function(f){var R;return!((R=_.t(f==null?void 0:f.commandMetadata,_.vc))==null||!R.sendPost)};
_.X.isSignalServiceEndpoint_=function(f){return!!_.t(f,_.AH)};
_.X.serviceEndpointHandler_=function(f){var R=this;return function(u){_.hH(R.hostElement,[f]);u.preventDefault()}};
_.X.overrideAriaLabelChanged_=function(){var f=this.getRoot();this.enableContentEditable&&f&&f.setAttribute("aria-label",this.overrideAriaLabel)};
_.X.enableContentEditableChanged_=function(){var f=this,R=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),R=_.b(this.hostElement,R),!R.lastChild||R.lastChild instanceof HTMLElement&&R.lastChild.id!=="contenteditable-root"){var u=document.createElement("div");u.id="contenteditable-root";u.setAttribute("contenteditable","true");u.setAttribute("dir","auto");u.onfocus=function(){f.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
R.appendChild(u);this.overrideAriaLabel&&u.setAttribute("aria-label",this.overrideAriaLabel)}}else u=_.OU(this.hostElement).firstChild,u instanceof HTMLElement&&u.id==="contenteditable-root"&&_.b(this.hostElement,R).removeChild(u)};
_.X.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.X.getNodesForVisibilityLogging_=function(){return _.Rt(this.getRoot().childNodes,function(f){var R;return!((R=f.data)==null||!R.trackingParams)})};
_.X.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.X.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var f=this.ytRendererBehavior.getVisibilityLogger();f&&this.getNodesForVisibilityLogging_().forEach(function(R){f.reportShown(R)})}};
_.X.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var f=this.ytRendererBehavior.getVisibilityLogger();f&&this.getNodesForVisibilityLogging_().forEach(function(R){f.reportHidden(R)})}};
_.Vy.Object.defineProperties(F7.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.E("enable_mixed_direction_formatted_strings")}}});
F7.prototype.enableContentEditableChanged_=F7.prototype.enableContentEditableChanged_;F7.prototype.overrideAriaLabelChanged_=F7.prototype.overrideAriaLabelChanged_;F7.prototype.ellipsisTruncateChanged_=F7.prototype.ellipsisTruncateChanged_;F7.prototype.textChanged=F7.prototype.textChanged;_.B([_.z(rXk.YtPlaintextBehavior),_.S("design:type",Object)],F7.prototype,"ytPlaintextBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],F7.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],F7.prototype,"text",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"noEndpoints",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"noStyles",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],F7.prototype,"isDarkTheme",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],F7.prototype,"splitLines",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],F7.prototype,"forceDefaultStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],F7.prototype,"ellipsisTruncate",void 0);_.B([_.I(),_.S("design:type",Object)],F7.prototype,"ignoreShadyDom",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.S("design:type",Boolean)],F7.prototype,"ellipsisTruncateStyling",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.S("design:type",String)],F7.prototype,"ariaLabel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],F7.prototype,"isEmpty",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.S("design:type",Boolean)],F7.prototype,"hasLinkOnly_",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"hasEmoji",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"disableAttributedString",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"isOverlay",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"linkInheritColor",void 0);
_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"noPreWrap",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"userInput",void 0);_.B([_.I({value:16}),_.S("design:type",Number)],F7.prototype,"emojiSize",void 0);_.B([_.I(),_.S("design:type",String)],F7.prototype,"target",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"enableContentEditable",void 0);_.B([_.I(),_.S("design:type",String)],F7.prototype,"overrideAriaLabel",void 0);
_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"respectHtmlDir",void 0);_.B([_.I(),_.S("design:type",Boolean)],F7.prototype,"respectLangDir",void 0);_.B([_.T("plaintextOnly"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],F7.prototype,"useMixedDirectionFormattedStrings",null);_.B([_.I({computed:"computeUseAttributedString(text)"}),_.S("design:type",Boolean)],F7.prototype,"useYtAttributedString",void 0);
_.B([_.qM("text"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F7.prototype,"textChanged",null);_.B([_.qM("ellipsisTruncate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F7.prototype,"ellipsisTruncateChanged_",null);_.B([_.qM("overrideAriaLabel"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F7.prototype,"overrideAriaLabelChanged_",null);
_.B([_.qM("enableContentEditable"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F7.prototype,"enableContentEditableChanged_",null);F7=_.B([_.DO({is:"yt-formatted-string",disableElementRegistration:!0})],F7);
_.G(F7,"yt-formatted-string",function(){if(RYE===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ffY===void 0&&(ffY=document.createElement("template"));var O=ffY;u.call(R,O.content.cloneNode(!0),f.content.firstChild);RYE=f}f=RYE;return f});var uKf;var OAA;var c0I;var Xjf;var w2=function(){var f=_.U.apply(this,arguments)||this;f.focused=!1;f.disabled=!1;f.isOverlay=!1;return f};
_.y(w2,_.U);w2.prototype.triggerDown=function(){if(!this.disabled){_.c2(this.hostElement,"down",!0);var f;(f=this.currentAnimation)==null||f.cancel()}};
w2.prototype.triggerUp=function(){if(!this.disabled){_.c2(this.hostElement,"down",!1);var f=this.fillElement;var R=this.strokeElement;typeof GroupEffect==="function"?(f=new GroupEffect([uR7(f),OHe(R)]),f=new Animation(f,document.timeline)):f=new Byf(f,R);this.currentAnimation=f;var u;(u=this.currentAnimation)==null||u.play()}};
_.B([_.a4(".stroke"),_.S("design:type",HTMLElement)],w2.prototype,"strokeElement",void 0);_.B([_.a4(".fill"),_.S("design:type",HTMLElement)],w2.prototype,"fillElement",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],w2.prototype,"focused",void 0);_.B([_.I(),_.S("design:type",Object)],w2.prototype,"disabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],w2.prototype,"isOverlay",void 0);w2=_.B([_.DO({is:"yt-interaction",disableElementRegistration:!0})],w2);
_.G(w2,"yt-interaction",function(){if(Xjf===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;c0I===void 0&&(c0I=document.createElement("template"));var O=c0I;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Xjf=f}f=Xjf;return f},{mode:2});var m9=function(){return _.U.apply(this,arguments)||this};
_.y(m9,_.U);_.X=m9.prototype;_.X.ready=function(){var f=this,R=_.b(this.hostElement).querySelector("#button");R.addEventListener("focus",function(){zuf||(zuf=new JUF);f.keyboardFocused=zuf.isKeyBoardInUse()});
R.addEventListener("blur",function(){f.keyboardFocused=!1;f.rippleUp_()})};
_.X.computeTabIndex_=function(f){return f?-1:0};
_.X.computeButtonAriaPressed_=function(f){if(this.toggleable)return f?"true":"false"};
_.X.rippleDown_=function(){_.b(this.hostElement).querySelector("#interaction").triggerDown()};
_.X.rippleUp_=function(){_.b(this.hostElement).querySelector("#interaction").triggerUp()};
_.X.onPressedChanged_=function(){var f=_.OU(_.b(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.OU(_.b(this.hostElement).querySelector("#button")).children[0];f&&(f.active=this.pressed)};
m9.prototype.onPressedChanged_=m9.prototype.onPressedChanged_;m9.prototype.rippleUp_=m9.prototype.rippleUp_;m9.prototype.rippleDown_=m9.prototype.rippleDown_;_.B([_.I(),_.S("design:type",String)],m9.prototype,"label",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],m9.prototype,"disabled",void 0);_.B([_.I(),_.S("design:type",Boolean)],m9.prototype,"pressed",void 0);_.B([_.I(),_.S("design:type",Object)],m9.prototype,"toggleable",void 0);
_.B([_.I(),_.S("design:type",Boolean)],m9.prototype,"untabbable",void 0);_.B([_.I(),_.S("design:type",Boolean)],m9.prototype,"keyboardFocused",void 0);_.B([_.Kf("down"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m9.prototype,"rippleDown_",null);_.B([_.Kf("up"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m9.prototype,"rippleUp_",null);
_.B([_.qM("pressed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m9.prototype,"onPressedChanged_",null);m9=_.B([_.DO({is:"yt-icon-button",disableElementRegistration:!0})],m9);
_.G(m9,"yt-icon-button",function(){if(OAA===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;uKf===void 0&&(uKf=document.createElement("template"));var O=uKf;u.call(R,O.content.cloneNode(!0),f.content.firstChild);OAA=f}f=OAA;return f},{mode:2});var hYG=_.Sg(["aria-"]),Qj={};Qj.YtRenderButtonBehavior=[_.r.YtRendererBehavior,_.aD.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!!_.vh().resolve(_.Y8(_.Oc))&&_.E("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 f=this.computeHref_(this.endpoint,!0);f?Lj(this.elements_.endpoint,f):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){f=this.buttonClass.split(" ");f=_.Z(f);for(var R=f.next();!R.done;R=f.next())R=R.value,_.c2(this.hostElement,R,!0),this.elements_.button&&_.c2(this.elements_.button,R,!0),this.elements_.text&&_.c2(this.elements_.text,R,!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&&(f=null,this.buttonAccessibility&&(f=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=f:f?_.Bz([_.rn(hYG)],this.elements_.button,"aria-label",f):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var f=_.vh().resolve(_.Y8(_.Oc));f&&(this.keyboardFocused=f.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Yd("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,_.du(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.du(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(f,R){if(R)for(f=R.split(" "),f=_.Z(f),R=f.next();!R.done;R=f.next())R=R.value,_.c2(this.hostElement,R,!1),this.elements_.button&&_.c2(this.elements_.button,R,!1),this.elements_.text&&_.c2(this.elements_.text,R,!1)},
buttonIconChanged_:function(f){this.elements_.icon?f?(this.elements_.icon.icon=f,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.du(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.X4(this.hostElement,"is-paper-button-with-icon",!1)):f&&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"&&_.du(this.elements_.button).appendChild(this.elements_.icon):_.du(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.X4(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(f){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,f){var R=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(f){case "yt_icon_button_with_label":R=!0;_.c2(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();f=_.du(this.elements_.button).firstElementChild;
this.elements_.icon=f;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.du(this.elements_.endpoint).appendChild(this.elements_.button);_.du(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Yd("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;_.du(this.elements_.button).appendChild(this.elements_.text);_.du(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":R=!0,this.elements_.button=this.getYtIconButton_(),f=_.du(this.elements_.button).firstElementChild,this.elements_.icon=f,this.setIconActive_(this.elements_.icon),
_.du(this.elements_.endpoint).appendChild(this.elements_.button)}_.X4(this.hostElement,"is-icon-button",R);_.X4(this.hostElement,"is-paper-button",!R);_.X4(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;_.b((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&&_.du(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(f){if(f!=void 0||this.disabled)this.disabled=f,this.elements_.button&&(this.elements_.button.disabled=f)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(f){_.E("kevlar_system_icons")&&f&&this.data&&(this.data.isSelected!==void 0?f.active=this.data.isSelected:this.data.isToggled!==void 0&&(f.active=this.data.isToggled))},
observeBasicPalette_:function(f){_.be(this.hostElement,f)},
disabledChanged_:function(f){this.data&&this.set("data.isDisabled",f)},
onYtButtonTap_:function(f){if(this.disabled)f.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.hH(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(f=this.disableCommandHandlerOverride,!this.data||!this.data.command||f||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.E("handle_service_request_actions")||_.hH(this.hostElement,[this.serviceEndpoint]),
_.ul(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.E("handle_service_request_actions")?(f=[],this.serviceEndpoint&&f.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&f.push(this.data.command),f.length&&_.ZW(this.hostElement,f,this.hostElement)):this.data&&this.data.command&&(f=this.data.command,f.accountUnlinkCommand||f.accountLinkCommand||f.insertAdCommand||f.insertHighlightMarkerCommand||
f.createLivestreamHighlightClipCommand||f.getVideoUploadFeedbackCommand||f.musicDeletePrivatelyOwnedEntityCommand||f.ypcCancelRecurrenceEndpoint||f.getMultiSelectCommandEndpoint?_.hH(this.hostElement,[f]):_.ZW(this.hostElement,[f],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 f,R=_.b((f=this.container.hostElement)!=null?f:this.container);R.lastChild&&R.lastChild.tagName!="STYLE";)try{R.removeChild(R.lastChild)}catch(u){break}},
getYtIconButton_:function(){var f=this.reuseEnabled_()?_.Yd("yt-icon-button"):document.createElement("yt-icon-button"),R=_.du(f).firstElementChild;if(R&&R.is!="yt-icon"){for(R=_.du(f);R.lastChild;)R.removeChild(R.lastChild);R=null}R||(R=this.getIcon_(),this.setIconActive_(R),_.du(f).appendChild(R));return f},
reuseEnabled_:function(){return _.E("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Yd("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Yd("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.ZAi={};
_.ZAi.YtButtonBehavior=[Qj.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var f=this.data;f&&(this._setEndpoint(this.computeEndpoint_(f)),this._setServiceEndpoint(this.computeServiceEndpoint_(f)),this._setCommand(this.computeCommand_(f)),this._setButtonIcon(this.computeButtonIcon_(f)),this._setButtonText(this.computeButtonText_(f,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(f)),this._setButtonTooltip(this.computeTooltip_(f)),this._setButtonClass(this.computeButtonClass_(f)),this._setIconPositionType(this.computeIconPositionType_(f)),this.updateRenderedElements())},
setPressedState:function(f){var R;if((R=this.elements_)==null?0:R.button)this.elements_.button.pressed=!!f},
computeIconPositionType_:function(f){return f&&f.iconPosition||null},
computeEndpoint_:function(f){var R=f&&f.navigationEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.url"),O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return R?R:f&&f.command&&f.command.modalEndpoint?f.command:u&&!O&&f.command?f.command:null},
computeServiceEndpoint_:function(f){var R=f&&f.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return R?R:u&&f.command?f.command:null},
computeCommand_:function(f){return f&&f.command||null},
computeButtonIcon_:function(f){return f&&f.icon&&f.icon.iconType?_.li(f.icon.iconType):null},
computeButtonText_:function(f,R){return!R&&f&&f.text||null},
computeAccessibility_:function(f){return this.get("accessibilityData.accessibilityData",f)||f&&f.accessibility||(f&&f.text?{label:this.getSimpleString(f.text)}:null)},
computeTooltip_:function(f){return f?f.isDisabled&&f.disabledTooltip||f.tooltip||null:null},
computeButtonClass_:function(f){var R=f&&f.style?f.style.toLowerCase().replace(/_/g,"-")+" ":"";R+=f&&f.size?f.size.toLowerCase().replace(/_/g,"-")+" ":"";f.colorData&&f.colorData.basicColorPaletteData&&f.colorData.basicColorPaletteData.borderColor&&(R+="palette-with-border");return R.trim()}}];var pL={};var lfC;var kst;var Kkf,qBf=function(){return Kkf!==void 0?Kkf:Kkf=document.createElement("template")};
document.head.appendChild(qBf().content);var A0A;var afC,FkA=function(){return afC!==void 0?afC:afC=document.createElement("template")};
document.head.appendChild(FkA().content);var wjF;var mdE,QOf=function(){return mdE!==void 0?mdE:mdE=document.createElement("template")};
document.head.appendChild(QOf().content);var WkC;var EKk=document.head,tmF=EKk.appendChild,CbC;if(WkC===void 0){var y0i=document.createElement("template");_.N(y0i,"\x3c!--css-build:shady--\x3e");y0i.content.insertBefore(QOf().content.cloneNode(!0),y0i.content.firstChild);WkC=y0i}CbC=WkC;tmF.call(EKk,CbC.content);var ddl=document.head,Nil=ddl.appendChild,Lkk;if(wjF===void 0){var bAk=document.createElement("template");_.N(bAk,"\x3c!--css-build:shady--\x3e");bAk.content.insertBefore(FkA().content.cloneNode(!0),bAk.content.firstChild);wjF=bAk}Lkk=wjF;Nil.call(ddl,Lkk.content);var pjG=document.head,jOf=pjG.appendChild,Ddl;if(A0A===void 0){var J0k=document.createElement("template");_.N(J0k,"\x3c!--css-build:shady--\x3e");J0k.content.insertBefore(qBf().content.cloneNode(!0),J0k.content.firstChild);A0A=J0k}Ddl=A0A;jOf.call(pjG,Ddl.content);var zYf;_.j6("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");zYf=_.E("web_button_rework")&&_.Hh("BUTTON_REWORK")||_.E("web_button_rework_with_live");_.Wd=function(){return _.U.apply(this,arguments)||this};
_.y(_.Wd,_.U);_.Wd.prototype.created=function(){this.openPopupConfig=_.Tf("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Wd.prototype.onYtNavigate_=function(f){var R=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);R&&(this.ytOpenPopupBehavior.openPopup(R),f.stopPropagation(),f.preventDefault())};
_.Vy.Object.defineProperties(_.Wd,{template:{configurable:!0,enumerable:!0,get:function(){if(kst===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;lfC===void 0&&(lfC=document.createElement("template"));var O=lfC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);kst=f}f=kst;return f}}});
_.Wd.prototype.onYtNavigate_=_.Wd.prototype.onYtNavigate_;_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],_.Wd.prototype,"ytOpenPopupBehavior",void 0);_.B([_.z(_.ZAi.YtButtonBehavior),_.S("design:type",Object)],_.Wd.prototype,"ytButtonBehavior",void 0);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],_.Wd.prototype,"onYtNavigate_",null);
_.Wd=_.B([_.DO({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:zYf})],_.Wd);var TiC;var HAC=_.E("web_button_rework")&&_.Hh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),Ec=function(){var f=_.U.apply(this,arguments)||this;f.isPressed=!1;f.forceIconButton=!1;f.forceIconOnly=!1;f.forceModernIconButton=!1;f.skipCommandHandling=!1;f.alignByText=!1;f.fitToVisibleBounds=!0;f.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};f.onTap=function(R){_.ul(f.hostElement,"yt-service-request-sent-button-renderer",R)};
return f};
_.y(Ec,_.U);_.X=Ec.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.X.onClick=function(f){var R,u=this.disabled||((R=this.data)==null?void 0:R.isDisabled);R=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");u&&R&&f.stopPropagation()};
_.X.computeIcon=function(){var f,R,u=(f=this.data)==null?void 0:(R=f.icon)==null?void 0:R.iconType;if(u)return _.li(u)};
_.X.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.X.handleUpdateButtonAction=function(f){f=_.t(f,kRl);var R=_.t(f==null?void 0:f.updatedButton,_.z9);if(this.data&&f&&R){var u=this.data;u.targetId&&f.targetId&&u.targetId===f.targetId&&(this.data=R)}};
_.Vy.Object.defineProperties(Ec.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var f=this;if(this.data){var R=iHn({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.ul(f.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.ul(f.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});R.alignByText=this.alignByText;return R}}}});
_.Vy.Object.defineProperties(Ec,{template:{configurable:!0,enumerable:!0,get:function(){if(TiC===void 0){var f=document.createElement("template");_.N(f,'\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>');TiC=f}f=TiC;return f}}});
Ec.prototype.onClick=Ec.prototype.onClick;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Ec.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Ec.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"isPressed",void 0);
_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"forceIconButton",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"forceIconOnly",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"forceModernIconButton",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"skipCommandHandling",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"alignByText",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"buttonTooltipPosition",void 0);
_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"fitToVisibleBounds",void 0);_.B([_.I({computed:"computeTooltip(data)"}),_.S("design:type",Object)],Ec.prototype,"tooltip",void 0);_.B([_.I(),_.S("design:type",Object)],Ec.prototype,"overrides",void 0);_.B([_.I(),_.S("design:type",Boolean)],Ec.prototype,"disabled",void 0);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Ec.prototype,"onClick",null);
_.B([_.T("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ec.prototype,"computedButtonShape",null);Ec=_.B([_.DO({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!HAC,cssBuildOptOut:!0}),_.DO({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!HAC,cssBuildOptOut:!0})],Ec);var IfY;var Mmk;var te=function(){var f=_.U.apply(this,arguments)||this;f.empty_=!0;f.loadTime=Infinity;f.pendingPaint=!1;f.hasChange_=!1;f.oldThumbnail_=null;f.oldDelayedSrc_="";f.objectURL_=null;return f};
_.y(te,_.U);_.X=te.prototype;_.X.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.X.ready=function(){var f=this.shouldShowPlaceholder_();_.c2(this.hostElement,"no-transition",!0);f&&this.hostElement.classList.add("with-placeholder")};
_.X.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.X.isThumbPreloaded_=function(f){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",f)};
_.X.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||PbY};
_.X.computeThumbnailSrc_=function(f){return f&&f.thumbnails?_.rR(f.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.X.computeAlt_=function(){var f=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&f||""};
_.X.thumbnailChanged_=function(){var f=_.Z([this.thumbnail,this.oldThumbnail_]),R=f.next().value;f=f.next().value;this.oldThumbnail_=R;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(f=this.computeThumbnailSrc_(f),this.computeThumbnailSrc_(R)===f))return;_.E("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(R)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):R&&_.Hh("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.su(this,this.onReload_):_.su(this,this.onShow_):this.resetImage_();R&&(this.hostElement.style.opacity=""+R.opacity)}};
_.X.delayedSrcChanged_=function(){var f=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===f||this.resetImage_()};
_.X.setSrc_=function(f){f?(_.b(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.b(this.hostElement).querySelector("#img").src=f):(_.b(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.X.resetImage_=function(){O1n(this.hostElement);this.empty_=!0;this.setSrc_(PbY);this.ytRendererBehavior.invalidate(!1)};
_.X.observePlaceholderColor_=function(){var f=this.thumbnail&&this.thumbnail.placeholderColor;f?this.hostElement.style.backgroundColor=_.I1(f):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.X.onLoad_=function(){_.b(this.hostElement).querySelector("#img").src&&_.b(this.hostElement).querySelector("#img").src!==PbY&&(ubn(this.hostElement),this.notifyOnLoaded&&_.ul(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.X.onError_=function(){var f=this;if(_.E("web_use_cache_for_image_fallback"))Ke7(_.b(this.hostElement).querySelector("#img").src).then(function(R){f.objectURL_=_.Cj(R).toString();f.setSrc_(f.objectURL_)}).catch(function(){_.E("kevlar_woffle_fallback_image")&&f.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.X.onPrescanVisible=function(){this.onShow_()};
_.X.onVisible=function(){if(_.E("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.X.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var f=this.computeSrc_();f!==_.b(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(f))}};
_.X.onReload_=function(){this.empty_=!1;var f=this.computeSrc_();f!==_.b(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(f))};
_.X.shouldShowPlaceholder_=function(){return _.E("kevlar_thumbnail_bg")};
te.prototype.observePlaceholderColor_=te.prototype.observePlaceholderColor_;te.prototype.delayedSrcChanged_=te.prototype.delayedSrcChanged_;te.prototype.thumbnailChanged_=te.prototype.thumbnailChanged_;_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],te.prototype,"alt",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],te.prototype,"ariaHidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],te.prototype,"ariaLabel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],te.prototype,"hidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],te.prototype,"id",void 0);_.B([_.z(_.eG.YtVisibilityBehavior),_.S("design:type",Object)],te.prototype,"ytVisibilityBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",String)],te.prototype,"delayedSrc",void 0);
_.B([_.I(),_.S("design:type",Object)],te.prototype,"thumbnail",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],te.prototype,"loaded",void 0);_.B([_.I(),_.S("design:type",Boolean)],te.prototype,"notifyOnLoaded",void 0);_.B([_.I(),_.S("design:type",Number)],te.prototype,"height",void 0);_.B([_.I(),_.S("design:type",Number)],te.prototype,"width",void 0);_.B([_.I({value:function(){return"width"}}),
_.S("design:type",String)],te.prototype,"dimension",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],te.prototype,"fit",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],te.prototype,"fitHeight",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],te.prototype,"fitWidth",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],te.prototype,"objectFit",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],te.prototype,"objectPosition",void 0);_.B([_.I(),_.S("design:type",String)],te.prototype,"preferredThumbnail",void 0);_.B([_.I({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.S("design:type",String)],te.prototype,"alt_",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],te.prototype,"sharedTooltipText",void 0);
_.B([_.I(),_.S("design:type",Boolean)],te.prototype,"ftlEligible",void 0);_.B([_.I({value:void 0}),_.S("design:type",String)],te.prototype,"observeHiddenOption",void 0);_.B([_.I({value:"observe_once"}),_.S("design:type",String)],te.prototype,"observePrescanOption",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],te.prototype,"roundedContainer",void 0);
_.B([_.QR("thumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],te.prototype,"thumbnailChanged_",null);_.B([_.QR("delayedSrc"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],te.prototype,"delayedSrcChanged_",null);_.B([_.qM("thumbnail.placeholderColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],te.prototype,"observePlaceholderColor_",null);
te=_.B([_.DO({is:"yt-img-shadow",disableElementRegistration:!0})],te);var PbY=_.Hh("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Ox()(te,"yt-img-shadow",function(){if(Mmk===void 0){var f=document.createElement("template");_.N(f,'\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">');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;IfY===void 0&&(IfY=document.createElement("template"));var O=IfY;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Mmk=f}f=Mmk;return f},{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 HbP;_.Cq=new _.Vi("SCREEN_MANAGER_TOKEN");HbP=new _.Vi("LOG_INITIAL_SCREEN_TOKEN");_.Lr=_.nf(function(f){function R(ZD){return _.t(ZD,_.dW)}
function u(){var ZD=O().isTogglingDisabled||W()?p():!p();J(ZD);P(!1);if(!O().isTogglingDisabled){var mP;(mP=l)==null||mP(!!ZD)}var NX;((NX=h)==null?0:NX())||_.Zn(_.vh().resolve(_.Cq),O().trackingParams);var jt;if(!ZD||!R(O().defaultButtonViewModel)||(jt=h)!=null&&jt()){var Jn;!R(O().toggledButtonViewModel)||((Jn=h)==null?0:Jn())||_.Zn(_.vh().resolve(_.Cq),R(O().toggledButtonViewModel).trackingParams)}else _.Zn(_.vh().resolve(_.Cq),R(O().defaultButtonViewModel).trackingParams)}
var O=f.data,c=f.buttonShapeOverrides,h=f.disableExplicitClickLogging,l=f.onToggle,K=f.style,q=f.useOutlinedIcon,F=f.className,w=function(){var ZD,mP;return p()?(ZD=f.animatedTextPropsToggled)==null?void 0:ZD.call(f):(mP=f.animatedTextPropsDefault)==null?void 0:mP.call(f)},m=_.Qt(function(){return w()?Object.assign({},w(),{shouldAnimate:M()}):void 0},void 0,"ZKEa0b"),W=function(){var ZD;
return((ZD=fh())==null?void 0:ZD.isToggled)!==void 0},C=_.Z(_.m8(function(){var ZD,mP,NX;
return W()?(ZD=fh())==null?void 0:ZD.isToggled:(NX=c==null?void 0:(mP=c())==null?void 0:mP.toggled)!=null?NX:O().isToggled})),d=C.next().value;
C=C.next().value;var p=d,J=C;C=_.Z(_.m8(function(){var ZD,mP;return(ZD=f.animatedTextPropsToggled)==null?void 0:(mP=ZD.call(f))==null?void 0:mP.shouldAnimate}));
d=C.next().value;C=C.next().value;var M=d,P=C;d=_.Z(_.qK(!1,void 0,"S11hid"));var g=d.next().value,x=d.next().value,fh=_.JS(function(ZD){var mP;a:{var NX=O().entityKey,jt=O().toggledStateEntitySelectorType;if(jt&&NX)switch(jt){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Jn;ZD=(Jn=_.kZ(ZD.entities,"sfvAudioItemCurrentlyPlayingEntity",NX))!=null?Jn:void 0;Jn=(mP=ZD==null?void 0:ZD.sfvAudioItemPlaybackState)!=null?mP:void 0;if(Jn==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){mP={isToggled:!0};
break a}if(Jn){mP={isToggled:!1};break a}break;default:_.Ih(new _.ts("Error: entitySelectorType defined but not matched in selector.",ZD,jt))}mP=void 0}return mP}),V=function(){return Object.assign({},c==null?void 0:c(),{onToggle:u,
toggleable:!0,toggled:p(),focused:g()})};
return _.a("toggle-button-view-model",{"on:focusin":_.Ff(function(){var ZD=_.vh().resolve(_.Y8(_.Oc));ZD&&x(ZD.isKeyBoardInUse());return!1}),
"on:focusout":_.Ff(function(){x(!1);return!1}),
class:F},_.a(_.Q,{cond:function(){return p()?R(O().toggledButtonViewModel):R(O().defaultButtonViewModel)},
then:function(ZD){return _.a(_.TS,{data:ZD,className:F,style:K,useOutlinedIcon:q,buttonOverrides:V,animatedTextProps:m})}}))},"z");
_.Lr.idomCompat={callbacks:{onToggle:!0}};_.ii(_.nf(function(f){return _.a("yt-toggle-button-view-model",{class:function(){var R;return(R=f.scopingClassName)==null?void 0:R.call(f)}},_.a(_.Lr,{data:function(){var R;
return(R=f.data)==null?void 0:R.call(f)},
buttonShapeOverrides:function(){var R;return(R=f.overrides)==null?void 0:R.call(f)},
animatedTextPropsDefault:function(){var R;return(R=f.animatedTextPropsDefault)==null?void 0:R.call(f)},
animatedTextPropsToggled:function(){var R;return(R=f.animatedTextPropsToggled)==null?void 0:R.call(f)},
disableExplicitClickLogging:function(){var R;return(R=f.disableExplicitClickLogging)==null?void 0:R.call(f)},
onToggle:function(R){var u;return(u=f.onToggle)==null?void 0:u.call(f,R)},
style:function(){var R;return(R=f.style)==null?void 0:R.call(f)},
useOutlinedIcon:function(){var R;return(R=f.useOutlinedIcon)==null?void 0:R.call(f)},
className:function(){var R;return(R=f.className)==null?void 0:R.call(f)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.SG,
buttonShapeOverrides:_.SG,overrides:_.SG,animatedTextPropsDefault:_.SG,animatedTextPropsToggled:_.SG,disableExplicitClickLogging:_.SG,onToggle:_.v7,style:_.SG,useOutlinedIcon:_.SG,className:_.SG,scopingClassName:_.SG}});var yj=function(){return _.U.apply(this,arguments)||this};
_.y(yj,_.U);yj.prototype.onTap=function(f){f.stopPropagation();f=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.bA("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:f})):this.ytLiveChatReduxBehavior.dispatch(_.aA("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:f}))};
_.Vy.Object.defineProperties(yj.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.engagementState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=_.t(this.data.toggleButton,_.Np),R;if(Number(((R=this.likeCountState)==null?void 0:R.likeCountIfIndifferentNumber)||"0")===0){var u;R=((u=this.data.likeCountPlaceholder)==null?void 0:u.content)||""}else{var O,c,h;R=((O=this.likeCountState)==null?void 0:(c=O.likeCountIfIndifferent)==null?void 0:c.content)||((h=this.data.likeCountPlaceholder)==null?void 0:h.content)||""}var l,K;u=((l=this.likeCountState)==null?void 0:(K=
l.likeCountIfLiked)==null?void 0:K.content)||"1";l=_.t(f.toggledButtonViewModel,_.dW);return Object.assign({},f,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.t(f.defaultButtonViewModel,_.dW),{title:R})},toggledButtonViewModel:{buttonViewModel:Object.assign({},l,{title:u})}})}}}});
yj.prototype.onTap=yj.prototype.onTap;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],yj.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],yj.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yj.prototype,"data",void 0);
_.B([_.I({selectorArgs:["data.likeCountEntityKey"],selector:rPn}),_.S("design:type",Object)],yj.prototype,"likeCountState",void 0);_.B([_.I({selectorArgs:["data.engagementStateKey"],selector:pu2}),_.S("design:type",Object)],yj.prototype,"engagementState",void 0);_.B([_.T("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yj.prototype,"isLiked",null);
_.B([_.T("data","likeCountState","isLiked"),_.S("design:type",Object),_.S("design:paramtypes",[])],yj.prototype,"toggleButton",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],yj.prototype,"onTap",null);yj=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],yj);
_.G(yj,"yt-live-chat-like-button-view-model",function(){if(iFY===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;vbf===void 0&&(vbf=document.createElement("template"));var O=vbf;u.call(R,O.content.cloneNode(!0),f.content.firstChild);iFY=f}f=iFY;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Udk;var eYt;var d2=function(){return _.U.apply(this,arguments)||this};
_.y(d2,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],d2.prototype,"data",void 0);d2=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],d2);
_.G(d2,"yt-live-chat-paid-message-footer-renderer",function(){if(eYt===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Udk===void 0&&(Udk=document.createElement("template"));var O=Udk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);eYt=f}f=eYt;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var GsY;var BiH;var oKt;var xdi,SBC=function(){if(xdi!==void 0)return xdi;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;oKt===void 0&&(oKt=document.createElement("template"));var O=oKt;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return xdi=f};var NA=function(){return _.U.apply(this,arguments)||this};
_.y(NA,_.U);NA.prototype.onTap=function(f){f.stopPropagation()};
_.Vy.Object.defineProperties(NA.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=_.t(this.data.replyButton,_.dW),R,u,O,c,h,l,K,q=Number(((R=this.replyCountState)==null?void 0:R.replyCountNumber)||"0")===0?(u=this.data)==null?void 0:(O=u.replyCountPlaceholder)==null?void 0:O.content:((c=this.replyCountState)==null?void 0:(h=c.replyCount)==null?void 0:h.content)||((l=this.data)==null?void 0:(K=l.replyCountPlaceholder)==null?void 0:K.content)||"",F;return Object.assign({},
f,{title:q,accessibilityText:(F=this.replyCountState)==null?void 0:F.replyButtonAccessibilityText})}}}});
_.Vy.Object.defineProperties(NA,{template:{configurable:!0,enumerable:!0,get:function(){return SBC()}}});
NA.prototype.onTap=NA.prototype.onTap;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],NA.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],NA.prototype,"data",void 0);
_.B([_.I({selectorArgs:["data.replyCountEntityKey"],selector:function(f,R){return _.kZ(f.entities,"replyCountEntity",R)}}),
_.S("design:type",Object)],NA.prototype,"replyCountState",void 0);_.B([_.T("data","replyCountState"),_.S("design:type",Object),_.S("design:paramtypes",[])],NA.prototype,"buttonViewModel",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],NA.prototype,"onTap",null);NA=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],NA);
_.G(NA,"yt-live-chat-reply-button-view-model",function(){return SBC()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var $dC;var gKC;var Lq=function(){var f=_.U.apply(this,arguments)||this;f.ariaLabel="";return f};
_.y(Lq,_.U);
Lq.prototype.dataChanged=function(){for(var f=(0,_.hl)(_.b(this.hostElement).querySelector("#image"));f.firstChild;)f.removeChild(f.firstChild);if(this.data)if(this.data.icon){var R=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(R.polymerController.icon="yt-sys-icons:shield-filled",R.polymerController.defaultToFilled=!0):R.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();f.appendChild(R)}else if(this.data.customThumbnail){R=document.createElement("img");
var u=_.VLl(this.data.customThumbnail.thumbnails,16);u?(R.src=u,f.appendChild(R),R.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Ih(new _.ts("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Lq.prototype.identity=function(f){return f};
Lq.prototype.computeType=function(f){return Xy(f||void 0)};
Lq.prototype.dataChanged=Lq.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],Lq.prototype,"data",void 0);_.B([_.I({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.S("design:type",Object)],Lq.prototype,"ariaLabel",void 0);_.B([_.I({computed:"computeType(data)",reflectToAttribute:!0}),_.S("design:type",String)],Lq.prototype,"type",void 0);
_.B([_.I({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.S("design:type",String)],Lq.prototype,"sharedTooltipText",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("live_chat_enable_new_moderator_badge")}}),
_.S("design:type",Boolean)],Lq.prototype,"enableNewModeratorBadge",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Lq.prototype,"dataChanged",null);Lq=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Lq);
_.G(Lq,"yt-live-chat-author-badge-renderer",function(){if(gKC===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;$dC===void 0&&($dC=document.createElement("template"));var O=$dC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);gKC=f}f=gKC;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var sOF;var nKt;var bd=function(){return _.U.apply(this,arguments)||this};
_.y(bd,_.U);_.X=bd.prototype;_.X.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"}}}}};
_.X.computeBadgesInsideChip=function(f){return f?f.filter(function(R){return Xy(R.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.X.computeBadgesOutsideChip=function(f){return this.prependChatBadges||!f?[]:f.filter(function(R){R=Xy(R.liveChatAuthorBadgeRenderer);return R!=="verified"&&R!=="owner"})};
_.X.computeBadgesBeforeChip=function(f){return this.prependChatBadges&&f?f.filter(function(R){R=Xy(R.liveChatAuthorBadgeRenderer);return R!=="verified"&&R!=="owner"}):[]};
_.X.computeIsHighlighted=function(f,R){var u=!!k8X(f,"owner"),O=!!k8X(f,"verified");f=!!k8X(f,"moderator");return(u||O&&!f)&&!R};
_.X.computeAuthorType=function(f){return lIq(f)};
_.X.computeAuthorClass=function(f,R){return R?(f?f+" ":"")+"single-line":f};
_.X.onSeedColorChanged=function(){_.E("live_chat_author_name_color_usernames")||_.E("live_chat_seed_color_usernames")||_.E("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):_.E("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
bd.prototype.onSeedColorChanged=bd.prototype.onSeedColorChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],bd.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bd.prototype,"authorName",void 0);_.B([_.I(),_.S("design:type",Array)],bd.prototype,"authorBadges",void 0);
_.B([_.I({computed:"computeAuthorType(authorBadges)"}),_.S("design:type",String)],bd.prototype,"authorType",void 0);_.B([_.I({computed:"computeAuthorClass(authorType, singleLine)"}),_.S("design:type",String)],bd.prototype,"authorClass",void 0);_.B([_.I({computed:"computeBadgesInsideChip(authorBadges)"}),_.S("design:type",Array)],bd.prototype,"badgesInsideChip",void 0);_.B([_.I({computed:"computeBadgesOutsideChip(authorBadges)"}),_.S("design:type",Array)],bd.prototype,"badgesOutsideChip",void 0);
_.B([_.I({computed:"computeBadgesBeforeChip(authorBadges)"}),_.S("design:type",Array)],bd.prototype,"badgesBeforeChip",void 0);_.B([_.I({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.S("design:type",Boolean)],bd.prototype,"isHighlighted",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],bd.prototype,"singleLine",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],bd.prototype,"disableHighlighting",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],bd.prototype,"dashboardMoneyFeed",void 0);_.B([_.I({value:_.E("live_chat_prepend_badges"),reflectToAttribute:!0}),_.S("design:type",Boolean)],bd.prototype,"prependChatBadges",void 0);_.B([_.I(),_.S("design:type",String)],bd.prototype,"authorNameColor",void 0);_.B([_.a4("#author-name"),_.S("design:type",HTMLDivElement)],bd.prototype,"username",void 0);
_.B([_.qM("authorNameColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bd.prototype,"onSeedColorChanged",null);bd=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],bd);
_.G(bd,"yt-live-chat-author-chip",function(){if(nKt===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;sOF===void 0&&(sOF=document.createElement("template"));var O=sOF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);nKt=f}f=nKt;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var VmC;var YBt;var pq=function(){var f=_.U.apply(this,arguments)||this;f.debounceCommand=_.mC(function(R){f.ytComponentBehavior.resolveCommand(R)},1500);
return f};
_.y(pq,_.U);pq.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var f=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",R,u,O=this.isHearted?(R=this.data)==null?void 0:R.unheartCommand:(u=this.data)==null?void 0:u.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.bA("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:f}));(f=_.H7(O))&&this.debounceCommand(f)}};
_.Vy.Object.defineProperties(pq.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var f,R;if(!((f=this.data)==null?0:(R=f.creatorThumbnail)==null?0:R.sources))return{};f={thumbnails:[]};R={};R.url=this.data.creatorThumbnail.sources[0].url;f.thumbnails.push(R);return f}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((R=this.engagementState)==null?void 0:R.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}}});
pq.prototype.onTap=pq.prototype.onTap;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],pq.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pq.prototype,"data",void 0);
_.B([_.I({selectorArgs:["data.engagementStateKey"],selector:pu2}),_.S("design:type",Object)],pq.prototype,"engagementState",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],pq.prototype,"thumbnailDetails",null);_.B([_.T("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pq.prototype,"isHearted",null);_.B([_.T("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pq.prototype,"isEditable",null);
_.B([_.T("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pq.prototype,"showCreatorView",null);_.B([_.T("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pq.prototype,"showButton",null);_.B([_.T("data","isHearted"),_.S("design:type",String),_.S("design:paramtypes",[])],pq.prototype,"label",null);_.B([_.T("data","isHearted"),_.S("design:type",Object),_.S("design:paramtypes",[])],pq.prototype,"heartHoverText",null);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pq.prototype,"onTap",null);pq=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],pq);
_.G(pq,"yt-live-chat-creator-heart-view-model",function(){if(YBt===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;VmC===void 0&&(VmC=document.createElement("template"));var O=VmC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);YBt=f}f=YBt;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var j$=function(){};
_.y(j$,Oq);j$.prototype.JSC$10994_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:x7("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
j$.prototype.getApiPaths=function(){return[]};
j$.prototype.getExtension=function(){};
j$.prototype.JSC$10994_buildRequest=function(){};var vKI={},iAE=(vKI.GET_DATASYNC_IDS=tN(j$),vKI);var r0C,fxi,R_F,f7f,Ds,cvi,htf,OMA,uoG;r0C="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");fxi=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.PM=function(f,R,u,O,c,h,l,K,q){this.endpointMap=f;this.networkManager=R;this.authService=u;this.responseProcessorMap=O;this.innertubeResponseStore=c;this.contextProcessors=h;this.asyncContextProcessors=l;this.localInnertubeRouter=K;this.requestSequencer=q;this.inflightRequests=new Map;f.signalEndpointMap||(f.signalEndpointMap={});f.signalEndpointMap=Object.assign({},iAE,f.signalEndpointMap)};
R_F=function(f,R,u,O,c,h,l,K,q){if(_.PM.instance!==void 0){if(O=_.PM.instance,f=[f!==O.endpointMap,R!==O.networkManager,u!==O.authService,c!==O.innertubeResponseStore,h!==O.contextProcessors,l!==O.asyncContextProcessors,K!==O.localInnertubeRouter],f.some(function(F){return F}))throw new _.ts("InnerTubeTransportService is already initialized",f);
}else _.PM.instance=new _.PM(f,R,u,O,c,h,l,K,q)};
_.e6=function(f,R,u){var O=O===void 0?ysf:O;var c=htf(f,R);return c?new _.ah(function(h,l){var K,q,F,w,m;return _.k(function(W){switch(W.nextAddress){case 1:return _.A(W,c,2);case 2:K=W.yieldResult;q=K.JSC$10994_getRequest(R,u,O);if(!q){l(new _.ts("Error: Failed to build request for command.",R));W.jumpTo(0);break}ek(q.input);w=((F=q.requestShell)==null?void 0:F.mode)==="cors"?"cors":void 0;if(f.authService.syncHeaders){m=uoG(q.config,w);W.jumpTo(4);break}return _.A(W,OMA(q.config,w),5);case 5:m=
W.yieldResult;case 4:h(cvi(f,q,m)),_.KG(W)}})}):_.NO(new _.ts("Error: No request builder found for command.",R))};
f7f=function(f,R,u,O){var c=c===void 0?ysf:c;var h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V;return _.k(function(ZD){switch(ZD.nextAddress){case 1:h=uIn(R,f.endpointMap);if(!h)throw new _.ts("Error: No streaming request builder found for command",R);l=h.JSC$10994_getRequest(R,u,c);if(!l)throw new _.ts("Failed to build YtRequest for streaming Command",R);if((K=f.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(l.input,l.innerTubeRequest)){ZD.jumpTo(2);break}return _.A(ZD,f.localInnertubeRouter.localInnertubeResponse(l.input,
l.innerTubeRequest),3);case 3:return q=ZD.yieldResult,F={},q.playerResponse&&(Ds(f,q.playerResponse,l),F.player=q.playerResponse,(w=O)==null||w(F,q)),q.watchNextResponse&&(Ds(f,q.watchNextResponse,l),F.content=q.watchNextResponse,(m=O)==null||m(F,q)),ZD.return(F);case 2:C=((W=l.requestShell)==null?void 0:W.mode)==="cors"?"cors":void 0;if(f.authService.syncHeaders){d=uoG(l.config,C);ZD.jumpTo(4);break}return _.A(ZD,OMA(l.config,C),5);case 5:d=ZD.yieldResult;case 4:return M=(J=(p=l.requestShell)==null?
void 0:p.headers)!=null?J:{},l.requestShell=Object.assign({},l.requestShell,{headers:Object.assign({},M,d)}),P=Object.assign({},l.requestShell),g=JSON.stringify(l.innerTubeRequest),l.requestShell.method==="POST"&&(P=Object.assign({},P,{body:g})),x=function(mP,NX){Ds(f,NX.playerResponse||NX.watchNextResponse||NX.reelItemWatchResponse||NX.reelWatchSequenceResponse,l);O==null||O(mP,NX)},fh={},_.A(ZD,X3l(f.networkManager,l.input,P,x),6);
case 6:return fh=ZD.yieldResult,((V=l.config)==null?0:V.responseTick)&&_.JH(l.config.responseTick),ZD.return(fh)}})};
_.Dn=function(f,R,u,O,c){c=c===void 0?{authStrategy:{identity:ysf}}:c;var h=h===void 0?!0:h;var l=function(){};
l=Z57(Xq5(u));R.context||(R.context=_.Eln(O,h));return new _.ah(function(K){var q,F,w,m,W;return _.k(function(C){if(C.nextAddress==1)return q=sf5(u),F=_.o$(q),f.authService.syncHeaders?(w=uoG(c,F),C.jumpTo(2)):_.A(C,OMA(c,F),3);C.nextAddress!=2&&(w=C.yieldResult);m=nIt(sf5(u));W={input:m,requestShell:x7(m),innerTubeRequest:R,config:c};K(cvi(f,W,w,l));_.KG(C)})})};
Ds=function(f,R,u){var O;if(R&&!(R==null?0:(O=R.sequenceMetaData)==null?0:O.skipProcessing)&&f.responseProcessorMap){O=_.Z(r0C);for(var c=O.next();!c.done;c=O.next())c=c.value,f.responseProcessorMap[c]&&f.responseProcessorMap[c].handleResponse(R,u)}};
cvi=function(f,R,u,O){O=O===void 0?function(){}:O;
var c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD,mP,NX,jt,Jn,zq,St,Gq,LC,wN,GI,ak,kC,Rw,KC,qe,LE,k5,yA,HG,GX;return _.k(function(bf){switch(bf.nextAddress){case 1:l=(c=R.config)==null?void 0:(h=c.storeStrategy)==null?void 0:h.storeKey;if(!(l&&f.innertubeResponseStore&&f.innertubeResponseStore.has(l))||((K=R.config)==null?0:(q=K.storeStrategy)==null?0:q.disableCache)){bf.jumpTo(2);break}return _.A(bf,f.innertubeResponseStore.get(l),3);case 3:if((F=bf.yieldResult)&&!F.isExpired())return bf.return(Promise.resolve(_.hd(F)));
case 2:if(!((w=R)==null?0:(m=w.innerTubeRequest)==null?0:m.context)){bf.jumpTo(4);break}W=R.innerTubeRequest.context;if(!(f.asyncContextProcessors&&f.asyncContextProcessors.length>0)){bf.jumpTo(5);break}C=[];d=_.Z(f.asyncContextProcessors);for(p=d.next();!p.done;p=d.next())J=p.value,M=J.processContext(R),M.wrappedPromise_&&C.push(M.wrappedPromise_);if(!(C.length>0)){bf.jumpTo(5);break}return _.A(bf,Promise.all(C),5);case 5:P=_.Z(f.contextProcessors||[]),g=P.next();case 8:if(g.done){bf.jumpTo(4);break}x=
g.value;return _.A(bf,x.processContext(W),9);case 9:g=P.next();bf.jumpTo(8);break;case 4:if((fh=f.localInnertubeRouter)==null||!fh.shouldPreferLocalResponse(R.input,R.innerTubeRequest)){bf.jumpTo(12);break}return _.A(bf,f.localInnertubeRouter.localInnertubeResponse(R.input,R.innerTubeRequest),13);case 13:return V=bf.yieldResult,Ds(f,V,R),bf.return(V);case 12:return(NX=(mP=R.config)==null?void 0:mP.requestKey)&&f.inflightRequests.has(NX)?ZD=f.inflightRequests.get(NX):(jt=JSON.stringify(R.innerTubeRequest),
St=(zq=(Jn=R.requestShell)==null?void 0:Jn.headers)!=null?zq:{},R.requestShell=Object.assign({},R.requestShell,{headers:Object.assign({},St,u)}),Gq=Object.assign({},R.requestShell),R.requestShell.method==="POST"&&(Gq=Object.assign({},Gq,{body:jt})),((LC=R.config)==null?0:LC.requestTick)&&_.JH(R.config.requestTick),wN=function(){return f.networkManager.fetch(R.input,Gq,R.config)},ZD=f.requestSequencer?h_f(f.requestSequencer,R,wN):wN(),NX&&f.inflightRequests.set(NX,ZD)),_.A(bf,ZD,14);
case 14:(GI=bf.yieldResult)&&_.E("web_streaming_player")&&Array.isArray(GI)&&(GI=GI[0].playerResponse);if(GI&&"error"in GI&&((ak=GI)==null?0:(kC=ak.error)==null?0:kC.details))for(Rw=GI.error.details,KC=_.Z(Rw),qe=KC.next();!qe.done;qe=KC.next())LE=qe.value,(k5=LE["@type"])&&fxi.indexOf(k5)>-1&&(delete LE["@type"],GI=LE);NX&&f.inflightRequests.has(NX)&&f.inflightRequests.delete(NX);((yA=R.config)==null?0:yA.responseTick)&&_.JH(R.config.responseTick);if(GI||(HG=f.localInnertubeRouter)==null||!HG.canProvideFallbackResponse(R.input,
R.innerTubeRequest)){bf.jumpTo(15);break}return _.A(bf,f.localInnertubeRouter.localFallbackInnertubeResponse(R.input,R.innerTubeRequest),16);case 16:GI=bf.yieldResult;case 15:return Ds(f,GI,R),((GX=R.config)==null?0:GX.processorTick)&&_.JH(R.config.processorTick),O(),bf.return(GI||void 0)}})};
_.Uz=function(f,R){return RW7(R,f.endpointMap)};
htf=function(f,R){f=Ozn(R,f.endpointMap);if(f!==void 0)return Promise.resolve(f)};
OMA=function(f,R){var u,O,c,h;return _.k(function(l){if(l.nextAddress==1){c=(u=f)==null?void 0:(O=u.authStrategy)==null?void 0:O.sessionIndex;var K=_.ll(ClD({sessionIndex:c}));return _.A(l,K,2)}h=l.yieldResult;return l.return(Promise.resolve(Object.assign({},cc0(R),h)))})};
uoG=function(f,R){var u;f=f==null?void 0:(u=f.authStrategy)==null?void 0:u.sessionIndex;u=ClD({sessionIndex:f});return Object.assign({},cc0(R),u)};var ZMA,lxA,kkE,K3Y,qAC,AvA,w3t,mrA,T5,QPl,W3G,F3I,Eef;ZMA=0;lxA=/tone[1-5]/;kkE=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");K3Y="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
qAC=Number.MAX_SAFE_INTEGER;AvA=RegExp("\ufe0f","g");_.Je=function(f){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;f&&_.axA(this,f)};
_.axA=function(f,R){try{_.qv(R,{context:f,onSuccess:function(O,c){Array.isArray(c)?f.load(c):(O=new _.ts("Emoji manager JSON response was not an array!",{response:c}),_.TL(O))},
onError:function(O){O=new _.ts("Failed to retrieve emoji manager initial JSON data!",{url:R,statusCode:_.hs(O).toString()});_.Ih(O)}})}catch(O){var u=new _.ts("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:R});
_.Ih(u)}};
_.Je.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Je.prototype.load=function(f,R){if(R)if(f.length)f=f.concat(R.emojis);else{this.emojis=R.emojis;this.emojiMap=R.emojiMap;this.emojiShortcutMap=R.emojiShortcutMap;this.emojiShortcutCharMap=F3I(R);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=R.emojiRegex;return}this.emojis=[].concat(_.yq(new Set(this.emojis.concat(f))));this.hasInitializedShortcutCharMap=!1;f=Array(this.emojis.length);for(R=0;R<this.emojis.length;R++){var u=this.emojis[R];if(u.emojiId){this.emojiMap[u.emojiId]=u;this.emojiMap[u.emojiId].index=
R;for(var O=0;u.shortcuts&&O<u.shortcuts.length;O++)this.emojiShortcutMap[u.shortcuts[O].toLocaleLowerCase()]=u;f[R]=u.isCustomEmoji&&u.shortcuts?u.shortcuts[0]:u.emojiId}}f.sort(function(c,h){return h.length-c.length});
if(f.length)try{this.emojiRegex=new RegExp(f.join("|").replace("*","\\*"),"gi")}catch(c){this.emojiRegex=/$./}else this.emojiRegex=/$./};
w3t=function(f,R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){var O=u.value;if(O.emojiId&&f.emojiMap[O.emojiId]){u=Object.assign({},f.emojiMap[O.emojiId],O);f.emojiMap[O.emojiId]=u;var c=void 0;u.index&&((c=f.emojis[u.index])==null?void 0:c.emojiId)===O.emojiId&&(f.emojis[u.index]=u);O=void 0;if((O=u.shortcuts)==null?0:O.length)for(f.hasInitializedShortcutCharMap=!1,O=_.Z(u.shortcuts),c=O.next();!c.done;c=O.next())f.emojiShortcutMap[c.value.toLocaleLowerCase()]=u}}};
mrA=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,_.ti.getInstance(),2);if(O.nextAddress!=3)return(R=O.yieldResult)?_.A(O,R.get("ytlc-emoji-pref"),3):O.return();(u=O.yieldResult)&&w3t(f,Object.keys(u).map(function(c){return{emojiId:c,stickyPrefId:u[c]}}).filter(function(c){return!!c.emojiId&&!!c.stickyPrefId}));
_.KG(O)})};
_.z5=function(f,R,u){return(f=f.emojiMap[R])&&(!f.isLocked||u!==void 0&&u)?f:void 0};
T5=function(f,R,u){u=_.z5(f,R,u===void 0?!1:u);var O=R.match("\u200d");u&&f.skinTone!==0&&(f=(O==null?void 0:O.length)===1?_.z5(f,R.replace("\u200d",kkE[f.skinTone]+"\u200d")):_.z5(f,R+kkE[f.skinTone]))&&(u=f);return u};
QPl=function(f,R){var u=f.emojiMap[R];return(u==null?0:u.stickyPrefId)?f.emojiMap[u.stickyPrefId]:T5(f,R)};
_.wh=function(f,R){f=f.emojiShortcutMap[R.toLocaleLowerCase()];return!f||f.isLocked?null:f};
W3G=function(f,R,u){return F3I(f,u===void 0?!1:u)[R]||{}};
F3I=function(f,R){R=R===void 0?!1:R;if(!f.hasInitializedShortcutCharMap){f.hasInitializedShortcutCharMap=!0;for(var u=0;u<f.emojis.length;u++){var O=f.emojis[u];if(!(O.isLocked||R&&O.isCustomEmoji&&O.emojiId&&!f.pickerCustomEmojiIds.includes(O.emojiId)))for(var c=0;O.shortcuts&&c<O.shortcuts.length;c++){var h=O.shortcuts[c];h.startsWith(":_")&&O.isCustomEmoji&&(f.emojiShortcutCharMap[":_"]==null&&(f.emojiShortcutCharMap[":_"]=Object.create(null)),f.emojiShortcutCharMap[":_"][h]=O);if(!(h.length<3||
!O.isCustomEmoji&&lxA.test(h))){var l=h.substr(0,3).toLocaleLowerCase();f.emojiShortcutCharMap[l]==null&&(f.emojiShortcutCharMap[l]=Object.create(null));f.emojiShortcutCharMap[l][h]=O}}}}return f.emojiShortcutCharMap};
_.Je.prototype.createEmoji=function(f,R){R=R===void 0?!0:R;var u=document.createElement("img");f.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");u.classList.add("yt-formatted-string");u.src=f.image?_.rR(f.image.thumbnails,this.emojiSize)||"":"";var O=void 0;f.image&&f.image.accessibility&&f.image.accessibility.accessibilityData&&(O=f.image.accessibility.accessibilityData.label);u.alt=O?O:(f.isCustomEmoji&&f.shortcuts?f.shortcuts[0]:f.emojiId)||"";f.isCustomEmoji&&(u.dataset.emojiId=
f.emojiId);_.O0&&(u.setAttribute("contenteditable","false"),u.setAttribute("unselectable","on"));R&&(f.shortcuts&&f.shortcuts.length&&u.setAttribute("shared-tooltip-text",f.shortcuts[0]),u.id="emoji-"+ZMA++);return u};
_.Je.prototype.createDocumentFragment=function(f,R,u,O){R=R===void 0?!1:R;u=u===void 0?!0:u;O=O===void 0?!1:O;f=f.replace(AvA,"");for(var c=document.createDocumentFragment(),h=0,l,K=0;(l=this.emojiRegex.exec(f))!=null;){var q=_.z5(this,l[0])||_.wh(this,l[0]);!q||q.isCustomEmoji&&!R||(q=this.createEmoji(q,u),h!==l.index&&c.appendChild(document.createTextNode(f.substring(h,l.index))),c.appendChild(q),h=l.index+l[0].length,K++)}if(!O||K)return c.appendChild(document.createTextNode(f.substr(h))),c};
Eef=function(f,R,u){var O,c,h,l,K,q,F,w,m;return _.k(function(W){if(W.nextAddress==1){if(!R.emojiId||!f.emojiMap[R.emojiId])return W.return();O=Object.assign({},f.emojiMap[R.emojiId],{stickyPrefId:u});f.emojiMap[R.emojiId]=O;R.index&&((c=f.emojis[R.index])==null?void 0:c.emojiId)===R.emojiId&&(f.emojis[R.index]=O);if((h=R.shortcuts)==null?0:h.length)for(f.hasInitializedShortcutCharMap=!1,l=_.Z(R.shortcuts),K=l.next();!K.done;K=l.next())q=K.value,f.emojiShortcutMap[q.toLocaleLowerCase()]=O;return _.A(W,
_.ti.getInstance(),2)}if(W.nextAddress!=4)return(F=W.yieldResult)?_.A(W,F.get("ytlc-emoji-pref"),4):W.jumpTo(0);m=(w=W.yieldResult)!=null?w:{};m[R.emojiId]=u;return _.A(W,F.set("ytlc-emoji-pref",m,qAC),0)})};
_.Hd=new _.Je;var yvl;_.ID={};
yvl={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.E("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:_.E("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 oL(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 f=_.b(this.hostElement||this).querySelector("#inline-action-button-container");f&&f.setAttribute("aria-hidden","true");this.menuButton=_.b(this.hostElement).querySelector("#menu-button")},
attached:function(){var f=this.menuButton;f&&(f.addEventListener("focusin",_.ks(this,this.onMenuButtonFocus_)),f.addEventListener("focusout",_.ks(this,this.onMenuButtonBlur_)))},
detached:function(){var f=this.menuButton;f&&(f.removeEventListener("focusin",_.ks(this,this.onMenuButtonFocus_)),f.removeEventListener("focusout",_.ks(this,this.onMenuButtonBlur_)))},
identity:_.B0,truthy:function(f){return!!f},
computeTimestampString:function(f){return f?f.timestampText?this.getSimpleString(f.timestampText):this.TIME_FORMATTER.format(new Date(f.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(f){return _.E("live_chat_whole_message_clickable")&&f},
computeMenuVisible_:function(f,R){return f||R},
computeHasInlineActionButtons:function(f){if(!f)return!1;var R,u;return!((R=f.inlineActionButtons)==null||!R.length)||!((u=f.additionalInlineActionButtons)==null||!u.length)},
createDocumentFragmentFromString:function(f){var R=_.Hd.createDocumentFragment.bind(_.Hd),u;if((u=this.participantsManager)==null||!u.viewerRegex)return R(f);u=document.createDocumentFragment();for(var O=0,c;(c=this.participantsManager.viewerRegex.exec(f))!=null;){if(c.index>0){var h=":"+c[0]+":";if((_.z5(_.Hd,h)||_.wh(_.Hd,h))&&f.indexOf(h)===c.index-1)continue}u.appendChild(R(f.substring(O,c.index)));O=document.createElement("span");O.appendChild(R(c[0]));O.classList.add("mention");u.appendChild(O);
O=c.index+c[0].length}u.appendChild(R(f.substring(O)));return u},
createDocumentFragment:function(f){var R=document.createDocumentFragment();if(f.simpleText)return R.appendChild(this.createDocumentFragmentFromString(f.simpleText)),R;if(!f.runs)return R;for(var u=0;u<f.runs.length;u++){var O=f.runs[u];if(O.emoji)R.appendChild(_.Hd.createEmoji(O.emoji));else if(O.text)if(O.navigationEndpoint){var c=document.createElement("a");c.classList.add("yt-simple-endpoint");BRX(c,O.navigationEndpoint);_.b(c).appendChild(this.createDocumentFragmentFromString(O.text));R.appendChild(c)}else R.appendChild(this.createDocumentFragmentFromString(O.text))}return R},
hasModerationOverlayVisible:function(){var f;return((f=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:f.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(f){f.composedPath().some(function(R){return(R=R instanceof Element?R:null)?R.tagName&&(R.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||R.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.E("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(f)},
colorFromDecimal:function(f){return $Y2(f)},
markAsDeleted:function(f,R){this.set("data.deletedStateMessage",f);this.set("data.showOriginalContentMessage",R)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(f){if(this.data.contextMenuEndpoint){var R=_.vh().resolve(_.DM),u=this.data.contextMenuEndpoint,O;(O=_.PM.instance)&&_.Uz(O,u)?(R=tLf(R,u),O=_.Dn(O,{},R)):O=_.CpF(R,u);O.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);f&&f.stopPropagation()}},
handleGetContextMenuResponse_:function(f){var R=_.PM.instance;R&&_.Uz(R,{liveChatEndpoint:{}})||(f=f.response);f.liveChatItemContextMenuSupportedRenderers&&f.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(f.liveChatItemContextMenuSupportedRenderers.menuRenderer);f.actions&&_.OJ(this.hostElement,"yt-live-chat-actions",[f.actions])},
handleGetContextMenuError:function(f){if(f instanceof Error||f instanceof Object||f instanceof String)var R=f;_.TL(new _.ts("Error encountered calling GetLiveChatItemContextMenu",R))},
showContextMenu_:function(f){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:f}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.ul(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.ul(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.ID.YtLiveChatItemBehavior=[yvl,_.M7.YtComponentBehavior,_.Ae.YtOpenPopupBehavior];_.MA=function(){};var drF;var NVk;var L3f;var bMH;var Pd=function(){var f=_.U.apply(this,arguments)||this;f.active=!1;f.identity=_.B0;return f};
_.y(Pd,_.U);Pd.prototype.dataChanged=function(){this.active=!1};
Pd.prototype.onClick=function(){_.ul(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Pd.prototype.dataChanged=Pd.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],Pd.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Pd.prototype,"active",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Pd.prototype,"dataChanged",null);Pd=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Pd);
_.G(Pd,"yt-live-chat-text-input-field-suggestion",function(){if(bMH===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;L3f===void 0&&(L3f=document.createElement("template"));var O=L3f;u.call(R,O.content.cloneNode(!0),f.content.firstChild);bMH=f}f=bMH;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});_.Uc=function(f,R,u){return CustomEvent.call(this,f,{detail:{value:R,path:u}})||this};
_.y(_.Uc,CustomEvent);_.e$=function(){var f=_.U.apply(this,arguments)||this;f.viewerName=null;f.actionMap={"yt-live-chat-actions":"onChatMessage_"};f.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];f.PARTICIPANT_TIME_USEC_=3E8;return f};
_.y(_.e$,_.U);_.X=_.e$.prototype;_.X.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.X.addParticipant=function(f){var R=_.CBP(this.participants,f,function(O,c){O=O[Object.keys(O)[0]];c=c[Object.keys(c)[0]];O=String(_.$Z(O.authorName)).toLowerCase();c=String(_.$Z(c.authorName)).toLowerCase();return O<c?-1:O==c?0:1}.bind(this));
if(R>=0){var u=this.participants[R];u[Object.keys(u)[0]].timestampUsec&&this.splice("participants",R,1,f)}else this.splice("participants",-R-1,0,f);f=f[Object.keys(f)[0]];R=_.$Z(f.authorName).toLocaleLowerCase();u=R.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(u)||(this.allParticipantsCharMap_[u]={});this.allParticipantsCharMap_[u][R]=f};
_.X.getAuthorsFromPrefix=function(f){return this.allParticipantsCharMap_.hasOwnProperty(f)?this.allParticipantsCharMap_[f]:null};
_.X.computeViewerRegex_=function(f){if(!f)return null;f=f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var R=f.indexOf("@")===0&&_.E("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(R+f.replace(/ /g,"\\s*")+"|^"+f.replace(/ /g,"\\s*")+"$|^"+f.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+f.replace(/ /g,"\\s*")+"$|(?<=\\s)"+f.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.X.checkForStaleParticipants_=function(){var f=this;this.trimOldParticipants_();this.asyncHandle_&&WmP(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.P2(function(){f.checkForStaleParticipants_()},3E4))};
_.X.onChatMessage_=function(f){var R=this,u=Date.now()*1E3;f.forEach(function(O){if(O=_.t(O,eJi)){O=O.item;var c=Object.keys(O)[0];R.SUPPORTED_ITEM_TYPES_.indexOf(c)!=-1&&O[c].timestampUsec>=u-R.PARTICIPANT_TIME_USEC_&&R.addParticipant(O)}},this);
this.checkForStaleParticipants_()};
_.X.trimOldParticipants_=function(){for(var f=Date.now()*1E3,R=this.participants.length-1;R>=0;R--){var u=this.participants[R];u=u[Object.keys(u)[0]];u.timestampUsec&&u.timestampUsec<f-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",R,1)}};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],_.e$.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],_.e$.prototype,"viewerName",void 0);_.B([_.I({computed:"computeViewerRegex_(viewerName)"}),_.S("design:type",Object)],_.e$.prototype,"viewerRegex",void 0);_.B([_.I({value:function(){return[]},
notify:!0}),_.S("design:type",Array)],_.e$.prototype,"participants",void 0);_.e$=_.B([_.DO({is:"yt-live-chat-participants-manager",noInjection:!0})],_.e$);var p3F=/.*([:@#].*?)$/,G5=/\u00a0/g,jPk=String.fromCharCode(160),DrG={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"},Bd=function(){var f=_.U.apply(this,arguments)||this;f.disabled=!1;f.liveChatRichMessageInput=null;f.messageInput=null;f.isValidWithNoInputText=!1;f.suggestions=[];f.emojiManager=_.Hd;f.inputMethodEditorActive=
!1;f.suggestionIndex=-1;f.JSC$11989_lastSuggestionRange=null;return f};
_.y(Bd,_.U);_.X=Bd.prototype;_.X.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.X.attached=function(){_.co&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.X.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.X.dataChanged=function(){if(!this.ignoreColorMapping){var f=!1,R={},u;for(u in DrG)this.data&&this.data.hasOwnProperty(u)&&(R[DrG[u]]=this.colorFromDecimal(this.data[u]),f=!0);f&&_.ZO(this.hostElement,R)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.X.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.X.colorFromDecimal=function(f){f=Math.floor(Number(f));return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
_.X.preventDrag=function(f){f.dataTransfer&&(f.dataTransfer.dropEffect="none");f.preventDefault()};
_.X.preventResize=function(f){f.returnValue=!1};
_.X.onInputChange=function(){var f=this.characterCount,R=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&R&&R.remove();if(!R&&this.characterCount>this.maxCharacterLimit){var u=window.getSelection();if(u){var O=u.getRangeAt(0);u.removeAllRanges();u.addRange(O)}}if(u=this.getCurrentRange())O=this.calculateTextBeforeRange(u),this.completeEmojisInRange(u,O,!0)||this.updateSuggestions(u,O);O=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(O);
_.ul(this.hostElement,"yt-live-chat-message-input-change",O);R&&this.characterCount===0&&R.remove();u&&u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>f):u&&!u.collapsed&&u.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(f=this.input.childNodes.length-1;f>=0;f--)this.input.childNodes[f].nodeName==="BR"&&this.input.childNodes[f].remove()};
_.X.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.X.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var f=this.getCurrentRange();f&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.X.mergeOverflowText=function(f){if(f){var R=document.createRange();R.selectNodeContents(f);R=R.extractContents();this.input.insertBefore(R,f)}};
_.X.checkRangeAtEndOfInput=function(){var f=this.getCurrentRange();if(f){var R=_.b(this.hostElement).querySelector("#overflow-text"),u=document.createRange();R&&R.previousSibling?R.previousSibling instanceof HTMLImageElement?u.selectNode(R.previousSibling):u.selectNodeContents(R.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(f.startContainer,
f.startOffset)}return!1};
_.X.handleOverflowText=function(f){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var R=_.b(this.hostElement).querySelector("#overflow-text"),u=this.getCurrentRange();this.input.normalize();f=this.checkRangeAtEndOfInput()&&f;this.mergeOverflowText(R);for(var O,c=0,h=0,l,K=this.input.childNodes,q=0;q<K.length;q++){var F=K[q];F instanceof Text?(h+=F.textContent.length,h>this.maxCharacterLimit&&(O=F,c=this.maxCharacterLimit+F.textContent.length-h)):F instanceof HTMLImageElement&&
(O=void 0,h=F.dataset.emojiId&&((O=this.data)==null?0:O.emojiCharacterCount)?h+this.data.emojiCharacterCount:h+F.alt.length,O=this.input,c=q);if(h>this.maxCharacterLimit&&O){l=document.createRange();l.collapse(!1);R?(h=this.input.lastChild.previousSibling,h instanceof Text?l.setEnd(this.input.lastChild.previousSibling,h.textContent.length):h instanceof HTMLImageElement&&l.setEnd(this.input,this.input.childNodes.length-1)):l.selectNodeContents(this.input);l.setStart(O,c);break}}l&&(O=!1,u&&(f=l.isPointInRange(u.startContainer,
u.startOffset-1)),R||(R=document.createElement("span"),R.id="overflow-text",R.textContent="",R.setAttribute("contenteditable","true"),_.b(_.b(this.hostElement).querySelector("#input")).appendChild(R),O=!0),R&&(u=l.extractContents(),R.insertBefore(u,R.firstChild),f&&R.firstChild&&(u=document.createRange(),O?u.setStartAfter(R.lastChild):u.setStartAfter(R.firstChild),u.collapse(!0),R=window.getSelection(),R.removeAllRanges(),R.addRange(u))))}};
_.X.checkForDuplicateSpans=function(){for(var f=0;f<this.input.childNodes.length;f++){var R=this.input.childNodes[f];if(R.nodeName==="SPAN"){var u=document.createRange();u.selectNodeContents(R);u=u.extractContents();this.input.insertBefore(u,R);R.remove()}}this.handleOverflowText(!0)};
_.X.getCurrentRange=function(){var f=window.getSelection();return f&&f.rangeCount?f.getRangeAt(0).cloneRange():null};
_.X.getInputRange=function(){var f=this.getCurrentRange();if(f){for(var R=f.commonAncestorContainer,u=!1,O=_.b(this.hostElement).querySelector("#input");R;){if(R===O){u=!0;break}R=R.parentNode}u||(f=null)}f||(f=this.getRangeAtEnd());return f};
_.X.getRangeAtEnd=function(){var f=document.createRange(),R=_.b(this.hostElement).querySelector("#input").lastChild;!R||R.nodeName!=="#text"&&R.nodeName!=="SPAN"?(f.selectNodeContents(_.b(this.hostElement).querySelector("#input")),f.collapse(!1)):R.nodeName==="#text"?f.setStart(R,R.textContent.length):f.setStart(R,R.childNodes.length);return f};
_.X.getChatParticipantSuggestions=function(f,R,u,O){var c=_.E("live_chat_enable_handles_web_text_input_update");if(R)for(var h in R)if(h.indexOf(f)===0||c&&h.indexOf(u+f)===0){var l=R[h],K=_.$Z(l.authorName);O.push({suggestion:{author:!0,authorType:u,image:l.authorPhoto,alt:K,text:K}});if(O.length>=64)break}};
_.X.getSuggestions=function(f){var R=[],u=f.substring(0,3),O=W3G(_.Hd,u,!0);if(O)for(var c in O)if(c.toLocaleLowerCase().indexOf(f)===0){var h=O[c];if(h&&h.emojiId){if(h=QPl(_.Hd,h.emojiId)){var l=void 0,K=void 0,q=void 0,F=void 0,w=((l=h.image)==null?0:(K=l.accessibility)==null?0:(q=K.accessibilityData)==null?0:q.label)||h.isCustomEmoji?(F=h.shortcuts)==null?void 0:F[0]:h.emojiId;R.push({suggestion:{emoji:!0,image:h.image,alt:w,text:c,textToInsertWhenSelected:h.isCustomEmoji?c:w}})}if(R.length>=
64)break}}if(!this.participantsManager)return null;if(u.indexOf("@")===0||u.indexOf("#")===0)O=u.charAt(0),f=f.substring(1),c=_.E("live_chat_enable_handles_web_text_input_update"),u.indexOf("@")===0&&c&&(c=this.participantsManager.getAuthorsFromPrefix(u.substring(0,2)),this.getChatParticipantSuggestions(f,c,O,R)),u=u.substring(1),u=this.participantsManager.getAuthorsFromPrefix(u),this.getChatParticipantSuggestions(f,u,O,R);return R?R.sort(function(m,W){return W.suggestion.text<m.suggestion.text?-1:
W.suggestion.text===m.suggestion.text?0:1}):null};
_.X.insertSuggestion=function(f){var R=_.E("live_chat_enable_handles_web_text_input_update"),u=f.authorType;R=f.text.indexOf(u)===0&&R?f.text+jPk:u+f.text+jPk;f.emoji?this.insertTextAtRange(this.JSC$11989_lastSuggestionRange,f.textToInsertWhenSelected||""):f.author&&this.insertTextAtRange(this.JSC$11989_lastSuggestionRange,R)};
_.X.updateSuggestionsAtCaret=function(){var f=this.getCurrentRange();f&&this.updateSuggestions(f,this.calculateTextBeforeRange(f))};
_.X.offsetStartOfRangeBy=function(f,R){for(;R>0;)if(f.startOffset-R>=0){f.setStart(f.startContainer,f.startOffset-R);break}else{R=f.startContainer instanceof HTMLImageElement?R-f.startContainer.alt.length:R-f.startOffset;var u=f.startContainer.previousSibling;if(!u){f.setStart(f.startContainer,0);break}if(_.E("live_chat_require_space_for_autocomplete_emoji")){var O=void 0,c=void 0;f.setStart(u,((O=u)==null?void 0:(c=O.textContent)==null?void 0:c.length)||0)}else f.setStart(u,u.childNodes.length||
0)}};
_.X.updateSuggestions=function(f,R){var u=this;this.JSC$11989_lastSuggestionRange&&(this.JSC$11989_lastSuggestionRange.detach(),this.JSC$11989_lastSuggestionRange=null);if((R=p3F.exec(R))&&R.length&&(R=R[R.length-1].toLocaleLowerCase(),R.length>2&&(this.offsetStartOfRangeBy(f,R.length),this.JSC$11989_lastSuggestionRange=f,(f=this.getSuggestions(R))&&f.length))){this.suggestions=f;_.su(this,function(){_.b(u.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(f.length-1);return}this.dropdown.opened=!1};
_.X.completeEmojisInRange=function(f,R,u){var O=R.replace(/[\s\xa0]+$/,"");R=R.length-O.length;O=O.split(" ");O=O[O.length-1].trim().toLocaleLowerCase();var c=O.lastIndexOf(":");if(u&&!R&&c!==O.length-1)return!1;c!==-1&&(u=O.lastIndexOf(":",c-1),u!==-1&&(O=O.substring(u)));if((u=_.wh(_.Hd,O))&&u.emojiId){u=QPl(_.Hd,u.emojiId)||null;this.offsetStartOfRangeBy(f,O.length+R);var h,l,K,q;O=(((h=u)==null?0:h.isCustomEmoji)?(l=u)==null?void 0:(K=l.shortcuts)==null?void 0:K[0]:(q=u)==null?void 0:q.emojiId)||
"";R&&(O+=jPk);this.insertTextAtRange(f,O);this.dropdown.opened=!1;return!0}return!1};
_.X.onSuggestion=function(f){this.insertSuggestion(f.detail);this.dropdown.opened=!1};
_.X.onKeyPress=function(f){f.keyCode===13&&(f.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.ul(this.hostElement,"yt-live-chat-send-message"))};
_.X.completeEmojis=function(){var f=document.createRange(),R=_.b(this.hostElement).querySelector("#input").lastChild;R?f.setStart(R,R.childNodes.length):(f.selectNodeContents(_.b(this.hostElement).querySelector("#input")),f.collapse(!1));this.completeEmojisInRange(f,this.calculateTextBeforeRange(f),_.E("live_chat_require_space_for_autocomplete_emoji"))};
_.X.maybePreventTextFormatting=function(f){!_.lH||!f.ctrlKey&&!f.metaKey||f.keyCode!==66&&f.keyCode!==73||(f.stopImmediatePropagation(),f.preventDefault())};
_.X.onKeyDown=function(f){this.maybePreventTextFormatting(f);if(this.dropdown.opened)switch(f.keyCode){case 27:this.dropdown.opened=!1;f.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;f.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);f.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),f.preventDefault()}};
_.X.onKeyUp=function(f){switch(f.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.O0)this.onInputChange()};
_.X.changeSuggestionIndex=function(f){if(this.dropdown.opened){var R=_.b(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<R.children.length&&(R.children[this.suggestionIndex].active=!1);var u=this.suggestions.length;this.suggestionIndex=(f+u)%u;f=R.children[this.suggestionIndex];f.active=!0;R.scrollTop=f.offsetTop}};
_.X.onInputPaste=function(f){f.preventDefault();(f=f.clipboardData)&&f.types&&(f=f.getData("text/plain")||"",f=f.replace(/\n/g,""),this.insertText(f));(f=this.getCurrentRange())&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.X.onFocus=function(){this._setFocused(!0)};
_.X.onBlur=function(){this._setFocused(!1)};
_.X.insertText=function(f){this.insertTextAtRange(this.getInputRange(),f)};
_.X.insertTextAtRange=function(f,R){if(f&&(f.collapsed||f.deleteContents(),R=_.Hd.createDocumentFragment(R,!0,!1))){for(var u=_.Z((R==null?void 0:R.childNodes)||[]),O=u.next();!O.done;O=u.next()){O=O.value;var c=void 0,h=void 0,l=void 0,K=void 0,q=void 0;(l=(c=window)==null?void 0:(h=c.ShadyCSS)==null?void 0:h.ScopingShim)==null||(q=(K=l).scopeNode)==null||q.call(K,O,this.hostElement.localName)}u=R.lastChild;f.insertNode(R);this.focused||this.input.focus();if(this.focused){f=f.cloneRange();f.selectNodeContents(u);
f.collapse(!1);if(R=window.getSelection())R.removeAllRanges(),R.addRange(f);f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);_.ul(this.hostElement,"yt-live-chat-message-input-change",f)}};
_.X.setLiveChatRichMessageInput=function(f){_.b(_.b(this.hostElement).querySelector("#input")).textContent="";if(f&&f.textSegments){for(var R=0;R<f.textSegments.length;R++){var u=f.textSegments[R];u.text?_.b(_.b(this.hostElement).querySelector("#input")).appendChild(_.Hd.createDocumentFragment(u.text,!0,!1)):u.emojiId&&(u=_.z5(_.Hd,u.emojiId))&&_.b(_.b(this.hostElement).querySelector("#input")).appendChild(_.Hd.createEmoji(u,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.X.setText=function(f){this.setLiveChatRichMessageInput(f?{textSegments:[{text:f}]}:null)};
_.X.calculateTextBeforeRange=function(f){var R="",u=f.startContainer;if(u&&u instanceof Text){var O;R=((O=u.textContent)==null?void 0:O.substring(0,f.startOffset))||"";u=u.previousSibling}for(;u&&u instanceof Text;)R=u.textContent+R,u=u.previousSibling;return R.replace(G5," ")};
_.X.calculateLiveChatRichMessageInput=function(){for(var f=[],R="",u=_.b(_.b(this.hostElement).querySelector("#input")).childNodes,O=0;O<u.length;O++){var c=u[O];c instanceof Text?R+=c.textContent:c instanceof HTMLImageElement&&(c.dataset.emojiId?(R&&(f.push({text:R.replace(G5," ")}),R=""),f.push({emojiId:c.dataset.emojiId})):R+=c.alt)}R&&f.push({text:R.replace(G5," ")});if(u=_.b(this.hostElement).querySelector("#overflow-text")){R="";u=u.childNodes;for(O=0;O<u.length;O++)c=u[O],c instanceof Text?
R+=c.textContent:c instanceof HTMLImageElement&&(c.dataset.emojiId?(R&&(f.push({text:R.replace(G5," ")}),R=""),f.push({emojiId:c.dataset.emojiId})):R+=c.alt);R&&f.push({text:R.replace(G5," ")})}return{textSegments:f}};
_.X.computeCharacterCount=function(f){if(!f||!f.textSegments)return 0;for(var R=0,u=0;u<f.textSegments.length;u++){var O=f.textSegments[u];if(O.text)R+=O.text.length;else if(O.emojiId){var c=void 0;if((c=this.data)==null?0:c.emojiCharacterCount)R+=this.data.emojiCharacterCount;else{var h=c=void 0,l=void 0;R+=((h=_.z5(_.Hd,(c=O)==null?void 0:c.emojiId))==null?void 0:(l=h.shortcuts)==null?void 0:l[0].length)||0}}}return R};
_.X.characterCountChanged=function(){_.ul(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.X.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Uc("focused-changed",this.focused))};
_.X.focus=function(){this.setFocus(!1)};
_.X.focusAtEnd=function(){this.setFocus(!0)};
_.X.setFocus=function(f){f=f?this.getRangeAtEnd():this.getInputRange();_.b(this.hostElement).querySelector("#input").focus();var R=window.getSelection();R&&(R.removeAllRanges(),R.addRange(f))};
_.X.insertEmoji=function(f){var R,u=((f==null?0:f.isCustomEmoji)?(R=f.shortcuts)==null?void 0:R[0]:f==null?void 0:f.emojiId)||"";this.insertText(u)};
_.X.computeText=function(f){if(!f||!f.textSegments)return"";for(var R="",u=0;u<f.textSegments.length;u++){var O=f.textSegments[u];if(O.text)R+=O.text;else if(O.emojiId){var c=void 0,h=void 0,l=void 0;R+=((h=_.z5(_.Hd,(c=O)==null?void 0:c.emojiId))==null?void 0:(l=h.shortcuts)==null?void 0:l[0])||""}}return R};
_.X.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Vy.Object.defineProperties(Bd.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
Bd.prototype.focusedChanged=Bd.prototype.focusedChanged;Bd.prototype.characterCountChanged=Bd.prototype.characterCountChanged;Bd.prototype.onSuggestion=Bd.prototype.onSuggestion;Bd.prototype.onMessageSet=Bd.prototype.onMessageSet;Bd.prototype.dataChanged=Bd.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Bd.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Bd.prototype,"disabled",void 0);_.B([_.T("disabled"),_.S("design:type",Number),_.S("design:paramtypes",[])],Bd.prototype,"inputTabIndex",null);_.B([_.T("data.maxCharacterLimit"),_.I({readOnly:!0,notify:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],Bd.prototype,"maxCharacterLimit",null);
_.B([_.T("liveChatRichMessageInput"),_.I({readOnly:!0,notify:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],Bd.prototype,"characterCount",null);_.B([_.T("maxCharacterLimit, characterCount"),_.I({readOnly:!0,notify:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],Bd.prototype,"remainingCharacterCount",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bd.prototype,"isChatMessageInput",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bd.prototype,"inputExpanded",void 0);_.B([_.I({readOnly:!0,notify:!0}),_.S("design:type",Object)],Bd.prototype,"liveChatRichMessageInput",void 0);_.B([_.I(),_.S("design:type",Object)],Bd.prototype,"messageInput",void 0);_.B([_.I(),_.S("design:type",Boolean)],Bd.prototype,"ignoreColorMapping",void 0);_.B([_.T("characterCount"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Bd.prototype,"hasText",null);
_.B([_.I(),_.S("design:type",Object)],Bd.prototype,"isValidWithNoInputText",void 0);_.B([_.T("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.I(),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Bd.prototype,"isInputValid",null);_.B([_.I({readOnly:!0,value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Bd.prototype,"focused",void 0);_.B([_.I(),_.S("design:type",Array)],Bd.prototype,"suggestions",void 0);
_.B([_.I(),_.S("design:type",_.Je)],Bd.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",_.e$)],Bd.prototype,"participantsManager",void 0);_.B([_.I(),_.S("design:type",Boolean)],Bd.prototype,"noUnderline",void 0);_.B([_.I(),_.S("design:type",Object)],Bd.prototype,"inputMethodEditorActive",void 0);_.B([_.a4("#dropdown"),_.S("design:type",Object)],Bd.prototype,"dropdown",void 0);_.B([_.a4("#input"),_.S("design:type",HTMLElement)],Bd.prototype,"input",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bd.prototype,"dataChanged",null);_.B([_.qM("messageInput"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bd.prototype,"onMessageSet",null);_.B([_.Kf("yt-live-chat-select-suggestion"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bd.prototype,"onSuggestion",null);
_.B([_.qM("characterCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bd.prototype,"characterCountChanged",null);_.B([_.qM("focused"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bd.prototype,"focusedChanged",null);Bd=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Bd);
_.JvG=_.G(Bd,"yt-live-chat-text-input-field-renderer",function(){if(NVk===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;drF===void 0&&(drF=document.createElement("template"));var O=drF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);NVk=f}f=NVk;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var oD=function(){var f=_.U.apply(this,arguments)||this;f.buttonOverrides={style:"overlay",type:"filled"};f.allowAnimations=!1;f.modern=_.E("web_button_rework_with_live");f.noPadding=!1;return f};
_.y(oD,_.U);_.X=oD.prototype;_.X.shouldSupportInlineActionButtons=function(){return!0};
_.X.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"}}}}};
_.X.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.X.attached=function(){this.allowAnimations=!1};
_.X.dataChanged=function(){if(this.data){var f={"--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)};_.ZO(this.hostElement,f);this.allowAnimations=!0}};
_.X.messageChanged=function(){var f,R=(f=this.data)==null?void 0:f.message;f=_.b(_.b(this.hostElement).querySelector("#message"));f.textContent="";R&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R))};
_.X.computeShowOnlyHeader=function(f,R){return!f||f.pdgLikeButton||f.replyButton||f.buyFlowButton?!1:this.isEmpty(f,R)&&!f.footer};
_.X.computeShowFooterDivider=function(f,R,u){return f?!!f.footer&&!this.isEmpty(f,R)&&!u:!1};
_.X.computeIsUserEditable=function(f){return!!f.inputField};
_.X.computeHasHeartButton=function(f){return(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.X.computeNoveltyImage=function(f){if(f.headerOverlayImage&&f.headerOverlayImage.thumbnails.length){var R=f.headerOverlayImage.thumbnails[0],u,O;if((u=f.pdgPurchasedNoveltyLoggingDirectives)==null?0:(O=u.loggingDirectives)==null?0:O.trackingParams){var c,h;DVX((c=f.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(h=c.loggingDirectives)==null?void 0:h.trackingParams)}return R.width||0}return 0};
_.X.computeAuthorPhotoSize=function(f){return(f==null?0:f.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.X.inputFocus=function(){var f=_.b(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");f&&f.focus()};
_.X.inputInsertEmoji=function(f){var R=_.b(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");R&&R.insertEmoji(f)};
_.X.inputMessage=function(){var f=_.b(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),R;return f&&((R=this.data)==null?0:R.inputField)?(f.completeEmojis(),_.HM(f.liveChatRichMessageInput)):null};
_.X.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.X.isEmpty=function(f,R){return f?f.empty||!(f.message||f.inputField||R):!0};
_.X.onLowerBuyButtonClick=function(){var f,R=_.t((f=this.data)==null?void 0:f.buyButton,_.z9);R&&R.trackingParams&&!soq(R.command)&&(f=_.t4(R.trackingParams))&&(R=_.z4())&&_.Sa(R,f)};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.Vy.Object.defineProperties(oD.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
oD.prototype.isDeletedChanged=oD.prototype.isDeletedChanged;oD.prototype.messageChanged=oD.prototype.messageChanged;oD.prototype.dataChanged=oD.prototype.dataChanged;_.B([_.z(KIk.YtPdgLiveChatItemBehavior),_.S("design:type",Object)],oD.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],oD.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],oD.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],oD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oD.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:pu2}),_.S("design:type",Object)],oD.prototype,"engagementState",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.S("design:type",Boolean)],oD.prototype,"isUserEditable",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.S("design:type",Boolean)],oD.prototype,"hasHeartButton",void 0);_.B([_.I({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.S("design:type",Boolean)],oD.prototype,"showOnlyHeader",void 0);
_.B([_.I({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.S("design:type",Boolean)],oD.prototype,"showFooterDivider",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Object)],oD.prototype,"allowAnimations",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],oD.prototype,"dashboardMoneyFeed",void 0);_.B([_.I({computed:"computeNoveltyImage(data)"}),_.S("design:type",Number)],oD.prototype,"noveltyWidth",void 0);
_.B([_.I({computed:"computeAuthorPhotoSize(data)"}),_.S("design:type",Number)],oD.prototype,"authorPhotoSize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],oD.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],oD.prototype,"noPadding",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oD.prototype,"dataChanged",null);
_.B([_.qM("data.message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oD.prototype,"messageChanged",null);_.B([_.T("data","dashboardMoneyFeed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oD.prototype,"hideLowerBumper",null);_.B([_.qM("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oD.prototype,"isDeletedChanged",null);
oD=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],oD);
_.G(oD,"yt-live-chat-paid-message-renderer",function(){if(BiH===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;GsY===void 0&&(GsY=document.createElement("template"));var O=GsY;u.call(R,O.content.cloneNode(!0),f.content.firstChild);BiH=f}f=BiH;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var z_C;var TVi;var xl=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;return f};
_.y(xl,_.w_);xl.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Tf("openPopupConfig")};
_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],xl.prototype,"ytOpenPopupBehavior",void 0);xl=_.B([_.mt()],xl);_.S$=[_.Ae.YtOpenPopupBehavior,xl.prototype];var HMC;var oX=[_.wY,p9f,_.ji,_.m6,_.$7,_.evC,_.Ey,_.gwY,_.DS,NXn];_.E("web_watch_get_updated_metadata_response_processing")&&oX.push(_.FJE);_.E("web_continuation_response_processing")&&oX.push(_.Tw);var Z$n=new _.Vi("RESPONSE_RECEIVED_COMMANDS"),tJP=new _.Vi("RESPONSE_RECEIVED_COMMANDS");var aT5="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Ac0=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],qSe=["GET_UNSEEN_NOTIFICATION_COUNT"];var $l=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;f.serviceEndpointHandlers=[];return f};
_.y($l,_.w_);$l.prototype.created=function(){var f=this;this.endpointHandlerActionMap={"yt-service-request":function(R,u,O,c){var h;return KTX(f.hostElement,R,u,O,c,f.serviceEndpointHandlers,(h=f.onEntitiesUpdated)==null?void 0:h.bind(f))}}};
$l.prototype.attached=function(){_.SV(_.xN.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
$l.prototype.detached=function(){_.$N(_.xN.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
$l=_.B([_.mt()],$l);_.IxC=[$l.prototype];var MLI,Ppk=function(){return MLI!==void 0?MLI:MLI=document.createElement("template")};
document.head.appendChild(Ppk().content);var UrE;var e_E=document.head,Gkt=e_E.appendChild,BVY;if(UrE===void 0){var oeC=document.createElement("template");_.N(oeC,"\x3c!--css-build:shady--\x3e");oeC.content.insertBefore(Ppk().content.cloneNode(!0),oeC.content.firstChild);UrE=oeC}BVY=UrE;Gkt.call(e_E,BVY.content);var xrC,SAk=function(){return xrC!==void 0?xrC:xrC=document.createElement("template")};
document.head.appendChild(SAk().content);var $rF;var gei=document.head,sPC=gei.appendChild,nel;if($rF===void 0){var VLF=document.createElement("template");_.N(VLF,"\x3c!--css-build:shady--\x3e");VLF.content.insertBefore(SAk().content.cloneNode(!0),VLF.content.firstChild);$rF=VLF}nel=$rF;sPC.call(gei,nel.content);var YAk;_.j6("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.j6("sharingRendererButtons","buttonRenderer","ytd-button-renderer");YAk=_.E("web_button_rework")&&_.Hh("BUTTON_REWORK")||_.E("web_button_rework_with_live");_.g2=function(){var f=_.U.apply(this,arguments)||this;f.isPressed=!1;f.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return f};
_.y(_.g2,_.U);_.X=_.g2.prototype;_.X.created=function(){this.showTooltips=!0};
_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.onHintIdChanged=function(){var f=this,R,u,O=(R=this.ytButtonBehavior.data)==null?void 0:(u=R.hint)==null?void 0:u.hintRenderer;if(O&&O.hintId){R=_.c_(this.hostElement,"yt-get-opened-popups-action");R=(R&&R.length===1?R[0]:[]).length>0;var c=null;O.hintId!=="sponsor-pre-purchase"||R?O.hintId.startsWith("sponsor-post-purchase")&&!R?c=LpA("membership-manage"):O.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!R&&(c=LpA("membership-freebie-join")):c=LpA("membership-join");c&&_.JA.addLowPriorityJob(function(){for(var h=
_.Z(c),l=h.next();!l.done;l=h.next())f.ytComponentBehavior.resolveCommand(l.value)})}};
_.X.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.X.onYtNavigate=function(f){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);R&&(f.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(R))};
_.X.onYtServiceRequestSent=function(f,R){this.handleServiceRequestActions(R);_.ul(this.hostElement,"yt-service-request-sent-button-renderer")};
_.X.onServiceRequestCompleted=function(f,R){this.handleServiceRequestActions(R);_.ul(this.hostElement,"yt-service-request-completed-button-renderer")};
_.X.updateButton=function(f){var R;if(f=(R=_.t(f,kRl))==null?void 0:R.updatedButton)this.ytButtonBehavior.data=_.t(f,_.z9)};
_.X.handleUpdateButtonAction=function(f){var R=this.ytButtonBehavior.data;R.targetId&&f.updateButtonAction.targetId&&R.targetId===f.updateButtonAction.targetId&&this.updateButton(f)};
_.X.handleServiceRequestActions=function(f){if(f=f.actions)for(var R=0;R<f.length;R++)this.updateButton(f[R])};
_.Vy.Object.defineProperties(_.g2,{template:{configurable:!0,enumerable:!0,get:function(){if(HMC===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);HMC=f}f=HMC;return f}}});
_.g2.prototype.onServiceRequestCompleted=_.g2.prototype.onServiceRequestCompleted;_.g2.prototype.onYtServiceRequestSent=_.g2.prototype.onYtServiceRequestSent;_.g2.prototype.onYtNavigate=_.g2.prototype.onYtNavigate;_.g2.prototype.onPressedStateChanged=_.g2.prototype.onPressedStateChanged;_.g2.prototype.onHintIdChanged=_.g2.prototype.onHintIdChanged;_.B([_.I(),_.S("design:type",Object)],_.g2.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],_.g2.prototype,"isPressed",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],_.g2.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.ZAi.YtButtonBehavior),_.S("design:type",Object)],_.g2.prototype,"ytButtonBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],_.g2.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],_.g2.prototype,"ytComponentBehavior",void 0);
_.B([_.z(Qj.YtRenderButtonBehavior),_.S("design:type",Object)],_.g2.prototype,"ytRenderButtonBehavior",void 0);_.B([_.qM("data.hint.hintRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],_.g2.prototype,"onHintIdChanged",null);_.B([_.qM("isPressed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],_.g2.prototype,"onPressedStateChanged",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],_.g2.prototype,"onYtNavigate",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],_.g2.prototype,"onYtServiceRequestSent",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],_.g2.prototype,"onServiceRequestCompleted",null);_.g2=_.B([_.e({is:"ytd-button-renderer",disableElementRegistration:YAk})],_.g2);var sc=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.y(sc,_.U);_.X=sc.prototype;_.X.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"}}}}};
_.X.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.X.dataChanged=function(){if(this.data&&this.data.sticker){var f=_.rR(this.data.sticker.thumbnails,this.stickerWidth);f||_.pvX(f).thenCatch(function(){_.Ih(new _.ts("Failed to load Super Sticker with url",f))})}};
_.X.computeAuthorPhotoSize=function(f){return(f==null?0:f.isV2Style)?32:40};
_.X.computeIsV2Style=function(f){return(f==null?0:f.isV2Style)?!0:!1};
_.X.onStickerLoaded=function(f){var R,u,O;(R=_.gY(f))==null||(u=R.parentNode)==null||(O=u.classList)==null||O.add("sticker-loaded")};
_.X.computeNoveltyImageWidth=function(f){var R,u;if(f==null?0:(R=f.headerOverlayImage)==null?0:(u=R.thumbnails)==null?0:u.length){R=f.headerOverlayImage.thumbnails[0];var O,c;if((O=f.pdgPurchasedNoveltyLoggingDirectives)==null?0:(c=O.loggingDirectives)==null?0:c.trackingParams){var h,l;DVX((h=f.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(l=h.loggingDirectives)==null?void 0:l.trackingParams)}return R.width||0}return 0};
_.X.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.X.updateStickerStyles=function(){var f=this.data;f&&(f={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.authorNameTextColor)},
_.ZO(this.hostElement,f))};
_.X.onBuyButtonClick=function(){var f,R=_.t((f=this.data)==null?void 0:f.buyButton,_.z9);R&&!soq(R.command)&&this.ytRendererBehavior.logExplicitClick(R)};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.Vy.Object.defineProperties(sc.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 f;return((f=this.data)==null?0:f.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
sc.prototype.updateStickerStyles=sc.prototype.updateStickerStyles;sc.prototype.isDeletedChanged=sc.prototype.isDeletedChanged;sc.prototype.onStickerLoaded=sc.prototype.onStickerLoaded;sc.prototype.dataChanged=sc.prototype.dataChanged;_.B([_.z(KIk.YtPdgLiveChatItemBehavior),_.S("design:type",Object)],sc.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],sc.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],sc.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sc.prototype,"data",void 0);
_.B([_.I({computed:"computeAuthorPhotoSize(data)"}),_.S("design:type",Number)],sc.prototype,"authorPhotoSize",void 0);_.B([_.I(),_.S("design:type",Boolean)],sc.prototype,"isDeleted",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],sc.prototype,"dashboardMoneyFeed",void 0);_.B([_.I({computed:"computeNoveltyImageWidth(data)"}),_.S("design:type",Number)],sc.prototype,"noveltyWidth",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sc.prototype,"modern",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.S("design:type",Boolean)],sc.prototype,"isV2Style",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sc.prototype,"dataChanged",null);_.B([_.Kf("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],sc.prototype,"onStickerLoaded",null);
_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],sc.prototype,"stickerWidth",null);_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],sc.prototype,"stickerHeight",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sc.prototype,"hasHeartButton",null);_.B([_.T("data","dashboardMoneyFeed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sc.prototype,"hideLowerBumper",null);
_.B([_.qM("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sc.prototype,"isDeletedChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sc.prototype,"updateStickerStyles",null);sc=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],sc);
_.G(sc,"yt-live-chat-paid-sticker-renderer",function(){if(TVi===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;z_C===void 0&&(z_C=document.createElement("template"));var O=z_C;u.call(R,O.content.cloneNode(!0),f.content.firstChild);TVi=f}f=TVi;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vet;var iMf;var rvi,fcC=function(){return rvi!==void 0?rvi:rvi=document.createElement("template")};
document.head.appendChild(fcC().content);var RCY,ubf=function(){return RCY!==void 0?RCY:RCY=document.createElement("template")};
document.head.appendChild(ubf().content);var O1f;var cBt,XwY=function(){return cBt!==void 0?cBt:cBt=document.createElement("template")};
document.head.appendChild(XwY().content);var hCf;var Z1A=document.head,lcH=Z1A.appendChild,kZA;if(hCf===void 0){var Kek=document.createElement("template");_.N(Kek,"\x3c!--css-build:shady--\x3e");Kek.content.insertBefore(XwY().content.cloneNode(!0),Kek.content.firstChild);hCf=Kek}kZA=hCf;lcH.call(Z1A,kZA.content);var q6f=document.head,ABI=q6f.appendChild,ack;if(O1f===void 0){var nq=document.createElement("template");_.N(nq,"\x3c!--css-build:shady--\x3e");nq.content.insertBefore(ubf().content.cloneNode(!0),nq.content.firstChild);nq.content.insertBefore(fcC().content.cloneNode(!0),nq.content.firstChild);O1f=nq}ack=O1f;ABI.call(q6f,ack.content);var Vj=function(){var f=_.w_.apply(this,arguments)||this;f.focusedIndex=0;f.verticalOffset=0;f.verticalAlign="top";f.dynamicAlign=!0;return f};
_.y(Vj,_.w_);Vj.prototype.emojiUrl=function(f){f=_.z5(this.emojiManager,f);if(!f)return"";var R;f=(R=f.image)==null?void 0:R.thumbnails;return _.rR(f,24)||""};
var Fef=function(f){var R;f.emojiVariants&&(R=f.data)!=null&&R.target&&_.su(f,function(){f.set("verticalOffset",-1*f.hostElement.clientHeight);var u=_.b(f.hostElement).querySelector("img");u&&u.focus()})};
_.X=Vj.prototype;_.X.onKeyboardEnter=function(){};
_.X.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.X.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.X.onKeyDown=function(f){switch(f.keyCode){case 13:this.onKeyboardEnter();f.preventDefault();break;case 40:this.changeFocus(1);f.preventDefault();break;case 38:this.changeFocus(-1);f.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.X.onYtEmojiSelect=function(f){var R=this,u,O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1)return O=(u=R.data)==null?void 0:u.emoji,l=((c=O)==null?void 0:c.stickyPrefId)||((h=O)==null?void 0:h.emojiId),q=(K=f.detail)==null?void 0:K.emojiId,l&&q&&l!==q?_.A(w,(F=R.emojiManager)==null?void 0:Eef(F,O,q),2):w.return();_.OJ(R.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[O,q]);_.KG(w)})};
_.X.changeFocus=function(f){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+f+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(f=_.b(this.hostElement).querySelector("#variants"))&&f.children[this.focusedIndex].focus())};
_.Vy.Object.defineProperties(Vj.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Vj.prototype.onYtEmojiSelect=Vj.prototype.onYtEmojiSelect;Vj.prototype.onKeyDown=Vj.prototype.onKeyDown;Vj.prototype.onEmojiVariantsChanged=Vj.prototype.onEmojiVariantsChanged;Vj.prototype.onVerticalOffsetOrPositionTargetChanged=Vj.prototype.onVerticalOffsetOrPositionTargetChanged;_.B([_.z(_.Bm),_.S("design:type",Object)],Vj.prototype,"ironOverlayBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Vj.prototype,"data",void 0);_.B([_.I(),_.S("design:type",_.Je)],Vj.prototype,"emojiManager",void 0);
_.B([_.I(),_.S("design:type",Object)],Vj.prototype,"emojiVariants",void 0);_.B([_.I(),_.S("design:type",Object)],Vj.prototype,"focusedIndex",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vj.prototype,"positionTarget",null);_.B([_.I({reflectToAttribute:!0}),_.T("verticalOffset","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Vj.prototype,"isPositioned",null);_.B([_.I(),_.S("design:type",Object)],Vj.prototype,"verticalOffset",void 0);
_.B([_.I(),_.S("design:type",Object)],Vj.prototype,"verticalAlign",void 0);_.B([_.I(),_.S("design:type",Object)],Vj.prototype,"dynamicAlign",void 0);_.B([_.qM("verticalOffset","positionTarget"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vj.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.B([_.qM("emojiVariants"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vj.prototype,"onEmojiVariantsChanged",null);
_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],Vj.prototype,"onKeyDown",null);_.B([_.Kf("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype",Promise)],Vj.prototype,"onYtEmojiSelect",null);Vj=_.B([_.mt()],Vj);var wwl=[Vj.prototype];var mNH;var QuA;var Wek=/medium-light|medium-dark|light|medium|dark/,EJF=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,tZF=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Yl=function(){var f=_.U.apply(this,arguments)||this;f.userSelection={left:null,right:null};f.scrollAction="lock";f.isEmojiDraftInProgress=!1;return f};
_.y(Yl,_.U);_.X=Yl.prototype;_.X.onClick=function(f){f=_.gY(f);f instanceof HTMLImageElement&&this.selectOrUpdateEmoji(f)};
_.X.selectOrUpdateEmoji=function(f){var R=f.getAttribute("selection");R&&(R==="default"?_.ul(this.hostElement,"yt-emoji-select",_.z5(this.emojiManager,f.id)):R==="left"?this.userSelection=Object.assign({},this.userSelection,{left:f.src}):R==="right"?this.userSelection=Object.assign({},this.userSelection,{right:f.src}):R==="user"&&this.userSelection.left&&this.userSelection.right&&_.ul(this.hostElement,"yt-emoji-select",_.z5(this.emojiManager,f.id)))};
_.X.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.X.onMultiSelectorThumbnailRowChanged=function(){var f,R,u;((f=this.data)==null?0:(R=f.emoji)==null?0:(u=R.multiSelectorThumbnailRow)==null?0:u.length)&&this.openSelector()};
_.X.getThumbnailFromEmojiRow=function(f){var R,u;return(f==null?void 0:(R=f.thumbnails)==null?void 0:(u=R[0])==null?void 0:u.url)||""};
_.X.getEmojiAltTextForPartialSelector=function(f){var R;return((R=this.getThumbnailFromEmojiRow(f).match(EJF))==null?void 0:R[0])||""};
_.X.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.X.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.X.getRowSelection=function(f){return["left","right"][f]};
_.X.getIdFromComposedEmoji=function(f){return(f==null?void 0:f.emojiId)||""};
_.X.getEmojiFromPartialSelections=function(f,R){if(!f&&!R)return null;var u,O,c=(u=this.data)==null?void 0:(O=u.emoji)==null?void 0:O.variantIds;if(!c||!c.length)return null;var h;f=(h=f.match(Wek))==null?void 0:h[0];var l;R=(l=R.match(Wek))==null?void 0:l[0];if(!f||!R)return null;var K=tZF.get(f);l=tZF.get(R);if(K===l){l=Array.from(tZF.values()).filter(function(F){return F!==K}).join("|");
var q=new RegExp("^((?!("+l+")).)*"+K+"$")}else q=new RegExp(K+".*"+l);return(c=c.find(function(F){return q.test(F)}))&&_.z5(this.emojiManager,c)||null};
_.X.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var f,R=this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"");_.b(this.hostElement).querySelector('[selection="user"]').src.includes(R)||(this.isEmojiDraftInProgress=!0)}};
_.X.onDomChange=function(){Fef(this.ytEmojiSelectorBehavior)};
_.X.getFocusableElements=function(){return _.b(this.hostElement).querySelectorAll("img").filter(function(f){return f.getAttribute("role")==="option"})};
_.X.changeFocus=function(f){var R=this.getFocusableElements();R!=null&&R.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+f+R.length)%R.length,this.ytEmojiSelectorBehavior.focusedIndex<R.length&&(f=R[this.ytEmojiSelectorBehavior.focusedIndex])&&f.focus())};
_.X.onKeyboardEnter=function(){var f=this.getFocusableElements();f!=null&&f.length&&(f=f[this.ytEmojiSelectorBehavior.focusedIndex])&&f instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(f),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Vy.Object.defineProperties(Yl.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var f=this,R,u,O;return this.emojiManager&&((R=this.data)==null?0:(u=R.emoji)==null?0:(O=u.variantIds)==null?0:O.length)?this.data.emoji.variantIds.map(function(c){return!!c&&_.z5(f.emojiManager,c)}).filter(function(c){return!!c}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var f,R=(f=this.userSelection)==null?void 0:f.left,u;f=(u=this.userSelection)==null?void 0:u.right;return R&&f?this.getEmojiFromPartialSelections(R,f):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.composedEmojiSelection)==null?0:f.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var R;f=(R=this.userSelection)==null?void 0:R.left;var u;R=(u=this.userSelection)==null?void 0:u.right;if(!f&&!R){var O;return this.ytEmojiSelectorBehavior.emojiUrl(((O=this.data.emoji)==null?void 0:O.emojiId)||"")}return f&&!R?f:!f&&R?R:""}}});
Yl.prototype.onMultiSelectorThumbnailRowChanged=Yl.prototype.onMultiSelectorThumbnailRowChanged;Yl.prototype.onClick=Yl.prototype.onClick;_.B([_.z(_.Bm),_.S("design:type",Object)],Yl.prototype,"ironOverlayBehavior",void 0);_.B([_.z(wwl),_.S("design:type",Object)],Yl.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Yl.prototype,"data",void 0);_.B([_.I(),_.S("design:type",_.Je)],Yl.prototype,"emojiManager",void 0);
_.B([_.I(),_.S("design:type",Object)],Yl.prototype,"userSelection",void 0);_.B([_.I(),_.S("design:type",Object)],Yl.prototype,"scrollAction",void 0);_.B([_.I(),_.S("design:type",Object)],Yl.prototype,"isEmojiDraftInProgress",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yl.prototype,"emojiVariants",null);_.B([_.T("data","userSelection"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yl.prototype,"composedEmojiSelection",null);
_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],Yl.prototype,"onClick",null);_.B([_.qM("data.emoji.multiSelectorThumbnailRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yl.prototype,"onMultiSelectorThumbnailRowChanged",null);_.B([_.T("data","userSelection","composedEmojiSelection"),_.S("design:type",String),_.S("design:paramtypes",[])],Yl.prototype,"draftEmojiUrl",null);
Yl=_.B([_.DO({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Yl);
_.G(Yl,"yt-emoji-multi-person-selector",function(){if(QuA===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;mNH===void 0&&(mNH=document.createElement("template"));var O=mNH;u.call(R,O.content.cloneNode(!0),f.content.firstChild);QuA=f}f=QuA;return f},{mode:2});var CIG;var yBA;var vd=function(){var f=_.U.apply(this,arguments)||this;f.tooltip_=null;return f};
_.y(vd,_.U);_.X=vd.prototype;_.X.dataChanged_=function(){var f;if((f=this.data)==null?0:f.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.b(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.hl)(this.tooltip_).textContent=this.data.tooltip};
_.X.computeTargetId=function(){var f;return((f=this.data)==null?void 0:f.targetId)||""};
_.X.computeId_=function(f){return f};
_.X.computeIcon_=function(f){return _.li(f)};
_.X.onTap_=function(){this.active=!this.active;_.ul(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.X.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("active-changed",this.active))};
_.Vy.Object.defineProperties(vd.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var f,R;if((f=this.data)==null?0:(R=f.icon)==null?0:R.iconType)return this.data.icon.iconType==="SUPER_STICKER";var u,O;return((u=this.data)==null?void 0:(O=u.icon)==null?void 0:O.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
vd.prototype.activeChangedForBinding=vd.prototype.activeChangedForBinding;vd.prototype.dataChanged_=vd.prototype.dataChanged_;_.B([_.z(_.Ir.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],vd.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vd.prototype,"data",void 0);_.B([_.I({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.S("design:type",String)],vd.prototype,"id",void 0);
_.B([_.I({computed:"computeTargetId(data.targetId)"}),_.S("design:type",String)],vd.prototype,"targetId",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],vd.prototype,"active",void 0);_.B([_.I({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.S("design:type",String)],vd.prototype,"icon",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vd.prototype,"dataChanged_",null);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vd.prototype,"iconFilled",null);_.B([_.qM("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vd.prototype,"activeChangedForBinding",null);vd=_.B([_.DO({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],vd);
_.G(vd,"yt-emoji-picker-category-button-renderer",function(){if(yBA===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;CIG===void 0&&(CIG=document.createElement("template"));var O=CIG;u.call(R,O.content.cloneNode(!0),f.content.firstChild);yBA=f}f=yBA;return f},{mode:2});var dNi;var NgE;var id=function(){var f=_.U.apply(this,arguments)||this;f.ariaLabel=null;f.ariaActivedescendant=null;f.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};f.JSC$12054_ignoreNextFocus_=!1;f.longPressTimeoutId=-1;return f};
_.y(id,_.U);_.X=id.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.X.emojiChanged_=function(){this.changeFocus_(0,!1);for(var f=_.wR(),R=0;R<this.emoji.length;R++){var u={veType:88013,elementIndex:R},O=this.emoji[R];O.isCustomEmoji&&(O=document.querySelector(("#"+O.emojiId).replace("/","\\/")))&&(u=_.Fy(f,u))&&(O.visualElement=u)}};
_.X.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.X.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.X.emojiSkinToneChanged_=function(f){this.skinTone=f};
_.X.dataChanged=function(){this.data&&this.data.emojiData&&w3t(this.emojiManager,this.data.emojiData)};
_.X.emojiUrl=function(f){f=this.getEmoji(f);if(!f)return"";var R;f=(R=f.image)==null?void 0:R.thumbnails;return _.rR(f,24)||""};
_.X.emojiAlt=function(f){var R=this.get("image.accessibility.accessibilityData.label",f);return R?R:f.isCustomEmoji?f.shortcuts[0]:f.emojiId};
_.X.emojiAriaLabel=function(f){return f.shortcuts?f.shortcuts[0]:""};
_.X.emojiAriaSelected=function(f,R,u){return f&&u==R?"true":"false"};
_.X.getEmoji=function(f){if(this.emojiManager)return this.shouldUseStickyPreferences?QPl(this.emojiManager,f):T5(this.emojiManager,f)};
_.X.computeId_=function(f){return f.categoryId||""};
_.X.computeEmoji=function(f){var R=this;return this.emojiManager?f.emojiIds?f.emojiIds.map(function(u){return u?_.z5(R.emojiManager,u):null}).filter(jBn):f.emojiData?f.emojiData.map(function(u){var O=!!u.emojiId&&_.z5(R.emojiManager,u.emojiId);
return O?Object.assign({},O,u):null}).filter(jBn):[]:[]};
_.X.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.X.computeAriaLabel_=function(f){return _.$Z(f)};
_.X.computeAriaActivedescendant_=function(f,R){return f&&f[R]?f[R].emojiId||"":""};
_.X.handleLongPressEmojiWithVariants=function(f,R){this.changeFocusToEmoji(f.emojiId,!1);this.openVariantSelector(f,R)};
_.X.onMouseDown=function(f){var R=this;this.hostElement!==document.activeElement&&(this.JSC$12054_ignoreNextFocus_=!0);if(f.button===0){var u=_.gY(f);if(u instanceof HTMLImageElement){var O=_.b(this.hostElement).querySelector("#repeat").itemForElement(u);this.emojiContainsVariants(O)&&(this.longPressTimeoutId=setTimeout(function(){R.handleLongPressEmojiWithVariants(O,u)},500))}}};
_.X.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.X.onFocus=function(){this.JSC$12054_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12054_ignoreNextFocus_=!1};
_.X.onBlur_=function(){this.showFocus=!1};
_.X.emojiContainsVariants=function(f){return!!(f&&f.variantIds&&f.variantIds.length)};
_.X.onClick=function(f){clearTimeout(this.longPressTimeoutId);f=_.gY(f);if(f instanceof HTMLImageElement){var R=f.id;this.changeFocusToEmoji(R,!1);var u=this.getEmoji(R),O;if(O=this.shouldUseStickyPreferences&&this.emojiContainsVariants(u)){var c;O=!((c=this.emojiManager.emojiMap[R])!=null&&c.stickyPrefId)}O?(c=_.b(this.hostElement).querySelector("#repeat").itemForElement(f),this.openVariantSelector(c,f)):_.ul(this.hostElement,"yt-emoji-select",u)}};
_.X.isActiveEmojiWithVariants=function(f,R){return f&&R?R.stickyPrefId?f===R.stickyPrefId:f===R.emojiId:!1};
_.X.onCloseEmojiVariantSelector=function(f){this.activeEmojiWithVariantsId===f&&(this.activeEmojiWithVariantsId="")};
_.X.onMouseOver_=function(f){f=_.gY(f);f instanceof HTMLImageElement&&_.ul(this.hostElement,"yt-emoji-hover",_.z5(this.emojiManager,f.id))};
_.X.changeFocus_=function(f,R){this.focusedIndex=(this.focusedIndex+f+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(f=this.emoji[this.focusedIndex],R&&(this.showFocus=!0,_.b(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.ul(this.hostElement,"yt-emoji-hover",f)))};
_.X.changeFocusToEmoji=function(f,R){if(f){var u=this.emoji.findIndex(function(O){return O.emojiId===f});
u!==-1&&this.changeFocus_(u-this.focusedIndex,R)}};
_.X.onKeyDown_=function(f){switch(f.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var R=this.emoji[this.focusedIndex];if(R&&R.emojiId){if(this.emojiContainsVariants(R)){var u=_.b(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(R,u)}else _.ul(this.hostElement,"yt-emoji-select",T5(this.emojiManager,R.emojiId)),this.hostElement.focus();f.preventDefault()}}break;case 40:this.changeFocus_(1,!0);f.preventDefault();break;case 38:this.changeFocus_(-1,!0),f.preventDefault()}};
_.X.onEmojiStickyPreferenceChanged=function(f,R){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&f.emojiId&&f.variantIds&&f.variantIds.includes(R)&&this.activeEmojiWithVariantsId!==R&&this.setStickyEmojiPreference(f.emojiId,R)};
_.X.openVariantSelector=function(f,R){this.activeEmojiWithVariantsId=f.stickyPrefId||f.emojiId||"";_.ul(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:f,target:R})};
_.X.setStickyEmojiPreference=function(f,R){if(this.data){var u=this.emoji.findIndex(function(c){return c.emojiId===f});
if(u!==-1){var O=this.emoji[u];O.stickyPrefId=R;this.set("emoji."+u,Object.assign({},O));this.activeEmojiWithVariantsId=R}}};
id.prototype.onKeyDown_=id.prototype.onKeyDown_;id.prototype.onMouseOver_=id.prototype.onMouseOver_;id.prototype.onClick=id.prototype.onClick;id.prototype.onBlur_=id.prototype.onBlur_;id.prototype.onFocus=id.prototype.onFocus;id.prototype.onMouseUp=id.prototype.onMouseUp;id.prototype.onMouseDown=id.prototype.onMouseDown;id.prototype.dataChanged=id.prototype.dataChanged;id.prototype.disableIncrementalLoadingChanged_=id.prototype.disableIncrementalLoadingChanged_;id.prototype.emojiManagerChanged_=id.prototype.emojiManagerChanged_;
id.prototype.emojiChanged_=id.prototype.emojiChanged_;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],id.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],id.prototype,"data",void 0);_.B([_.I({computed:"computeId_(data)"}),_.S("design:type",String)],id.prototype,"id",void 0);_.B([_.I({computed:"computeEmoji(data)"}),_.S("design:type",Array)],id.prototype,"emoji",void 0);_.B([_.I(),_.S("design:type",Number)],id.prototype,"skinTone",void 0);
_.B([_.I(),_.S("design:type",_.Je)],id.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",Boolean)],id.prototype,"disableIncrementalLoading",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],id.prototype,"focusedIndex",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],id.prototype,"showFocus",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.S("design:type",Object)],id.prototype,"ariaLabel",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.S("design:type",Object)],id.prototype,"ariaActivedescendant",void 0);_.B([_.I({value:60}),_.S("design:type",Number)],id.prototype,"domRepeatTargetFramerate",void 0);_.B([_.I({value:1}),_.S("design:type",Number)],id.prototype,"domRepeatInitialCount",void 0);_.B([_.I({value:""}),_.S("design:type",String)],id.prototype,"activeEmojiWithVariantsId",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],id.prototype,"shouldUseStickyPreferences",void 0);_.B([_.qM("emoji"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"emojiChanged_",null);_.B([_.qM("emojiManager"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"emojiManagerChanged_",null);
_.B([_.qM("disableIncrementalLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"disableIncrementalLoadingChanged_",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"dataChanged",null);_.B([_.Kf("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],id.prototype,"onMouseDown",null);
_.B([_.Kf("mouseup"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"onMouseUp",null);_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"onFocus",null);_.B([_.Kf("blur"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],id.prototype,"onBlur_",null);
_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],id.prototype,"onClick",null);_.B([_.Kf("mouseover"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],id.prototype,"onMouseOver_",null);_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],id.prototype,"onKeyDown_",null);
id=_.B([_.DO({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],id);
_.G(id,"yt-emoji-picker-category-renderer",function(){if(NgE===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;dNi===void 0&&(dNi=document.createElement("template"));var O=dNi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);NgE=f}f=NgE;return f},{mode:2});var LeY;var b1I;var pwk;var jul;var r2=function(){var f=_.U.apply(this,arguments)||this;f.ariaLabel=null;f.ariaActivedescendant=null;f.getFormattedStringRawText=_.$Z;f.JSC$12060_ignoreNextFocus_=!1;return f};
_.y(r2,_.U);_.X=r2.prototype;_.X.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")};
_.X.emojiUrl=function(f){var R,u;f=(R=T5(this.emojiManager,f,!0))==null?void 0:(u=R.image)==null?void 0:u.thumbnails;return _.rR(f,24)||""};
_.X.emojiAlt=function(f){var R=this.get("image.accessibility.accessibilityData.label",f);return R?R:f.isCustomEmoji?f.shortcuts[0]:f.emojiId};
_.X.emojiId=function(f){return"emoji"+f};
_.X.computeId_=function(f){return f.categoryId||""};
_.X.computeAriaActivedescendant_=function(f){return this.emoji&&f<this.emoji.length?this.emojiId(f):""};
_.X.emojiChanged_=function(){this.changeFocus_(0,!1);for(var f=_.wR(),R=0;R<this.emoji.length;R++){var u={veType:88013,elementIndex:R},O=this.emoji[R];O.isCustomEmoji&&(O=document.querySelector(("#"+O.emojiId).replace("/","\\/")))&&(u=_.Fy(f,u))&&(O.visualElement=u)}};
_.X.computeEmoji_=function(f){var R=this;return this.emojiManager?f.emojiIds.map(function(u){return _.z5(R.emojiManager,u,!0)}).filter(Dwt):[]};
_.X.titleOffsetChanged_=function(){var f=this.hostElement.getBoundingClientRect(),R=_.b(this.hostElement).querySelector("#title").getBoundingClientRect();f=Math.max(0,Math.min(this.titleOffset,f.height-R.height));_.b(this.hostElement).querySelector("#title").style.top=f+"px"};
_.X.onEmojiMouseOver_=function(f){_.ul(this.hostElement,"yt-emoji-hover",f.model.item)};
_.X.onEmojiTap_=function(f){this.data.command&&(f=UV7(_.vh().resolve(_.Y8(B5)),this.data.command,f),_.ul(this.hostElement,"yt-navigate",f))};
_.X.emojiAriaLabel=function(f){return f.shortcuts[0]};
_.X.emojiAriaSelected=function(f,R,u){return f&&u==R?"true":"false"};
_.X.changeFocus_=function(f,R){var u=this.emoji.length;this.focusedIndex=(this.focusedIndex+f+u)%u;f=this.emoji[this.focusedIndex];if(R){var O;(O=_.b(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||O.scrollIntoView(!1);_.ul(this.hostElement,"yt-emoji-hover",f)}};
_.X.onMouseDown_=function(){this.JSC$12060_ignoreNextFocus_=!0};
_.X.onFocus_=function(){this.JSC$12060_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12060_ignoreNextFocus_=!1};
_.X.onBlur_=function(){this.showFocus=!1};
_.X.onKeyDown_=function(f){switch(f.keyCode){case 13:this.onEmojiTap_(f);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);f.preventDefault();break;case 38:this.changeFocus_(-1,!0),f.preventDefault()}};
r2.prototype.onKeyDown_=r2.prototype.onKeyDown_;r2.prototype.onBlur_=r2.prototype.onBlur_;r2.prototype.onFocus_=r2.prototype.onFocus_;r2.prototype.onMouseDown_=r2.prototype.onMouseDown_;r2.prototype.onEmojiTap_=r2.prototype.onEmojiTap_;r2.prototype.titleOffsetChanged_=r2.prototype.titleOffsetChanged_;r2.prototype.emojiChanged_=r2.prototype.emojiChanged_;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],r2.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],r2.prototype,"data",void 0);_.B([_.I({computed:"computeId_(data)"}),_.S("design:type",String)],r2.prototype,"id",void 0);_.B([_.I({computed:"computeEmoji_(data)"}),_.S("design:type",Array)],r2.prototype,"emoji",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],r2.prototype,"titleOffset",void 0);_.B([_.I({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.S("design:type",Object)],r2.prototype,"ariaLabel",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.S("design:type",Object)],r2.prototype,"ariaActivedescendant",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],r2.prototype,"showFocus",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],r2.prototype,"focusedIndex",void 0);_.B([_.I(),_.S("design:type",_.Je)],r2.prototype,"emojiManager",void 0);
_.B([_.qM("emoji"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r2.prototype,"emojiChanged_",null);_.B([_.qM("titleOffset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r2.prototype,"titleOffsetChanged_",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],r2.prototype,"onEmojiTap_",null);
_.B([_.Kf("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r2.prototype,"onMouseDown_",null);_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r2.prototype,"onFocus_",null);_.B([_.Kf("blur"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r2.prototype,"onBlur_",null);
_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],r2.prototype,"onKeyDown_",null);r2=_.B([_.DO({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],r2);
_.G(r2,"yt-emoji-picker-upsell-category-renderer",function(){if(jul===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;pwk===void 0&&(pwk=document.createElement("template"));var O=pwk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);jul=f}f=jul;return f},{mode:2});var DNk;var JBC;var fI=function(){var f=_.U.apply(this,arguments)||this;f.scrollAction="lock";f.verticalAlign="top";return f};
_.y(fI,_.U);_.X=fI.prototype;_.X.onClick=function(f){f=_.gY(f);f instanceof HTMLImageElement&&_.ul(this.hostElement,"yt-emoji-select",_.z5(this.emojiManager,f.id))};
_.X.openSelector=function(){this.ironOverlayBehavior.open()};
_.X.onDomChange=function(){Fef(this.ytEmojiSelectorBehavior)};
_.X.computeIsFamilySelector=function(f){var R;return(f==null?void 0:(R=f.emoji)==null?void 0:R.emojiId)==="\ud83d\udc6a"};
_.X.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var f=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];f&&f.emojiId&&(_.ul(this.hostElement,"yt-emoji-select",_.z5(this.emojiManager,f.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Vy.Object.defineProperties(fI.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var f=this,R,u,O;return this.emojiManager&&((R=this.data)==null?0:(u=R.emoji)==null?0:(O=u.variantIds)==null?0:O.length)?this.data.emoji.variantIds.map(function(c){return!!c&&_.z5(f.emojiManager,c)}).filter(function(c){return!!c}):[]}}});
fI.prototype.onClick=fI.prototype.onClick;_.B([_.z(_.Bm),_.S("design:type",Object)],fI.prototype,"ironOverlayBehavior",void 0);_.B([_.z(wwl),_.S("design:type",Object)],fI.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],fI.prototype,"data",void 0);_.B([_.I(),_.S("design:type",_.Je)],fI.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",Object)],fI.prototype,"scrollAction",void 0);_.B([_.I(),_.S("design:type",Object)],fI.prototype,"verticalAlign",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.S("design:type",Boolean)],fI.prototype,"isFamilySelector",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],fI.prototype,"emojiVariants",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],fI.prototype,"onClick",null);fI=_.B([_.DO({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],fI);
_.G(fI,"yt-emoji-variant-selector",function(){if(JBC===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;DNk===void 0&&(DNk=document.createElement("template"));var O=DNk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);JBC=f}f=JBC;return f},{mode:2});var zCE=/:/g,Tgf=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],R6=function(){var f=_.U.apply(this,arguments)||this;f.emojiVariantSelector=null;f.emojiMultiPersonSelector=null;f.identity=_.B0;f.lastAnimationTime_=0;f.animationStart_=null;f.animationEnd_=null;return f};
_.y(R6,_.U);_.X=R6.prototype;
_.X.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}}};
_.X.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Hd)};
_.X.attached=function(){_.O0&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&mrA(this.emojiManager)};
_.X.dataChanged=function(){var f;if((f=this.data)==null?0:f.categories){f=this.emojiManager;var R=this.getCustomEmojiIds();f.pickerCustomEmojiIds=[].concat(_.yq(K3Y),_.yq(R))}};
_.X.getCustomEmojiIds=function(){var f,R=(f=this.data.categories)==null?void 0:f.find(function(h){var l;return((l=h.emojiPickerCategoryRenderer)==null?void 0:l.categoryId)&&Tgf.includes(h.emojiPickerCategoryRenderer.categoryId)}),u;
f=(u=this.data.categories)==null?void 0:u.find(function(h){return h.emojiPickerUpsellCategoryRenderer});
var O,c;return[R==null?void 0:(O=R.emojiPickerCategoryRenderer)==null?void 0:O.emojiIds,f==null?void 0:(c=f.emojiPickerUpsellCategoryRenderer)==null?void 0:c.emojiIds].flat().filter(function(h){return!!h})};
_.X.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.X.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.X.updateCategoriesAndPlaceholderInternal=function(f,R){var u=this;f&&R&&(this.categories=f.categories||[],this.categoryButtons=f.categoryButtons||[],this.resetPlaceholder(),this.search="",_.P2(function(){u.updateButtons_()}))};
_.X.computeId_=function(f){return f.id||""};
_.X.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(f){return f.emojiPickerCategoryRenderer&&f.emojiPickerCategoryRenderer.emojiData}):!1};
_.X.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.X.onShowEmojiVariantSelector=function(f){var R=f.detail.emojiData;R.variantIds&&R.variantIds.length&&(R.multiSelectorThumbnailRow&&R.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:R,target:f.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:R,target:f.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.X.onIronOverlayClosed=function(f){var R=QPl(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");R&&f.composedPath&&(f.composedPath().includes(_.b(this.hostElement).querySelector("#emoji-variant-selector"))||f.composedPath().includes(_.b(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.OJ(this.hostElement,"yt-close-emoji-variant-selector",[R.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.X.onEmojiVariantSelectorMouseup=function(f){var R=f.target.firstChild;this.variantSelectorOpened&&R&&_.P2(function(){R.noCancelOnOutsideClick=!1},100)};
_.X.onEmojiVariantSelectorMousedown=function(f){f=f.target.firstChild;this.variantSelectorOpened&&f&&(f.noCancelOnOutsideClick=!1)};
_.X.onSelectCategory_=function(f){var R=this.search!="";this.search="";for(var u=_.b(this.hostElement).querySelector("#categories").children,O=0;O<u.length;O++){var c=u[O];if(c.id==f.detail.categoryId){R?(_.b(this.hostElement).querySelector("#categories").scrollTop=c.offsetTop,this.updateButtons_()):(this.animationStart_=_.b(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=c.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.X.onEmojiHover_=function(f){this.placeholder=f.detail.shortcuts?f.detail.shortcuts[0]:""};
_.X.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.X.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.X.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.X.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.X.computeSearchCategory_=function(f){f=f.replace(zCE,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();f=f.split(" ");for(var R=[],u=this.emojiManager.emojis,O=0;O<u.length;O++){var c=u[O];if(c.searchTerms)for(var h=0;h<c.searchTerms.length;h++){for(var l=c.searchTerms[h].toLocaleLowerCase(),K=!1,q=0;q<f.length;q++)if(l.indexOf(f[q])!=-1){K=!0;break}if(K&&(!c.isCustomEmoji||!c.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(c.emojiId))){R.push(c.emojiId);
break}}}return{categoryId:-1,emojiIds:R}};
_.X.computeSearchEmptyMessage_=function(f,R){return f&&R&&R.emojiIds&&R.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.X.computeSearching_=function(f){return this.emojiManager&&f.replace(zCE,"").length>1};
_.X.computeSkinToneHidden=function(){var f;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((f=this.data)==null||!f.hideSkinTonePicker)};
_.X.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.X.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.X.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.X.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.X.selectSkinTone_=function(f){f=Number(f.target.getAttribute("tone"));this.set("emojiManager.skinTone",f);_.OJ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[f]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.X.skinToneChanged_=function(){_.b(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var f=_.b(this.hostElement).querySelector("#dropdown-content").children,R=0;R<f.length;R++)R===this.skinTone?f[R].setAttribute("selected",""):f[R].removeAttribute("selected")};
_.X.animateScroll_=function(f){this.lastAnimationTime_||(this.lastAnimationTime_=f);f-=this.lastAnimationTime_;f<200?(_.b(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*f/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.b(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.X.searchChanged_=function(){this.updateButtons_()};
_.X.updateButtons_=function(){var f=null;if(!this.search)for(var R=_.b(this.hostElement).querySelector("#categories").scrollTop,u=_.b(this.hostElement).querySelector("#categories").children,O=0;O<u.length;O++){var c=u[O];c.offsetTop<=R&&(f=c.id)}R=_.b(this.hostElement).querySelector("#category-buttons").children;for(u=0;u<R.length;u++)O=R[u],O.active=O.id===f};
R6.prototype.searchChanged_=R6.prototype.searchChanged_;R6.prototype.skinToneChanged_=R6.prototype.skinToneChanged_;R6.prototype.onEmojiHover_=R6.prototype.onEmojiHover_;R6.prototype.onSelectCategory_=R6.prototype.onSelectCategory_;R6.prototype.onShowEmojiVariantSelector=R6.prototype.onShowEmojiVariantSelector;R6.prototype.updateCategoriesAndPlaceholder_=R6.prototype.updateCategoriesAndPlaceholder_;R6.prototype.dataChanged=R6.prototype.dataChanged;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],R6.prototype,"data",void 0);_.B([_.I({value:function(){return[]}}),
_.S("design:type",Array)],R6.prototype,"categories",void 0);_.B([_.I({value:function(){return[]}}),
_.S("design:type",Array)],R6.prototype,"categoryButtons",void 0);_.B([_.I({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.S("design:type",Boolean)],R6.prototype,"disableScroll",void 0);_.B([_.I({computed:"computeId_(data)",reflectToAttribute:!0}),_.S("design:type",String)],R6.prototype,"id",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],R6.prototype,"selected",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],R6.prototype,"disableIncrementalLoading",void 0);_.B([_.I(),_.S("design:type",String)],R6.prototype,"placeholder",void 0);_.B([_.I({value:""}),_.S("design:type",String)],R6.prototype,"search",void 0);_.B([_.I({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.S("design:type",Boolean)],R6.prototype,"searching",void 0);_.B([_.I({computed:"computeSearchCategory_(search)"}),_.S("design:type",Object)],R6.prototype,"searchCategory",void 0);
_.B([_.I({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.S("design:type",Object)],R6.prototype,"searchEmptyMessage",void 0);_.B([_.I({computed:"identity(emojiManager.skinTone)"}),_.S("design:type",Number)],R6.prototype,"skinTone",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],R6.prototype,"skinToneOpened",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],R6.prototype,"variantSelectorOpened",void 0);
_.B([_.I({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.S("design:type",Boolean)],R6.prototype,"skinToneHidden",void 0);_.B([_.I(),_.S("design:type",_.Je)],R6.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",Object)],R6.prototype,"emojiVariantSelector",void 0);_.B([_.I(),_.S("design:type",Object)],R6.prototype,"emojiMultiPersonSelector",void 0);
_.B([_.I({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.S("design:type",Boolean)],R6.prototype,"shouldUseStickyPreferences",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R6.prototype,"dataChanged",null);_.B([_.qM("data","selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R6.prototype,"updateCategoriesAndPlaceholder_",null);
_.B([_.Kf("yt-show-emoji-variant-selector"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],R6.prototype,"onShowEmojiVariantSelector",null);_.B([_.Kf("yt-emoji-picker-select-category"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],R6.prototype,"onSelectCategory_",null);_.B([_.Kf("yt-emoji-hover"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],R6.prototype,"onEmojiHover_",null);
_.B([_.qM("skinTone"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R6.prototype,"skinToneChanged_",null);_.B([_.qM("search"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R6.prototype,"searchChanged_",null);R6=_.B([_.DO({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],R6);
_.G(R6,"yt-emoji-picker-renderer",function(){if(b1I===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;LeY===void 0&&(LeY=document.createElement("template"));var O=LeY;u.call(R,O.content.cloneNode(!0),f.content.firstChild);b1I=f}f=b1I;return f},{mode:2});var ug=function(){var f=_.U.apply(this,arguments)||this;f.emojiManager=_.Hd;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.selectedIndex=1;f.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return f};
_.y(ug,_.U);_.X=ug.prototype;_.X.handleEmojiCustomizationVisible=function(f){this.emojiPickerRenderer.selected=f;this.selectedIndex=1;f?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.X.emojiCustomizationSetChanged=function(){var f;(f=this.data)!=null&&f.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Af(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.X.updateSaveButtonState=function(f){var R;(R=this.data)!=null&&R.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.aA("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:f}))};
_.X.emojiUrl=function(f){f=_.z5(this.emojiManager,f);if(!f)return"";var R;f=(R=f.image)==null?void 0:R.thumbnails;return _.rR(f,24)||""};
_.X.emojiAlt=function(f){var R=_.z5(this.emojiManager,f);if(!R)return f;var u,O,c,h=(R==null?void 0:(u=R.image)==null?void 0:(O=u.accessibility)==null?void 0:(c=O.accessibilityData)==null?void 0:c.label)||"";return h?h:R.isCustomEmoji?R.shortcuts[0]:R.emojiId||f};
_.X.emojiAriaLabel=function(f){var R,u;return((R=_.z5(this.emojiManager,f))==null?void 0:(u=R.shortcuts)==null?void 0:u[0])||f};
_.X.onEmojiClick=function(f){f.model.index!==0&&(this.selectedIndex=f.model.index)};
_.X.onEmojiSelect=function(f){f=f.detail;var R,u;((R=this.data)==null?0:R.emojiCustomizationSetEntityKey)&&((u=this.emojiCustomizationSet)==null?0:u.emojiId)&&f.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,f.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.aA("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,f.emojiId,this.selectedIndex)}))};
_.X.canEditEmoji=function(f,R,u){f=f.indexOf(R);return f===u||f===0||u===0?!1:!0};
_.X.getUpdatedEmojiIdList=function(f,R,u){var O=f.indexOf(R);f=[].concat(_.yq(f));O>=0&&(f[O]=f[u]);f[u]=R;return f};
_.Vy.Object.defineProperties(ug,{template:{configurable:!0,enumerable:!0,get:function(){if(iMf===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;vet===void 0&&(vet=document.createElement("template"));var O=vet;u.call(R,O.content.cloneNode(!0),f.content.firstChild);iMf=f}f=iMf;return f}}});
ug.prototype.onEmojiSelect=ug.prototype.onEmojiSelect;_.B([_.z(_.HT),_.S("design:type",Object)],ug.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ug.prototype,"ytActionHandlerBehavior",void 0);_.B([_.a4("yt-emoji-picker-renderer"),_.S("design:type",Object)],ug.prototype,"emojiPickerRenderer",void 0);
_.B([_.I({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(f,R){return _.kZ(f.entities,"emojiCustomizationSetEntity",R)},
observer:"emojiCustomizationSetChanged"}),_.S("design:type",Object)],ug.prototype,"emojiCustomizationSet",void 0);_.B([_.I(),_.S("design:type",Object)],ug.prototype,"originalEmojiSet",void 0);_.B([_.I(),_.S("design:type",_.Je)],ug.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",Object)],ug.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ug.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],ug.prototype,"selectedIndex",void 0);
_.B([_.Kf("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ug.prototype,"onEmojiSelect",null);ug=_.B([_.DO({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],ug);var H1k;var Icf;var MZk;var PIk;var O7=function(){var f=_.U.apply(this,arguments)||this;f.authorBadges=[];return f};
_.y(O7,_.U);_.X=O7.prototype;_.X.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.X.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]]"}}}}}};
_.X.dataChanged=function(){var f=lIq(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",f)};
_.X.updateMessage=function(){var f=this.data.message,R=_.b(_.b(this.hostElement).querySelector("#message"));R.textContent="";f&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.X.onShowOriginalClick=function(f){f.preventDefault();this.showOriginal=!0};
_.X.computeShowBar=function(f,R,u){return f&&R||u};
_.X.computeAuthorBadges=function(f){return f.authorBadges||[]};
_.X.computeAuthorIsOwner=function(f){return!!k8X(f.authorBadges,"owner")};
_.X.computeAuthorNameColor=function(f){var R;if(_.E("live_chat_author_name_color_usernames")&&(f==null?0:(R=f.authorName)==null?0:R.simpleText))return _.wV0(_.mYe(f.authorName.simpleText));if(_.E("live_chat_seed_color_usernames")&&(f==null?0:f.authorSeedColorArgb))return _.wV0(_.h4(f.authorSeedColorArgb));if(_.E("live_chat_colored_usernames"))return"#cc0000";var u;return _.E("live_chat_simple_color_usernames")&&(f==null?0:(u=f.authorName)==null?0:u.simpleText)&&(f==null?0:f.authorUsernameColorLight)&&
(f==null?0:f.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.h4(f.authorUsernameColorDark):_.h4(f.authorUsernameColorLight):""};
O7.prototype.updateMessage=O7.prototype.updateMessage;O7.prototype.dataChanged=O7.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],O7.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],O7.prototype,"data",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"showOriginal",void 0);_.B([_.I({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"isDimmed",void 0);_.B([_.I({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"showBar",void 0);
_.B([_.I({computed:"computeAuthorBadges(data)"}),_.S("design:type",Array)],O7.prototype,"authorBadges",void 0);_.B([_.I({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"authorIsOwner",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"inCollapsedBanner",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"inBanner",void 0);
_.B([_.I({value:_.E("live_chat_hide_avatars"),reflectToAttribute:!0}),_.S("design:type",Boolean)],O7.prototype,"avatarHidden",void 0);_.B([_.I({computed:"computeAuthorNameColor(data)"}),_.S("design:type",String)],O7.prototype,"authorNameColor",void 0);_.B([_.I(),_.S("design:type",_.e$)],O7.prototype,"participantsManager",void 0);_.B([_.I({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.S("design:type",Object)],O7.prototype,"filledButtonOverrides",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O7.prototype,"dataChanged",null);_.B([_.qM("data.message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O7.prototype,"updateMessage",null);O7=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],O7);
_.G(O7,"yt-live-chat-text-message-renderer",function(){if(PIk===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;MZk===void 0&&(MZk=document.createElement("template"));var O=MZk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);PIk=f}f=PIk;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var cX=function(){var f=_.U.apply(this,arguments)||this;f.tonalButtonOverrides={type:"tonal",style:"overlay"};return f};
_.y(cX,_.U);
cX.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]]"}}}}}};
cX.prototype.shouldSupportInlineActionButtons=function(){return!0};
cX.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Vy.Object.defineProperties(cX.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],cX.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cX.prototype,"data",void 0);_.B([_.I(),_.S("design:type",_.e$)],cX.prototype,"participantsManager",void 0);
_.B([_.I(),_.S("design:type",Object)],cX.prototype,"tonalButtonOverrides",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.infoDialogButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],cX.prototype,"hasInfoDialogButton",null);cX=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],cX);
_.G(cX,"yt-live-chat-auto-mod-message-renderer",function(){if(Icf===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;H1k===void 0&&(H1k=document.createElement("template"));var O=H1k;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Icf=f}f=Icf;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var UNi;var eCY;var GZf;var XG=function(){return _.U.apply(this,arguments)||this};
_.y(XG,_.U);_.B([_.I(),_.S("design:type",Object)],XG.prototype,"data",void 0);XG=_.B([_.e({is:"ytd-factoid-renderer",disableElementRegistration:!0})],XG);
_.G(XG,"ytd-factoid-renderer",function(){if(GZf!==void 0)return GZf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GZf=f},{mode:1});var hE=function(){return _.U.apply(this,arguments)||this};
_.y(hE,_.U);hE.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.B([_.I(),_.S("design:type",Object)],hE.prototype,"data",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);hE=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],hE);
_.G(hE,"yt-live-chat-channel-activity-reputation-renderer",function(){if(eCY===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;UNi===void 0&&(UNi=document.createElement("template"));var O=UNi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);eCY=f}f=eCY;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var BgH;var oJY;var ZZ=function(){return _.U.apply(this,arguments)||this};
_.y(ZZ,_.U);ZZ.prototype.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Boolean)],ZZ.prototype,"menuFocused",void 0);_.B([_.I(),_.S("design:type",Object)],ZZ.prototype,"data",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],ZZ.prototype,"ytLiveChatItemBehavior",void 0);ZZ=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],ZZ);
_.G(ZZ,"yt-live-chat-donation-announcement-renderer",function(){if(oJY===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;BgH===void 0&&(BgH=document.createElement("template"));var O=BgH;u.call(R,O.content.cloneNode(!0),f.content.firstChild);oJY=f}f=oJY;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var xNC;var S6Y,$NA=function(){if(S6Y!==void 0)return S6Y;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;xNC===void 0&&(xNC=document.createElement("template"));var O=xNC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return S6Y=f};var lg=function(){return _.U.apply(this,arguments)||this};
_.y(lg,_.U);_.Vy.Object.defineProperties(lg,{template:{configurable:!0,enumerable:!0,get:function(){return $NA()}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lg.prototype,"data",void 0);lg=_.B([_.DO({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],lg);_.G(lg,"yt-live-chat-empty-feed-view-model",function(){return $NA()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var gJk;var suk;var ki=function(){return _.U.apply(this,arguments)||this};
_.y(ki,_.U);ki.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"}}}}}};
_.Vy.Object.defineProperties(ki.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var f,R;return{runs:[{text:(f=this.data)==null?void 0:(R=f.channelName)==null?void 0:R.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var f=[],R;if((R=this.data)==null||!R.channelBadges)return f;var u;R=_.Z((u=this.data)==null?void 0:u.channelBadges);for(u=R.next();!u.done;u=R.next()){u=_.t(u.value,Y2l);var O=void 0,c=void 0;if((O=u)==null?0:(c=O.badgeImage)==null?0:c.sources)O=void 0,c={liveChatAuthorBadgeRenderer:{tooltip:u.tooltip,accessibility:{accessibilityData:{label:(O=_.t(u.rendererContext,_.mZ))==null?void 0:O.label}}}},u.badgeImage.sources[0].clientResource?c.liveChatAuthorBadgeRenderer.icon=
{iconType:u.badgeImage.sources[0].clientResource.imageName}:c.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:u.badgeImage.sources},f.push(c)}return f}}});
_.B([_.I(),_.S("design:type",Object)],ki.prototype,"data",void 0);_.B([_.T("data.channelName"),_.S("design:type",Object),_.S("design:paramtypes",[])],ki.prototype,"channelName",null);_.B([_.T("data.channelBadges"),_.S("design:type",Array),_.S("design:paramtypes",[])],ki.prototype,"channelBadges",null);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);
ki=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],ki);
_.G(ki,"yt-live-chat-identity-view-model",function(){if(suk===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;gJk===void 0&&(gJk=document.createElement("template"));var O=gJk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);suk=f}f=suk;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var nJf;var VZf;var Y6C;var vJk;var KI=function(){var f=_.U.apply(this,arguments)||this;f.hidden=!1;f.supportsInlineActionButtons=!0;return f};
_.y(KI,_.U);KI.prototype.ready=function(){var f;((f=document.querySelector("yt-live-chat-app"))==null?0:f.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
KI.prototype.dataChanged=function(f){var R=(0,_.hl)(_.b(this.hostElement).querySelector("#detail-text"));R.textContent="";(f==null?0:f.detailText)&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f.detailText))};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],KI.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({observer:"dataChanged"}),_.S("design:type",Object)],KI.prototype,"data",void 0);
_.B([_.I({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.S("design:type",Object)],KI.prototype,"hidden",void 0);KI=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],KI);
_.G(KI,"yt-live-chat-legacy-paid-message-renderer",function(){if(vJk===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Y6C===void 0&&(Y6C=document.createElement("template"));var O=Y6C;u.call(R,O.content.cloneNode(!0),f.content.firstChild);vJk=f}f=vJk;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var i1f;var rBH;var f4C={},qD=function(){return _.w_.apply(this,arguments)||this};
_.y(qD,_.w_);qD.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
qD.prototype.onLiveChatMembershipItemBehaviorClick=qD.prototype.onLiveChatMembershipItemBehaviorClick;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qD.prototype,"data",void 0);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],qD.prototype,"onLiveChatMembershipItemBehaviorClick",null);qD=_.B([_.mt()],qD);
f4C.YtLiveChatMembershipItemBehavior=[qD.prototype,_.r.YtRendererBehavior];var AE=function(){var f=_.U.apply(this,arguments)||this;f.supportsInlineActionButtons=!0;f.hasPrimaryHeaderText=!1;f.showOnlyHeader=!1;f.authorBadges=[];f.modern=_.E("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.y(AE,_.U);_.X=AE.prototype;_.X.shouldSupportInlineActionButtons=function(){return!0};
_.X.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.X.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.X.messageChanged=function(){var f=this.data.message,R=(0,_.hl)(_.b(this.hostElement).querySelector("#message"));R.textContent="";f&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.X.computeHasPrimaryHeaderText=function(f){return!(!f||!f.headerPrimaryText)};
_.X.computeShowOnlyHeader=function(f,R){return this.isMessageEmpty(f,R)};
_.X.computeAuthorBadges=function(f){return f.authorBadges||[]};
_.X.isMessageEmpty=function(f,R){return!f||f.empty?!0:!f.message&&!f.inputField&&!R};
_.X.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.X.getInputElement=function(){return _.b(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.X.inputFocus=function(){var f=this.getInputElement();f&&f.focus()};
_.X.inputInsertEmoji=function(f){var R=this.getInputElement();R&&R.insertEmoji(f)};
_.X.inputMessage=function(){var f=this.getInputElement();return f&&this.data.inputField?(f.completeEmojis(),_.HM(f.liveChatRichMessageInput)):null};
_.X.onFooterButtonClick=function(){this.data.footerButton&&_.ul(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.X.shouldSupportWholeItemClick=function(){return!0};
AE.prototype.isDeletedChanged=AE.prototype.isDeletedChanged;AE.prototype.messageChanged=AE.prototype.messageChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],AE.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(f4C.YtLiveChatMembershipItemBehavior),_.S("design:type",Object)],AE.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AE.prototype,"data",void 0);_.B([_.I({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.S("design:type",Object)],AE.prototype,"hasPrimaryHeaderText",void 0);_.B([_.I({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.S("design:type",Object)],AE.prototype,"showOnlyHeader",void 0);
_.B([_.I({computed:"computeAuthorBadges(data)"}),_.S("design:type",Array)],AE.prototype,"authorBadges",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],AE.prototype,"modern",void 0);_.B([_.qM("data.message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AE.prototype,"messageChanged",null);_.B([_.qM("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AE.prototype,"isDeletedChanged",null);
AE=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],AE);
_.G(AE,"yt-live-chat-membership-item-renderer",function(){if(rBH===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;i1f===void 0&&(i1f=document.createElement("template"));var O=i1f;u.call(R,O.content.cloneNode(!0),f.content.firstChild);rBH=f}f=rBH;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var RRH;var uRH;var a6=function(){return _.U.apply(this,arguments)||this};
_.y(a6,_.U);a6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],a6.prototype,"data",void 0);a6=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],a6);
_.G(a6,"yt-live-chat-mode-change-message-renderer",function(){if(uRH===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;RRH===void 0&&(RRH=document.createElement("template"));var O=RRH;u.call(R,O.content.cloneNode(!0),f.content.firstChild);uRH=f}f=uRH;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var OHE;var cPI;var FG=function(){return _.U.apply(this,arguments)||this};
_.y(FG,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],FG.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FG.prototype,"data",void 0);FG=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],FG);
_.G(FG,"yt-live-chat-moderation-message-renderer",function(){if(cPI===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;OHE===void 0&&(OHE=document.createElement("template"));var O=OHE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);cPI=f}f=cPI;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var XuA;var hRA;var w3=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_button_rework");return f};
_.y(w3,_.U);w3.prototype.onClick=function(){var f;if((f=this.data)!=null&&f.onClickCommand){var R;_.KU.instance.resolveCommand((R=this.data)==null?void 0:R.onClickCommand)}};
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],w3.prototype,"modern",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],w3.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],w3.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],w3.prototype,"data",void 0);w3=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],w3);
_.G(w3,"yt-live-chat-offer-click-count-message-renderer",function(){if(hRA===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;XuA===void 0&&(XuA=document.createElement("template"));var O=XuA;u.call(R,O.content.cloneNode(!0),f.content.firstChild);hRA=f}f=hRA;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var ZHI;var m_=function(){return _.U.apply(this,arguments)||this};
_.y(m_,_.U);_.B([_.I(),_.S("design:type",Object)],m_.prototype,"data",void 0);m_=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],m_);
_.G(m_,"yt-live-chat-placeholder-item-renderer",function(){if(ZHI===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);ZHI=f}f=ZHI;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var l4A;var kbC;var KUk=new oL(7),Qz=function(){var f=_.U.apply(this,arguments)||this;f.data={};return f};
_.y(Qz,_.U);Qz.prototype.dataChanged=function(){var f;((f=this.data)==null?0:f.class)&&_.c2(this.hostElement,this.data.class,!0);var R;((R=this.oldData)==null?0:R.class)&&_.c2(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Qz.prototype.computeTimestampString=function(f){return KUk.format(new Date(f/1E3))};
Qz.prototype.dataChanged=Qz.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],Qz.prototype,"data",void 0);_.B([_.I({computed:"computeTimestampString(data.timestampUsec)"}),_.S("design:type",String)],Qz.prototype,"timestampString",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qz.prototype,"dataChanged",null);Qz=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Qz);
_.G(Qz,"yt-live-chat-server-error-message",function(){if(kbC===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;l4A===void 0&&(l4A=document.createElement("template"));var O=l4A;u.call(R,O.content.cloneNode(!0),f.content.firstChild);kbC=f}f=kbC;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var qNG;var APC;var WX=function(){var f=_.U.apply(this,arguments)||this;f.defaultToFilledIcon=!1;return f};
_.y(WX,_.U);WX.prototype.computeHasPrimaryColorIcon=function(f){return f==="SPARK"||f==="SPONSORSHIP_STAR"};
WX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],WX.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WX.prototype,"defaultToFilledIcon",void 0);_.B([_.I(),_.S("design:type",Object)],WX.prototype,"data",void 0);
_.B([_.I({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.S("design:type",Boolean)],WX.prototype,"hasPrimaryColorIcon",void 0);WX=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],WX);
_.G(WX,"yt-live-chat-viewer-engagement-message-renderer",function(){if(APC===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;qNG===void 0&&(qNG=document.createElement("template"));var O=qNG;u.call(R,O.content.cloneNode(!0),f.content.firstChild);APC=f}f=APC;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var a4A;var E7=function(){var f=_.U.apply(this,arguments)||this;f.modernUpdate=!1;f.buttonStyle="overlay";f.buttonType="filled";return f};
_.y(E7,_.U);E7.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
E7.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],E7.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],E7.prototype,"modernUpdate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],E7.prototype,"buttonStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],E7.prototype,"buttonType",void 0);
E7=_.B([_.e({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],E7);
_.G(E7,"ytd-ad-hover-text-button-renderer",function(){if(a4A!==void 0)return a4A;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return a4A=f},{mode:1});var FUA;var tE=function(){var f=_.U.apply(this,arguments)||this;f.buttonOverrides={size:"XS"};f.modern=_.E("web_button_rework");return f};
_.y(tE,_.U);tE.prototype.onHelpTap=function(f){this.data&&this.data.informationDialog&&(_.ul(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),f.preventDefault(),f.stopPropagation())};
_.B([_.I(),_.S("design:type",Object)],tE.prototype,"buttonOverrides",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tE.prototype,"modern",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tE.prototype,"data",void 0);tE=_.B([_.e({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],tE);
_.G(tE,"ytd-live-chat-purchased-product-message-renderer",function(){if(FUA!==void 0)return FUA;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return FUA=f},{mode:1});var wuf;var mVl;var CI=function(){var f=_.U.apply(this,arguments)||this;f.isContainerDeleted=!1;return f};
_.y(CI,_.U);CI.prototype.onContextMenuClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
CI.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))};
CI.prototype.isContainerDeletedChanged=CI.prototype.isContainerDeletedChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],CI.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],CI.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],CI.prototype,"isContainerDeleted",void 0);
_.B([_.I(),_.S("design:type",String)],CI.prototype,"deletedStateMessage",void 0);_.B([_.qM("isContainerDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CI.prototype,"isContainerDeletedChanged",null);CI=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],CI);
_.G(CI,"ytd-sponsorships-live-chat-header-renderer",function(){if(mVl!==void 0)return mVl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return mVl=f},{mode:1});var yz=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.y(yz,_.U);yz.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]]"}}}}}};
yz.prototype.onCtaButtonClick=function(){var f,R=_.t((f=this.data)==null?void 0:f.optInPrompt,_.z9);if(f=this.maybeGetButtonCommand(R)){var u;(u=_.wR())==null||u.clickCommand(f)}};
yz.prototype.maybeGetButtonCommand=function(f){return!f||!f.command||_.t(f.command,LJF)===void 0&&_.t(f.command,NmC)===void 0?null:f.command};
yz.prototype.shouldHideOptinPrompt=function(f,R){return!f||R};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],yz.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yz.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yz.prototype,"modern",void 0);yz=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],yz);
_.G(yz,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(wuf!==void 0)return wuf;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return wuf=f},{mode:1});var Qvf;var d3=function(){return _.U.apply(this,arguments)||this};
_.y(d3,_.U);d3.prototype.onContextMenuClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
d3.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))};
d3.prototype.isDeletedChanged=d3.prototype.isDeletedChanged;_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],d3.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],d3.prototype,"data",void 0);_.B([_.qM("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],d3.prototype,"isDeletedChanged",null);d3=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],d3);
_.G(d3,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Qvf!==void 0)return Qvf;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Qvf=f},{mode:1});var ND=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return f};
_.y(ND,_.U);_.X=ND.prototype;
_.X.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"}}}};
_.X.handleLiveChatAction=function(f){_.t(f,BBC)?this.handleMarkChatItemAsDeletedAction(_.t(f,BBC)):_.t(f,GDI)&&this.handleRemoveChatItemAction(_.t(f,GDI))};
_.X.handleLiveChatActions=function(f){f.forEach(this.handleLiveChatAction,this)};
_.X.handleMarkChatItemAsDeletedAction=function(f){var R=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(O,c){var h=Object.keys(O)[0];Object.values(O)[0].id===f.targetItemId&&R.markAsDeleted("data.items",c,h,f.deletedStateMessage,f.showOriginalContentMessage)})};
_.X.handleRemoveChatItemAction=function(f){var R=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(O,c){Object.values(O)[0].id===f.targetItemId&&R.splice("data.items",c,1)})};
_.X.markAsDeleted=function(f,R,u,O,c){f=[f,R,u].join(".");this.set(f+".deletedStateMessage",O);this.set(f+".showOriginalContentMessage",c)};
_.B([_.I(),_.S("design:type",Object)],ND.prototype,"data",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ND.prototype,"ytActionHandlerBehavior",void 0);ND=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],ND);
_.G(ND,"yt-live-chat-item-display-list-renderer",function(){if(VZf===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;nJf===void 0&&(nJf=document.createElement("template"));var O=nJf;u.call(R,O.content.cloneNode(!0),f.content.firstChild);VZf=f}f=VZf;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var WUG;var EUl,tcf=function(){if(EUl!==void 0)return EUl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;WUG===void 0&&(WUG=document.createElement("template"));var O=WUG;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return EUl=f};var LI=function(){var f=_.U.apply(this,arguments)||this;f.isHeader=!1;return f};
_.y(LI,_.U);LI.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Vy.Object.defineProperties(LI,{template:{configurable:!0,enumerable:!0,get:function(){return tcf()}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LI.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LI.prototype,"isHeader",void 0);LI=_.B([_.DO({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],LI);_.G(LI,"yt-live-chat-item-display-renderer",function(){return tcf()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var C8I,yPA,puA,bHf;
C8I={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}};yPA={home:"eohps",search:"eosps",watch:"eowps"};_.dVl=["watch","search","home"];
_.bg=function(){this.JSC$12171_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12171_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Tf("PRECONSTRUCTION_DELAY",0);this.signals_=_.TC();this.targetPage_=""};
_.bg.prototype.init=function(f,R){f=f===void 0?"":f;R=R===void 0?null:R;if(this.JSC$12171_isInitialized_)this.abort();else if(this.JSC$12171_isInitialized_=!0,f&&_.Ndl(this,f),R){var u=_.H1(this.signals_,"pcl")?0:10,O=function(){for(var c=0,h;h=_.dVl[c++];)h!=f&&h!=R&&this.pendingPages_.push(h);_.LUH(this)}.bind(this);
this.signals_.parkOrScheduleJob(O,u,"pcl")}};
_.bg.prototype.abort=function(){this.fragmentJobId_&&(_.JA.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);bHf(this)};
_.Ndl=function(f,R){f.JSC$12171_isInitialized_&&!f.targetPage_&&(f.targetPage_=R,puA(f,R),f.isInitialPass_=!1,puA(f,R),f.signals_.processSignal(yPA[f.targetPage_]),bHf(f),_.LUH(f))};
_.LUH=function(f){f.pendingPages_.length&&!f.pagePreparerJobId_&&(f.pagePreparerJobId_=_.dJ(_.JA,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Ndl(this,this.pendingPages_.shift())}.bind(f),f.DEFAULT_DELAY_))};
puA=function(f,R){if(R=C8I[R])for(var u in R){var O=!1,c=u;u.charAt(0)=="~"&&(O=!0,c=u.substring(1));var h=R[u];h=typeof h=="object"?h:{count:h};R[u]=h;h.componentName=c;h.count>0&&(f.isInitialPass_?O||f.isSeenDuringInitialPass_[c]||(f.JSC$12171_queue_.push({componentName:c,count:1,signals:h.signals}),f.isSeenDuringInitialPass_[c]=!0,h.count--):f.JSC$12171_queue_.push(h))}};
bHf=function(f){f.JSC$12171_queue_.length=0;f.targetPage_="";f.isInitialPass_=!0;f.signals_.processSignal("eop")};
_.bg.getInstance=function(){return _.c9(_.bg)};var jvF=function(){this.signals=_.TC();this.init()};
jvF.prototype.startPreconstruction=function(){_.bg.getInstance().init(_.Hh("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
jvF.prototype.init=function(){DVt(this);window.Polymer&&ZtG&&fse();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var f=_.Oe.ytcsi;if(f&&f.gt&&(f=f.gt())&&f.tick&&(f.tick.aft>0||f.tick.pbs>0)&&(_.Hh("IS_HOMEPAGE_COLD")||_.Hh("IS_RESULTS_PAGE_COLD")||_.Hh("IS_WATCH_PAGE_COLD"))){JPF(this);break a}aHt(V4X,this.onNotifications,this)}};
var DVt=function(f){var R=function(){f.signals.processSignal("dl")};
document.readyState==="complete"?(_.UC(Error("rh"),"WARNING"),R()):_.xLh(window,"load",R)};
jvF.prototype.onNotifications=function(f){f.timer||(_.Hh("IS_HOMEPAGE_COLD")||_.Hh("IS_RESULTS_PAGE_COLD")||_.Hh("IS_WATCH_PAGE_COLD"))&&JPF(this)};
var JPF=function(f){f.signals.parkOrScheduleJob(function(){f.signals.processSignal("eocs")},10,"eor")};
new jvF;var pI,jX=function(){return _.w_.apply(this,arguments)||this};
_.y(jX,_.w_);_.X=jX.prototype;_.X.enableActiveViewMeasurement=function(f){if(this.isActiveViewEnabled(f)){var R=this.getUrlPrefixesFromCommand(f.viewableCommands);f=this.getUrlPrefixesFromCommand(f.endOfSessionCommands);if(!pI){var u=_.RV("custom_active_view_tos_timeout_ms");pI=u>0&&u!==36E5?new tjt(this.getVersion(),u):new tjt(this.getVersion())}yRD(pI,this.hostElement);doq(pI,this.hostElement,R,f)}};
_.X.stopActiveViewMeasurement=function(){pI&&yRD(pI,this.hostElement)};
_.X.isActiveViewEnabled=function(f){return!!f&&(this.hasAtLeastOneUrl(f.viewableCommands)||this.hasAtLeastOneUrl(f.endOfSessionCommands))};
_.X.hasAtLeastOneUrl=function(f){return!!f&&f.length>0&&f[0].loggingUrls!=null&&f[0].loggingUrls.length>0};
_.X.getVersion=function(){var f=_.Tf("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(f==null?void 0:f.length)===2?f[1]:null};
_.X.getUrlPrefixesFromCommand=function(f){if(!f)return[];var R=[];f=_.Z(f);for(var u=f.next();!u.done;u=f.next())if(u=u.value,u.loggingUrls){u=_.Z(u.loggingUrls);for(var O=u.next();!O.done;O=u.next())O=O.value,O.baseUrl&&R.push(O.baseUrl)}return R};
jX=_.B([_.mt()],jX);var DZ=[jX.prototype];var JE=function(){return _.w_.apply(this,arguments)||this};
_.y(JE,_.w_);_.Vy.Object.defineProperties(JE.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_entity_store_from_dependency_injection")?_.xs():_.sP()}}});
JE=_.B([_.mt()],JE);_.zH=[N7.prototype,JE.prototype];var zRC=["ytd-rich-shelf-renderer"],TH=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;f.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";f.followUpDialogPromise=null;f.followUpDialogPromiseResolve=null;f.followUpDialogPromiseReject=null;return f};
_.y(TH,_.w_);_.X=TH.prototype;_.X.dismissibleItemIsDismissedChanged_=function(f){_.E("kevlar_fluid_dismiss")&&(f?_.ul(this.hostElement,"yt-dismissible-item-dismissed"):_.ul(this.hostElement,"yt-dismissible-item-undismissed"))};
_.X.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.X.dismissibleItemReset_=function(){var f=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 _.ah(function(R,u){f.followUpDialogPromiseResolve=R;f.followUpDialogPromiseReject=u});
_.ul(this.hostElement,"yt-enable-lockup-interaction")};
_.X.dismissibleItemOnYtServiceRequestSent_=function(f,R){R.actions&&this.dismissibleItemProcessActions(R.actions,f)};
_.X.dismissibleItemOnRequestSent=function(f){if(_.E("web_button_rework"))for(var R=_.Z(f.detail),u=R.next();!u.done;u=R.next()){var O=void 0;(u=(O=_.t(u.value,_.AH))==null?void 0:O.actions)&&this.dismissibleItemProcessActions(u,f)}};
_.X.dismissibleItemOnCommandSent=function(f,R){R&&this.dismissibleItemProcessActions(R,f)};
_.X.setAndGetDismissedContentId=function(f){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+f};
_.X.replayDismissAction=function(f){this.dismissibleItemProcessActions([f])};
_.X.dismissibleItemProcessActions=function(f,R){for(var u=0;u<f.length;u++){var O=f[u],c=void 0;((c=_.t(O,_.kE))==null?0:c.commands)&&this.dismissibleItemProcessActions(_.t(O,_.kE).commands,R);if(_.t(O,_.WY)){if(c=_.t(O,_.WY),!c.replaceParentSection||zRC.includes(this.hostElement.nodeName.toLowerCase()))_.E("web_see_fewer_shorts_reactive_dismissal")&&c.groupDismissal&&Jcq(this,c.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(c),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.aA("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:O})),O=void 0,(O=R)==null||O.stopPropagation()}else if(_.t(O,YYH))this.dismissibleItemHandleHideEnclosingAction_(),O=void 0,(O=R)==null||O.stopPropagation();else if(_.t(O,lYi))_.E("web_see_fewer_shorts_reactive_dismissal")&&(O=_.t(O,lYi),c=void 0,((c=O)==null?0:c.targetGroupId)&&Jcq(this,{targetGroupId:O.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.aA("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),O=void 0,(O=R)==null||O.stopPropagation();else if(_.t(O,_.AH))(O=_.t(O,_.AH).actions)&&_.ZW(this.hostElement,O,this.hostElement),O=void 0,(O=R)==null||O.stopPropagation();else{var h=c=void 0;((c=_.t(O,_.GL))==null?void 0:c.signal)!=="TELL_US_WHY"||((h=_.t(O,_.GL))==null?0:h.targetId)&&_.E("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),O=void 0,(O=R)==null||O.stopPropagation())}}};
_.X.dismissibleItemOnYtServiceRequestCompleted_=function(f,R){var u=this.get("feedbackResponses.0.followUpDialog",R.data);u?this.followUpDialogPromiseResolve(u):R.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(R.actions,f)};
_.X.dismissibleItemHandleReplaceEnclosingAction_=function(f){this.dismissedRenderer=f.item;this.isDismissed=!0;var R=null;(R=_.b(this.hostElement).querySelector("#dismissed"))&&_.su(this,function(){_.YM(R)});
_.ul(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.X.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.X.dismissibleItemHandleUndoFeedbackAction_=function(){_.ul(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.X.dismissibleItemHandleTellUsWhySignalAction_=function(){var f=this;this.followUpDialogPromise.then(function(R){f.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:R}})})};
TH.prototype.dismissibleItemOnYtServiceRequestCompleted_=TH.prototype.dismissibleItemOnYtServiceRequestCompleted_;TH.prototype.dismissibleItemOnCommandSent=TH.prototype.dismissibleItemOnCommandSent;TH.prototype.dismissibleItemOnRequestSent=TH.prototype.dismissibleItemOnRequestSent;TH.prototype.dismissibleItemOnYtServiceRequestSent_=TH.prototype.dismissibleItemOnYtServiceRequestSent_;TH.prototype.dismissibleItemDataChanged_=TH.prototype.dismissibleItemDataChanged_;
TH.prototype.dismissibleItemIsDismissedChanged_=TH.prototype.dismissibleItemIsDismissedChanged_;_.B([_.z(_.S$),_.S("design:type",Object)],TH.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],TH.prototype,"ytdReduxBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],TH.prototype,"isDismissed",void 0);_.B([_.I(),_.S("design:type",Object)],TH.prototype,"dismissedRenderer",void 0);
_.B([_.qM("isDismissed"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean]),_.S("design:returntype")],TH.prototype,"dismissibleItemIsDismissedChanged_",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TH.prototype,"dismissibleItemDataChanged_",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],TH.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.B([_.Kf("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],TH.prototype,"dismissibleItemOnRequestSent",null);
_.B([_.Kf("yt-dismissible-item-action"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Array]),_.S("design:returntype")],TH.prototype,"dismissibleItemOnCommandSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],TH.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);TH=_.B([_.mt()],TH);_.HX=[_.S$,_.zH,TH.prototype];var I6=function(){var f=_.w_.apply(this,arguments)||this;f.disableGridStateAware=!1;f.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};f.currentGridClass="";return f};
_.y(I6,_.w_);I6.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.su(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var f=this.gridStateAwareGetElement();_.c2(f,"grid",!0)}};
I6.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
I6.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.b(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
I6.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var f="grid-disabled";else{f=_.D$H.getInstance();var R=this.get("pageSubtype");f=R&&beH.includes(R)?"grid-disabled":f.currentSnapState_?f.currentSnapState_.className:null}(R=this.gridStateAwareGetElement())&&f!==this.currentGridClass&&(f&&_.c2(R,f,!0),this.currentGridClass&&_.c2(R,this.currentGridClass,!1),this.currentGridClass=f)};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],I6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",String)],I6.prototype,"gridStateAwareSizingElementSelector",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],I6.prototype,"disableGridStateAware",void 0);I6=_.B([_.mt()],I6);_.MD=[I6.prototype,_.fq.YtActionHandlerBehavior];_.PX=new _.Vi("GUIDE_TOKEN");var eX;_.U7={};eX=function(){var f=_.w_.apply(this,arguments)||this;f.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 f};
_.y(eX,_.w_);_.X=eX.prototype;_.X.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.X.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var f=_.vh().resolve(_.Y8(_.PX));f&&(this.guidePersistentAndVisible=f.getGuidePersistentAndVisible(),this.activeEndpoint=f.getActiveEndpoint(),this.guideOpened=f.getGuideOpened(),this.miniGuideVisible=f.getMiniGuideVisible())};
_.X.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.X.handleGuideStateAction=function(f){this.guidePersistentAndVisible=f};
_.X.handleMiniGuideStateAction=function(f){this.miniGuideVisible=f};
_.X.handleGuideOpenedAction=function(f){this.guideOpened=f};
_.X.handleActiveEndpointAction=function(f){this.activeEndpoint=f};
eX.prototype.onActiveEndpointChange=eX.prototype.onActiveEndpointChange;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],eX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],eX.prototype,"guidePersistentAndVisible",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],eX.prototype,"miniGuideVisible",void 0);_.B([_.I(),_.S("design:type",Object)],eX.prototype,"activeEndpoint",void 0);
_.B([_.qM("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eX.prototype,"onActiveEndpointChange",null);_.B([_.I(),_.S("design:type",Boolean)],eX.prototype,"guideOpened",void 0);eX=_.B([_.mt()],eX);_.U7.YtdGuideStateAwareBehavior=[];_.U7.YtdGuideStateAwareBehavior.push(eX.prototype,_.fq.YtActionHandlerBehavior);var TdA=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],GH=function(){var f=_.w_.apply(this,arguments)||this;f.hoverJobId=0;f.JSC$12202_touched=!1;return f};
_.y(GH,_.w_);_.X=GH.prototype;_.X.created=function(){this.useExpandableTooltip=!TdA.includes(this.is)};
_.X.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.X.detached=function(){this.useExpandableTooltip=!1};
_.X.lockupOnDown=function(f){this.interactionElement&&!_.$G(_.$S(f),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.X.lockupOnUp=function(f){this.interactionElement&&!_.$G(_.$S(f),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.X.onTouchStart=function(){this.JSC$12202_touched=!0};
_.X.lockupOnMouseEnter=function(){var f=this,R=_.RV("kevlar_lockup_hover_delay",-1);this.JSC$12202_touched&&R>=0?(_.JA.cancelJob(this.hoverJobId),this.hoverJobId=_.JA.addJob(function(){f.lockupIsHovered=!0},8,R),this.JSC$12202_touched=!1):this.lockupIsHovered=!0};
_.X.lockupOnMouseLeave=function(){this.hoverJobId&&(_.JA.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.X.lockupOnPopupClosed=function(f,R){var u;((u=R.popupRenderer)==null?void 0:u.is)==="ytd-menu-popup-renderer"&&(f=R.popupRenderer.veData,R=_.z4(),f&&R&&_.xE(R,[f]))};
_.X.lockupOnLockupRequested=function(f){var R=f.detail.videoIds[0],u;f.detail&&R===((u=this.data)==null?void 0:u.videoId)&&(f.detail.returnValue=[this.data])};
_.X.lockupOnYtServiceRequestSent=function(f,R){if(f=R.actions)for(var u=0;u<f.length;u++){var O=f[u];if(O.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&R.ajaxPromise){var c=void 0,h=(c=_.t(R.endpoint,_.ji))==null?void 0:c.playlistId;c=void 0;O=(c=O.removedVideoId)!=null?c:"";iIC(_.Mk(),O,h)}else O.action==="ACTION_REMOVE_VIDEO"&&R.ajaxPromise&&(h=void 0,O=(h=O.setVideoId)!=null?h:"",_.rEl(_.Mk(),O))}};
_.X.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.X.lockupOnLockupEnabled=function(){if(!this.$){var f=_.vh().resolve(_.sz).getCurrentPage(),R=this.getParentRenderer?this.getParentRenderer():void 0;_.Ih(new _.ts("component not ready",this.is,this.isAttached,f==null?void 0:f.is,R==null?void 0:R.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
GH.prototype.lockupOnLockupEnabled=GH.prototype.lockupOnLockupEnabled;GH.prototype.lockupOnLockupDisabled=GH.prototype.lockupOnLockupDisabled;GH.prototype.lockupOnYtServiceRequestSent=GH.prototype.lockupOnYtServiceRequestSent;GH.prototype.lockupOnLockupRequested=GH.prototype.lockupOnLockupRequested;GH.prototype.lockupOnPopupClosed=GH.prototype.lockupOnPopupClosed;GH.prototype.lockupOnMouseLeave=GH.prototype.lockupOnMouseLeave;GH.prototype.lockupOnMouseEnter=GH.prototype.lockupOnMouseEnter;
GH.prototype.onTouchStart=GH.prototype.onTouchStart;GH.prototype.lockupOnUp=GH.prototype.lockupOnUp;GH.prototype.lockupOnDown=GH.prototype.lockupOnDown;_.B([_.I(),_.S("design:type",Object)],GH.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],GH.prototype,"lockupIsHovered",void 0);_.B([_.I(),_.S("design:type",Boolean)],GH.prototype,"lockupTouchTriggered",void 0);_.B([_.I(),_.S("design:type",Boolean)],GH.prototype,"useExpandableTooltip",void 0);
_.B([_.a4("#interaction"),_.S("design:type",Object)],GH.prototype,"interactionElement",void 0);_.B([_.Kf("down"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],GH.prototype,"lockupOnDown",null);_.B([_.Kf("up"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],GH.prototype,"lockupOnUp",null);
_.B([_.Kf("touchstart"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GH.prototype,"onTouchStart",null);_.B([_.Kf("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GH.prototype,"lockupOnMouseEnter",null);_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GH.prototype,"lockupOnMouseLeave",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],GH.prototype,"lockupOnPopupClosed",null);_.B([_.Kf("yt-lockup-requested"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],GH.prototype,"lockupOnLockupRequested",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],GH.prototype,"lockupOnYtServiceRequestSent",null);_.B([_.Kf("yt-disable-lockup-interaction"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GH.prototype,"lockupOnLockupDisabled",null);
_.B([_.Kf("yt-enable-lockup-interaction"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GH.prototype,"lockupOnLockupEnabled",null);GH=_.B([_.mt()],GH);_.BX=[GH.prototype];_.HHI={YtdReduxBehavior:[]};_.HHI.YtdReduxBehavior.push.apply(_.HHI.YtdReduxBehavior,_.zH);var o6=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;f.disableNowPlaying=!1;f.disableTooltips=!1;f.useHoveredProperty=!1;f.hovered=!1;f.isThumbnailHovered_=!1;f.addBackground=_.E("kevlar_thumbnail_bg");f.nowPlaying=!1;f.disableRounding=!1;f.size="small";return f};
_.y(o6,_.w_);_.X=o6.prototype;_.X.computeThumbnailOverlaySidePanelWidth_=function(f,R){return f-R};
_.X.computeSize=function(f,R){if(!this.disableRounding){if(!f&&!R)return"small";f=Math.max(f||0,R||0);return f>=256?"large":f>=96?"medium":"small"}};
_.X.computeFinalHoveredState_=function(f,R,u){return this.nowPlaying?!1:_.E("kevlar_thumbnail_fluid")&&f?R:u};
_.X.computeHoverOverlays_=function(f,R){return f&&R?R:void 0};
_.X.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.X.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.X.checkMiniplayer_=function(){var f;if(((f=this.data)==null?0:f.playlistSetVideoId)&&_.E("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{f=_.qk();var R=f.currentEndpoint;!this.disableNowPlaying&&R&&_.t(R,_.$7)&&this.data?(R=_.t(R,_.$7),this.nowPlaying=this.data.playlistId?R.playlistId===this.data.playlistId:R.videoId===this.data.videoId,this.isVideoPlaying=f==null?void 0:f.isVideoPlaying):this.nowPlaying=!1}};
o6.prototype.checkMiniplayer_=o6.prototype.checkMiniplayer_;o6.prototype.onMouseLeave_=o6.prototype.onMouseLeave_;o6.prototype.onMouseEnter_=o6.prototype.onMouseEnter_;o6.prototype.computeHoverOverlays_=o6.prototype.computeHoverOverlays_;o6.prototype.computeFinalHoveredState_=o6.prototype.computeFinalHoveredState_;o6.prototype.computeSize=o6.prototype.computeSize;o6.prototype.computeThumbnailOverlaySidePanelWidth_=o6.prototype.computeThumbnailOverlaySidePanelWidth_;
_.B([_.z(_.zH),_.S("design:type",Object)],o6.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],o6.prototype,"height",void 0);_.B([_.I(),_.S("design:type",Boolean)],o6.prototype,"bottomSidePanel",void 0);_.B([_.I(),_.S("design:type",Number)],o6.prototype,"width",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"disableNowPlaying",void 0);
_.B([_.I({selector:_.Jh}),_.S("design:type",Boolean)],o6.prototype,"miniplayerIsActive",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"disableTooltips",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"useHoveredProperty",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"hovered",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"isThumbnailHovered_",void 0);
_.B([_.I({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.S("design:type",Boolean)],o6.prototype,"finalHoveredState_",void 0);_.B([_.I({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.S("design:type",Number)],o6.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],o6.prototype,"addBackground",void 0);
_.B([_.I({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.S("design:type",Object)],o6.prototype,"hoverOverlays_",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],o6.prototype,"nowPlaying",void 0);_.B([_.I(),_.S("design:type",Boolean)],o6.prototype,"isVideoPlaying",void 0);_.B([_.I(),_.S("design:type",Object)],o6.prototype,"disableRounding",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.S("design:type",Object)],o6.prototype,"size",void 0);_.B([_.Kf("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o6.prototype,"onMouseEnter_",null);_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o6.prototype,"onMouseLeave_",null);
_.B([_.qM("data","disableNowPlaying","miniplayerIsActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o6.prototype,"checkMiniplayer_",null);o6=_.B([_.mt()],o6);var I4l=[o6.prototype];_.xi={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(f,R){return f+":"+_.cG(R)},
getPlayerListener_:function(f,R,u){f=this.getPlayerListenerKey_(f,R);R=this.playerListeners_.get(f);u&&this.playerListeners_.delete(f);return R},
savePlayerListener_:function(f,R){var u=R.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(f,R),u);return u},
listenToPlayerEvent:function(f,R,u){u=this.savePlayerListener_(R,u);f.addEventListener(R,u)},
listenToPlayerEvents:function(f,R){R.forEach(function(u,O){this.listenToPlayerEvent(f,O,u)}.bind(this))},
unlistenFromPlayerEvent:function(f,R,u){u=this.getPlayerListener_(R,u,!0);f.removeEventListener(R,u)},
unlistenFromPlayerEvents:function(f,R){R.forEach(function(u,O){this.unlistenFromPlayerEvent(f,O,u)}.bind(this))}}};
_.SX=function(){};_.Mck=new _.Vi("PLAYER_API_TOKEN");var P2h=!1,BXh,eWe=!1,xw5;var ie=function(f,R,u,O,c){_.d9.call(this);var h=this;this.playerId=R;this.webPlayerContextConfig=O;this.sf1=c;this.hmH=!1;this.api={};this.aYi=this.g53=null;this.w3F=new _.aV;this.nI={};this.y2q=this.zxF=this.elementId=this.auv=this.config=null;this.pup=!1;this.zO=this.ql3=null;this.zoW={};this.fsr=["onReady"];this.lastError=null;this.yHR=NaN;this.maW={};this.bLF=0;this.pb=this.targetElement=f;_.qG(this,this.w3F);P8E(this);u?this.bLF=setTimeout(function(){h.loadNewVideoConfig(u)},0):O&&(UVk(this),
eRG(this))};
_.y(ie,_.d9);ie.prototype.getId=function(){return this.playerId};
ie.prototype.loadNewVideoConfig=function(f){if(!this.isDisposed()){this.bLF&&(clearTimeout(this.bLF),this.bLF=0);var R=f||{};R instanceof hTl||(R=new hTl(R));this.config=R;this.setConfig(f);eRG(this);this.isReady()&&Gbf(this)}};
var UVk=function(f){var R;f.webPlayerContextConfig?R=f.webPlayerContextConfig.rootElementId:R=f.config.attrs.id;f.elementId=R||f.elementId;f.elementId==="video-player"&&(f.elementId=f.playerId,f.webPlayerContextConfig?f.webPlayerContextConfig.rootElementId=f.playerId:f.config.attrs.id=f.playerId);var u;((u=f.pb)==null?void 0:u.id)===f.elementId&&(f.elementId+="-player",f.webPlayerContextConfig?f.webPlayerContextConfig.rootElementId=f.elementId:f.config.attrs.id=f.elementId)};
ie.prototype.setConfig=function(f){this.auv=f;this.config=BdC(f);UVk(this);if(!this.zxF){var R;this.zxF=oUA(this,((R=this.config.args)==null?void 0:R.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)f=this.config.attrs,(R=f.width)&&this.pb&&(this.pb.style.width=TD(Number(R)||R,!0)),(f=f.height)&&this.pb&&(this.pb.style.height=TD(Number(f)||f,!0))};
var Gbf=function(f){if(f.config&&f.config.loaded!==!0)if(f.config.loaded=!0,!f.config.args||f.config.args.autoplay!=="0"&&f.config.args.autoplay!==0&&f.config.args.autoplay!==!1){var R;f.api.loadVideoByPlayerVars((R=f.config.args)!=null?R:null)}else f.api.cueVideoByPlayerVars(f.config.args)},SNf=function(f){var R=!0,u=f.getPlayerElement();
u&&f.config&&(R=u.dataset.version===xVf(f));return R&&!!_.Ph("yt.player.Application.create")},eRG=function(f){if(!f.isDisposed()&&!f.pup){var R=SNf(f);
if(R&&(f.getPlayerElement()?"html5":null)==="html5")f.y2q="html5",f.isReady()||$VF(f);else if(gUH(f),f.y2q="html5",R&&f.zO&&f.targetElement)f.targetElement.appendChild(f.zO),$VF(f);else{f.config&&(f.config.loaded=!0);var u=!1;f.ql3=function(){u=!0;var O=svC(f,"player_bootstrap_method")?_.Ph("yt.player.Application.createAlternate")||_.Ph("yt.player.Application.create"):_.Ph("yt.player.Application.create");var c=f.config?BdC(f.config):void 0;O&&O(f.targetElement,c,f.webPlayerContextConfig,f.sf1);$VF(f)};
f.pup=!0;R?f.ql3():(_.Um(xVf(f),f.ql3),(R=nUE(f))&&wsn(R||""),Vck(f)&&!u&&_.V4("yt.player.Application.create",null))}}};
ie.prototype.getPlayerElement=function(){var f=_.vM(document,this.elementId);!f&&this.pb&&this.pb.querySelector&&(f=this.pb.querySelector("#"+this.elementId));return f};
var $VF=function(f){if(!f.isDisposed()){var R=f.getPlayerElement(),u=!1;R&&R.getApiInterface&&R.getApiInterface()&&(u=!0);if(u){f.pup=!1;if(!svC(f,"html5_remove_not_servable_check_killswitch")){var O;if((R==null?0:R.isNotServable)&&f.config&&(R==null?0:R.isNotServable((O=f.config.args)==null?void 0:O.video_id)))return}YNG(f)}else f.yHR=setTimeout(function(){$VF(f)},50)}},YNG=function(f){P8E(f);
f.hmH=!0;var R=f.getPlayerElement();if(R){f.g53=vUk(f,R,"addEventListener");f.aYi=vUk(f,R,"removeEventListener");var u=R.getApiInterface();u=u.concat(R.getInternalApiInterface());for(var O=f.api,c=0;c<u.length;c++){var h=u[c];O[h]||(O[h]=vUk(f,R,h))}}for(var l in f.nI)f.nI.hasOwnProperty(l)&&f.g53&&f.g53(l,f.nI[l]);Gbf(f);f.zxF&&f.zxF(f.api);f.w3F.publish("onReady",f.api)},vUk=function(f,R,u){var O=R[u];
return function(){var c=_.yK.apply(0,arguments);try{return f.lastError=null,O.apply(R,c)}catch(h){if(u!=="sendAbandonmentPing")throw h.params=u,f.lastError=h,c=new _.ts("PlayerProxy error in method call",{error:h,method:u,playerId:f.playerId}),c.level="WARNING",c;}}},P8E=function(f){f.hmH=!1;
if(f.aYi)for(var R in f.nI)f.nI.hasOwnProperty(R)&&f.aYi(R,f.nI[R]);for(var u in f.maW)f.maW.hasOwnProperty(u)&&clearTimeout(Number(u));f.maW={};f.g53=null;f.aYi=null;R=f.api;for(var O in R)R.hasOwnProperty(O)&&(R[O]=null);R.addEventListener=function(c,h){f.addEventListener(c,h)};
R.removeEventListener=function(c,h){f.removeEventListener(c,h)};
R.destroy=function(){f.dispose()};
R.getLastError=function(){return f.getLastError()};
R.getPlayerType=function(){return f.getPlayerType()};
R.getCurrentVideoConfig=function(){return f.auv};
R.loadNewVideoConfig=function(c){f.loadNewVideoConfig(c)};
R.isReady=function(){return f.isReady()}};
ie.prototype.isReady=function(){return this.hmH};
ie.prototype.addEventListener=function(f,R){var u=this;this.isDisposed();var O=oUA(this,R);O&&(_.g7(this.fsr,f)||this.nI[f]||(R=iHf(this,f),this.g53&&this.g53(f,R)),this.w3F.subscribe(f,O),f==="onReady"&&this.isReady()&&setTimeout(function(){O(u.api)},0))};
ie.prototype.removeEventListener=function(f,R){this.isDisposed()||(R=oUA(this,R))&&this.w3F.unsubscribe(f,R)};
var oUA=function(f,R){var u=R;if(typeof R==="string"){if(f.zoW[R])return f.zoW[R];u=function(){var O=_.yK.apply(0,arguments),c=_.Ph(R);if(c)try{c.apply(_.Oe,O)}catch(h){throw O=new _.ts("PlayerProxy error when executing callback",{error:h}),O.level="ERROR",O;}};
f.zoW[R]=u}return u?u:null},iHf=function(f,R){var u=function(O){var c=function(){f.isDisposed();
if(!f.isDisposed())try{f.w3F.publish(R,O!=null?O:void 0)}catch(K){var l=new _.ts("PlayerProxy error when creating global callback",{error:K.message,event:R,playerId:f.playerId,data:O,originalStack:K.stack,componentStack:K.componentStack});l.level="WARNING";throw l;}};
if(svC(f,"web_player_publish_events_immediately"))c();else{var h=setTimeout(function(){c();_.dq.remove(f.maW,String(h))},0);
_.dq.add(f.maW,String(h),!0)}};
return f.nI[R]=u};
ie.prototype.getPlayerType=function(){return this.y2q||(this.getPlayerElement()?"html5":null)};
ie.prototype.getLastError=function(){return this.lastError};
var gUH=function(f){f.cancel();P8E(f);f.y2q=null;f.config&&(f.config.loaded=!1);var R=f.getPlayerElement();R&&(SNf(f)||!Vck(f)?f.zO=R:(R&&R.destroy&&R.destroy(),f.zO=null));f.targetElement&&_.Lp(f.targetElement)};
ie.prototype.cancel=function(){this.ql3&&_.SFD(xVf(this),this.ql3);clearTimeout(this.yHR);this.pup=!1};
ie.prototype.disposeInternal=function(){gUH(this);if(this.zO&&this.config&&this.zO.destroy)try{this.zO.destroy()}catch(R){var f=new _.ts("PlayerProxy error during disposal",{error:R});f.level="ERROR";throw f;}this.zoW=null;for(f in this.nI)this.nI.hasOwnProperty(f)&&delete this.nI[f];this.auv=this.config=this.api=null;delete this.targetElement;delete this.pb;_.d9.prototype.disposeInternal.call(this)};
var Vck=function(f){var R,u;f=(R=f.config)==null?void 0:(u=R.args)==null?void 0:u.fflags;return!!f&&f.indexOf("player_destroy_old_version=true")!==-1},xVf=function(f){return f.webPlayerContextConfig?f.webPlayerContextConfig.jsUrl:(f=f.config.assets)?f.js:""},nUE=function(f){return f.webPlayerContextConfig?f.webPlayerContextConfig.cssUrl:(f=f.config.assets)?f.css:""},svC=function(f,R){if(f.webPlayerContextConfig)var u=f.webPlayerContextConfig.serializedExperimentFlags;
else{var O;if((O=f.config)==null?0:O.args)u=f.config.args.fflags}return(u||"").split("&").includes(R+"=true")},BdC=function(f){for(var R={},u=_.Z(Object.keys(f)),O=u.next();!O.done;O=u.next()){O=O.value;
var c=f[O];R[O]=typeof c==="object"?_.dq.clone(c):c}return R};var nFP={},sBB="player_uid_"+(Math.random()*1E9>>>0);var $i=function(f,R,u,O,c,h){R=R===void 0?document.createElement("div"):R;this.webPlayerContextConfig=f;this.container=R;this.commandResolver=u;this.apiResolver=vFl();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.lj;O||h?rPi(this):fTC(this);this.pendingPlayerResponse=O;this.pendingWatchNextResponse=c;this.pendingPlayerVars=h;RWH(this)};
$i.prototype.loadVideoWithPlayerResponse=function(f,R,u){this.loadVideo(f,R,u)};
$i.prototype.loadVideoWithPlayerVars=function(f){return this.loadVideo(void 0,void 0,f)};
$i.prototype.destroy=function(f){if(f=_.vM(document,f))f=sBB+"_"+_.cG(f),(f=nFP[f])&&f.dispose()};
var Ozf=function(f,R){var u;_.k(function(O){if(O.nextAddress==1)return f.pendingWatchNextResponse=R,f.synchronousApi?(u=f.synchronousApi,O.jumpTo(2)):_.A(O,f.api,3);O.nextAddress!=2&&(u=O.yieldResult);uIi(f,u);f.pendingWatchNextResponse&&(u.updateVideoData({raw_watch_next_response:f.pendingWatchNextResponse}),f.pendingWatchNextResponse=void 0);_.KG(O)})},uIi=function(f,R){var u;
if(!(R==null?0:(u=R.isReady)==null?0:u.call(R))){var O;f=new _.ts("playerApi is falsey",{synchronousApi:f.synchronousApi,apiResolved:f.apiResolver.resolved,playerApiUndefined:R===void 0,playerApiNull:R===null,playerApiReady:(R==null?void 0:(O=R.isReady)==null?void 0:O.call(R))===!0,playerApiMethods:R?Object.keys(R):[]});_.TL(f)}},ccG=function(f,R){if(typeof f[R]==="function")return f[R]()},XvF=function(f){var R=window,u,O=(u=R.ytplayer)==null?void 0:u.bootstrapPlayerContainer;
if((u=O==null?void 0:O.firstElementChild)&&_.Pb(u,"html5-video-player")){var c,h,l=(c=R.ytplayer)==null?void 0:(h=c.bootstrapWebPlayerContextConfig)==null?void 0:h.contextId;c=f.webPlayerContextConfig.contextId;if(l&&l===c){O!==f.container&&(O=!1,ccG(u,"getPlayerState")===2&&(O=!0),f.container.appendChild(u),O||ccG(u,"playVideo"));var K;if((K=R.ytplayer)==null?0:K.bootstrapPlayerResponse)f.bootstrapPlayerResponse=R.ytplayer.bootstrapPlayerResponse}}},RWH=function(f){var R,u,O,c,h;
_.k(function(l){if(l.nextAddress==1)return f.pageReadyOrDataAvailable?l.jumpTo(2):_.A(l,f.pageReadyOrDataAvailableResolver.promise,2);if(l.nextAddress!=4)return!_.E("kevlar_player_unified_player_loading")||Uwq()&&GjD()?l.jumpTo(4):_.A(l,$w2(),4);XvF(f);if(f.pendingPlayerResponse||f.pendingPlayerVars)R=gFD(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse&&(R.loaded=!0),f.bootstrapPlayerResponse=void 0;
u=YSq(f.container,R,f.webPlayerContextConfig);((O=R)==null?0:O.loaded)&&f.pendingWatchNextResponse?(Ozf(f,f.pendingWatchNextResponse),f.pendingPlayerResponse=void 0,f.pendingPlayerVars=void 0):hWI(f);c=function(K){u.removeEventListener("onReady",c);f.synchronousApi=K;f.apiResolver.resolve(K)};
u.addEventListener("onReady",c);f.commandResolver!==void 0&&(h=f.commandResolver,u.addEventListener("innertubeCommand",function(K){h(K)}));
_.KG(l)})};
$i.prototype.loadVideo=function(f,R,u){var O=this,c,h,l,K,q,F,w,m,W;return _.k(function(C){if(C.nextAddress==1)return O.pendingPlayerResponse=f,O.pendingWatchNextResponse=R,O.pendingPlayerVars=u,rPi(O),O.synchronousApi?(c=O.synchronousApi,C.jumpTo(2)):_.A(C,O.api,3);C.nextAddress!=2&&(c=C.yieldResult);uIi(O,c);l=new Promise(function(d){h=d});
K=function(){var d=c.getPlayerResponse();d&&(c.removeEventListener("onVideoDataChange",K),h(d))};
c.addEventListener("onVideoDataChange",K);if(O.pendingPlayerResponse||O.pendingPlayerVars)O.pendingPlayerResponse&&O.pendingPlayerResponse===O.bootstrapPlayerResponse?(h(O.pendingPlayerResponse),O.pendingWatchNextResponse&&Ozf(O,O.pendingWatchNextResponse)):(q=gFD(O.pendingPlayerResponse,O.pendingWatchNextResponse,O.pendingPlayerVars),(W=(F=O.pendingPlayerResponse)==null?void 0:(w=F.playerConfig)==null?void 0:(m=w.playbackStartConfig)==null?void 0:m.startPaused)?c.cueVideoByPlayerVars(q.args):c.loadVideoByPlayerVars(q.args)),
hWI(O),O.bootstrapPlayerResponse=void 0;return C.return(l)})};
var fTC=function(f){if(document.readyState==="complete"||document.readyState==="interactive")rPi(f);else{var R=function(){document.removeEventListener("DOMContentLoaded",R);rPi(f)};
document.addEventListener("DOMContentLoaded",R)}},rPi=function(f){f.pageReadyOrDataAvailable=!0;
f.pageReadyOrDataAvailableResolver.resolve()},hWI=function(f){f.pendingPlayerResponse=void 0;
f.pendingWatchNextResponse=void 0;f.pendingPlayerVars=void 0};
_.Vy.Object.defineProperties($i.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var g3=function(f){p5.call(this,f===void 0?"document_active":f);var R=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){R.transition("document_disposed",{event:u})});
window.addEventListener("beforeunload",function(u){R.transition("document_disposed_preventable",{event:u})});
window.addEventListener("unload",function(u){R.transition("document_disposed",{event:u});R.hasRun=new Map})};
_.y(g3,p5);
g3.prototype.runPreventableDispose=function(f,R){if(!this.hasRun.get("document_disposed_preventable")){f(R==null?void 0:R.event);var u,O;if((R==null?0:(u=R.event)==null?0:u.defaultPrevented)||(R==null?0:(O=R.event)==null?0:O.returnValue)){R.event.returnValue||(R.event.returnValue=!0);R.event.defaultPrevented||R.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")};
g3.prototype.runDispose=function(f,R){this.hasRun.get("document_disposed")?this.transition("document_active"):(f(R==null?void 0:R.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
g3.prototype.runFlush=function(f,R){f(R==null?void 0:R.event);this.transition("document_active")};
g3.prototype.runActive=function(){};var s7=function(f){p5.call(this,f===void 0?"document_visibility_unknown":f);var R=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"?R.transition("document_visible",{event:u}):R.transition("document_hidden",
{event:u})});
_.E("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(u){R.transition("document_backgrounded",{event:u})}),window.addEventListener("focus",function(u){R.transition("document_foregrounded",{event:u})}))};
_.y(s7,p5);s7.prototype.runVisible=function(f,R){f(R==null?void 0:R.event);_.E("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
s7.prototype.runHidden=function(f,R){f(R==null?void 0:R.event);_.E("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
s7.prototype.runBackgrounded=function(f,R){f(R==null?void 0:R.event)};
s7.prototype.runForegrounded=function(f,R){f(R==null?void 0:R.event)};var nI=function(){this.teardownLifecycle=new g3;this.visibilityLifecycle=new s7};
nI.prototype.install=function(){var f=_.yK.apply(0,arguments),R=this;f.forEach(function(u){R.teardownLifecycle.install(u)});
f.forEach(function(u){R.visibilityLifecycle.install(u)})};var Vz=function(){nI.call(this);var f={};this.install((f.document_disposed={callback:this.abortSlisAndFlush},f));_.E("combine_ve_grafts")&&(f={},this.install((f.document_disposed={callback:this.flushInteractionLoggingAttachVes},f)));f={};this.install((f.flush_logs={callback:this.logFinalPayload},f));_.E("web_log_cfg_cee_ks")||_.dJ(_.JA,Zzt)};
_.y(Vz,nI);var izP=function(){Vz.loggingInstance||(Vz.loggingInstance=new Vz);return Vz.loggingInstance};
Vz.prototype.logFinalPayload=function(){if(_.E("web_fp_via_jspb")){var f=new MIf,R=_.z4();R&&_.FH(f,1,R);R=_.E("jspb_sparse_encoded_pivot")?new yL([{}]):new yL;_.cz(R,380,POC,f);M4P("finalPayload",R);_.E("web_fp_via_jspb_and_json")&&_.Jr("finalPayload",{csn:_.z4()})}else _.Jr("finalPayload",{csn:_.z4()})};
Vz.prototype.abortSlisAndFlush=function(){SdH(Ud);ei!=null&&ei.flush()};
Vz.prototype.flushInteractionLoggingAttachVes=function(){qcY(_.wR())};
var Zzt=function(){var f=_.Tf("CLIENT_EXPERIMENT_EVENTS");if(f){var R=el2();f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,R(u)&&_.Jr("genericClientExperimentEvent",{eventType:u});delete _.J1.CLIENT_EXPERIMENT_EVENTS}};var lTA={};
lTA.YtPlayerBehavior=[_.xi.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 f=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.lj;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;rc5(function(){f.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.zO(this,"pan-down"),_.E("kevlar_pinch_fullscreen")&&_.WT().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.E("kevlar_pinch_fullscreen")&&_.WT().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(f,R,u){var O=this;rx(this.useUnifiedPlayer_());if(this.mainAppPlayer_)rx(!1,"MainAppPlayer already created.");else{var c=_.E("kevlar_player_container_query_killswitch")?this.$.container:_.b(this.hostElement).querySelector("#container");this.mainAppPlayer_=new $i(this.getWebPlayerContextConfig_(),c,function(h){return _.qO(h,O.hostElement)},f,R,u);
this.mainAppPlayer_.api.then(function(h){O.player_=h;O.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&q7I.resolve(h)})}},
loadVideoWithPlayerResponse:function(f,R){var u=this;if(this.useUnifiedPlayer_()){var O=this.watchNextData,c,h=(c=f.videoDetails)==null?void 0:c.videoId,l,K,q;(c=(l=this.watchNextData)==null?void 0:(K=l.currentVideoEndpoint)==null?void 0:(q=K.watchEndpoint)==null?void 0:q.videoId)&&h!=c&&(O=void 0,_.E("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(f,O,R):this.createMainAppPlayer_(f,O,R);this.mainAppPlayer_.api.then(function(){_.ul(u.hostElement,
"yt-player-updated")})}else this.update(Hzn(f,R))},
loadVideoWithPlayerVars:function(f){var R=this;this.useUnifiedPlayer_()?(_.E("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(f):this.createMainAppPlayer_(void 0,void 0,f),this.mainAppPlayer_.api.then(function(){_.ul(R.hostElement,"yt-player-updated")})):this.update({args:f})},
update:function(f){var R=this;if(this.useUnifiedPlayer_())rx(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(f);var u=ro7(f.args);u&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==u&&Object.assign(f.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(f).then(function(O){_.ul(R.hostElement,"yt-player-updated",_.E("kevlar_player_updated_obsolete_player_killswitch")?
O:void 0)})}_.H5(new _.ts("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.getPlayerPromise(),2);u=O.yieldResult;if(!u)throw Error("th");f&&R.updatePlayerPlaylist_(f);_.KG(O)})},
acquireApi_:function(f){var R=this;if(this.useUnifiedPlayer_())rx(!1,"Invalid method call in kevlar_unified_player.");else return _.JA.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(rx(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(u){R.shouldAutoplay_(f)?u.loadVideoByPlayerVars(f.args):u.cueVideoByPlayerVars(f.args)})):this.initPlayerPromise_=this.initPlayerContainer_(f),this.initPlayerPromise_},
initPlayerContainer_:function(f){var R=this;if(this.useUnifiedPlayer_())rx(!1,"Invalid method call in kevlar_unified_player.");else return rx(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Ih(Error("uh")),rx(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.E("kevlar_player_container_query_killswitch")?this.$.container:_.b(this.hostElement).querySelector("#container"),$w2().then(function(){var u=R.initPlayer_(f);R.playerResolver_.resolve(u);
return u})},
onPlayerReady_:function(f,R){this.useUnifiedPlayer_()?rx(!1,"Invalid method call in kevlar_unified_player."):(f.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&q7I.resolve(f),R(f))},
maybeCallApiMethodOnElement_:function(f,R){if(typeof f[R]==="function")return f[R]()},
maybeAdoptBootstrapPlayer_:function(){var f=window,R,u=(R=f.ytplayer)==null?void 0:R.bootstrapPlayerContainer;if((R=u==null?void 0:u.firstElementChild)&&R.classList.contains("html5-video-player")){var O,c,h=(O=f.ytplayer)==null?void 0:(c=O.bootstrapWebPlayerContextConfig)==null?void 0:c.contextId;O=this.getWebPlayerContextConfig_().contextId;if(h&&h===O){u!==this.playerContainer_&&(u=!1,this.maybeCallApiMethodOnElement_(R,"getPlayerState")===2&&(u=!0),this.playerContainer_.appendChild(R),u||this.maybeCallApiMethodOnElement_(R,
"playVideo"));var l;if((l=f.ytplayer)==null?0:l.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=f.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(f){var R=this;if(this.useUnifiedPlayer_())rx(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(u){R.maybeAdoptBootstrapPlayer_();var O=f?ITh(f):void 0;O&&O==R.bootstrapPlayerResponse_&&(f.loaded=!0);O=R.playerContainer_;var c=R.getWebPlayerContextConfig_();O=YSq(O,f,c);R.player_=O;R.onPlayerReadyEvent_=R.onPlayerReady_.bind(R,R.player_,u);R.player_.addEventListener("onReady",R.onPlayerReadyEvent_);R.player_.addEventListener("innertubeCommand",
R.onPlayerInnerTubeCommand_.bind(R))})},
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(f){f.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(f){f.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var f=_.vh().resolve(_.sz).getCurrentPage();f&&f.getScrollTop()<=0?_.zO(this,"pan-down"):_.zO(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(f){f.isFullscreen()||f.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(f){f.isFullscreen()&&f.toggleFullscreen()})},
updatePlayerPlaylist_:function(f){var R=this,u,O,c;return _.k(function(h){if(h.nextAddress==1)return u=_.vh().resolve(_.Y8(_.Ji)),O=!!(u&&u.playlistComponent&&u.playlistComponent.loopOn),_.A(h,R.getPlayerPromise(),2);var l=c=h.yieldResult,K=l.updatePlaylist,q=[];if(_.E("kevlar_player_playlist_use_local_index")){var F,w;var m=(w=(F=f.localCurrentIndex)!=null?F:f.currentIndex)!=null?w:0}else{var W;m=(W=f.currentIndex)!=null?W:0}if(f.contents)for(F=0;F<f.contents.length;F++)if((w=f.contents[F])&&w.playlistPanelVideoRenderer)if($kq(w)){w=
w.playlistPanelVideoRenderer;W="";w.shortBylineText&&(W=_.$Z(w.shortBylineText));var C="";w.title?C=_.$Z(w.title):w.unplayableText&&(C=_.$Z(w.unplayableText));q.push({author:W,title:C,encrypted_id:w.videoId})}else F<m&&--m;K.call(l,{index:m,list:f.playlistId?f.playlistId:"",loop:O,playlist_title:f.title,playlist_length:q.length,video:q,fetch:0,external_list:"1",title:f.title?f.title:"",playlist_author:f.ownerName?_.$Z(f.ownerName):void 0});_.KG(h)})},
focusOnPlayer:function(){_.su(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var f=this.playerContainer_.querySelector(".html5-video-player");f&&(_.Yi(_.vh().resolve(_.LL)),f.focus())}})},
preparePlayer:function(){var f=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(R){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")R();else{var u=function(){document.removeEventListener("DOMContentLoaded",u);R()};
document.addEventListener("DOMContentLoaded",u)}})).then(function(){return $w2()}).then(function(){f.initPlayerPromise_||f.preparePlayerJobId_||(f.preparePlayerJobId_=_.dJ(_.JA,function(){f.initPlayerPromise_||(f.initPlayerPromise_=f.initPlayerContainer_())}))}):_.H5(new _.ts("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(f){this.useUnifiedPlayer_()?rx(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(f)||(f.args.autoplay="0")},
shouldAutoplay_:function(f){if(this.useUnifiedPlayer_())rx(!1,"Invalid method call in kevlar_unified_player.");else{var R=this.get("args.el",f);return R&&R!="detailpage"&&this.isMiniplayerActive_()||R&&(R=="sponsorshipsoffer"||R=="handlesclaiming")&&this.get("args.autoplay",f)=="0"?!1:(f=ITh(f))&&this.get("playerConfig.playbackStartConfig.startPaused",f)?!1:!0}},
isMiniplayerActive_:function(){return _.vh().resolve(_.MS).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var f=this.getPlayer();if(f){var R=f.getPlayerState();_.E("kevlar_player_check_ad_state_on_stop")&&(R=f.getPlayerState(f.getPresentingPlayerType()));R!=5&&f.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(f,R,u){u=u===void 0?!1:u;var O=this,c,h,l,K;return _.k(function(q){if(q.nextAddress==1)return R||(R=O.hostElement),c=O.useUnifiedPlayer_()?!!O.mainAppPlayer_:!!O.initPlayerPromise_,c?_.A(q,O.getPlayerPromise(),2):(u?f.insertBefore(R,f.firstChild):f.appendChild(R),q.return());h=q.yieldResult;l=h.getPlayerState(h.getPresentingPlayerType());K=!1;if(l==-1||l==1||l==3)K=!0;u?f.insertBefore(R,f.firstChild):f.appendChild(R);K&&h.playVideo();h.setSize(NaN,NaN);_.KG(q)})},
watchNextDataChanged_:function(f){var R=this;f&&(this.useUnifiedPlayer_()&&_.E("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Ozf(this.mainAppPlayer_,f):this.getPlayerPromise().then(function(u){u.updateVideoData(R.computeWatchNextPlayerVars_(f))}))},
computeWatchNextPlayerVars_:function(f){if(this.useUnifiedPlayer_()&&_.E("kevlar_unified_player_update_watch_next_killswitch"))rx(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:f}},
maybeSendAbandonmentPing_:function(){var f=this.getPlayer();f&&f.getPlayerState()!=5&&f.getPlayerState()!=0&&f.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var f=_.Tf("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(f=Object.assign({},f),f.rootElementId=this.playerId);f.serializedExperimentIds&&f.serializedExperimentFlags||_.Ih(Error("vh"));return f},
hasWebPlayerContextConfig_:function(){return!!_.Tf("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(f){this.useUnifiedPlayer_()?rx(!1,"Invalid method call in kevlar_unified_player."):_.qO(f,this.hostElement)},
useUnifiedPlayer_:function(){var f=_.E("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.E("kevlar_unified_player")||f}}];var kjF={};kjF.YtPlaylistPanelBehavior=[_.r.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(f){f=f.detail;if(f.actions.loop!=void 0||f.actions["yt-icons:loop"]!=void 0)this.loopOn=f.actions.loop||f.actions["yt-icons:loop"];if(f.actions.shuffle!=void 0||f.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=f.actions.shuffle||f.actions["yt-icons:shuffle"]},
setMenuData_:function(f){if(!f||!f.playlistButtons||f.isInfinite)return null;for(var R=f.playlistButtons.menuRenderer.topLevelButtons,u=R.length,O=0;O<u;O++)if(R[O].toggleButtonRenderer){var c=R[O].toggleButtonRenderer;c.defaultIcon.iconType=="LOOP"&&this.loopOn?c.isToggled=this.loopOn:c.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(c.isToggled=this.shuffleOn)}return f.playlistButtons}}];var KTt=function(f){Om.call(this,f,132);this.isDocument=f===document.documentElement};
_.y(KTt,Om);KTt.prototype.calculateScrollDelta=function(f,R,u){var O=0;f<R?O=f<R-100?-48:-8:f>R+u&&(O=f>R+u+100?48:8);return O};
KTt.prototype.JSC$9295_onMouseMove=function(f){this.isDocument||(f.clientX=f.event_.pageX,f.clientY=f.event_.pageY);Om.prototype.JSC$9295_onMouseMove.call(this,f)};var vX=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;f.scrollElement=document.documentElement;f.JSC$12261_dragListGroup=null;f.dragScrollSupport=null;f.onDraggerCreated=function(R){var u=R.JSC$9291_dragger;u.scrollTarget_=f.scrollElement;R=R.draggerEl;u&&R.menuOpened&&u.setEnabled(!1)};
f.onDragStart=function(R){var u=R.draggerEl;R=R.currDragItem;var O=Object.assign({},R==null?void 0:R.data);O.trackingParams=void 0;u.data=O;u.style.position="absolute";u.style.width=(R==null?void 0:R.clientWidth)+"px";u.style.zIndex="2030";u.onDrag&&u.onDrag();_.E("web_owner_document_fallback_killswitch")?(R=document.querySelector("ytd-app"))&&_.b(R).appendChild(u):(R=_.jF(u),(O=R.querySelector("ytd-app"))?_.b(O).appendChild(u):R.body.appendChild(u));f.dragScrollSupport=new KTt(f.scrollElement);f.dragScrollSupport.horizontalScrolling_=
!1;u=f.dragScrollSupport;u.constrainScroll_=!!u.margin_&&!1};
f.onDrop=function(R){f.handleDrop(R);f.dragScrollSupport&&(_.YD(f.dragScrollSupport),f.dragScrollSupport=null)};
f.onReorderableScroll=function(){if(f.JSC$12261_dragListGroup){var R=f.JSC$12261_dragListGroup;D5Y(R,R.currDragItem_)}};
return f};
_.y(vX,_.w_);vX.prototype.detached=function(){_.qSE(this)};
_.qSE=function(f){f.JSC$12261_dragListGroup&&(_.w4(f.JSC$12261_dragListGroup,tak,f.onDragStart),_.w4(f.JSC$12261_dragListGroup,NAC,f.onDragStart),f.JSC$12261_dragListGroup.dispose(),f.JSC$12261_dragListGroup=null);f.dragScrollSupport&&(_.YD(f.dragScrollSupport),f.dragScrollSupport=null);f.scrollElement.removeEventListener("scroll",f.onReorderableScroll)};
_.AcG=function(f,R,u,O){O=O===void 0?"":O;_.qSE(f);u&&(f.scrollElement=u);f.JSC$12261_dragListGroup=new He;f.JSC$12261_dragListGroup.hysteresisDistance_=2;bvA(f.JSC$12261_dragListGroup,R);f.JSC$12261_dragListGroup.draggerElClasses_=Fn("dragging").split(" ");O&&p_H(f.JSC$12261_dragListGroup,function(c){var h=c||document,l=null;h.getElementsByClassName?l=h.getElementsByClassName(O)[0]:l=ttE("*",O,c);return l||c});
_.y0(f.JSC$12261_dragListGroup,Wxi,f.onDraggerCreated);_.y0(f.JSC$12261_dragListGroup,tak,f.onDragStart);_.y0(f.JSC$12261_dragListGroup,NAC,f.onDrop);f.JSC$12261_dragListGroup.init();f.scrollElement.addEventListener("scroll",f.onReorderableScroll,{passive:!0})};
vX.prototype.handleDrop=function(){};
_.Vy.Object.defineProperties(vX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.B([_.I({value:100}),_.S("design:type",Number)],vX.prototype,"scrollMargin",void 0);vX=_.B([_.mt()],vX);_.aTC=[vX.prototype];_.ig={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(f,R,u){var O=this.getClickTarget_(R);if(O&&this.isClickAllowed_(O)){R.preventDefault();f=(0,_.dq.unsafeClone)(f);var c=this.getContainerBoundingRect();R=this.getRelativeClickXy_(R,c);this.expandEndpointUrlMacros_(f,{NX:R[0],NY:R[1],NB:O.code});u&&this.truncateWebCommendMetadataUrl_(f);_.ul(this.hostElement,"yt-navigate",{endpoint:f})}},
getClickTarget_:function(f){if(!this.clickTargetMap)return null;f=_.$S(f)||[];f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;if(R===_.b(this.hostElement).querySelector("#menu"))break;if(R=this.clickTargetMap.get(R.id))return R}return null},
getRelativeClickXy_:function(f,R){var u=f.detail.x,O=f.detail.y;_.E("use_on_click_for_desktop_display_ad")&&f.clientX!=null&&f.clientY!=null&&(u=f.clientX,O=f.clientY);f=Math.round(u-R.left);R=Math.round(O-R.top);return f<0||R<0?[null,null]:[f,R]},
getContainerBoundingRect:function(){return _.b(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(f,R){for(var u=_.Z(f.loggingUrls||[]),O=u.next();!O.done;O=u.next())O=O.value,O.baseUrl&&(O.baseUrl=Ng(O.baseUrl,R));f.urlEndpoint&&f.urlEndpoint.url&&(f.urlEndpoint.url=Ng(f.urlEndpoint.url,R));f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url&&(f.commandMetadata.webCommandMetadata.url=Ng(f.commandMetadata.webCommandMetadata.url,R))},
truncateWebCommendMetadataUrl_:function(f){if(f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url){var R=f.commandMetadata.webCommandMetadata.url,u=R.indexOf("&pp=");if(u>0){var O=R.indexOf("&",u+1);f.commandMetadata.webCommandMetadata.url=O>u&&O<R.length?R.slice(0,u)+R.slice(O):R.slice(0,u)}}},
configureClickTargets:function(f,R,u){this.containerId=f;this.clickTargetMap=new Map;f=_.Z(R);for(R=f.next();!R.done;R=f.next())if(R=R.value,R.location){var O=u.get(R.location);O&&(_.c2(_.b(this.hostElement).querySelector("#"+O),"yt-simple-endpoint",this.isClickAllowed_(R)),this.clickTargetMap.set(O,R))}},
isClickAllowed_:function(f){return f.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.r3={};
_.r3.YtLazyListBehavior=[_.V3.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 f=(this.constructor.generatedFrom||this).observers;f||(f=[]);f.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
f}},
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 f=this.renderElementsOutsideVisibleArea_;f&&(tUi(f,4),f.processSignal())},
deepLazyListObserver_:function(f){var R=this;if(f){var u=f.value||[];if(this.itemsPath==f.path){var O=this.nonDeferredItemCount;f=0;O>-1&&u.length>O&&(f=_.Tf("REMAINING_DOVA_DEFERRED_CHUNKS",-1));f>0?(O>0&&(O=u.slice(0,O),this.setInitialItemsOnDataChanged(O)),(O=this.renderElementsOutsideVisibleArea_)?O.cancel():(O=this.renderElementsOutsideVisibleArea_=new _.vT(2,"eocs"),_.xLh(window,"scroll",function(){return R.renderDeferredElements()})),_.iU(O,function(){R.setInitialItemsOnDataChanged(u)}),_.zf("REMAINING_DOVA_DEFERRED_CHUNKS",
f-1)):this.setInitialItemsOnDataChanged(u)}else if(this.itemsPath+".splices"==f.path)this.onItemsUpdated_(u);
else O="shownItems"+f.path.substr(this.itemsPath.length),this.useSignals&&O==="shownItems.length"||this.notifyPath(O,f.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(f){f&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(f),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(f){f=f.indexSplices;for(var R=0,u=f.length;R<u;R++){var O=f[R];if(O.index<this.shownCount&&(O.removed&&this.splice("shownItems",O.index,O.removed.length),O.addedCount)){var c=O.object.slice(O.index,O.index+O.addedCount);O=["shownItems",O.index,0];O.push.apply(O,c);this.splice.apply(this,O)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(f){this.cancelPendingTasks_();f||(f=[]);this.items_=f;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&&(_.Hh("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.su(this,this.tryRenderChunk_)))},
fillRange_:function(f,R){this.canShowMore&&this.items_&&(f=this.items_.slice(f,R),f.unshift("shownItems"),this.push.apply(this,f),this.shownCount=R,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var f=this;this.canShowMore&&_.UU(this,"renderChunk",function(){f.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Hh("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.mQ(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var f=this.renderElementsOutsideVisibleArea_;f&&(f.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var f=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(f-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=f;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(f){return Math.ceil(1E3/f)},
onCanShowMoreUpdated_:function(f){this.data&&this.items_!==null&&(f?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(f){!this.shouldUseTaskManager()&&this.data&&(!f&&this.canShowMore?(_.yge(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):f&&this.partiallyRenderedItems_.has(this.items_)&&(_.E("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var uP;_.fe={};
uP=function(){var f=_.w_.apply(this,arguments)||this;f.atStart=!0;f.atEnd=!0;f.startIndex=0;f.endIndex=0;f.scrollCount=0;f.initialStartIndex=0;f.disableScrollEventListener=!1;f.useFloorScrolling=!1;f.isSearch=!1;f.dragging=!1;f.dragMouseStart=0;f.dragOffsetStart=0;f.disableWheelScroll=!1;f.centerListItems=!1;f.offset=0;f.minComponentWidth=0;f.marginWidthRight=0;f.marginWidthLeft=0;f.setButtonsStateRequested=!1;f.itemsVisibilityObserver=null;f.fullyVisibleItemsIndices=[];f.JSC$12272_onWheelScroll=function(R){if(f.isSearch&&
!f.disableWheelScroll&&_.E("desktop_enable_dmpanel_wheel_scroll")){var u=R.shiftKey?Math.abs(R.deltaY)>Math.abs(R.deltaX)?R.deltaY:R.deltaX:R.deltaX;u!==0&&(R.preventDefault(),f.ytLazyListBehavior.fillRemainingListItems(),f.offset+=u,R3(f),f.reposition_())}};
f.onPointerDown=function(R){FTC(f)&&(f.dragMouseStart=R.clientX,f.dragOffsetStart=f.offset,f.dragging=!0)};
f.onPointerMove=function(R){FTC(f)&&f.dragging&&(f.ytLazyListBehavior.fillRemainingListItems(),f.offset=f.dragOffsetStart-(R.clientX-f.dragMouseStart),R3(f),f.reposition_())};
f.onPointerUp=function(){FTC(f)&&(f.dragging=!1)};
return f};
_.y(uP,_.w_);var wvi=function(f){var R=_.b(f.hostElement).querySelector("#items").children;if(!R)return 0;var u=0;f=_.Z(f.fullyVisibleItemsIndices);for(var O=f.next();!O.done;O=f.next())u+=R[O.value].clientWidth;return u},FTC=function(f){return f.isSearch&&_.E("desktop_enable_dmpanel_click_drag_scroll")};
uP.prototype.created=function(){this.cachedViewportWidth=_.Tf("initialInnerWidth")||window.innerWidth;this.JSC$12272_cachedViewportHeight=_.Tf("initialInnerHeight")||window.innerHeight;_.Tf("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.zf("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
uP.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.E("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();mwH(this)};
uP.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.E("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var f;(f=this.itemsVisibilityObserver)==null||f.disconnect();this.itemsVisibilityObserver=null;var R;(R=this.itemsObserver)==null||R.disconnect()};
var mwH=function(f){var R=_.b(f.hostElement).querySelector("#scroll-container");if(R){if(!f.itemsVisibilityObserver){var u=window.getComputedStyle(R).marginRight;f.itemsVisibilityObserver=new IntersectionObserver(function(O){QBH(f,O)},{root:R,
rootMargin:u,threshold:.98})}if(R=_.b(f.hostElement).querySelector("#items"))f.itemsObserver=new ZaH(R,function(O){WTi(f,O)})}},WTi=function(f,R){EFI(f)&&(Array.from(R.addedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){f.itemsVisibilityObserver&&f.itemsVisibilityObserver.observe(u)}),Array.from(R.removedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){f.itemsVisibilityObserver&&f.itemsVisibilityObserver.unobserve(u)}))},
QBH=function(f,R){var u=new Set(f.fullyVisibleItemsIndices);
R=_.Z(R);for(var O=R.next();!O.done;O=R.next()){O=O.value;var c=O.target.parentElement;c?(c=Array.from(c.children).indexOf(O.target),O.isIntersecting?u.add(c):u.has(c)&&u.delete(c)):_.Ih(new _.ts("Parent element not found",O.target.nodeName))}f.fullyVisibleItemsIndices=Array.from(u).sort(function(h,l){return h-l});
u.size===0?_.Ih(new _.ts("No visible entries in horizontal list")):(f.startIndex=f.fullyVisibleItemsIndices[0],f.endIndex=f.fullyVisibleItemsIndices[f.fullyVisibleItemsIndices.length-1])},EFI=function(f){f.data?f=(f=f.data)&&f.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===f.itemSizeConstraint:!1:f=!1;
return f};
_.X=uP.prototype;_.X.addScrollEventListeners=function(){var f=_.b(this.hostElement).querySelector("#scroll-container");f.style.touchAction="pan-y";f.addEventListener("wheel",this.JSC$12272_onWheelScroll);f.addEventListener("pointerdown",this.onPointerDown);f.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.X.removeScrollEventListeners=function(){var f=_.b(this.hostElement).querySelector("#scroll-container");f.removeEventListener("wheel",this.JSC$12272_onWheelScroll);f.removeEventListener("pointerdown",this.onPointerDown);f.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.X.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.su(this,this.setStartIndex,[this.initialStartIndex])};
_.X.reposition_=function(){var f=_.Tf("HTML_DIR")=="rtl"?"":"-",R=_.b(this.hostElement).querySelector("#items");R&&(R.style.transform="translateX("+f+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.X.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.su(this,this.setButtonsState_))};
_.X.setButtonsState_=function(){this.setButtonsStateRequested=!1;var f=_.b(this.hostElement).querySelector("#items").firstElementChild;if(f){this.minComponentWidth||(this.minComponentWidth=tJl(this,f));f=_.b(this.hostElement).querySelector("#scroll-container").clientWidth;var R=_.b(this.hostElement).querySelector("#items").clientWidth,u=this.get(this.ytLazyListBehavior.itemsPath,this);if(u){var O=Math.round(f/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+O,u.length)-1)}this.ytLazyListBehavior.canShowMore?R+this.minComponentWidth>=this.offset+f&&(this.atEnd=!1):this.atEnd=this.offset+f>=R-20?!0:!1;this.atStart=this.offset<=20}};
_.X.setStartIndex=function(f){if(!this.minComponentWidth){var R=_.b(this.hostElement).querySelector("#items").firstElementChild;if(!R)return;this.minComponentWidth=tJl(this,R)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*f;R3(this);this.reposition_()};
_.X.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Z$();var f=_.b(this.hostElement).querySelector("#scroll-container").clientWidth;_.E("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=tJl(this,_.b(this.hostElement).querySelector("#items").firstElementChild));f=this.useFloorScrolling?Math.floor(f/this.minComponentWidth)||1:Math.round(f/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&C2k(this);this.offset+=EFI(this)?
wvi(this):f*this.minComponentWidth;R3(this);this.reposition_();this.scrollCount++};
_.X.prevClick_=function(){var f=_.b(this.hostElement).querySelector("#scroll-container").clientWidth;f=this.useFloorScrolling?Math.floor(f/this.minComponentWidth)||1:Math.round(f/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=EFI(this)?wvi(this):this.minComponentWidth*this.scrollCount-1):this.offset-=EFI(this)?wvi(this):f*this.minComponentWidth;this.centerListItems&&C2k(this);R3(this);this.reposition_()};
_.X.onIronResize_=function(){this.resizeSupportEnabled&&_.su(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.X.onItemsTransitionEnd_=function(f){_.gY(f)===_.b(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.X.onChildElementFocus_=function(f){f=f.target.closest("#items > *");var R=_.b(this.hostElement).querySelector("#scroll-container");if(R.contains(f)){if(_.E("web_horizontal_list_behavior_focus_killswitch"))if(f.offsetLeft<this.offset)this.offset=Math.abs(f.offsetLeft)<f.clientWidth?0:f.offsetLeft;else if(f.offsetLeft+f.clientWidth>this.offset+R.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Z$(),this.offset=f.offsetLeft+f.clientWidth-R.clientWidth;else return;else{var u=_.b(this.hostElement).querySelector("#items"),
O=_.Tf("HTML_DIR")==="rtl",c=O?u.clientWidth-f.offsetLeft:f.offsetLeft;u=O?u.clientWidth-(f.offsetLeft+f.clientWidth):f.offsetLeft+f.clientWidth;var h=O?c>this.offset+R.clientWidth:c<this.offset,l=O?u<this.offset:u>this.offset+R.clientWidth,K=O?h:l;if(O?l:h)R=O?u:c,this.offset=Math.abs(R)<f.clientWidth?0:R;else if(K)this.ytLazyListBehavior.fillRemainingListItems(),_.Z$(),this.offset=(O?c:u)-R.clientWidth;else return}R3(this);this.reposition_()}};
_.X.observeShownItems_=function(){this.reset()};
_.X.checkComponentWidthResize=function(){var f=_.b(this.hostElement).querySelector("#items").firstElementChild;f&&(f=tJl(this,f),this.centerListItems||f!==this.minComponentWidth)&&(this.minComponentWidth=f,this.offset=f*this.scrollCount,this.centerListItems&&C2k(this),R3(this),this.reposition_())};
var tJl=function(f,R){var u=window.getComputedStyle(R).marginRight;u=Math.floor(Number(u.replace("px","")));var O=window.getComputedStyle(R).marginLeft;O=Math.floor(Number(O.replace("px","")));f.centerListItems&&!f.marginWidthRight&&(f.marginWidthRight=u,f.marginWidthLeft=O);return f.resizeSupportEnabled?R.getBoundingClientRect().width+u:R.offsetWidth+u},R3=function(f){var R=_.b(f.hostElement).querySelector("#scroll-container").clientWidth,u=_.b(f.hostElement).querySelector("#items").clientWidth;
f.offset<0?f.offset=0:f.offset+R>=u&&(f.offset=u-R)},C2k=function(f){f.offset-=(_.b(f.hostElement).querySelector("#scroll-container").clientWidth+f.marginWidthRight-f.minComponentWidth)/2-f.marginWidthLeft};
_.Vy.Object.defineProperties(uP.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var f=_.Tf("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(f==-1)f=this.JSC$12272_cachedViewportHeight,f=f>1320?5:f>1020?4:f>730?3:f>430?2:1;else if(f==0)return 0;_.zf("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",f-1);f=_.Tf("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(f>-1)return f;f=this.cachedViewportWidth;f=f>1600?6:f>1400?5:f>1300?4:f>1090?5:f>870?4:f>660?3:2;_.zf("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
f);return f},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.E("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
uP.prototype.observeShownItems_=uP.prototype.observeShownItems_;uP.prototype.onChildElementFocus_=uP.prototype.onChildElementFocus_;uP.prototype.onItemsTransitionEnd_=uP.prototype.onItemsTransitionEnd_;uP.prototype.onIronResize_=uP.prototype.onIronResize_;uP.prototype.prevClick_=uP.prototype.prevClick_;uP.prototype.nextClick_=uP.prototype.nextClick_;uP.prototype.setButtonsState_=uP.prototype.setButtonsState_;uP.prototype.requestButtonsStateUpdate_=uP.prototype.requestButtonsStateUpdate_;
uP.prototype.reposition_=uP.prototype.reposition_;uP.prototype.reset=uP.prototype.reset;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],uP.prototype,"ytLazyListBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],uP.prototype,"atStart",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],uP.prototype,"atEnd",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"startIndex",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"endIndex",void 0);_.B([_.I({value:6}),_.S("design:type",Number)],uP.prototype,"initialCount",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"scrollCount",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"initialStartIndex",void 0);
_.B([_.I(),_.S("design:type",Object)],uP.prototype,"disableScrollEventListener",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"supportComponentResize",void 0);_.B([_.I({value:function(){var f=this;return function(){return f.prevClick_()}}}),
_.S("design:type",Function)],uP.prototype,"boundPrevClick",void 0);_.B([_.I({value:function(){var f=this;return function(){return f.nextClick_()}}}),
_.S("design:type",Function)],uP.prototype,"boundNextClick",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"useFloorScrolling",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"isSearch",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"dragging",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"dragMouseStart",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"dragOffsetStart",void 0);
_.B([_.I(),_.S("design:type",Object)],uP.prototype,"disableWheelScroll",void 0);_.B([_.I(),_.S("design:type",Object)],uP.prototype,"centerListItems",void 0);_.B([_.Kf("iron-resize"),_.qM("guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uP.prototype,"onIronResize_",null);_.B([_.Kf("transitionend"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],uP.prototype,"onItemsTransitionEnd_",null);
_.B([_.Kf("focusin"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],uP.prototype,"onChildElementFocus_",null);_.B([_.qM("shownItems"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uP.prototype,"observeShownItems_",null);uP=_.B([_.mt()],uP);_.fe.YtdHorizontalListBehavior=[];_.fe.YtdHorizontalListBehavior.push(_.Lu,_.r.YtRendererBehavior,_.r3.YtLazyListBehavior,_.U7.YtdGuideStateAwareBehavior,uP.prototype);var RZn=["APP_STATE","PI"];var ycC=_.Sg(["about:blank"]),dwC={pushState:window.history.pushState,replaceState:window.history.replaceState};var Ol=function(f){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=f;this.internalPushState=f.pushState.bind(f);this.internalReplaceState=f.replaceState.bind(f)};
Ol.prototype.init=function(){this.initialized=!0};
Ol.prototype.pushState=function(f,R){this.initialized||this.init();this.internalPushState&&this.internalPushState(f,"",R)};
Ol.prototype.replaceState=function(f,R){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(f,"",R)};
Ol.prototype.getState=function(){return this.history&&this.history.state};var NXi=function(f){var R=function(){var u=f.apply(this,arguments)||this;u.boundHistoryPushState=!1;u.boundHistoryReplaceState=!1;u.debugInfo={};return u};
_.y(R,f);R.prototype.init=function(){var u=_.mD("IFRAME");_.D0(u,_.R0(ycC));u.sandbox="allow-same-origin";u.style.display="none";this.iframe=u;document.body.appendChild(u);this.bindHistoryStateFunctions();f.prototype.init.call(this)};
R.prototype.bindHistoryStateFunctions=function(){var u=this,O=[],c;this.iframe&&((c=this.iframe.contentWindow)==null?0:c.history)&&(c=this.iframe.contentWindow.history)&&(O.push(c),Object.getPrototypeOf(c)&&O.push(Object.getPrototypeOf(c)));window.history&&O.push(window.history);c=window.history;Object.getPrototypeOf(c)&&O.push(Object.getPrototypeOf(c));O.push(dwC);c=function(l){for(var K=null,q=0;q<O.length;q++){var F=O[q][l];if(typeof F==="function"){K=F.bind(window.history);u.debugInfo[l]=q;break}}return K};
if(!this.boundHistoryReplaceState){var h=c("replaceState");h&&(this.internalReplaceState=h,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(c=c("pushState"))&&(this.internalPushState=c,this.boundHistoryPushState=!0)};
return R}(Ol),LTI=function(){return NXi.call(this,window.history)||this};
_.y(LTI,NXi);LTI.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var cO=function(f){this.browserHistory=f;this.initialized=!1};
cO.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
cO.prototype.pushState=function(f,R){this.initialized||this.init();this.browserHistory.pushState(f,R)};
cO.prototype.replaceState=function(f,R){this.initialized||this.init();this.browserHistory.replaceState(f,R)};
cO.prototype.handlePopstate=function(f){return f.state};_.bzC=function(f,R,u,O,c){this.endpoint=f;this.forward=R;this.historyEntry=u;this.JSC$26553_savedComponentState=O;this.legacyBorder=c===void 0?!1:c};var pvt=function(f,R){this.rootData=f;this.scrollTop=R};var yk=new _.Vi("PAGE_REQUEST_TOKEN"),vcl=new _.Vi("FETCH_PBJ_TOKEN");_.XC=new _.Vi("EPHEMERAL_STORE_TOKEN");_.hU=function(f){this.data=Object.assign({},f);var R;(R=this.data.innertubeResponse)==null||delete R.frameworkUpdates};
_.hU.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.iZ)()};
_.hd=function(f){return Object.assign({},f.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var jBf=function(){this.maxSize=100;this.timeToDataCache=new Map};
jBf.prototype.get=function(f){var R=this.timeToDataCache.get(f);R&&(this.timeToDataCache.delete(f),this.timeToDataCache.set(f,R));if(R&&R.rootData&&(_.E("web_use_response_store_for_history_cache")||_.E("mweb_use_new_history_manager"))){var u=_.vh().resolve(_.XC),O=DwY(R),c=!!O;if(O){if(O.content){var h=ZA(u,O.content);c&&h?R.rootData.response=_.hd(h):c=!1}O.player&&(h=ZA(u,O.player),c&&h?R.rootData.playerResponse=_.hd(h):c=!1);O.reelSequence&&(u=ZA(u,O.reelSequence),c&&u?R.rootData.reelWatchSequenceResponse=
_.hd(u):c=!1)}c||(this.timeToDataCache.delete(f),R=void 0)}return R};
jBf.prototype.set=function(f,R){if(R.rootData&&(_.E("web_use_response_store_for_history_cache")||_.E("mweb_use_new_history_manager"))){var u=DwY(R),O=Object.assign({},R.rootData);u&&(u.content&&R.rootData.response&&(JcI(this,u.content,R.rootData.response),O.response=null),u.player&&R.rootData.playerResponse&&(JcI(this,u.player,R.rootData.playerResponse),O.playerResponse=null),u.reelSequence&&R.rootData.reelWatchSequenceResponse&&(JcI(this,u.reelSequence,R.rootData.reelWatchSequenceResponse),O.reelWatchSequenceResponse=
null));R=new pvt(O,R.scrollTop)}this.timeToDataCache.has(f)?this.timeToDataCache.delete(f):this.timeToDataCache.size>=this.maxSize&&(u=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(u.value));this.maxSize!==0&&this.timeToDataCache.set(f,R)};
jBf.prototype.clear=function(){this.timeToDataCache.clear()};
var DwY=function(f){var R=_.vh().resolve(_.Y8(yk)),u;if((u=f.rootData)==null?0:u.endpoint)return R==null?void 0:RS7(R,f.rootData.endpoint);var O;_.Ih(new _.ts("History snapshot response data does not contain endpoint",(O=f.rootData)==null?void 0:O.url));return null},JcI=function(f,R,u){if(f.maxSize>0){var O;
(f=(O=u.responseContext)==null?void 0:O.maxAgeSeconds)&&Number(f)>0&&(O=_.vh().resolve(_.XC),u=uA(u,f),O.put(R,new _.hU(u)))}};var zWk=function(f,R,u){this.endpoint=R;this.JSC$26558_savedComponentState=u===void 0?null:u;this.entryTime=f};var ZDl=1;var lP=function(f){var R=function(){var u=f.apply(this,[].concat(_.yq(_.yK.apply(0,arguments))))||this;u.historyEntryTime=0;u.historySnapshotCache=u.createHistoryCache();return u};
_.y(R,f);R.prototype.createHistoryCache=function(){return new jBf};
R.prototype.saveAndReplace=function(u,O,c){var h=window.location.href;var l=l===void 0?{}:l;var K=(K=this.browserHistory.getState())&&K.entryTime?K.entryTime:lQn();u=this.createNewHistoryEntry(u,l,K);this.saveSnapshot(K,O,c);this.replaceState(u,h||window.location.href)};
R.prototype.saveAndPush=function(u,O,c,h,l){l=l===void 0?{}:l;this.saveSnapshot(this.historyEntryTime,c,h);c=this.historySnapshotCache;h=this.historyEntryTime;var K=c.timeToDataCache.keys();K=_.Z(K);for(var q=K.next();!q.done;q=K.next())q=q.value,q>h&&c.timeToDataCache.delete(q);O=this.createNewHistoryEntry(O,l);this.pushState(O,u)};
R.prototype.saveSnapshot=function(u,O,c){this.historySnapshotCache.set(u,new pvt(O,c))};
R.prototype.createNewHistoryEntry=function(u,O,c){c=c===void 0?lQn():c;return new zWk(c,u,O)};
R.prototype.handlePopstate=function(u){var O=f.prototype.handlePopstate.call(this,u),c=null,h=null,l=!1,K=null;O&&O.entryTime&&(K=this.historySnapshotCache.get(O.entryTime)||null,l=O.entryTime>this.historyEntryTime,this.historyEntryTime=O.entryTime,c=O.endpoint,h=O.JSC$26558_savedComponentState);this.handleHistoryCacheLoad(new _.bzC(c,l,K,h),u);return O};
R.prototype.pushState=function(u,O){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);f.prototype.pushState.call(this,u,O)};
R.prototype.replaceState=function(u,O){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);f.prototype.replaceState.call(this,u,O)};
R.prototype.handleHistoryCacheLoad=function(){};
return R}(cO),TXF=function(){var f=lP.call(this,new LTI)||this;
f.dispatchElement=null;f.entryIndex=0;return f};
_.y(TXF,lP);_.X=TXF.prototype;_.X.init=function(f){f=f===void 0?!0:f;lP.prototype.init.call(this);this.initialized||(f||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.X.handlePopstate=function(f){var R=null;f.state||(R="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return lP.prototype.handlePopstate.call(this,f);var u=new CustomEvent("yt-history-pop",{cancelable:!0});_.OJ(this.dispatchElement,"yt-history-pop",[u,{errorMsg:R}]);_.c_(this.dispatchElement,"yt-close-all-popups-action");if(!u.defaultPrevented){u=_.vh().resolve(_.sz);R=u.getCurrentData();var O=u.getCurrentPage();u=0;O?(O=_.OJ(this.dispatchElement,"yt-get-page-offset",
[O]),O.length>0&&(u=O[0])):_.Ih(new _.ts("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:R?R.page:"undefined"}));R&&(R.csn=_.z4());this.saveSnapshot(this.historyEntryTime,R,u)}return lP.prototype.handlePopstate.call(this,f)};
_.X.handleHistoryCacheLoad=function(f,R){f.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.Z(_.c_(this.dispatchElement,"yt-history-will-navigate",[R])).next().value||_.OJ(this.dispatchElement,"yt-history-load",[R,f]))};
_.X.pushState=function(f,R){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var u=new _.ts("history.pushState is not a function",this.getDebugString());_.TL(u)}lP.prototype.pushState.call(this,f,R)};
_.X.replaceState=function(f,R){if(!this.browserHistory.boundHistoryReplaceState){var u=new _.ts("history.replaceState is not a function",this.getDebugString());_.TL(u)}lP.prototype.replaceState.call(this,f,R)};
_.X.saveAndPush=function(f,R,u,O,c){c=c===void 0?{}:c;u&&(u.csn=_.z4());lP.prototype.saveAndPush.call(this,f,R,u,O,c)};
_.X.getDebugString=function(){var f=[];this.initialized&&f.push("i");this.browserHistory.boundHistoryReplaceState&&f.push("bhr");this.browserHistory.boundHistoryPushState&&f.push("bhs");"replaceState"in this.browserHistory.debugInfo&&f.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&f.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&f.push("ei:"+String(this.entryIndex));return f.join(",")};
_.kc=function(f,R){f.init(!0);var u=f.browserHistory.getState();f.replaceState(u,RA(R))};
TXF.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Ke=new _.Vi("DESKTOP_HISTORY_MANAGER_TOKEN");var Hzf=[10,20,30,40,50,60],q$=function(){this.currentPartitionIndex=0},ITC=function(f){rtY({mainAppWeb:_.BL(),
survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},MJt=function(f){rtY({mainAppWeb:_.BL(),
survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},P2C=function(f){return f.currentPartitionIndex>=0&&f.currentPartitionIndex<Hzf.length?Hzf[f.currentPartitionIndex]:-1},UwI=function(f){return f.currentPartitionIndex>0&&f.currentPartitionIndex-1<Hzf.length?Hzf[f.currentPartitionIndex-1]:-1};
q$.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var f=UwI(this);f>0&&MJt(f);f=P2C(this);f>0&&ITC(f);eWE(this)}};
var eWE=function(f){var R=P2C(f);if(R>0){var u=UwI(f);u<0&&(u=0);f.intervalId=_.JA.addJob(function(){var O=UwI(f);O>0&&MJt(O);O=P2C(f);O>0&&ITC(O);eWE(f)},3,(R-u)*6E4);
f.currentPartitionIndex+=1}else f.currentPartitionIndex=-1};var Gjk=function(){this.skipNextNavigation=!1},BXC=function(f,R,u){if(!R)return!1;
if(f.skipNextNavigation)return f.skipNextNavigation=!1;if(_.t(u,_.oh))return!1;var O,c,h;if((O=_.t(u,_.wY))==null?0:(c=O.browseEndpointContextSupportedConfigs)==null?0:(h=c.browseEndpointContextMainConfig)==null?0:h.skipConfirmation)return!1;var l;return((l=_.t(R.commandMetadata,_.vc))==null?void 0:l.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Gjk.prototype.showConfirmationDialog=function(f,R){this.navigateParams=R;this.customConfirmationCommand?_.vh().resolve(_.rv).resolveCommand(this.customConfirmationCommand):(R={openPopupAction:{popup:{confirmDialogRenderer:{title:_.S8(_.Fa("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.S8(_.Fa("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.S8(_.Fa("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.S8(_.Fa("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.xN.getInstance().triggerAction("yt-open-popup-action",R,f))};
Gjk.prototype.cancelPendingNavigation=function(){var f;((f=this.navigateParams)==null?void 0:f.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var oFG=function(){},SSi=function(f,R,u,O,c,h,l){u=u===void 0?{}:u;
l=l===void 0?{}:l;var K=_.Fs.instance,q,F=(q=_.t(R,_.oh))==null?void 0:q.url;return F?zPt(K,F,u,window.location.href,function(w,m){xwC(f,w,m,!1,!0,u,h,O)},function(){return!1}):eg(K,R,u,window.location.href,QC(R),function(w,m){xwC(f,w,m,!1,!0,u,h,O)},c,l)},xwC=function(f,R,u,O,c,h,l,K){if(!f.JSC$12330_chunkHandler)if(u.page==="watch"||u.page==="learning_journey_watch")if(c||O){if(_.E("kevlar_continue_playback_without_player_response")){var q;
var F=(q=_.t(K,_.$7))==null?void 0:q.videoId}f.JSC$12330_chunkHandler=new yUI(_.Vm,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:O,previousVideoId:F},tempData:h},l)}else f.JSC$12330_chunkHandler=new Q3k(_.Vm);else u.page==="shorts"&&c&&!O?f.JSC$12330_chunkHandler=new CPE(_.Vm,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:h},l):f.JSC$12330_chunkHandler=new Wpf(l);f.JSC$12330_chunkHandler.processChunk({endpoint:R,data:u});return f.JSC$12330_chunkHandler.wJ.promise},
$wA=function(f,R,u,O,c){(u=_.qif(u))&&xwC(f,R,u,!1,!0,O,void 0,c)};var gFk=function(){this.pendingNavigationPromise=null};
_.X=gFk.prototype;_.X.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.X.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.X.addEventListener=function(){throw Error("wh");};
_.X.dispatchEvent=function(){throw Error("wh");};
_.X.removeEventListener=function(){throw Error("wh");};var sBf=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],AU=function(){_.mq.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];nFl(this)};
_.y(AU,_.mq);AU.prototype.verifyUser=function(){var f=nFl(this),R=f.logout;if(!f.sessionChange)return!0;this.dispatchEvent("ytsessionchange");R&&this.dispatchEvent("ytuserinvalid");return!1};
var nFl=function(f){var R=sBf.map(function(c){var h;return(h=_.wU.get(c))!=null?h:""}),u=R.some(function(c,h){return f.sessionCookies&&f.sessionCookies[h]!==""&&c===""}),O=R.some(function(c,h){return f.sessionCookies&&f.sessionCookies[h]!==c});
f.sessionCookies=R;return{logout:u,sessionChange:O}};
AU.prototype.clearTimeout=function(){this.scheduledJobId&&(_.JA.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var aQP=new _.Vi("POSTMESSAGE_TUNNEL_TOKEN");var KWt=["/parent_tools","/file_download","/artist_roster"],mhe=[fr7,RHn,ugl,cJ0,OZ2,rph,X6l,hHP];var VJt=new _.Vi("APP_ROOT");var a3=new _.Vi("NAVIGATION_CONFIRMATION_SERVICE");var YSI="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),vFF=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
FC=function(f,R){this.pendingNavigationPromise=null;this.JSC$12348_clientRoot=f;this.historyManager=R;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new oFG;this.debugString=f.is;f={"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};_.SV(_.xN.getInstance(),f,this.JSC$12348_clientRoot)},upC,ODf,caC,X4G,RZi;
_.y(FC,gFk);FC.prototype.reload=function(){_.G$(window.location.href)};
var Fht=function(f){f.currentEndpoint&&_.t(f.currentEndpoint,_.Ey)?f.reload():f.currentEndpoint&&f.navigate(f.currentEndpoint,!0,void 0,{disableCache:!0})};
FC.prototype.navigate=function(f,R,u,O,c,h,l,K){R=R===void 0?!1:R;u=u===void 0?{}:u;O=O===void 0?{}:O;var q=_.vh().resolve(a3),F;if(!l&&BXC(q,(F=this.currentEndpoint)!=null?F:void 0,f))return q.showConfirmationDialog(this.JSC$12348_clientRoot.parentElement,{endpoint:f,reload:R,params:u,tempData:O,requestType:c,createScreenConfig:h}),!1;var w=_.TC();_.H1(w,"eocs")||w.parkOrScheduleJob(function(){w.processSignal("eocs")},10,"eor");
l=QC(f);q=O.autonav==="1";F=_.z4();AU.instance||(AU.instance=new AU);var m=AU.instance.verifyUser(),W;if(_.E("enable_dark_theme_only_on_shorts")){var C=document.documentElement.hasAttribute("dark"),d=_.NL(!0)==="USER_INTERFACE_THEME_DARK";if(l==="shorts"){if(!C)if(_.E("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var p;_.G$((p=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:p.url,void 0,void 0,window.top)}}else{var J;_.G$(_.x8((J=_.t(f==null?
void 0:f.commandMetadata,_.vc))==null?void 0:J.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.E("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!C){var M;_.G$(_.x8((M=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:M.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(d!==C){var P;_.G$(_.x8((P=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:P.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(l==="watch"){if(izl(_.vh().resolve(_.MS),
f)&&(m||_.E("fix_miniplayer_navigation_killswitch")))return!1;_.E("block_all_player_prefetch_requests")||(W=Aqk(_.c9(_.wj),f,q))}else{var g,x=(g=_.t(this.currentEndpoint,_.$7))==null?void 0:g.videoId;x&&_.ti.getInstance().then(function(Jn){Jn&&Jn.set("yt-miniplayer-shown-video-id",x)})}W&&(u.frags=W.missingFragments_.join(","));
p=null;var fh;J=(fh=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:fh.ignoreNavigation;if(!J)if(_.E("kevlar_command_url")){var V;p=(V=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?void 0:V.url}else p=_.DOX(f,u);if(p&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&p==this.lastNavigationUrl)return _.ja({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Ad(Pc(),"CANCELLED")}p&&(this.lastNavigationUrl=p);vdq();_.zf("IS_HOMEPAGE_COLD",
!1);_.zf("IS_RESULTS_PAGE_COLD",!1);_.zf("IS_WATCH_PAGE_COLD",!1);f.loggingUrls&&f.loggingUrls.forEach(function(Jn){Jn.baseUrl&&_.BR(Jn.baseUrl)});
_.tqh(f,h?h.layer:0)&&_.E("kevlar_flush_logs_on_away_navigation")&&_.zL();if(QZn(f))return!1;gyk(l,c);if(!p)return J||_.Ih(new _.ts("Can't construct url for endpoint",f)),_.Ad(Pc(),"FAILURE"),!1;_.k77();fh=f&&_.t(f,_.wY)&&_.t(f,_.wY).browseId.startsWith("UC");u=(V=_.E("enable_dark_theme_only_on_shorts")&&l==="shorts"?!1:_.Ln()&&document.documentElement.hasAttribute("dark")!==_.dY())?{themeRefresh:1}:{};V&&!_.Q4()&&_.NL()==="USER_INTERFACE_THEME_DARK"&&(u.theme="dark");fh=V||rcC(p)&&!fh&&!_.E("kevlar_disable_url_allowlist");
m||(fh=!0);if(fh||_.Tf("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var ZD;var mP=(ZD=window.top)==null?void 0:ZD.location.href}catch(Jn){var NX;mP=(NX=Jn)==null?void 0:NX.message}_.Ih(new _.ts("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:mP}))}f=_.E("kevlar_redirect_on_window_killswitch")?window.top:window;ek(p);_.G$(_.x8(p,u),void 0,void 0,f);_.Ad(Pc(),"ABORTED");return!1}_.E("kevlar_early_popup_close")&&_.OJ(this.JSC$12348_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12330_chunkHandler=void 0;var jt;mP=QC((jt=this.currentEndpoint)!=null?jt:void 0);(jt=l==="shorts"&&mP==="shorts")||_.r_2();_.MW(Bw7)("nr",void 0);q&&_.ja({webInfo:{navigationReason:"an"}});f.clickTrackingParams&&(O.itct=f.clickTrackingParams,O.csn=F);lZn(O);O.endpoint=JSON.stringify(f);_.E("enable_unknown_lact_fix_on_html5")&&(_.vh().resolve(_.LL),O.lact=_.OW());_.dq.isEmpty(O)||_.VP(p,O);!_.E("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(h=Object.assign({},{layer:0},h,{parentLayer:3}));this.pendingNavigationPromise=h=SSi(this.pageFetcher,f,O,this.currentEndpoint,this.JSC$12348_isNetworkPromiseStale.bind(this),h,K);h=h.then(this.handleNavigateSuccess.bind(this,h,f,W,O),this.handleNavigateFail.bind(this,h,f));_.qk().navigationFinishPromise=h;R={endpoint:f,pageType:l,url:RA(p),reload:!!R,noProgressBar:_.E("web_disable_page_navigation_progress")||jt};c&&(R.type=c);this.fireEvent("yt-navigate-start",R);W&&
$wA(this.pageFetcher,f,W,O,this.currentEndpoint);return!0};
FC.prototype.JSC$12348_isNetworkPromiseStale=function(f){return f!=this.pendingNavigationPromise};
var fQi=function(f,R,u,O,c){var h=QC(R);R={endpoint:R,pageType:h};c&&(R.errorMessage=c);_.Ih(u);R.navigationDoneMs=_.JH("nd");R.navigationErrorReason=O;f.fireEvent("yt-navigate-error",R)};
FC.prototype.handleNavigateFail=function(f,R,u){var O=void 0;u instanceof _.BB&&(O=u,p75(u));if(this.JSC$12348_isNetworkPromiseStale(f))return _.NO(O);_.Ad(Pc(),"FAILURE");fQi(this,R,u,"101");return _.NO(u)};
FC.prototype.handleNavigateSuccess=function(f,R,u,O,c){if(this.JSC$12348_isNetworkPromiseStale(f))return _.ll();this.pendingNavigationPromise=null;if(!c)return R=new _.ts("Missing data in response for navigation endpoint",R),_.NO(R);if(c.reload)return window.location.reload(!0),_.ll();u&&(f={},_.dq.extend(f,_.qif(u),c),c=f);var h,l;u=(h=c)==null?void 0:(l=h.timing)==null?void 0:l.responseStart;u!=null&&_.JH("srt",u);_.JH("pdc");var K,q;h=(K=c)==null?void 0:(q=K.timing)==null?void 0:q.info;h!=null&&
(K=_.MW(_.$2n)(h),_.ja(K));_.Ad(Pc(),"SUCCESS");RZi(this,R,c,1,O);return _.ll()};
var rcC=function(f){var R=f;_.E("kevlar_no_redirect_to_classic_2_ks")||(R=(new _.gu(f)).getPath());if(R==="/"||R==="/red")return!1;var u=!0;YSI.forEach(function(O){f.indexOf(O)===0&&(u=!1)});
vFF.forEach(function(O){var c=O.url;_.E(O.expFlag)&&f.indexOf(c)===0&&(u=!1)});
return u};
FC.prototype.publishPageData=function(f){this.fireEvent("yt-page-data-fetched",{pageData:f})};
upC=function(f,R,u,O,c,h){var l=null;R.page!=="watch"&&R.page!=="learning_journey_watch"||O?R.filler||_.OJ(f.JSC$12348_clientRoot,"yt-stop-old-player",[R]):l=xwC(f.pageFetcher,c,R,u,!1,h,void 0,f.currentEndpoint);if(l)return l.then(f.publishPageData.bind(f,R));f.publishPageData(R);return _.ll()};
ODf=function(f,R,u){var O=null;if(!u)return O=new _.ts("Empty data",f.debugString,R);var c=u.response;if(!c)return O;var h={endpointType:QC(R)||"unknown"};c.responseContext?(c=c.responseContext.errors)&&(O=new _.ts("Errors in response context",f.debugString,R,c,h)):O=c.error||c.errorMetadata?new _.ts("Errors in response",f.debugString,R,c.error,c.errorMetadata,h):new _.ts("responseContext missing",f.debugString,R,Object.keys(c).sort().join(","),h);var l,K,q,F;if(f=u==null?void 0:(l=u.response)==null?
void 0:(K=l.responseContext)==null?void 0:(q=K.webResponseContextExtensionData)==null?void 0:(F=q.webResponseContextDebugData)==null?void 0:F.debugErrorMessages)for(l=0;l<f.length;l++);return O};
caC=function(f){var R,u,O,c;return f==null?void 0:(R=f.response)==null?void 0:(u=R.responseContext)==null?void 0:(O=u.errors)==null?void 0:(c=O.error)==null?void 0:c["0"]};
X4G=function(f,R){var u;if(u=R.url&&!R.url.startsWith("/clip"))u=R.url,u=!_.E("webfe_parse_debug_param_in_resolveurl_service")&&f.searchDebugUrlMatcher.test(u)||Ia5(u)?!0:!1;if(u)Ia5(R.url)&&_.oS(window.location.href).themeRefresh?(R=_.Y7(R.url,"themeRefresh"),_.kc(f.historyManager,R)):R.url&&!X40(R.url)&&_.kc(f.historyManager,R.url);else if(R.endpoint){var O,c,h;(u=(O=R.endpoint)==null?void 0:(c=O.commandMetadata)==null?void 0:(h=c.webCommandMetadata)==null?void 0:h.url)&&!X40(u)&&_.kc(f.historyManager,
u);u&&R.url&&u!=R.url&&!R.url.match("playnext=1")&&new _.ts("Response url mismatch in response data",f.debugString,u,R.url)}};
_.hZH=function(f,R,u,O,c,h,l,K){h=h===void 0?!1:h;var q=_.vh().resolve(a3),F;if(!K&&BXC(q,(F=f.currentEndpoint)!=null?F:void 0,R))return q.showConfirmationDialog(f.JSC$12348_clientRoot.parentElement,{endpoint:R,data:u,navigationType:O,tempData:c,isMiniplayer:h,isForwardHistoryNavigation:l==null?void 0:l.forward}),_.ll();f.pageFetcher.JSC$12330_chunkHandler=void 0;return RZi(f,R,u,O,c,h)};
RZi=function(f,R,u,O,c,h){h=h===void 0?!1:h;f.isMiniplayerExpansion=h;var l=O===2;f.currentEndpoint=R;f.numNavigations++;f.numNavigations&&(V$2.navigationCount=f.numNavigations);_.zf("NUM_NAV",f.numNavigations);var K=ODf(f,R,u);if(K)return fQi(f,R,K,"102",caC(u)),_.NO(K);var q,F,w,m;K=u.rootVe||(u==null?void 0:(q=u.response)==null?void 0:(F=q.responseContext)==null?void 0:(w=F.webResponseContextExtensionData)==null?void 0:(m=w.ytConfigData)==null?void 0:m.rootVisualElementType);!l&&u&&X4G(f,u);var W,
C;q=u==null?void 0:(W=u.response)==null?void 0:(C=W.responseContext)==null?void 0:C.maxAgeSeconds;if(!l&&!isNaN(q)){var d;_.E("kevlar_use_response_ttl_to_invalidate_cache")?d=(0,_.iZ)()+1E3*q:_.E("kevlar_always_invalidate_cache")&&(d=0);isNaN(d)||(u.expirationTime=d)}_.E("html5_enable_ssap_entity_id")&&l&&u.playerResponse&&(u.playerResponse.cacheMetadata={isCacheHit:!0});_.c9(_.wj).prefetchCache_.clear();l||u.page!=="watch"||u.type!=="reduced"&&O!==1?O=upC(f,u,l,!!h,R,c):(f.publishPageData(u),O=_.ll());
c=O.then(function(){var p=QC(R);p={endpoint:R,pageType:p,fromHistory:l,response:u};p.navigationDoneMs=_.JH("nd");f.fireEvent("yt-navigate-finish",p)});
u.csn&&K&&u.clientSideGrafts&&O.then(f.attachClientSideGrafts.bind(f,u,_.Jj()));return c};
_.X=FC.prototype;_.X.attachClientSideGrafts=function(f,R){f.clientSideGrafts&&R&&f.clientSideGrafts.forEach(function(u){if(R&&u){var O=_.t4(u);_.E("combine_ve_grafts")?_.wR().graftServerVe(u,R):_.ea(f.csn,R,O)}})};
_.X.handleSignalActionHistoryBack=function(){window.history.back()};
_.X.handleSignalActionCloseWindow=function(){window.close()};
_.X.handleSignalActionReloadPage=function(){this.reload()};
_.X.handleSignalActionSoftReloadPage=function(){Fht(this)};
_.X.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.X.fireEvent=function(f,R){f=new CustomEvent(f,{bubbles:!0,cancelable:!1,composed:!0,detail:R});this.dispatchEvent(f)};
_.X.addEventListener=function(f,R){this.JSC$12348_clientRoot.addEventListener(f,R)};
_.X.dispatchEvent=function(f){return this.JSC$12348_clientRoot.dispatchEvent(f)};
_.X.removeEventListener=function(f,R){this.JSC$12348_clientRoot.removeEventListener(f,R)};
FC[nW]=[VJt,_.Ke];_.og5=new i5("browse","h8y2qb");_.xn2=new i5("search","JzFVk");_.S3D=new i5("shorts","xwEKAe");_.$nq=new i5("watchFixie","nmfa2d");_.ggD=new i5("watchFlexy","CF909");_.sqt=new i5("watchGrid","Tm0L3c");_.ngn=new i5("watchLearningJourney","L3n37");var ZDF;var wp=function(){return _.U.apply(this,arguments)||this};
_.y(wp,_.U);_.Vy.Object.defineProperties(wp,{template:{configurable:!0,enumerable:!0,get:function(){if(ZDF===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);ZDF=f}f=ZDF;return f}}});
_.B([_.z(lTA.YtPlayerBehavior),_.S("design:type",Object)],wp.prototype,"ytPlayerBehavior",void 0);wp=_.B([_.e({is:"ytd-player"})],wp);var lQi;var k7H;var KWY;var mp=function(){var f=_.U.apply(this,arguments)||this;f.forceModernIconButton=!1;f.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return f};
_.y(mp,_.U);mp.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]]"}}}}}};
mp.prototype.handleAccountLinkingStateChangedCommand=function(f){if(f=_.t(f,wIk)){var R,u=(R=this.data)==null?void 0:R.providerKey;R=f.providerKey;u&&R&&u.id===R.id&&u.subject===R.subject&&(f=f.linked,f!==void 0&&(this.set("data.linked",f),this.notifyPath("data.linked"),_.E("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(f)))}};
mp.prototype.setPlayerAccountLinkState=function(f){var R=new I60;Hwq(R,MSl(new PM2,f));var u=_.Vm();u&&u.getPlayerPromise().then(function(O){O.setAccountLinkState(_.fE(R.JSC$10068_serializeBinary(),4));O.updateAccountLinkingConfig(f)})};
mp.prototype.handleShowAccountLinkDialog=function(){var f=this.get("button.buttonRenderer.command");f&&_.q5([f],this.hostElement)};
_.Vy.Object.defineProperties(mp.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}}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.B([_.z([_.fq.YtActionHandlerBehavior]),_.S("design:type",Object)],mp.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mp.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],mp.prototype,"overrides",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],mp.prototype,"forceModernIconButton",void 0);_.B([_.I({value:"bottom"}),_.S("design:type",String)],mp.prototype,"buttonTooltipPosition",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],mp.prototype,"forceIconButton",void 0);_.B([_.I(),_.S("design:type",Boolean)],mp.prototype,"disableTextTransform",void 0);
_.B([_.T("data","data.linked","data.isWarning"),_.S("design:type",Object),_.S("design:paramtypes",[])],mp.prototype,"button",null);mp=_.B([_.e({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],mp);
_.G(mp,"ytd-account-link-button-renderer",function(){if(KWY!==void 0)return KWY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return KWY=f},{mode:1});var qwC;var AaC=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],QT=function(){return _.U.apply(this,arguments)||this};
_.y(QT,_.U);QT.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
QT.prototype.updateButtonActiveState=function(){var f=this,R=!!AaC.find(function(u){return f.currentState===u});
this.button&&(this.button.isPressed=R)};
_.Vy.Object.defineProperties(QT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.playlistLoopStateEntity)==null?void 0:f.state)||((R=this.data)==null?void 0:R.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var f=void 0,R;if(this.currentState&&((R=this.data)==null?0:R.states)){R=_.Z(this.data.states);for(var u=R.next();!u.done;u=R.next()){u=_.t(u.value,_.IYf);var O=void 0;if(((O=u)==null?void 0:O.state)===this.currentState){f=u;break}}}return f}}});
QT.prototype.updateButtonActiveState=QT.prototype.updateButtonActiveState;_.B([_.z(_.zH),_.S("design:type",Object)],QT.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.p4n}),_.S("design:type",Object)],QT.prototype,"playlistLoopStateEntity",void 0);_.B([_.I(),_.S("design:type",Object)],QT.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],QT.prototype,"forceIconOnly",void 0);_.B([_.a4("ytd-button-renderer"),_.S("design:type",_.g2)],QT.prototype,"button",void 0);
_.B([_.T("data","playlistLoopStateEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],QT.prototype,"currentState",null);_.B([_.qM("currentButtonStateRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QT.prototype,"updateButtonActiveState",null);_.B([_.T("currentState"),_.S("design:type",Object),_.S("design:paramtypes",[])],QT.prototype,"currentButtonStateRenderer",null);
QT=_.B([_.e({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],QT);
_.G(QT,"ytd-playlist-loop-button-renderer",function(){if(qwC!==void 0)return qwC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return qwC=f},
{mode:1});var aQl;var FWG=_.Fa("DOWNLOAD",{},"Download"),w4H=_.Fa("DOWNLOADING",{},"Downloading"),mhE=_.Fa("DOWNLOADED",{},"Downloaded"),QZi=_.Fa("RETRY",{},"Retry"),WO=function(){var f=_.U.apply(this,arguments)||this;f.forceIconButton=!1;f.forceIconOnly=!1;f.overrides=!1;f.buttonTooltipPosition=!1;f.styleActionButton=!1;f.disableTextTransform=!1;f.downloadProgress=0;f.isDownloadComplete=!1;f.isHidden=!0;f.transferState="TRANSFER_STATE_UNKNOWN";f.isVideoDeletedByUser=!1;f.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return f};
_.y(WO,_.U);_.X=WO.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.dataChanged=function(){var f;(f=this.data)!=null&&f.text||(f=_.Te(_.sP().getState(),this.videoId),this.updateButtonState(f))};
_.X.computeVideoId=function(f){return f};
_.X.showHideButton=function(){this.updateButtonVisibility()};
_.X.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.X.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.X.updateButtonState=function(f){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==w4H||!_.WW(f))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(f){case "TRANSFER_STATE_UNKNOWN":f=FWG;var R="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":f=QZi;R="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":f=mhE;R="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":f=
w4H;R="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":f=QZi;R="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;default:f=FWG,R="OFFLINE_DOWNLOAD",u="ACTION_ADD"}this.isVideoDeletedByUser&&(f=FWG,R="OFFLINE_DOWNLOAD",u="ACTION_ADD");var O=Object.assign({},this.data);O.text=_.S8(f);O.tooltip=f;O.icon={iconType:R};O.size="SIZE_DEFAULT";O.style="STYLE_DEFAULT";_.t(O.command,_.kO)&&(_.t(O.command,_.kO).action=u);this.set("data",O)}};
_.X.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var f="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?f="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?f="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?f="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?f="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?f="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(f="OFFLINE_PIN",this.isDownloadComplete=!0);var R;f!==((R=this.data.icon)==null?void 0:R.iconType)&&(R=Object.assign({},this.data),R.text=_.S8(w4H),R.tooltip=w4H,R.icon={iconType:f},_.t(R.command,_.kO)&&(_.t(R.command,_.kO).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",R))}};
WO.prototype.updateProgress=WO.prototype.updateProgress;WO.prototype.onTransferStateChanged=WO.prototype.onTransferStateChanged;WO.prototype.showHideButton=WO.prototype.showHideButton;WO.prototype.dataChanged=WO.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],WO.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WO.prototype,"forceIconButton",void 0);
_.B([_.I(),_.S("design:type",Object)],WO.prototype,"forceIconOnly",void 0);_.B([_.I(),_.S("design:type",Object)],WO.prototype,"overrides",void 0);_.B([_.I(),_.S("design:type",Object)],WO.prototype,"buttonTooltipPosition",void 0);_.B([_.I(),_.S("design:type",Object)],WO.prototype,"styleActionButton",void 0);_.B([_.I(),_.S("design:type",Object)],WO.prototype,"disableTextTransform",void 0);
_.B([_.I({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.S("design:type",String)],WO.prototype,"videoId",void 0);_.B([_.I(),_.S("design:type",Object)],WO.prototype,"data",void 0);_.B([_.I({selector:IL,selectorArgs:["videoId"]}),_.S("design:type",Object)],WO.prototype,"downloadProgress",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],WO.prototype,"isDownloadComplete",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],WO.prototype,"isHidden",void 0);_.B([_.I({selector:_.Te,selectorArgs:["videoId"]}),_.S("design:type",String)],WO.prototype,"transferState",void 0);_.B([_.I({selector:_.TSe,selectorArgs:["videoId"]}),_.S("design:type",Object)],WO.prototype,"isVideoDeletedByUser",void 0);_.B([_.I({selector:pY0,selectorArgs:["videoId"]}),_.S("design:type",Object)],WO.prototype,"offlineabilityState",void 0);
_.B([_.I({value:!0}),_.S("design:type",Boolean)],WO.prototype,"showTooltips",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],WO.prototype,"sendCommandWhenDisabled",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],WO.prototype,"disabled",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WO.prototype,"dataChanged",null);
_.B([_.QR("offlineabilityState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WO.prototype,"showHideButton",null);_.B([_.QR("transferState","isVideoDeletedByUser"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WO.prototype,"onTransferStateChanged",null);_.B([_.QR("downloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WO.prototype,"updateProgress",null);
WO=_.B([_.e({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],WO);
_.G(WO,"ytd-download-button-renderer",function(){if(aQl!==void 0)return aQl;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return aQl=f},{mode:2});var WWH;var E1A,tqC=function(){if(E1A!==void 0)return E1A;var f=document.createElement("template");_.N(f,'\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 E1A=f};var Cof=_.E("web_button_rework")&&_.Hh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),yaA=_.RV("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,El=function(){var f=_.U.apply(this,arguments)||this;f.isPressed=!1;f.forceIconButton=!1;f.forceIconOnly=!1;f.forceModernIconButton=!1;f.alignByText=!1;f.isShorts=!1;f.animatedText=!1;f.shouldAnimate=!1;f.JSC$12386_browserSupportsAnimation=_.E("web_supports_animations_api");f.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};f.onTap=function(){var R;if((R=f.data)==null||!R.defaultNavigationEndpoint){var u;R=!((u=f.data)==null?0:u.isToggled);var O;if((O=f.data)==null||!O.preventAutoToggle){f.shouldAnimate=!1;f.disableTextUpdateJobId&&_.JA.cancelJob(f.disableTextUpdateJobId);f.disableTextUpdateJobId=_.JA.addLowPriorityJob(function(){f.disableTextUpdateJobId=void 0},yaA);
var c;f.set("data.isToggled",!((c=f.data)==null?0:c.isToggled));u=f.getInnertubeIcon();O={toggled:R,actions:{}};u&&(O.actions[u.toLowerCase()]=R);_.ul(f.hostElement,"yt-toggle-button",O)}}};
return f};
_.y(El,_.U);_.X=El.prototype;_.X.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.JA.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.toggle=function(f){var R;this.set("data.isToggled",f!==void 0?f:!((R=this.data)==null?0:R.isToggled))};
_.X.handleUpdateToggleButtonStateCommand=function(f){if(this.data){f=_.t(f,LOY);var R,u,O,c=(R=this.data)==null?void 0:(u=R.toggleButtonSupportedData)==null?void 0:(O=u.toggleButtonIdData)==null?void 0:O.id;c&&f&&c===(f==null?void 0:f.buttonId)&&this.set("data.isToggled",f.toggled)}};
_.X.handleUpdateToggleButtonTextAction=function(f){if(this.data){f=_.t(f,hOC);var R,u,O,c=(R=this.data)==null?void 0:(u=R.toggleButtonSupportedData)==null?void 0:(O=u.toggleButtonIdData)==null?void 0:O.id;c&&f&&c===(f==null?void 0:f.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=f.defaultNumericalValue,this.set("data.defaultText",f.defaultText),this.set("data.toggledText",f.toggledText),this.shouldAnimate=!1)}};
_.X.getInnertubeIcon=function(){var f=this.data;if(f){var R,u,O=((R=f.defaultIcon)==null?0:R.iconType)?(u=f.defaultIcon)==null?void 0:u.iconType:null,c,h;R=((c=f.toggledIcon)==null?0:c.iconType)?(h=f.toggledIcon)==null?void 0:h.iconType:O;return f.isToggled?R:O}};
_.X.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Vy.Object.defineProperties(El.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f={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$12386_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var R=f.renderer;var u=f.element;var O=f.toggled;var c=f.onTapCallback;var h=f.commandClientArgs;var l=f.overrides;var K=f.forceIcon;var q=f.forceModernIconButton;var F=f.forceDisabled;var w=f.useAnimatedText;var m=f.animatedTextProps;f=zZ2(R,O);K=!R.defaultIcon||!K&&R.defaultText?R.defaultIcon?"leading":void 0:q?"icon-only":"icon-only-40";K==="icon-only-40"&&(f.type="text");var W;q=Object;var C=q.assign,d;a:switch((d=
R.style)==null?void 0:d.styleType){case "STYLE_COMPACT_GRAY":d={size:"S"};break a;default:d={size:"M"}}var p=!!O;var J=(J=O&&R.toggledText||R.defaultText)?_.Dz(J):void 0;w?(w=_.$Z(O&&R.toggledText||R.defaultText))&&m&&!isNaN(Number(m.numberValue))?(m.numberText=w,O&&(m.numberValue+=1),w=m):w=void 0:w=void 0;var M,P,g,x;var fh=(m=((P=O?R.toggledAccessibilityData||((fh=R.toggledText)==null?void 0:fh.accessibility):R.accessibilityData||((M=R.defaultText)==null?void 0:M.accessibility))==null?void 0:(g=
P.accessibilityData)==null?void 0:g.label)||((x=R.accessibility)==null?void 0:x.label))?m:_.$Z(O&&R.toggledText||R.defaultText);F=F===void 0?R.isDisabled:F;u=Jan(R,O,c,u,h);O=DhB(R,O);O!=null&&O.length?(O=_.MO({innertubeCommand:tml(O),forceNewState:!0}),O=P7(O)?O:void 0):O=void 0;R=C.call(q,{},f,d,{iconPosition:K},l,{focused:!1,toggled:p,toggleable:!0,formattedButtonText:J,animatedTextProps:w,accessibilityLabel:fh,disabled:F,onTap:u,aTagConfig:O},sv5((W=R.colorData)==null?void 0:W.basicColorPaletteData));
R.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(R.type="filled");return R}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var f=this.getInnertubeIcon();if(f)return _.li(f)}}});
El.prototype.resetAnimation=El.prototype.resetAnimation;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],El.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],El.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],El.prototype,"isPressed",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"forceIconButton",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"forceIconOnly",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"forceModernIconButton",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"alignByText",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"overrides",void 0);
_.B([_.I(),_.S("design:type",Boolean)],El.prototype,"disabled",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"isShorts",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"buttonTooltipPosition",void 0);_.B([_.I(),_.S("design:type",Object)],El.prototype,"animatedText",void 0);_.B([_.I(),_.S("design:type",String)],El.prototype,"textNumberValue",void 0);_.B([_.I({computed:"computeTooltip(data, data.isToggled)"}),_.S("design:type",Object)],El.prototype,"tooltip",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],El.prototype,"resetAnimation",null);_.B([_.T("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.S("design:type",Object),_.S("design:paramtypes",[])],El.prototype,"computedButtonShape",null);_.B([_.T("data.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],El.prototype,"computedIcon",null);
El=_.B([_.e({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],El);Cof&&_.G(El,"ytd-toggle-button-renderer",tqC,{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var DR=_.nf(function(f){function R(F){var w;return _.k(function(m){if(m.nextAddress==1)return(w=!HDn(F,K())||!K().enabled)?m.jumpTo(2):_.A(m,eZh(),3);m.nextAddress!=2&&(w=m.yieldResult);if(w)return m.return();u();setTimeout(function(){l(!1)},1500);
_.KG(m)})}
function u(){setTimeout(function(){l(!0);var F;(F=O.lottieEl)==null||F.goToAndPlay(0)},150)}
var O=_.ZR(),c=_.Z(_.qK(!1,void 0,"JJXzp")),h=c.next().value,l=c.next().value,K=_.g_(f.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.bt(function(){var F,w;((F=f.settings)==null?void 0:(w=F.call(f))==null?void 0:w.uniqueId)==="this is not intended behavior"&&_.Ih(new _.ts("Smartimation Settings is undefined"))});
_.pc(function(){K().experimentEnabled&&(K().enabled?IQD(R):(l(!1),Mql(R)),_.jN(function(){Mql(R)}))});
_.pc(function(){K().timings.join("");K().experimentEnabled&&(Pon(K()),_.jN(function(){Uh2(K())}))});
var q=_.Qt(function(){var F=O,w=K().uniqueId+"-border",m,W;var C="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((W=(m=_.vh().resolve(_.Y8(_.oF)))==null?void 0:m())!=null&&W?"dark":"light")+"_v2.json";return{animationRef:F,animationConfig:{name:w,autoplay:!1,loop:!1,path:C}}},void 0,"tgykab");
c={};return _.a("yt-smartimation",{class:_.KL(f.className,"smartimation",(c["smartimation--experiment-enabled"]=function(){return K().experimentEnabled},c["smartimation--active-border"]=h,c["smartimation--enable-masking"]=G7t(),c))},_.a(_.Q,{cond:function(){return K().experimentEnabled},
then:function(){return _.a("div",{class:"smartimation__border"},_.a(_.qI,{className:"smartimation__border-gradient",data:q,animationName:function(){return q().animationConfig.name}}))}}),_.a("div",{class:"smartimation__content"},f.children))},"B");
DR.idomCompat=!0;_.ii(DR,"yt-smartimation",{props:{className:_.SG,settings:_.SG}});var tU=function(){var f=_.U.apply(this,arguments)||this;f.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};f.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};f.shouldEnableSmartimation=!1;return f};
_.y(tU,_.U);tU.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
tU.prototype.onDataChanged=function(){var f,R;this.shouldEnableSmartimation=(((f=this.data)==null?void 0:(R=f.timedAnimationData)==null?void 0:R.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
tU.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var f=_.t(this.data.likeButton,_.T9),R=_.t(this.data.dislikeButton,_.T9);return!!((f==null?0:f.isToggled)||(R==null?0:R.isToggled))};
tU.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]]"}}}}}};
_.Vy.Object.defineProperties(tU.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var f,R,u=((f=this.data)==null?void 0:(R=f.timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:this.shouldEnableSmartimation,experimentEnabled:u.length>0}}}});
tU.prototype.onDataChanged=tU.prototype.onDataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tU.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],tU.prototype,"likeButtonOverride",void 0);_.B([_.I(),_.S("design:type",Object)],tU.prototype,"dislikeButtonOverride",void 0);
_.B([_.T("shouldEnableSmartimation"),_.S("design:type",Object),_.S("design:paramtypes",[])],tU.prototype,"smartimationSettings",null);_.B([_.qM("data"),_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tU.prototype,"onDataChanged",null);tU=_.B([_.e({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],tU);
_.G(tU,"ytd-segmented-like-dislike-button-renderer",function(){if(WWH!==void 0)return WWH;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return WWH=f},{mode:1});var dhG;var NEH;(NEH=document.body)==null||NEH.setAttribute("rounded-container","");var LWC={};LWC.YtToggleButtonBehavior=[_.fq.YtActionHandlerBehavior,Qj.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 f=this.data.isToggled;if(!this.isModal_(f)){if(!this.data.preventAutoToggle){this.toggle();var R={toggled:this.data.isToggled,actions:{}};R.actions[this.buttonIcon]=this.data.isToggled;_.ul(this.hostElement,"yt-toggle-button",R)}R=this.data.defaultServiceEndpoint||null;var u=this.data.toggledServiceEndpoint||null;if(R&&u||R&&this.data.preventAutoToggle)f=f?u:R,R=this.disableCommandHandlerOverride,_.E("killswitch_toggle_button_behavior_resolve_command")||R?_.hH(this.hostElement,
[f]):_.qO(f,this.hostElement),_.ul(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:f})}},
stateChanged_:function(){var f=this.data;if(f){var R=f.isToggled;this._setEndpoint(this.computeEndpoint_(f));this._setServiceEndpoint(this.computeServiceEndpoint_(f));this._setButtonIcon(this.computeButtonIcon_(f,R));this._setButtonText(this.computeButtonText_(f,R));this._setButtonAccessibility(this.computeAccessibility_(f,R));this._setButtonTooltip(this.computeTooltip_(f,R));this._setButtonClass(this.computeButtonClass_(f,R));this._setIconPositionType(this.computeIconPositionType_(f));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=R):this.elements_.button.setAttribute("aria-pressed",R));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=R)}},
shouldSetIconActiveState_:function(){return _.E("kevlar_system_icons")},
toggle:function(f){this.set("data.isToggled",f!==void 0?f:!this.data.isToggled);_.E("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(f){if(f){var R,u;return!!((R=this.data)==null?0:(u=R.toggledServiceEndpoint)==null?0:u.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(f){return f&&f.defaultNavigationEndpoint||null},
computeButtonIcon_:function(f,R){var u=f&&f.defaultIcon?_.li(f.defaultIcon.iconType):null;f=f&&f.toggledIcon?_.li(f.toggledIcon.iconType):u;return R?f:u},
handleUpdateToggleButtonStateCommand_:function(f){f=f.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==f.buttonId&&this.toggle(f.toggled)},
computeButtonText_:function(f,R){return f?R&&f.toggledText||f.defaultText||null:null},
computeAccessibility_:function(f,R){return f?(R?this.get("toggledAccessibilityData.accessibilityData",f):this.get("accessibilityData.accessibilityData",f))||f.accessibility||null:null},
computeTooltip_:function(f,R){return f?R&&f.toggledTooltip||f.defaultTooltip||null:null},
computeButtonClass_:function(f,R){if(!f)return"";var u="",O=f.toggledStyle||f.style;if(R=R?O:f.style){R.styleType&&(R=R.styleType);try{u+=R.toLowerCase().replace(/_/g,"-")+" "}catch(c){_.MB(c,R,typeof R),_.Ih(c)}}if(f=f.size){f.sizeType&&(f=f.sizeType);try{u+=f.toLowerCase().replace(/_/g,"-")+" "}catch(c){_.MB(c,f,typeof f),_.Ih(c)}}return u.trim()},
computeIconPositionType_:function(f){return f&&f.iconPosition||null},
computeServiceEndpoint_:function(f){var R=f&&f.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return R?R:u&&f.command?f.command:null},
handleUpdateToggleButtonTextAction_:function(f){f=f.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==f.buttonId&&(this.set("data.defaultText",f.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",f.toggledText),this.notifyPath("data.toggledText"))}}];_.j6("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var bDk=_.E("web_button_rework")&&_.Hh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),Ce=function(){var f=_.U.apply(this,arguments)||this;f.systemIcons=_.E("kevlar_system_icons");f.roundedContainer=!0;return f};
_.y(Ce,_.U);Ce.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Ce.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var f=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var R={toggled:!!this.data.isToggled,actions:{}};R.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var u,O;R.actions.playlistId=(u=this.data.defaultServiceEndpoint)==null?void 0:(O=u.playlistEditEndpoint)==null?void 0:O.playlistId;_.ul(this.hostElement,"yt-toggle-button",R)}(f=f?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(f)}};
Ce.prototype.onYtNavigate=function(f){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);R&&(f.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(R))};
_.Vy.Object.defineProperties(Ce,{template:{configurable:!0,enumerable:!0,get:function(){if(dhG===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);dhG=f}f=dhG;return f}}});
Ce.prototype.onYtNavigate=Ce.prototype.onYtNavigate;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],Ce.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(LWC.YtToggleButtonBehavior),_.S("design:type",Object)],Ce.prototype,"ytToggleButtonBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Ce.prototype,"data",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],Ce.prototype,"showTooltips",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ce.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ce.prototype,"roundedContainer",void 0);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ce.prototype,"onYtNavigate",null);
Ce=_.B([_.e({is:"ytd-toggle-button-renderer",disableElementRegistration:bDk})],Ce);var p4f;_.yT=new _.Vi("PANEL_CONTROLLER_TOKEN");_.dp=new _.Vi("SHEET_CONTROLLER_TOKEN");_.N$=new _.Vi("DIALOG_CONTROLLER_TOKEN");p4f=new _.Vi("DIALOG_CONTAINER_TOKEN");var Vql=_.Fa("DOWNLOAD",{},"Download"),YwX=_.Fa("DOWNLOADING",{},"Downloading"),v1P=_.Fa("DOWNLOADED",{},"Downloaded"),iDP=_.Fa("RETRY",{},"Retry");var fGP=[],R3q=!1;var jZA=_.nf(function(f){var R=KEn,u=function(){return""},O=h32(f.data),c=Zx2(f.data),h=lGe(f.data),l=kvl(f.data);
R=function(){var K=f.data(),q=sZB(K,O(),c(),h(),l()),F=!!K.videoId,w=q.text;return{title:F?w:void 0,tooltip:F?void 0:w,accessibilityText:w,onTap:q.onTap,iconName:q.iconType,style:K.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:q.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:K.buttonSize}};
u={};u=_.KL("ytDownloadButtonViewModelHost",(u.ytDownloadButtonViewModelIsHidden=function(){var K=f.data(),q=l();return K.playlistId||q()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},u));
return _.a("download-button-view-model",{class:u},_.a(_.TS,{data:R}))},"C");
jZA.idomCompat=!0;var Jaf=_.nf(function(f){var R=f.backgroundLottieRef;var u=f.foregroundLottieRef;var O=f.children;var c=f.wrapperClass;var h=f.disableAnimation;f=function(){return(_.E("web_animated_actions")||_.E("web_animated_actions_v2"))&&!(h==null?0:h())};
return _.a("yt-animated-action",{class:_.KL("animated-action__container",c)},_.a("div",{class:"animated-action__content-with-background"},_.a(_.Q,{cond:f,then:function(){return _.a(Dhf,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:R==null?void 0:R(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(q9D()?"dark":"light")+"_v5.json"}}}})}}),O),_.a(_.Q,{cond:f,
then:function(){return _.a(Dhf,{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_"+(q9D()?"dark":"light")+"_v4.json"}}}})}}))},"D");
Jaf.idomCompat=!0;var Dhf=_.nf(function(f){var R=f.wrapperClass;var u=f.lottieClass;var O=f.lottiePlayerProps;return _.a("div",{class:_.KL("animated-action__lottie",R),"aria-hidden":"true"},_.a(_.qI,{className:u,data:O,animationName:function(){return O().animationConfig.name}}))},"E");var A62={isOpen:!1};var FE0={isAllowed:!1};var mbl={errorMessage:"",title:"",privacy:"",isDisabled:!0};var WEX={isOpen:!1};var tKl={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var zZA={response:void 0};var y60=function(f,R){f=f===void 0?zZA:f;switch(R.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},f,{response:R.payload});default:return f}};var TEC={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var dbP=function(f,R){f=f===void 0?TEC:f;switch(R.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},f,{nextDisabled:R.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},f,{nextCommand:R.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},f,{footerSubmissionData:R.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},f,{isImpersonationValid:R.payload});default:return f}};var HDi={reportFormData:void 0,reportDetailsFormData:void 0};var N1q=function(f,R){f=f===void 0?HDi:f;switch(R.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},f,{reportFormData:R.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},f,{reportDetailsFormData:R.payload});default:return f}};var IQk=void 0;_.E("mweb_enable_redux_store_on_demand")||(IQk=new gz(LE7()));var MqF=_.nf(function(f){f=_.sU(f,{themeOverride:void 0,animationRef:{}});var R=f.animatedIconType,u=f.active,O=f.themeOverride,c=f.animationRef;f=f.staticIconFn;var h=_.Z(_.qK(void 0,void 0,"P5a72b")),l=h.next().value,K=h.next().value,q=function(){a:{var J=R();var M=O==null?void 0:O();var P;M=(M==null?void 0:M.useDarkTheme)||((P=_.vh().resolve(_.Y8(_.oF)))==null?void 0:P());switch(J){case "LIKE":IQk||(IQk=new gz(LE7()));J=(J=juP(IQk.getState()))&&J.animationLightUrl&&J.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:M?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:M?J.animationDarkUrl:J.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(J){M=J;break a}M="animated_like_icon_"+(M?"dark_v4":"light_v4");M={lottiePlayerProps:{animationConfig:{name:M,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+M+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":M={lottiePlayerProps:{animationConfig:{name:M?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(M?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}M=void 0}return M},F=function(){var J,M;
return(M=(J=q())==null?void 0:J.lottiePlayerProps.animationConfig.name)!=null?M:""},w=function(){if(q()){var J=q().lottiePlayerProps.animationConfig.path;
return kG.get(J)||l()}};
h=_.Z(_.qK(!1,void 0,"h6xR3c"));var m=h.next().value;h=h.next().value;var W=pH7(h),C=function(){var J=q(),M,P,g;return(g=J==null?void 0:(M=J.lottiePlayerProps.animationConfig)==null?void 0:(P=M.rendererSettings)==null?void 0:P.className)!=null?g:""},d=void 0,p=void 0;
_.pc(function(){var J=q(),M=F(),P=w(),g=m(),x=u();if(J&&(p!==M&&(p=M,d=x,M=c(),W.animationConfig=J.lottiePlayerProps.animationConfig,W.animationRef=M,P&&(W.animationConfig.animationData=P,W.animationConfig.path=void 0),M=J.lottiePlayerProps.animationConfig.path,!kG.get(M)&&J.lazyLoad&&M&&bxP(M,K)),!(g||J.lazyLoad&&!P))){if(P=!c().lottieEl)x?(g=J.totalFrames,W.animationConfig.initialSegment=[g-1,g]):W.animationConfig.initialSegment=void 0;if(d!==x&&!P)if(P=c(),x){var fh;(fh=P.lottieEl)==null||fh.playSegments([0,
J.totalFrames],!0)}else{var V;(V=P.lottieEl)==null||V.playSegments([0,1],!0)}d=x}});
return _.a("animated-icon",{class:"ytAnimatedIconHost"},_.a(_.Q,{cond:function(){var J,M;return!((J=q())==null||!J.lottiePlayerProps.animationConfig.path||((M=q())==null?0:M.lazyLoad)&&!w()||m())},
then:function(){return _.a(_.qI,{data:W,animationName:F,className:C,animationRef:c})},
else:f}))},"F");_.Le=_.nf(function(f){var R=_.sW(),u=_.sW(),O=_.sW(),c=_.ZR(),h=_.ZR(),l=_.ZR(),K=_.Ax(Con,function(){return f.data().stateEntityStoreKey}),q=_.Ax(ya2,function(){var ak,kC;
return(kC=(ak=f.data().notificationStateEntityStoreKeys)==null?void 0:ak.subsNotificationStateKey)!=null?kC:""}),F=function(){return!f.data().enableSubscribeButtonPostClickAnimation},w=_.Z(_.qK(0,void 0,"eTsWvc")),m=w.next().value,W=w.next().value;
w=_.Z(_.qK(0,void 0,"dniDQ"));var C=w.next().value,d=w.next().value;w=_.Z(_.qK(!1,void 0,"EluPic"));var p=w.next().value,J=w.next().value;w=_.Z(_.qK(!1,void 0,"r0jnre"));var M=w.next().value,P=w.next().value;w=_.Z(_.qK(!1,void 0,"KMvoQe"));var g=w.next().value,x=w.next().value,fh;w=_.Z(_.qK(!1,void 0,"aSENce"));var V=w.next().value,ZD=w.next().value,mP=function(){P(!0);_.mQ(_.JA,function(){P(!1)},1500)};
_.pc(function(){var ak=M();Kc(function(){ak&&!F()&&K()&&UbP(c,h,l)})});
_.pc(function(){var ak=K();Kc(function(){if(!F()&&ak){var kC;((kC=f.animateWidth)==null?0:kC.call(f))&&P6P(R.value,!!ak.subscribed,m(),C());var Rw,KC;((Rw=fh)==null?0:Rw.subscribed)||!ak.subscribed||ak.key!==((KC=fh)==null?void 0:KC.key)||mP();fh=ak}})});
w=_.Qt(function(){var ak,kC,Rw,KC=f.data(),qe=!((ak=K())==null||!ak.subscribed);ak=!((kC=f.isOverlay)==null||!kC.call(f));kC=p()?R:void 0;var LE=(Rw=q())==null?void 0:Rw.state;Rw=V();MK2(KC,LE);return J67({model:KC,subscribed:qe,isOverlay:ak,element:kC,notificationState:LE,disableTextEllipsis:!0,focused:Rw})},void 0,"yGQGue");
var NX=function(){var ak;if(!F()&&((ak=f.animateWidth)==null?0:ak.call(f))&&(u==null?0:u.value)&&(O==null?0:O.value)&&!g()){ak=K();var kC=_.Z((ak==null?0:ak.subscribed)?[u,O]:[O,u]),Rw=kC.next().value;kC=kC.next().value;Rw=Math.ceil(Rw.value.getBoundingClientRect().width);kC=Math.ceil(kC.value.getBoundingClientRect().width);W(Rw);d(kC);P6P(R.value,!(ak==null||!ak.subscribed),Rw,kC);x(!0)}},jt=_.Ff(function(ak){NX();
var kC=K();kC&&(ak.detail.endpoint.subscribeEndpoint||ak.detail.endpoint.unsubscribeEndpoint)&&T10(R.value,!kC.subscribed,kC)}),Jn=function(){var ak=_.vh().resolve(_.Y8(_.Oc));
ak&&ZD(ak.isKeyBoardInUse())},zq=function(){ZD(!1)};
_.gJ("yt-player-subscribe",function(ak){var kC=K();kC&&ak===f.data().channelId&&T10(R.value,!0,kC)});
_.gJ("yt-player-unsubscribe",function(ak){var kC=K();kC&&ak===f.data().channelId&&T10(R.value,!1,kC)});
_.gJ("yt-update-subscribe-button-action",function(ak){ak=_.t(ak,KOG);var kC=K();kC&&ak&&ak.channelId===f.data().channelId&&T10(R.value,!!ak.subscribed,kC)});
_.bt(function(){R.value&&(R.value.addEventListener("focusin",Jn),R.value.addEventListener("focusout",zq));var ak=_.dJ(_.JA,function(){NX()});
J(!0);_.jN(function(){_.JA.cancelJob(ak);R.value&&(R.value.removeEventListener("focusin",Jn),R.value.removeEventListener("focusout",zq))})});
var St=function(){var ak,kC,Rw;if(Rw=!((ak=K())==null||!ak.subscribed))ak=!!f.data().disableNotificationBell,Rw=(kC=q())==null?void 0:kC.state,Rw=!ak&&!!Rw;return Rw},Gq=function(){var ak;
return!((ak=K())==null?0:ak.subscribed)},LC=function(){var ak,kC;
if(kC=Gq()){kC=!!f.data().disableNotificationBell;var Rw=(ak=q())==null?void 0:ak.state;kC=!kC&&!!Rw}return kC},wN={},GI={};
return _.a("yt-subscribe-button-view-model",{class:_.KL(f.className,"yt-subscribe-button-view-model-wiz",(wN["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var ak,kC;return!((ak=K())==null||!ak.subscribed)&&((kC=f.animateWidth)==null?void 0:kC.call(f))&&M()},wN["yt-subscribe-button-view-model-wiz--hidden"]=function(){var ak;
return!((ak=K())==null?0:ak.subscribed)&&f.data().hideWhenUnsubscribed},wN)),
el:R,"on:yt-service-request-sent":jt},_.a(Jaf,{backgroundLottieRef:c,foregroundLottieRef:h,wrapperClass:_.KL("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(GI["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var ak;return((ak=f.animateWidth)==null?void 0:ak.call(f))&&M()},GI["yt-subscribe-button-view-model-wiz__static-width"]=function(){var ak;
return!((ak=f.animateWidth)==null?0:ak.call(f))},GI)),
disableAnimation:F},_.a("div",{el:u,class:"yt-subscribe-button-view-model-wiz__container"},_.a(iA,{data:w,icon:function(){return _.a(_.Q,{cond:St,then:function(){var ak=function(){var kC;return z3h((kC=q())==null?void 0:kC.state)};
return _.a(_.Q,{cond:function(){return F()||ak()!=="NOTIFICATIONS_NONE"},
then:function(){return _.a(_.WM,{icon:ak})},
else:function(){return _.a(MqF,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:l})}})}})},
secondaryIconName:function(){return St()?"EXPAND":void 0}}))),_.a("div",{el:O,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.a(_.Q,{cond:function(){var ak;return((ak=f.animateWidth)==null?void 0:ak.call(f))&&!F()&&!g()},
then:function(){return _.a(iA,{data:_.Qt(function(){var ak;return J67({model:f.data(),subscribed:Gq(),isOverlay:!((ak=f.isOverlay)==null||!ak.call(f)),element:R,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var ak;return LC()?z3h((ak=q())==null?void 0:ak.state):void 0},
secondaryIconName:function(){return LC()?"EXPAND":void 0}})}})))},"G");
_.Le.idomCompat=!0;var e37=new _.Vi("RENDERER_STAMPER_OPTIONS_TOKEN");var tx;_.Ep=new hGE;tx=new Map;var RsB="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Ow7=["notificationTextRenderer","notificationMultiActionRenderer"],u9t="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
f6n=seD(function(f){return _.Jy(f==null?void 0:f.targetId)}).useUpdatableData;var r6e=0;_.y5.debugName="EjJbCe";var Poi=_.nf(function(f){var R=f.data;var u=_.Ax(Con,function(){return R().subscriptionStateEntityKey});
return _.a(_.Q,{cond:function(){var O=R(),c=u();return!O.hideWhenUnsubscribed||(c==null?0:c.subscribed)?_.t(R().button,_.dW):void 0},
then:function(O){return _.a("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.a(_.TS,{data:O,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");var hse=_.WJ({buttonViewModel:_.TS,subscribeButtonViewModel:_.Le,downloadButtonViewModel:jZA,toggleButtonViewModel:_.Lr,subscribePlusButtonViewModel:Poi});_.RI(l67);var UhA=_.nf(function(f){return _.a(_.y5,{data:function(){return f.actionRow().actions}},{buttonViewModel:function(R){var u=R.data;
return _.a(bP,{isRow:f.isRow,isIconOnlyButton:function(){return kFe(u())},
useIntrinsicWidth:f.useIntrinsicWidth},_.a(_.TS,{data:u}))},
subscribeButtonViewModel:function(R){return _.a(bP,{isRow:f.isRow},_.a(_.Le,{data:R.data,isOverlay:!1,animateWidth:function(){return!f.isRow()}}))},
downloadButtonViewModel:function(R){var u=R.data;return _.a(bP,{isRow:f.isRow,isIconOnlyButton:function(){return!!u().playlistId}},_.a(jZA,{data:u}))},
toggleButtonViewModel:function(R){var u=R.data;return _.a(bP,{isRow:f.isRow,isIconOnlyButton:function(){var O=u();return kFe(_.t(O.isToggled?O.toggledButtonViewModel:O.defaultButtonViewModel,_.dW))}},_.a(_.Lr,{data:u}))},
subscribePlusButtonViewModel:function(R){return _.a(bP,{isRow:f.isRow},_.a(Poi,{data:R.data}))}})},"I"),bP=_.nf(function(f){var R={};
return _.a("div",{class:_.KL("yt-flexible-actions-view-model-wiz__action",(R["yt-flexible-actions-view-model-wiz__action--row-action"]=f.isRow,R["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=f.useIntrinsicWidth,R["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,R["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=f.isIconOnlyButton,R))},f.children)},"J"),eZC=_.nf(function(f){var R=function(){var O;
return((O=f.layout)==null?void 0:O.call(f))===1},u={};
return _.a("yt-flexible-actions-view-model",{class:_.KL("yt-flexible-actions-view-model-wiz",f.className,(u["yt-flexible-actions-view-model-wiz--inline"]=function(){return!R()},u["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return f.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},u))},_.a(_.EC,{each:function(){return f.data().actionsRows||[]}},function(O){return _.a(_.Q,{cond:R,
then:function(){return _.a("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.a(UhA,{actionRow:O,isRow:R,useIntrinsicWidth:function(){return!!f.data().respectActionIntrinsicWidth}}))},
else:function(){return _.a(UhA,{actionRow:O,isRow:R})}})}))},"K"),pe=_.E("web_enable_sink_yt_flexible_actions_view_model")?eZC:_.aX(l67);
eZC.idomCompat=!0;_.ii(pe,"yt-flexible-actions-view-model",{props:{data:_.SG,layout:_.SG,justifyContentOverride:_.SG,className:_.SG}});_.RI(KKh);var G7Y,wSt;G7Y=_.nf(function(f){var R=_.Ax(zw,function(){var c;return(c=f.data().dislikeEntityKey)!=null?c:""}),u=_.Qt(function(){var c=R();
return c?c.likeStatus==="DISLIKE":_.t(f.data().toggleButtonViewModel,_.Np).isToggled},void 0,"D8oIFb"),O=_.Qt(function(){return Object.assign({},_.t(f.data().toggleButtonViewModel,_.Np),{isToggled:u()})},void 0,"shaCXe");
return _.a("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.a(_.Lr,{data:O,buttonShapeOverrides:f.buttonShapeOverrideables,onToggle:function(c){var h=R();h&&c!==(h.likeStatus==="DISLIKE")&&h.key&&_.$s(_.bA("likeStatusEntity",h.key,{likeStatus:c?"DISLIKE":"INDIFFERENT",hadUserInteraction:c}))}}))},"L");
wSt=_.E("web_enable_sink_dislike_button_view_model")?G7Y:KKh;_.jM=_.E("web_enable_sink_dislike_button_view_model")?G7Y:_.aX(KKh);G7Y.idomCompat=!0;_.RI(AzP);var BEI,FK7;BEI=_.nf(function(f){var R=_.E("web_supports_animations_api"),u=V0(function(W){var C=F(),d,p=(C==null?void 0:(d=C.likeCountIfIndifferent)==null?void 0:d.content)!==W.numberText;if(K()||!p)return W;var J,M;return{numberText:(C==null?void 0:(J=C.likeCountIfIndifferent)==null?void 0:J.content)||"",numberValue:Number((M=C==null?void 0:C.likeCountIfIndifferentNumber)!=null?M:0),heightPx:36,shouldAnimate:!!C}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),O=V0(function(W){var C=F(),d,p=(C==null?void 0:(d=C.likeCountIfIndifferent)==null?void 0:d.content)!==W.numberText;if(K()||!p)return W;var J,M;return{numberText:(C==null?void 0:(J=C.likeCountIfLiked)==null?void 0:J.content)||"",numberValue:Number((M=C==null?void 0:C.likeCountIfLikedNumber)!=null?M:0),heightPx:36,shouldAnimate:!!C}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),c=_.Z(_.qK(void 0,void 0,"T6jMHc")),h=c.next().value,l=c.next().value,K=h,q=_.Ax(zw,function(){var W,C;return(C=(W=f.data())==null?void 0:W.likeStatusEntityKey)!=null?C:""}),F=_.Ax(rPn,function(){var W,C;
return((W=f.likeCountEntity)==null?void 0:(C=W.call(f))==null?void 0:C.key)||""}),w=_.Qt(function(){var W;
return((W=q())==null?void 0:W.likeStatus)==="LIKE"},void 0,"WxQBcd"),m=function(){var W;
return R&&!((W=f.likeCountEntity)==null||!W.call(f))};
return _.a("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.a(_.Lr,{data:function(){var W=Object,C=W.assign,d;var p=_.t((d=f.data())==null?void 0:d.toggleButtonViewModel,_.Np);return C.call(W,{},p||{},{isToggled:w()})},
buttonShapeOverrides:f.buttonShapeOverrideables,animatedTextPropsDefault:function(){return m()?u():void 0},
animatedTextPropsToggled:function(){return m()?O():void 0},
onToggle:function(W){a6e(W,q(),K(),l)},
style:function(){var W;return((W=f.disableIconAnimation)==null?0:W.call(f))?void 0:{animateIcon:"true"}}}))},"M");
FK7=_.E("web_enable_sink_like_button_view_model")?BEI:AzP;_.DA=_.E("web_enable_sink_like_button_view_model")?BEI:_.aX(AzP);_.RI(m3e);var o1A=_.nf(function(f){var R=function(){return _.t(f.data().likeButtonViewModel,_.pr)},u=function(){var c;
return((c=R())==null?void 0:c.likeStatusEntityKey)||""},O=_.Qt(function(){var c,h;
var l=(h=_.Ax(zw,u)())!=null?h:(c=R())==null?void 0:c.likeStatusEntity;c=f.data();var K;c=(c==null?void 0:(K=c.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:(l==null?void 0:l.likeStatus)==="INDIFFERENT"&&c.length>0,experimentEnabled:c.length>0}},void 0,"e1fsz");
return _.a("segmented-like-dislike-button-view-model",{class:_.KL("ytSegmentedLikeDislikeButtonViewModelHost",f.className),"button-renderer":!0},_.a(DR,{settings:O},_.a("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.a(_.Q,{cond:R,then:function(c){return _.a(_.DA,{data:c,likeCountEntity:function(){return f.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.a(_.Q,{cond:function(){return _.t(f.data().dislikeButtonViewModel,_.jP)},
then:function(c){return _.a(_.jM,{data:c,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),xhI=_.E("web_enable_sink_segmented_like_dislike_button_view_model")?o1A:m3e;
o1A.idomCompat=!0;_.E("web_enable_sink_segmented_like_dislike_button_view_model")?_.ii(xhI,"segmented-like-dislike-button-view-model",{props:{data:_.SG,className:_.SG}}):_.hS(xhI,"segmented-like-dislike-button-view-model",{propNames:["data"]});var yzq=0;_.ii(U3h,"account-link-button-view-model",{props:{data:_.SG,className:_.v7,setMinWidth:_.v7,forceIconOnly:_.v7}});_.j6("menuRenderer","menuRenderer","ytd-menu-renderer");
var Swi={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"}},
$hi=_.E("web_fix_missing_action_buttons")?100:200,JU=function(){var f=_.U.apply(this,arguments)||this;f.safeArea=!_.E("kevlar_flex_menu_safe_area_killswitch");f.tonalOverride=!1;f.threeDotSize="M";f.isOverlay=!1;f.useOverlayDark=!1;f.topLevelIconsOnly=!1;f.JSC$12530_lastWidth=0;f.maybeUpdateFlexibleMenu=function(){_.E("web_fix_missing_action_buttons")?requestAnimationFrame(f.maybeUpdateFlexibleMenuImpl):f.maybeUpdateFlexibleMenuImpl()};
f.maybeUpdateFlexibleMenuImpl=function(){var R;if((R=f.data)!=null&&R.flexibleItems){f.maybeFlushDebouncer();R=f.hostElement.clientWidth;var u=R>f.JSC$12530_lastWidth,O,c=((O=f.topLevelButtonsContainer)==null?void 0:O.scrollHeight)||0,h;O=((h=f.flexibleItemButtonsContainer)==null?void 0:h.scrollHeight)||0;h=f.hostElement.scrollHeight>Math.max(c,O)+8;u?(f.resetFlexibleItems(),f.JSC$12530_lastWidth=f.hostElement.clientWidth,f.maybeUpdateFlexibleMenu()):h&&(f.shrinkFlexibleMenu(),f.JSC$12530_lastWidth=
R)}};
f.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){f.onOverflowTap()},
iconPosition:"icon-only",style:f.isOverlay?f.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:f.threeDotSize,state:"active",accessibilityLabel:f.computeAccessibilityLabel(f.data)},f.threeDotButtonOverride)};
f.onOverflowTap=function(){if(f.data.fetchMenuCommand)_.vh().resolve(_.rv).resolveCommand(f.data.fetchMenuCommand,{form:{element:f.hostElement}});else if(f.data.isDisabled&&f.data.disabledCommand)_.qO(f.data.disabledCommand,f.hostElement);else{var R=f.createMenuRendererVe(),u={items:f.items};f.data.menuPopupAccessibility&&(u.menuPopupAccessibility=f.data.menuPopupAccessibility);f.data.footer&&(u.footer=f.data.footer);R={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:u},veData:R}};
_.vh().resolve(_.dp).openSheet({openPopupActionCommand:R},f.hostElement)}};
return f};
_.y(JU,_.U);_.X=JU.prototype;_.X.updateButtonOverrides=function(){if(!_.E("menu_renderer_label_update_upkillswitch")){var f=_.b(this.hostElement).querySelector("yt-button-view-model");f&&(f.buttonOverrides=this.buttonOverrides)}};
_.X.computeHasItems=function(){var f;return((f=this.topLevelButtonData)==null?void 0:f.length)||this.hasFlexibleItems};
_.X.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.X.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.ZO(this.hostElement,{"--ytd-menu-renderer-button-color":_.I1(this.data.iconColor)}))};
_.X.onStamperFinished=function(){this.JSC$12530_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.X.setupFlexibleMenu=function(){var f=this,R;(R=this.data)!=null&&R.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.vJ(this.maybeUpdateFlexibleMenu,$hi,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){f.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))};
_.X.maybeFlushDebouncer=function(){if(_.E("web_replace_formatted_with_attributed_string")){var f;(f=this.topLevelButtons)==null||f.forEach(function(u){var O;(u=(O=u.getElementsByTagName("yt-attributed-string"))==null?void 0:O[0])&&dE5(u)});
var R;(R=this.flexibleItemButtons)==null||R.forEach(function(u){var O;(u=(O=u.getElementsByTagName("yt-attributed-string"))==null?void 0:O[0])&&dE5(u)})}};
_.X.resetFlexibleItems=function(){var f;if((f=this.data)!=null&&f.flexibleItems){_.E("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var R;this.flexAsTopLevelButtons=(R=this.data.flexibleItems)==null?void 0:R.map(function(u){return _.t(u,_.H5f).topLevelButton});
_.E("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.X.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.X.shrinkFlexibleMenu=function(){var f;(f=this.flexAsTopLevelButtons)!=null&&f.length&&(this.flexAsTopLevelButtons=[].concat(_.yq(this.flexAsTopLevelButtons.slice(0,-1))))};
_.X.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Swi,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Swi,events:!0}}};
_.X.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.X.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.X.detached=function(){this.icon="yt-icons:more_vert"};
_.X.computeTopLevelButtonData=function(f){if(!f)return[];var R;f=(R=f==null?void 0:f.topLevelButtons)!=null?R:[];return _.dq.unsafeClone([].concat(_.yq(f)))};
_.X.computeItems=function(f,R){if(!f)return[];var u=[];if(R){var O=(f.flexibleItems||[]).map(function(l){return _.t(l,_.H5f)});
O=_.Z(O);for(var c=O.next();!c.done;c=O.next())c=c.value,R.includes(c.topLevelButton)||(c=c.menuItem)&&u.push(c)}var h;f=(h=f==null?void 0:f.items)!=null?h:[];return[].concat(_.yq(u),_.yq(f))};
_.X.computeMenuActive=function(f,R){return f||R};
_.X.onPopupOpened=function(){this.overlayOpen=!0;_.ul(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.X.onPopupClosed=function(){this.overlayOpen=!1;_.ul(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.X.onPopupCanceled=function(){this.overlayOpen=!1;_.ul(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.X.computeAccessibilityLabel=function(f){return this.get("accessibility.accessibilityData.label",f)};
_.X.isHidden=function(f,R){return this.tonalOverride||!f?!0:f.fetchMenuCommand||f.isDisabled&&f.disabledCommand?!1:!(R==null?0:R.length)};
_.X.isModernOverflowHidden=function(f,R){return this.tonalOverride&&f?f.fetchMenuCommand?!1:!(R==null?0:R.length):!0};
_.X.createMenuRendererVe=function(){var f=this.data.trackingParams,R=_.z4(),u=_.Jj();return f&&R&&u?(f=_.t4(f),u=_.dx(7591),_.E("combine_ve_grafts")?_.c1(_.wR(),u,f):_.ea(R,f,u),u):null};
_.Vy.Object.defineProperties(JU.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.flexAsTopLevelButtons)==null||!f.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
JU.prototype.onPopupCanceled=JU.prototype.onPopupCanceled;JU.prototype.onPopupClosed=JU.prototype.onPopupClosed;JU.prototype.onPopupOpened=JU.prototype.onPopupOpened;JU.prototype.tonalOverrideChanged=JU.prototype.tonalOverrideChanged;JU.prototype.resetFlexibleItems=JU.prototype.resetFlexibleItems;JU.prototype.setupFlexibleMenu=JU.prototype.setupFlexibleMenu;JU.prototype.iconButtonColorChanged=JU.prototype.iconButtonColorChanged;JU.prototype.updateButtonOverrides=JU.prototype.updateButtonOverrides;
_.B([_.z(_.S$),_.S("design:type",Object)],JU.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#button-shape"),_.S("design:type",Zs)],JU.prototype,"buttonShape",void 0);_.B([_.a4("#button"),_.S("design:type",Object)],JU.prototype,"button",void 0);
_.B([_.I(),_.S("design:type",Object)],JU.prototype,"data",void 0);_.B([_.I({computed:"computeTopLevelButtonData(data)"}),_.S("design:type",Array)],JU.prototype,"topLevelButtonData",void 0);_.B([_.I(),_.S("design:type",Array)],JU.prototype,"flexAsTopLevelButtons",void 0);_.B([_.I({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.S("design:type",Array)],JU.prototype,"items",void 0);_.B([_.I({value:"yt-icons:more_vert"}),_.S("design:type",String)],JU.prototype,"icon",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],JU.prototype,"safeArea",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.S("design:type",Boolean)],JU.prototype,"menuActive",void 0);_.B([_.I(),_.S("design:type",Boolean)],JU.prototype,"menuFocused",void 0);_.B([_.I({value:"bottom"}),_.S("design:type",String)],JU.prototype,"buttonTooltipPosition",void 0);_.B([_.I(),_.S("design:type",Boolean)],JU.prototype,"overlayOpen",void 0);
_.B([_.I({value:!0}),_.S("design:type",Boolean)],JU.prototype,"forceIconButton",void 0);_.B([_.I(),_.S("design:type",Boolean)],JU.prototype,"styleActionButton",void 0);_.B([_.I(),_.S("design:type",Boolean)],JU.prototype,"disableTextTransformOnButtons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],JU.prototype,"tonalOverride",void 0);_.B([_.I(),_.S("design:type",Object)],JU.prototype,"threeDotSize",void 0);
_.B([_.I(),_.S("design:type",Object)],JU.prototype,"threeDotButtonOverride",void 0);_.B([_.I(),_.S("design:type",Object)],JU.prototype,"isOverlay",void 0);_.B([_.I(),_.S("design:type",Object)],JU.prototype,"useOverlayDark",void 0);_.B([_.I({computed:"computeButtonOverride(tonalOverride)"}),_.S("design:type",Object)],JU.prototype,"buttonOverride",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],JU.prototype,"hasCustomIconColor",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("flexAsTopLevelButtons"),_.S("design:type",Object),_.S("design:paramtypes",[])],JU.prototype,"hasFlexibleItems",null);_.B([_.I({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.S("design:type",Boolean)],JU.prototype,"hasItems",void 0);_.B([_.I(),_.S("design:type",Object)],JU.prototype,"topLevelIconsOnly",void 0);
_.B([_.qM("topLevelIconsOnly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"updateButtonOverrides",null);_.B([_.T("topLevelIconsOnly"),_.S("design:type",Object),_.S("design:paramtypes",[])],JU.prototype,"buttonOverrides",null);_.B([_.a4("#top-level-buttons-computed"),_.S("design:type",HTMLElement)],JU.prototype,"topLevelButtonsContainer",void 0);_.B([_.F4(".top-level-buttons > *"),_.S("design:type",Array)],JU.prototype,"topLevelButtons",void 0);
_.B([_.a4("#flexible-item-buttons"),_.S("design:type",HTMLElement)],JU.prototype,"flexibleItemButtonsContainer",void 0);_.B([_.F4("#flexible-item-buttons > *"),_.S("design:type",Array)],JU.prototype,"flexibleItemButtons",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"iconButtonColorChanged",null);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"setupFlexibleMenu",null);_.B([_.QR("topLevelIconsOnly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"resetFlexibleItems",null);_.B([_.qM("tonalOverride"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"tonalOverrideChanged",null);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"onPopupOpened",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"onPopupClosed",null);_.B([_.Kf("yt-popup-canceled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JU.prototype,"onPopupCanceled",null);
_.G(JU,"ytd-menu-renderer",function(){if(k7H===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);k7H=f}f=k7H;return f},{mode:_.c7("kevlar_poly_si_batch_j030")?1:2});var g1k;var sZf;_.nr=_.nf(function(f){var R=f.data;var u=function(){if(R().icon)a:{var O={iconName:R().icon};for(var c=_.vh().resolve(_.kr),h=_.Z([12,24]),l=h.next();!l.done;l=h.next()){var K=l.value;l=Object.assign({},O,{iconStyle:"youtube_fill",iconSize:K});K=Object.assign({},O,{iconStyle:"youtube_outline",iconSize:K});if(c.resolveIcon(l)){O=l;break a}if(c.resolveIcon(K)){O=K;break a}}O=void 0}else O=void 0;return O};
f={};return _.a("badge-shape",{class:_.KL("badge-shape-wiz",function(){return BK7(R().type)},(f["badge-shape-wiz--overlay"]=function(){return R().isOverlay},f["badge-shape-wiz--ads-include-dot"]=function(){return R().adsIncludeDot},f["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(R().type){case 16:case 17:case 18:var O=!0;
break a;default:O=!1}return O},f["badge-shape-wiz--status-badge"]=function(){a:switch(R().type){case 11:case 12:case 13:case 14:case 15:var O=!0;
break a;default:O=!1}return O},f["badge-shape-wiz--no-text"]=function(){return!R().text},f["badge-shape-wiz--modern"]=function(){return R().modern},f)),
style:_.Qm({"background-color":function(){var O;return(O=R().customColors)==null?void 0:O.backgroundColor}}),
role:function(){return R().accessibilityText?"img":void 0},
"aria-label":function(){return R().accessibilityText}},_.a(_.Q,{cond:function(){return R().animation},
then:function(O){return _.a(_.qI,{className:"badge-shape-wiz__icon",data:O,animationName:function(){return O().animationConfig.name||""}})}}),_.a(_.Q,{cond:function(){var O;
return u()&&!((O=R())==null?0:O.animation)},
then:function(){return _.a("div",{class:"badge-shape-wiz__icon"},_.a(Bg7,{data:function(){return u()}}))}}),_.a("div",{class:"badge-shape-wiz__text"},function(){var O;
return(O=R())==null?void 0:O.text}))},"O");
_.nr.idomCompat=!0;_.ii(_.nr,"badge-shape",{props:{data:_.SG}});var zl=function(){var f=_.U.apply(this,arguments)||this;f.systemIcons=_.E("kevlar_system_icons");f.animated=_.E("animated_live_badge_icon");f.useBadgeShape=_.E("web_badge_shape_defrag");return f};
_.y(zl,_.U);_.X=zl.prototype;_.X.addTooltips=function(){for(var f=_.b(this.hostElement).querySelectorAll(".badge"),R=0,u;u=f[R++];){var O=this.repeatElement.itemForElement(u);u=_.b(u);u.lastChild&&u.lastChild.is==="tp-yt-paper-tooltip"&&u.removeChild(u.lastChild);if(O=O.metadataBadgeRenderer&&O.metadataBadgeRenderer.tooltip){var c=_.Yd("tp-yt-paper-tooltip");(0,_.hl)(c).textContent=O;c.setAttribute("position","top");c.setAttribute("aria-hidden","true");u.appendChild(c)}}};
_.X.badgesChanged=function(){var f=this;_.TC().parkOrScheduleJob(function(){f.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.X.standaloneRoundedBadgeChanged=function(){var f=this.useRoundedBadge?this.useRoundedBadge:void 0;f&&(this.useRoundedBadge=f)};
_.X.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.X.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.X.computeStyle=function(f){_.E("enable_html5_teal_ad_badge")&&f==="BADGE_STYLE_TYPE_AD"&&(f="badge-style-type-ad-alternate");_.E("kevlar_ytb_live_badges")&&f==="BADGE_STYLE_TYPE_LIVE_NOW"&&(f="badge-style-type-live-now-alternate");return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeRole=function(f){return this.computeAriaLabel(f)?"img":"status"};
_.X.computeAriaLabel=function(f){var R;return(f==null?void 0:(R=f.accessibilityData)==null?void 0:R.label)||(f==null?void 0:f.label)};
_.X.computeBadgeShape=function(f){var R;if(f){var u,O=es2(f.style),c=GF7(f.style),h=f.label,l=((u=f.accessibilityData)==null?void 0:u.label)||f.label;f=(R=f.icon)==null?void 0:R.iconType;R={type:O,brNzRatingBadgeType:c,text:h,accessibilityText:l,icon:f!=="PREMIUM"?f:void 0}}else R={};return R};
_.X.updateComputedBadges=function(f,R,u){var O=this;(R=R?[R]:u?[u]:void 0)?this.computedBadges=R:this.computedBadges=f==null?void 0:f.filter(function(c){var h;if((h=c.metadataBadgeRenderer)==null?0:h.groups){h=!1;c=_.Z(c.metadataBadgeRenderer.groups);for(var l=c.next();!l.done;l=c.next()){l=l.value;var K=void 0;h=h||((K=O.hiddenBadgeGroups)==null?void 0:K.includes(l))}return!h}return!0})};
_.X.useFilledIcons=function(f){return _.E("kevlar_system_icons")&&(f==="AUDIO_BADGE"||f==="CHECK_CIRCLE_THICK"||f==="OFFICIAL_ARTIST_BADGE"||f==="SPONSORSHIP_STAR"||f==="PERSON_RADAR_FILLED"||f==="PERSON_RADAR")};
_.X.computeIcon=function(f){var R,u;f=f==null?void 0:(R=f.metadataBadgeRenderer)==null?void 0:(u=R.icon)==null?void 0:u.iconType;if(f!=="PREMIUM"&&f)return _.li(f)};
_.X.computeStandaloneBadge=function(f){var R;f=f==null?void 0:(R=f.icon)==null?void 0:R.iconType;return f==="PREMIUM_STANDALONE"||f==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
zl.prototype.hiddenBadgeGroupsChanged=zl.prototype.hiddenBadgeGroupsChanged;zl.prototype.standaloneBadgeChanged=zl.prototype.standaloneBadgeChanged;zl.prototype.standaloneRoundedBadgeChanged=zl.prototype.standaloneRoundedBadgeChanged;zl.prototype.badgesChanged=zl.prototype.badgesChanged;_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"hidden",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],zl.prototype,"componentBehavior",void 0);
_.B([_.I(),_.S("design:type",Array)],zl.prototype,"badges",void 0);_.B([_.I(),_.S("design:type",Object)],zl.prototype,"topStandaloneBadge",void 0);_.B([_.I(),_.S("design:type",Object)],zl.prototype,"bottomStandaloneBadge",void 0);_.B([_.I(),_.S("design:type",Object)],zl.prototype,"computedBadges",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"mediumFontAdBadge",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"useRoundedBadge",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"largeFontAdBadge",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"overlayAd",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"overlayPremium",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"noDotAdBadge",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"collectionTruncate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"isThumbnailBadge",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zl.prototype,"wrapBadges",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zl.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zl.prototype,"animated",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zl.prototype,"useBadgeShape",void 0);_.B([_.I({value:[]}),_.S("design:type",Array)],zl.prototype,"hiddenBadgeGroups",void 0);_.B([_.a4("#repeat"),_.S("design:type",Lf)],zl.prototype,"repeatElement",void 0);_.B([_.QR("badges"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zl.prototype,"badgesChanged",null);
_.B([_.QR("useRoundedBadge"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zl.prototype,"standaloneRoundedBadgeChanged",null);_.B([_.QR("topStandaloneBadge","bottomStandaloneBadge"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zl.prototype,"standaloneBadgeChanged",null);_.B([_.QR("hiddenBadgeGroups"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zl.prototype,"hiddenBadgeGroupsChanged",null);
zl=_.B([_.e({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],zl);
var n1G=_.Ox()(zl,"ytd-badge-supported-renderer",function(){if(sZf===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);sZf=f}f=sZf;return f},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.c7("kevlar_poly_si_batch_j053")?1:2});var Tl=function(){var f=_.U.apply(this,arguments)||this;f.iconType="STAR";f.standardizeIconSize=_.E("kevlar_system_icons");f.mediaHoverOverlayInitialVisibility=_.E("enable_top_landscape_image_button_command_web");f.noBottomMargin=!1;f.thumbnailObjectFit="CONTAIN";f.thumbnailFitHeight=!0;f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.y(Tl,_.U);_.X=Tl.prototype;
_.X.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"}}}};
_.X.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",Tl.JSC$12542_DEFAULT_CLICK_LOCATION_BEHAVIOR,Tl.JSC$12542_CLICK_LOCATION_ID_MAP))};
_.X.onTap=function(f){if(!_.E("use_on_click_for_desktop_display_ad"))this.onTapOrClick(f)};
_.X.onClick=function(f){if(_.E("use_on_click_for_desktop_display_ad"))this.onTapOrClick(f)};
_.X.onTapOrClick=function(f){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,f,!1)};
_.X.updateMediaBackgroundImage=function(){var f=this.get("data.image.thumbnail.thumbnails");f&&(f=_.rR(f,0))&&_.ZO(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+f+")"})};
_.X.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var f=0;f<this.data.impressionEndpoints.length;f++){var R=this.data.impressionEndpoints[f];R.clickTrackingParams&&delete R.clickTrackingParams;_.vh().resolve(_.rv).resolveCommand(R,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var u;((u=this.data)==null?0:u.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.X.handleMuteAd=function(){};
_.X.attached=function(){var f=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Vy.Object.defineProperties(Tl.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.titleText)return"";var R;return _.Fa("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((R=this.data)==null?void 0:R.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.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 f;return!((f=this.data)==null||!f.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"}}});
Tl.prototype.onClick=Tl.prototype.onClick;Tl.prototype.onTap=Tl.prototype.onTap;Tl.prototype.dataChanged=Tl.prototype.dataChanged;
Tl.JSC$12542_CLICK_LOCATION_ID_MAP=_.E("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"]]);
Tl.JSC$12542_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.E("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"}];_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.HX),_.S("design:type",Object)],Tl.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Tl.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],Tl.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.z(DZ),_.S("design:type",Object)],Tl.prototype,"ytdActiveViewBehavior",void 0);_.B([_.z([_.fq.YtActionHandlerBehavior]),_.S("design:type",Object)],Tl.prototype,"actionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Tl.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Tl.prototype,"clickCommand",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],Tl.prototype,"miniMode",void 0);_.B([_.I(),_.S("design:type",String)],Tl.prototype,"iconType",void 0);_.B([_.T("data.titleText"),_.S("design:type",String),_.S("design:paramtypes",[])],Tl.prototype,"titleAriaLabel",null);
_.B([_.T("data.rating"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tl.prototype,"getRating",null);_.B([_.T("data.price"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tl.prototype,"getPrice",null);_.B([_.T("data.thirdLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tl.prototype,"getThirdLine",null);_.B([_.T("data.fourthLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tl.prototype,"getFourthLine",null);
_.B([_.T("data.fifthLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tl.prototype,"getFifthLine",null);_.B([_.T("getRating"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"computeRatingHidden",null);_.B([_.T("getPrice"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"computePriceHidden",null);_.B([_.T("getThirdLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"computeThirdLineHidden",null);
_.B([_.T("getFourthLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"computeFourthLineHidden",null);_.B([_.T("getFifthLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"computeFifthLineHidden",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.energyIcon"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"hasEnergyIcon",null);
_.B([_.T("computePriceHidden","computeRatingHidden"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"computeSecondaryTextHidden",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tl.prototype,"standardizeIconSize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tl.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tl.prototype,"noBottomMargin",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.layout"),_.S("design:type",String),_.S("design:paramtypes",[])],Tl.prototype,"layout",null);_.B([_.T("data.layout"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tl.prototype,"mediaThumbnailWidth",null);_.B([_.T("layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tl.prototype,"useRoundedBadge",null);_.B([_.I(),_.S("design:type",String)],Tl.prototype,"thumbnailObjectFit",void 0);
_.B([_.I(),_.S("design:type",Object)],Tl.prototype,"thumbnailFitHeight",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tl.prototype,"dataChanged",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Tl.prototype,"onTap",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Tl.prototype,"onClick",null);
Tl=_.B([_.e({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Tl);
_.G(Tl,"ytd-display-ad-renderer",function(){if(g1k!==void 0)return g1k;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return g1k=f},{mode:1});var VqF;var Ywt;var v1l;var oL7=new Map;var iDl=!1;var HO=function(){var f=_.U.apply(this,arguments)||this;f.DEFAULT_TOOLTIP_OFFSET="10";f.TOOLTIP_OFFSET_NO_BANNER="-8";f.badges=null;f.noEndpoints=!1;f.wrapText=!1;f.forceVerified=!1;f.tooltipPosition="top";f.compactStyle=!1;f.height=0;f.lineHeight=0;return f};
_.y(HO,_.U);_.X=HO.prototype;_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.X.attached=function(){var f=this;this.observer=new MutationObserver(function(R,u){f.handleResized();u.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.X.detached=function(){this.observer&&this.observer.disconnect()};
_.X.logTooltipEvent=function(){_.E("kevlar_wiz_tooltip_event_killswitch")||iDl||(_.x3q("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),iDl=!0)};
_.X.handleWindowResized=function(){this.handleResized()};
_.X.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")))};
_.X.onHeightChanged=function(){if(this.verified){var f=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Tf("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=f:this.textContainerEl.style.marginRight=f}};
_.X.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Tf("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.X.handleResized=function(){var f=this;this.verified&&_.JA.addLowPriorityJob(function(){f.fitBackgroundToText();var R=getComputedStyle(f.hostElement).lineHeight;R&&(R=R.match(/\d+/))&&R.length&&(f.lineHeight=Number(R[0]));f.height=f.lineHeight&&!f.wrapText?f.lineHeight:f.textEl.offsetHeight})};
_.X.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var f=document.createRange(),R=_.b(this.textEl).children;R.length>0?f.selectNodeContents(R[0]):f.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(f.getBoundingClientRect().width)+"px"}};
_.X.computeChannelBadgeStyle=function(f){var R;if((f==null?0:(R=f.runs)==null?0:R.length)&&f.runs[0].textColor)return"--ytd-badge-icon-color:"+_.I1(f.runs[0].textColor)+";"};
_.Vy.Object.defineProperties(HO.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"?_.S8(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var f=this.get("badges.0.metadataBadgeRenderer.tooltip");if(f)return f}return _.$Z(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
HO.prototype.onLineHeightChanged=HO.prototype.onLineHeightChanged;HO.prototype.onHeightChanged=HO.prototype.onHeightChanged;HO.prototype.onChannelNameChanged=HO.prototype.onChannelNameChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],HO.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],HO.prototype,"badges",void 0);_.B([_.I(),_.S("design:type",Object)],HO.prototype,"channelName",void 0);
_.B([_.I(),_.S("design:type",Object)],HO.prototype,"noEndpoints",void 0);_.B([_.I(),_.S("design:type",Object)],HO.prototype,"wrapText",void 0);_.B([_.I(),_.S("design:type",Object)],HO.prototype,"forceVerified",void 0);_.B([_.I(),_.S("design:type",Object)],HO.prototype,"tooltipPosition",void 0);_.B([_.I(),_.S("design:type",String)],HO.prototype,"tooltip",void 0);_.B([_.I(),_.S("design:type",Boolean)],HO.prototype,"hasChannelArt",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HO.prototype,"compactStyle",void 0);_.B([_.a4("#text-container"),_.S("design:type",HTMLElement)],HO.prototype,"textContainerEl",void 0);_.B([_.a4("#text"),_.S("design:type",Object)],HO.prototype,"textEl",void 0);_.B([_.a4("#verified-tooltip"),_.S("design:type",HTMLElement)],HO.prototype,"verifiedTooltip",void 0);_.B([_.I(),_.S("design:type",Object)],HO.prototype,"height",void 0);
_.B([_.I(),_.S("design:type",Object)],HO.prototype,"lineHeight",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("badges","forceVerified"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],HO.prototype,"verified",null);_.B([_.T("badges","verified"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],HO.prototype,"hideBadges",null);_.B([_.T("channelName"),_.S("design:type",Object),_.S("design:paramtypes",[])],HO.prototype,"formattedName",null);
_.B([_.T("badges","verified","formattedName"),_.S("design:type",String),_.S("design:paramtypes",[])],HO.prototype,"tooltipText",null);_.B([_.T("hasChannelArt"),_.S("design:type",String),_.S("design:paramtypes",[])],HO.prototype,"tooltipOffset",null);_.B([_.qM("channelName"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HO.prototype,"onChannelNameChanged",null);
_.B([_.qM("height"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HO.prototype,"onHeightChanged",null);_.B([_.qM("lineHeight","height"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HO.prototype,"onLineHeightChanged",null);HO=_.B([_.e({is:"ytd-channel-name",disableElementRegistration:!0})],HO);
_.G(HO,"ytd-channel-name",function(){if(v1l!==void 0)return v1l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return v1l=f},{mode:_.c7("kevlar_poly_si_batch_j036")?1:2});var I3=function(){var f=_.U.apply(this,arguments)||this;f.standardizeIconSize=_.E("kevlar_system_icons");f.enableModernCommentBadges=_.E("enable_modern_comment_badges");return f};
_.y(I3,_.U);I3.prototype.basicPaletteChanged=function(){var f;(f=this.data.color)!=null&&f.basicColorPaletteData&&_.be(this.hostElement,this.data.color.basicColorPaletteData)};
I3.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var f,R=this.get("basicColorPaletteData.backgroundColor",(f=this.data)==null?void 0:f.color),u;f=this.get("basicColorPaletteData.foregroundTitleColor",(u=this.data)==null?void 0:u.color);u={};R?(R=_.I1(R),u["--ytd-author-comment-badge-background-color"]=R):(u["--ytd-author-comment-badge-icon-background-color"]="transparent",u["--ytd-author-comment-badge-background-color"]="transparent");f?(R=_.I1(f),u["--ytd-author-comment-badge-name-color"]=
R,u["--ytd-author-comment-badge-icon-color"]=R):u["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(u).length>0&&_.ZO(this.hostElement,u)}};
I3.prototype.useFilledIcons=function(f){return _.E("kevlar_system_icons")&&(f==="CHECK_CIRCLE_THICK"||f==="OFFICIAL_ARTIST_BADGE")};
_.Vy.Object.defineProperties(I3.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
I3.prototype.colorChanged=I3.prototype.colorChanged;I3.prototype.basicPaletteChanged=I3.prototype.basicPaletteChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],I3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],I3.prototype,"standardizeIconSize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],I3.prototype,"enableModernCommentBadges",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.authorUnifiedVerified"),_.S("design:type",Object),_.S("design:paramtypes",[])],I3.prototype,"verified",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],I3.prototype,"creator",null);_.B([_.qM("data.color.basicColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],I3.prototype,"basicPaletteChanged",null);
_.B([_.qM("data.color"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],I3.prototype,"colorChanged",null);I3=_.B([_.e({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],I3);
_.G(I3,"ytd-author-comment-badge-renderer",function(){if(Ywt!==void 0)return Ywt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Ywt=f},{mode:1});var raY;var M$=function(){return _.U.apply(this,arguments)||this};
_.y(M$,_.U);M$.prototype.computeThumbnailWidth=function(f){if(f==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],M$.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],M$.prototype,"icon",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],M$.prototype,"surface",void 0);
_.B([_.I({reflectToAttribute:!0,value:_.E("enable_shrink_image_size_on_web_posts_singleton")}),_.S("design:type",Boolean)],M$.prototype,"searchSxsUx",void 0);M$=_.B([_.e({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],M$);
_.G(M$,"ytd-backstage-image-renderer",function(){if(raY!==void 0)return raY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return raY=f},{mode:1});var fGl;var PO=function(){var f=_.U.apply(this,arguments)||this;f.isLoading=!1;f.selectedItemIndex=-1;return f};
_.y(PO,_.U);_.X=PO.prototype;_.X.computeIsChannelOwner=function(f){if(!f)return!0;f=f[0];return!(f&&(f.signinEndpoint||f.selectServiceEndpoint))};
_.X.computeIsImagePoll=function(f){return(f==null?void 0:f.type)==="POLL_TYPE_IMAGE"};
_.X.computeIsTotalVotesDisabled=function(f){return!(f==null?0:f.totalVotes)};
_.X.thumbnailSrc=function(f){var R,u,O,c;return(f==null?0:(R=f.thumbnails)==null?0:(u=R[0])==null?0:u.url)?_.EO((O=f.thumbnails)==null?void 0:(c=O[0])==null?void 0:c.url):void 0};
_.X.progressWidth=function(f){return"width:"+(f?f*100:0)+"%;"};
_.X.textAreaWidth=function(f){return this.isImagePoll?null:"width:"+(f?f*100:0)+"%;"};
_.X.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.X.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var f=this.data.choices,R=0;R<f.length;R++)if(f[R].selected){this.selectedItemIndex=R;break}};
_.X.onPopupClosed=function(f,R){f=Number(this.pollVotes.selected);R.confirmed&&(this.selectChoice(f,!1),_.OJ(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.X.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.X.onYtCommentPollRevert=function(f,R){R&&(this.selectChoice(R.selectedChoiceIndex,!0),this.set("data.totalVotes",R.totalVotes))};
_.X.onYtServiceRequestSent=function(f,R){if(R.actions)for(f=0;f<R.actions.length;f++){var u=R.actions[f];_.t(u,yE)&&this.set("data.totalVotes",_.t(u,yE).totalVotes)}};
_.X.onYtServiceRequestCompleted=function(f){var R=this.get("detail.data.actionResults.0.feedback",f);f=this.get("detail.data.actionResults.0.status",f);if(R==="FEEDBACK_DESELECT"||R==="FEEDBACK_SELECT")this.isLoading=!1,f==="STATUS_FAILED"?_.ul(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.X.getEndpoint=function(f,R){return R===f?this.data.choices[R].deselectServiceEndpoint||null:this.data.choices[f].selectServiceEndpoint||null};
_.X.selectChoice=function(f,R){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var u=0;u<this.data.choices.length;u++){var O;if(f===this.selectedItemIndex){var c=!1;var h=O=null}else O=(c=u===f)?this.data.choices[u].voteRatioIfSelected:this.data.choices[u].voteRatioIfNotSelected,h=c?this.data.choices[u].votePercentageIfSelected:this.data.choices[u].votePercentageIfNotSelected;this.set("data.choices."+u+".voteRatio",O);
this.set("data.choices."+u+".votePercentage",h);this.set("data.choices."+u+".selected",c)}R||(this.isLoading=!0,(R=this.getEndpoint(f,this.selectedItemIndex))&&_.vh().resolve(_.rv).resolveCommand(R,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===f?-1:f};
_.Vy.Object.defineProperties(PO.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
PO.prototype.onYtServiceRequestCompleted=PO.prototype.onYtServiceRequestCompleted;PO.prototype.onYtServiceRequestSent=PO.prototype.onYtServiceRequestSent;PO.prototype.onYtCommentPollRevert=PO.prototype.onYtCommentPollRevert;PO.prototype.onPopupClosed=PO.prototype.onPopupClosed;PO.prototype.dataChanged=PO.prototype.dataChanged;_.B([_.z(_.Sv),_.S("design:type",Object)],PO.prototype,"paperItemBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],PO.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],PO.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],PO.prototype,"isLoading",void 0);_.B([_.I({computed:"computeIsChannelOwner(data.choices)"}),_.S("design:type",Boolean)],PO.prototype,"isChannelOwner",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.S("design:type",Boolean)],PO.prototype,"isImagePoll",void 0);_.B([_.I({computed:"computeIsTotalVotesDisabled(data)"}),_.S("design:type",Boolean)],PO.prototype,"isTotalVotesDisabled",void 0);_.B([_.I(),_.S("design:type",Object)],PO.prototype,"previousPollInfo",void 0);_.B([_.I(),_.S("design:type",Object)],PO.prototype,"selectedItemIndex",void 0);_.B([_.a4("#poll-votes"),_.S("design:type",Object)],PO.prototype,"pollVotes",void 0);
_.B([_.T("isChannelOwner"),_.S("design:type",Object),_.S("design:paramtypes",[])],PO.prototype,"endpointStyle",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PO.prototype,"dataChanged",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],PO.prototype,"onPopupClosed",null);
_.B([_.Kf("yt-comment-poll-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],PO.prototype,"onYtCommentPollRevert",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],PO.prototype,"onYtServiceRequestSent",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],PO.prototype,"onYtServiceRequestCompleted",null);PO=_.B([_.e({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],PO);
_.G(PO,"ytd-backstage-poll-renderer",function(){if(fGl!==void 0)return fGl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return fGl=f},{mode:2});var R3I;var uBf={autoplay:!1,loop:!1},OxI={simpleText:""},Ul=function(){var f=_.U.apply(this,arguments)||this;f.isLoading=!1;f.usesPanelLockup=!1;f.selectedItemIndex=-1;f.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},uBf,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});f.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},uBf,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});f.correctnessAnimationProps=[];f.correctnessAnimationRefs=[];return f};
_.y(Ul,_.U);_.X=Ul.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.X.computeIsChannelOwner=function(f){if(!f)return!0;f=f[0];return!(f&&(f.signinEndpoint||f.selectServiceEndpoint))};
_.X.computeIsTotalVotesDisabled=function(f){return!(f==null?0:f.totalVotes)};
_.X.computeIsImageQuiz=function(f){return(f==null?void 0:f.type)==="POLL_TYPE_IMAGE"};
_.X.onExplanationChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var f=this.data.choices;if(f){this.maybeInitializeQuizLotties(f);for(var R=0;R<f.length;R++)if(f[R].isSelected||this.isChannelOwner&&f[R].isCorrect){this.selectedItemIndex=R;return}this.selectedItemIndex=-1}}};
_.X.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var f=this.selectedItemIndex,R=Number(this.quizVotes.selected);this.selectChoice(R);this.sendVoteAction(R,f);this.quizVotes.selected=-1;var u;f=!((u=this.data)==null?0:u.enableAnimation);this.maybePlayAnswerAnimations(f)}};
_.X.onYtCommentPollRevert=function(f,R){R&&(this.selectChoice(R.selectedChoiceIndex),this.set("data.totalVotes",R.totalVotes))};
_.X.onYtServiceRequestSent=function(f,R){if(R.actions)for(f=_.Z(R.actions),R=f.next();!R.done;R=f.next())(R=_.t(R.value,yE))&&this.set("data.totalVotes",R.totalVotes)};
_.X.onYtServiceRequestCompleted=function(f){var R=this.get("detail.data.actionResults.0.feedback",f);f=this.get("detail.data.actionResults.0.status",f);if(R==="FEEDBACK_DESELECT"||R==="FEEDBACK_SELECT")this.isLoading=!1,f==="STATUS_FAILED"?_.ul(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.X.getAnimationPropsForChoiceIndex=function(f,R){return R[f]};
_.X.maybePlayAnswerAnimations=function(f){f=f===void 0?!1:f;var R;if((R=this.data)!=null&&R.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){R=_.Z(this.correctnessAnimationRefs);for(var u=R.next();!u.done;u=R.next()){var O=void 0,c=void 0;(O=u.value)==null||(c=O.lottieEl)==null||c.stop()}if(!(this.selectedItemIndex<0)){R=0;f&&(R=this.isCorrect?37:25);var h,l;(h=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(l=h.lottieEl)==null||l.goToAndPlay(f?R:0,!0);if(!(this.isCorrect||
(h=this.data.choices.findIndex(function(w){return w.isCorrect}),h<0))){var K,q;
(q=(K=this.correctnessAnimationRefs[h])==null?void 0:K.lottieEl)==null||q.goToAndPlay(37,!0);var F;K=(F=this.fadeContainers)==null?void 0:F.item(h);!f&&K&&this.fadeIn(K)}}}};
_.X.thumbnailSrc=function(f){var R,u,O,c;return(f==null?0:(R=f.thumbnails)==null?0:(u=R[0])==null?0:u.url)?_.EO((O=f.thumbnails)==null?void 0:(c=O[0])==null?void 0:c.url):void 0};
_.X.a11yVotedText=function(f,R){var u,O,c=((u=this.data)==null?void 0:(O=u.correctVotedText)==null?void 0:O.simpleText)||"",h,l;u=((h=this.data)==null?void 0:(l=h.votedText)==null?void 0:l.simpleText)||"";if(!R)return"";var K,q;if((K=this.data)==null?0:(q=K.choices)==null?0:q[f].isCorrect)return c;var F,w;return((F=this.data)==null?0:(w=F.choices)==null?0:w[f].isSelected)?u:""};
_.X.getEndpoint=function(f,R){return R===f?this.data.choices[f].deselectServiceEndpoint||null:this.data.choices[f].selectServiceEndpoint||null};
_.X.sendVoteAction=function(f,R){if(f=this.getEndpoint(f,R))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(f)};
_.X.selectChoice=function(f){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var R=0;R<this.data.choices.length;R++)this.set("data.choices."+R+".isSelected",f===this.selectedItemIndex?!1:R===f);this.selectedItemIndex=this.selectedItemIndex===f?-1:f};
_.X.maybeInitializeQuizLotties=function(f){var R=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=f.map(function(u){return{animationConfig:u.isCorrect?R.baseCorrectLottiePlayerAnimationConfig:R.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){R.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(u){return u.animationRef||{}})};
_.X.fadeIn=function(f){f.classList.add("fade-in");_.Oz(_.JA,function(){f.classList.remove("fade-in")},900)};
_.Vy.Object.defineProperties(Ul.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.$Z(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 f,R;return((f=this.data)==null?void 0:(R=f.choices)==null?void 0:R.some(function(u){return u.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null||!f.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?OxI:this.data.choices[this.selectedItemIndex].explanation||OxI}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null||!f.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Ul.prototype.onYtServiceRequestCompleted=Ul.prototype.onYtServiceRequestCompleted;Ul.prototype.onYtServiceRequestSent=Ul.prototype.onYtServiceRequestSent;Ul.prototype.onYtCommentPollRevert=Ul.prototype.onYtCommentPollRevert;Ul.prototype.dataChanged=Ul.prototype.dataChanged;Ul.prototype.onExplanationChanged=Ul.prototype.onExplanationChanged;_.B([_.z(_.Sv),_.S("design:type",Object)],Ul.prototype,"paperItemBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Ul.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.V3.YtTaskEmitterBehavior),_.S("design:type",Object)],Ul.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],Ul.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ul.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],Ul.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Object)],Ul.prototype,"usesPanelLockup",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.S("design:type",Boolean)],Ul.prototype,"isChannelOwner",void 0);_.B([_.I({computed:"computeIsTotalVotesDisabled(data)"}),_.S("design:type",Boolean)],Ul.prototype,"isTotalVotesDisabled",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.S("design:type",Boolean)],Ul.prototype,"isImageQuiz",void 0);_.B([_.I(),_.S("design:type",Object)],Ul.prototype,"previousQuizInfo",void 0);_.B([_.I(),_.S("design:type",Object)],Ul.prototype,"selectedItemIndex",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data","usesPanelLockup"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ul.prototype,"shouldUseModernUi",null);
_.B([_.F4(".fade-container"),_.S("design:type",Object)],Ul.prototype,"fadeContainers",void 0);_.B([_.I(),_.S("design:type",Array)],Ul.prototype,"correctnessAnimationProps",void 0);_.B([_.T("explanation","showCorrectAnswer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ul.prototype,"showExplanation",null);_.B([_.T("isChannelOwner","isAttempted"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ul.prototype,"showCorrectAnswer",null);
_.B([_.T("isChannelOwner","isAttempted","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ul.prototype,"isQuizAnsweringDisabled",null);_.B([_.T("isQuizAnsweringDisabled"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ul.prototype,"endpointStyle",null);_.B([_.T("data","selectedItemIndex"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ul.prototype,"isAttempted",null);
_.B([_.T("data","selectedItemIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ul.prototype,"explanation",null);_.B([_.T("data","selectedItemIndex"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ul.prototype,"isCorrect",null);_.B([_.a4("ytd-expander"),_.S("design:type",Object)],Ul.prototype,"expander",void 0);_.B([_.a4("#quiz-votes"),_.S("design:type",Object)],Ul.prototype,"quizVotes",void 0);
_.B([_.qM("explanation"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ul.prototype,"onExplanationChanged",null);_.B([_.qM("data","isChannelOwner"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ul.prototype,"dataChanged",null);_.B([_.Kf("yt-comment-quiz-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Ul.prototype,"onYtCommentPollRevert",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],Ul.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ul.prototype,"onYtServiceRequestCompleted",null);Ul=_.B([_.e({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Ul);
_.G(Ul,"ytd-backstage-quiz-renderer",function(){if(R3I!==void 0)return R3I;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return R3I=f},{mode:1});var c6G;var eM=function(){return _.U.apply(this,arguments)||this};
_.y(eM,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],eM.prototype,"data",void 0);eM=_.B([_.e({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],eM);
_.G(eM,"ytd-post-uploaded-video-renderer",function(){if(c6G!==void 0)return c6G;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return c6G=f},{mode:1});var XHE;var Gl=function(){return _.U.apply(this,arguments)||this};
_.y(Gl,_.U);Gl.prototype.useFilledIcons=function(f){return f==="SPONSORSHIP_STAR"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gl.prototype,"data",void 0);Gl=_.B([_.e({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Gl);
_.G(Gl,"ytd-sponsors-only-badge-renderer",function(){if(XHE!==void 0)return XHE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return XHE=f},{mode:1});var h3A;var BO=function(){return _.U.apply(this,arguments)||this};
_.y(BO,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],BO.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],BO.prototype,"data",void 0);BO=_.B([_.e({is:"ytd-child-video-renderer",disableElementRegistration:!0})],BO);
_.G(BO,"ytd-child-video-renderer",function(){if(h3A!==void 0)return h3A;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return h3A=f},{mode:1});var ZxA;var lGE;var o3=function(){var f=_.U.apply(this,arguments)||this;f.size=0;f.enableWebModernCollectionsV2=_.E("web_modern_collections_v2");f.fallbackImageSize={height:void 0,width:9999};f.webModernCollections=!1;return f};
_.y(o3,_.U);_.X=o3.prototype;_.X.computeBlurredImageSize=function(f){return f?{height:f*2,width:f*2}:this.fallbackImageSize};
_.X.computeImageSize=function(f){return f?{height:f,width:f}:this.fallbackImageSize};
_.X.computeObjectFit=function(f){return f?"FILL":"CONTAIN"};
_.X.computePreserve=function(f){return f?!0:!1};
_.X.setBackground=function(){var f,R;_.E("web_modern_collections_v2")&&((f=this.data)==null?0:(R=f.thumbnail)==null?0:R.sampledThumbnailColor)&&(f=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+f.red+","+f.green+","+f.blue+",1)")};
o3.prototype.setBackground=o3.prototype.setBackground;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],o3.prototype,"watchFeedThumbnail",void 0);_.B([_.I(),_.S("design:type",Object)],o3.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],o3.prototype,"size",void 0);
_.B([_.I({computed:"computeBlurredImageSize(size)"}),_.S("design:type",Object)],o3.prototype,"blurredImageSize",void 0);_.B([_.I({computed:"computeImageSize(size)"}),_.S("design:type",Object)],o3.prototype,"imageSize",void 0);_.B([_.I({computed:"computePreserve(size)"}),_.S("design:type",String)],o3.prototype,"preserve",void 0);_.B([_.I({computed:"computeObjectFit(size)"}),_.S("design:type",String)],o3.prototype,"objectFit",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],o3.prototype,"enableWebModernCollectionsV2",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],o3.prototype,"webModernCollections",void 0);_.B([_.qM("data.thumbnail.sampledThumbnailColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o3.prototype,"setBackground",null);o3=_.B([_.e({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],o3);
_.G(o3,"ytd-playlist-custom-thumbnail-renderer",function(){if(lGE!==void 0)return lGE;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return lGE=f},{mode:1});var kvF;var xc=function(){return _.U.apply(this,arguments)||this};
_.y(xc,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xc.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],xc.prototype,"width",void 0);xc=_.B([_.e({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],xc);
_.G(xc,"ytd-playlist-video-thumbnail-renderer",function(){if(kvF!==void 0)return kvF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return kvF=f},{mode:1});var KEi;var SM=function(){return _.U.apply(this,arguments)||this};
_.y(SM,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SM.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],SM.prototype,"width",void 0);SM=_.B([_.e({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],SM);
_.G(SM,"ytd-show-custom-thumbnail-renderer",function(){if(KEi!==void 0)return KEi;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KEi=f},{mode:1});var q9k;var $c=function(){return _.U.apply(this,arguments)||this};
_.y($c,_.U);$c.prototype.useFilledIcons=function(f){return f==="MUSIC"||f==="COURSE"};
$c.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=PL(this.overlayColor,"0.8");else if(this.overlayColor){var f=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+f.red+","+f.green+","+f.blue+",0.8)"}};
_.Vy.Object.defineProperties($c.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)}}});
$c.prototype.overlayColorChanged=$c.prototype.overlayColorChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$c.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],$c.prototype,"overlayColor",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.icon","data.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],$c.prototype,"overlayStyle",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.icon","data.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],$c.prototype,"overlayTextStyle",null);_.B([_.qM("overlayColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$c.prototype,"overlayColorChanged",null);$c=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],$c);
_.G($c,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(q9k!==void 0)return q9k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return q9k=f},{mode:1});var A6A;var gp=function(){var f=_.U.apply(this,arguments)||this;f.active=!1;return f};
_.y(gp,_.U);gp.prototype.computeIsSpinnerHidden=function(f){return(f==null?void 0:f.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
gp.prototype.computeOverlayIcon=function(f){return(f==null?void 0:f.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(f==null?void 0:f.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gp.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],gp.prototype,"active",void 0);gp=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],gp);
_.G(gp,"ytd-thumbnail-overlay-downloading-renderer",function(){if(A6A!==void 0)return A6A;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return A6A=f},{mode:1});var aGk;var sl=function(){return _.U.apply(this,arguments)||this};
_.y(sl,_.U);_.Vy.Object.defineProperties(sl.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sl.prototype,"data",void 0);_.B([_.T("data.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],sl.prototype,"text",null);sl=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],sl);
_.G(sl,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(aGk!==void 0)return aGk;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return aGk=f},{mode:1});var FEG,wHk=function(){if(FEG!==void 0)return FEG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return FEG=f};var ne=function(){return _.U.apply(this,arguments)||this};
_.y(ne,_.U);_.Vy.Object.defineProperties(ne,{template:{configurable:!0,enumerable:!0,get:function(){return wHk()}}});
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],ne.prototype,"animateEqualizer",void 0);ne=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ne);_.Ox()(ne,"ytd-thumbnail-overlay-equalizer",function(){return wHk()},{allowedProps:["animateEqualizer"],
mode:1});var mbF;var VT=function(){var f=_.U.apply(this,arguments)||this;f.nowPlayingBadge=_.E("web_now_playing_badge");f.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return f};
_.y(VT,_.U);VT.prototype.activeChanged=function(){var f=this;_.E("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.su(this,function(){_.ul(f.hostElement,"yt-playlist-lockup-now-playing-active",f)})};
VT.prototype.onMiniplayerPlayStateChanged=function(f){var R,u=(R=_.t(_.qk().currentEndpoint,_.$7))==null?void 0:R.videoId;this.isVideoPlaying=f&&(_.E("web_limit_now_playing_animation_killswitch")||this.videoId===u)};
VT.prototype.activeChanged=VT.prototype.activeChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],VT.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],VT.prototype,"isVideoPlaying",void 0);_.B([_.I(),_.S("design:type",String)],VT.prototype,"videoId",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],VT.prototype,"equalizerOnly",void 0);_.B([_.I(),_.S("design:type",Boolean)],VT.prototype,"isActive",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],VT.prototype,"nowPlayingBadge",void 0);_.B([_.qM("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VT.prototype,"activeChanged",null);
VT=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],VT);
_.G(VT,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(mbF!==void 0)return mbF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return mbF=f},{mode:1});var Qet;var Yc=function(){return _.U.apply(this,arguments)||this};
_.y(Yc,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Yc.prototype,"data",void 0);Yc=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Yc);
_.G(Yc,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Qet!==void 0)return Qet;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Qet=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var WEt;var vO=function(){return _.U.apply(this,arguments)||this};
_.y(vO,_.U);vO.prototype.onDurationChanged=function(){var f,R;_.b(this.hostElement).querySelector("#progress").style.width=((R=(f=this.data)==null?void 0:f.percentDurationWatched)!=null?R:0)+"%"};
vO.prototype.onDurationChanged=vO.prototype.onDurationChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],vO.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],vO.prototype,"isLive",void 0);_.B([_.qM("data.percentDurationWatched"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vO.prototype,"onDurationChanged",null);
vO=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],vO);
_.G(vO,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(WEt!==void 0)return WEt;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WEt=f},{mode:1});var EWG;var iP=function(){var f=_.U.apply(this,arguments)||this;f.bottomPanel=!1;f.richGridOverlay=!1;f.watchFeedOverlay=!1;f.isCompact=!1;return f};
_.y(iP,_.U);iP.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Vy.Object.defineProperties(iP.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:(R=f.icon)==null?void 0:R.iconType)==="PLAY_ALL"&&_.E("kevlar_system_icons")}}});
iP.prototype.widthChanged=iP.prototype.widthChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],iP.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],iP.prototype,"width",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iP.prototype,"bottomPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iP.prototype,"richGridOverlay",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iP.prototype,"watchFeedOverlay",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iP.prototype,"isCompact",void 0);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],iP.prototype,"isIconFilled",null);_.B([_.qM("width","watchFeedOverlay"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iP.prototype,"widthChanged",null);
iP=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],iP);
_.G(iP,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(EWG!==void 0)return EWG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return EWG=f},{mode:1});var tKF;var C6Y=["CLIP","SHORTS"],rp=function(){var f=_.U.apply(this,arguments)||this;f.animated=_.E("animated_live_badge_icon");f.hasIcon=!1;f.updateTimerIntervalId=0;f.timeSinceLive=0;return f};
_.y(rp,_.U);_.X=rp.prototype;_.X.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.X.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.X.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.X.hasIconOrText=function(){var f,R;return!!(((f=this.data)==null?0:f.icon)||((R=this.data)==null?0:R.text))};
_.X.initializeLiveBadgeTimer=function(){var f=this,R,u=(R=this.liveBadgeData)==null?void 0:R.startTimestampSec;if(u&&this.canShowLiveBadgeTimer()){var O;R=Number((O=this.liveBadgeData)==null?void 0:O.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(u);this.updateTimerIntervalId=_.lZ(function(){f.canShowLiveBadgeTimer()?f.timeSinceLive++:(f.timeSinceLive=0,window.clearInterval(f.updateTimerIntervalId))},R)}else this.timeSinceLive=0};
_.X.canShowLiveBadgeTimer=function(){var f=Date.now(),R,u;return f<(Number((R=this.liveBadgeData)==null?void 0:R.endTimestampSec)-1)*1E3&&f>Number((u=this.liveBadgeData)==null?void 0:u.startTimestampSec)*1E3};
_.Vy.Object.defineProperties(rp.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data;var R=this.timeSinceLive;var u,O,c,h;a:{var l=f.style;if(l===void 0)l=16;else switch(l){case "LIVE":l=17;break a;default:l=16}}R={type:l,text:R?Uie({seconds:R}):_.$Z(f.text),accessibilityText:(u=f.text)==null?void 0:(O=u.accessibility)==null?void 0:(c=O.accessibilityData)==null?void 0:c.label,icon:(h=f.icon)==null?void 0:h.iconType}}else R={};return R}},
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 f;return(f=this.data)==null?void 0:f.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 C6Y.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
rp.prototype.initializeLiveBadgeTimer=rp.prototype.initializeLiveBadgeTimer;rp.prototype.dataChanged=rp.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],rp.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rp.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],rp.prototype,"icon",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],rp.prototype,"animated",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.S("design:type",Boolean)],rp.prototype,"hideTimeStatus",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rp.prototype,"hasIcon",void 0);_.B([_.I(),_.S("design:type",Object)],rp.prototype,"timeSinceLive",void 0);_.B([_.T("data","timeSinceLive"),_.S("design:type",Object),_.S("design:paramtypes",[])],rp.prototype,"badgeShapeData",null);
_.B([_.T("data","overlayType"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rp.prototype,"hideBadgeShape",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rp.prototype,"dataChanged",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.style"),_.S("design:type",Object),_.S("design:paramtypes",[])],rp.prototype,"overlayStyle",null);
_.B([_.T("data.liveBadgeData"),_.S("design:type",Object),_.S("design:paramtypes",[])],rp.prototype,"liveBadgeData",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.type"),_.S("design:type",Object),_.S("design:paramtypes",[])],rp.prototype,"overlayType",null);_.B([_.T("overlayType","overlayStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rp.prototype,"useFilledIcon",null);
_.B([_.QR("liveBadgeData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rp.prototype,"initializeLiveBadgeTimer",null);rp=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],rp);
_.G(rp,"ytd-thumbnail-overlay-time-status-renderer",function(){if(tKF!==void 0)return tKF;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return tKF=f},{mode:_.c7("kevlar_poly_si_batch_j035")?1:2});var y6G;var fY=function(){return _.U.apply(this,arguments)||this};
_.y(fY,_.U);fY.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"}}}}};
fY.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(f){if(this.hasPlaybackProgressBar)return{percentDurationWatched:f.percentDurationWatched}};
fY.prototype.computeHasPlaybackProgressBar=function(f){return!!f.percentDurationWatched&&f.percentDurationWatched>0};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],fY.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.S("design:type",Boolean)],fY.prototype,"hasPlaybackProgressBar",void 0);
fY=_.B([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],fY);
_.G(fY,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(y6G!==void 0)return y6G;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return y6G=f},{mode:1});var dbl;var N1I=_.nf(function(f){var R=f.data;var u=f.children;var O=function(){return!!R().doubleStack};
return _.a("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!R().experimentEnabled}},_.a(_.Q,{cond:R,
then:function(){return _.a("div",null,_.a(_.Q,{cond:O,then:function(){var c={};return _.a("div",{class:_.KL("collections-stack-wiz__collection-stack2",function(){return R().customClassName2ndStack},(c["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return R().enableResponsiveMode},c)),
style:_.Qm({"background-color":function(){return $3B(R())}})})}}),_.a("div",{class:_.KL("collections-stack-wiz__collection-stack1",function(){return R().customClassName1stStack},function(){return SoP(R().thumbnailSize?R().thumbnailSize:"medium")}),
style:_.Qm({"background-color":function(){return $3B(R())}})}),u)}}))},"P");_.ii(N1I,"yt-collections-stack",{props:{data:_.SG}});var RW=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};f.webModernCollections=!1;f.isSearch=!1;f.isDoubleStack=!1;f.thumbnailSize="medium";f.enableWebModernCollectionsV2=_.E("web_modern_collections_v2");return f};
_.y(RW,_.U);_.X=RW.prototype;
_.X.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]]"}}}}}};
_.X.getThumbnailDetails=function(f){if(f!=null&&f.thumbnailRenderer){var R=f.thumbnailRenderer,u;if((u=R.playlistVideoThumbnailRenderer)==null?0:u.thumbnail)return R.playlistVideoThumbnailRenderer.thumbnail;var O;if((O=R.playlistCustomThumbnailRenderer)==null?0:O.thumbnail)return R.playlistCustomThumbnailRenderer.thumbnail;f=f.thumbnailRenderer;var c;if((c=f.showCustomThumbnailRenderer)==null?0:c.thumbnail)return f.showCustomThumbnailRenderer.thumbnail}};
_.X.computeOverlayColor=function(f){var R,u;if((R=this.getThumbnailDetails(f))==null?0:(u=R.darkColorPalette)==null?0:u.section2Color)return this.getThumbnailDetails(f).darkColorPalette.section2Color;var O;return(O=this.getThumbnailDetails(f))==null?void 0:O.sampledThumbnailColor};
_.X.computeWebModernCollections=function(f){if(f==null||!f.thumbnailOverlays)return!1;f=_.Z(f.thumbnailOverlays);for(var R=f.next();!R.done;R=f.next()){var u=void 0;if((u=R.value)==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.X.computeNavigationEndpoint=function(f){return ow2(f==null?void 0:f.navigationEndpoint)};
_.Vy.Object.defineProperties(RW.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:f==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:f==null?void 0:f.vibrantColorPalette,darkColorPalette:f==null?void 0:f.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],RW.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(I4l),_.S("design:type",Object)],RW.prototype,"ytdThumbnailBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],RW.prototype,"componentBehavior",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],RW.prototype,"watchFeedThumbnail",void 0);_.B([_.I(),_.S("design:type",Number)],RW.prototype,"customThumbnailSize",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],RW.prototype,"hideAria",void 0);_.B([_.I(),_.S("design:type",Object)],RW.prototype,"data",void 0);_.B([_.I({computed:"computeOverlayColor(data)"}),_.S("design:type",Object)],RW.prototype,"overlayColor",void 0);
_.B([_.I({computed:"computeWebModernCollections(data)"}),_.S("design:type",Object)],RW.prototype,"webModernCollections",void 0);_.B([_.I({computed:"computeNavigationEndpoint(data)"}),_.S("design:type",Object)],RW.prototype,"computedNavigationEndpoint",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],RW.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],RW.prototype,"isDoubleStack",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],RW.prototype,"thumbnailSize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],RW.prototype,"enableWebModernCollectionsV2",void 0);_.B([_.T("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.S("design:type",Object),_.S("design:paramtypes",[])],RW.prototype,"collectionStack",null);RW=_.B([_.e({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],RW);
_.G(RW,"ytd-playlist-thumbnail",function(){if(dbl!==void 0)return dbl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return dbl=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var LEH;var uS=function(){var f=_.U.apply(this,arguments)||this;f.noEndpoints=!1;f.amsterdamPostMvp=_.E("web_amsterdam_post_mvp_playlists");f.badges=[];f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.y(uS,_.U);_.X=uS.prototype;_.X.getMetadata=function(f){if(!f)return[];var R=[],u=f.shortViewCountText||f.viewCountText;u&&R.push(_.$Z(u));f.publishedTimeText&&R.push(_.$Z(f.publishedTimeText));f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&R.push(_.HJ(_.$Z(f.upcomingEventData.upcomingEventText),Number(f.upcomingEventData.startTime)));return R};
_.X.observeDataForBylineSeparator=function(){this.data&&_.c2(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.X.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.I1(this.metadataColor)};
_.X.getSimpleString=function(f){return _.$Z(f)};
_.X.isBylineHidden=function(f){return this.noByline||!((f==null?0:f.longBylineText)||(f==null?0:f.shortBylineText))};
_.X.isMetadataHidden=function(f){var R;return((R=this.getMetadata(f))==null?void 0:R.length)===0};
_.X.isBylineMetadataSeparatorHidden=function(f){return this.isMetadataHidden(f)||!this.shouldShowVideoInfo};
_.X.isLongByline=function(f,R){return R&&!(f==null||!f.longBylineText)};
_.Vy.Object.defineProperties(uS.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var f;return this.amsterdamPostMvp&&!((f=this.data)==null||!f.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
uS.prototype.metadataColorChanged=uS.prototype.metadataColorChanged;uS.prototype.observeDataForBylineSeparator=uS.prototype.observeDataForBylineSeparator;_.B([_.z(_.zH),_.S("design:type",Object)],uS.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],uS.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],uS.prototype,"noEndpoints",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"isSlimShort",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"radioMeta",void 0);_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],uS.prototype,"isGridViewEnabled",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"richMeta",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],uS.prototype,"amsterdamPostMvp",void 0);_.B([_.I(),_.S("design:type",Boolean)],uS.prototype,"noByline",void 0);
_.B([_.I({computed:"isLongByline(data, radioMeta)"}),_.S("design:type",Boolean)],uS.prototype,"longByline",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"truncateMetadataLine",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"miniMode",void 0);_.B([_.I(),_.S("design:type",Number)],uS.prototype,"metadataColor",void 0);_.B([_.I(),_.S("design:type",Array)],uS.prototype,"badges",void 0);
_.B([_.I({selector:_.Te,selectorArgs:["data.videoId"]}),_.S("design:type",String)],uS.prototype,"transferState",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"isDownloading",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],uS.prototype,"typographyBump",void 0);_.B([_.a4("#metadata-line"),_.S("design:type",HTMLElement)],uS.prototype,"metadataLine",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uS.prototype,"observeDataForBylineSeparator",null);_.B([_.qM("metadataColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uS.prototype,"metadataColorChanged",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],uS.prototype,"shouldShowVideoInfo",null);
_.B([_.T("badges"),_.S("design:type",String),_.S("design:paramtypes",[])],uS.prototype,"inlineBadgeClass",null);_.B([_.T("longByline"),_.S("design:type",String),_.S("design:paramtypes",[])],uS.prototype,"longBylineClass",null);_.B([_.T("data","longByline"),_.S("design:type",Object),_.S("design:paramtypes",[])],uS.prototype,"bylineText",null);_.B([_.T("isGridViewEnabled","data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],uS.prototype,"watchFeedBigThumbs",null);
uS=_.B([_.e({is:"ytd-video-meta-block",disableElementRegistration:!0})],uS);
_.G(uS,"ytd-video-meta-block",function(){if(LEH!==void 0)return LEH;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return LEH=f},{mode:_.c7("kevlar_poly_si_batch_j080")?1:2});_.j6("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Oi=function(){var f=_.U.apply(this,arguments)||this;f.displayItemCount=2;f.isBackstagePlaylist=!1;f.isPostCompactPlaylist=!1;f.shouldShowChannelThumbnail=!1;f.useModernCollectionsV2=_.E("web_modern_collections_v2");return f};
_.y(Oi,_.U);_.X=Oi.prototype;_.X.computeFirstVideos=function(f,R){return f===void 0||R===void 0?[]:f.slice(0,R)};
_.X.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var f=this.data.thumbnailRenderer;f.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",f.playlistVideoThumbnailRenderer.thumbnail);f.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",f.playlistCustomThumbnailRenderer.thumbnail)}};
_.X.computeThumbnailHeight=function(f,R,u,O,c){return O?c==="BIG"?280:c==="MASSIVE"?337:234:u?240:R?72:f?118:138};
_.X.computeThumbnailWidth=function(f,R,u,O,c){return O?c==="MEDIUM"?450:c==="BIG"?500:c==="MASSIVE"?600:420:u?360:R?128:f?210:246};
_.X.computeUseBiggerThumbs=function(f){return f&&_.E("enable_desktop_search_bigger_thumbs")};
_.X.computeShouldShowChannelThumbnail=function(f,R){return f&&!(R==null||!R.channelThumbnail)};
_.Vy.Object.defineProperties(Oi.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],Oi.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Oi.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Oi.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Oi.prototype,"displayItemCount",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Oi.prototype,"isBackstagePlaylist",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Oi.prototype,"isPostCompactPlaylist",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Oi.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.S("design:type",Boolean)],Oi.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],Oi.prototype,"biggerThumbsStyle",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Oi.prototype,"isDownloads",void 0);_.B([_.I({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.S("design:type",Object)],Oi.prototype,"shouldShowChannelThumbnail",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Oi.prototype,"useModernCollectionsV2",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Oi.prototype,"dataChanged",null);_.B([_.T("isSearch"),_.S("design:type",String),_.S("design:paramtypes",[])],Oi.prototype,"stackThumbnailSize",null);Oi=_.B([_.e({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Oi);
_.G(Oi,"ytd-playlist-renderer",function(){if(ZxA===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);ZxA=f}f=ZxA;return f},{mode:1});var bxl;var pHH;var cP=function(){var f=_.U.apply(this,arguments)||this;f.collections=!!_.E("web_modern_collections_v2");f.startX=0;return f};
_.y(cP,_.U);cP.prototype.onEndpointMouseDown=function(f){this.startX=f.clientX};
cP.prototype.onEndpointClick=function(f){this.startX!==f.clientX&&(f.preventDefault(),f.stopPropagation())};
cP.prototype.computeObjectFit=function(f){return f==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||f==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||f==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
cP.prototype.computeCardStyle=function(f){return f?f.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Vy.Object.defineProperties(cP.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var f,R;return this.collections&&((f=this.data)==null?void 0:(R=f.searchRefinementCardRendererStyle)==null?void 0:R.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cP.prototype,"data",void 0);_.B([_.I({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.S("design:type",Number)],cP.prototype,"objectFit",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.S("design:type",String)],cP.prototype,"cardStyle",void 0);
_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],cP.prototype,"roundContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],cP.prototype,"collections",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cP.prototype,"isAlbumCard",null);_.B([_.T("data","collections","isAlbumCard"),_.S("design:type",Object),_.S("design:paramtypes",[])],cP.prototype,"collectionStack",null);
cP=_.B([_.e({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],cP);
_.G(cP,"ytd-search-refinement-card-renderer",function(){if(pHH!==void 0)return pHH;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pHH=f},{mode:1});var jef;var X_=function(){var f=_.U.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.y(X_,_.U);_.B([_.I(),_.S("design:type",Object)],X_.prototype,"data",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],X_.prototype,"componentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],X_.prototype,"ytdReduxBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],X_.prototype,"isRichGrid",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],X_.prototype,"miniMode",void 0);
X_=_.B([_.e({is:"ytd-game-details-renderer",disableElementRegistration:!0})],X_);
_.G(X_,"ytd-game-details-renderer",function(){if(jef!==void 0)return jef;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return jef=f},{mode:1});var DbA;var J6H;var hq=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return f};
_.y(hq,_.U);_.X=hq.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.currentStateData=function(f){var R=f||this.data;return R&&R.states&&R.currentStateId!=null?R.states.find(function(u){return u.stateId===R.currentStateId})||null:null};
_.X.currentStateRendererData=function(f){return(f=this.currentStateData(f))&&f.state&&f.state.buttonRenderer?f.state.buttonRenderer:null};
_.X.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())};
_.X.computeButtonIcon=function(f){f=this.currentStateRendererData(f);var R;return(f==null?0:(R=f.icon)==null?0:R.iconType)?f.icon.iconType.toLowerCase():null};
_.X.computeAccessibility=function(f){return(f=this.currentStateRendererData(f))&&f.accessibilityData?f.accessibilityData.accessibilityData||null:null};
_.X.computeButtonClass=function(f){var R=this.currentStateRendererData(f);if(!R)return"";f="";var u=R.style;u&&(f+=u.toLowerCase().replace(/_/g,"-")+" ");(R=R.size)&&(f+=R.toLowerCase().replace(/_/g,"-")+" ");return f.trim()};
_.X.computeServiceEndpoint=function(f){if(!f)return null;var R=f&&f.serviceEndpoint,u=this.get("command.commandMetadata.webCommandMetadata.sendPost",f);return R?R:u&&f.command?f.command:null};
_.X.computeBellMenuItemParams=function(f){var R;f=(R=_.t(f==null?void 0:f.command,_.kE))==null?void 0:R.commands;if(!f||f.length===0)return null;R=_.t(f[0],_.dS);var u,O;return(R==null?0:(u=R.popup)==null?0:(O=u.menuPopupRenderer)==null?0:O.items)?R.popup.menuPopupRenderer.items.map(function(c){return c.menuServiceItemRenderer.trackingParams}):null};
_.X.handleBellMenuOpenSelectedAction=function(f){var R=f.trackingParams,u=this.computeBellMenuItemParams(this.data);this.data&&R&&u&&u.includes(R)&&this.ytRenderButtonBehavior._setButtonIcon(f.icon.iconType.toLowerCase())};
_.X.onYtServiceRequestCompleted=function(f,R){(f=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",R))&&this.set("data",f)};
_.X.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.X.resetState=function(){this.set("data.currentStateId",3)};
_.X.onYtButtonTapHandler=function(){if(this.data){var f=this.currentStateRendererData(this.data);f&&this.ytRendererBehavior.logExplicitClick(f)}};
hq.prototype.onYtServiceRequestError=hq.prototype.onYtServiceRequestError;hq.prototype.onYtServiceRequestCompleted=hq.prototype.onYtServiceRequestCompleted;hq.prototype.stateChanged=hq.prototype.stateChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],hq.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(Qj.YtRenderButtonBehavior),_.S("design:type",Object)],hq.prototype,"ytRenderButtonBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hq.prototype,"data",void 0);_.B([_.QR("data","data.currentStateId"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hq.prototype,"stateChanged",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],hq.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hq.prototype,"onYtServiceRequestError",null);hq=_.B([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],hq);
_.G(hq,"ytd-subscription-notification-toggle-button-renderer",function(){if(J6H!==void 0)return J6H;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return J6H=f},{mode:1});var z3C;var Z7=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};f.tapHandler=function(){if(f.data){var R=f.currentStateRendererData();R&&f.ytRendererBehavior.logExplicitClick(R)}};
return f};
_.y(Z7,_.U);_.X=Z7.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.currentStateData=function(){var f=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(R){return R.stateId===f.data.currentStateId})||null:null};
_.X.currentStateRendererData=function(){var f=this.currentStateData();return f&&f.state&&f.state.buttonRenderer?f.state.buttonRenderer:null};
_.X.computeAccessibilityLabel=function(){var f,R,u;return(f=this.currentStateRendererData())==null?void 0:(R=f.accessibilityData)==null?void 0:(u=R.accessibilityData)==null?void 0:u.label};
_.X.computeBellMenuItemParams=function(){var f,R,u=(R=_.t((f=this.data)==null?void 0:f.command,_.kE))==null?void 0:R.commands;if(!u||u.length===0)return null;f=_.t(u[0],_.dS);var O,c;return(f==null?0:(O=f.popup)==null?0:(c=O.menuPopupRenderer)==null?0:c.items)?f.popup.menuPopupRenderer.items.map(function(h){return h.menuServiceItemRenderer.trackingParams}):null};
_.X.handleBellMenuOpenSelectedAction=function(f){var R=f.trackingParams,u=this.computeBellMenuItemParams();if(this.data&&R&&u&&u.includes(R)&&(f==null||!f.isDisabled)){var O;((O=_.t(f.serviceEndpoint,_.AH))==null?void 0:O.signal)!=="CLIENT_SIGNAL"&&(this.icon=f.icon.iconType)}};
_.X.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.X.onYtServiceRequestCompleted=function(f,R){if(f=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",R))this.icon=void 0,this.set("data",f)};
_.X.onYtServiceRequestError=function(){this.icon=void 0};
_.Vy.Object.defineProperties(Z7.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data,R=this.textLabel,u=this.hostElement,O=this.computeAccessibilityLabel(),c=this.tapHandler,h=this.isOverlay?"overlay":"mono",l=(f==null?0:f.disableButton)?"disabled":"active";R=R?_.Dz(R):void 0;return{style:h,type:"tonal",state:l,size:"M",focused:!1,formattedButtonText:R,iconPosition:"leading-trailing",onTap:nLn(f,c,u),accessibilityLabel:O}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var f=this.currentStateRendererData(),R,u,O=(u=this.icon)!=null?u:f==null?void 0:(R=f.icon)==null?void 0:R.iconType;if(O)return _.li(O)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.data)==null?void 0:(R=f.secondaryIcon)==null?void 0:R.iconType;if(u)return _.li(u)}}});
Z7.prototype.onYtServiceRequestError=Z7.prototype.onYtServiceRequestError;Z7.prototype.onYtServiceRequestCompleted=Z7.prototype.onYtServiceRequestCompleted;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Z7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Z7.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Z7.prototype,"textLabel",void 0);
_.B([_.I(),_.S("design:type",String)],Z7.prototype,"icon",void 0);_.B([_.I(),_.S("design:type",Boolean)],Z7.prototype,"isOverlay",void 0);_.B([_.T("data.*","textLabel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z7.prototype,"computedButtonShape",null);_.B([_.T("data.*","icon"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z7.prototype,"computedIcon",null);_.B([_.T("data.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z7.prototype,"computedSecondaryIcon",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],Z7.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Z7.prototype,"onYtServiceRequestError",null);Z7=_.B([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Z7);
_.G(Z7,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(z3C!==void 0)return z3C;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return z3C=f},{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var T1G;_.ii(Jaf,"yt-animated-action",{props:{backgroundLottieRef:_.SG,foregroundLottieRef:_.SG,wrapperClass:_.SG,disableAnimation:_.SG},unsafeExternallySettableAttributes:new Set(["key"])});var lS=function(){var f=_.U.apply(this,arguments)||this;f.animatedActionEnabled=_.E("web_animated_actions");f.foregroundLottieRef={};f.backgroundLottieRef={};f.forceIconOnly=!1;f.showTextWhileAnimating=!1;f.keyboardFocused=!1;f.isAnimating=!1;f.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return f};
_.y(lS,_.U);_.X=lS.prototype;_.X.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.X.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]]"}}}}}};
_.X.attached=function(){this.keyboardFocused=!1};
_.X.onYtServiceRequestSent=function(f,R){(this.get("endpoint.subscribeEndpoint",R)||this.get("endpoint.unsubscribeEndpoint",R))&&this.updateSubscriptionState(!this.subscribed)};
_.X.onYtServiceRequestCompleted=function(f,R){(f=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",R.data))&&this.bellButton&&(this.bellButton.data=f)};
_.X.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.ZO(this.hostElement)};
_.X.onPlayerSubscribe=function(f){this.isCompactRed()||f!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.X.onPlayerUnsubscribe=function(f){this.isCompactRed()||f!==this.data.channelId||this.updateSubscriptionState(!1)};
_.X.handleUpdateSubscribeButtonAction=function(f){f=_.t(f,KOG);var R;f&&f.channelId===((R=this.data)==null?void 0:R.channelId)&&this.updateSubscriptionState(!!f.subscribed)};
_.X.computeButtonStyle=function(f){return this.get("style.styleType",f)||null};
_.X.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.X.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.X.updateSubscriptionState=function(f){if(f!==this.subscribed){this.set("data.subscribed",f);var R,u=(R=this.data)==null?void 0:R.subscribedEntityKey;u&&this.ytdReduxBehavior.dispatch(_.aA("subscriptionStateEntity",u,{key:u,subscribed:f}));this.isCompactRed()||_.ul(this.hostElement,"yt-subscription-changed",f);f||(_.OJ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!f),f&&this.hasBellButton&&this.startAnimation())}};
_.X.startAnimation=function(){var f=this;if(!this.isAnimating){var R=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var u;(u=this.backgroundLottieRef.lottieEl)==null||u.goToAndPlay(0);var O;(O=this.foregroundLottieRef.lottieEl)==null||O.goToAndPlay(0);_.JA.addJob(function(){f.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.JA.addJob(function(){f.updateContainerToFitContent(!!f.subscribed,!0)},2,1500);
_.JA.addJob(function(){f.isAnimating=!1},2,R)}};
_.X.maybeAnimateBellIcon=function(){var f=_.OU(this.hostElement).querySelector("yt-animated-icon");if(f){var R;(R=f.animationRef.lottieEl)==null||R.goToAndPlay(0)}};
_.X.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.X.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.X.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var f;this.unsubscribedWidth=(f=this.subscribeButtonShape)==null?void 0:f.getBoundingClientRect().width}var R;this.subscribedWidth=(R=this.bellButton)==null?void 0:R.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.X.updateContainerToFitContent=function(f,R){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(f?(f=this.subscribedWidth,R=this.isAnimating&&!R,this.subscribedIconOnlyWidth===void 0||R||(f=this.subscribedIconOnlyWidth),this.hostElement.style.width=f+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.X.clearContainerSize=function(){this.hostElement.style.width=""};
_.X.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.X.maybeSetSubscribedButtonIconOnlyWidth=function(){var f=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 R;f.subscribedIconOnlyWidth=(R=f.bellButton)==null?void 0:R.getBoundingClientRect().width;requestAnimationFrame(function(){if(f.bellButton){var u;f.bellButton.textLabel=
(u=f.data)==null?void 0:u.subscribedButtonText}})})))};
_.Vy.Object.defineProperties(lS.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 f;return(f=this.data)==null?void 0:f.subscribedButtonText}var R;return this.forceIconOnly?void 0:(R=this.data)==null?void 0:R.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var f,R,u=((f=this.data)==null?void 0:(R=f.timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:"subscribe",timings:u,enabled:u.length>0&&!this.subscribed,experimentEnabled:u.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!this.subscribed&&((f=this.data)==null?void 0:f.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 f={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var R=f.renderer;var u=f.element;var O=f.subscribed;var c=f.commandController;var h=f.isOverlay;f=f.config;var l=iwP(R,O);h&&(l.style="overlay");h=Object;var K=h.assign,q;a:switch((q=R.style)==null?void 0:q.styleType){case "COMPACT_GRAY":case "COMPACT_RED":q={size:"S"};break a;default:q={size:"M"}}var F=vLP(R,O);var w=
(w=O?R.subscribedButtonText:R.unsubscribedButtonText)?_.Dz(w):void 0;return K.call(h,{},l,q,{focused:!1,toggled:O,accessibilityLabel:F,formattedButtonText:w,onTap:Yo7(R,f,O,u,c)})}}}});
lS.prototype.onMouseDown=lS.prototype.onMouseDown;lS.prototype.onDataChanged=lS.prototype.onDataChanged;lS.prototype.observedSubscribed=lS.prototype.observedSubscribed;lS.prototype.onYtServiceRequestCompleted=lS.prototype.onYtServiceRequestCompleted;lS.prototype.onYtServiceRequestSent=lS.prototype.onYtServiceRequestSent;lS.prototype.maybeUpdateBellButtonText=lS.prototype.maybeUpdateBellButtonText;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],lS.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],lS.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],lS.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lS.prototype,"data",void 0);
_.B([_.I({selectorArgs:["data.subscribedEntityKey"],selector:Con}),_.S("design:type",Object)],lS.prototype,"subscriptionStateEntity",void 0);_.B([_.I({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.S("design:type",Boolean)],lS.prototype,"subscribed",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],lS.prototype,"branded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lS.prototype,"animatedActionEnabled",void 0);
_.B([_.I(),_.S("design:type",Object)],lS.prototype,"foregroundLottieRef",void 0);_.B([_.I(),_.S("design:type",Object)],lS.prototype,"backgroundLottieRef",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],lS.prototype,"overlayButton",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.S("design:type",Object)],lS.prototype,"buttonStyle",void 0);_.B([_.I(),_.S("design:type",Object)],lS.prototype,"forceIconOnly",void 0);
_.B([_.I(),_.S("design:type",Object)],lS.prototype,"showTextWhileAnimating",void 0);_.B([_.I({value:function(){return!!_.vh().resolve(_.Y8(_.Oc))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.S("design:type",Boolean)],lS.prototype,"useKeyboardFocused",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lS.prototype,"keyboardFocused",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lS.prototype,"isAnimating",void 0);_.B([_.T("data.notificationPreferenceButton.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"hasBellButton",null);
_.B([_.qM("subscribedButtonText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lS.prototype,"maybeUpdateBellButtonText",null);_.B([_.T("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"subscribedButtonText",null);_.B([_.T("data.timedAnimationData.animationTiming","subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"smartimationSettings",null);
_.B([_.I({reflectToAttribute:!0}),_.T("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"subscribeButtonHidden",null);_.B([_.I({reflectToAttribute:!0}),_.T("subscribed","hasBellButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"subscribeButtonInvisible",null);
_.B([_.I({reflectToAttribute:!0}),_.T("subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"unsubscribeButtonHidden",null);_.B([_.a4("ytd-subscription-notification-toggle-button-renderer-next"),_.S("design:type",Object)],lS.prototype,"bellButton",void 0);_.B([_.a4("#subscribe-button-shape"),_.S("design:type",HTMLElement)],lS.prototype,"subscribeButtonShape",void 0);
_.B([_.T("overlayButton","subscribed","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],lS.prototype,"buttonShape",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],lS.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],lS.prototype,"onYtServiceRequestCompleted",null);
_.B([_.qM("subscribed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lS.prototype,"observedSubscribed",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lS.prototype,"onDataChanged",null);_.B([_.Kf("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lS.prototype,"onMouseDown",null);
lS=_.B([_.e({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],lS);
_.G(lS,"ytd-subscribe-button-renderer",function(){if(T1G!==void 0)return T1G;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return T1G=f},{mode:1});var ky=function(){var f=_.U.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.y(ky,_.U);ky.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ky.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ky.prototype,"isRichGrid",void 0);ky=_.B([_.e({is:"ytd-game-card-renderer",disableElementRegistration:!0})],ky);
_.G(ky,"ytd-game-card-renderer",function(){if(DbA!==void 0)return DbA;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return DbA=f},{mode:1});var KY={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.E("defer_menus")&&!DCi?0:void 0,waitForSignal:"eocs"};var HxH;var IGE;var qC=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return f};
_.y(qC,_.U);_.X=qC.prototype;_.X.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.X.onSeriesReminderStateEntityChange=function(){var f,R,u;((f=this.eventReminderStateEntity)==null?0:f.key)&&((R=this.seriesReminderStateEntity)==null?void 0:R.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((u=this.eventReminderStateEntity)==null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.aA("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.X.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.X.onYtServiceRequestError=function(){var f;this.updateReminderStateEntitiesFromButtonState((f=this.data)==null?void 0:f.currentState)};
_.X.handleUpdateUpcomingEventReminderButtonStateCommand=function(f){if(f=_.t(f,pmi)){var R,u=(R=this.data)==null?void 0:R.targetId;u&&f.targetId===u&&_.P2(this.updateReminderStateEntitiesFromButtonState.bind(this,f.state))}};
_.X.getButtonStateFromReminderState=function(){var f;if(((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var R;if(((R=this.eventReminderStateEntity)==null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var u,O;if(((u=this.seriesReminderStateEntity)==null?void 0:u.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((O=this.eventReminderStateEntity)==
null?void 0:O.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var c;return(c=this.data)==null?void 0:c.currentState};
_.X.updateReminderStateEntitiesFromButtonState=function(f){if(f){switch(f){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":f="UPCOMING_EVENT_REMINDER_STATE_NONE";var R="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":f="UPCOMING_EVENT_REMINDER_STATE_SINGLE";R="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":f="UPCOMING_EVENT_REMINDER_STATE_NONE";R="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var u;
((u=this.eventReminderStateEntity)==null?0:u.key)&&this.ytdReduxBehavior.dispatch(_.aA("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:f})));var O;((O=this.seriesReminderStateEntity)==null?0:O.key)&&this.ytdReduxBehavior.dispatch(_.aA("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:R})))}};
_.Vy.Object.defineProperties(qC.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var f=this.getButtonStateFromReminderState(),R,u;if(f&&((R=this.data)==null?0:(u=R.states)==null?0:u.length))for(R=_.Z(this.data.states),u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;if(((O=_.t(u,jUY))==null?void 0:O.state)===f)return _.t(u,jUY)}}}});
qC.prototype.onYtServiceRequestError=qC.prototype.onYtServiceRequestError;qC.prototype.onYtServiceRequestCompleted=qC.prototype.onYtServiceRequestCompleted;qC.prototype.onSeriesReminderStateEntityChange=qC.prototype.onSeriesReminderStateEntityChange;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],qC.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],qC.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qC.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:dh0}),_.S("design:type",Object)],qC.prototype,"eventReminderStateEntity",void 0);
_.B([_.I({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(f,R){return _.kZ(f.entities,"sportsSeriesReminderStateEntity",R)}}),
_.S("design:type",Object)],qC.prototype,"seriesReminderStateEntity",void 0);_.B([_.T("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],qC.prototype,"currentButtonStateRenderer",null);_.B([_.qM("seriesReminderStateEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qC.prototype,"onSeriesReminderStateEntityChange",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qC.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qC.prototype,"onYtServiceRequestError",null);qC=_.B([_.e({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],qC);
_.G(qC,"ytd-upcoming-event-reminder-button-renderer",function(){if(IGE!==void 0)return IGE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return IGE=f},{mode:1});var MKA;var Aq=function(){return _.U.apply(this,arguments)||this};
_.y(Aq,_.U);Aq.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Vy.Object.defineProperties(Aq.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(_.E("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Aq.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Aq.prototype,"shelfDismissal",void 0);_.B([_.T("data.responseText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Aq.prototype,"text",null);
_.B([_.T("data.responseText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Aq.prototype,"textAriaLabel",null);Aq=_.B([_.e({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Aq);
_.G(Aq,"ytd-notification-multi-action-renderer",function(){if(MKA!==void 0)return MKA;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return MKA=f},{mode:1});var P6l;var aW=function(){return _.U.apply(this,arguments)||this};
_.y(aW,_.U);aW.prototype.ready=function(){var f=this;_.b(this.hostElement).querySelector("#undo").addEventListener("tap",function(){f.onUndoTap()})};
aW.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aW.prototype,"data",void 0);aW=_.B([_.e({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],aW);
_.G(aW,"ytd-notification-text-renderer",function(){if(P6l!==void 0)return P6l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return P6l=f},{mode:1});var Ubl;var F_=function(){var f=_.U.apply(this,arguments)||this;f.mouseOverDelayJobId=0;f.fadeInImageDelayJobId=0;f.startTimeMs=-1;f.loadingStartTimeMs=-1;f.loadingEndTimeMs=-1;f.hasVideoPreview=!1;return f};
_.y(F_,_.U);_.X=F_.prototype;_.X.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.X.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.X.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.X.showThumbnail=function(){var f=this;this.csn=_.z4();_.zT("fmth");_.JA.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Oz(_.JA,function(){f.loadingStartTimeMs=(0,_.iZ)();var R=_.b(f.hostElement).querySelector("#thumbnail");R.complete?f.displayMouseOverImage():R.addEventListener("load",_.ks(f,f.displayMouseOverImage))},150):_.c2(_.b(this.hostElement).querySelector("#play"),"show",!0)};
_.X.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.X.onTap=function(){this.removeVideoPreview()};
_.X.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var f=this.videoId,R=this.csn,u=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,O=this.startTimeMs,c=this.hasVideoPreview,h=_.t4(this.trackingParams),l={isMovingThumbnail:c};c&&O>0&&(u>0&&(l.movingThumbnailLoadingDurationMs=Math.round(u)),l.durationHoveredMs=Math.round((0,_.iZ)()-O));f&&(l.videoId=f);_.$E(R,h,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:l});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.X.removeVideoPreview=function(){_.JA.cancelJob(this.mouseOverDelayJobId);_.JA.cancelJob(this.fadeInImageDelayJobId);var f=_.b(this.hostElement).querySelector("#thumbnail");_.c2(f,"fade-in",!1);f.removeEventListener("load",_.ks(this,this.displayMouseOverImage));f=_.b(this.hostElement).querySelector("#play");_.c2(f,"fade-in",!1);_.c2(f,"show",!1)};
_.X.displayMouseOverImage=function(){var f=_.b(this.hostElement).querySelector("#thumbnail"),R=_.b(this.hostElement).querySelector("#play");this.isImageAvailable(f)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.iZ)(),this.startTimeMs=(0,_.iZ)(),this.fadeInImageDelayJobId=_.Oz(_.JA,function(){_.c2(f,"fade-in",!0)},50)):_.c2(R,"fade-in",!0)};
_.X.computeThumbnail=function(f,R){var u;f&&f.movingThumbnailDetails&&f.movingThumbnailDetails.thumbnails&&R?u=_.rR(f.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):u=R?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(u)return _.EO(u)};
_.X.isImageAvailable=function(f){return!(!f.src||f.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||f.naturalWidth===120)};
F_.prototype.onTap=F_.prototype.onTap;F_.prototype.dataChanged=F_.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],F_.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],F_.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],F_.prototype,"csn",void 0);_.B([_.I(),_.S("design:type",Object)],F_.prototype,"trackingParams",void 0);
_.B([_.I(),_.S("design:type",String)],F_.prototype,"videoId",void 0);_.B([_.I(),_.S("design:type",Boolean)],F_.prototype,"isAttachedAndDataSet",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F_.prototype,"dataChanged",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F_.prototype,"onTap",null);F_=_.B([_.e({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],F_);
_.G(F_,"ytd-moving-thumbnail-renderer",function(){if(Ubl!==void 0)return Ubl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Ubl=f},{mode:1});var e3H;_.KS=function(f){this.hostElement=f;this.eventSink=null;this.eventList=[]};
_.KS.prototype.shouldForward=function(){var f,R;return(R=(f=this.eventSink)==null?void 0:f.isConnected)!=null?R:document.body.contains(this.eventSink)};
_.KS.prototype.start=function(f,R){this.eventSink&&this.stop();for(var u=0;u<f.length;u++)this.hostElement.addEventListener(f[u],_.ks(this,this.forwardEvent));var O;this.eventSink=(O=R.hostElement)!=null?O:R;this.eventList=f};
_.KS.prototype.stop=function(){for(var f=0;f<this.eventList.length;f++)this.hostElement.removeEventListener(this.eventList[f],_.ks(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.KS.prototype.forwardEvent=function(f,R){this.shouldForward()&&(f.stopPropagation(),this.eventSink instanceof Element?_.ul(this.eventSink,f.type,R):_.Ih(new _.ts("eventSink is not an element")))};_.wG={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.KS(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(f,R){this.forwarder_.start(f,R)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var mh=function(){return _.U.apply(this,arguments)||this};
_.y(mh,_.U);_.X=mh.prototype;_.X.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=_.Tf("HTML_DIR")==="rtl"?"right":"left"};
_.X.dataChanged=function(){this.popupOpen=!1};
_.X.computeAriaLabel=function(f){return _.t(f,xmC).label};
_.X.onTap=function(f){f.stopPropagation();f.preventDefault();this.data.command&&_.vh().resolve(_.rv).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.X.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.X.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
mh.prototype.onPopupClosed=mh.prototype.onPopupClosed;mh.prototype.onPopupOpened=mh.prototype.onPopupOpened;mh.prototype.onTap=mh.prototype.onTap;mh.prototype.dataChanged=mh.prototype.dataChanged;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],mh.prototype,"eventForwardingBehavior",void 0);_.B([_.z(_.jv),_.S("design:type",Object)],mh.prototype,"ironButtonState",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],mh.prototype,"componentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],mh.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:-1}),_.S("design:type",Number)],mh.prototype,"tabindex",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.S("design:type",Object)],mh.prototype,"ariaLabel",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],mh.prototype,"disableTooltips",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],mh.prototype,"popupOpen",void 0);
_.B([_.I(),_.S("design:type",Element)],mh.prototype,"eventSink",void 0);_.B([_.a4("#tooltip"),_.S("design:type",Object)],mh.prototype,"tooltip",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mh.prototype,"dataChanged",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],mh.prototype,"onTap",null);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mh.prototype,"onPopupOpened",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mh.prototype,"onPopupClosed",null);mh=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],mh);
_.G(mh,"ytd-thumbnail-overlay-button-renderer",function(){if(e3H!==void 0)return e3H;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return e3H=f},{mode:1});var GvY;var Q_=function(){return _.U.apply(this,arguments)||this};
_.y(Q_,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Q_.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Q_.prototype,"disableAnimation",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Q_.prototype,"rounded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Q_.prototype,"transparentBackground",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Q_.prototype,"noPadding",void 0);Q_=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Q_);
_.G(Q_,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(GvY!==void 0)return GvY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GvY=f},{mode:1});var B1C;var WP=function(){return _.U.apply(this,arguments)||this};
_.y(WP,_.U);WP.prototype.computeIconPosition=function(f){return this.get("iconPosition",f)||null};
WP.prototype.computeIconStyle=function(f){return this.get("iconStyle",f)||null};
WP.prototype.computeIsIconStyleFilled=function(f){if(!f)return!1;var R;return f.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((R=f.icon)==null?void 0:R.iconType)==="ERROR_BLACK"};
_.B([_.I(),_.S("design:type",Object)],WP.prototype,"data",void 0);_.B([_.I({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.S("design:type",Object)],WP.prototype,"iconPosition",void 0);_.B([_.I({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.S("design:type",Object)],WP.prototype,"iconStyle",void 0);_.B([_.I({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],WP.prototype,"iconStyleFilled",void 0);
WP=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],WP);
_.G(WP,"ytd-thumbnail-overlay-icon-renderer",function(){if(B1C!==void 0)return B1C;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return B1C=f},{mode:1});var oWC;var Ei=function(){return _.U.apply(this,arguments)||this};
_.y(Ei,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ei.prototype,"data",void 0);Ei=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Ei);
_.G(Ei,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(oWC!==void 0)return oWC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return oWC=f},{mode:1});var xbA;var tq=function(){var f=_.U.apply(this,arguments)||this;f.isPreviewLoading=!1;return f};
_.y(tq,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tq.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tq.prototype,"isPreviewLoading",void 0);tq=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],tq);
_.G(tq,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(xbA!==void 0)return xbA;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return xbA=f},{mode:1});var S9I;var CY=function(){return _.U.apply(this,arguments)||this};
_.y(CY,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],CY.prototype,"data",void 0);CY=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],CY);
_.G(CY,"ytd-thumbnail-overlay-pinking-renderer",function(){if(S9I!==void 0)return S9I;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return S9I=f},{mode:1});var $bG;var y_=function(){var f=_.U.apply(this,arguments)||this;f.disableTooltips=!1;f.isLoading=!1;f.useExpandableTooltip=!1;f.toggled=!1;f.hovered=!1;f.mouseoverDelayJobId=0;f.toggleDelayJobId=0;f.expandAnimationDelayJobId=0;return f};
_.y(y_,_.U);_.X=y_.prototype;_.X.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");_.b(this.hostElement).querySelector("#tooltip").position=_.Tf("HTML_DIR")==="rtl"?"right":"left"};
_.X.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.JA.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.JA.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.JA.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.X.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.JA.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.JA.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.JA.cancelJob(this.expandAnimationDelayJobId)};
_.X.computeIcon=function(f,R,u){return(f=u?R:f)&&f.iconType?_.li(f.iconType):void 0};
_.X.computeAriaLabel=function(f,R,u){return _.t(u?R:f,xmC).label};
_.X.computeTooltip=function(f,R,u){return u?R:f};
_.X.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.X.computeIconOnHover=function(f,R){if((f==null?0:f.iconType)&&!R)return _.li(f.iconType)};
_.X.onTap=function(f){var R=this;f.stopPropagation();f.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(f=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(f),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Oz(_.JA,function(){R.hovered=!1;R.data&&!R.data.toggledServiceEndpoint&&(R.expandAnimationDelayJobId=_.Oz(_.JA,function(){R.set("data.isToggled",
!1)},200))},2E3))};
_.X.onMouseenter=function(){var f=this;this.mouseoverDelayJobId=_.Oz(_.JA,function(){f.hovered=!0},300)};
_.X.onMouseleave=function(){_.JA.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.X.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.X.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.X.onServiceRequestCompleted=function(f,R){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(R)||this.set("data.isToggled",!this.data.isToggled)};
_.X.serviceRequestWasSuccessful=function(f){return _.t(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.ji)?f.data.status==="STATUS_SUCCEEDED":!0};
y_.prototype.onServiceRequestCompleted=y_.prototype.onServiceRequestCompleted;y_.prototype.onPopupClosed=y_.prototype.onPopupClosed;y_.prototype.onPopupOpened=y_.prototype.onPopupOpened;y_.prototype.onMouseleave=y_.prototype.onMouseleave;y_.prototype.dataChanged=y_.prototype.dataChanged;_.B([_.z(_.jv),_.S("design:type",Object)],y_.prototype,"ironButtonState",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],y_.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],y_.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],y_.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.S("design:type",Object)],y_.prototype,"ariaLabel",void 0);_.B([_.I(),_.S("design:type",Object)],y_.prototype,"disableTooltips",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],y_.prototype,"popupOpen",void 0);_.B([_.I(),_.S("design:type",Object)],y_.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Element)],y_.prototype,"eventSink",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],y_.prototype,"useExpandableTooltip",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.S("design:type",Object)],y_.prototype,"toggled",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],y_.prototype,"hovered",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.S("design:type",Object)],y_.prototype,"iconOnHover",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y_.prototype,"dataChanged",null);
_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y_.prototype,"onMouseleave",null);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y_.prototype,"onPopupOpened",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y_.prototype,"onPopupClosed",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],y_.prototype,"onServiceRequestCompleted",null);y_=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],y_);
_.G(y_,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if($bG!==void 0)return $bG;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $bG=f},{mode:_.c7("kevlar_poly_si_batch_j053")?1:2});var gWC;var sek=_.nf(function(f){var R=f.data;var u=function(){return R().enableSegmentView};
return _.a("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.a(_.Q,{cond:u,then:function(){return _.a("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.a("div",{class:_.AS("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+R().startPercent+"%"}}),_.a("div",{class:_.AS("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+R().segmentDurationPercent+"%"}},_.a("div",{class:_.AS("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.a("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.a("div",null," ",function(){return R().segmentLabel})),_.a("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.a("div",{class:_.AS("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.a(_.Q,{cond:function(){return!u()&&R().startPercent},
then:function(){var O={};return _.a("div",{class:_.AS("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(O.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.E("web_enable_modern_progress_bar_overlay"),O))},_.a("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+R().startPercent+"%"}}))}}))},"Q");
sek.idomCompat=!0;var nWC=_.nf(function(f){var R=_.ZR(),u=_.JS(function(c){var h,l,K;a:{var q=(h=f.data())==null?void 0:h.animationActivationTargetId;h=((l=f.data())==null?void 0:l.animationActivationEntityKey)||"";l=(K=f.data())==null?void 0:K.animationActivationEntitySelectorType;if(h&&q)switch(l){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":c=_.kZ(c.entities,"playerStateEntity",h);K=_.vh().resolve(_.Y8(_.MS));q=!!(c&&c.videoId===q&&(K==null?0:K.isMiniplayerActive()));q={activated:q,playAnimation:q&&
c.playerState==="PLAYER_STATE_PLAYING"};break a}q=void 0}return q});
_.pc(function(){var c;if((c=u())==null?0:c.activated){var h;if((h=u())==null?0:h.playAnimation){var l;(l=R.lottieEl)==null||l.goToAndPlay(0)}else{var K;(K=R.lottieEl)==null||K.goToAndStop(0)}}});
var O=function(){var c,h=!((c=u())==null||!c.activated);if(f.data()){c=f.data();var l=void 0;c.icon&&(l=_.K3t(c.icon),l=QPP(l));var K=void 0,q;if((q=c.backgroundColor)==null?0:q.lightTheme){var F;K={backgroundColor:PL((F=c.backgroundColor)==null?void 0:F.lightTheme,"0.8")}}if(c.text||l||h){if(h&&c.lottieData&&R){F=c.lottieData;var w,m,W;q={animationConfig:{name:F.url,path:F.url,autoplay:(w=F.settings)==null?void 0:w.autoplay,loop:(W=(m=F.settings)==null?void 0:m.loop)!=null?W:!0},animationRef:R}}else q=
void 0;if(h)w=16;else b:switch(c.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":w=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":w=18;break b;default:w=16}h={type:w,text:h&&c.animatedText?c.animatedText:c.text,icon:l,customColors:K,animation:q}}else h=void 0}else h=void 0;return h};
return _.a("yt-thumbnail-badge-view-model",{class:_.KL("yt-thumbnail-badge-view-model-wiz",f.class)},_.a(_.Q,{cond:O,then:function(){return _.a(_.nr,{data:function(){return O()}})}}))},"R");var VKH=_.nf(function(f){var R={};return _.a("yt-thumbnail-bottom-overlay-view-model",{class:_.KL("ytThumbnailBottomOverlayViewModelHost",(R.ytThumbnailBottomOverlayViewModelHostBackground=function(){return f.data().enableGradientBackground},R))},_.a("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.a(_.y5,{data:function(){return f.data().progressBar}},{thumbnailOverlayProgressBarViewModel:sek}),_.a(_.y5,{data:function(){return f.data().badge}},{thumbnailBadgeViewModel:function(u){return _.a(nWC,
{data:u.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.a(_.y5,{data:function(){return f.data().badges}},{thumbnailBadgeViewModel:function(u){return _.a(nWC,{data:u.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"S");
VKH.idomCompat=!0;_.ii(VKH,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.v7}});var k37={calledOnce:!1,state:"visible"},KL0={calledOnce:!1,state:"hidden"};var dG=_.nf(function(f){var R=f.data;var u=f.className;f=f.alwaysShow;var O=_.sW();_.xO(O,function(){return R().rendererContext});
var c=_.RbB(),h={};return _.a("thumbnail-hover-overlay-view-model",{el:O,class:_.KL("ytThumbnailHoverOverlayViewModelHost",u,(h.ytThumbnailHoverOverlayViewModelHostForceHover=f,h)),"aria-label":function(){var l;return(l=_.t(R().rendererContext,_.mZ))==null?void 0:l.label},
role:function(){return _.BJ(R().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.BJ(R().rendererContext)!==void 0?0:void 0},
"on:keypress":c},_.a("div",{class:_.KL("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(R().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var l="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:l="ytThumbnailHoverOverlayViewModelStyleCover"}return l})},_.a(_.Q,{cond:function(){return R().icon},
then:function(l){return _.a(_.gR,{data:l,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.a(_.Q,{cond:function(){return R().text},
then:function(l){return _.a(_.YO,{text:l,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
dG.idomCompat=!0;var Y9l=_.nf(function(f){var R=f.data;return _.a(_.y5,{data:function(){return R==null?void 0:R().overlays}},{thumbnailHoverOverlayViewModel:dG})},"U");
Y9l.idomCompat=!0;var vWk={};var ixH=_.nf(function(f){var R=f.data;var u=f.image;var O=f.state;var c=f.iconType;var h=f.overlays;var l=f.isOverlay;var K=_.n0();f=_.Z(_.qK(!0,void 0,"sUzEZ"));var q=f.next().value,F=f.next().value,w=function(){return!!R().onTap},m=_.g_(c,"LIVE");
_.pc(function(){var C=R();requestAnimationFrame(function(){if(K.value===null)var d=!0;else{var p=K.value;d=C.badgeText;var J=ail(C.size);d in vWk?p=vWk[d]:(p=p.clientWidth,vWk[d]=p);(d=p>J)?K.value.style.display="none":K.value.style.visibility="visible"}F(d)})});
var W=function(){var C={};return C["yt-spec-avatar-shape__image"]=!0,C["yt-spec-avatar-shape__image--ads-app"]=R().type===1,C};
return _.a("yt-avatar-shape",null,_.a("div",{el:_.nU(wx0(w,{keydown:function(C){if(C.key==="Enter"){var d;(d=C.currentTarget)==null||d.click()}},
click:function(C){var d,p;return void((p=(d=R()).onTap)==null?void 0:p.call(d,C))}})),
class:function(){var C={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},d=R();C=(C[d.clusterLayoutConfig?WL7(d.clusterLayoutConfig):E2t(d.size)]=!0,C["yt-spec-avatar-shape__button--tappable"]=w(),C);(d=R().avatarButtonCustomClassName)&&(C[d]=!0);return _.AS(C)},
"aria-label":function(){return w()?R().accessibilityText:""},
role:function(){return w()?"button":void 0},
tabindex:function(){return w()?0:void 0}},_.a("div",{class:function(){var C,d=R(),p=O==null?void 0:O(),J=l==null?void 0:l(),M=!((C=d.decorations)==null||!C.includes(2)||d.size!=="medium"&&d.size!=="large"),P=d.size==="tiny"||d.size==="extra-small",g,x,fh,V,ZD={};
C=(ZD["yt-spec-avatar-shape--live-ring"]=!!(((g=d.decorations)==null?0:g.includes(0))&&CF0(d.size)),ZD["yt-spec-avatar-shape--stories-watched"]=M&&!(p==null||!p.storiesWatched),ZD["yt-spec-avatar-shape--stories-unwatched"]=M&&!(p==null?0:p.storiesWatched),ZD["yt-spec-avatar-shape--background-border"]=yDh(d.decorations)&&!P,ZD["yt-spec-avatar-shape--background-border-thin"]=yDh(d.decorations)&&P,ZD["yt-spec-avatar-shape__on-select-border"]=!((x=d.decorations)==null||!x.includes(4)),ZD["yt-spec-avatar-shape__white-border"]=
!((fh=d.decorations)==null||!fh.includes(5)),ZD["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((V=d.decorations)==null?0:V.includes(5))&&P),ZD["yt-spec-avatar-shape--is-overlay"]=!!J,ZD);return _.AS(C)},
style:function(){a:{var C=R().clusterLayoutConfig;if(C){b:{var d=C.numAvatarsInCluster;var p=C.avatarIndex;if(p!==d-1){switch(C.clusterSize){case "small":C="32";break;case "medium":C="36";break;case "40":C="40";break;default:d=void 0;break b}d="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+C+"x"+C+"_avatars_"+d+"_index_"+p+".svg"}else d=void 0}if(d){d=_.Qm({"-webkit-mask-image":"url("+d+")","mask-image":"url("+d+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}d=void 0}return d}},_.a("div",{class:function(){var C={};
var d=R();C=(C[d.clusterLayoutConfig?m9B(d.clusterLayoutConfig):QRl(d.size)]=!0,C["yt-spec-avatar-shape--no-margin"]=yDh(R().decorations),C);return _.AS(C)}},_.a(_.gR,{data:u,
alt:function(){return!w()&&R().accessibilityText?R().accessibilityText:""},
targetWidth:function(){return t_n(R().size)},
targetHeight:function(){return t_n(R().size)},
className:function(){return _.AS(W())}}),_.a(_.Q,{cond:function(){var C;
return((C=R().decorations)==null?void 0:C.includes(0))&&CF0(R().size)},
then:function(){return _.a("div",{class:function(){var C={};C=(C["yt-spec-avatar-shape__live-badge"]=!0,C["yt-spec-avatar-shape__live-badge--badge-small"]=R().size==="small",C["yt-spec-avatar-shape__live-badge--badge-medium"]=R().size==="medium"||R().size==="48",C["yt-spec-avatar-shape__live-badge--badge-large"]=R().size==="large",C["yt-spec-avatar-shape__live-badge--badge-extra-large"]=R().size==="extra-large"||R().size==="extra-extra-large"||R().size==="giant",C);return _.AS(C)}},_.a(_.Q,{cond:function(){return R().badgeText},
then:function(C){return _.a("div",{class:"yt-spec-avatar-shape__badge-text",el:K},C)}}),_.a(_.Q,{cond:q,
then:function(){return _.a("div",{class:"yt-spec-avatar-shape__badge-icon"},_.a(_.WM,{icon:m,size:function(){a:switch(R().size){case "extra-large":var C=16;break a;default:C=13}return C}}))}}))}}),_.a(_.Q,{cond:function(){var C,d;
return((C=R().decorations)==null?void 0:C.includes(1))||((d=R().decorations)==null?void 0:d.includes(0))&&!CF0(R().size)},
then:function(){return _.a("div",{class:function(){var C=R(),d,p,J={};var M=(J["yt-spec-avatar-shape__live-dot"]=!((d=C.decorations)==null||!d.includes(0)||CF0(C.size)),J["yt-spec-avatar-shape__new-content"]=!((p=C.decorations)==null||!p.includes(1)),J);return _.AS(M)}})}}),_.a(_.Q,{cond:function(){return!!h},
then:function(){return _.a("div",{class:function(){var C={};C=Object.assign((C["yt-spec-avatar-shape__image-overlays"]=!0,C),W());return _.AS(C)}},h==null?void 0:h())}})))))},"V");
ixH.idomCompat={callbacks:{overlays:!0}};_.NC=_.nf(function(f){function R(){u().endpoint&&_.Ux(u().endpoint)}
var u=f.data;var O=f.decorations;var c=f.avatarButtonCustomClassName;var h=f.isOverlay;var l=f.clusterLayoutConfig;return _.a("avatar-view-model",null,_.a(_.Q,{cond:function(){return u().image},
then:function(K){return _.a(ixH,{data:function(){return NMt({data:u(),onTap:u().endpoint?R:void 0,decorations:O==null?void 0:O(),badgeText:void 0,accessibilityText:u().accessibilityText,avatarButtonCustomClassName:c==null?void 0:c(),clusterLayoutConfig:l==null?void 0:l()})},
image:K,iconType:"RADAR_LIVE",overlays:function(){return _.a(Y9l,{data:u})},
isOverlay:h})}}))},"W");
_.NC.idomCompat=!0;_.LY=_.nf(function(f){var R=f.data;f=f.className;var u=_.n0(),O=function(){return _.t(R().avatar,_.SP)},c=_.Qt(function(){var h,l=R(),K=O(),q=_.BJ(R().rendererContext),F=(h=u.value)!=null?h:void 0,w;
if(K){F={data:l,avatar:K,onTap:q,element:F};h=F.data;l=F.avatar;K=F.onTap;q=F.element;F=F.commandController;K=K?jR0(K,q,F):void 0;q=[];h.liveData&&q.push(0);var m;F=(m=h.liveData)==null?void 0:m.liveBadgeText;m=(w=_.t(h.rendererContext,_.mZ))==null?void 0:w.label;w=NMt({data:l,onTap:K,decorations:q,badgeText:F,accessibilityText:m?m:h.a11yLabel})}else w={size:"medium"};return w},void 0,"H8tk9d");
return _.a("yt-decorated-avatar-view-model",{class:_.KL("yt-decorated-avatar-view-model-wiz",f),el:u},_.a(_.Q,{cond:function(){var h;return(h=O())==null?void 0:h.image},
then:function(h){return _.a(ixH,{data:c,image:h,iconType:"RADAR_LIVE",overlays:function(){return _.a(Y9l,{data:O})}})}}))},"X");
_.LY.idomCompat=!0;_.bS=_.nf(function(f){var R=function(){var q;return Object.assign({},f.data(),(q=f.overrides)==null?void 0:q.call(f))},u=_.sW(),O=function(){return u&&_.oA(R().rendererContext)};
_.xO(u,function(){return R().rendererContext});
var c=function(){var q=R().avatars,F,w;return(w=(F=(q==null?0:q[0])?_.t(q[0],_.SP):void 0)==null?void 0:F.avatarImageSize)!=null?w:"AVATAR_SIZE_UNKNOWN"},h=function(){return pxX(R())},l=function(){if(R().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var q=void 0;
else if((q=f.decorations)==null?0:q.call(f))q=f.decorations();else{q=R();var F=0;q.avatars&&(F+=q.avatars.length);q.decoratedText&&(F+=1);q=F>1?[3]:[]}return q},K={};
return _.a("yt-avatar-stack-view-model",{el:u,class:_.KL("yt-avatar-stack-view-model-wiz",f.className,(K["yt-avatar-stack-view-model-wiz--tappable"]=O,K["yt-avatar-stack-view-model-wiz--is-overlay"]=f.isOverlay,K["yt-avatar-stack-view-model-wiz--medium-text"]=f.useMediumText,K)),tabindex:function(){return O()?0:void 0},
role:function(){return O()?"link":void 0},
"aria-label":function(){var q,F;return(F=(q=_.t(R().rendererContext,_.mZ))==null?void 0:q.label)!=null?F:""}},_.a(_.Q,{cond:function(){var q;
return R().avatars&&!((q=f.hideAvatar)==null?0:q.call(f))},
then:function(){return _.a("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.a(_.Q,{cond:function(){return R().decoratedText},
then:function(q){var F={};return _.a("div",{class:_.KL("yt-avatar-stack-view-model-wiz__text-container",(F["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return c()==="AVATAR_SIZE_XXS"||c()==="AVATAR_SIZE_XS"},F["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var w;
return((w=f.isOverlay)==null?void 0:w.call(f))&&(c()==="AVATAR_SIZE_XXS"||c()==="AVATAR_SIZE_XS")},F)),
style:_.Qm({width:function(){return h().avatarSizeInPx+"px"},
height:function(){return h().avatarSizeInPx+"px"}})},_.a(_.YO,{text:q,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.a("div",{style:function(){return _.Qm(h().avatarStackStyle)()},
class:function(){return h().avatarStackClass}},_.a(_.y5,{data:function(){return h().avatars.reverse()}},{avatarViewModel:function(q,F){return _.a("div",{style:function(){var w,m;
return _.Qm((m=(w=h()).avatarStyle)==null?void 0:m.call(w,F()))()},
class:function(){return h().avatarClass}},_.a(_.NC,{data:q.data,
decorations:l,avatarButtonCustomClassName:function(){return h().avatarButtonCustomClassName},
isOverlay:f.isOverlay,clusterLayoutConfig:function(){var w,m;return(m=(w=h()).clusterLayoutConfig)==null?void 0:m.call(w,F())}}))},
decoratedAvatarViewModel:function(q,F){return _.a("div",{style:function(){var w,m;return _.Qm((m=(w=h()).avatarStyle)==null?void 0:m.call(w,F()))()},
class:function(){return h().avatarClass}},_.a(_.LY,{data:q.data}))}})))}}),_.a(_.Q,{cond:function(){return R().text},
then:function(q){return _.a(_.YO,{text:q,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.bS.idomCompat=!0;_.ii(_.nf(function(f){var R=f.data;var u=f.thumbnailSize;return _.a("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.a("div",{class:_.KL("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return D9e(u==null?void 0:u())})},_.a(_.y5,{data:function(){return R().avatarStack}},{avatarStackViewModel:function(O){return _.a(_.bS,{data:O.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.SG,
thumbnailSize:_.SG}});var r6E=_.nf(function(f){f=_.sU(f,{hidden:!1});var R=f.data;return _.a("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:f.hidden},_.a(_.YO,{text:function(){return R().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(){return _.a(_.YO,{text:function(){return R().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
r6E.idomCompat=!0;_.ii(r6E,"yt-thumbnail-overlay-title-view-model",{props:{data:_.SG,hidden:_.SG}});var f6i=_.nf(function(f){f=_.sU(f,{isClip:!1});var R=f.data,u=f.thumbnailSize,O={};return _.a("yt-thumbnail-overlay-badge-view-model",{class:_.KL("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(R().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var c="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:c="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return c},function(){return JDt(u==null?void 0:u())},(O["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
f.isClip,O))},_.a(_.y5,{data:function(){return R().thumbnailBadges}},{thumbnailBadgeViewModel:function(c){return _.a(nWC,{data:c.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
f6i.idomCompat=!0;_.ii(f6i,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.SG,thumbnailSize:_.SG,isClip:_.SG}});_.RI(zb7);_.hS(zb7,"yt-page-indicator-view-model",{propNames:["data"]});var pY=function(){var f=_.U.apply(this,arguments)||this;f.eventSink=function(){return f};
f.disableInteraction=!1;f.noRoundedCorners=!1;f.isPreviewLoading=!1;f.isOriginalAspectRatio=!1;f.computedObjectFit=!1;f.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return f};
_.y(pY,_.U);_.X=pY.prototype;
_.X.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:_.E("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"}}};
_.X.onImageLoaded=function(){this.loaded=!0};
_.X.onImageUnloaded=function(){this.loaded=!1};
_.X.computeRichThumbnail=function(f,R,u,O){if(f&&R&&!O&&!_.E("disable_moving_thumbs_handling")&&!u)return R};
_.X.computeImageWidth=function(f,R){return R||9999};
_.X.computeIsOriginalAspectRatio=function(f){return f};
_.X.computeIsLive=function(f){if(f==null?0:f.badges)for(var R=0;R<f.badges.length;R++){var u=f.badges[R];if(u.metadataBadgeRenderer&&u.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(f==null?0:f.thumbnailOverlays)for(R=0;R<f.thumbnailOverlays.length;R++)if(u=f.thumbnailOverlays[R],u.thumbnailOverlayTimeStatusRenderer&&u.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.X.computeObjectFit=function(f,R){return R||(f?"CONTAIN":"")};
_.X.computeNavigationEndpoint=function(f,R,u){return f?R:u};
_.X.computeHasClip=function(f){f=_.Z(f||[]);for(var R=f.next();!R.done;R=f.next())if(R.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.X.computeOverlayColor=function(f){var R;return(f==null?0:(R=f.darkColorPalette)==null?0:R.section2Color)?f.darkColorPalette.section2Color:f==null?void 0:f.sampledThumbnailColor};
_.Vy.Object.defineProperties(pY.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return zWD(this.width)}}});
pY.prototype.onImageUnloaded=pY.prototype.onImageUnloaded;pY.prototype.onImageLoaded=pY.prototype.onImageLoaded;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(I4l),_.S("design:type",Object)],pY.prototype,"ytdThumbnailBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],pY.prototype,"componentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],pY.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pY.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],pY.prototype,"circular",void 0);
_.B([_.I({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.S("design:type",Object)],pY.prototype,"richThumbnail",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.S("design:type",Boolean)],pY.prototype,"hasClip",void 0);_.B([_.I(),_.S("design:type",Object)],pY.prototype,"eventSink",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],pY.prototype,"queued",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],pY.prototype,"richGridThumbnail",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],pY.prototype,"useExpandableTooltip",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],pY.prototype,"useUntranslatedNavigationEndpoint",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],pY.prototype,"disableInteraction",void 0);
_.B([_.I({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.S("design:type",Object)],pY.prototype,"computedNavigationEndpoint",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],pY.prototype,"nowPlayingEqualizerOnly",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],pY.prototype,"hidePlaybackStatus",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],pY.prototype,"objectFit",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],pY.prototype,"noRoundedCorners",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],pY.prototype,"watchFeedThumbnail",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],pY.prototype,"isPreviewLoading",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.S("design:type",Object)],pY.prototype,"isOriginalAspectRatio",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.S("design:type",Object)],pY.prototype,"computedObjectFit",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.S("design:type",Boolean)],pY.prototype,"isLiveVideo",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],pY.prototype,"loaded",void 0);_.B([_.I({computed:"computeOverlayColor(data.thumbnail)"}),_.S("design:type",Object)],pY.prototype,"overlayColor",void 0);_.B([_.I({selector:_.wY0}),_.S("design:type",Boolean)],pY.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.I(),_.S("design:type",Number)],pY.prototype,"width",void 0);
_.B([_.T("inlinePreviewIsEnabled"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pY.prototype,"isPreviewDisabled",null);_.B([_.T("width"),_.S("design:type",String),_.S("design:paramtypes",[])],pY.prototype,"thumbnailSize",null);_.B([_.Kf("image-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pY.prototype,"onImageLoaded",null);
_.B([_.Kf("image-unloaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pY.prototype,"onImageUnloaded",null);pY=_.B([_.e({disableElementRegistration:!0,is:"ytd-thumbnail"})],pY);
var Rsf=_.Ox()(pY,"ytd-thumbnail",function(){if(gWC===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);gWC=f}f=gWC;return f},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var M_e=function(f){var R=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12806_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12806_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(u){u9Y(R,u)};
this.onLockupMouseLeaveFn=function(u){u=u.relatedTarget;var O,c;((O=document.getElementsByTagName("ytd-video-preview"))==null?0:(c=O.item(0))==null?0:c.contains(u))||(R.terminateVideoPreview(),jb(R))};
this.onThumbnailMouseDownFn=function(){R.terminateVideoPreview();jb(R)};
this.onTouchStart=function(){R.JSC$12806_touched=!0};
this.mediaRenderer=f.mediaRenderer;this.thumbnailElement=f.thumbnailElement;this.lockupElement=f.lockupElement;this.videoPreviewOptsInput=f.videoPreviewOpts;OwH(this);D7(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)):
_.Ih(Error("Ah")):_.Ih(Error("Bh")):czf(this)},uk=function(f){czf(f);
var R;(R=f.lockupElement)==null||R.removeEventListener("mouseenter",f.onMouseMoveFn);var u;(u=f.lockupElement)==null||u.removeEventListener("mouseleave",f.onLockupMouseLeaveFn);var O;(O=f.lockupElement)==null||O.removeEventListener("touchstart",f.onTouchStart);var c;(c=f.thumbnailElement)==null||c.removeEventListener("mousedown",f.onThumbnailMouseDownFn);jb(f)},OwH=function(f){f.inlinePreviewIsEnabledForUser=_.sP().getState().ui.inlinePreviewIsEnabled;
f.unsubscribeFromInlinePreviewIsEnabled=_.aC(_.sP(),_.wY0,function(R){(f.inlinePreviewIsEnabledForUser=R)||jb(f)});
f.JSC$12806_unsubscribeFromInlinePreviewIsActive=_.aC(_.sP(),_.FZD,function(R){(f.inlinePreviewIsActive=R)||jb(f)})},czf=function(f){f.unsubscribeFromInlinePreviewIsEnabled();
f.unsubscribeFromInlinePreviewIsEnabled=function(){};
f.JSC$12806_unsubscribeFromInlinePreviewIsActive();f.JSC$12806_unsubscribeFromInlinePreviewIsActive=function(){}},u9Y=function(f,R){R.buttons>0||(R=_.RV("kevlar_lockup_hover_delay",-1),f.JSC$12806_touched&&R>=0?(_.JA.cancelJob(f.videoPreviewJobId),f.videoPreviewJobId=_.Oz(_.JA,function(){XSi(f)},R),f.JSC$12806_touched=!1):XSi(f))},hsE=function(f){f.videoPreviewJobId=_.Oz(_.JA,function(){var R,u,O,c;
return _.k(function(h){if(h.nextAddress==1){if(!D7(f))return h.return();R=f.getVideoPreviewOpts();if(!R)return h.return();R.isAutoplay=!0;return(O=(u=_.c_(f.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&u[0])?_.A(h,u[0],3):h.jumpTo(2)}h.nextAddress!=2&&(O=h.yieldResult===1);O&&H4h((c=f.mediaRenderer)==null?void 0:c.data);_.KG(h)})})},XSi=function(f){!f.previewTriggered&&D7(f)&&(f.inlinePreviewIsActive&&f.terminateVideoPreview(),f.previewTriggered=!0,f.mediaRenderer.isInlinePreviewTriggered=
!0,_.JA.cancelJob(f.videoPreviewJobId),f.videoPreviewJobId=_.Oz(_.JA,function(){var R,u,O,c;
return _.k(function(h){if(h.nextAddress==1){if(!D7(f))return h.return();R=f.getVideoPreviewOpts();return R?(O=(u=_.c_(f.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&u[0])?_.A(h,u[0],3):h.jumpTo(2):h.return()}h.nextAddress!=2&&(O=h.yieldResult===1);O&&H4h((c=f.mediaRenderer)==null?void 0:c.data);_.KG(h)})}))};
M_e.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var f,R;if((R=(f=this.videoPreviewOptsInput)==null?void 0:f.videoPreviewData)!=null)f=R;else if(f=this.mediaRenderer.data)if(TM7(f))f={inlinePlaybackEndpoint:_.H7(f.inlinePlayerData.onVisible),navigationEndpoint:_.H7(f.onTap),thumbnail:"image"in f?f.image:f.thumbnail,thumbnailOverlays:void 0,accessibilityText:Iiq(f)};else if("multipleInlinePlaybackEndpoint"in f){var u=_.t(_.t(f.multipleInlinePlaybackEndpoint,S0E),$HC);if(u!=
null&&u.playerDescriptors){R=[];u=_.Z(u.playerDescriptors);for(var O=u.next();!O.done;O=u.next())O=O.value,R.push({inlinePlaybackEndpoint:O.inlinePlaybackEndpoint,navigationEndpoint:O.navigationEndpoint,thumbnail:O.thumbnail,thumbnailOverlays:O.thumbnailOverlays,accessibilityText:Iiq(f)});f=R}else f=void 0}else f={inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:Iiq(f)};else f=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:f,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var D7=function(f){var R;if(R=f.inlinePreviewIsEnabledForUser)R=(f=f.mediaRenderer.data)?"inlinePlaybackEndpoint"in f&&f.inlinePlaybackEndpoint||TM7(f)&&f.inlinePlayerData||"multipleInlinePlaybackEndpoint"in f&&f.multipleInlinePlaybackEndpoint?!0:!1:!1;return R};
M_e.prototype.terminateVideoPreview=function(){_.OJ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var jb=function(f){_.JA.cancelJob(f.videoPreviewJobId);f.inlinePreviewIsActive=!1;f.previewTriggered=!1;f.mediaRenderer.isInlinePreviewTriggered=!1};var ZwI=_.Sg(["#"]),Jq=function(){var f=_.U.apply(this,arguments)||this;f.isDisabled=!1;return f};
_.y(Jq,_.U);_.X=Jq.prototype;_.X.configureRendererStamper=function(){return{"data.menu":KY,"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"}}}};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.getMetadata=function(f){var R=[];if(f.metadataText&&Object.keys(f.metadataText).length>0){var u=this.ytRendererBehavior.getSimpleString(f.metadataText);f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&(u=_.HJ(u,Number(f.upcomingEventData.startTime)));R.push(u)}else f.shortViewCountText&&R.push(this.ytRendererBehavior.getSimpleString(f.shortViewCountText)),f.publishedTimeText&&R.push(this.ytRendererBehavior.getSimpleString(f.publishedTimeText)),f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&
(u=this.ytRendererBehavior.getSimpleString(f.upcomingEventData.upcomingEventText),R.push(_.HJ(u,Number(f.upcomingEventData.startTime))));return R};
_.X.calculateBylineText=function(f){return f.shortBylineText?f.shortBylineText:f.bylineText?f.bylineText:null};
_.X.calculateIsDisabled=function(f){return!!f.isDisabled};
_.X.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f)||_.dQ(ZwI)};
_.X.onDetailsTap=function(f){var R=this.data&&this.data.navigationEndpoint;R&&!_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.E("kevlar_grid_video_renderer_killswitch")?_.ul(this.hostElement,"yt-navigate",{endpoint:R}):this.ytComponentBehavior.resolveCommand(R))};
_.X.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12811_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:_.b(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.b(this.hostElement).querySelector("ytd-thumbnail")})};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$12811_inlinePreviewHoverListener)==null||uk(f)};
_.X.computeThumbnailWidth=function(f,R){return R&&R>0?R:f?360:210};
_.X.computeShowChannelThumbnail=function(f,R){var u;return R&&!!(f==null?0:(u=f.channelThumbnailSupportedRenderers)==null?0:u.channelThumbnailWithLinkRenderer)};
_.Vy.Object.defineProperties(Jq.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$12811_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Jq.prototype.dataChanged=Jq.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Jq.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],Jq.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.BX),_.S("design:type",Object)],Jq.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Jq.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Jq.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Jq.prototype,"noEndpoints",void 0);_.B([_.I({computed:"calculateBylineText(data)"}),_.S("design:type",Object)],Jq.prototype,"bylineText",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Jq.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Jq.prototype,"isDownloading",void 0);_.B([_.I({reflectToAttribute:!0,value:0}),_.S("design:type",Number)],Jq.prototype,"width",void 0);_.B([_.I({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.S("design:type",Object)],Jq.prototype,"isDisabled",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jq.prototype,"dataChanged",null);_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Jq.prototype,"isHovered",null);Jq=_.B([_.e({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Jq);
_.G(Jq,"ytd-grid-video-renderer",function(){if(HxH!==void 0)return HxH;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return HxH=f},{mode:_.c7("kevlar_poly_si_batch_j047")?1:2});var l6k;var zU=function(){var f=_.U.apply(this,arguments)||this;f.roundedContainer=!0;f.skipRoundingTop=!1;f.disableTopPadding=!1;f.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return f};
_.y(zU,_.U);zU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zU.prototype.onClick=function(f){var R,u=(R=this.data)==null?void 0:R.sourceEndpoint;!_.$G(_.$S(f),this.hostElement,["A".toString()])&&u&&_.ul(this.hostElement,"yt-navigate",{endpoint:u})};
_.Vy.Object.defineProperties(zU.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 f;return!((f=this.data)==null||!f.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.data)==null?void 0:f.paragraphMaxLines)!=null?R:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zU.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zU.prototype,"showVerticalDividers",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zU.prototype,"roundedContainer",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zU.prototype,"skipRoundingTop",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zU.prototype,"disableTopPadding",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],zU.prototype,"amsterdamEnabled",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],zU.prototype,"showMetadataAtTop",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],zU.prototype,"showMetadataBelowTitle",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.menu"),_.S("design:type",Object),_.S("design:paramtypes",[])],zU.prototype,"hasMenu",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.truncateParagraphs"),_.S("design:type",Object),_.S("design:paramtypes",[])],zU.prototype,"truncateParagraphs",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.paragraphMaxLines"),_.S("design:type",Number),_.S("design:paramtypes",[])],zU.prototype,"paragraphMaxLines",null);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.background"),_.S("design:type",Object),_.S("design:paramtypes",[])],zU.prototype,"background",null);zU=_.B([_.e({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],zU);
_.G(zU,"ytd-info-panel-content-renderer",function(){if(l6k!==void 0)return l6k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return l6k=f},{mode:_.c7("kevlar_poly_si_batch_j076")?1:2});var kFE;var KKC;var qoC;var Azl;var TU=function(){return _.U.apply(this,arguments)||this};
_.y(TU,_.U);TU.prototype.computeStyle=function(f){return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],TU.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],TU.prototype,"style_",void 0);TU=_.B([_.DO({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],TU);
_.G(TU,"yt-channel-thumbnail-with-link-renderer",function(){if(Azl===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;qoC===void 0&&(qoC=document.createElement("template"));var O=qoC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Azl=f}f=Azl;return f},{mode:2});var HP=function(){var f=_.U.apply(this,arguments)||this;f.modernTypography=_.E("web_modern_typography");return f};
_.y(HP,_.U);HP.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"}}}};
HP.prototype.computeTitleStyle=function(f){return f||null};
HP.prototype.computeAvatarStyle=function(f){return f||null};
HP.prototype.computeShowNavigationButton=function(f,R){return!(f==null||!f.navigationButton||R)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],HP.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.S("design:type",String)],HP.prototype,"titleStyle",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.S("design:type",String)],HP.prototype,"avatarStyle",void 0);_.B([_.I(),_.S("design:type",Boolean)],HP.prototype,"hideNavigationButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],HP.prototype,"isModernSd",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HP.prototype,"modernTypography",void 0);
HP=_.B([_.e({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],HP);
_.G(HP,"ytd-rich-list-header-renderer",function(){if(KKC!==void 0)return KKC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KKC=f},{mode:_.c7("kevlar_poly_si_batch_j058")?1:2});var IW=function(){return _.U.apply(this,arguments)||this};
_.y(IW,_.U);IW.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]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IW.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],IW.prototype,"isSearch",void 0);IW=_.B([_.e({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],IW);
_.G(IW,"ytd-preview-card-renderer",function(){if(kFE!==void 0)return kFE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return kFE=f},{mode:1});var a6E;var MC=function(){return _.U.apply(this,arguments)||this};
_.y(MC,_.U);MC.prototype.configureRendererStamper=function(){return{"data.menu":KY}};
MC.prototype.dataChanged=function(){var f=this.get("colorExtractionPalette.section1Color",this.data);f=_.I1(f);_.ZO(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":f})};
MC.prototype.computeCardStyle=function(f){return this.get("style.value",f)||null};
MC.prototype.dataChanged=MC.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],MC.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],MC.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.S("design:type",String)],MC.prototype,"cardStyle",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MC.prototype,"dataChanged",null);MC=_.B([_.e({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],MC);
_.G(MC,"ytd-compact-channel-recommendation-card-renderer",function(){if(a6E!==void 0)return a6E;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return a6E=f},{mode:1});var FKk;var wSY;var PP=function(){var f=_.U.apply(this,arguments)||this;f.alignAuto=!1;f.collapsed=!0;f.isToggled=!1;f.alwaysCollapsed=!1;f.canToggle=!0;f.collapsedHeight=80;f.disableToggle=!1;f.alwaysToggleable=!1;f.reversed=!1;f.shouldUseNumberOfLines=!1;f.recomputeOnResize=!1;f.canToggleJobId=0;f.lastReversed=!1;return f};
_.y(PP,_.U);_.X=PP.prototype;_.X.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.X.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.X.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var f=_.b(this.hostElement),R=f.childNodes,u=document.createDocumentFragment(),O=f.childNodes.length-1;O>=0;O--)_.b(u).appendChild(R[O]);_.E("enable_shadydom_free_scoped_node_methods")?_.OU(this.hostElement).appendChild(u):f.appendChild(u)}};
_.X.ready=function(){var f=this;_.P2(function(){f.initChildrenObserver()},1)};
_.X.detached=function(){this.detachObserver()};
_.X.toggle=function(f,R){this.canToggle&&(this.isToggled=R,_.ul(this.hostElement,"yt-refit"),f&&f.stopPropagation())};
_.X.reset=function(){this.childrenChanged()};
_.X.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.X.computeIsMoreVisible=function(f,R){return f&&!R};
_.X.computeShouldUseNumberOfLines=function(f){try{return!!f&&window.CSS.supports("-webkit-line-clamp","1")}catch(R){}return!1};
_.X.computeIsLessVisible=function(f,R){return f&&R};
_.X.observeCollapsedHeightAndMaxLines=function(){var f=this.collapsedHeight,R=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.ZO(this.hostElement,{"--ytd-expander-max-lines":""+R,"--ytd-expander-collapsed-height":""}):_.ZO(this.hostElement,{"--ytd-expander-collapsed-height":f+"px","--ytd-expander-max-lines":""})};
_.X.handleMoreTap=function(f){this.disableToggle||(_.ul(this.hostElement,"yt-expander-more-tapped"),this.toggle(f,!0))};
_.X.handleLessTap=function(f){_.ul(this.hostElement,"yt-expander-less-tapped");this.toggle(f,!1)};
_.X.initChildrenObserver=function(){var f=this;this.observer=new MutationObserver(function(){f.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.X.childrenChanged=function(){var f=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){ue(function(){f.canToggleJobId=0;f.calculateCanCollapse()})}))};
_.X.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};
_.X.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.X.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("collapsed-changed",this.collapsed))};
_.X.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("is-toggled-changed",this.isToggled))};
_.X.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("can-toggle-changed",this.canToggle))};
_.Vy.Object.defineProperties(PP.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
PP.prototype.canToggleChangedForBinding=PP.prototype.canToggleChangedForBinding;PP.prototype.isToggledChangedForBinding=PP.prototype.isToggledChangedForBinding;PP.prototype.collapsedChangedForBinding=PP.prototype.collapsedChangedForBinding;PP.prototype.observeCollapsedHeightAndMaxLines=PP.prototype.observeCollapsedHeightAndMaxLines;PP.prototype.onIronResize=PP.prototype.onIronResize;PP.prototype.reversedChanged=PP.prototype.reversedChanged;PP.prototype.toggledChanged=PP.prototype.toggledChanged;
PP.prototype.alwaysToggleableChanged=PP.prototype.alwaysToggleableChanged;_.B([_.z(_.Lu),_.S("design:type",Object)],PP.prototype,"ironResizableBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PP.prototype,"alignAuto",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PP.prototype,"collapsed",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"isToggled",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"alwaysCollapsed",void 0);
_.B([_.I(),_.S("design:type",Object)],PP.prototype,"canToggle",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"collapsedHeight",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"disableToggle",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"alwaysToggleable",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"reversed",void 0);_.B([_.I(),_.S("design:type",Number)],PP.prototype,"maxNumberOfLines",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.S("design:type",Object)],PP.prototype,"shouldUseNumberOfLines",void 0);_.B([_.I(),_.S("design:type",Object)],PP.prototype,"recomputeOnResize",void 0);_.B([_.a4("#content"),_.S("design:type",HTMLDivElement)],PP.prototype,"content",void 0);_.B([_.QR("alwaysToggleable"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"alwaysToggleableChanged",null);
_.B([_.QR("isToggled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"toggledChanged",null);_.B([_.T("canToggleJobId"),_.S("design:type",Object),_.S("design:paramtypes",[])],PP.prototype,"isResetting",null);_.B([_.qM("reversed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"reversedChanged",null);
_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"onIronResize",null);_.B([_.qM("maxNumberOfLines","collapsedHeight"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"observeCollapsedHeightAndMaxLines",null);_.B([_.qM("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"collapsedChangedForBinding",null);
_.B([_.qM("isToggled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"isToggledChangedForBinding",null);_.B([_.qM("canToggle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"canToggleChangedForBinding",null);PP=_.B([_.e({disableElementRegistration:!0,is:"ytd-expander"})],PP);
_.G(PP,"ytd-expander",function(){if(wSY!==void 0)return wSY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wSY=f},{mode:1});var Ui=function(){return _.U.apply(this,arguments)||this};
_.y(Ui,_.U);Ui.prototype.computeIsCarousel=function(f){return!!f.isCarousel};
Ui.prototype.observeLightsourcePalette=function(){var f,R=(f=this.data)==null?void 0:f.vibrantsourceColorPaletteData;R&&_.be(this.hostElement,R)};
Ui.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ui.prototype.observeLightsourcePalette=Ui.prototype.observeLightsourcePalette;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ui.prototype,"data",void 0);_.B([_.I({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Ui.prototype,"isCarousel",void 0);
_.B([_.qM("data.vibrantsourceColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ui.prototype,"observeLightsourcePalette",null);Ui=_.B([_.e({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Ui);
_.G(Ui,"ytd-media-upsell-renderer",function(){if(FKk!==void 0)return FKk;var f=document.createElement("template");_.N(f,'\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="arrow_drop_down" 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="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FKk=f},{mode:2});var m3E;var eb=function(){var f=_.U.apply(this,arguments)||this;f.JSC$12839_playerEvents=new Map;f.listeningToPlayer=!1;f.startX=0;f.active=!1;f.shouldShowButtons=_.E("web_buttons_hidden_killswitch");f.isHighlighted=!1;f.useHighlightStyling=_.E("web_enable_deeper_metadata_highlight_styling");f.modern=_.E("kevlar_modern_sd");f.enableProblemWalkthrough=_.E("problem_walkthrough_sd");return f};
_.y(eb,_.U);_.X=eb.prototype;
_.X.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}}}}}};
_.X.created=function(){this.JSC$12839_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.X.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ks(this,this.onRepeatButtonToggle));_.E("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ks(this,this.onActiveUpdate))};
_.X.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ks(this,this.onRepeatButtonToggle));_.E("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ks(this,this.onActiveUpdate))};
_.X.onDataChanged=function(){this.removePlayerListeners()};
_.X.onColorPaletteChange=function(){var f={},R;if(_.NL()==="USER_INTERFACE_THEME_DARK"&&((R=this.data)==null?0:R.darkColorPalette)){var u=this.data.darkColorPalette;f["--ytd-macro-markers-list-item-background-color"]=_.ML(this.get("section2Color",u))}else{var O;_.NL()==="USER_INTERFACE_THEME_LIGHT"&&((O=this.data)==null?0:O.lightColorPalette)&&(u=this.data.lightColorPalette,f["--ytd-macro-markers-list-item-background-color"]=_.ML(this.get("section3Color",u)))}u?(f["--ytd-macro-markers-list-item-title-color"]=
_.ML(this.get("primaryTitleColor",u)),f["--ytd-macro-markers-list-item-secondary-color"]=_.ML(this.get("secondaryTitleColor",u)),f["--ytd-macro-markers-list-item-timestamp-background-color"]=_.ML(this.get("section1Color",u)),this.customButtonProperties={customColors:{color:_.ML(this.get("primaryTitleColor",u))}},this.useColorSampling=!0):(f["--ytd-macro-markers-list-item-background-color"]="initial",f["--ytd-macro-markers-list-item-title-color"]="initial",f["--ytd-macro-markers-list-item-secondary-color"]=
"initial",f["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.ZO(this.hostElement,f)};
_.X.onEndpointMouseDown=function(f){this.startX=f.clientX};
_.X.onEndpointClick=function(f){var R=this,u,O,c;return _.k(function(h){if(h.nextAddress==1){if(R.startX!==f.clientX)return f.preventDefault(),h.return();R.data&&R.ytRendererBehavior.logExplicitClick(R.data);if(!R.seekWithAnimationOnClick)return h.jumpTo(0);if(f.button!==0||f.shiftKey||f.altKey||f.metaKey||f.ctrlKey||_.$G(_.$S(f),R.hostElement,["BUTTON".toString()]))return h.return();f.stopPropagation();f.preventDefault();return R.data?_.A(h,_.YG().getPlayerPromise(),3):h.return()}u=h.yieldResult;
c=(O=_.t(R.data.onTap,_.$7))==null?void 0:O.startTimeSeconds;c!==void 0&&u.seekToTimeWithAnimation(c*1E3,_.$Z(R.data.title));_.KG(h)})};
_.X.computeLayout=function(f){return f};
_.X.computeIsHighlighted=function(f){return!!f};
_.X.computeCarouselType=function(f){return f};
_.X.hideModernCarousel=function(f){return this.modern&&this.hideThumbnail(f)};
_.X.hideThumbnail=function(f){return this.enableProblemWalkthrough&&f!==null&&f==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.X.onRepeatButtonToggle=function(f){var R=this;f.detail.toggled&&_.YG().getPlayerPromise().then(function(u){R.ytPlayerListenerBehavior.listenToPlayerEvents(u,R.JSC$12839_playerEvents);R.listeningToPlayer=!0})};
_.X.onLoopRangeChange=function(f){var R=_.b(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(R){var u=R.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",R.polymerController.data);if(u){var O=Number(u.endTimeMs);if(Number(u.startTimeMs)!==(f==null?void 0:f.startTimeMs)||O!==(f==null?void 0:f.endTimeMs))R.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.X.removePlayerListeners=function(){var f=this;this.listeningToPlayer&&_.YG().getPlayerPromise().then(function(R){f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(R,f.JSC$12839_playerEvents);f.listeningToPlayer=!1})};
_.X.onActiveUpdate=function(f){this.active=f.detail.active};
eb.prototype.onColorPaletteChange=eb.prototype.onColorPaletteChange;eb.prototype.onDataChanged=eb.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],eb.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],eb.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],eb.prototype,"useCustomColors",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eb.prototype,"active",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],eb.prototype,"shouldShowButtons",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.S("design:type",String)],eb.prototype,"layout",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.S("design:type",Object)],eb.prototype,"isHighlighted",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eb.prototype,"useHighlightStyling",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eb.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eb.prototype,"enableProblemWalkthrough",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.S("design:type",String)],eb.prototype,"carouselType",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],eb.prototype,"useColorSampling",void 0);_.B([_.I(),_.S("design:type",Boolean)],eb.prototype,"seekWithAnimationOnClick",void 0);_.B([_.I(),_.S("design:type",Object)],eb.prototype,"customButtonProperties",void 0);
_.B([_.a4("#repeat-button"),_.S("design:type",HTMLElement)],eb.prototype,"repeatButton",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eb.prototype,"onDataChanged",null);_.B([_.qM("data.lightColorPalette","data.darkColorPalette"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eb.prototype,"onColorPaletteChange",null);
eb=_.B([_.e({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],eb);
_.G(eb,"ytd-macro-markers-list-item-renderer",function(){if(m3E!==void 0)return m3E;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return m3E=f},{mode:1});var QcI;var WKE;var GU=function(){var f=_.U.apply(this,arguments)||this;f.modernTypography=_.E("web_modern_typography");return f};
_.y(GU,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],GU.prototype,"modernTypography",void 0);_.B([_.I(),_.S("design:type",Object)],GU.prototype,"data",void 0);GU=_.B([_.e({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],GU);
_.G(GU,"ytd-title-and-button-list-header-renderer",function(){if(WKE!==void 0)return WKE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WKE=f},{mode:1});var ELi;var tSC=new _.Vi("BUTTON_RENDERER_WIZ_TOKEN"),CMf=new _.Vi("BUTTON_RENDERER_TOKEN");_.BP=_.nf(function(f){var R=_.vh().resolve(_.Y8(tSC));if(R)return _.a(R,Object.assign({},f));var u=_.vh().resolve(CMf);return u?_.a(F8t,null,function(){return _.a(VL,null,function(){var O,c,h,l,K,q,F,w,m,W,C,d;return void u(f.data(),{onButtonClickCallback:f.onButtonClickCallback,shouldShowIcons:(O=f.shouldShowIcons)==null?void 0:O.call(f),icon:(c=f.icon)==null?void 0:c.call(f),processAllEndpoints:(h=f.processAllEndpoints)==null?void 0:h.call(f),preventDefault:(l=f.preventDefault)==null?void 0:l.call(f),
stopPropagation:(K=f.stopPropagation)==null?void 0:K.call(f),disableButtonRendererClickHandling:(q=f.disableButtonRendererClickHandling)==null?void 0:q.call(f),className:(F=f.className)==null?void 0:F.call(f),buttonOverrides:(w=f.buttonOverrides)==null?void 0:w.call(f),forceModernIconButton:(m=f.forceModernIconButton)==null?void 0:m.call(f),isSubscribe:(W=f.isSubscribe)==null?void 0:W.call(f),alignByText:(C=f.alignByText)==null?void 0:C.call(f),forceDisabled:(d=f.forceDisabled)==null?void 0:d.call(f)})})}):
_.a(_.RS,null)},"ba");
_.BP.idomCompat=!0;var yzI=_.nf(function(f){var R=f.data,u=_.g_(f.useSquareAspectRatio,!1);return _.a("dismissed-mini-game-card-view-model",null,_.a(_.Q,{cond:function(){var O,c;return(O=R().responseText)==null?void 0:(c=O.runs)==null?void 0:c.length},
then:function(){var O={};return _.a("div",{class:_.KL("yt-mini-game-card-view-model__dismissed-card",(O["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!u()},O["yt-mini-game-card-view-model--dismissed-square-card"]=u,O))},_.a("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.a(_.Q,{cond:function(){return R().responseText.runs[0].text},
then:function(c){return _.a("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:c},c)}}),_.a(_.y5,{data:function(){return R().buttons}},{buttonRenderer:_.BP,
buttonViewModel:_.TS})))}}))},"ca");var jcf=_.nf(function(f){f=_.sU(f,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var R=f.data,u=f.useFullWidth,O=f.isDesktopWeb,c=f.addSearchResultTopMargin,h=function(){return R().layout},l=function(){return R().title},K=function(){return R().metadataText?R().metadataText:R().genre},q=function(){return R().channelName},F=function(){return R().image},w=function(){return R().colorPalette},m=function(){return R().actionButton},W=function(){return R().overflowButton},
C=function(){return R().avatar},d=function(){var P={};
P=_.KL("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(P["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return O()},P));
return _.a("div",{class:P},_.a(d3A,{imageData:F,colorPalette:w}),_.a(NKf,{onTap:function(){return R().onTap},
imageData:F,accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
isDesktopWeb:O}),_.a(_.Q,{cond:function(){return!O()},
then:function(){return _.a(_.RS,null,_.a(LKY,{layout:h,colorPalette:w,isDesktopWeb:O,overflowButton:W,avatar:C,onTap:function(){return R().onTap},
genre:K,title:l,channelName:q,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}),_.a(oW,{actionButton:m}))}}))},p=function(){var P={};
P=_.KL((P["yt-mini-game-card-view-model--search-result-desktop"]=function(){return O()},P["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!O()},P["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return c()},P));
return _.a("div",{class:P},d(),_.a(bwk,{description:function(){return R().description},
isDesktopWeb:O,title:l,genre:K,onTap:function(){return R().onTap},
actionButton:m,overflowButton:W,avatar:C,channelName:q}))},J=function(){var P=function(){var x;
return(x=R().entityRedesignExperiments)==null?void 0:x.changePlayablesLayoutWithCta},g={};
g=_.KL("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(g["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return P()},g["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return O()},g["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return O()&&R().width===135},g["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return O()},g["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!P()&&O()&&R().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},g["yt-mini-game-card-view-model--big-metadata-font"]=function(){return R().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},g["yt-mini-game-card-view-model--use-full-width"]=function(){return u()},g["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!m()},g));
return _.a("div",{class:g},_.a(_.Q,{cond:function(){return P()},
then:function(){return _.a(_.RS,null,_.a(pSl,{entityRedesignExperiments:function(){return R().entityRedesignExperiments},
colorPalette:w,isDesktopWeb:O,onTap:function(){return R().onTap},
accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
actionButton:m,imageData:F}),_.a(LKY,{layout:h,colorPalette:w,isDesktopWeb:O,overflowButton:W,avatar:C,onTap:function(){return R().onTap},
genre:K,title:l,channelName:q,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}),_.a(_.Q,{cond:function(){return!!P()===!1&&m()},
then:function(){return _.a(oW,{actionButton:m})}}))},
else:function(){return _.a(_.RS,null,_.a(d3A,{imageData:F,colorPalette:w}),_.a(NKf,{onTap:function(){return R().onTap},
imageData:F,accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
isDesktopWeb:O}),_.a(LKY,{layout:h,colorPalette:w,isDesktopWeb:O,overflowButton:W,avatar:C,onTap:function(){return R().onTap},
genre:K,title:l,channelName:q,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}),_.a(oW,{actionButton:m}))}}))},M=function(){var P={};
P=_.KL("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(P["yt-mini-game-card-view-model--square-card-desktop"]=function(){return O()},P["yt-mini-game-card-view-model--use-full-width"]=function(){return u()},P));
return _.a("div",{class:P},_.a(NKf,{onTap:function(){return R().onTap},
imageData:F,accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
isDesktopWeb:O}),_.a(LKY,{layout:h,colorPalette:w,isDesktopWeb:O,overflowButton:W,avatar:C,onTap:function(){return R().onTap},
genre:K,title:l,channelName:q,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}))};
return _.a("mini-game-card-view-model",{class:f.className},_.a(_.yM,null,_.a(_.t1,{when:function(){return h()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return J()}),_.a(_.t1,{when:function(){return h()==="MINI_APP_LAYOUT_SQUARE"}},function(){return M()}),_.a(_.t1,{when:function(){return h()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return p()})))},"da");
jcf.idomCompat=!0;var oW=_.nf(function(f){var R=_.g_(f.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.a(_.y5,{data:f.actionButton},{buttonViewModel:function(u){return _.a("div",{class:R},_.a(_.TS,{data:u.data}))}})},"ea"),NKf=_.nf(function(f){var R=f.onTap;
var u=f.imageData;var O=f.accessibilityText;var c=f.overlayBadgeText;var h=f.iconName;var l=f.unplayableInlinePlaybackIconName;f=f.isDesktopWeb;return _.a(_.cd,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:R},_.a(_.gR,{data:u,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(O==null?void 0:O())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.a(D3k,{overlayBadgeText:c,iconName:h,unplayableInlinePlaybackIconName:l,isDesktopWeb:f}))},"fa"),D3k=_.nf(function(f){var R=f.overlayBadgeText;
var u=f.iconName;var O=f.unplayableInlinePlaybackIconName;var c=f.isDesktopWeb;return _.a("div",{class:"yt-mini-game-card-view-model__badge-container"},_.a(_.Q,{cond:u,then:function(h){return _.a("div",{class:"yt-mini-game-card-view-model__badge"},_.a("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.a(_.WM,{icon:h,className:"yt-mini-game-card-view-model__icon"}),_.a("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},R)))}}),_.a(_.Q,{cond:function(){return!u()&&
R()},
then:function(){return _.a("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},R)}}),_.a(_.Q,{cond:function(){return O()&&c()},
then:function(){return _.a("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.a(_.WM,{icon:O,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),d3A=_.nf(function(f){var R=f.colorPalette;
var u=f.imageData;var O=function(){return R().vibrantColorPalette?R().vibrantColorPalette.section2Color:R().sectionTwoColor};
return _.a(_.RS,null,_.a("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Qm({"background-color":function(){return PL(O(),"1")}})}),_.a("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Qm({"background-image":function(){return"url("+u().sources[0].url+")"}})}),_.a("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Qm({background:function(){return"linear-gradient(180deg,\n    "+PL(O(),".8")+" 0%,\n    "+PL(O(),".4")+" 25%,\n    "+PL(R().vibrantColorPalette?R().vibrantColorPalette.section4Color:R().sectionFourColor,".8")+" 100%)"}})}))},"ha"),LKY=_.nf(function(f){var R=f.layout;
var u=f.colorPalette;var O=f.overflowButton;var c=f.avatar;var h=f.onTap;var l=f.title;var K=f.channelName;var q=f.entityRedesignExperiments;var F=f.genre;var w=function(){var W;return R()!=="MINI_APP_LAYOUT_SQUARE"&&((W=u())==null?0:W.textPrimaryColor)?"color: "+PL(u().textPrimaryColor,".7"):""},m=function(){var W;
return q==null?void 0:(W=q())==null?void 0:W.changePlayablesLayoutWithCta};
return _.a("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.a(_.Q,{cond:c,then:function(){return _.a("div",{class:"yt-mini-game-card-view-model__avatar"},_.a(_.y5,{data:c},{avatarViewModel:_.NC}))}}),_.a(_.cd,{command:h,
className:"yt-mini-game-card-view-model__metadata-details"},_.a("h3",{class:"yt-mini-game-card-view-model__title",title:l},l),_.a(_.Q,{cond:c,then:function(){return _.a("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.a("span",{class:"yt-mini-game-card-view-model__genre",title:K,style:w},K),_.a("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:w},F))},
else:function(){return _.a(_.Q,{cond:m,then:function(){return _.a("span",{class:"yt-mini-game-card-view-model__genre",title:F},F)},
else:function(){return _.a("span",{class:"yt-mini-game-card-view-model__genre",title:F,style:w},F)}})}})),_.a("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.a(_.y5,{data:O},{buttonViewModel:function(W){var C=W.data;
return _.a(_.TS,{data:function(){return Object.assign({},C(),{customFontColor:m()?void 0:C().customFontColor})}})}})))},"ia"),pSl=_.nf(function(f){var R=f.entityRedesignExperiments;
var u=f.colorPalette;var O=f.isDesktopWeb;var c=f.onTap;var h=f.accessibilityText;var l=f.overlayBadgeText;var K=f.iconName;var q=f.unplayableInlinePlaybackIconName;var F=f.actionButton;f=f.imageData;var w=function(){var m;return R==null?void 0:(m=R())==null?void 0:m.changePlayablesLayoutWithCta};
return _.a("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.a(d3A,{imageData:f,colorPalette:u}),_.a(NKf,{onTap:c,imageData:f,accessibilityText:h,overlayBadgeText:l,iconName:K,unplayableInlinePlaybackIconName:q,isDesktopWeb:O}),_.a(_.Q,{cond:function(){return(w==null?void 0:w())&&(F==null?void 0:F())},
then:function(){return _.a(oW,{actionButton:F})}}))},"ja"),bwk=_.nf(function(f){var R=f.description;
var u=f.isDesktopWeb;var O=f.title;var c=f.genre;var h=f.onTap;var l=f.actionButton;var K=f.overflowButton;var q=f.avatar;f=f.channelName;var F={};F=_.KL("yt-mini-game-card-view-model--search-result-metadata-wrapper",(F["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=u,F["yt-mini-game-card-view-model--show-unplayable-on-hover"]=u,F["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!u()},F));
var w={};w=_.KL("yt-mini-game-card-view-model__search-result-info-row",(w["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!u()},w));
return _.a("div",{class:F},_.a("div",{class:w},_.a(_.cd,{command:h,className:"yt-mini-game-card-view-model__metadata-details"},_.a("h3",{class:"yt-mini-game-card-view-model__title",title:O},O),_.a("span",{class:"yt-mini-game-card-view-model__genre",title:c},c)),_.a(oW,{actionButton:l,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.a("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.a(_.y5,{data:K},{buttonViewModel:_.TS}))),_.a("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.a("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.a("div",{class:"yt-mini-game-card-view-model__avatar"},_.a(_.y5,{data:q},{avatarViewModel:function(m){var W=m.data;return _.a(_.NC,{data:function(){return Object.assign({},W(),{avatarImageSize:u()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.a(_.cd,{command:h,
className:"yt-mini-game-card-view-model__description"},_.a("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},f)),_.a(_.cd,{command:h,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.a("div",null)))),_.a(_.Q,{cond:u,then:function(){return _.a(_.cd,{command:h,className:"yt-mini-game-card-view-model__description"},R)}}))},"ka");_.ii(jcf,"mini-game-card-view-model",{props:{data:_.SG,className:_.SG,useFullWidth:_.SG,isDesktopWeb:_.SG,addSearchResultTopMargin:_.SG}});_.ii(yzI,"dismissed-mini-game-card-view-model",{props:{data:_.SG,useSquareAspectRatio:_.SG}});var xy=function(){var f=_.U.apply(this,arguments)||this;f.isSearch=!1;f.isRichGrid=!1;return f};
_.y(xy,_.U);_.X=xy.prototype;_.X.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.X.dismissibleItemOnYtServiceRequestSent=function(f,R){R.actions&&this.dismissibleItemProcessActions(f,R.actions)};
_.X.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.X.dataChanged=function(){this.dismissibleItemReset()};
_.X.dismissibleItemProcessActions=function(f,R){for(var u=0;u<R.length;u++){var O=R[u];_.t(O,_.WY)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.t(O,_.WY)),f.stopPropagation())}};
_.X.dismissibleItemHandleReplaceEnclosingAction=function(f){this.dismissedRenderer=f.item;this.isDismissed=!0};
_.Vy.Object.defineProperties(xy.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var f;return!!this.data&&!((f=this.dismissedRenderer)==null?0:f.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.dismissedRenderer)==null||!f.notificationMultiActionRenderer)}}});
xy.prototype.dataChanged=xy.prototype.dataChanged;xy.prototype.dismissibleItemOnRequestSent=xy.prototype.dismissibleItemOnRequestSent;xy.prototype.dismissibleItemOnYtServiceRequestSent=xy.prototype.dismissibleItemOnYtServiceRequestSent;_.B([_.I(),_.S("design:type",Object)],xy.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],xy.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],xy.prototype,"isDismissed",void 0);
_.B([_.I(),_.S("design:type",Object)],xy.prototype,"dismissedRenderer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],xy.prototype,"isRichGrid",void 0);_.B([_.T("data.layout"),_.S("design:type",Object),_.S("design:paramtypes",[])],xy.prototype,"useSquareAspectRatio",null);_.B([_.T("data","dismissedRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],xy.prototype,"showCard",null);
_.B([_.T("data","dismissedRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],xy.prototype,"showDismissed",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],xy.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.B([_.Kf("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],xy.prototype,"dismissibleItemOnRequestSent",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xy.prototype,"dataChanged",null);xy=_.B([_.DO({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],xy);
_.G(xy,"ytd-mini-game-card-view-model",function(){if(ELi!==void 0)return ELi;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ELi=f},{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var Jzk;var zsk;var Sb=function(){return _.YV.apply(this,arguments)||this};
_.y(Sb,_.YV);Sb.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Sb.prototype.getContinuationUrl=function(f){var R={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(R.itct=this.data.clickTrackingParams);return _.S0(f,R)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Sb.prototype,"data",void 0);Sb=_.B([_.DO({is:"yt-reload-continuation",noInjection:!0})],Sb);var TKE;var HwI;var $y=function(){var f=_.U.apply(this,arguments)||this;f.notificationData={};return f};
_.y($y,_.U);_.X=$y.prototype;_.X.isMenuExpanded=function(f){return f&&f.length<=1?"undefined":"false"};
_.X.dataChanged_=function(){this.selected=void 0;var f=this.computeSelectedIndex_(this.data);f>=0&&(this.selected=f);f=this.data&&this.data.length>1;_.c2(this.hostElement,"has-items",f);_.b(this.hostElement).querySelector("#label").tabIndex=f?0:-1};
_.X.onDropdownOpen=function(){var f=_.z4();if(this.parentTrackingParams&&this.data){var R=_.t4(this.parentTrackingParams);this.data.forEach(function(u){f&&R&&u.trackingParams&&(u=_.t4(u.trackingParams),_.ea(f,R,u),_.op(f,[u]))})}else this.parentTrackingParams||_.Ih(new _.ts("No parent tracking params passed in for yt-dropdown-menu."))};
_.X.hasNotification=function(f){var R;if(f.targetId&&((R=this.notificationData)==null?0:R.targetId)){var u;return f.targetId===((u=this.notificationData)==null?void 0:u.targetId)}};
_.X.computeSelectedIndex_=function(f){if(f)for(var R=0,u=f.length;R<u;R++)if(f[R].selected)return R;return-1};
_.X.computeLabel_=function(f){return this.data&&f!=void 0?this.data[f].title:""};
_.X.computeShowIcon_=function(f,R){return!R&&!!f};
_.X.computeVerticalOffset_=function(f){return f?36:0};
_.X.computeEndpoint_=function(f){return f.endpoint||f.navigationEndpoint};
_.X.onLabelClick_=function(f){this.data&&this.data.length<=1?f.stopPropagation():this.menuExpanded="true"};
_.X.onIronActivate_=function(f){f=f.detail.item;var R=_.b(this.hostElement).querySelector("#repeat").itemForElement(f);if(R&&R.trackingParams){var u=_.z4(),O=_.t4(R.trackingParams);u&&_.Sa(u,O)}if(R&&R.serviceEndpoint)_.E("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(R.serviceEndpoint):_.hH(this.hostElement,[R.serviceEndpoint]),_.ul(this.hostElement,"yt-playlist-reloading");else a:{if((R=f.querySelector("yt-supported-renderers"))&&(R=
R.rendererElement)&&R.is=="yt-reload-continuation"){R.trigger();break a}(f=f.querySelector("yt-reload-continuation"))&&f.trigger()}};
_.X.onTap_=function(f){f.preventDefault()};
_.X.onItemTap_=function(f){this.ytEndpointBehavior.onEndpointTap_(f)};
_.X.onLinkFocus_=function(f){try{var R=f.target}catch(O){}if(R){var u=R.querySelector("tp-yt-paper-item");u&&_.UU(this,"focus",function(){u.focus()})}};
_.X.onMenuClose_=function(){this.menuExpanded="false"};
_.X.isLabelIconActive_=function(f){return f==="true"};
_.X.computeHasSubtitle_=function(f){return!!f};
_.X.computeHrefForItem_=function(f){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(f))};
_.X.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
_.Vy.Object.defineProperties($y.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
$y.prototype.onMenuClose_=$y.prototype.onMenuClose_;$y.prototype.onTap_=$y.prototype.onTap_;$y.prototype.onIronActivate_=$y.prototype.onIronActivate_;$y.prototype.onDropdownOpen=$y.prototype.onDropdownOpen;$y.prototype.dataChanged_=$y.prototype.dataChanged_;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],$y.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],$y.prototype,"ytEndpointBehavior",void 0);
_.B([_.I(),_.S("design:type",Array)],$y.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],$y.prototype,"parentTrackingParams",void 0);_.B([_.I(),_.S("design:type",Object)],$y.prototype,"selected",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],$y.prototype,"useLabel",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],$y.prototype,"useComputedAriaLabel",void 0);_.B([_.I(),_.S("design:type",String)],$y.prototype,"icon",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],$y.prototype,"iconLabel",void 0);_.B([_.I(),_.S("design:type",String)],$y.prototype,"ariaLabel",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],$y.prototype,"disabled",void 0);_.B([_.I({computed:"isMenuExpanded(data)"}),_.S("design:type",String)],$y.prototype,"menuExpanded",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],$y.prototype,"closeOnActivate",void 0);
_.B([_.I({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.S("design:type",Boolean)],$y.prototype,"modernButtons",void 0);_.B([_.I(),_.S("design:type",Object)],$y.prototype,"notificationData",void 0);_.B([_.T("ariaLabel, selected"),_.I(),_.S("design:type",String),_.S("design:paramtypes",[])],$y.prototype,"computedAriaLabel",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$y.prototype,"dataChanged_",null);
_.B([_.Kf("paper-dropdown-open"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$y.prototype,"onDropdownOpen",null);_.B([_.Kf("iron-activate"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$y.prototype,"onIronActivate_",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],$y.prototype,"onTap_",null);
_.B([_.Kf("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$y.prototype,"onMenuClose_",null);$y=_.B([_.DO({is:"yt-dropdown-menu",disableElementRegistration:!0})],$y);
_.G($y,"yt-dropdown-menu",function(){if(HwI===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;TKE===void 0&&(TKE=document.createElement("template"));var O=TKE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);HwI=f}f=HwI;return f},{mode:2});var gG=function(){var f=_.U.apply(this,arguments)||this;f.hasNotification=!1;return f};
_.y(gG,_.U);gG.prototype.computeId=function(f){return f};
gG.prototype.computeHorizontalAlign=function(f){return f?"right":"left"};
gG.prototype.computeAccessibilityLabel=function(f){var R,u;return((R=f.accessibility)==null?void 0:(u=R.accessibilityData)==null?void 0:u.label)||null};
gG.prototype.notificationDataChanged=function(){var f;this.hasNotification=!!this.notificationData&&!((f=this.data)==null?0:f.icon)};
gG.prototype.notificationDataChanged=gG.prototype.notificationDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.Ir.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],gG.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gG.prototype,"data",void 0);_.B([_.I({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",String)],gG.prototype,"id",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],gG.prototype,"isRightAligned",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],gG.prototype,"disabled",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],gG.prototype,"closeOnActivate",void 0);_.B([_.I(),_.S("design:type",Object)],gG.prototype,"notificationData",void 0);_.B([_.I(),_.S("design:type",Object)],gG.prototype,"hasNotification",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],gG.prototype,"useComputedAriaLabel",void 0);_.B([_.qM("notificationData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gG.prototype,"notificationDataChanged",null);gG=_.B([_.DO({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],gG);
_.G(gG,"yt-sort-filter-sub-menu-renderer",function(){if(zsk===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Jzk===void 0&&(Jzk=document.createElement("template"));var O=Jzk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);zsk=f}f=zsk;return f},{mode:2});_.RI(U9P);
var I6G=_.nf(function(f){var R=f.children;var u=f.className;var O=f.style;var c=f.role;var h=f.ariaSelected;var l=f.ariaLabel;var K=f.ariaHidden;var q=f.ariaLabelledby;var F=f.ariaDescribedby;var w=f.command;var m=f.elementsCommand;var W=f.forceNewState;var C=f.tabIdentifier;var d=f.target;var p=f.tabIndex;var J=f.stopPropagation;f=_.Qt(function(){var M=_.MO({innertubeCommand:w==null?void 0:w(),elementsCommand:m==null?void 0:m(),forceNewState:W==null?void 0:W(),stopPropagation:(J==null?void 0:J())!==
!1});M||(M={});M["aria-hidden$"]=K==null?void 0:K();var P;M.tabindex$=(P=p==null?void 0:p())!=null?P:M.tabindex$;var g;M["force-new-state$"]=(g=W==null?void 0:W())!=null?g:M["force-new-state$"];var x;M.role$=(x=c==null?void 0:c())!=null?x:M.role$;var fh;M["aria-hidden$"]=(fh=K==null?void 0:K())!=null?fh:M["aria-hidden$"];var V;M.target$=(V=d==null?void 0:d())!=null?V:M.target$;return M},void 0,"SU0Mnc");
return _.a(_.cd,{aTagConfig:f,className:u,style:O,ariaLabel:l,ariaLabelledby:q,ariaDescribedby:F,ariaSelected:h,tabIdentifier:C},R)},"la");var MSF=_.aX(eb7);_.RI(eb7);_.ii(MSF,"place-data-view-model",{props:{data:_.SG}});var PMA=new _.Vi("INLINE_PLAYBACK_HOOK_TOKEN");var U3C=function(f){this.setActiveSlideIndex=f;this.jobIds=[];this.isSlideshowPlaying=!1},BKk=function(f,R){f.isSlideshowPlaying||(f.isSlideshowPlaying=!0,esA(f),GFk(f,R,0))},esA=function(f){_.Oz(_.JA,function(){f.setActiveSlideIndex(0)},1)},GFk=function(f,R,u){f.jobIds.push(_.Oz(_.JA,function(){var O=u<R-1?u+1:0;
f.setActiveSlideIndex(O);GFk(f,R,O)},1800))};var oLk=new _.Vi("IMAGE_ON_LOAD_HANDLER_TOKEN");var x3I=_.nf(function(f){return _.a("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.a(_.Q,{cond:function(){var R;return(R=f.data())==null?void 0:R.thumbnail},
then:function(R){return _.a(_.gR,{data:R,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.Sol=_.nf(function(f){var R=f.data;var u=f.lockupExperiments;f={};return _.a("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.a("div",{class:_.KL("ytThumbnailOverlayButtonViewModelButton",(f.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var O;return u&&((O=u())==null?void 0:O.useLegacySizedIconButton)},f))},_.a(_.y5,{data:function(){return R().overlayButton}},{buttonViewModel:function(O){return _.a(_.TS,{data:O.data,
buttonOverrides:function(){var c;return u&&((c=u())==null?0:c.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.Sol.idomCompat=!0;var $3f=_.nf(function(f){return _.a("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Ff(function(R){R.preventDefault();return!1})},_.a(_.y5,{data:function(){return f.data().buttons}},{toggleButtonViewModel:function(R){return _.a("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.a(_.Lr,{data:R.data}))}}))},"oa");
$3f.idomCompat=!0;var gLG=_.nf(function(f){var R=function(){var u;return((u=_.t(f.data().rendererContext,_.mZ))==null?void 0:u.label)||""};
return _.a("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.a(_.Q,{cond:function(){return f.data().image},
then:function(){return _.a("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.a(_.gR,{data:function(){return f.data().image},
alt:R}))}}),_.a(_.Q,{cond:function(){return f.data().text},
then:function(){return _.a("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return f.data().text})}}))},"pa");_.si=_.nf(function(f){var R=[],u=function(){var W,C;return zWD((W=f.width)==null?void 0:W.call(f),(C=f.height)==null?void 0:C.call(f))},O=_.vh().resolve(_.Y8(oLk)),c=_.sW(function(){R.push("elRef.value set");
var W;(W=f.playbackRef)==null||W.call(f,{thumbnailElRef:c,thumbnail:f.data().image,thumbnailOverlays:f.data().overlays,thumbnailSize:u()})});
_.bt(function(){R.push("onInit");_.jN(function(){R.push("onCleanup")})});
var h=_.JS(BM0),l=function(){var W,C;return(C=(W=f.aspectRatio)==null?void 0:W.call(f))!=null?C:0},K=function(){return(f.data().image?_.kke(f.data().image):l())<=1&&l()===0},q=function(){return K()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},F=function(){c.value||_.Ih(new _.ts("Thumbnail elRef.value is null",R.join("\n")));
O&&c.value&&O(c.value)},w=function(){var W,C;
return((W=f.hovered)==null?void 0:W.call(f))&&u()!=="large"&&((C=f.data().overlays)==null?void 0:C.some(function(d){return _.t(d,gHC)}))},m={};
return _.a("yt-thumbnail-view-model",{class:_.KL("yt-thumbnail-view-model",f.className,function(){return SK7(l())},function(){var W,C;
a:{var d=u(),p=(W=f.disableRounding)==null?void 0:W.call(f);W=(C=f.isClip)==null?void 0:C.call(f);if(!p&&!W)switch(d){case "large":C="yt-thumbnail-view-model--large";break a;case "small":C="yt-thumbnail-view-model--small";break a;default:C="yt-thumbnail-view-model--medium";break a}C=void 0}return C},(m["yt-thumbnail-view-model--cinematic"]=K,m)),
style:_.Qm({"background-color":function(){var W,C=K()?(W=f.data().backgroundColor)==null?void 0:W.lightTheme:void 0;return C?PL(C,"1"):void 0}}),
el:c},_.a(_.Q,{cond:K,then:function(){return _.a("div",{class:"yt-thumbnail-view-model__blurred-image"},_.a(_.gR,{data:function(){return f.data().image},
alt:"",contentMode:q,targetWidth:f.width,onload:F}))}}),_.a("div",{class:"yt-thumbnail-view-model__image"},_.a(_.gR,{data:function(){return f.data().image},
alt:"",contentMode:q,targetWidth:f.width,onload:F}),null),_.a(_.y5,{data:function(){return w()?void 0:f.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:r6E,thumbnailOverlayBadgeViewModel:function(W){return _.a(f6i,{data:W.data,thumbnailSize:u,isClip:f.isClip})},
thumbnailBottomOverlayViewModel:VKH,thumbnailOverlayFullViewModel:gLG,thumbnailOverlayButtonViewModel:function(W){return _.a(_.Sol,{data:W.data,lockupExperiments:f.lockupExperiments})}}),_.a(_.y5,{data:function(){var W;
return((W=f.hovered)==null?0:W.call(f))?f.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(W){return _.a(dG,{data:W.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:$3f}),_.a(_.y5,{data:function(){var W;return((W=f.hovered)==null?0:W.call(f))&&h()?f.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:x3I}),_.a(_.Q,{cond:f.isClip,then:function(){return _.a("div",{class:"yt-pinking"},_.a("svg",{class:"yt-pinking__pinking-left"},_.a("defs",null,_.a("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.a("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.a("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.a("svg",{class:"yt-pinking__pinking-right"},_.a("defs",null,_.a("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.a("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.a("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.si.idomCompat={callbacks:{playbackRef:!0}};var scA=_.nf(function(f){var R=_.Z(_.qK(-1,void 0,"IOLZ0b")),u=R.next().value,O=R.next().value;_.bt(function(){var c=new U3C(O);BKk(c,f.data().thumbnails.length);_.jN(function(){if(c.isSlideshowPlaying){c.isSlideshowPlaying=!1;for(var h=c.jobIds,l=0,K=h.length;l<K;l++)_.JA.cancelJob(h[l]);c.jobIds.length=0}})});
return _.a("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.a(_.y5,{data:function(){return f.data().thumbnails}},{thumbnailViewModel:function(c,h){return _.a("div",{class:function(){var l=!f.data().primaryThumbnail,K=h(),q=u(),F=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
l&&K===0&&F.push("yt-collection-thumbnail-slideshow--first-slide");K<=q&&F.push("yt-collection-thumbnail-slideshow--show-slide");return F.join(" ")}},_.a(_.si,{data:c.data,
disableRounding:f.disableRounding}))}}))},"ra");
scA.idomCompat=!0;var $92=new _.Vi("DWELL_DETECTOR_REGISTRY_TOKEN");var VSi=_.nf(function(f){var R=g22(f.triggeringElement),u=function(){return!!f.data().primaryThumbnail};
return _.a("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.a(nLf,{stackEnabled:u,thumbnailSize:function(){var O,c;return zWD((O=f.width)==null?void 0:O.call(f),(c=f.height)==null?void 0:c.call(f))},
doubleStack:f.doubleStack,stackColor:function(){return f.data().stackColor}},_.a("div",null,_.a(_.y5,{data:function(){return f.data().primaryThumbnail}},{thumbnailViewModel:function(O){var c={};
return _.a(_.si,{data:O.data,width:f.width,height:f.height,aspectRatio:f.aspectRatio,disableRounding:f.disableRounding,className:_.KL((c["yt-collection-thumbnail-view-model--has-stacks"]=u,c)),hovered:f.hovered,playbackRef:f.playbackRef})}}),_.a(_.Q,{cond:function(){var O;
return R()&&((O=f.data().thumbnails)==null?void 0:O.length)},
then:function(){return _.a("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.a(scA,{data:f.data,disableRounding:function(){return!u()}}))}}))))},"sa");
VSi.idomCompat={callbacks:{playbackRef:!0}};
var nLf=_.nf(function(f){var R=f.children;var u=f.stackEnabled;var O=f.thumbnailSize;var c=f.doubleStack;var h=f.stackColor;var l,K=(l=_.vh().resolve(_.Y8(_.oF)))==null?void 0:l();return _.a(_.Q,{cond:u,then:function(){return _.a(N1I,{data:function(){var q,F;return{experimentEnabled:!0,thumbnailSize:O(),doubleStack:c==null?void 0:c(),color:K?h==null?void 0:(q=h())==null?void 0:q.darkTheme:h==null?void 0:(F=h())==null?void 0:F.lightTheme,enableResponsiveMode:!1}}},R)},
else:function(){return R}})},"ta");var Yok=new _.Vi("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var V_;_.nY={calledOnce:!0,state:"visible"};V_={calledOnce:!0,state:"hidden"};_.Yy=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;var O=f.className;var c=f.delayedClassName;f=f.animationEntityKey;var h=_.sW(),l=_.g_(f,""),K=_.Ax(b1q,l),q=function(){var V,ZD;return(ZD=(V=K())==null?void 0:V.value)!=null?ZD:!1},F=function(){_.$s(_.aA("booleanEntity",l(),{key:l(),
value:!0}));M=void 0};
f=_.Z(_.m8(q));var w=f.next().value,m=f.next().value;f=_.Z(_.m8(q));var W=f.next().value,C=f.next().value;f=_.Z(_.m8(function(){var V;return q()?(V=R().styleTransitionConfig)==null?void 0:V.destinationStyle:void 0}));
var d=f.next().value,p=f.next().value,J=function(){var V=Object.assign({},R(),d()&&{style:d()}),ZD,mP,NX=V.label,jt=(ZD=V.interaction)==null?void 0:(mP=ZD.accessibility)==null?void 0:mP.label;ZD=V.iconImage?V.label&&V.label.content?V.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:NX,accessibilityLabel:jt,style:YK2(V.style),type:v27(V.style),state:"active",size:V_5(V.size),iconPosition:ZD,disabled:!1,aTagConfig:n2e(V,u)}},M;
_.fT(h,{visibilityCallback:function(V){var ZD,mP=(ZD=R().interaction)==null?void 0:ZD.onFirstVisible;V&&mP&&_.Ux(mP)},
showOption:_.nY});var P=function(){return Ez(J(),!!R().iconImage)};
O=_.KL(function(){return"ytwAdButtonViewModelHost"},function(){return R().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var V=!!R().delayedAppearanceConfig,ZD=w();
return V?ZD?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var V=!!R().delayedAppearanceConfig,ZD=W();
return V?ZD?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!R().delayedAppearanceConfig||w()?c==null?void 0:c():""},O!=null?O:"");
var g=function(){var V,ZD=(V=R().delayedAppearanceConfig)==null?void 0:V.delayedInvisibleSeconds;ZD&&(M=_.mQ(_.JA,function(){m(!0);x()},ZD*1E3))},x=function(){var V,ZD=(V=R().delayedAppearanceConfig)==null?void 0:V.delayedVisibleSeconds;
ZD&&(M=_.mQ(_.JA,function(){C(!0);fh()},ZD*1E3))},fh=function(){var V,ZD=(V=R().styleTransitionConfig)==null?void 0:V.styleTransitionSeconds,mP,NX=(mP=R().styleTransitionConfig)==null?void 0:mP.destinationStyle;
ZD&&NX?M=_.mQ(_.JA,function(){p(NX);F()},ZD*1E3):F()};
_.bt(function(){var V;((V=R().delayedAppearanceConfig)==null?0:V.transitionDurationSeconds)&&h.value.style.setProperty("transition-duration",R().delayedAppearanceConfig.transitionDurationSeconds+"s");g()});
_.jN(function(){M&&_.JA.cancelJob(M)});
return _.a("ad-button-view-model",{class:O,el:h},_.a(_.Q,{cond:J,then:function(){return _.a(iA,{data:J,icon:function(){return _.a(_.Q,{cond:function(){return R().iconImage},
then:function(V){return _.a(_.gR,{data:V,alt:"",targetWidth:P,targetHeight:P,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var vLl=_.nf(function(f){var R=f.data;f=_.sW();_.fT(f,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});var u={};return _.a("ad-button-group-view-model",{class:_.KL("ytwAdButtonGroupViewModelHost",(u.ytwAdButtonGroupViewModelHostCompactWidth=function(){return R().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},u)),
el:f},_.a("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.a(_.y5,{data:function(){return R().secondaryAdButton}},{adButtonViewModel:function(O){return _.a(_.Yy,{data:O.data})}})),_.a("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.a(_.y5,{data:function(){return R().primaryAdButton}},{adButtonViewModel:function(O){return _.a(_.Yy,{data:O.data})}})))},"va");var iwl=_.nf(function(f){var R=function(){var u;return((u=f.data())==null?void 0:u.answers)||[]};
return _.a("yt-survey-icons",{class:"ytSurveyIconsHost"},_.a("div",{class:"ytSurveyIconsHeader"},_.a("div",{class:"ytSurveyIconsTitle"},function(){var u;return(u=f.data())==null?void 0:u.text}),_.a("div",null,_.a(iA,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var u;(u=f.onDismiss)==null||u.call(f)}}},
iconName:"DISMISSAL"}))),_.a("div",null,_.a("div",{class:"ytSurveyIconsAnswers"},_.a(_.EC,{each:function(){return R()},
keyBy:"INDEX"},function(u,O){return _.a("div",null,_.a(iA,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var c;(c=f.onSelect)==null||c.call(f,u(),O)}}},
icon:function(){return _.a(_.WM,{icon:function(){var c,h;return(c=u())==null?void 0:(h=c.icon)==null?void 0:h.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.a("div",{class:"ytSurveyIconsAnswersText"},_.a("div",null,function(){return R().length?R()[0].text:""}),_.a("div",null,function(){return R().length?R()[R().length-1].text:""}))))},"wa");var rzE=_.nf(function(f){var R=_.Z(_.qK(!1,void 0,"s8HkOb")),u=R.next().value,O=R.next().value,c=_.Ax(Jz7,function(){var K;return(K=f.data().keys)==null?void 0:K.surveyEntityKey}),h=_.Ax(zsD,function(){var K;
return(K=f.data().keys)==null?void 0:K.surveyStateEntityKey});
_.gJ("ytd-slimline-survey-show-action",function(){O(!1)});
var l=function(){var K,q;var F=(K=h())==null?void 0:(q=K.questionStack)==null?void 0:q[0];if(F!==void 0){var w,m;return(w=c())==null?void 0:(m=w.questions)==null?void 0:m[F]}};
R={};return _.a("yt-slimline-survey-view-model",{class:_.KL("ytSlimlineSurveyViewModelHost",(R.ytSlimlineSurveyViewModelCollapsed=function(){return u()},R))},_.a("div",{class:"ytSlimlineSurveyViewModelContainer"},_.a(_.Q,{cond:function(){var K;
return((K=l())==null?void 0:K.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.a(iwl,{data:function(){return l()},
onSelect:function(K,q){var F,w;return _.k(function(m){O(!0);if(w=(F=f.data())==null?void 0:F.onSelectRating)_.Ux(w),_.$s(Q6l(q));_.KG(m)})},
onDismiss:function(){O(!0)}})}})))},"xa");var fif=_.nf(function(f){return _.a("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.a(_.y5,{data:function(){var R;return(R=f.data())==null?void 0:R.attachments}},{flexibleActionsViewModel:function(R){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(eZC,{data:R.data,
layout:function(){var u;return((u=f.lockupStyle())==null?void 0:u.arrangement)===1?0:1},
justifyContentOverride:function(){var u;return((u=f.lockupStyle())==null?void 0:u.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(R){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(rzE,{data:R.data}))},
expandableMetadataViewModel:function(R){R=R.data;var u;return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},(u=_.vh().resolve(_.Y8(Yok)))==null?void 0:u({data:R}))},
adButtonGroupViewModel:function(R){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(vLl,{data:R.data}))}}))},"ya");var Oll=_.RV("rich_grid_min_item_width",310),Rit=_.RV("rich_grid_max_item_width",500);var wUl=_.nf(function(f){var R=f.data;return _.a("br-nz-badge-shape",{class:_.KL(function(){return qGt(R().brNzRatingBadgeType)}),
role:function(){return R().accessibilityText?"img":void 0},
"aria-label":function(){return R().accessibilityText}},function(){var u;
return(u=R())==null?void 0:u.text})},"za");_.RI(mT7);var Rbf,udG;Rbf=_.nf(function(f){var R=function(){var u=f.data(),O,c;return u?Fgq(u,!((O=f.workaroundShortsIsThumbnailBadge)==null||!O.call(f)),(c=f.modern)==null?void 0:c.call(f)):void 0};
return _.a("yt-badge-view-model",{class:_.KL("yt-badge-view-model-wiz",f.class)},_.a(_.yM,null,_.a(_.t1,{when:function(){var u;return!((u=R())==null||!u.brNzRatingBadgeType)}},function(){return _.a(wUl,{data:function(){return R()}})}),_.a(_.t1,{when:function(){return!!R()&&!R().brNzRatingBadgeType}},function(){return _.a(_.nr,{data:function(){return R()}})})))},"Aa");
udG=_.E("web_enable_sink_yt_badge_view_model")?Rbf:mT7;_.vP=_.E("web_enable_sink_yt_badge_view_model")?Rbf:_.aX(mT7);Rbf.idomCompat=!0;var Wg5,QKB;Wg5=16/9;QKB=2/3;_.iS=_.nf(function(f){var R=f.data;var u=f.className;var O=f.imageSizeConfig;var c=f.notifyOnLoaded;f=_.sW();var h=function(){return R().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},l=function(){var C;
return _.oA((C=R())==null?void 0:C.rendererContext)},K={};
K=(K["yt-content-preview-image-view-model-wiz"]=!0,K["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return h()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},K["yt-content-preview-image-view-model-wiz--tappable"]=function(){return l()},K);
var q=function(){var C,d;return(d=(C=_.t(R().rendererContext,_.mZ))==null?void 0:C.label)!=null?d:""},F=function(){return tzh(R())},w=function(){var C=Ekh(h(),R().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",O==null?void 0:O(),CvB(F()),R().layoutWidth,R().layoutHeight),d=Object.assign({},C);
C.width&&(d.width=Math.round(C.width));C.height&&(d.height=Math.round(C.height));C.maxWidth&&(d.maxWidth=Math.round(C.maxWidth));C.maxHeight&&(d.maxHeight=Math.round(C.maxHeight));return d},m=_.Qt(function(){return w().height},void 0,"QOtei"),W=_.Qt(function(){return w().width},void 0,"rKpuNc");
_.xO(f,function(){var C;return(C=R())==null?void 0:C.rendererContext});
return _.a("yt-content-preview-image-view-model",{el:f,role:function(){return l()?"link":void 0},
tabindex:function(){return l()?0:void 0},
class:_.KL(u,K,function(){var C=h();var d=O==null?void 0:O();C=C==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||C==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(d==null?void 0:d.size)!=null&&d.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(d==null?void 0:d.size)!=null&&d.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return C}),
style:function(){var C=w(),d=[];C.width&&d.push("width: "+C.width+"px");C.height&&d.push("height: "+C.height+"px");C.maxWidth&&d.push("max-width: "+C.maxWidth+"px");C.maxHeight&&d.push("max-height: "+C.maxHeight+"px");C.fullWidth&&d.push("width: 100%");return d.join(";")}},_.a(_.Q,{cond:F,
then:function(C){return _.a(_.gR,{data:C,alt:q,"data-disabled$":function(){return!q()},
notifyOnLoaded:c,targetWidth:W,targetHeight:m,preserveWidth:function(){return!!W()},
preserveHeight:function(){return!!m()}})}}),_.a(_.y5,{data:function(){var C;
return(C=R())==null?void 0:C.overlays}},{thumbnailHoverOverlayViewModel:dG,
thumbnailOverlayButtonViewModel:_.Sol}))},"Ba");
_.iS.idomCompat=!0;var cDE=_.nf(function(f){var R=f.data;var u=f.className;var O=f.useSmallLayout;var c=f.useMediumText;f=_.sW();var h={};c=(h["yt-attribution-view-model-wiz"]=!0,h["yt-attribution-view-model-wiz--medium-text"]=c,h);_.xO(f,function(){var l;return(l=R())==null?void 0:l.rendererContext});
return _.a("yt-attribution-view-model",{el:f,class:_.KL(u,c)},_.a(_.Q,{cond:function(){return _.oA(R().rendererContext)},
then:function(){return _.a("button",{class:"yt-attribution-view-model-wiz--tappable"},_.a(O4k,{data:R,useSmallLayout:O}))},
else:function(){return _.a(O4k,{data:R,useSmallLayout:O})}}))},"Ca"),O4k=_.nf(function(f){var R=f.data;
var u=f.useSmallLayout;var O=function(){return{size:(u==null?0:u())?16:24}};
return _.a(_.RS,null,_.a(_.y5,{data:function(){return R().contentPreviewImage}},{contentPreviewImageViewModel:function(c){return _.a(_.iS,{data:c.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:O})}}),_.a(_.y5,{data:function(){return R().badge}},{badgeViewModel:function(c){return _.a(_.vP,{data:c.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.a(_.Q,{cond:function(){return R().text},
then:function(){return _.a(_.YO,{text:function(){return R().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.a(_.Q,{cond:function(){return R().suffix},
then:function(){return _.a(_.YO,{text:function(){return R().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
cDE.idomCompat=!0;var jKD=_.WJ({avatarStackViewModel:_.bS,badgeViewModel:udG});_.RI(zi7);var XxC,hbA,Z4f,liG,k3H,KLG;XxC=_.nf(function(f){var R=f.delimiter;var u=f.max;var O=f.index;var c=f.isStandalone;return _.a(_.Q,{cond:function(){return u()-1>O()},
then:function(){var h={};return _.a("span",{class:_.KL("yt-content-metadata-view-model-wiz__delimiter",(h["yt-content-metadata-view-model-wiz__delimiter--standalone"]=c,h)),"aria-hidden":!0},R)}})},"Ea");
hbA=_.nf(function(f){var R=f.metadataPart;var u=f.maxLines;return _.a(_.YO,{text:function(){return R().text},
linkInheritColor:!0,className:function(){return TaB(u())},
userInput:!0})},"Fa");
Z4f=_.nf(function(f){var R=f.metadataPart;var u=f.maxLines;return _.a(_.Q,{cond:function(){return R().tooltip},
then:function(O){return _.a("span",{title:O,role:"tooltip"},_.a(hbA,{metadataPart:R,maxLines:u}))},
else:function(){return _.a(hbA,{metadataPart:R,maxLines:u})}})},"Ga");
liG=_.nf(function(f){var R=f.metadataPart;var u=f.isOverlay;var O=f.useMediumText;var c=f.hideAvatar;var h=function(){return R().maxLines!==void 0?R().maxLines:1};
return _.a(_.RS,null,_.a(_.y5,{data:function(){return R().avatarStack}},{avatarStackViewModel:function(l){return _.a(_.bS,{data:l.data,
isOverlay:u,useMediumText:O,hideAvatar:c})},
badgeViewModel:_.vP}),_.a(_.Q,{cond:function(){return R().text},
then:function(){return _.a(Z4f,{metadataPart:R,maxLines:h})}}))},"Ha");
k3H=_.nf(function(f){var R=f.metadataRow;var u=f.isInline;var O=f.delimiter;var c=f.isOverlay;var h=f.useMediumText;var l=f.extensions;var K=function(){var F;return dTB(l==null?void 0:(F=l())==null?void 0:F.lockupMetadata,R())},q=function(){return R().metadataParts||[]};
f={};return _.a("div",{class:_.KL("yt-content-metadata-view-model-wiz__metadata-row",(f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=u,f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var F;return Naq(l==null?void 0:(F=l())==null?void 0:F.lockupMetadata,R())},f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var F;
return!!(l==null?0:(F=l())==null?0:F.lockupMetadata)&&R().badges&&!R().metadataParts},f))},_.a(_.y5,{data:function(){return R().badges}},{badgeViewModel:function(F){return _.a("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.a(_.vP,{data:F.data}))}}),_.a(_.EC,{each:q},function(F,w){return _.a(_.RS,null,_.a(liG,{metadataPart:F,
isOverlay:c,useMediumText:h,hideAvatar:K}),_.a(XxC,{delimiter:O,max:function(){return q().length},
index:w,isStandalone:!1}))}),_.a(_.Q,{cond:function(){return R().isSpacerRow&&!u()},
then:function(){return _.a("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
KLG=_.nf(function(f){var R=_.sU(f,{layout:0,isOverlay:!1});f=R.className;var u=R.data,O=R.layout,c=R.isOverlay,h=R.useMediumText,l=R.extensions;R=_.sW();var K=function(){return O()===0};
_.xO(R,function(){return u().rendererContext});
var q=function(){return u().metadataRows||[]},F={};
return _.a("yt-content-metadata-view-model",{class:_.KL(f,"yt-content-metadata-view-model-wiz",(F["yt-content-metadata-view-model-wiz--inline"]=K,F["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.oA(u().rendererContext)},F["yt-content-metadata-view-model-wiz--medium-text"]=h,F)),
el:R},_.a(_.EC,{each:q},function(w,m){return _.a(_.RS,null,_.a(k3H,{metadataRow:w,isInline:K,delimiter:function(){return u().delimiter},
isOverlay:c,useMediumText:h,extensions:l}),_.a(_.Q,{cond:function(){return K()&&!w.isSpacerRow},
then:function(){return _.a(XxC,{delimiter:function(){return u().delimiter},
max:function(){return q().length},
index:m,isStandalone:!0})}}))}))},"Ja");
_.qKE=_.E("web_enable_sink_yt_content_metadata_view_model")?KLG:_.aX(zi7);KLG.idomCompat=!0;var ADk=_.nf(function(f){var R={};return _.a("yt-lockup-metadata-view-model",{class:_.KL("yt-lockup-metadata-view-model-wiz",function(){a:{var u=f.lockupStyle();if(u==null?0:u.isOverlay)u="yt-lockup-metadata-view-model-wiz--overlay";else switch(u==null?void 0:u.arrangement){case 1:u="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:u="yt-lockup-metadata-view-model-wiz--vertical"}}return u},function(){a:{var u=f.lockupStyle();
if(u==null?0:u.isTiny)u="yt-lockup-metadata-view-model-wiz--tiny";else switch(u==null?void 0:u.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":u="yt-lockup-metadata-view-model-wiz--compact";break a;default:u="yt-lockup-metadata-view-model-wiz--standard"}}return u},(R["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var u;
return(u=f.lockupStyle())==null?void 0:u.isOverlay},R["yt-lockup-metadata-view-model-wiz--card"]=function(){var u;
return(u=f.lockupStyle())==null?void 0:u.isCard},R["yt-lockup-metadata-view-model-wiz--centered"]=function(){var u;
return(u=f.lockupStyle())==null?void 0:u.isCentered},R["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var u;
return(u=f.lockupStyle())==null?void 0:u.typographyBump},R["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var u;
return(u=f.lockupStyle())==null?void 0:u.useLegacyTypography},R["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var u;
return(u=f.lockupStyle())==null?void 0:u.useRichGridLegacyTypography},R))},_.a(_.y5,{data:function(){return f.data().image}},{avatarStackViewModel:function(u){return _.a("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.a(_.bS,{data:u.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(u){return _.a("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.a(_.NC,{data:u.data}))},
decoratedAvatarViewModel:function(u){return _.a("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.a(_.LY,{data:u.data}))}}),_.a("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.a("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var u;return(u=f.data().title)==null?void 0:u.content}},_.a(_.Q,{cond:function(){return f.data().title},
then:function(u){return _.a(_.cd,{command:f.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:f.lockupAccessibilityLabel},_.a(_.YO,{text:u}))}})),_.a("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.a(_.y5,{data:function(){return f.data().metadata}},{contentMetadataViewModel:function(u){return _.a(_.qKE,{data:u.data,
layout:1,useMediumText:function(){var O,c;return((O=f.lockupStyle())==null?void 0:O.typographyBump)||((c=f.lockupStyle())==null?void 0:c.useRichGridLegacyTypography)},
extensions:function(){var O,c;return{lockupMetadata:{byline:{hideAvatar:((O=f.lockupStyle())==null?void 0:O.arrangement)===0,addPadding:((c=f.lockupStyle())==null?void 0:c.arrangement)===1}}}}})}})),_.a(_.y5,{data:function(){return f.data().attribution}},{attributionViewModel:function(u){return _.a("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.a(cDE,{data:u.data,
useSmallLayout:!0}))}})),_.a("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.a(_.y5,{data:function(){return f.data().menuButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
buttonOverrides:function(){var O;return((O=f.lockupStyle())==null?0:O.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
ADk.idomCompat=!0;var aiF=_.nf(function(f){var R=_.sW();_.NW(function(){requestAnimationFrame(function(){_.YM(R.value)})});
var u={},O={},c={};return _.a("notification-multi-action-renderer",{class:_.KL("ytNotificationMultiActionRendererHost",(u.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var h;return(h=f.useLegacyShelfStyle)==null?void 0:h.call(f)},u)),
el:R},_.a("span",{"aria-live":"polite",class:_.KL("ytNotificationMultiActionRendererTextContainer",(O.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var h;return(h=f.useLegacyShelfStyle)==null?void 0:h.call(f)},O))},_.a(_.YO,{text:function(){return f.data().responseText}})),_.a("div",{class:_.KL("ytNotificationMultiActionRendererButtonContainer",(c.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var h;
return(h=f.useLegacyShelfStyle)==null?void 0:h.call(f)},c))},_.a(_.y5,{data:function(){var h;
return(h=f.data().buttons)==null?void 0:h.map(function(l){if(l=l.buttonRenderer){var K,q=Object,F=q.assign,w=(K=l.icon)==null?void 0:K.iconType;K=(K=l.command||l.serviceEndpoint||l.navigationEndpoint)?{innertubeCommand:K}:void 0;l={buttonViewModel:F.call(q,{},{iconName:w,onTap:K,trackingParams:l.trackingParams,titleFormatted:l.text?_.Dz(l.text):void 0},Hl7(l))}}else l=void 0;return l}).filter(function(l){return!!l})}},{buttonViewModel:function(h,l){return _.a("div",null,_.a(_.TS,{data:h.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var K;return((K=f.useModernStyles)==null?0:K.call(f))?{type:l()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var FLY=_.nf(function(f){var R=_.sW();_.NW(function(){requestAnimationFrame(function(){_.YM(R.value)})});
return _.a("notification-text-renderer",{el:R,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.a(_.YO,{text:function(){return f.data().successResponseText}}))},"Ma");_.wxG=_.nf(function(f){var R=_.Ax(jZ2,function(){var O;return IgD((O=f.contentId)==null?void 0:O.call(f))}),u=function(){var O;
return _.t((O=R())==null?void 0:O.command,_.WY)};
return _.a(_.Q,{cond:function(){var O;if(!(O=u())){var c;O=_.t((c=R())==null?void 0:c.command,YYH)}return O},
then:function(){return _.a(_.Q,{cond:u,then:function(){var O={};return _.a("div",{class:_.KL("ytDismissibleItemReplacedContent",function(){var c;return Mzn((c=f.aspectRatio)==null?void 0:c.call(f))})},_.a("div",{class:_.KL((O.ytDismissibleItemAspectRatioContainer=function(){var c;
return((c=f.aspectRatio)==null?void 0:c.call(f))!==void 0},O))},_.a(_.y5,{data:function(){var c;
return(c=u())==null?void 0:c.item}},{notificationMultiActionRenderer:function(c){return _.a(aiF,{data:c.data,
useModernStyles:f.useModernStyle,useLegacyShelfStyle:f.useLegacyShelfStyle})},
notificationTextRenderer:FLY})))}})},
else:f.children})},"Na");_.m9f=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;f=_.n0();var O=function(){var h;return((h=R().interaction)==null?0:h.onTap)?function(l){var K;sRt(l,(K=R().interaction)==null?void 0:K.onTap,u)}:void 0},c=function(){var h,l=R(),K=O(),q=(h=_.t(R().rendererContext,_.mZ))==null?void 0:h.label;
a:switch(l.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":h=1;break a;default:h=0}return{size:eih(l.size),type:h,onTap:K,accessibilityText:q}};
_.fT(f,{visibilityCallback:function(h){var l,K=(l=R().interaction)==null?void 0:l.onFirstVisible;h&&K&&_.Ux(K)},
showOption:_.nY});return _.a("ad-avatar-view-model",{class:function(){var h;return((h=R().interaction)==null?0:h.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:f},_.a(_.Q,{cond:function(){return R().image},
then:function(h){return _.a(ixH,{data:c,image:h})}}))},"Oa");_.rG=_.nf(function(f){f=_.sU(f,{hasDot:!1});var R=Object.assign({},f),u=f.data,O=f.hasDot;f=f.customCommandResolver;var c=(delete R.data,delete R.hasDot,delete R.customCommandResolver,R);R=function(){return u().style};
R!==void 0&&R!==null||_.UC(Error("Ch"));R=_.sW();_.gW(R,function(){return u().interaction},f);
return _.a("ad-badge-view-model",{class:_.KL(function(){var h;return((h=u().interaction)==null?0:h.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var h=c.adRenderingContextType();
u();return h==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:R},_.a(_.nr,{data:function(){var h;u();return{type:2,text:(h=u().label)==null?void 0:h.content,adsIncludeDot:O(),isOverlay:u().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var QRF;_.fO=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;var O=f.adRenderingContextType;f=_.sW();_.gW(f,function(){return R().interaction},u);
_.fT(f,{visibilityCallback:function(c){var h,l=(h=R().interaction)==null?void 0:h.onFirstVisible;c&&l&&_.Ux(l)},
showOption:_.nY});return _.a("ad-details-line-view-model",{class:function(){var c;return((c=R().interaction)==null?0:c.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:f},_.a(_.Q,{cond:function(){return R().style},
then:function(c){return _.a(_.EC,{each:function(){var h;return((h=R())==null?void 0:h.attributes)||[]},
keyBy:"INDEX"},function(h){return _.a(QRF,{attribute:h,style:c,adRenderingContextType:function(){return O()}})})}}))},"Qa");
QRF=_.nf(function(f){var R=f.attribute;var u=f.style;var O=f.adRenderingContextType;return _.a(_.Q,{cond:function(){return R().text},
then:function(c){return _.a(_.YO,{text:c,className:function(){var h=O();u();return h==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var WLH=_.nf(function(f){var R=f.data;var u=f.typographyBump;var O=function(){return R().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
f={};return _.a(_.RS,null,_.a("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.a(_.YO,{text:function(){return R().headline},
className:_.KL("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return O==null?void 0:O()},f.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(u==null?void 0:u())&&!(O==null?0:O())},f)),
linkInheritColor:!0}),_.a(_.Q,{cond:function(){return R().description},
then:function(c){var h={};return _.a(_.YO,{text:c,className:_.KL("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return O==null?void 0:O()},h.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(u==null?void 0:u())&&!(O==null?0:O())},h)),
linkInheritColor:!0})}}),_.a(_.Q,{cond:function(){return R().secondaryDescription},
then:function(c){var h={};return _.a(_.YO,{text:c,className:_.KL("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return u==null?void 0:u()},h)),
linkInheritColor:!0})}}),_.a("div",{class:function(){return O()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.a(_.Q,{cond:function(){return R().adAvatar},
then:function(){return _.a("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.a(_.y5,{data:function(){return R().adAvatar}},{adAvatarViewModel:_.m9f}))}}),_.a(_.y5,{data:function(){return R().adBadge}},{adBadgeViewModel:function(c){return _.a(_.rG,{data:c.data,
hasDot:function(){return!!R().adDetailsLine},
adRenderingContextType:function(){return R().adRenderingContextType}})}}),_.a(_.y5,{data:function(){return R().adDetailsLine}},{adDetailsLineViewModel:function(c){return _.a(_.fO,{data:c.data,
adRenderingContextType:function(){return R().adRenderingContextType}})}}))),_.a("div",{class:function(){return O()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.a(_.y5,{data:function(){return R().menu}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
buttonOverrides:function(){a:switch(R().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var h="S";break a;default:h="M"}return{size:h}}})}})))},"Sa"),E2Y=_.nf(function(f){var R=f.data;
var u=f.noBottomMargin;var O=f.useVideoLockupTopPadding;var c=f.typographyBump;f={};f=_.KL("ytwFeedAdMetadataViewModelHostMetadata",(f.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return u==null?void 0:u()},f.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return O==null?void 0:O()},f));
var h=function(){return R().adBadge};
h!==void 0&&h!==null||_.UC(Error("Dh"));h={};var l={};return _.a(_.RS,null,_.a(_.Q,{cond:function(){return R().adAvatar},
then:function(){return _.a("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.a(_.y5,{data:function(){return R().adAvatar}},{adAvatarViewModel:function(K){return _.a(_.m9f,{data:K.data})}}))}}),_.a("div",{class:f},_.a("div",{class:_.KL("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(h.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return c==null?void 0:c()},h.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(c==
null?void 0:c())&&_.E("web_enable_typography_bump_v2")},h))},_.a(_.YO,{text:function(){return R().headline},
linkInheritColor:!0})),_.a(_.Q,{cond:function(){return R().description},
then:function(K){return _.a(_.YO,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.a("div",{class:function(){return R().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.E("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.a(_.y5,{data:function(){return R().adBadge}},
{adBadgeViewModel:function(K){return _.a(_.rG,{data:K.data,
hasDot:function(){return!!R().adDetailsLine},
adRenderingContextType:function(){return R().adRenderingContextType}})}}),_.a(_.y5,{data:function(){return R().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.a(_.fO,{data:K.data,
adRenderingContextType:function(){return R().adRenderingContextType}})}})),_.a(_.Q,{cond:function(){return R().secondaryDescription},
then:function(K){return _.a(_.YO,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.a("div",{class:_.KL("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(l.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return O==null?void 0:O()},l))},_.a(_.y5,{data:function(){return R().menu}},{buttonViewModel:_.TS})))},"Ta"),t_i=_.nf(function(f){var R=f.data;
var u=f.noBottomMargin;var O=f.listenToTapEvent;var c=f.setTouchEndHandler;var h=f.useVideoLockupTopPadding;var l=f.typographyBump;var K=_.sW();_.gW(K,function(){return R().interaction},void 0,function(){return O==null?void 0:O()});
f=_.Z(_.qK(!1,void 0,"qjt0Xc"));var q=f.next().value,F=f.next().value;f=_.Ff(function(){(c==null?0:c())&&!q()&&(K.value.click(),F(!0),setTimeout(function(){F(!1)},100));
return!1});
_.fT(K,{visibilityCallback:function(w){var m,W=(m=R().interaction)==null?void 0:m.onFirstVisible;w&&W&&_.Ux(W)},
showOption:_.nY});return _.a("feed-ad-metadata-view-model",{class:function(){var w;return((w=R().interaction)==null?0:w.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:K,"on:touchend":f},_.a(_.yM,null,_.a(_.t1,{when:function(){return R().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.a(WLH,{data:R,
typographyBump:l})}),_.a(_.t1,{when:function(){return R().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.a(E2Y,{data:R,
noBottomMargin:u,useVideoLockupTopPadding:h,typographyBump:l})})))},"Ua");var CFG;_.RE=_.nf(function(f){return _.a("yt-lockup-view-model",{class:_.KL(f.className)},_.a(_.wxG,{contentId:function(){return f.data().contentId},
useModernStyle:!0,aspectRatio:function(){var R,u;return((R=f.containerType)==null?void 0:R.call(f))!==3?kGn(f.data().contentType,(u=f.force16By9ThumbnailAspectRatio)==null?void 0:u.call(f)):void 0}},function(){return _.a(CFG,Object.assign({},f))}))},"Va");
CFG=_.nf(function(f){f=_.sU(f,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var R=f.data,u=f.containerLayoutConfig,O=f.containerType,c=f.sizing,h=f.protectBackground,l=f.typographyBump,K=f.force16By9ThumbnailAspectRatio,q=f.thumbnailFixedWidth,F=f.thumbnailTargetWidth,w=f.lockupExperiments,m=f.elementsPerRow;
f=_.sW();_.xO(f,function(){var zq;return(zq=R())==null?void 0:zq.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var W=_.JS(o22),C=_.vh().resolve(_.Y8(PMA)),d=C?{}:void 0,p=function(){var zq,St,Gq;return(Gq=(St=_.t((zq=R())==null?void 0:zq.rendererContext,_.mZ))==null?void 0:St.label)!=null?Gq:void 0},J=function(){var zq=u==null?void 0:u(),St;
if(zq==null?0:zq.containerType){var Gq=(St=R())==null?void 0:St.contentType;St=w();var LC=l(),wN=F(),GI=h();zq=Object.assign({},KgB(hi7(zq),c3n(zq.responsiveSize),LC,Gq,zq.force16By9ThumbnailAspectRatio,wN,GI,St),{thumbnailFixedWidth:zq.contentPreviewWidth})}else zq=KgB(O(),c(),l(),(Gq=R())==null?void 0:Gq.contentType,K(),F(),h(),w());return zq};
C&&d&&C({enabled:function(){return W()},
itemPlaybackModel:function(){return R().itemPlayback},
thumbnailElRef:function(){return d.thumbnailElRef},
containerElRef:f,options:function(){var zq,St=(zq=_.t(R().metadata,Ght))==null?void 0:zq.endorsement;zq=d.thumbnailOverlays||[];St&&zq.push(St);var Gq,LC;return{thumbnail:d.thumbnail,thumbnailOverlays:zq,accessibilityText:p(),thumbnailSize:d.thumbnailSize,enableRounding:J().isCollection,containPlayerWithinThumbnail:J().isCollection,trackingParams:(Gq=_.t(R().rendererContext,_.mi))==null?void 0:(LC=Gq.loggingDirectives)==null?void 0:LC.trackingParams}}});
var M=0;C=_.Z(_.qK(!1,void 0,"HzAs3"));var P=C.next().value,g=C.next().value;C=_.Z(_.qK(!1,void 0,"ujOXud"));var x=C.next().value,fh=C.next().value;C=_.Ff(function(){var zq=W()&&R().itemPlayback;x()?(_.JA.cancelJob(M),M=_.JA.addJob(function(){g(!zq)},8,32)):g(!zq);
return!0});
var V=_.Ff(function(){M&&(_.JA.cancelJob(M),M=0);g(!1)});
_.jN(function(){M&&(_.JA.cancelJob(M),M=0)});
var ZD=UTe(function(){fh(!0)}),mP=ZD.touchFeedbackEvents,NX=ZD.touchFeedbackOnPointerUp,jt=ZD.touchFeedbackOnPointerDown;
ZD=ZD.touchFeedbackOnPointerLeave;var Jn={};return _.a("div",{el:f,class:_.KL("yt-lockup-view-model-wiz",function(){a:{var zq=J();if(zq.isOverlay)zq="yt-lockup-view-model-wiz--overlay";else switch(zq.arrangement){case 1:zq="yt-lockup-view-model-wiz--horizontal";break a;default:zq="yt-lockup-view-model-wiz--vertical"}}return zq},function(){a:{var zq=J();
if(zq.isOverlay)zq="yt-lockup-view-model-wiz--overlay";else{switch(zq.collectionStackNumber){case 1:zq="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:zq="yt-lockup-view-model-wiz--collection-stack-2";break a}zq=void 0}}return zq},(Jn["yt-lockup-view-model-wiz--card"]=function(){return J().isCard},Jn["yt-lockup-view-model-wiz--compact"]=function(){return J().isTiny||J().sizing!=="STANDARD"},Jn["yt-lockup-view-model-wiz--protect-background"]=h,Jn["yt-lockup-view-model-wiz--add-margins"]=
function(){return J().addMarginForFullbleed},Jn["yt-lockup-view-model-wiz--centered"]=function(){return J().isCentered},Jn["yt-lockup-view-model-wiz--fullbleed"]=function(){return J().fullbleed},Jn["yt-lockup-view-model-wiz--single-column-grid"]=function(){return m()===1&&O()===2},Jn["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var zq;
return(zq=w())==null?void 0:zq.useRichGridLegacyMargin},Jn)),
"on:mousedown":jt,"on:mouseleave":V,"on:mouseup":NX,"on:mouseover":C,"on:touchstart":jt,"on:touchend":NX,"on:pointerleave":ZD},_.a(_.cd,{command:function(){var zq;return _.BJ((zq=R())==null?void 0:zq.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return q()&&J().arrangement===1?"width: "+q():""}},_.a(_.y5,{data:function(){var zq;
return(zq=R())==null?void 0:zq.contentImage}},{thumbnailViewModel:function(zq){return _.a(_.si,{data:zq.data,
aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:F,hovered:P,isClip:function(){var St;return((St=R())==null?void 0:St.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:G37(d),lockupExperiments:function(){return w()}})},
collectionThumbnailViewModel:function(zq){return _.a(VSi,{data:zq.data,aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:F,doubleStack:function(){return J().collectionStackNumber===2},
hovered:P,playbackRef:G37(d)})},
decoratedAvatarViewModel:_.LY})),_.a("div",{class:"yt-lockup-view-model-wiz__metadata"},_.a(_.y5,{data:function(){var zq;return(zq=R())==null?void 0:zq.metadata}},{lockupMetadataViewModel:function(zq){return _.a(ADk,{data:zq.data,
lockupStyle:J,lockupCommand:function(){var St;return _.BJ((St=R())==null?void 0:St.rendererContext)},
lockupAccessibilityLabel:function(){return p()}})},
feedAdMetadataViewModel:function(zq){return _.a(t_i,{data:zq.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:l})}}),_.a(_.y5,{data:function(){var zq;
return(zq=R())==null?void 0:zq.attachmentSlot}},{lockupAttachmentsViewModel:function(zq){return _.a(fif,{data:zq.data,
lockupStyle:J})}})),_.a(_.CL,{model:function(){a:{switch(J().collectionStackNumber){case 1:var zq=8;
break a;case 2:zq=12;break a}zq=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:zq}},
pointerDownEvent:mP.pointerDownEvent,pointerUpEvent:mP.pointerUpEvent,pointerLeaveEvent:mP.pointerLeaveEvent}))},"Wa");
_.RE.idomCompat=!0;_.ii(_.RE,"yt-lockup-view-model",{props:{data:_.SG,containerLayoutConfig:_.SG,containerType:_.SG,sizing:_.SG,protectBackground:_.SG,typographyBump:_.SG,thumbnailFixedWidth:_.SG,thumbnailTargetWidth:_.SG,force16By9ThumbnailAspectRatio:_.SG,className:_.SG,lockupExperiments:_.SG,elementsPerRow:_.SG}});_.RI($Tq);var yDC=_.aX($Tq,{callbacks:{onExpandClick:!0}});var vke=_.WJ({buttonViewModel:_.TS}),d9C=_.aX(VzP);_.RI(VzP);_.RI(sKn);_.RI(nk7);_.ii(d9C,"yt-video-attribute-view-model",{props:{data:_.SG,className:_.SG}});var us=function(){var f=_.U.apply(this,arguments)||this;f.useHighlightStyling=_.E("web_enable_deeper_metadata_highlight_styling");f.isSearch=!1;f.JSC$13041_lastScrollContainerWidth=NaN;f.pageLoadingFromNavigation=!1;f.currentIndex=0;f.supportComponentResize=!1;return f};
_.y(us,_.U);_.X=us.prototype;
_.X.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}}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.ks(this,this.onPageChange))};
_.X.detached=function(){document.removeEventListener("yt-page-type-changed",_.ks(this,this.onPageChange))};
_.X.getItemsPath=function(){return"data.cards"};
_.X.onIronResize=function(){this.updateListStyles()};
_.X.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var f;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(f=this.data)==null?void 0:f.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.E("problem_walkthrough_sd")&&!!this.centerItems};
_.X.computeCardListStyle=function(f){return f||null};
_.X.computeEmpty=function(f){return!this.get("cards.length",f)};
_.X.computeThumbnailStyle=function(f){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",f)||null};
_.X.computeHasSubtitle=function(f){return!!this.get("header.richListHeaderRenderer.subtitle",f)};
_.X.computeInitialCountNumber=function(f){return this.hasSquareMiniApp&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.X.computeUseFloorScrolling=function(f){return f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.X.computeHasGameCard=function(f){return(f=this.get("cards",f))?f.some(function(R){return R.gameCardRenderer}):!1};
_.X.computeCenterHeaderTitle=function(f){return!(f==null||!f.centerHeaderTitle)};
_.X.computeHasPortraitMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(R){return R.miniGameCardViewModel&&R.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.X.computeHasSquareMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(R){return R.miniGameCardViewModel&&R.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.X.computeHasSkinnyWidthPortraitMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(R){return R.miniGameCardViewModel&&R.miniGameCardViewModel.width===135}):!1};
_.X.computeCenterItems=function(f){return!!f};
_.X.computeHasInfoPanel=function(f){var R;return f==null?void 0:(R=f.cards)==null?void 0:R.some(function(u){return u.infoPanelContentRenderer})};
_.X.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.X.getItemByIndex=function(f){var R=this.items.children;return R&&R.length>f?R[f]:void 0};
_.X.onPageChange=function(){var f=this;this.pageLoadingFromNavigation=!0;_.JA.addJob(function(){f.pageLoadingFromNavigation=!1;_.c_(f.hostElement,"yt-terminate-video-preview-action")},8)};
_.X.updateListStyles=function(){if(_.E("problem_walkthrough_sd")&&this.JSC$13041_scrollContainer!==void 0){var f=this.JSC$13041_scrollContainer.clientWidth;f!==this.JSC$13041_lastScrollContainerWidth&&(this.JSC$13041_lastScrollContainerWidth=f,_.ZO(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(f*.8,415)+"px"}),_.ul(this.hostElement,"iron-resize"))}};
_.Vy.Object.defineProperties(us.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.E("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!((f=this.data)==null?0:(R=f.cards)==null?0:(u=R[0])==null?0:u.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!((f=this.data)==null?0:(R=f.cards)==null?0:(u=R[0])==null?0:u.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return _.E("enable_desktop_amsterdam_info_panels")&&!!((f=this.data)==null?0:(R=f.cards)==null?0:(u=R[0])==null?0:u.infoPanelContentRenderer)}}});
us.prototype.dataChanged=us.prototype.dataChanged;us.prototype.onIronResize=us.prototype.onIronResize;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],us.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.z(_.HX),_.S("design:type",Object)],us.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],us.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],us.prototype,"useCustomColors",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],us.prototype,"useHighlightStyling",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.S("design:type",Object)],us.prototype,"cardListStyle",void 0);_.B([_.I({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.S("design:type",Boolean)],us.prototype,"empty",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.S("design:type",Boolean)],us.prototype,"hasSubtitle",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.S("design:type",Boolean)],us.prototype,"thumbnailStyle",void 0);_.B([_.I({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.S("design:type",Boolean)],us.prototype,"hasGameCard",void 0);_.B([_.I({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.S("design:type",Boolean)],us.prototype,"centerHeaderTitle",void 0);
_.B([_.I({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.S("design:type",Boolean)],us.prototype,"hasPortraitMiniApp",void 0);_.B([_.I({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.S("design:type",Boolean)],us.prototype,"hasSquareMiniApp",void 0);_.B([_.I({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.S("design:type",Boolean)],us.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.B([_.I({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.S("design:type",Boolean)],us.prototype,"hasInfoPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],us.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],us.prototype,"inlineStructuredDescription",void 0);_.B([_.a4("#scroll-container"),_.S("design:type",HTMLDivElement)],us.prototype,"JSC$13041_scrollContainer",void 0);
_.B([_.I({computed:"computeInitialCountNumber(data.style.type)"}),_.S("design:type",Number)],us.prototype,"initialCount",void 0);_.B([_.I({computed:"computeUseFloorScrolling(data.style.type)"}),_.S("design:type",Boolean)],us.prototype,"useFloorScrolling",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.S("design:type",Boolean)],us.prototype,"centerItems",void 0);_.B([_.I(),_.S("design:type",Object)],us.prototype,"pageLoadingFromNavigation",void 0);
_.B([_.I(),_.S("design:type",Object)],us.prototype,"currentIndex",void 0);_.B([_.I(),_.S("design:type",Number)],us.prototype,"scrollCount",void 0);_.B([_.I(),_.S("design:type",Object)],us.prototype,"supportComponentResize",void 0);_.B([_.a4("#items"),_.S("design:type",HTMLDivElement)],us.prototype,"items",void 0);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],us.prototype,"onIronResize",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],us.prototype,"dataChanged",null);_.B([_.I({reflectToAttribute:!0}),_.T("inlineStructuredDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],us.prototype,"hideNavigationButton",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],us.prototype,"modernChapters",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],us.prototype,"hasVideoAttributeViewModels",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],us.prototype,"modernInfoPanels",null);us=_.B([_.e({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],us);
_.G(us,"ytd-horizontal-card-list-renderer",function(){if(QcI!==void 0)return QcI;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return QcI=f},{mode:_.c7("kevlar_poly_si_batch_j072")?1:2});var NMY=_.nf(function(f){var R=f.data;var u={};return _.a("video-summary-content-view-model",{class:_.KL("video-summary-content-view-model-wiz",f.className,(u["video-summary-content-view-model-wiz--is-search"]=f.isSearch,u))},_.a(_.EC,{each:function(){var O=[],c=R().paragraphs;if(c==null||!c.length)return[];for(var h=0;h<c.length;h++){var l=_.t(c[h],gIC),K=void 0;h>0&&(K=_.t(c[h-1],gIC));K&&!!K.marker===!!l.marker?O[O.length-1].paragraphs.push(l):O.push({isList:!!l.marker,paragraphs:[l]})}return O},
keyBy:"INDEX"},function(O){return _.a(_.Q,{cond:function(){return O().isList},
then:function(){return _.a("ul",{class:"video-summary-content-view-model-wiz__list"},_.a(_.EC,{each:function(){return O().paragraphs},
keyBy:"INDEX"},function(c){return _.a("li",{class:"video-summary-content-view-model-wiz__list-item"},_.a(_.YO,{text:function(){return c().text}}))}))},
else:function(){return _.a(_.EC,{each:function(){return O().paragraphs},
keyBy:"INDEX"},function(c){return _.a("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.a(_.YO,{text:function(){return c().text}}))})}})}),_.a(_.Q,{cond:function(){return!!_.t(R().likeButtonViewModel,_.pr)&&!!_.t(R().dislikeButtonViewModel,_.jP)},
then:function(){return _.a("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.a("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.a(_.DA,{data:function(){return _.t(R().likeButtonViewModel,_.pr)},
disableIconAnimation:!0})),_.a(_.jM,{data:function(){return _.t(R().dislikeButtonViewModel,_.jP)}}))}}))},"Xa");
NMY.idomCompat=!0;_.ii(NMY,"video-summary-content-view-model",{props:{data:_.SG,isSearch:_.SG,className:_.SG}});var OH=function(){var f=_.U.apply(this,arguments)||this;var R,u;f.isExpanded=(u=(R=f.data)==null?void 0:R.isExpanded)!=null?u:!1;f.disableExpand=!1;f.showProminentLabel=!1;f.showRightSideLabel=!0;f.toggleExpandableContent=function(O){f.disableExpand||(O.stopPropagation(),_.gx(_.$S(O),f.hostElement,["info","expanded-subtitle"])||(f.isExpanded=!f.isExpanded,f.ytRendererBehavior.logExplicitClick(f.data),f.JSC$13052_cardList&&!_.E("expandable_metadata_a11y_fix_ks")&&_.su(f,function(){_.Vb(f.hostElement)})))};
f.useSquareThumbnail=!1;f.startX=0;return f};
_.y(OH,_.U);_.X=OH.prototype;_.X.computeUseSquareThumbnail=function(){var f;return(f=this.data)==null?void 0:f.useSquareThumbnail};
_.X.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"}}}}};
_.X.dataChanged=function(){if(this.data){var f,R;this.isExpanded=(R=(f=this.data)==null?void 0:f.isExpanded)!=null?R:!1;var u,O,c,h;if(f=this.isDarkTheme()?(u=this.data)==null?void 0:(O=u.colorData)==null?void 0:O.darkColorPalette:(c=this.data)==null?void 0:(h=c.colorData)==null?void 0:h.lightColorPalette){var l,K;if((l=this.data)==null?0:(K=l.colorData)==null?0:K.vibrantColorPalette)f.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.be(this.hostElement,f)}}};
_.X.isExpandedChanged=function(){this.isExpanded&&this.JSC$13052_cardList&&_.ul(this.JSC$13052_cardList,"iron-resize")};
_.X.computeIsExpanded=function(f){return!!f.isExpanded};
_.X.computeShowProminentLabel=function(f,R){var u;return!!(f==null?0:(u=f.header)==null?0:u.showLeadingCollapsedLabel)&&!R};
_.X.computeShowRightSideLabel=function(f,R){var u;return!(f==null?0:(u=f.header)==null?0:u.showLeadingCollapsedLabel)&&!R};
_.X.captureContentClick=function(f){if(!this.disableExpand)if(_.E("expandable_metadata_fix_killswitch")){var R=f.target;_.$Xk(R,"ytd-macro-markers-list-item-renderer")||f.stopPropagation();(R==null?void 0:R.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.gx(_.$S(f),this.hostElement,["items"])||_.$G(_.$S(f),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.X.timestampClick=function(f){f.stopPropagation();var R,u;(f=(R=this.data)==null?void 0:(u=R.header)==null?void 0:u.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(f)};
_.X.onDown=function(f){f.stopPropagation();this.startX=f.detail?f.detail.x:0};
_.X.onUp=function(f){this.skipKeyInteraction(f)&&f.stopPropagation()};
_.X.skipKeyInteraction=function(f){var R=f.target;if((R==null?void 0:R.id)==="scroll-container"||(R==null?void 0:R.id)==="items"||f.detail&&f.detail.x!==this.startX)return!0;f=_.$S(f);f=_.Z(f);for(R=f.next();!R.done;R=f.next()){R=R.value;if(R===this.hostElement)break;if(R.hasAttribute&&R.hasAttribute("skip-key-interaction"))return!0}return!1};
_.X.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Vy.Object.defineProperties(OH.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.t((f=this.data)==null?void 0:f.expandedContent,$ZF)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.t((f=this.data)==null?void 0:f.expandedContent,_.BmA)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.useCustomColors)&&!((R=this.data)==null||!R.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var f,R;return!!((f=this.data)==null?0:(R=f.header)==null?0:R.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var f,R;return!!((f=this.data)==null?0:(R=f.header)==null?0:R.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,R;return!!((f=this.data)==null?0:(R=f.header)==null?0:R.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
OH.prototype.onUp=OH.prototype.onUp;OH.prototype.onDown=OH.prototype.onDown;OH.prototype.isExpandedChanged=OH.prototype.isExpandedChanged;OH.prototype.dataChanged=OH.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],OH.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],OH.prototype,"isExpanded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],OH.prototype,"disableExpand",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],OH.prototype,"isSearch",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],OH.prototype,"isWatch",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.S("design:type",Object)],OH.prototype,"showProminentLabel",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.S("design:type",Object)],OH.prototype,"showRightSideLabel",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"hasVideoSummary",null);_.B([_.I({value:!1,reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"hasLockupViewModel",null);_.B([_.I({reflectToAttribute:!0}),_.T("data","isWatch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"useCustomColors",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"showInfoButton",null);_.B([_.T("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"showTimestamp",null);_.B([_.T("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"showExpandedSubtitle",null);
_.B([_.T("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],OH.prototype,"showThumbnail",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],OH.prototype,"useVppShoppingDestinationStyle",null);_.B([_.I(),_.S("design:type",Object)],OH.prototype,"toggleExpandableContent",void 0);_.B([_.a4("ytd-horizontal-card-list-renderer"),_.S("design:type",Object)],OH.prototype,"JSC$13052_cardList",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.S("design:type",Object)],OH.prototype,"useSquareThumbnail",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],OH.prototype,"dataChanged",null);_.B([_.qM("isExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],OH.prototype,"isExpandedChanged",null);
_.B([_.Kf("down"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],OH.prototype,"onDown",null);_.B([_.Kf("up"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],OH.prototype,"onUp",null);OH=_.B([_.e({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],OH);
_.G(OH,"ytd-expandable-metadata-renderer",function(){if(bxl!==void 0)return bxl;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return bxl=f},{mode:1});var LLC,b4C=function(){if(LLC!==void 0)return LLC;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return LLC=f};_.ii(_.bS,"yt-avatar-stack-view-model",{props:{className:_.SG,data:_.SG,overrides:_.SG,isOverlay:_.SG,useMediumText:_.SG,decorations:_.SG,hideAvatar:_.SG}});_.j6("itemSectionRenderer","videoRenderer","ytd-video-renderer");var cp=function(){var f=_.U.apply(this,arguments)||this;f.disableExpand=!1;f.shouldShowChannelInfo=!1;f.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return f};
_.y(cp,_.U);_.X=cp.prototype;_.X.computeUseSearchUi=function(){var f,R;return this.isSearch||((f=this.data)==null?void 0:(R=f.style)==null?void 0:R.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.X.computeUseThreeLineTitle=function(){var f;return((f=this.data)==null?void 0:f.maxTitleLines)===3};
_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.E("polymer_video_renderer_defer_menu")&&!DCi?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"}}}};
_.X.attached=function(){_.c2(this.hostElement,"blue-links",_.E("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.X4(_.b(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var f=this.get("data.buttons.buttonRenderer.serviceEndpoint"),R;f&&((R=_.t(f.commandMetadata,_.Ni))==null?0:R.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(f);this.updateInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13057_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:this.JSC$13057_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13057_inlinePreviewHoverListener)==null||uk(f)};
_.X.onTextWrapperClick=function(f){var R,u,O=this.hideTranslation?(R=this.data)==null?void 0:R.untranslatedNavigationEndpoint:(u=this.data)==null?void 0:u.navigationEndpoint;R=_.gx(_.$S(f),this.hostElement,["expandable-metadata"]);!O||R&&!_.E("expandable_metadata_fix_killswitch")||_.$G(_.$S(f),this.hostElement,["A".toString(),"BUTTON".toString()])||_.ul(this.hostElement,"yt-navigate",{endpoint:O})};
_.X.computeThumbnailWidth=function(f,R,u,O,c){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:O?c==="MASSIVE"?600:c==="BIG"?500:c==="MEDIUM"?450:420:u?360:R?128:f?210:246};
_.X.computeUseBiggerThumbs=function(f){return f&&_.E("enable_desktop_search_bigger_thumbs")};
_.X.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.X.computeVideoStyle=function(){if(_.E("enable_video_style")){var f,R;return(f=this.data)==null?void 0:(R=f.style)==null?void 0:R.value}};
_.X.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.X.handleHideItemSectionVideosByIdCommand=function(f){var R;f=(R=_.t(f,aqC))==null?void 0:R.videoId;this.data&&this.data.videoId===f&&(this.isHidden=!0)};
_.X.getMetadataSnippetContainerClass=function(f){return f?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.X.computeTitleText=function(f,R,u){return f?u:R};
_.X.computeDescriptionSnippet=function(f,R,u){return f?u:R};
_.X.computeSnippetText=function(f,R,u){return f?u:R};
_.X.computeNavigationEndpoint=function(f,R){return f?R==null?void 0:R.untranslatedNavigationEndpoint:R==null?void 0:R.navigationEndpoint};
_.X.hideInlineTitleIcon=function(f,R){return f||!R};
_.Vy.Object.defineProperties(cp.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 f;return(f=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?f:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!(this==null?0:(f=this.data)==null?0:(R=f.channelThumbnailSupportedRenderers)==null?0:(u=R.channelThumbnailWithLinkRenderer)==null?0:u.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.t((f=this.data)==null?void 0:f.avatar,oHG)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13057_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Vy.Object.defineProperties(cp,{template:{configurable:!0,enumerable:!0,get:function(){return b4C()}}});
cp.prototype.dataChanged=cp.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],cp.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.BX),_.S("design:type",Object)],cp.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],cp.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],cp.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cp.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],cp.prototype,"isBackstageVideo",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],cp.prototype,"isPostCompactVideo",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],cp.prototype,"isHistory",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],cp.prototype,"isRichGridVideoPost",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],cp.prototype,"isHidden",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],cp.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.S("design:type",Boolean)],cp.prototype,"useSearchUi",void 0);_.B([_.I({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.S("design:type",Boolean)],cp.prototype,"useThreeLineTitle",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.S("design:type",Boolean)],cp.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.S("design:type",Object)],cp.prototype,"videoStyle",void 0);_.B([_.I({computed:"computeDisableExpand(videoStyle)"}),_.S("design:type",Object)],cp.prototype,"disableExpand",void 0);
_.B([_.I({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.S("design:type",Object)],cp.prototype,"shouldShowChannelInfo",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],cp.prototype,"biggerThumbsStyle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.S("design:type",String)],cp.prototype,"inlineTitleIcon",void 0);_.B([_.I({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.S("design:type",Object)],cp.prototype,"computedNavigationEndpoint",void 0);_.B([_.I({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(f,R){return _.kZ(f.entities,"searchVideoResultEntity",R)}}),
_.S("design:type",Object)],cp.prototype,"searchVideoResultEntity",void 0);_.B([_.a4("ytd-thumbnail"),_.S("design:type",HTMLElement)],cp.prototype,"thumbnail",void 0);_.B([_.a4("#dismissible"),_.S("design:type",HTMLElement)],cp.prototype,"JSC$13057_dismissibleMedia",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cp.prototype,"dataChanged",null);
_.B([_.T("searchVideoResultEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cp.prototype,"hideTranslation",null);_.B([_.T("searchVideoResultEntity"),_.S("design:type",Array),_.S("design:paramtypes",[])],cp.prototype,"hiddenBadgeGroups",null);_.B([_.T("data","useAvatar"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cp.prototype,"shouldShowChannelThumbnail",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cp.prototype,"useAvatar",null);
_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cp.prototype,"isHovered",null);cp=_.B([_.e({is:"ytd-video-renderer",disableElementRegistration:!0})],cp);_.G(cp,"ytd-video-renderer",function(){return b4C()},{mode:_.c7("kevlar_poly_si_batch_j047")?1:2});var XW=function(){var f=_.U.apply(this,arguments)||this;f.editDialog=null;f.roundedContainer=!0;f.isLoading=!1;f.isRichGrid=!1;f.isRichGridRepost=!1;f.reduceSidePaddings=_.E("reduce_side_paddings_in_shelf");f.JSC$13064_spinnerEl=null;return f};
_.y(XW,_.U);_.X=XW.prototype;
_.X.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"}}}};
_.X.contentTextChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){var f=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var R=0,u=this.data.actions&&this.data.actions.length;R<u;R++)this.openEditDialog(_.t(this.data.actions[R],Pkk));if((R=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(R=this.get("buttonRenderer.hint.hintRenderer.hintId",R))&&R.startsWith("share-post-hint")){var O=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(O){_.Vp.getInstance();var c=Ya(_.S8(_.Fa("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.JA.addLowPriorityJob(function(){_.ZW(f.hostElement,c,O)})}}}};
_.X.updatePoll=function(f){f>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.X.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13064_spinnerEl||(this.JSC$13064_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.b(this.hostElement).appendChild(this.JSC$13064_spinnerEl));this.JSC$13064_spinnerEl&&(this.JSC$13064_spinnerEl.active=this.isLoading)};
_.X.onYtNavigate=function(f){var R=this.get("updateCommentDialogEndpoint",f.detail.endpoint);R&&(this.openEditDialog(R),f.stopPropagation())};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.onYtCommentPollRevert=function(f,R){R&&this.updatePoll(R.selectedChoiceIndex)};
_.X.onYtServiceRequestSent=function(f,R){var u;R.endpoint&&(_.t(R.endpoint,XmC)||_.t(R.endpoint,cLt)&&((u=_.t(R.endpoint,cLt))==null||!u.clientActions))&&(this.isLoading=!0);if(R.actions)for(f=0;f<R.actions.length;f++)u=R.actions[f],_.t(u,yE)&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u==void 0&&(u=-1),this.updatePoll(u))};
_.X.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.X.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.editDialogEl.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.X.computeIsPostHidden=function(f,R){return!!f||R};
_.X.computeSurfaceType=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeUsesCompactLockup=function(f){return f==="BACKSTAGE_SURFACE_TYPE_HOME"||f==="BACKSTAGE_SURFACE_TYPE_SEARCH"||f==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||f==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||f==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||f==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.X.computeShowWithoutToolbar=function(f){return!f.actionButtons&&!f.actionMenu};
_.X.computePostAttachment=function(f){if(f.backstageAttachment){if(_.t(f.backstageAttachment,I2G))return"poll";if(_.t(f.backstageAttachment,WNY))return"quiz";if(_.t(f.backstageAttachment,_.HY))return"video";if(_.t(f.backstageAttachment,EwI))return"uploaded-videos";if(_.t(f.backstageAttachment,qXl))return f.contentText?"image":"image-only";if(_.t(f.backstageAttachment,FNf))return"playlist"}return"none"};
_.X.computePostTabIndex=function(f){return f?0:-1};
_.X.computeButtonTooltipPosition=function(f){return this.computeUsesCompactLockup(f)?"top":"bottom"};
_.X.computeHasText=function(f){return!(f==null||!f.contentText)};
_.X.onTap=function(f){var R,u;if(((R=this.data)==null?0:R.navigationEndpoint)&&((u=this.data)==null?void 0:u.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var O;((O=this.data)==null?0:O.navigationEndpoint)&&!_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Vy.Object.defineProperties(XW.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.S8("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,I2G))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,EwI))}}});
XW.prototype.onYtServiceRequestCompleted=XW.prototype.onYtServiceRequestCompleted;XW.prototype.onYtServiceRequestSent=XW.prototype.onYtServiceRequestSent;XW.prototype.onYtCommentPollRevert=XW.prototype.onYtCommentPollRevert;XW.prototype.onYtCommentboxDismiss=XW.prototype.onYtCommentboxDismiss;XW.prototype.onYtNavigate=XW.prototype.onYtNavigate;XW.prototype.isLoadingChanged=XW.prototype.isLoadingChanged;XW.prototype.dataChanged=XW.prototype.dataChanged;XW.prototype.contentTextChanged=XW.prototype.contentTextChanged;
_.B([_.z(_.HX),_.S("design:type",Object)],XW.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],XW.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],XW.prototype,"editDialog",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],XW.prototype,"roundedContainer",void 0);_.B([_.I(),_.S("design:type",Object)],XW.prototype,"isLoading",void 0);_.B([_.I({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.S("design:type",String)],XW.prototype,"surface",void 0);
_.B([_.I({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.S("design:type",Boolean)],XW.prototype,"usesCompactLockup",void 0);_.B([_.I({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],XW.prototype,"showWithoutToolbar",void 0);_.B([_.I({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.S("design:type",String)],XW.prototype,"attachment",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],XW.prototype,"isRichGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],XW.prototype,"isRichGridRepost",void 0);_.B([_.I({reflectToAttribute:!0,value:_.E("use_better_post_dismissals")}),_.S("design:type",Boolean)],XW.prototype,"useBetterPostDismissals",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],XW.prototype,"reduceSidePaddings",void 0);
_.B([_.I({computed:"computeHasText(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],XW.prototype,"hasText",void 0);_.B([_.a4("#expander"),_.S("design:type",Object)],XW.prototype,"expander",void 0);_.B([_.a4("#action-buttons"),_.S("design:type",Object)],XW.prototype,"actionButtons",void 0);_.B([_.a4("#edit-dialog"),_.S("design:type",HTMLElement)],XW.prototype,"editDialogEl",void 0);
_.B([_.qM("data.contentText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XW.prototype,"contentTextChanged",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XW.prototype,"dataChanged",null);_.B([_.qM("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XW.prototype,"isLoadingChanged",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],XW.prototype,"onYtNavigate",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XW.prototype,"onYtCommentboxDismiss",null);_.B([_.Kf("yt-comment-poll-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],XW.prototype,"onYtCommentPollRevert",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],XW.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],XW.prototype,"onYtServiceRequestCompleted",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],XW.prototype,"voteCount",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],XW.prototype,"commentCount",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],XW.prototype,"hasPoll",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],XW.prototype,"hasUploadedVideo",null);XW=_.B([_.e({is:"ytd-post-renderer",disableElementRegistration:!0})],XW);
_.G(XW,"ytd-post-renderer",function(){if(VqF!==void 0)return VqF;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return VqF=f},{mode:1});var pxt;var jRG;var hg=function(){return _.U.apply(this,arguments)||this};
_.y(hg,_.U);hg.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],hg.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],hg.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hg.prototype,"data",void 0);
_.B([_.I({value:"$.items.children"}),_.S("design:type",String)],hg.prototype,"itemsPath",void 0);_.B([_.I({value:1}),_.S("design:type",Number)],hg.prototype,"initialCount",void 0);_.B([_.I(),_.S("design:type",String)],hg.prototype,"surface",void 0);hg=_.B([_.e({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],hg);
_.G(hg,"ytd-post-multi-image-renderer",function(){if(jRG!==void 0)return jRG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return jRG=f},{mode:_.c7("kevlar_poly_si_batch_j079")?1:2});var D9E={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Z5=function(){var f=_.U.apply(this,arguments)||this;f.hasInlineCommentSection=!1;f.editDialog=null;f.isLoading=!1;f.shouldHideAuthor=!1;f.shouldShowVideoTime=!1;
f.isInEngagementPanel=!1;f.hideBorder=!1;f.usesFullLockup=!1;f.shouldShowMenuInCompactView=!1;f.JSC$13080_spinnerEl=null;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.y(Z5,_.U);_.X=Z5.prototype;_.X.configureRendererStamper=function(){return D9E};
_.X.computeIsPollHeaderEnabled=function(f){return(f==null?void 0:f.pollMetadataIcon)!=null};
_.X.getPublishTimeStampString=function(f,R){R=new Date((Number(R)-60*((new Date).getTimezoneOffset()-(new Date(Number(R)*1E3)).getTimezoneOffset()))*1E3);R=(new oL(10)).format(R);if(f&&f.runs&&f.runs.length)for(var u=0;u<f.runs.length;u++)f.runs[u].text&&(f.runs[u].text=f.runs[u].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",R));return f};
_.X.created=function(){this.JSC$13080_spinnerEl=null};
_.X.contentTextChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var f;if((f=this.data)==null?0:f.actions){f=_.Z(this.data.actions);for(var R=f.next();!R.done;R=f.next())this.openEditDialog(_.t(R.value,Pkk))}};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){_.b(this.hostElement).querySelector("#action-buttons").reply()};
_.X.updatePoll=function(f,R){R&&this.set("data.pollMetadataVoteCountText",R);this.hasInlineCommentSection&&(f=f>=0,R=_.b(this.hostElement).querySelector("#action-buttons"),f?R.reply():R.hideReplyDialog())};
_.X.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13080_spinnerEl||(this.JSC$13080_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.b(this.hostElement).appendChild(this.JSC$13080_spinnerEl));this.JSC$13080_spinnerEl&&(this.JSC$13080_spinnerEl.active=this.isLoading)};
_.X.onYtNavigate=function(f){var R=this.get("updateCommentDialogEndpoint",f.detail.endpoint);R&&(this.openEditDialog(R),f.stopPropagation())};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.onYtCommentPollRevert=function(f,R){R&&this.updatePoll(R.selectedChoiceIndex,R.totalVotes)};
_.X.onYtServiceRequestSent=function(f,R){f.stopPropagation();f=_.t(R.endpoint,cLt);if(_.t(R.endpoint,XmC)||f&&!f.clientActions)this.isLoading=!0;if(R.actions)for(f=0;f<R.actions.length;f++){var u=R.actions[f],O=_.t(u,yE);O&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u===void 0&&(u=-1),this.updatePoll(u,O.totalVotes))}};
_.X.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.X.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.editDialogElement.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.X.computeIsBodyHidden=function(f,R){return!!f||R};
_.Vy.Object.defineProperties(Z5.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var f,R;if((f=this.data)==null?0:(R=f.pollMetadataIcon)==null?0:R.iconType)return _.li(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.S8("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,I2G))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,WNY))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,EwI))}}});
Z5.prototype.onYtServiceRequestCompleted=Z5.prototype.onYtServiceRequestCompleted;Z5.prototype.onYtServiceRequestSent=Z5.prototype.onYtServiceRequestSent;Z5.prototype.onYtCommentPollRevert=Z5.prototype.onYtCommentPollRevert;Z5.prototype.onYtCommentboxDismiss=Z5.prototype.onYtCommentboxDismiss;Z5.prototype.onYtNavigate=Z5.prototype.onYtNavigate;Z5.prototype.isLoadingChanged=Z5.prototype.isLoadingChanged;Z5.prototype.dataChanged=Z5.prototype.dataChanged;Z5.prototype.contentTextChanged=Z5.prototype.contentTextChanged;
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Z5.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Z5.prototype,"rendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Z5.prototype,"rendererstamperBehavior",void 0);_.B([_.a4("#contentTextExpander"),_.S("design:type",Object)],Z5.prototype,"expander",void 0);
_.B([_.a4("#edit-dialog"),_.S("design:type",Element)],Z5.prototype,"editDialogElement",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"hasInlineCommentSection",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"editDialog",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"isLoading",void 0);
_.B([_.I({computed:"computeIsPollHeaderEnabled(data)"}),_.S("design:type",Boolean)],Z5.prototype,"isPollHeaderEnabled",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"shouldHideAuthor",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"shouldShowVideoTime",void 0);_.B([_.I(),_.S("design:type",Object)],Z5.prototype,"isInEngagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Z5.prototype,"hideBorder",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Z5.prototype,"usesFullLockup",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Z5.prototype,"shouldShowMenuInCompactView",void 0);_.B([_.T("isInEngagementPanel"),_.S("design:type",Number),_.S("design:paramtypes",[])],Z5.prototype,"postTextMaxLines",null);_.B([_.T("data.icon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z5.prototype,"pollIcon",null);
_.B([_.qM("data.contentText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Z5.prototype,"contentTextChanged",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Z5.prototype,"dataChanged",null);_.B([_.qM("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Z5.prototype,"isLoadingChanged",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Z5.prototype,"onYtNavigate",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Z5.prototype,"onYtCommentboxDismiss",null);_.B([_.Kf("yt-comment-poll-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Z5.prototype,"onYtCommentPollRevert",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],Z5.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Z5.prototype,"onYtServiceRequestCompleted",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z5.prototype,"voteCount",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z5.prototype,"commentCount",null);_.B([_.T("data.backstageAttachment"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Z5.prototype,"hasPoll",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Z5.prototype,"hasQuiz",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Z5.prototype,"hasUploadedVideo",null);
Z5=_.B([_.e({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Z5);
_.G(Z5,"ytd-backstage-post-renderer",function(){if(pxt!==void 0)return pxt;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pxt=f},{mode:1});var JDY;var ls=function(){var f=_.U.apply(this,arguments)||this;f.editDialog=null;f.showExpandButton=!1;f.isRichGrid=!1;f.usesFullLockup=!1;return f};
_.y(ls,_.U);_.X=ls.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.X.computeShowExpandButton=function(f){return this.usesCompactLockup||f&&f.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.X.computeUsesCompactLockup=function(f){return!!f.condensedContent};
_.X.computeShowFullContentText=function(f){return!f};
_.X.onYtNavigate=function(f){f=this.get("updateCommentDialogEndpoint",f.detail.endpoint);this.openEditDialog(f)};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.repostEditDialogEl.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.X.onTap=function(f){if(this.data){var R=null;this.usesCompactLockup&&!_.$G(_.$S(f)||[],this.hostElement,["YT-IMG-SHADOW"])?R=this.get("navigationEndpoint",this.data):f.target===this.moreButtonEl&&(R=this.get("navigationEndpoint",f.target.data));R&&_.ul(this.hostElement,"yt-navigate",{endpoint:R})}};
ls.prototype.onYtCommentboxDismiss=ls.prototype.onYtCommentboxDismiss;ls.prototype.onYtNavigate=ls.prototype.onYtNavigate;ls.prototype.dataChanged=ls.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ls.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],ls.prototype,"editDialog",void 0);_.B([_.I({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],ls.prototype,"usesCompactLockup",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ls.prototype,"showExpandButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ls.prototype,"isRichGrid",void 0);
_.B([_.I({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.S("design:type",Boolean)],ls.prototype,"showFullContentText",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ls.prototype,"usesFullLockup",void 0);_.B([_.a4("#more"),_.S("design:type",Object)],ls.prototype,"moreButtonEl",void 0);_.B([_.a4("#repost-content-text"),_.S("design:type",HTMLElement)],ls.prototype,"repostContentTextEl",void 0);
_.B([_.a4("#repost-edit-dialog"),_.S("design:type",HTMLElement)],ls.prototype,"repostEditDialogEl",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ls.prototype,"dataChanged",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ls.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ls.prototype,"onYtCommentboxDismiss",null);ls=_.B([_.e({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],ls);
_.G(ls,"ytd-shared-post-renderer",function(){if(JDY!==void 0)return JDY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return JDY=f},{mode:1});var zbH;var TMk;var kQ=function(){return _.U.apply(this,arguments)||this};
_.y(kQ,_.U);kQ.prototype.attached=function(){var f=this;this.networkStatusManager||(this.networkStatusManager=new _.$M,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){f.onlineHandler()}))};
kQ.prototype.detached=function(){var f=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){f.onlineHandler()}),delete this.networkStatusManager)};
kQ.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],kQ.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kQ.prototype,"data",void 0);kQ=_.B([_.e({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],kQ);
_.G(kQ,"ytd-reload-page-button-renderer",function(){if(TMk!==void 0)return TMk;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return TMk=f},{mode:1});var H4C={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"},KO=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(KO,_.U);_.X=KO.prototype;_.X.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.X.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.X.computeHasBodyText=function(f){return!!f.bodyText};
_.X.computeButtons=function(f){var R=[];f.ctaButton&&R.push(f.ctaButton);f.secondaryButton&&R.push(f.secondaryButton);return R};
_.X.computeRendererStyle=function(f){return f.style?f.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():f.icon?"":"no-icon"};
_.X.getIconName=function(f,R){R=R===void 0?!1:R;if(f===void 0)return"";f=this.get("icon.iconType",f);var u;_.E("enable_hlp_client_icon_pick")?u=this.getThemedIcon(f,R):u=f;(R=H4C[u])||(R="yt-icons");return[R,u].join(":")};
_.X.getThemedIcon=function(f,R){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(f)?R?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(f)?R?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":f};
_.X.isThumbnail=function(f){return!!f.thumbnail};
_.X.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],KO.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],KO.prototype,"data",void 0);
_.B([_.I({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],KO.prototype,"rendererStyle",void 0);_.B([_.I({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.S("design:type",String)],KO.prototype,"iconName",void 0);_.B([_.I({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],KO.prototype,"thumbnail",void 0);_.B([_.I({computed:"computeButtons(data)"}),_.S("design:type",Array)],KO.prototype,"buttons",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KO.prototype,"isDarkTheme",void 0);_.B([_.I({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],KO.prototype,"hasBodyText",void 0);KO=_.B([_.e({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],KO);
_.G(KO,"ytd-background-promo-renderer",function(){if(zbH!==void 0)return zbH;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zbH=f},{mode:1});var IiI;var qE=function(){var f=_.U.apply(this,arguments)||this;f.collections=_.E("web_modern_collections_v2");return f};
_.y(qE,_.U);_.Vy.Object.defineProperties(qE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c,h;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(R=f.thumbnail)==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.vibrantColorPalette,darkColorPalette:(c=this.data)==null?void 0:(h=c.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qE.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],qE.prototype,"collections",void 0);_.B([_.T("data","collections"),_.S("design:type",Object),_.S("design:paramtypes",[])],qE.prototype,"collectionStack",null);qE=_.B([_.e({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],qE);
_.G(qE,"ytd-compact-station-renderer",function(){if(IiI!==void 0)return IiI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return IiI=f},{mode:1});var M_E;var Ag=function(){var f=_.U.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.y(Ag,_.U);Ag.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]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ag.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ag.prototype,"isRichGrid",void 0);Ag=_.B([_.e({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Ag);
_.G(Ag,"ytd-grid-channel-renderer",function(){if(M_E!==void 0)return M_E;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return M_E=f},{mode:1});var PFi;var aE=function(){return _.U.apply(this,arguments)||this};
_.y(aE,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aE.prototype,"data",void 0);aE=_.B([_.e({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],aE);
_.G(aE,"ytd-grid-movie-playlist-renderer",function(){if(PFi!==void 0)return PFi;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return PFi=f},{mode:1});var U9l;var FW=function(){var f=_.U.apply(this,arguments)||this;f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.modernButtons=_.E("web_modern_buttons");f.useModernCollectionsV2=_.E("web_modern_collections_v2");return f};
_.y(FW,_.U);FW.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
FW.prototype.configureRendererStamper=function(){return{"data.menu":KY}};
FW.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
FW.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.E("woffle_playlist_renderer_killswitch")){var f,R=kCB(this.entityInfo,this.transferState,this.downloadProgress,(f=this.data)==null?void 0:f.playlistId,this.isOnline);f=R.viewPlaylistText;var u=R.badges;R=R.thumbnailOverlays;this.isDownloads=!!f||!!u;this.set("data.viewPlaylistText",f);u&&u.length>0&&this.set("data.badges",u);R&&R.length>0&&this.set("data.thumbnailOverlays",
R)}};
_.Vy.Object.defineProperties(FW.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 f;return!((f=this.data)==null?0:f.menu)}}});
FW.prototype.transferStateChanged=FW.prototype.transferStateChanged;FW.prototype.dataChanged=FW.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],FW.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],FW.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I({selector:_.NSl,selectorArgs:["data.playlistId"]}),_.S("design:type",Object)],FW.prototype,"downloadProgress",void 0);_.B([_.I({selector:_.HW,selectorArgs:["data.playlistId"]}),_.S("design:type",Object)],FW.prototype,"transferState",void 0);_.B([_.I({selector:dit,selectorArgs:["data.playlistId"]}),_.S("design:type",Object)],FW.prototype,"entityInfo",void 0);_.B([_.I({selector:QYl}),_.S("design:type",Boolean)],FW.prototype,"isOnline",void 0);
_.B([_.I(),_.S("design:type",Object)],FW.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],FW.prototype,"downloadRenderData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],FW.prototype,"modernButtons",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],FW.prototype,"isDownloads",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FW.prototype,"useModernCollectionsV2",void 0);
_.B([_.T("transferState"),_.I({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],FW.prototype,"downloadState",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],FW.prototype,"menuHidden",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FW.prototype,"dataChanged",null);
_.B([_.QR("transferState","downloadProgress","isOnline"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FW.prototype,"transferStateChanged",null);FW=_.B([_.e({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],FW);
_.G(FW,"ytd-grid-playlist-renderer",function(){if(U9l!==void 0)return U9l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return U9l=f},{mode:1});var ebH;var wb=function(){var f=_.U.apply(this,arguments)||this;f.collections=_.E("web_modern_collections_v2");return f};
_.y(wb,_.U);wb.prototype.configureRendererStamper=function(){return{"data.menu":KY,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Vy.Object.defineProperties(wb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c,h;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(R=f.thumbnail)==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.vibrantColorPalette,darkColorPalette:(c=this.data)==null?void 0:(h=c.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],wb.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],wb.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wb.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],wb.prototype,"collections",void 0);_.B([_.T("data","collections"),_.S("design:type",Object),_.S("design:paramtypes",[])],wb.prototype,"collectionStack",null);wb=_.B([_.e({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],wb);
_.G(wb,"ytd-grid-radio-renderer",function(){if(ebH!==void 0)return ebH;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ebH=f},{mode:1});var G3k;var mm=function(){var f=_.U.apply(this,arguments)||this;f.useModernCollectionsV2=_.E("web_modern_collections_v2");return f};
_.y(mm,_.U);mm.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
mm.prototype.computeNavigationEndpoint=function(f){return ow2(f==null?void 0:f.navigationEndpoint)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],mm.prototype,"ytdLockupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mm.prototype,"data",void 0);_.B([_.I({computed:"computeNavigationEndpoint(data)"}),_.S("design:type",Object)],mm.prototype,"computedNavigationEndpoint",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],mm.prototype,"useModernCollectionsV2",void 0);mm=_.B([_.e({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],mm);
_.G(mm,"ytd-grid-show-renderer",function(){if(G3k!==void 0)return G3k;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return G3k=f},{mode:1});var BMG;_.QG=function(f){this.playerClient=f};
_.o2A=function(f,R,u){u=u===void 0?{}:u;return f.playerClient.setOption("ad",R,u)};
_.QG.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.QG.prototype.executeCommand=function(f,R){this.getOptions().includes("executeCommand")?_.o2A(this,"executeCommand",{command:f,layoutId:R}):_.rW("Calling executeCommand when adModule is not loaded")};var Wp=function(){return _.U.apply(this,arguments)||this};
_.y(Wp,_.U);Wp.prototype.getLayoutId=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
Wp.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var f=_.Vm(),R=this.getLayoutId(),u=this.data.clickthroughEndpoint;f&&R&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(O){(new _.QG(O)).executeCommand(u,R)}):_.ul(this.hostElement,"yt-navigate",{endpoint:u})}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Wp.prototype,"data",void 0);Wp=_.B([_.e({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Wp);
_.G(Wp,"ytd-shopping-companion-item-renderer",function(){if(BMG!==void 0)return BMG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return BMG=f},{mode:1});var x9A;var CO=function(){var f=_.U.apply(this,arguments)||this;f.isExpandableContent=!1;return f};
_.y(CO,_.U);_.Vy.Object.defineProperties(CO.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?void 0:f.price)||((R=this.data)==null?void 0:(u=R.dealsData)==null?void 0:u.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var f,R;if((f=this.data)!=null&&f.dealsData&&((R=this.data)==null||!R.priceReplacementText)){f=this.data.dealsData;var u,O,c;return((u=f.salesData)==null?void 0:u.originalPrice)||((O=f.priceDropData)==null?void 0:O.referencePrice)||((c=f.promotionData)==null?void 0:c.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var f,R;return(f=this.data)==null?void 0:(R=f.dealsData)==null?void 0:R.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],CO.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],CO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],CO.prototype,"isExpandableContent",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"showCta",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"ctaText",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"hasPriceTopPosition",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"hasPriceBottomPosition",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"useNewStyle",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"showPriceReplacementText",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"priceValue",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"showDeal",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"showAffiliateDisclaimer",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"useSaleStyle",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"useFromBrandCtaStyle",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"useFromVendorCtaStyle",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"useShoppingCollectionCtaStyle",null);CO=_.B([_.e({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],CO);
_.G(CO,"ytd-vertical-product-card-renderer",function(){if(x9A!==void 0)return x9A;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return x9A=f},{mode:1});var SKk;var yG=function(){return _.U.apply(this,arguments)||this};
_.y(yG,_.U);yG.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],yG.prototype,"ytdLockupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yG.prototype,"data",void 0);yG=_.B([_.e({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],yG);
_.G(yG,"ytd-grid-movie-renderer",function(){if(SKk!==void 0)return SKk;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return SKk=f},{mode:1});var $9A;var db=function(){var f=_.U.apply(this,arguments)||this;f.rounded=!0;f.itemStyle="small-item";return f};
_.y(db,_.U);db.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var f,R,u,O,c=(R=_.t((f=this.data)==null?void 0:f.buttonCommand,_.QE))==null?void 0:(u=R.item)==null?void 0:(O=u.notificationTextRenderer)==null?void 0:O.successResponseText;c&&_.iln(this.hostElement,c)}};
_.Vy.Object.defineProperties(db.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.isProductPlaceholder)!==void 0&&((R=this.data)==null?void 0:R.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],db.prototype,"rounded",void 0);_.B([_.I(),_.S("design:type",Object)],db.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],db.prototype,"itemStyle",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"hasPrice",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"hasPriceReplacementText",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"hasAdditionalFeesText",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"hasAffiliateDisclaimer",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"isProductPlaceholder",null);
_.B([_.I(),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"hideOpenInNewIcon",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],db.prototype,"ariaLabel",null);db=_.B([_.e({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],db);
_.G(db,"ytd-merch-shelf-item-renderer",function(){if($9A!==void 0)return $9A;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $9A=f},{mode:1});var g2A=_.nf(function(f){var R=_.sW();_.xO(R,function(){return f.data().rendererContext});
return _.a("button-card-view-model",{el:R,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return f.data().title},
role:"button"},_.a(_.CL,{model:{}}),_.a("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.a("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.a(_.Q,{cond:function(){return f.data().image},
then:function(u){return _.a(_.gR,{data:u,alt:function(){var O;return(O=f.data().title)!=null?O:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.a("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return f.data().title})))},"Ya");_.E("web_button_view_model_wcw_registration_killswitch")||_.ii(g2A,"button-card-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){f=_.sU(f,{className:void 0});var R=f.data;f=f.className;var u=_.Qt(function(){return R().onTapCommand},void 0,"NprDr");
return _.a("ytd-shopping-item-card",{class:_.KL("ytdShoppingItemCardHost",f)},_.a(_.cd,{command:u,className:"ytdShoppingItemCardHostLink"},_.a("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.a(_.y5,{data:function(){return R().thumbnailViewModel}},{thumbnailViewModel:function(O){return _.a(_.si,{data:O.data,
aspectRatio:3})}})),_.a("div",null,_.a("p",{class:"ytdShoppingItemCardHostItemTitle"},_.a(_.YO,{text:function(){return R().itemTitle}})),_.a("p",{class:"ytdShoppingItemCardHostPrice"},_.a(_.YO,{text:function(){return R().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.SG,
className:_.SG}});var sRY={isAdsVideo:!0},n2E={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},V_C={showPlayerControls:!1,videoPreviewDurationMs:15E3},YKA={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.E("web_shorts_imp_fullwidth_killswitch")};var Rm=null,r30={};var u20="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(" "),NE={},O2h=(NE.FEwhat_to_watch="home",NE.FEhashtag="hashtag",NE.FEtrending="trending",NE.FEhistory="history",NE.SPunlimited="premium",NE.FEmemberships_and_purchases="paid_memberships",NE.SPredeem_code="redeem",NE.SPverify_location="locate",NE.SPminor_moment="minor_moment",
NE.FEmini_app_container="mini_app",NE.FEnews_destination="news",NE.SPopen_in_app="open_in_app",NE.FEexplore="explore",NE.FEsubscriptions="subscriptions",NE.FEsfv_audio_pivot="sfv_audio_pivot",NE.FEplaylist_aggregation="playlist_aggregation",NE);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");_.ll("init");var v2k=function(){},RiY=_.nf(function(f){var R=f.data;
var u=f.inlineMetadata;var O=f.aspectRatio;var c=f.scrimStyle;var h=f.className;var l=f.useDefaultStyle;var K=new v2k,q=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=_.Qt(function(){return(l==null?0:l())?q==="SHORTS_LOCKUP_STYLE_SLIM":R().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),w=_.Qt(function(){return _.Jy(u)||F()||!1},void 0,"pcPnBf"),m=function(){return(c==null?void 0:c())!==void 0?c==null?void 0:c():1},W=_.Qt(function(){return R().belowThumbnailMetadata||
!w()},void 0,"kD5Ezd");
f=_.sW(function(fh){K&&(K.hostElement=fh,J())});
_.fT(f,{visibilityCallback:function(fh){var V=R().onFirstVisible;fh&&V&&_.Ux(V)},
showOption:{calledOnce:!0,state:"visible"}});h=_.KL("shortsLockupViewModelHost",h);var C=_.sW(),d={};d=_.KL(function(){return F(),"shortsLockupViewModelHostThumbnailContainer"},(d.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Jy(O)===1},d.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Jy(O)===2},d.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!F()},d.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.E("web_shorts_2_by_3_lockups_study")&&!_.E("desktop_search_enable_two_by_three_shorts_aspect_ratio")},d));
var p,J=function(){if(K){var fh;(fh=p)==null||uk(fh);var V;K.hostElement&&((V=K.data)==null?0:V.inlinePlayerData)&&(p=$O({mediaRenderer:K,lockupElement:K.hostElement,thumbnailElement:C.value,videoPreviewOpts:YKA}))}};
_.pc(function(){K&&(K.data=R(),J())});
var M=_.Qt(function(){return R().thumbnail},void 0,"lSQpvc"),P=_.Qt(function(){return R().badge},void 0,"lzAzld"),g=_.Qt(function(){return R().onTap},void 0,"dBv6Dc"),x={};
return _.a("ytm-shorts-lockup-view-model",{el:f,class:h},_.a(_.RS,null,_.a(_.cd,{command:g,className:_.KL("shortsLockupViewModelHostEndpoint",(x.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!W()},x),"reel-item-endpoint",""),
ariaHidden:function(){return!w()},
tabIndex:function(){return w()?0:-1}},_.a("div",{el:C,
class:d},_.a(_.Q,{cond:M,then:function(){return _.a(_.gR,{data:function(){var fh;return(fh=M==null?void 0:M())!=null?fh:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.a(_.Q,{cond:w,
then:function(){return _.a(i4Y,{data:R,scrimStyle:m,useDefaultStyle:l})}}),_.a(_.y5,{data:P},{badgeViewModel:function(fh){return _.a(_.vP,{data:fh.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.a(_.Q,{cond:function(){return w()&&R().menuOnTap},
then:function(){return _.a(rDG,{data:R,inlineMetadata:!0})}}),_.a(_.Q,{cond:W,
then:function(){return _.a(fgG,{data:R,useDefaultStyle:l})}})))},"$a"),i4Y=_.nf(function(f){var R=f.data;
var u=f.scrimStyle;var O=f.useDefaultStyle;var c=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",h=O&&_.E("web_hide_primary_text_for_pivot_panel"),l=_.Qt(function(){return(O==null?0:O())?c==="SHORTS_LOCKUP_STYLE_SLIM":R().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"omtppd");
f={};f=_.KL("shortsLockupViewModelHostInlineMetadata",(f.shortsLockupViewModelHostMetadataRounded=function(){return!l()},f.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(u==null?void 0:u())===3&&!_.E("enable_shorts_lockup_new_scrim")},f.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(u==null?void 0:u())===3&&_.E("enable_shorts_lockup_new_scrim")},f.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(u==null?void 0:u())===2||(u==null?void 0:
u())===4},f.shortsLockupViewModelHostShowOverPlayer=function(){return!0},f),"image-overlay-text");
var K={};return _.a("div",{class:f},_.a("h3",{class:_.KL("shortsLockupViewModelHostMetadataTitle",(K.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(u==null?void 0:u())===4},K)),
"aria-label":function(){return R().accessibilityText}},_.a(_.Q,{cond:function(){var q;
return!((q=R().overlayMetadata)==null||!q.primaryText)&&!h},
then:function(){return _.a(_.YO,{text:function(){var q;return(q=R().overlayMetadata)==null?void 0:q.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.a(_.Q,{cond:function(){var q;
return(q=R().overlayMetadata)==null?void 0:q.secondaryText},
then:function(){return _.a(umC,{data:R,scrimStyle:u,className:void 0})}}))},"ab"),fgG=_.nf(function(f){var R=f.data;
var u=f.useDefaultStyle;var O=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",c=_.Qt(function(){return(u==null?0:u())?O==="SHORTS_LOCKUP_STYLE_SLIM":R().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"UqZ2nd");
f=_.KL(function(){return c()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var h,l=_.Ff(function(){var F;(F=h)==null||F.click();return!1}),K=_.Qt(function(){return R().belowThumbnailMetadata||R().overlayMetadata},void 0,"OEI6Pc"),q={};
return _.a("div",{class:f,"on:click":l},_.a("h3",{class:_.KL("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(q.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var F,w;return!((F=K())==null?0:(w=F.primaryText)==null?0:w.content)},q)),
"aria-label":function(){return R().accessibilityText}},_.a(_.cd,{ref:function(F){return void(h=F)},
command:function(){return R().onTap},
className:_.KL("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var F,w;return(F=K())==null?void 0:(w=F.primaryText)==null?void 0:w.content}},_.a(_.Q,{cond:function(){var F;
return(F=K())==null?void 0:F.primaryText},
then:function(F){return _.a(_.YO,{text:F,noEndpoints:!0,noStyleRuns:!0})}}))),_.a(_.Q,{cond:function(){var F;
return(F=K())==null?void 0:F.secondaryText},
then:function(F){return _.a("div",{class:_.KL("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.a(_.YO,{text:F,noStyleRuns:!0}))}}),_.a(_.Q,{cond:function(){return R().menuOnTap},
then:function(){return _.a(rDG,{data:R,inlineMetadata:!1})}}))},"bb"),umC=_.nf(function(f){var R=f.data;
var u=f.scrimStyle;f=f.className;var O={};return _.a("div",{class:_.KL((O.shortsLockupViewModelHostMetadataSubhead=function(){return(u==null?void 0:u())!==4},O.shortsLockupViewModelHostMetadataSubheadNew=_.E("enable_shorts_lockup_new_scrim"),O.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(u==null?void 0:u())===4},O),f),
"aria-hidden":"true"},_.a(_.YO,{text:function(){var c;return(c=R().overlayMetadata)==null?void 0:c.secondaryText},
noStyleRuns:!0}))},"cb"),rDG=_.nf(function(f){var R=f.data;
var u=f.inlineMetadata;f={};f=_.KL((f.shortsLockupViewModelHostInlineMetadataMenu=function(){return u()},f.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!u()},f.shortsLockupViewModelHostShowOverPlayer=function(){return!0},f),"image-overlay-text");
return _.a("div",{class:f},_.a(iA,{data:function(){return{style:u()?"overlay":"mono",accessibilityLabel:R().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(O){O.preventDefault();O.stopPropagation();var c=_.MO({elementsCommand:R().menuOnTap,forceNewState:!0});if(c==null?0:c.onclick)c.onclick(O)}}},
iconName:"MORE_VERT"}))},"db");var OlF=_.nf(function(f){var R=f.data;var u=f.inlineMetadata;var O=f.aspectRatio;var c=f.scrimStyle;var h=f.className;var l=f.useDefaultStyle;f=_.Qt(function(){var K=R().entityId;return K?K.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.a("ytm-shorts-lockup-view-model-v2",{class:_.KL("shortsLockupViewModelHost",h)},_.a(_.wxG,{contentId:f,aspectRatio:function(){return(O==null?void 0:O())===1?1:(O==null?void 0:O())===2?2:4}},function(){return _.a(RiY,{data:R,
inlineMetadata:u,aspectRatio:O,scrimStyle:c,className:h,useDefaultStyle:l})}))},"eb");_.ii(OlF,"ytm-shorts-lockup-view-model-v2",{props:{data:_.v7,inlineMetadata:_.v7,aspectRatio:_.v7,scrimStyle:_.v7,className:_.v7,useDefaultStyle:_.v7}});var c3i=16/9*210,LO=function(){var f=_.U.apply(this,arguments)||this;f.isExpandableContent=!1;f.hideShelfHeader=!1;f.engagementPanel=!1;f.buttonClasses=["arrow"];f.isSearch=!1;f.disableScrollEventListener=!1;f.containsLockup=!1;f.overrideArrowPositionForProductCard=!1;f.overrideArrowPositionForShoppingItemCard=!1;f.overrideArrowPositionForReelItems=!1;f.overrideArrowPositionForGridMovie=!1;f.overrideArrowPositionToCenter=!1;f.isSearchPostShelf=!1;f.overrideArrowPositionForMixedShelf=!1;f.overrideArrowPositionForMixedShelfShortsOnly=
!1;f.hasBigThumbsReelItems=!1;f.shouldUseMixedListHeight=!1;f.shouldUseShortsListHeight=!1;f.gridVideoWidth=0;f.isSearchVodShelf=!1;f.disableWheelScroll=!1;f.sizing="COMPACT";f.shortsLockupAspectRatio=0;return f};
_.y(LO,_.U);_.X=LO.prototype;
_.X.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]]"}}}}};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.E("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.X.computeInitialCountNumber=function(f){if(!f)return 6;var R=f.items.some(function(h){return!!h.topicRecommendationsChipRenderer}),u=f.items.some(function(h){return!!h.displayAdRenderer}),O=this.computeShouldListItemsHaveEqualHeight(f),c=f.items.some(function(h){return!!h.gridPlaylistRenderer});
f=f.items.some(function(h){return!!h.shoppingItemCardViewModel});
return R?9:u?8:c||O?10:f?7:6};
_.X.computeContainsPost=function(f){return!!f&&!!f.items&&f.items.some(function(R){return!!R.postRenderer})};
_.X.computeContainsLockup=function(){if(_.E("web_horizontal_list_lockup_arrow_killswitch"))return!1;var f,R;return(f=this.data)==null?void 0:(R=f.items)==null?void 0:R.some(function(u){return!!u.lockupViewModel})};
_.X.maybeUpdateLockupAspectRatio=function(){var f,R;if(this.computeContainsLockup()&&((f=this.data)==null?0:(R=f.items)==null?0:R.length)){var u;f=kGn((u=this.data.items[0].lockupViewModel)==null?void 0:u.contentType,this.data.force16By9ThumbnailAspectRatio);u=TXl(f);u=this.computeLockupWidth()/u;_.ZO(this.hostElement,{"--yt-horizontal-list-content-height":u+"px"})}};
_.X.computeOverrideArrowPositionForProductCard=function(f){if(this.isExpandableContent)return!1;var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){return!!u.verticalProductCardRenderer}))};
_.X.computeOverrideArrowPositionForShoppingItemCard=function(f){var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){return!!u.shoppingItemCardViewModel}))};
_.X.computeOverrideArrowPositionForReelItemRenderer=function(f){return this.containsReelItemRenderer(f)};
_.X.computeHasBigThumbsReelItems=function(f,R){return f&&this.containsReelItemRenderer(R)};
_.X.computeShouldListItemsHaveEqualHeight=function(f){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(f==null?void 0:f.itemSizeConstraint)};
_.X.computeShouldListItemsHaveShortsHeight=function(f){return this.computeShouldListItemsHaveEqualHeight(f)&&!this.containsGridVideoRenderer(f)};
_.X.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.X.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.X.containsReelItemRenderer=function(f){var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){return!(!u.reelItemRenderer&&!u.shortsLockupViewModel)}))};
_.X.containsGridVideoRenderer=function(f){var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){return!!u.gridVideoRenderer||!!u.lockupViewModel}))};
_.X.computeContainsGridMovieRenderer=function(f){var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){return!!u.gridMovieRenderer}))};
_.X.computeOverrideArrowPositionToCenter=function(f){return this.computeIsSearchPostShelf(f)};
_.X.computeIsSearchPostShelf=function(f){var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){var O,c;return((c=(O=u.postRenderer)==null?void 0:O.surface)!=null?c:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.X.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(f){var R;return!!(f==null?0:(R=f.items)==null?0:R.some(function(u){var O,c,h;return((h=(O=u.backgroundPromoRenderer)==null?void 0:(c=O.style)==null?void 0:c.value)!=null?h:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.X.computeIsSearchVodShelf=function(f,R){return f&&this.containsGridVideoRenderer(R)};
_.X.computeDisableWheelScroll=function(f,R){return this.computeIsSearchVodShelf(f,R)};
_.X.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.X.computeShortsLockupAspectRatio=function(f){return f&&_.E("web_shorts_2_by_3_lockups_no_search")&&!_.E("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.X.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.ZO(this.hostElement,{"--ytd-reel-item-thumbnail-height":c3i+"px"})};
LO.prototype.dataChanged=LO.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],LO.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LO.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],LO.prototype,"isExpandableContent",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"hideShelfHeader",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"engagementPanel",void 0);_.B([_.I(),_.S("design:type",Array)],LO.prototype,"buttonClasses",void 0);_.B([_.I(),_.S("design:type",Object)],LO.prototype,"isSearch",void 0);
_.B([_.I(),_.S("design:type",Object)],LO.prototype,"disableScrollEventListener",void 0);_.B([_.I({computed:"computeInitialCountNumber(data)"}),_.S("design:type",Number)],LO.prototype,"initialCount",void 0);_.B([_.I({computed:"computeContainsPost(data)"}),_.S("design:type",Boolean)],LO.prototype,"supportComponentResize",void 0);_.B([_.I({computed:"computeContainsPost(data)"}),_.S("design:type",Boolean)],LO.prototype,"containsPost",void 0);
_.B([_.I({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"containsLockup",void 0);_.B([_.I({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],LO.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.B([_.I({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionForProductCard",void 0);_.B([_.I({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.B([_.I({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionForReelItems",void 0);_.B([_.I({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionForGridMovie",void 0);
_.B([_.I({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionToCenter",void 0);_.B([_.I({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"isSearchPostShelf",void 0);_.B([_.I({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.B([_.I({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.B([_.I({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"hasBigThumbsReelItems",void 0);
_.B([_.I({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"shouldUseMixedListHeight",void 0);_.B([_.I({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"shouldUseShortsListHeight",void 0);_.B([_.I({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"gridVideoWidth",void 0);
_.B([_.I({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"isSearchVodShelf",void 0);_.B([_.I({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.S("design:type",Object)],LO.prototype,"disableWheelScroll",void 0);_.B([_.I({computed:"computeSizing(isSearch)"}),_.S("design:type",Object)],LO.prototype,"sizing",void 0);
_.B([_.I({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.S("design:type",Object)],LO.prototype,"shortsLockupAspectRatio",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LO.prototype,"dataChanged",null);
_.G(LO,"yt-horizontal-list-renderer",function(){if(lQi===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);lQi=f}f=lQi;return f},{mode:1});var XUl;var hiH=[10,12,14,16,18,20,24,28,32,36],Zlf=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],bs=function(){var f=_.U.apply(this,arguments)||this;f.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";f.hideOverflow=!1;f.useRoboto=!1;f.fontClass="";f.overflown=!1;f.actionMap={"yt-window-resized":"resize"};return f};
_.y(bs,_.U);_.X=bs.prototype;
_.X.attached=function(){var f=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();_.su(this,function(){f.resize()});
if(!_.O0){var R,u,O;(R=document)==null||(u=R.fonts)==null||(O=u.ready)==null||O.then(function(){f.resize()})}};
_.X.dataChanged=function(){this.resize()};
_.X.guideIsExpandedChanged=function(){this.resize()};
_.X.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 f=this.getMaxNumLines(),R=this.getMinFont(),u=this.getMaxFont(),O=this.useRoboto?hiH:Zlf;for(O=O.filter(function(h){return h<=u&&h>=R});O.length>1;){var c=Math.floor(O.length/2);
this.updateFontSize(O[c]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=f)O=O.slice(c,O.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>f)O=O.slice(0,c);else break}this.updateFontSize(O[O.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(f)}};
_.X.handleOverflow=function(f){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>f&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",f.toString()))};
_.X.updateFontSize=function(f){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+f;this.textNode.classList.add(this.fontClass)};
_.X.getMaxFont=function(){var f=this.useRoboto?hiH:Zlf;f=f[f.length-1];return this.maxFontSize&&this.maxFontSize<=f?this.maxFontSize:f};
_.X.getMinFont=function(){var f=(this.useRoboto?hiH:Zlf)[0];return this.minFontSize&&this.minFontSize>=f?this.minFontSize:f};
_.X.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.X.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.X.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.$Z(this.text).split("\n").length-1:Infinity};
_.X.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("Eh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
bs.prototype.guideIsExpandedChanged=bs.prototype.guideIsExpandedChanged;bs.prototype.dataChanged=bs.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],bs.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],bs.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bs.prototype,"text",void 0);
_.B([_.I(),_.S("design:type",String)],bs.prototype,"fontFamily",void 0);_.B([_.I(),_.S("design:type",Number)],bs.prototype,"maxWidth",void 0);_.B([_.I(),_.S("design:type",Number)],bs.prototype,"maxHeight",void 0);_.B([_.I(),_.S("design:type",Number)],bs.prototype,"maxFontSize",void 0);_.B([_.I(),_.S("design:type",Number)],bs.prototype,"minFontSize",void 0);_.B([_.I(),_.S("design:type",Number)],bs.prototype,"maxLines",void 0);_.B([_.I(),_.S("design:type",Object)],bs.prototype,"hideOverflow",void 0);
_.B([_.I({selector:_.qd7}),_.S("design:type",Boolean)],bs.prototype,"guideIsExpanded",void 0);_.B([_.a4("#container"),_.S("design:type",HTMLElement)],bs.prototype,"containerNode",void 0);_.B([_.a4("#text"),_.S("design:type",HTMLElement)],bs.prototype,"textNode",void 0);_.B([_.QR("text"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bs.prototype,"dataChanged",null);
_.B([_.QR("guideIsExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bs.prototype,"guideIsExpandedChanged",null);bs=_.B([_.e({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],bs);
_.G(bs,"yt-dynamic-sizing-formatted-string",function(){if(XUl!==void 0)return XUl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return XUl=f},{mode:1});var lgI;_.kGi=function(f){_.R7.call(this,f)};
_.y(_.kGi,_.R7);var Kgf=function(f){_.R7.call(this,f)};
_.y(Kgf,_.kGi);var pO=function(){return _.U.apply(this,arguments)||this};
_.y(pO,_.U);pO.prototype.onTapSuspendedChannel=function(){var f;if((f=this.data)!=null&&f.serviceEndpoint){var R,u;(f=(u=_.t((R=this.data)==null?void 0:R.serviceEndpoint,_.oh))==null?void 0:u.url)?_.G$(f,void 0,void 0,window.top):(R=new Kgf("Did not handle suspended account tap. No appealUrl."),_.TL(R))}else R=new Kgf("Did not handle suspended account tap. No serviceEndpoint."),_.TL(R)};
pO.prototype.onTap=function(){var f=this,R=_.wR(),u,O=(u=_.Fy(R,{veType:7116}))!=null?u:void 0;_.MI(R,{visualElement:O});_.Uy();this.saveRoleText();var c;if((c=this.data)==null?0:c.youtubeSuspended)this.onTapSuspendedChannel();else{var h=!1,l,K;(R=(K=_.t((l=this.data)==null?void 0:l.serviceEndpoint,_.qTl))==null?void 0:K.supportedTokens)&&R.forEach(function(q){if(q.accountSigninToken)if(h=!0,f.onAccountItemTap)f.onAccountItemTap(q.accountSigninToken.signinUrl);else _.G$(q.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!h){if(l=this.get("serviceEndpoint",this.data))h=!0,this.ytComponentBehavior.resolveCommand(l);h||_.H5(new Kgf("Did not handle account switch tap. No token."))}}};
pO.prototype.saveRoleText=function(){if(this.data){var f=this.data,R=f.channelDelegationRole;if(R){var u,O=(u=_.t(f==null?void 0:f.serviceEndpoint,_.qTl))==null?void 0:u.supportedTokens;if(!O){var c,h,l,K;O=(c=_.t(f==null?void 0:f.serviceEndpoint,_.dS))==null?void 0:(h=c.popup)==null?void 0:(l=h.confirmDialogRenderer)==null?void 0:(K=l.confirmButton)==null?void 0:K.buttonRenderer;var q;O=(q=_.t(O==null?void 0:O.command,_.kE))==null?void 0:q.commands;if(!O)return;var F;O=(F=_.t(O[1],_.qTl))==null?
void 0:F.supportedTokens}if(O){q=void 0;F=_.Z(O);for(O=F.next();!O.done;O=F.next())if(O=O.value,O.datasyncIdToken){q=O.datasyncIdToken.datasyncIdToken;break}if(q){var w;a:{if(_.Rgt()&&(F=_.wc7(q+"::pom"))){F=new Eq(F);break a}F=void 0}(w=F)==null||w.set("role_text",R);if((F_t?F_t:window.location).href.indexOf("studio")!==-1&&(w=uGq())){F=w.src?(new URL(w.src)).origin:"*";var m;(m=w.contentWindow)==null||m.postMessage({action:"save_pom_role",datasyncId:q,roleText:R},F)}}}}}};
_.Vy.Object.defineProperties(pO.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.data)==null?void 0:(R=f.accountPhoto)==null?void 0:R.thumbnails;return u&&u.length>0&&(u[0].height===36||u[0].height===48)?u[0].height:40}}});
pO.prototype.onTap=pO.prototype.onTap;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],pO.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Function)],pO.prototype,"onAccountItemTap",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pO.prototype,"enableRingForActiveAccount",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],pO.prototype,"thumbnailSize",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pO.prototype,"onTap",null);pO=_.B([_.e({is:"ytd-account-item-renderer",disableElementRegistration:!0})],pO);
_.G(pO,"ytd-account-item-renderer",function(){if(lgI!==void 0)return lgI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return lgI=f},{mode:1});var qGY;var jE=function(){return _.U.apply(this,arguments)||this};
_.y(jE,_.U);jE.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.vh().resolve(_.rv).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jE.prototype,"data",void 0);jE=_.B([_.e({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],jE);
_.G(jE,"ytd-identity-chip-renderer",function(){if(qGY!==void 0)return qGY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qGY=f},{mode:1});var A3A;var agC;var FgI;var wUF;var D5=function(){var f=_.U.apply(this,arguments)||this;f.richItemMinWidth=_.RV("wn_grid_min_item_width",310);f.isShorts=!1;f.isWatchNext=!1;f.isExploreHub=!1;return f};
_.y(D5,_.U);_.Vy.Object.defineProperties(D5.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var f=[],R=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.ZO(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)&&R)for(R*=this.data.rows,u=0;u<R;u++)f.push({});return f}}});
_.B([_.z(_.zH),_.S("design:type",Object)],D5.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],D5.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.DH,value:3}),_.S("design:type",Number)],D5.prototype,"itemsPerRow",void 0);_.B([_.I({selector:_.KZe,value:6}),_.S("design:type",Number)],D5.prototype,"slimItemsPerRow",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Number)],D5.prototype,"richItemMinWidth",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],D5.prototype,"miniMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],D5.prototype,"isShorts",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],D5.prototype,"isWatchNext",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],D5.prototype,"isExploreHub",void 0);
_.B([_.T("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.S("design:type",Array),_.S("design:paramtypes",[])],D5.prototype,"cardItems",null);D5=_.B([_.e({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],D5);
_.mTk=_.Ox()(D5,"ytd-ghost-grid-renderer",function(){if(wUF===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);wUF=f}f=wUF;return f},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.ii(_.nf(function(f){var R=_.sU(f,{numberOfComments:3}).numberOfComments,u=_.sU(f,{isInitialLoad:!1}).isInitialLoad,O=_.sU(f,{engagementPanel:!1}).engagementPanel,c=function(){return Math.min(Number(R==null?void 0:R())||20,20)};
return _.a("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.a(_.Q,{cond:function(){return!(O==null?0:O())&&(u==null?void 0:u())},
then:function(){return _.a("div",{class:"ytGhostCommentsComments"},_.a("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.a("div",{class:_.KL("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.a("div",{class:_.KL("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.a("div",{class:"ytGhostCommentsGhostCard"},_.a("div",{class:"ytGhostCommentsAvatar"},_.a("div",{class:"ytGhostCommentsCircle"})),_.a("div",{class:"ytGhostCommentsComments"},_.a("div",{class:"ytGhostCommentsMeta"},
_.a("div",{class:_.KL("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.a("div",{class:_.KL("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.a("div",{class:"ytGhostCommentsComments"},_.a(_.EC,{each:function(){return Array((c==null?void 0:c())||3)}},function(){return _.a("div",{class:"ytGhostCommentsGhostCard"},_.a("div",{class:"ytGhostCommentsAvatar"},_.a("div",{class:"ytGhostCommentsCircle"})),_.a("div",{class:"ytGhostCommentsHost"},_.a("div",{class:"ytGhostCommentsMeta"},
_.a("div",{class:_.KL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.a("div",{class:_.KL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.a("div",{class:_.KL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.a("div",{class:"ytGhostCommentsGhostLikeDislike"},_.a("div",{class:_.KL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.a("div",{class:_.KL("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.SG,
isInitialLoad:_.SG,engagementPanel:_.SG}});_.j6("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Jg=function(){var f=_.U.apply(this,arguments)||this;f.isOverridable=!1;f.spinnerActive=!1;f.showButton=!1;f.isCommentsSection=!1;f.engagementPanel=!0;f.isShortsGrid=!1;f.isShortsPage=!1;f.isWatchPage=!1;f.ghostCardExperimentEnabled=_.E("show_ghost_comments_shorts_watch")||_.E("show_ghost_comments_desktop_watch");f.originalShowButton=!1;f.endOfList=!1;return f};
_.y(Jg,_.U);_.X=Jg.prototype;_.X.resetIntersectionObserver=function(){var f;(f=this.observer)==null||f.disconnect();this.observer=void 0};
_.X.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var f,R;((f=this.data)==null?void 0:f.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((R=this.data)==null?0:R.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.X.initializeIntersectionObserver=function(){var f=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u.value.isIntersecting&&(f.triggerContinuation(),f.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.X.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.X.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var f;((f=this.data)==null?0:f.continuationEndpoint)&&(f=_.t(this.data.continuationEndpoint,_.Tw))&&this.ytdReduxBehavior.dispatch(_.OP({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:f}}))};
_.X.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.X.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.X.onServiceRequestCompleted=function(f,R){if(!_.E("kevlar_hide_spinner_on_empty_continuation_killswitch")){var u;(u=R.actions)!=null&&u.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.X.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.X.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.X.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.X.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var f=3;if(this.engagementPanel){var R,u,O;f=Math.floor(((((R=this.hostElement)==null?void 0:(u=R.parentElement)==null?void 0:(O=u.parentElement)==null?void 0:O.scrollHeight)||108)-108)/108);f=this.isInitialLoad?Math.max(f,3):3}R=[].concat(_.yq(this.hostElement.querySelectorAll("yt-ghost-comments")));R=_.Z(R);for(u=R.next();!u.done;u=R.next())u=u.value,u.numberOfComments=f,u.isInitialLoad=this.isInitialLoad,u.engagementPanel=
this.engagementPanel}};
_.X.detached=function(){this.resetIntersectionObserver()};
_.Vy.Object.defineProperties(Jg.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.E("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.E("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Jg.prototype.numberOfGhostCommentsChanged=Jg.prototype.numberOfGhostCommentsChanged;Jg.prototype.continuationTriggerOffsetChanged=Jg.prototype.continuationTriggerOffsetChanged;Jg.prototype.showButtonChanged=Jg.prototype.showButtonChanged;Jg.prototype.onYtServiceRequestCompletedForButtonRenderer=Jg.prototype.onYtServiceRequestCompletedForButtonRenderer;Jg.prototype.onServiceRequestCompleted=Jg.prototype.onServiceRequestCompleted;Jg.prototype.onYtServiceRequestSentForButtonRenderer=Jg.prototype.onYtServiceRequestSentForButtonRenderer;
Jg.prototype.observeData=Jg.prototype.observeData;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.eG.YtVisibilityBehavior),_.S("design:type",Object)],Jg.prototype,"ytVisibilityBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Jg.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],Jg.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"isOverridable",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"spinnerActive",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"showButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Jg.prototype,"isCommentsSection",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Jg.prototype,"engagementPanel",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"isShortsGrid",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.alB}),_.S("design:type",Object)],Jg.prototype,"isShortsPage",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.ze}),_.S("design:type",Object)],Jg.prototype,"isWatchPage",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Jg.prototype,"ghostCardExperimentEnabled",void 0);
_.B([_.I(),_.S("design:type",Number)],Jg.prototype,"continuationTriggerOffset",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"endOfList",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jg.prototype,"isInitialLoad",void 0);_.B([_.a4("ytd-button-renderer"),_.S("design:type",_.g2)],Jg.prototype,"buttonRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],Jg.prototype,"buttonOverrides",void 0);
_.B([_.I(),_.T("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.S("design:type",Object),_.S("design:paramtypes",[])],Jg.prototype,"isShortsCommentsSection",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jg.prototype,"observeData",null);
_.B([_.Kf("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jg.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],Jg.prototype,"onServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-completed-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jg.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.B([_.QR("showButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jg.prototype,"showButtonChanged",null);
_.B([_.QR("continuationTriggerOffset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jg.prototype,"continuationTriggerOffsetChanged",null);_.B([_.qM("isInitialLoad","engagementPanel"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jg.prototype,"numberOfGhostCommentsChanged",null);Jg=_.B([_.e({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Jg);
_.G(Jg,"ytd-continuation-item-renderer",function(){if(FgI!==void 0)return FgI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return FgI=f},{mode:1});var QKf;var zK=function(){var f=_.U.apply(this,arguments)||this;f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.downloadState="DOWNLOAD_STATE_UNKNOWN";f.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";f.offlineVideoPolicyExpirationTimestamp=0;f.downloadedVideoPlaybackPosition=0;return f};
_.y(zK,_.U);zK.prototype.dataChanged=function(){var f;this.videoData=_.t((f=this.data)==null?void 0:f.renderer,GgF);this.transferStateChanged()};
zK.prototype.downloadProgressChanged=function(){if(this.entityInfo){var f=Object.assign({},this.videoData),R=Ku2(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),u=R.publishedTimeText,O=R.badges;f.shortViewCountText=R.shortViewCountText;f.publishedTimeText=u;f.badges=O;this.set("videoData",f)}};
zK.prototype.transferStateChanged=function(){if(this.entityInfo){var f=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",R=_.WW(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Qe(this.entityInfo.policyEntity),u=Object.assign({},this.videoData),O=Ku2(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),c=O.publishedTimeText,h=O.badges;u.shortViewCountText=
O.shortViewCountText;u.publishedTimeText=c;u.badges=h;u.isDisabled=R;u.isWatched=this.downloadedVideoPlaybackPosition>0;u.navigationEndpoint=R?void 0:Ggl(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var l;f&&((l=this.videoData)==null?0:l.videoId)&&!_.E("dl_resume_click_killswitch")&&(u.isDisabled=!1,u.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});u.thumbnailOverlays=lnh(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",u)}};
zK.prototype.transferStateChanged=zK.prototype.transferStateChanged;zK.prototype.downloadProgressChanged=zK.prototype.downloadProgressChanged;zK.prototype.dataChanged=zK.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],zK.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zK.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],zK.prototype,"videoData",void 0);_.B([_.I({selector:IL,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"downloadProgress",void 0);_.B([_.I(),_.S("design:type",Number)],zK.prototype,"relativeDateReference",void 0);_.B([_.I({selector:_.Te,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"transferState",void 0);
_.B([_.I({selector:HN0,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"downloadState",void 0);_.B([_.I({selector:Ehl,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"offlinePolicyAction",void 0);_.B([_.I({selector:tiP,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.B([_.I({selector:Mq,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"downloadedVideoPlaybackPosition",void 0);_.B([_.I({selector:ytn,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],zK.prototype,"entityInfo",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],zK.prototype,"isDownloading",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zK.prototype,"dataChanged",null);
_.B([_.QR("downloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zK.prototype,"downloadProgressChanged",null);_.B([_.QR("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zK.prototype,"transferStateChanged",null);
zK=_.B([_.e({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],zK);
_.G(zK,"ytd-downloaded-video-grid-video-renderer",function(){if(QKf!==void 0)return QKf;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return QKf=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var WgC;var TK=function(){};
TK.prototype.resolve=function(f,R){var u=this;return _.k(function(O){return _.A(O,u.resolveCommand(f,R),0)})};var EkC,Hp;EkC=seD(function(f){return f.targetId},{shouldPersist:!1});
Hp=EkC.updateData;_.tzC=EkC.useUpdatableData;var Cvf,y3H;Cvf=seD(function(f){return f.targetId});
y3H=Cvf.updateData;_.dTf=Cvf.useUpdatableData;var NaI=hXe.bind(null,Hp),LgE=hXe.bind(null,y3H);(function(f,R,u){var O=_.t(u==null?void 0:u.updatedRenderer,_.wqf);return O?f({targetId:R},function(){return O}):!1}).bind(null,Hp);var IE=function(){};
_.y(IE,TK);IE.prototype.resolveCommand=function(f){var R;return _.k(function(u){R=_.t(f,_.yc5);if(!R)return u.return();NaI(R.targetId,R);_.KG(u)})};var ME=function(){var f=_.w_.apply(this,arguments)||this;f.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return f};
_.y(ME,_.w_);_.X=ME.prototype;_.X.configureContinuationPathMap=function(){return{}};
_.X.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.X.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.X.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.X.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.X.handleAppendContinuationItemsAction=function(f){var R=_.t(f,_.sGf);if(this.data&&this.data.targetId&&R&&this.continuationPathMap&&R.targetId===this.data.targetId){var u=HUn(f);if((f=u&&this.continuationPathMap[u])&&u){u=this.get(f,this.data);var O;a:{for(O=0;O<u.length;O++){var c=u[O],h=void 0,l=!!_.t((h=_.t(c,JMC))==null?void 0:h.content,_.MHG);if(_.t(c,_.OX)||l)break a}O=u.length}f="data."+f;R.continuationItems?O===u.length-1?(this.pop(f),this.push.apply(this,[f].concat(_.yq(R.continuationItems)))):
O===u.length?this.push.apply(this,[f].concat(_.yq(R.continuationItems))):this.splice.apply(this,[f,O,1].concat(_.yq(R.continuationItems))):this.splice(f,O,1);(_.E("web_enable_voting_animation")||_.E("enable_music_web_cairo_voting_animation"))&&_.ul(this.hostElement,"yt-append-continuation-items-action-finished");_.ul(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Ih(new _.ts("append continuation path does not exist",u))}};
_.X.handleReloadContinuationItemsCommand=function(f){var R=_.t(f,_.yc5);if(this.data&&R){if(_.E("web_explore_hub")||_.E("web_client_explore_hub")||_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))try{_.vh().resolve(IE).resolveCommand(f)}catch(h){}if(this.data.targetId&&this.continuationPathMap&&R.targetId===this.data.targetId&&(!_.E("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||R.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var u,O=
(u=R.slot)==null?void 0:u.replace("RELOAD_CONTINUATION_SLOT_","");u=(f=HUn(f)+"-"+(O==null?void 0:O.toLowerCase()))&&this.continuationPathMap[f];if(!u||!f||!O)_.Ih(new _.ts("reload continuation path does not exist",f));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(R)){if(R.replaceWithFirstItem){var c;this.set("data."+u,((c=R.continuationItems)==null?0:c.length)?R.continuationItems[0]:{})}else this.set("data."+u,R.continuationItems?R.continuationItems:
[]);this.continuationIsReloading=!1;_.ul(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.X.handleShowReloadUiCommand=function(f){f=_.t(f,Z6A);var R;((R=this.data)==null?0:R.targetId)&&(f==null?0:f.targetId)&&f.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
ME.prototype.observeData=ME.prototype.observeData;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ME.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ME.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ME.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ME.prototype,"continuationIsReloading",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ME.prototype,"observeData",null);ME=_.B([_.mt()],ME);_.Pp=[_.M7.YtComponentBehavior,_.fq.YtActionHandlerBehavior,ME.prototype];_.UH={};_.UH.YtNextContinuationBehavior=[_.V3.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",_.ks(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ks(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(f,R){f.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,R,{}):(f={locationRetrieved:function(u){this.makeNextContinuationRequest_(u,R,{})}.bind(this)},_.ul(this.hostElement,"yt-retrieve-location",f))},
makeNextContinuationRequest_:function(f,R,u){_.zT("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();f=R(f);var O;this.canUseContextualNetworkManager_()&&(O=this.getNetworkManager());O||(O=_.vh().resolve(_.DM));R=_.PM.instance;if(_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&R){O=_.Ve([f.startsWith("/")?f.substr(1):f]);var c,h;u=_.Dn(R,{},O,u==null?void 0:(c=u.context)==null?void 0:(h=c.clickTracking)==null?void 0:h.clickTrackingParams).then(function(l){return{response:l}})}else u=
this.nextContinuation.usePost?O.postData(f,u):O.fetchData(f);
u.then(this.updateNextContinuationData_.bind(this,f));this.pendingContinuationRequest_=u;this.startListeningForNavigate_()},
updateNextContinuationData_:function(f,R){var u=this;_.zT("ncl");this.pendingContinuationRequest_=void 0;if(R){var O={};this.nextContinuation&&(O=this.nextContinuation);if(R.response&&R.response.continuationContents&&R.response.continuationContents[O.continuationType]){f=R.response.continuationContents[O.continuationType];var c=O.header||"data.header",h=f[O.responseHeaderKey||"header"];h&&this.set(c,h);c=O.contentsArray||"data.contents";h=this.getContents_(f,O.responseContentsKey||"contents")||[];
this.pathExists_(c)?(h.unshift(c),this.push.apply(this,h)):this.set(c,h);h&&(Z2e(_.wR(),R.response,this.hostElement,function(l){_.OJ(u.hostElement,"yt-store-grafted-ve-action",[l])}),_.ul(this.hostElement,"yt-next-continuation-data-updated",{continuationData:R,
page:this,contentsArray:c}));this.set(O.continuationsArray||"data.continuations",f[O.responseContinuationsKey||"continuations"]||[])}else R.reload?_.Ih(new _.ts("Reloading from continuation is unsupported")):R.responseContext&&R.responseContext.errors||(delete R.xsrf_token,delete R.timing,delete R.endpoint,delete R.csn,R.responseContext&&delete R.responseContext.serviceTrackingParams,c={request:_.x8(f,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(R).sort()},R.response&&(c.responseContentKeys=
Object.keys(R.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(c.continuationType=this.nextContinuation.continuationType.substr(0,256)),R=new _.ts("Malformed continuation",c),f.indexOf("/comment_service_ajax")==0?_.Ih(R):_.TL(R)),this.set(O.continuationsArray||"data.continuations",[])}else _.H5(new _.ts("Missing continuation response",f))},
getContents_:function(f,R){R=R.split(".");return _.dq.getValueByKeys(f,R)},
pathExists_:function(f){var R=this;f=f.toString().split(".");for(var u=0;u<f.length;u++)if(R=R[f[u]],R===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var blG;var pUA;var eE=function(){var f=_.U.apply(this,arguments)||this;f.triggered_=!1;return f};
_.y(eE,_.U);_.X=eE.prototype;_.X.attached=function(){this.maybeTriggerAutoload()};
_.X.detached=function(){this.hasBeenTriggered_=!1};
_.X.onPrescanVisible=function(){this.onShow()};
_.X.onShow=function(){this.showButton||this.trigger()};
_.X.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.ul(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.X.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.X.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.X.computeLabel_=function(f,R){return f===void 0?null:f.label||!R?f.label:this.showMoreText_};
_.X.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.X.getContinuationUrl=function(f){var R={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(R.itct=this.data.clickTrackingParams);return _.S0(f,R)};
_.X.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
eE.prototype.showButtonChanged_=eE.prototype.showButtonChanged_;eE.prototype.observeData_=eE.prototype.observeData_;_.B([_.z(_.eG.YtVisibilityBehavior),_.S("design:type",Object)],eE.prototype,"ytVisibilityBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],eE.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],eE.prototype,"showButton",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],eE.prototype,"showIcon",void 0);_.B([_.I({computed:"computeLabel_(data, showButton)"}),_.S("design:type",Object)],eE.prototype,"label",void 0);_.B([_.I({value:_.S8(_.Fa("SHOW_MORE",void 0,"Show More"))}),_.S("design:type",Object)],eE.prototype,"showMoreText_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],eE.prototype,"spinnerActive_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],eE.prototype,"hasBeenTriggered_",void 0);
_.B([_.I({value:void 0}),_.S("design:type",String)],eE.prototype,"observeVisibleOption",void 0);_.B([_.I({value:void 0}),_.S("design:type",String)],eE.prototype,"observeHiddenOption",void 0);_.B([_.I({value:"observe_once"}),_.S("design:type",Object)],eE.prototype,"observePrescanOption",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eE.prototype,"observeData_",null);
_.B([_.qM("showButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eE.prototype,"showButtonChanged_",null);eE=_.B([_.DO({is:"yt-next-continuation",disableElementRegistration:!0})],eE);
_.G(eE,"yt-next-continuation",function(){if(pUA===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;blG===void 0&&(blG=document.createElement("template"));var O=blG;u.call(R,O.content.cloneNode(!0),f.content.firstChild);pUA=f}f=pUA;return f},{mode:2});var jKk;var DTC;var GK=function(){return _.U.apply(this,arguments)||this};
_.y(GK,_.U);GK.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],GK.prototype,"data",void 0);GK=_.B([_.DO({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],GK);
_.G(GK,"yt-music-pass-small-feature-info-renderer",function(){if(DTC===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;jKk===void 0&&(jKk=document.createElement("template"));var O=jKk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);DTC=f}f=DTC;return f},{mode:2});_.j6("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Bp=function(){var f=_.U.apply(this,arguments)||this;f.isCollapsible=!1;f.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return f};
_.y(Bp,_.U);_.X=Bp.prototype;_.X.computeIsCollapsible=function(f){return!!(((f==null?0:f.showMoreText)||(f==null?0:f.visibleRowCount))&&(f==null?0:f.isCollapsible))};
_.X.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"}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.X.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.X.onIronResize=function(){var f=this;_.UU(this,"updateGridInitItems",function(){f.maybeUpdateInitialItemsDisplayed()})};
_.X.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var f=this.getVisibleWidth();f!==0&&(f=Math.floor(f/214)*(this.data.visibleRowCount||2),f!==this.initialCount&&(this.initialCount=f,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.X.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.X.computeExpandVisible=function(f,R,u,O){return f&&R&&u&&!!O&&!!O.showMoreText};
_.X.computeShowMoreButton=function(f){return{text:f,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.X.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.X.initCollapsed=function(){var f=this;this.ytLazyListBehavior.canShowMore=!1;var R;(this.collapsed=!((R=this.data)==null||!R.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.su(this,function(){_.c_(f.hostElement,"yt-refit-popups-action")})};
_.X.fillRestIfNotCollapsible=function(){var f=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!f||this.ytLazyListBehavior.fillRemainingListItems()};
_.X.computeViewAllHidden=function(f,R){return f||!R.viewAllEndpoint};
Bp.prototype.fillRestIfNotCollapsible=Bp.prototype.fillRestIfNotCollapsible;Bp.prototype.initCollapsed=Bp.prototype.initCollapsed;Bp.prototype.onIronResize=Bp.prototype.onIronResize;Bp.prototype.persistentGuideChanged=Bp.prototype.persistentGuideChanged;_.B([_.z(_.Lu),_.S("design:type",Object)],Bp.prototype,"ironResizableBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],Bp.prototype,"ytLazyListBehavior",void 0);_.B([_.z(_.UH.YtNextContinuationBehavior),_.S("design:type",Object)],Bp.prototype,"ytNextContinuationBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Bp.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.z(_.Pp),_.S("design:type",Object)],Bp.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Bp.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Bp.prototype,"collapsed",void 0);_.B([_.I(),_.S("design:type",Number)],Bp.prototype,"initialCount",void 0);_.B([_.I({computed:"computeShowMoreButton(data.showMoreText)"}),_.S("design:type",Object)],Bp.prototype,"showMoreButton",void 0);
_.B([_.I({computed:"computeIsCollapsible(data)"}),_.S("design:type",Object)],Bp.prototype,"isCollapsible",void 0);_.B([_.a4("#items"),_.S("design:type",HTMLElement)],Bp.prototype,"items",void 0);_.B([_.QR("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bp.prototype,"persistentGuideChanged",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bp.prototype,"onIronResize",null);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bp.prototype,"initCollapsed",null);_.B([_.QR("canShowMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bp.prototype,"fillRestIfNotCollapsible",null);Bp=_.B([_.e({is:"ytd-grid-renderer",disableElementRegistration:!0})],Bp);
_.G(Bp,"ytd-grid-renderer",function(){if(WgC!==void 0)return WgC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WgC=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var oE=function(){return _.U.apply(this,arguments)||this};
_.y(oE,_.U);
oE.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"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oE.prototype,"data",void 0);oE=_.B([_.e({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],oE);
_.G(oE,"ytd-carousel-ad-renderer",function(){if(agC!==void 0)return agC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return agC=f},{mode:1});var J3f;var xQ=function(){return _.U.apply(this,arguments)||this};
_.y(xQ,_.U);_.X=xQ.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,xQ.JSC$13254_CLICK_LOCATION_ID_MAP))};
_.X.onSitelinkTap=function(f){f.stopPropagation();var R,u,O=f==null?void 0:(R=f.model)==null?void 0:(u=R.item)==null?void 0:u.onTap;O&&this.ytSparklesClickLocationBehavior.handleClick(O,f,!1)};
_.X.onTap=function(f){var R=this.data&&this.data.content&&this.data.content.navigationEndpoint;R&&this.ytSparklesClickLocationBehavior.handleClick(R,f,!1)};
_.X.sendImpression=function(){if(this.data&&this.data.content)for(var f=_.Z(this.data.content.impressionEndpoints||[]),R=f.next();!R.done;R=f.next()){R=_.Z(R.value.loggingUrls||[]);for(var u=R.next();!u.done;u=R.next())u=u.value,u.baseUrl&&SI(u.baseUrl,u.attributionSrcMode)}};
xQ.prototype.onTap=xQ.prototype.onTap;xQ.prototype.dataChanged=xQ.prototype.dataChanged;xQ.JSC$13254_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"]]);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],xQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xQ.prototype,"data",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xQ.prototype,"dataChanged",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],xQ.prototype,"onTap",null);xQ=_.B([_.e({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],xQ);
_.G(xQ,"ytd-promoted-sparkles-text-search-renderer",function(){if(J3f!==void 0)return J3f;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return J3f=f},{mode:1});var zik;var SE=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.y(SE,_.U);_.X=SE.prototype;
_.X.configureRendererStamper=function(){return{"data.menu":{id:_.E("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]]"}}}}}};
_.X.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.X.computeHasAdBadge=function(f){return!(f==null||!f.adBadge)};
_.X.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",SE.JSC$13263_DEFAULT_AD_BADGE_RENDERER),_.c2(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,SE.JSC$13263_CLICK_LOCATION_ID_MAP))};
_.X.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var f;(((f=this.data)==null?void 0:f.impressionCommands)||[]).forEach(function(R){R=_.Z(R.loggingUrls||[]);for(var u=R.next();!u.done;u=R.next())u=u.value,u.baseUrl&&SI(u.baseUrl,u.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.X.onTap=function(f){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint,O;(R=(O=this.data)==null?void 0:O.thumbnailNavigationEndpoint)&&_.gx(_.$S(f),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(R,f,!1):u&&this.ytSparklesClickLocationBehavior.handleClick(u,f,!1)};
_.X.handleMuteAd=function(){this.collapsed=!0};
_.X.attached=function(){var f=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Vy.Object.defineProperties(SE.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var f;return!(((f=this.data)==null?void 0:f.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var f;return!(((f=this.data)==null?void 0:f.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
SE.prototype.dataChanged=SE.prototype.dataChanged;
SE.JSC$13263_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"]]);
SE.JSC$13263_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Fa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.B([_.z(DZ),_.S("design:type",Object)],SE.prototype,"ytdActiveViewBehavior",void 0);
_.B([_.z([_.fq.YtActionHandlerBehavior]),_.S("design:type",Object)],SE.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],SE.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SE.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],SE.prototype,"collapsed",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],SE.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],SE.prototype,"biggerThumbsStyle",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.S("design:type",Boolean)],SE.prototype,"fixAlignmentSmallScreens",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs_square")}}),
_.S("design:type",Boolean)],SE.prototype,"useBiggerThumbsSquare",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.mediaHoverOverlay"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"hideHoverOverlay",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"webSearchLayout",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"webSearchLayoutLandscape",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"webSearchLayoutSquare",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"sparklesCtaNoBackground",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.actionButton"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"hideActionButton",null);_.B([_.I({computed:"computeButtonOverride(uiUpdate)"}),_.S("design:type",Object)],SE.prototype,"buttonOverride",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.S("design:type",Boolean)],SE.prototype,"hasNewAdBadge",void 0);_.B([_.T("data.promotedSparklesWebStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SE.prototype,"useRoundedBadge",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SE.prototype,"dataChanged",null);SE=_.B([_.e({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],SE);
_.G(SE,"ytd-promoted-sparkles-web-renderer",function(){if(zik!==void 0)return zik;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return zik=f},{mode:1});var Taf;var $Q=function(){return _.U.apply(this,arguments)||this};
_.y($Q,_.U);_.X=$Q.prototype;_.X.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]]"}}}}}};
_.X.computeShowCta=function(f){return!(f==null||!f.ctaRenderer)};
_.X.onCtaClick=function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.ctaRenderer)==null?void 0:(u=R.buttonRenderer)==null?void 0:u.command;O&&this.ytComponentBehavior.resolveCommand(O)};
_.X.onWatchButtonClick=function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.watchButtonRenderer)==null?void 0:(u=R.buttonRenderer)==null?void 0:u.command;O&&this.ytComponentBehavior.resolveCommand(O)};
_.X.onTap=function(){};
_.X.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",$Q.JSC$13266_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",$Q.JSC$13266_DEFAULT_CLICK_LOCATION_BEHAVIOR,$Q.JSC$13266_CLICK_LOCATION_ID_MAP),this.thumbnail)){var f=this.thumbnail.getElementsByTagName("a");f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href")}};
_.X.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var f=_.Z(this.data.impressionUrls),R=f.next();!R.done;R=f.next())R=R.value,Q1e(R,ES2(R));this.data.impressionsFired=!0}};
_.X.maybeComputeHref=function(){return null};
_.X.computeIsShortDR=function(f){return!(f==null||!f.watchButtonRenderer)&&!(f==null||!f.ctaRenderer)&&!!this.enableShortDR};
_.X.computeIsNewUiOrShortDr=function(f){return!!this.enableUiUpdate||this.computeIsShortDR(f)};
_.X.computeIsNewUiAndNotShortDr=function(f){return!!this.enableUiUpdate&&!this.computeIsShortDR(f)};
_.X.computeHideAvatar=function(f){return!((f==null?0:f.channelThumbnail)&&this.computeIsNewUiOrShortDr(f))};
_.X.onClick=function(f){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint;if(this.enableShortDR&&u&&(_.t(u,_.$7)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(u,f,!!_.t(u,_.$7)),f.stopPropagation();else if(u&&_.t(u,_.$7))this.ytSparklesClickLocationBehavior.handleClick(u,f,!0),f.stopPropagation();else if(u){var O,c;((O=this.data)==null?0:O.navigationEndpoint)&&((c=this.data)==null?0:c.adPlaybackContextParams)&&XsX(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(u)}};
_.X.computeButtonOverride=function(f){if(this.computeIsNewUiOrShortDr(f))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.X.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.X.onThumbnailContainerClick=function(f){this.onClick(f)};
_.X.computeThumbnailWidth=function(f,R){return f?R==="MASSIVE"?600:R==="BIG"?500:R==="MEDIUM"?450:420:360};
_.X.attached=function(){var f=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
$Q.prototype.dataChanged=$Q.prototype.dataChanged;$Q.prototype.onTap=$Q.prototype.onTap;$Q.JSC$13266_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Fa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};$Q.JSC$13266_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
$Q.JSC$13266_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"}];_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.B([_.z(DZ),_.S("design:type",Object)],$Q.prototype,"ytdActiveViewBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],$Q.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],$Q.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$Q.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],$Q.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_video_display_compact_button_group_for_desktop_search")}}),
_.S("design:type",Boolean)],$Q.prototype,"enableShortDR",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_vac_ui_update_for_desktop_search")}}),
_.S("design:type",Boolean)],$Q.prototype,"enableUiUpdate",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],$Q.prototype,"biggerThumbsStyle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.S("design:type",Boolean)],$Q.prototype,"showCta",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.S("design:type",Boolean)],$Q.prototype,"isShortDr",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.S("design:type",Boolean)],$Q.prototype,"isShortDrOrNewUi",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.S("design:type",Boolean)],$Q.prototype,"isNewUiAndNotShortDr",void 0);_.B([_.I({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],$Q.prototype,"buttonOverride",void 0);_.B([_.I({computed:"computeSecondaryButtonOverride(data)"}),_.S("design:type",Object)],$Q.prototype,"secondaryButtonOverride",void 0);_.B([_.a4("ytd-thumbnail"),_.S("design:type",HTMLElement)],$Q.prototype,"thumbnail",void 0);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$Q.prototype,"onTap",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$Q.prototype,"dataChanged",null);$Q=_.B([_.e({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],$Q);
_.G($Q,"ytd-promoted-video-renderer",function(){if(Taf!==void 0)return Taf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Taf=f},{mode:1});var Hlk;var gb=function(){var f=_.U.apply(this,arguments)||this;f.useRoundedBadge=!0;f.sitelinkIds=[];return f};
_.y(gb,_.U);_.X=gb.prototype;
_.X.configureRendererStamper=function(){return{"data.menu":{id:_.E("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]]"}}}}}};
_.X.dataChanged=function(){var f;(f=this.data)!=null&&f.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,gb.JSC$13273_CLICK_LOCATION_ID_MAP)};
_.X.onTap=function(f){var R,u=(R=this.data)==null?void 0:R.navigationCommand;u&&!_.gx(_.$S(f),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(u,f,!1)};
_.X.onSitelinkTap=function(f){var R,u,O=f==null?void 0:(R=f.model)==null?void 0:(u=R.item)==null?void 0:u.onTap;O&&this.ytSparklesClickLocationBehavior.handleClick(O,f,!1)};
_.X.configureSitelinkClickTargets=function(){var f=this,R,u,O=(R=this.data)==null?void 0:(u=R.clickLocationTargets)==null?void 0:u.find(function(c){return c.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
O&&_.b(this.hostElement).querySelectorAll(".sitelink").forEach(function(c){_.c2(c,"yt-simple-endpoint",!0);f.sitelinkIds.push(c.id);var h,l;(h=f.ytSparklesClickLocationBehavior)==null||(l=h.clickTargetMap)==null||l.set(c.id,O)})};
_.X.sendImpression=function(){var f,R,u=((f=this.data)==null?void 0:(R=f.impressionCommand)==null?void 0:R.loggingUrls)||[];f=_.Z(u);for(R=f.next();!R.done;R=f.next())R=R.value,R.baseUrl&&SI(R.baseUrl,R.attributionSrcMode)};
_.X.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Vy.Object.defineProperties(gb.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
gb.prototype.onTap=gb.prototype.onTap;gb.prototype.dataChanged=gb.prototype.dataChanged;gb.JSC$13273_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"]]);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],gb.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gb.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gb.prototype,"showFavicon",null);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],gb.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],gb.prototype,"biggerThumbsStyle",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.S("design:type",Boolean)],gb.prototype,"enableThumbnailScalingFix",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gb.prototype,"dataChanged",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],gb.prototype,"onTap",null);gb=_.B([_.e({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],gb);
_.G(gb,"ytd-text-image-no-button-layout-renderer",function(){if(Hlk!==void 0)return Hlk;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Hlk=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var Igk;var sH=function(){var f=_.U.apply(this,arguments)||this;f.isInlinePlaybackState=!1;f.uiUpdate=_.E("web_modern_buttons");f.hideCta=_.E("hide_cta_for_home_web_video_ads");f.noBottomMargin=!1;f.animateInTimeStamp=_.RV("hide_cta_for_home_web_video_ads_animate_in_time");f.animateInCta=!1;f.isHovered=!1;f.player=null;f.JSC$13280_playerEvents=new Map;f.JSC$13280_preventProgressSaveTimer=null;f.delayedCtaJobId=null;return f};
_.y(sH,_.U);_.X=sH.prototype;_.X.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]]"}}}}}};
_.X.attached=function(){this.JSC$13280_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13280_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.E("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.X.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13280_playerEvents)};
_.X.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",sH.JSC$13279_DEFAULT_CLICK_LOCATION_BEHAVIOR,sH.JSC$13279_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.X.hoverChanged=function(){var f=this;this.delayedCtaJobId&&(_.JA.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.E("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.mQ(_.JA,function(){f.buttonContainer.classList.add("show-delayed-buttons")},_.RV("delayed_cta_on_web_delay_milliseconds")))};
_.X.setPlayer=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return(R=_.c_(f.hostElement,"yt-get-inline-preview-player-action"))&&R[0]?_.A(u,R[0].getPlayerPromise(),3):u.jumpTo(0);f.player=u.yieldResult;f.ytPlayerListenerBehavior.listenToPlayerEvents(f.player,f.JSC$13280_playerEvents);_.KG(u)})};
_.X.onPlaybackStart=function(){var f=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13280_preventProgressSaveTimer=_.Oz(_.JA,function(){f.JSC$13280_preventProgressSaveTimer=null},1E4))};
_.X.onVideoProgress=function(f){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&f>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.X.resetPreventProgressSaveTimer=function(){_.JA.cancelJob(this.JSC$13280_preventProgressSaveTimer);this.JSC$13280_preventProgressSaveTimer=null};
_.X.getSimpleString=function(f){return _.$Z(f)};
_.X.onClick=function(f){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint,O;R=(O=this.data)==null?void 0:O.channelEndpoint;var c,h;(O=(h=_.t((c=this.data)==null?void 0:c.adCtaButton,_.z9))==null?void 0:h.command)&&_.gx(_.$S(f),this.hostElement,["call-to-action"])?_.E("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(O,f,!1):R&&_.gx(_.$S(f),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(R,f,!1):!_.gx(_.$S(f),this.hostElement,["secondary-button"])&&u&&(_.E("enable_short_dr_for_desktop_launchable")?(c=!!_.t(u,_.$7),this.isInlinePlaybackState&&c&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,f,c)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,f,!0)))}};
_.X.updateWatchEndpointStartTime=function(){var f,R;this.player&&((f=this.data)==null?0:f.inlinePlaybackEndpoint)&&((R=this.data)==null?0:R.navigationEndpoint)&&!this.JSC$13280_preventProgressSaveTimer&&(f=Math.floor(this.player.getCurrentTime()),_.t(this.data.navigationEndpoint,_.$7).startTimeSeconds=f,_.t(this.data.inlinePlaybackEndpoint,_.$7).startTimeSeconds=f)};
_.X.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.X.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Vy.Object.defineProperties(sH.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.E("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.watchButton)&&!((R=this.data)==null||!R.adCtaButton)}}});
sH.prototype.hoverChanged=sH.prototype.hoverChanged;sH.prototype.dataChanged=sH.prototype.dataChanged;
sH.JSC$13279_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"]]);
sH.JSC$13279_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"}];
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],sH.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],sH.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],sH.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sH.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sH.prototype,"isInlinePlaybackState",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],sH.prototype,"miniMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sH.prototype,"uiUpdate",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sH.prototype,"hideCta",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sH.prototype,"noBottomMargin",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sH.prototype,"animateInCta",void 0);_.B([_.I({computed:"computeButtonOverride(uiUpdate)"}),_.S("design:type",Object)],sH.prototype,"buttonOverride",void 0);
_.B([_.I({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.S("design:type",Object)],sH.prototype,"secondaryButtonOverride",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sH.prototype,"isHovered",void 0);_.B([_.a4("#button-container"),_.S("design:type",HTMLElement)],sH.prototype,"buttonContainer",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],sH.prototype,"typographyBump",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("typographyBump"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sH.prototype,"typographyBumpV2",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sH.prototype,"dataChanged",null);_.B([_.qM("isHovered"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sH.prototype,"hoverChanged",null);
_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sH.prototype,"isButtonGroup",null);sH=_.B([_.e({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],sH);
_.G(sH,"ytd-ad-inline-playback-meta-block",function(){if(Igk!==void 0)return Igk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Igk=f},{mode:_.c7("kevlar_poly_si_batch_j065")?1:2});var Mzf;var nO=function(){var f=_.U.apply(this,arguments)||this;f.noBottomMargin=!1;f.isInlinePreviewTriggered=!1;f.JSC$13285_activeViewMeasurementDataResolver=_.BM();return f};
_.y(nO,_.U);_.X=nO.prototype;_.X.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){var f=this;this.updateInlinePreviewHoverListeners();this.JSC$13285_activeViewMeasurementDataResolver.promise.then(function(R){f.ytdActiveViewBehavior.enableActiveViewMeasurement(R,15)});
_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){this.clearInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13285_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:this.JSC$13285_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:sRY})};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13285_inlinePreviewHoverListener)==null||uk(f)};
_.X.onDataChanged=function(){var f;((f=this.data)==null?0:f.activeView)&&this.JSC$13285_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",nO.JSC$13284_DEFAULT_CLICK_LOCATION_BEHAVIOR,nO.JSC$13284_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"));var R,u;if(((R=this.data)==
null?0:R.hasAutoplay)||((u=this.data)==null?0:u.forceImpAutoplay)){var O;(O=this.JSC$13285_inlinePreviewHoverListener)==null||hsE(O)}};
_.X.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.X.onThumbnailContainerClick=function(f){if(this.data&&this.data.navigationEndpoint){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,f,!!_.t(u,_.$7));f.stopPropagation()}};
_.X.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.X.impressionLog=function(){var f=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var R,u,O=(u=_.t((R=this.data)==null?void 0:R.onImpression,_.kE))==null?void 0:u.commands;O&&(O.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;f.ytComponentBehavior.resolveCommand(c)}),this.data.impressionsFired=!0)}};
_.Vy.Object.defineProperties(nO.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13285_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
nO.prototype.onTypographyBumpChanged=nO.prototype.onTypographyBumpChanged;nO.prototype.onDataChanged=nO.prototype.onDataChanged;nO.JSC$13284_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);nO.JSC$13284_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"}];
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],nO.prototype,"ytComponentBehavior",void 0);_.B([_.z(DZ),_.S("design:type",Object)],nO.prototype,"ytdActiveViewBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],nO.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.BX),_.S("design:type",Object)],nO.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],nO.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nO.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],nO.prototype,"noBottomMargin",void 0);
_.B([_.I(),_.S("design:type",Object)],nO.prototype,"isInlinePreviewTriggered",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],nO.prototype,"miniMode",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],nO.prototype,"typographyBump",void 0);_.B([_.a4("ytd-thumbnail"),_.S("design:type",HTMLElement)],nO.prototype,"thumbnail",void 0);_.B([_.a4("#dismissible"),_.S("design:type",HTMLElement)],nO.prototype,"JSC$13285_dismissibleMedia",void 0);
_.B([_.a4("ytd-ad-inline-playback-meta-block"),_.S("design:type",HTMLElement)],nO.prototype,"adInlinePlaybackMetaBlock",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nO.prototype,"onDataChanged",null);_.B([_.QR("typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nO.prototype,"onTypographyBumpChanged",null);
_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],nO.prototype,"isHovered",null);nO=_.B([_.e({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],nO);
_.G(nO,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Mzf!==void 0)return Mzf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Mzf=f},{mode:1});var PvF;var VG=function(){var f=_.U.apply(this,arguments)||this;f.isInlinePreviewTriggered=!1;f.JSC$13288_activeViewMeasurementDataResolver=_.BM();return f};
_.y(VG,_.U);_.X=VG.prototype;_.X.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){var f=this;this.updateInlinePreviewHoverListeners();this.JSC$13288_activeViewMeasurementDataResolver.promise.then(function(R){f.ytdActiveViewBehavior.enableActiveViewMeasurement(R,15)})};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13288_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:this.JSC$13288_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:sRY})};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13288_inlinePreviewHoverListener)==null||uk(f)};
_.X.onDataChanged=function(){var f;((f=this.data)==null?0:f.activeView)&&this.JSC$13288_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",VG.JSC$13287_DEFAULT_CLICK_LOCATION_BEHAVIOR,VG.JSC$13287_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"))};
_.X.onThumbnailContainerClick=function(f){if(this.data&&this.data.navigationEndpoint){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,f,!0);f.stopPropagation()}};
_.X.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.X.impressionLog=function(){var f=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var R,u,O=(u=_.t((R=this.data)==null?void 0:R.onImpression,_.kE))==null?void 0:u.commands;O&&(O.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;_.vh().resolve(_.rv).resolveCommand(c,{form:{element:f.hostElement}})}),this.data.impressionsFired=!0)}};
_.Vy.Object.defineProperties(VG.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13288_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
VG.prototype.onDataChanged=VG.prototype.onDataChanged;VG.JSC$13287_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);VG.JSC$13287_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"}];_.B([_.z(DZ),_.S("design:type",Object)],VG.prototype,"ytdActiveViewBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],VG.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],VG.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],VG.prototype,"ytdReduxBehavior",void 0);
_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],VG.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],VG.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],VG.prototype,"isInlinePreviewTriggered",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],VG.prototype,"miniMode",void 0);_.B([_.a4("ytd-thumbnail"),_.S("design:type",HTMLElement)],VG.prototype,"thumbnail",void 0);
_.B([_.a4("#dismissible"),_.S("design:type",HTMLElement)],VG.prototype,"JSC$13288_dismissibleMedia",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VG.prototype,"onDataChanged",null);_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],VG.prototype,"isHovered",null);VG=_.B([_.e({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],VG);
_.G(VG,"ytd-video-display-full-buttoned-renderer",function(){if(PvF!==void 0)return PvF;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return PvF=f},{mode:1});var lX=function(f,R,u,O){O=O===void 0?!1:O;_.R7.call(this,f);this.adsClientErrorMessage=u;this.aggressivelySample=O;this.args=[];R&&this.args.push(R)};
_.y(lX,_.R7);var hF=function(f,R,u,O){O=O===void 0?!1:O;_.R7.call(this,f);this.adsClientErrorMessage=u;this.aggressivelySample=O;this.args=[];R&&this.args.push(R)};
_.y(hF,_.R7);var UTE=function(f){_.d9.call(this);var R=this;this.initializationFunction=f;this.instance=null;this.addOnDisposeCallback(function(){_.YD(R.instance);R.instance=null})};
_.y(UTE,_.d9);UTE.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.rW("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var w$q=function(){var f=new Map;[].forEach(function(R){f.set(R.JSC$26873_getType(),R)})};new Promise(function(){});var KSD=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"]]),lU7=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"}]]),eiC=function(f){this.experimentApiProvider=f;f=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=f<.1};var YQ=function(f,R,u,O){_.d9.call(this);this.adsControlFlowEventListeners=R;this.adEventLogger=u;this.experimentApiProvider=O;this.adsControlFlowManagerHelper=f(this,this,this,this,this);_.qG(this,this.adsControlFlowManagerHelper);f=_.Z(R);for(R=f.next();!R.done;R=f.next())_.qG(this,R.value)};
_.y(YQ,_.d9);var GGf=function(f,R,u,O){vp(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",R,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,O);f=_.Z(f.adsControlFlowEventListeners);for(O=f.next();!O.done;O=f.next())GGf(O.value,R,u)};
_.X=YQ.prototype;_.X.onOpportunityProcessedExternallyManaged=function(f,R,u,O){vp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",f,u,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,O)};
_.X.onSlotReceivedExternallyManaged=function(f,R){is(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",f,R)};
_.X.onSlotEntered=function(f){if(rb(this.adsControlFlowManagerHelper,f)!=null){is(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",f);this.adsControlFlowManagerHelper.onSlotEntered(f);for(var R=_.Z(this.adsControlFlowEventListeners),u=R.next();!u.done;u=R.next())u.value.onSlotEntered(f);if(rb(this.adsControlFlowManagerHelper,f)!=null&&rb(this.adsControlFlowManagerHelper,f).isOccupyingSlotType()&&fy(this.adsControlFlowManagerHelper,f)&&!Bat(this.adsControlFlowManagerHelper,f)){var O;RM(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",f,(O=fy(this.adsControlFlowManagerHelper,f))!=null?O:void 0);f=rb(this.adsControlFlowManagerHelper,f);f.slotLifecycleStage!=="entered"&&ua(f.slot,f.slotLifecycleStage,"enterLayoutForSlot");f.slotLifecycleStage="rendering";f.registeredLayoutRenderingAdapter.startRendering(f.layout)}}};
_.X.onSlotExited=function(f){if(rb(this.adsControlFlowManagerHelper,f)!=null){is(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",f);this.adsControlFlowManagerHelper.onSlotExited(f);for(var R=_.Z(this.adsControlFlowEventListeners),u=R.next();!u.done;u=R.next())u.value.onSlotExited(f);rb(this.adsControlFlowManagerHelper,f)!=null&&rb(this.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests&&okC(this,f)}};
_.X.onLayoutReceivedExternallyManaged=function(f,R,u){f.managerLayer!=="core"&&RM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",f,R,u)};
var xTH=function(f,R,u){if(rb(f.adsControlFlowManagerHelper,R)!=null){RM(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",R,u);f=_.Z(f.adsControlFlowEventListeners);for(var O=f.next();!O.done;O=f.next())xTH(O.value,R,u)}};
YQ.prototype.onLayoutExited=function(f,R,u){if(rb(this.adsControlFlowManagerHelper,f)!=null){RM(this.adEventLogger,kEn(u),f,R);this.adsControlFlowManagerHelper.onLayoutExited(f,R);for(var O=_.Z(this.adsControlFlowEventListeners),c=O.next();!c.done;c=O.next())c.value.onLayoutExited(f,R,u);(u=fy(this.adsControlFlowManagerHelper,f))&&R.layoutId===u.layoutId&&SGk(this,f)}};
YQ.prototype.disposeInternal=function(){var f=$TI(this.adsControlFlowManagerHelper);f=_.Z(f);for(var R=f.next();!R.done;R=f.next())okC(this,R.value);_.d9.prototype.disposeInternal.call(this)};
var okC=function(f,R){if(rb(f.adsControlFlowManagerHelper,R)!=null)if(rb(f.adsControlFlowManagerHelper,R).JSC$26904_isSlotExitRequested()||rb(f.adsControlFlowManagerHelper,R).JSC$26904_isLayoutExitRequested())rb(f.adsControlFlowManagerHelper,R).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(rb(f.adsControlFlowManagerHelper,R).isOccupyingSlotType())rb(f.adsControlFlowManagerHelper,R).markedForUnscheduleAfterOutboundAdapterRequests=!0,SGk(f,R);else if(rb(f.adsControlFlowManagerHelper,R).JSC$26904_isSlotFillRequested())rb(f.adsControlFlowManagerHelper,
R).markedForUnscheduleAfterOutboundAdapterRequests=!0,rb(f.adsControlFlowManagerHelper,R)!=null&&(is(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",R),R=rb(f.adsControlFlowManagerHelper,R),R.fulfillmentLifecycleStage="fill_cancel_requested",R.registeredFulfillmentAdapter.cancelSlotFilling());else{var u=fy(f.adsControlFlowManagerHelper,R),O;f.experimentApiProvider.get();(O=_.E("h5_enable_layout_unscheduling_events"))&&(u?gkF(f,R,u):_.rW(Error("Gh"),R,u,void 0,!1));is(f.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",R);var c=rb(f.adsControlFlowManagerHelper,R),h=R.slotEntryTrigger,l=c.registeredSlotEntryTriggerAdapters.get(h.triggerId);l&&(l.unregisterTrigger(h),c.registeredSlotEntryTriggerAdapters.delete(h.triggerId));h=_.Z(R.slotFulfillmentTriggers);for(l=h.next();!l.done;l=h.next()){l=l.value;var K=c.registeredFulfillmentTriggerAdapters.get(l.triggerId);K&&(K.unregisterTrigger(l),c.registeredFulfillmentTriggerAdapters.delete(l.triggerId))}h=_.Z(R.slotExpirationTriggers);
for(l=h.next();!l.done;l=h.next())if(l=l.value,K=c.registeredExpirationTriggerAdapters.get(l.triggerId))K.unregisterTrigger(l),c.registeredExpirationTriggerAdapters.delete(l.triggerId);c.hasLayout()&&(h=c.layout,OZ(c,h.layoutExitNormalTriggers),OZ(c,h.layoutExitSkipTriggers),OZ(c,h.layoutExitMuteTriggers),OZ(c,h.layoutExitUserInputSubmittedTriggers),OZ(c,h.layoutExitUserCancelledTriggers));c.registeredFulfillmentAdapter=void 0;c.registeredSlotAdapter!=null&&(c.registeredSlotAdapter.release(),c.registeredSlotAdapter=
void 0);c.registeredLayoutRenderingAdapter!=null&&(c.registeredLayoutRenderingAdapter.release(),c.registeredLayoutRenderingAdapter=void 0);c=f.adsControlFlowManagerHelper;rb(c,R)&&(c=sKf(c,R.slotType+"_"+R.slotPhysicalPosition))&&c.delete(R.slotId);is(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",R);f=_.Z(f.adsControlFlowEventListeners);for(c=f.next();!c.done;c=f.next())c=c.value,c.onSlotUnscheduled(R),u&&!O&&gkF(c,R,u)}},gkF=function(f,R,u){RM(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
R,u);
RM(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",R,u);f=_.Z(f.adsControlFlowEventListeners);for(var O=f.next();!O.done;O=f.next())O=O.value,u&&gkF(O,R,u)},SGk=function(f,R){if(rb(f.adsControlFlowManagerHelper,R)!=null&&rb(f.adsControlFlowManagerHelper,R).isOccupyingSlotType()){var u=fy(f.adsControlFlowManagerHelper,R);
if(u&&Bat(f.adsControlFlowManagerHelper,R)){if(rb(f.adsControlFlowManagerHelper,R)!=null){var O=f.adEventLogger,c;var h=((c=lU7.get("abandoned"))==null?void 0:c.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";RM(O,h,R,u);f=rb(f.adsControlFlowManagerHelper,R);f.slotLifecycleStage!=="rendering"&&ua(f.slot,f.slotLifecycleStage,"exitLayout");f.slotLifecycleStage="rendering_stop_requested";f.registeredLayoutRenderingAdapter.stopRendering(u,"abandoned")}}else{is(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
R);try{O=rb(f.adsControlFlowManagerHelper,R);if(!O)throw new hF("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");O.slotLifecycleStage!=="enter_requested"&&O.slotLifecycleStage!=="entered"&&O.slotLifecycleStage!=="rendering"&&ua(O.slot,O.slotLifecycleStage,"exitSlot");O.slotLifecycleStage="exit_requested";if(O.registeredSlotAdapter===void 0)throw O.slotLifecycleStage="scheduled",new hF("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
O.registeredSlotAdapter.exit()}catch(l){l instanceof hF&&l.adsClientErrorMessage?(nkH(f.adEventLogger,l.adsClientErrorMessage,R),_.rW(l,R,void 0,void 0,l.aggressivelySample)):(nkH(f.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",R),_.rW(l,R))}}}};var cn=function(f,R,u,O,c,h){_.d9.call(this);this.registry=f;this.experimentApiProvider=h;this.slotMap=new Map};
_.y(cn,_.d9);var sKf=function(f,R){return(f=f.slotMap.get(R))?f:new Map},rb=function(f,R){return sKf(f,R.slotType+"_"+R.slotPhysicalPosition).get(R.slotId)},$TI=function(f){var R=[];
f.slotMap.forEach(function(u){u=_.Z(u.values());for(var O=u.next();!O.done;O=u.next())R.push(O.value.slot)});
return R};
cn.prototype.onSlotEntered=function(f){f=rb(this,f);f.slotLifecycleStage!=="enter_requested"&&ua(f.slot,f.slotLifecycleStage,"onSlotEntered");f.slotLifecycleStage="entered"};
var Bat=function(f,R){f=rb(f,R);return f.hasLayout()&&f.isRendering()},fy=function(f,R){(f=rb(f,R))?f.hasLayout()&&!f.layout&&_.rW("Unexpected empty layout",R):_.rW("Unexpected undefined slotState",R);
return(f==null?void 0:f.layout)||null};
cn.prototype.onSlotExited=function(f){f=rb(this,f);f.slotLifecycleStage!=="exit_requested"&&ua(f.slot,f.slotLifecycleStage,"onSlotExited");f.slotLifecycleStage="scheduled"};
cn.prototype.onLayoutExited=function(f,R){f=rb(this,f);f.isPrimaryLayout(R)&&(f.slotLifecycleStage!=="rendering_stop_requested"&&ua(f.slot,f.slotLifecycleStage,"onLayoutExited"),f.slotLifecycleStage="entered")};
var OZ=function(f,R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=f.registeredLayoutExitTriggerAdapters.get(u.triggerId);O&&(O.unregisterTrigger(u),f.registeredLayoutExitTriggerAdapters.delete(u.triggerId))}},ua=function(f,R,u){_.rW("Slot stage was "+R+" when calling method "+u,f)};var YGC=function(f){_.d9.call(this);this.deps=f;this.JSC$13337_adsControlFlowManager=Vzl(this)};
_.y(YGC,_.d9);var Vzl=function(f){var R=new YQ(function(u,O,c,h){return new cn(f.deps.registry,u,O,c,h,f.deps.experimentApiProvider)},new Set(FS5(f.deps.registry).concat(f.deps.listeners)),f.deps.adEventLogger,f.deps.experimentApiProvider);
_.qG(f,R);return R};var vkE=function(f,R){_.d9.call(this);this.experimentApiProvider=f;this.eventLoggingSettingsProvider=R;this.eventCount=0};
_.y(vkE,_.d9);vkE.prototype.logEvent=function(f){vp(this,f)};
var is=function(f,R,u,O){vp(f,R,void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,void 0,O)},RM=function(f,R,u,O,c){vp(f,R,void 0,void 0,void 0,u,O?O:void 0,void 0,void 0,u.adSlotLoggingData,O?O.adLayoutLoggingData:void 0,void 0,c)},nkH=function(f,R,u){vp(f,"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:R})},vp=function(f,R,u,O,c,h,l,K,q,F,w,m,W){W=W===void 0?0:W;
ilf(f.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"slot:",h,"layout:",l,"ping:",K,"Opportunity:",{opportunityType:u,associatedSlotId:O,slotsFromOpportunity:c,triggerBundle:q,adSlotLoggingData:F,adLayoutLoggingData:w});try{var C=function(){f.experimentApiProvider.get();if(R!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){R||_.rW("Empty PACF event type",h,l);var d=f.eventLoggingSettingsProvider.get();var p;(p=d.alwaysIncludeDebugData)||(d.experimentApiProvider.get(),p=
!1);d=p;p={eventType:R,eventOrder:++f.eventCount};var J={};h&&(J.slotData=ARl(d,h));if(l){var M={type:l.layoutType,controlFlowManagerLayer:KSD.get(l.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d&&(M.debugData={layoutId:l.layoutId});J.layoutData=M}K&&(J.pingData={pingDispatchStatus:K.dispatchStatus,serializedAdPingMetadata:K.ping.serializedAdPingMetadata,pingIndex:K.index});q&&(J.triggerData=qtq(q.trigger,q.category));u&&(J.opportunityData=aUl(d,u,O,c));p.adClientData=J;F&&(p.serializedSlotAdServingData=
F.serializedSlotAdServingDataEntry);w&&(p.serializedAdServingData=w.serializedAdServingDataEntry);m&&(p.errorInfo=m);_.Jr("adsClientStateChange",{adsClientEvent:p})}};
W&&W>0?_.dJ(_.LS(),function(){return C()},W):C()}catch(d){ilf(f.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.dJ(_.LS(),function(){_.rW(d instanceof Error?d:String(d),h,l,{pacf_message:"exception during pacf logging"})})}};var r3G=function(f,R){vkE.call(this,f,R)};
_.y(r3G,vkE);var fUI=function(){},ilf=function(f,R){return _.E(R)};var u2G=function(){var f=new RXH;this.JSC$13356_adsControlFlowManager=(new YGC(f)).JSC$13337_adsControlFlowManager},RXH=function(){_.d9.call(this);
var f=this;this.experimentApiProvider=new UTE(function(){return new fUI});
var R=new UTE(function(){return new eiC(f.experimentApiProvider)});
this.adEventLogger=new r3G(this.experimentApiProvider,R);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.y(RXH,_.d9);var O2C=function(){},cRI,Xh=function(){cRI||(cRI=new O2C);
return cRI},h8=function(f){if(!f.JSC$13367_externallyManagedSlotAdapterCallback){var R=(new u2G).JSC$13356_adsControlFlowManager;
f.JSC$13367_externallyManagedSlotAdapterCallback=R}return f.JSC$13367_externallyManagedSlotAdapterCallback},X$C=function(f,R,u){var O=R.opportunityType,c=Error("Hh");
if(O!==void 0){var h=h8(f);GGf(h,O,void 0,u)}else _.rW(c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});h=[];if(R.adSlotAndLayoutMetadata!==void 0){R=_.Z(R.adSlotAndLayoutMetadata);for(var l=R.next();!l.done;l=R.next()){var K=l.value;if(l=K.adSlotMetadata)if(h.push(l),f.onSlotReceivedExternallyManaged(l,u),K.adLayoutMetadata){K=_.Z(K.adLayoutMetadata);for(var q=K.next();!q.done;q=K.next())f.onLayoutReceivedExternallyManaged(l,q.value,u)}else u>0&&_.rW("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else u>0&&_.rW("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else u>0&&_.rW("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(O!==void 0)f.onOpportunityProcessedExternallyManaged(O,h,void 0,u);else _.rW(c,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
O2C.prototype.onSlotReceivedExternallyManaged=function(f,R){f=Zm(f);if(f instanceof hF)_.rW(f,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else h8(this).onSlotReceivedExternallyManaged(f,R)};
O2C.prototype.onLayoutReceivedExternallyManaged=function(f,R,u){f=Zm(f);R=mo7(R);if(f instanceof hF)_.rW(f,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(R instanceof lX)_.rW(R,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else h8(this).onLayoutReceivedExternallyManaged(f,R,u)};
O2C.prototype.onOpportunityProcessedExternallyManaged=function(f,R,u,O){var c=[];R=_.Z(R);for(var h=R.next();!h.done;h=R.next())h=Zm(h.value),h instanceof hF?_.rW(h,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):c.push(h);h8(this).onOpportunityProcessedExternallyManaged(f,c,u,O)};
var hXE=function(f,R){R=Zm(R);if(R instanceof hF)_.rW(R,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var u=h8(f);is(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",R);u=_.Z(u.adsControlFlowEventListeners);for(var O=u.next();!O.done;O=u.next())O=rb(O.value,R),O.slotLifecycleStage!=="not_scheduled"&&ua(O.slot,O.slotLifecycleStage,"onSlotScheduled"),O.slotLifecycleStage="scheduled";f=h8(f);is(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",R);f=_.Z(f.adsControlFlowEventListeners);
for(u=f.next();!u.done;u=f.next())u.value.onSlotEntered(R)}},Z2E=function(f,R){R=Zm(R);
if(R instanceof hF)_.rW(R,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var u=h8(f);is(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",R);u=_.Z(u.adsControlFlowEventListeners);for(var O=u.next();!O.done;O=u.next())O.value.onSlotExited(R);f=h8(f);is(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",R);f=_.Z(f.adsControlFlowEventListeners);for(u=f.next();!u.done;u=f.next())u.value.onSlotUnscheduled(R)}},lUH=function(f,R,u){R=Zm(R);
u=mo7(u);if(R instanceof hF)_.rW(R,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(u instanceof lX)_.rW(u,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var O=h8(f);RM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",R,u);O=_.Z(O.adsControlFlowEventListeners);for(var c=O.next();!c.done;c=O.next())c.value.onLayoutScheduled(R,u);f=h8(f);RM(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",R,u);f=_.Z(f.adsControlFlowEventListeners);
for(O=f.next();!O.done;O=f.next())xTH(O.value,R,u)}},ZF=function(f,R,u){R=Zm(R);
u=mo7(u);if(R instanceof hF)_.rW(R,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(u instanceof lX)_.rW(u,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var O=h8(f);RM(O.adEventLogger,kEn("normal"),R,u);O=_.Z(O.adsControlFlowEventListeners);for(var c=O.next();!c.done;c=O.next())c.value.onLayoutExited(R,u,"normal");f=h8(f);f=_.Z(f.adsControlFlowEventListeners);for(O=f.next();!O.done;O=f.next())gkF(O.value,R,u)}};_.la=_.nf(function(f){var R=_.sU(f,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});f=Object.assign({},R);var u=R.data;R=R.customCommandResolver;var O=(delete f.data,delete f.customCommandResolver,f),c=_.sW();_.gW(c,function(){return u().interaction},R,function(){var K;
return(K=O.listenToTapEvent)==null?void 0:K.call(O)});
_.fT(c,{visibilityCallback:function(K){var q,F=(q=u().interaction)==null?void 0:q.onFirstVisible;K&&(F&&_.Ux(F),O.setOnErrorHandler()&&Q2n(c))},
showOption:_.nY});f=_.Z(_.qK(!1,void 0,"eiYvIe"));var h=f.next().value,l=f.next().value;return _.a("ad-image-view-model",{class:function(){var K,q=[((K=u().interaction)==null?0:K.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],F;((F=O.isGridViewEnabled)==null?0:F.call(O))&&q.push("ytwAdImageViewModelHostInGridView");return q.join(" ")},
el:c,"on:touchend":_.Ff(function(){var K;((K=O.setTouchEndHandler)==null?0:K.call(O))&&!h()&&(c.value.click(),l(!0),setTimeout(function(){l(!1)},100));
return!1})},_.a("div",{class:"ytwAdImageViewModelHostImageContainer"},_.a(_.gR,{data:function(){var K;
return{sources:u().imageSources,contentMode:(K=u().imageProperties)==null?void 0:K.contentMode}},
alt:function(){var K,q;return((K=u().interaction)==null?void 0:(q=K.accessibility)==null?void 0:q.label)||""},
targetHeight:O.targetHeight,targetWidth:O.targetWidth,preserveHeight:O.preserveHeight,preserveWidth:O.preserveWidth,useWidth:O.useWidth,style:function(){var K,q;return"vertical-align: bottom;"+(((K=u().background)==null?0:K.color)?"background-color:"+_.I1((q=u().background)==null?void 0:q.color)+";":"")},
className:function(){return O.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var K,q;return(q=(K=O.setDraggable)==null?void 0:K.call(O))!=null?q:void 0}})))},"gb");var kEf=_.nf(function(f){var R=f.data,u=f.listenToTapEvent,O=_.sW();_.E("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.gW(O,function(){return R().interaction},void 0,function(){return u==null?void 0:u()});
_.fT(O,{visibilityCallback:function(h){var l,K=(l=R().interaction)==null?void 0:l.onFirstVisible;h&&K&&_.Ux(K)},
showOption:_.nY});var c=function(){};
return _.a("ad-button-hover-overlay-view-model",{"on:click":_.Ff(function(){if(_.E("enable_web_home_top_landscape_image_layout_legacy_click_command")){var h,l=(h=R().interaction)==null?void 0:h.onTap;l&&_.ul(O.value,"yt-navigate",{endpoint:_.H7(l)})}}),
class:function(){var h;return((h=R().interaction)==null?0:h.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:O},function(){return _.E("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.a(_.y5,{data:function(){return R().button}},{adButtonViewModel:function(h){return _.a(_.Yy,{data:h.data,
customCommandResolver:c})}}):_.a(_.y5,{data:function(){return R().button}},{adButtonViewModel:_.Yy})}())},"hb");var kR;_.ii(_.nf(function(f){var R=f.data;var u=_.sW();_.E("stop_av_measurement_on_detach")&&_.jN(function(){qm(u)});
_.gW(u,function(){return R().interaction},void 0,function(){return!0});
_.fT(u,{visibilityCallback:function(h){if(h){var l;(h=(l=R().interaction)==null?void 0:l.onFirstVisible)&&_.Ux(h);var K;if(l=(K=R().adLayoutData)==null?void 0:K.activeViewData)K9(u,l),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qm(u)})}else _.E("stop_av_measurement_on_detach")&&qm(u)},
showOption:_.nY,hideOption:V_});f=_.Z(_.qK(!1,void 0,"yzu6qe"));var O=f.next().value,c=f.next().value;return _.a("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:u,"on:mouseenter":_.Ff(function(){c(!0)}),
"on:mouseleave":_.Ff(function(){c(!1)})},_.a("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Qm({"max-width":function(){return _.E("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.a("div",{class:function(){var h;
a:{var l;switch((h=_.t(R().thumbnailImage,Ed))==null?void 0:(l=h.imageProperties)==null?void 0:l.renderingAspect){case "RENDERING_ASPECT_SQUARE":h="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":h="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}h=void 0}return h}},_.a(_.y5,{data:function(){return R().thumbnailImage}},{adImageViewModel:function(h){return _.a(_.la,
{data:h.data,
listenToTapEvent:!0,setTouchEndHandler:_.E("enable_top_landscape_image_experiment_dom_id_web")})}})),_.a("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.a(_.Q,{cond:function(){var h,l,K;
return(h=_.t(R().thumbnailImage,Ed))==null?void 0:(l=h.imageProperties)==null?void 0:(K=l.overlayIcon)==null?void 0:K.iconImage},
then:function(h){return _.a(_.gR,{data:h,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.a("div",{class:function(){return O()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.a(_.y5,{data:function(){return R().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(h){return _.a(kEf,
{data:h.data,
listenToTapEvent:!0})}}))),_.a("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.a(_.y5,{data:function(){return R().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.a(t_i,{data:h.data,
listenToTapEvent:!0,setTouchEndHandler:_.E("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=_.sW();_.E("stop_av_measurement_on_detach")&&_.jN(function(){qm(u)});
var O=_.JS(_.PJ);_.gW(u,function(){return R().interaction});
_.fT(u,{visibilityCallback:function(F){if(F){var w;(F=(w=R().interaction)==null?void 0:w.onFirstVisible)&&_.Ux(F);var m;if(w=(m=R().adLayoutData)==null?void 0:m.activeViewData)K9(u,w),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qm(u)})}else _.E("stop_av_measurement_on_detach")&&qm(u)},
showOption:_.nY,hideOption:V_});var c=_.Ff(function(F){var w,m,W=(w=_.t(R().adImage,Ed))==null?void 0:(m=w.interaction)==null?void 0:m.onTap;W&&(_.E("enable_square_image_components_ui_web_with_custom_event")?_.ul(u.value,"yt-navigate",{endpoint:_.H7(W)}):sRt(F,W))}),h=_.Ff(function(){var F,w,m=(F=_.t(R().adButton,ZSI))==null?void 0:(w=F.interaction)==null?void 0:w.onTap;
m&&_.ul(u.value,"yt-navigate",{endpoint:_.H7(m)})}),l=function(){};
f={};var K={},q={};return _.a("square-image-layout-view-model",{class:_.KL("ytwSquareImageLayoutViewModelHost",(f.ytwSquareImageLayoutViewModelHostColumn=O,f)),el:u},_.a("div",{class:_.KL("ytwSquareImageLayoutViewModelHostImage",(K.ytwSquareImageLayoutViewModelHostColumnImage=O,K))},function(){return _.E("enable_square_image_components_ui_web_with_native_img")?_.a("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var F,w,m;return((F=_.t(R().adImage,Ed))==null?void 0:(w=F.imageSources)==
null?void 0:(m=w[0])==null?void 0:m.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":c}):_.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(F){return _.a(_.la,{data:F.data,
isGridViewEnabled:O,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.a("div",{class:_.KL("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=O,q))},_.a(_.y5,{data:function(){return R().feedAdMetadata}},{feedAdMetadataViewModel:t_i}),function(){return _.E("enable_square_image_components_ui_web_with_float_button")?_.a("div",{"on:click":h},_.a(_.y5,{data:function(){return R().adButton}},
{adButtonViewModel:function(F){var w={};
return _.a(_.Yy,{data:F.data,customCommandResolver:l,className:_.KL((w.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=O,w))})}})):_.a(_.y5,{data:function(){return R().adButton}},{adButtonViewModel:function(F){var w={};
return _.a(_.Yy,{data:F.data,className:_.KL((w.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=O,w))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=f.noBottomMargin;var O=f.typographyBump;var c=_.sW();_.E("stop_av_measurement_on_detach")&&_.jN(function(){qm(c)});
_.E("enable_web_home_top_landscape_image_layout_level_click")&&_.gW(c,function(){return R().interaction},void 0,function(){return!0});
f=function(){return R().interaction};
f!==void 0&&f!==null||_.UC(Error("Ih"));_.fT(c,{visibilityCallback:function(F){if(F){var w;(F=(w=R().interaction)==null?void 0:w.onFirstVisible)&&_.Ux(F);var m;if(w=(m=R().adLayoutData)==null?void 0:m.activeViewData)K9(c,w),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qm(c)})}else _.E("stop_av_measurement_on_detach")&&qm(c)},
showOption:_.nY,hideOption:V_});var h=function(){var F,w,m;return(F=_.t(R().thumbnailImage,Ed))==null?void 0:(w=F.background)==null?void 0:(m=w.backgroundImageSource)==null?void 0:m.imageSources};
f=_.Z(_.qK(!1,void 0,"GIwTMc"));var l=f.next().value,K=f.next().value,q=function(){return l()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.a("top-landscape-image-layout-view-model",{class:function(){var F;return((F=R().interaction)==null?0:F.onTap)&&_.E("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:c,"on:mouseenter":_.Ff(function(){K(!0)}),
"on:mouseleave":_.Ff(function(){K(!1)})},_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.a(_.Q,{cond:function(){return h()&&h().length>0},
then:function(){return _.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Qm({top:"0","background-image":function(){return"url("+String(h()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.a(_.Q,{cond:function(){return!!R().adButtonHoverOverlay},
then:function(){return _.a("div",{class:q},_.a(_.y5,{data:function(){return R().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:kEf}))}}),_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.a(_.y5,{data:function(){return R().thumbnailImage}},{adImageViewModel:function(F){return _.a(_.la,{data:F.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.E("enable_web_home_top_landscape_image_layout_level_click")})}})),_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.a(_.gR,{data:{sources:[{clientResource:{imageName:_.E("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.a(_.y5,{data:function(){return R().feedAdMetadata}},{feedAdMetadataViewModel:function(F){return _.a(t_i,{data:F.data,
noBottomMargin:function(){return u==null?void 0:u()},
listenToTapEvent:function(){return _.E("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return O==null?void 0:O()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.SG,
noBottomMargin:_.SG,typographyBump:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=f.typographyBump;var O=_.sW();_.E("stop_av_measurement_on_detach")&&_.jN(function(){qm(O)});
_.fT(O,{visibilityCallback:function(c){if(c){var h;(c=(h=R().interaction)==null?void 0:h.onFirstVisible)&&_.Ux(c);var l;if(h=(l=R().adLayoutData)==null?void 0:l.activeViewData)K9(O,h),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qm(O)})}else _.E("stop_av_measurement_on_detach")&&qm(O)},
showOption:_.nY,hideOption:V_});return _.a("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:O},_.a("div",null,_.a(_.y5,{data:function(){return R().videoLockup}},{lockupViewModel:function(c){return _.a(_.RE,{data:c.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.SG,
noBottomMargin:_.SG,typographyBump:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=f.className;var O=f.typographyBump;var c=_.sW();_.fT(c,{visibilityCallback:function(h){if(h){var l;(h=(l=R().interaction)==null?void 0:l.onFirstVisible)&&_.Ux(h);var K;(l=(K=R().adLayoutData)==null?void 0:K.activeViewData)&&K9(c,l)}},
showOption:_.nY});return _.a("video-display-compact-button-group-layout-view-model",{el:c,class:_.KL("videoDisplayCompactButtonGroupLayoutViewModelHost",u)},_.a(_.y5,{data:function(){return R().videoLockup}},{lockupViewModel:function(h){return _.a(_.RE,{data:h.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:O})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.SG,
className:_.SG,typographyBump:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=f.typographyBump;var O=_.sW();_.E("stop_av_measurement_on_detach")&&_.jN(function(){qm(O)});
_.fT(O,{visibilityCallback:function(c){if(c){var h;(c=(h=R().interaction)==null?void 0:h.onFirstVisible)&&_.Ux(c);var l;if(h=(l=R().adLayoutData)==null?void 0:l.activeViewData)K9(O,h),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qm(O)})}else _.E("stop_av_measurement_on_detach")&&qm(O)},
showOption:_.nY,hideOption:V_});return _.a("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:O},_.a("div",null,_.a(_.y5,{data:function(){return R().videoLockup}},{lockupViewModel:function(c){return _.a(_.RE,{data:c.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.SG,
noBottomMargin:_.SG,typographyBump:_.SG}});_.KSk=_.nf(function(f){var R=f.data;f=_.sW();return _.a("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:f},_.a(_.Q,{cond:function(){return R().imageBadge},
then:function(u){return _.a(_.gR,{data:u,alt:""})}}))},"ob");var qtI=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;f=_.sW();_.gW(f,function(){return R().interaction},u);
_.fT(f,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});return _.a("carousel-ad-card-image-view-model",{class:function(){var O;return((O=R().interaction)==null?0:O.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:f,"aria-label":function(){var O,c;return(O=R().interaction)==null?void 0:(c=O.accessibility)==null?void 0:c.label}},_.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(O){return _.a(_.la,{data:O.data,
customCommandResolver:u})}}),_.a("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.a(_.y5,{data:function(){return R().badge}},{adCardBadgeViewModel:_.KSk})),_.a(_.CL,{model:{color:4}}))},"pb");var ARF=_.nf(function(f){var R=_.Z(_.qK(0,void 0,"o9Bzd")),u=R.next().value;R.next();var O=R.next().value,c=_.Z(_.qK(!1,void 0,"KLdzYe"));R=c.next().value;var h=c.next().value,l;_.jN(function(){clearTimeout(l)});
c=_.Ff(function(){var F;((F=f.animate)==null?0:F.call(f))?(h(!0),l=setTimeout(function(){h(!1);K()},200)):K();
return!1});
var K=function(){O(function(F){return(F+f.numShownItems())%f.data().length})},q={};
return _.a("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.a("div",{class:_.KL("ytwHorizontalCarouselCarouselWrapper")},_.a("div",{class:_.KL("ytwHorizontalCarouselCarouselInnerWrapper",(q.ytwHorizontalCarouselAnimating=R,q))},_.a(_.EC,{each:f.data,keyBy:"INDEX"},function(F,w){return _.a("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Qm({"flex-basis":function(){return"calc((100% - (8px * "+(f.numShownItems()-1)+")) / "+f.numShownItems()+")"},
order:function(){var m=w-u();m<0&&(m+=f.data().length);return m}})},f.children(F,w))}))),_.a("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":c},f.nextButton()))},"qb");var aUF=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;var O=f.expansive;f=_.sW();_.fT(f,{visibilityCallback:function(c){var h,l=(h=R().interaction)==null?void 0:h.onFirstVisible;c&&l&&_.Ux(l)},
showOption:_.nY});return _.a("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:f},_.a(ARF,{data:function(){var c;return((c=R())==null?void 0:c.carouselAdCards)||[]},
nextButton:function(){return _.a(_.y5,{data:function(){return R().nextButton}},{buttonViewModel:function(c){var h=c.data;
return _.a(_.TS,{data:function(){return(O==null?0:O())?Object.assign({},h(),{style:"mono"}):h()},
className:_.E("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(c){return _.a(_.y5,{data:c},{carouselAdCardImageViewModel:function(h){return _.a(qtI,{data:h.data,customCommandResolver:u})}})}))},"rb");var FSC=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;var O=f.className;var c=f.buttonClassName;var h=f.animationEntityKey;var l=f.expansive;return _.a("carousel-button-view-model",{class:_.KL("ytwCarouselButtonViewModelHost",O)},_.a(_.y5,{data:function(){return R().carousel}},{carouselAdCardCollectionViewModel:function(K){return _.a(aUF,{data:K.data,
customCommandResolver:u,expansive:l})}}),_.a(_.y5,{data:function(){return R().button}},{adButtonViewModel:function(K){var q=K.data;
return _.a(_.Yy,{data:function(){return(l==null?0:l())?Object.assign({},q(),{style:"AD_BUTTON_STYLE_TONAL"}):q()},
className:c,customCommandResolver:u,animationEntityKey:h})}}))},"sb");_.w$I=_.nf(function(f){var R=f.data;f=f.className;var u=_.sW();_.bt(function(){var O;((O=R())==null?0:O.backgroundColor)&&u.value.setAttribute("data-background-color",String(R().backgroundColor))});
return _.a("pivot-button-view-model",{el:u,class:_.KL("ytwPivotButtonViewModelHost",f)},_.a(_.cd,{command:function(){var O=R();O=O.onClickCommand?_.H7(O.onClickCommand):O.contentDescription?_.vW(O.contentDescription):void 0;return O},
ariaLabel:function(){return R().contentDescription}},_.a(_.Q,{cond:function(){return R().thumbnail},
then:function(O){return _.a(_.gR,{data:O,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.a(_.Q,{cond:function(){return R().icon},
then:function(O){return _.a(_.WM,{icon:function(){return O().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.mok=_.nf(function(f){var R=f.data;var u=f.buttonShapeOverrideables;return _.a("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.a(_.y5,{data:function(){return R().buttonViewModels}},{buttonViewModel:function(O){return _.a(_.TS,{data:O.data,
buttonOverrides:u})},
likeButtonViewModel:function(O){return _.a(_.DA,{data:O.data,buttonShapeOverrideables:u})},
dislikeButtonViewModel:function(O){return _.a(_.jM,{data:O.data,buttonShapeOverrideables:u})}}))},"ub");var Q2f=_.nf(function(f){var R=f.avatar;var u=f.headline;var O=f.badge;var c=f.description;var h=f.expansive;f={};return _.a("yt-ad-metadata-shape",{class:_.KL("ytAdMetadataShapeHost",(f.ytAdMetadataShapeHostLarge=h,f))},_.a("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.a(_.Q,{cond:R,then:function(l){return _.a(_.m9f,{data:function(){return(h==null?0:h())?Object.assign({},l(),{size:"AD_AVATAR_SIZE_MPLUS"}):l()}})}}),_.a("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.a(_.YO,{text:u,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.a(_.Q,{cond:O,then:function(l){return _.a(_.rG,{data:function(){return(h==null?0:h())?Object.assign({},l(),{style:"AD_BADGE_STYLE_STARK"}):l()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.a("h2",{class:"ytAdMetadataShapeHostDescription"},_.a(_.YO,{text:c,
linkInheritColor:!0})))},"vb");var WSk=_.nf(function(f){var R=f.data;var u=f.onShow;var O=f.expansive;f=_.sW();_.gW(f,function(){return R().interaction});
_.bt(function(){var h,l=(h=R().animatedRenderingConfig)==null?void 0:h.delayedSecondsToVisible;if(l){var K=setTimeout(u,l*1E3);_.jN(function(){clearTimeout(K)})}});
var c={};return _.a("reels-ad-card-buttoned-view-model",{class:_.KL(function(){var h;return((h=R().interaction)==null?0:h.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(c.ytwReelsAdCardButtonedViewModelHostExpansive=O,c)),
el:f},_.a(Q2f,{avatar:function(){return _.t(R().avatar,X9Y)},
headline:function(){return R().headline},
badge:function(){return _.t(R().adBadge,hKH)},
description:function(){return R().description},
expansive:O}),_.a(_.y5,{data:function(){return R().ctaButton}},{adButtonViewModel:function(h){var l=h.data;
return _.a(_.Yy,{data:function(){return(O==null?0:O())?Object.assign({},l(),{style:"AD_BUTTON_STYLE_FILLED"}):l()}})}}))},"wb");var EfE=_.nf(function(f){var R=f.data;f=f.expansive;var u=_.sW();_.E("web_ad_metadata_clickable")&&_.gW(u,function(){return R().interaction});
var O={};O=_.AS("ytwReelsAdMetadataViewModelHost",(O.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.E("web_ad_metadata_clickable"),O));return _.a("reels-ad-metadata-view-model",{class:O,el:u},_.a(Q2f,{avatar:function(){return _.t(R().avatar,X9Y)},
headline:function(){return R().headline},
badge:function(){return _.t(R().adBadge,hKH)},
description:function(){return R().description},
expansive:f}))},"xb");var tjY={iconPosition:"icon-with-label",size:"L"},CRf=_.nf(function(f){var R=f.data;var u=f.overlayDensity;f=_.sW();var O=_.g_(u,0),c=function(){var m;return(m=R().reelsAdCardButtonedEntityKey)!=null?m:""},h=function(){return c()+"/ad_button"},l=_.Ax(b1q,c),K=function(){var m,W;
return(W=(m=l())==null?void 0:m.value)!=null?W:!1},q=_.JS(N0P),F=function(){return Object.assign({},tjY,(q()||O()===2)&&{style:"overlay-dark"})};
u={};var w={};return _.a("reels-player-overlay-layout-view-model",{class:_.KL("ytwReelsPlayerOverlayLayoutViewModelHost",(u.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!R().extension},u.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},u)),
"overlay-density":function(){return String(O())},
el:f},_.a("div",{class:_.KL("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(w.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},w))},_.a("div",{"aria-hidden":function(){return K()},
class:_.KL("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Qm({"transition-duration":function(){return p$t(R())}})},_.a(_.y5,{data:function(){return R().adMetadata}},{reelsAdMetadataViewModel:function(m){return _.a(EfE,{data:m.data,
expansive:function(){return O()===1}})}}),_.a(_.Q,{cond:function(){return R().extension},
then:function(m){return _.a("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.a(_.y5,{data:m},{adButtonViewModel:function(W){return _.a(_.Yy,{data:W.data,animationEntityKey:h,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(W){return _.a(FSC,{data:W.data,animationEntityKey:h,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return O()===1}})}}))}})),_.a("div",{"aria-hidden":function(){return!K()},
class:_.KL("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Qm({"transition-duration":function(){return p$t(R())}})},_.a(_.y5,{data:function(){return R().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(m){return _.a(WSk,{data:m.data,
onShow:function(){_.$s(_.aA("booleanEntity",c(),{key:c(),value:!0}))},
expansive:function(){return O()===1}})}}))),_.a("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.a(_.y5,{data:function(){return R().actions}},{reelActionBarViewModel:function(m){return _.a(_.mok,{data:m.data,
buttonShapeOverrideables:F})}}),_.a(_.y5,{data:function(){return R().menu}},{buttonViewModel:function(m){return _.a(_.TS,{data:m.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},F(),{type:"tonal"})}})}}),_.a(_.y5,{data:function(){return R().pivotButton}},{pivotButtonViewModel:function(m){return _.a(_.w$I,{data:m.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.ii(CRf,"reels-player-overlay-layout-view-model",{props:{data:_.SG,overlayDensity:_.SG}});var kA=function(){var f=_.U.apply(this,arguments)||this;f.noBottomMargin=!1;f.overlayDensity=0;return f};
_.y(kA,_.U);_.X=kA.prototype;
_.X.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.E("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]]"}}}}}};
_.X.ready=function(){var f=this;rc5(function(){f.isAttached&&cB(f.JSC$13413_storedAdSlotMetadata,f.JSC$13413_storedAdLayoutMetadata,f.adSlotMetadata,f.adLayoutMetadata)&&ZF(Xh(),f.JSC$13413_storedAdSlotMetadata,f.JSC$13413_storedAdLayoutMetadata)})};
_.X.attached=function(){cB(this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&lUH(Xh(),this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata)};
_.X.detached=function(){cB(this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ZF(Xh(),this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata)};
_.X.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.X.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13413_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13413_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13413_storedAdLayoutMetadata!==void 0&&this.JSC$13413_storedAdSlotMetadata!==void 0&&ZF(Xh(),this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata),lUH(Xh(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13413_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13413_storedAdSlotMetadata=this.adSlotMetadata)};
_.Vy.Object.defineProperties(kA.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.adLayoutMetadata}}});
kA.prototype.onAdMetadataChanged=kA.prototype.onAdMetadataChanged;kA.prototype.onTypographyBumpChanged=kA.prototype.onTypographyBumpChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kA.prototype,"rendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],kA.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],kA.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],kA.prototype,"noBottomMargin",void 0);_.B([_.I(),_.S("design:type",Object)],kA.prototype,"overlayDensity",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],kA.prototype,"typographyBump",void 0);_.B([_.T("data.adLayoutMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],kA.prototype,"adLayoutMetadata",null);_.B([_.I(),_.S("design:type",Object)],kA.prototype,"adSlotMetadata",void 0);
_.B([_.a4("ytd-video-display-full-buttoned-and-button-group-renderer"),_.S("design:type",HTMLElement)],kA.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.B([_.qM("typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kA.prototype,"onTypographyBumpChanged",null);_.B([_.qM("adLayoutMetadata","adSlotMetadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kA.prototype,"onAdMetadataChanged",null);
kA=_.B([_.e({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],kA);
_.G(kA,"ytd-in-feed-ad-layout-renderer",function(){if(A3A!==void 0)return A3A;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return A3A=f},
{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var yRk;var doI;var Ky=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return f};
_.y(Ky,_.U);_.X=Ky.prototype;_.X.computeHasLiveDescription=function(f){return!(f==null||!f.liveDescription)};
_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.X.onYtToggleButton=function(f){var R,u=(R=this.data)==null?void 0:R.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.aA("upcomingEventReminderStateEntity",u,{key:u,state:f.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.X.attached=function(){this.updateChannelBanner()};
_.X.dataChanged=function(){this.updateChannelBanner()};
_.X.videoReminderStateChanged=function(){var f;this.videoReminderState&&_.t((f=this.data)==null?void 0:f.cta,_.T9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.X.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var f=_.rR(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);f&&(f.startsWith("//")&&(f="https:"+f),this.hostElement.classList.add("channel-banner"),_.ZO(this.hostElement,{"--ytvmh-channel-banner":"url("+f+")"}))}else _.E("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.X.onPlayerReady=function(){this.onIronResize()};
_.X.maybeFlushDebouncer=function(){_.E("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(f){var R;f=(R=f.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0];dE5(f==null?void 0:f.polymerController)})};
_.X.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var f=_.b(this.hostElement).querySelector("#live-description"),R;f&&((R=this.data)==null?0:R.shortLiveDescription)&&f.clientWidth<f.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Ky.prototype.onIronResize=Ky.prototype.onIronResize;Ky.prototype.videoReminderStateChanged=Ky.prototype.videoReminderStateChanged;Ky.prototype.dataChanged=Ky.prototype.dataChanged;Ky.prototype.onYtToggleButton=Ky.prototype.onYtToggleButton;_.B([_.z(_.Lu),_.S("design:type",Object)],Ky.prototype,"ironResizableBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Ky.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Ky.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ky.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.videoReminderEntityKey"],selector:dh0}),_.S("design:type",Object)],Ky.prototype,"videoReminderState",void 0);
_.B([_.I({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.S("design:type",Boolean)],Ky.prototype,"rounded",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.S("design:type",Boolean)],Ky.prototype,"hasLiveDescription",void 0);_.B([_.I({reflectToAttribute:!0,value:_.E("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.S("design:type",Boolean)],Ky.prototype,"resizableAdBannerSafariFix",void 0);
_.B([_.I({reflectToAttribute:!0,value:_.E("align_three_dot_menu_with_title_description")}),_.S("design:type",Boolean)],Ky.prototype,"menuFix",void 0);_.B([_.F4("yt-formatted-string"),_.S("design:type",Array)],Ky.prototype,"formattedStrings",void 0);_.B([_.a4("#cta-button"),_.S("design:type",HTMLElement)],Ky.prototype,"ctaButton",void 0);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ky.prototype,"onYtToggleButton",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ky.prototype,"dataChanged",null);_.B([_.qM("videoReminderState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ky.prototype,"videoReminderStateChanged",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ky.prototype,"onIronResize",null);
Ky=_.B([_.e({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Ky);
_.G(Ky,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(doI!==void 0)return doI;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return doI=f},{mode:1});var N0l;var qF=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};f.isLocked=!1;return f};
_.y(qF,_.U);_.X=qF.prototype;_.X.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.X.onExpandedChanged=function(){this.expanded&&_.c_(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.X.onMouseOver=function(){this.maybeExpand()};
_.X.onTap=function(){this.maybeExpand()};
_.X.onExpandableTileExpanding=function(f){f!==this&&(this.expanded=!1)};
_.X.onExpandableTileLockAndCollapse=function(f){this.isLocked=!0;f!==this&&(this.expanded=!1)};
_.X.onExpandableTileUnlock=function(){this.isLocked=!1};
qF.prototype.onTap=qF.prototype.onTap;qF.prototype.onMouseOver=qF.prototype.onMouseOver;qF.prototype.onExpandedChanged=qF.prototype.onExpandedChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],qF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qF.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],qF.prototype,"expanded",void 0);_.B([_.QR("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qF.prototype,"onExpandedChanged",null);_.B([_.Kf("mouseover"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qF.prototype,"onMouseOver",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qF.prototype,"onTap",null);
qF=_.B([_.e({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],qF);
_.G(qF,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(N0l!==void 0)return N0l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return N0l=f},{mode:1});var LSk;var A8=function(){var f=_.U.apply(this,arguments)||this;f.buttonOverrides={style:"overlay"};f.useYtdPlayer=_.E("use_ytd_player_for_desktop_masthead");f.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};f.playbackFinished=!1;f.JSC$13425_playerManager=null;f.JSC$13425_mastheadCounter=new K1Y;return f};
_.y(A8,_.U);_.X=A8.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$13425_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13425_playerManager=new tC)};
_.X.ready=function(){var f=this;this.JSC$13425_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var R=_.b(this.hostElement).querySelector("#player");this.useYtdPlayer?R.style.display="none":(this.ytdPlayer.style.display="none",xCf(this.JSC$13425_playerManager,R,function(){f.onPlaybackEnded()}),_.b(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var u;
((u=f.data)==null?0:u.navigationEndpoint)&&_.ul(f.hostElement,"yt-navigate",{endpoint:f.data.navigationEndpoint})}))};
_.X.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13425_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.X.attached=function(){var f=this;_.P2(function(){f.maybePlayVideo()})};
_.X.maybePlayVideo=function(){var f=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$13425_playerManager.playVideo(),this.getPlayerPromise().then(function(){f.JSC$13425_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.X.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13425_playerManager.stopVideo()};
_.X.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var f,R={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((f=this.data.playbackStartMs)!=null?f:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else $Cf(this.JSC$13425_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Sii(this.JSC$13425_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.X.getPlayerPromise=function(){return this.JSC$13425_playerManager.getPlayerPromise()};
_.X.onYtToggleButton=function(f){this.useYtdPlayer?this.toggleMute(f.detail.toggled):f.detail.toggled?this.JSC$13425_playerManager.mute():this.JSC$13425_playerManager.unMute()};
_.X.onYtNavigate=function(f){var R=mDn(f.detail.endpoint),u=Q6P(this.data.clickthroughReportingData);R&&u&&(f.detail.endpoint.watchEndpoint?f.detail.tempData=u:_.VP(R,u,30))};
_.X.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.X.onExpandedChanged=function(){this.expanded?(_.c_(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.X.onMouseOver=function(){this.maybeExpand()};
_.X.onTap=function(){this.maybeExpand()};
_.X.onExpandableTileExpanding=function(f){f!==this&&(this.stopVideo(),this.expanded=!1)};
_.X.onExpandableTileLockAndCollapse=function(f){f!==this&&(this.isLocked=!0,this.expanded=!1)};
_.X.onExpandableTileUnlock=function(){this.isLocked=!1};
_.X.lockAndCollapseExpandableTiles=function(){_.OJ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.X.unlockExpandableTiles=function(){_.OJ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.X.setupYtdPlayer=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.ytdPlayer.getPlayerPromise(),2);R=u.yieldResult;R.addEventListener("onStateChange",function(O){f.onPlayerStateChange(O)});
R.addEventListener("onCueRangeExit",function(O){f.onCueRangeExit(O)});
_.KG(u)})};
_.X.onPlayerStateChange=function(f){if(f===1&&(f=this.ytdPlayer.getPlayer())){var R=f.getCurrentTime(),u,O,c=R+((O=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?O:0)/1E3;f.addCueRange("playback",R,c);this.JSC$13425_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.X.onCueRangeExit=function(f){f==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.X.toggleMute=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.ytdPlayer.getPlayerPromise(),2);u=O.yieldResult;f?u.mute():u.unMute();_.KG(O)})};
A8.prototype.onTap=A8.prototype.onTap;A8.prototype.onMouseOver=A8.prototype.onMouseOver;A8.prototype.onExpandedChanged=A8.prototype.onExpandedChanged;A8.prototype.onYtNavigate=A8.prototype.onYtNavigate;A8.prototype.onYtToggleButton=A8.prototype.onYtToggleButton;A8.prototype.dataChanged=A8.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],A8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],A8.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],A8.prototype,"expanded",void 0);_.B([_.I(),_.S("design:type",Object)],A8.prototype,"buttonOverrides",void 0);
_.B([_.I(),_.S("design:type",Object)],A8.prototype,"useYtdPlayer",void 0);_.B([_.a4("#ytd-player"),_.S("design:type",Object)],A8.prototype,"ytdPlayer",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A8.prototype,"dataChanged",null);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],A8.prototype,"onYtToggleButton",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],A8.prototype,"onYtNavigate",null);_.B([_.QR("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A8.prototype,"onExpandedChanged",null);_.B([_.Kf("mouseover"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A8.prototype,"onMouseOver",null);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A8.prototype,"onTap",null);A8=_.B([_.e({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],A8);
_.G(A8,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(LSk!==void 0)return LSk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return LSk=f},{mode:1});var b2f;var aM=function(){return _.U.apply(this,arguments)||this};
_.y(aM,_.U);aM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
aM.prototype.onShow=function(){var f=_.b(this.hostElement).querySelector("#live-description"),R;f&&((R=this.data)==null?0:R.shortLiveDescription)&&f.clientWidth<f.scrollWidth&&this.hostElement.classList.add("short-live-description")};
aM.prototype.onYtToggleButton=function(f){var R,u=(R=this.data)==null?void 0:R.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.aA("upcomingEventReminderStateEntity",u,{key:u,state:f.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
aM.prototype.videoReminderStateChanged=function(){var f;this.videoReminderState&&_.t((f=this.data)==null?void 0:f.cta,_.T9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
aM.prototype.videoReminderStateChanged=aM.prototype.videoReminderStateChanged;aM.prototype.onYtToggleButton=aM.prototype.onYtToggleButton;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],aM.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aM.prototype,"data",void 0);
_.B([_.I({selectorArgs:["data.videoReminderEntityKey"],selector:dh0}),_.S("design:type",Object)],aM.prototype,"videoReminderState",void 0);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],aM.prototype,"onYtToggleButton",null);_.B([_.qM("videoReminderState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aM.prototype,"videoReminderStateChanged",null);
aM=_.B([_.e({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],aM);
_.G(aM,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(b2f!==void 0)return b2f;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return b2f=f},{mode:_.c7("kevlar_poly_si_batch_j065")?1:2});var p$Y;var Fh=function(){var f=_.U.apply(this,arguments)||this;f.useYtdPlayer=_.E("use_ytd_player_for_desktop_masthead");f.buttonOverrides={style:"overlay"};f.JSC$13433_playerManager=null;f.JSC$13433_mastheadCounter=new K1Y;f.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return f};
_.y(Fh,_.U);_.X=Fh.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$13433_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13433_playerManager=new tC)};
_.X.ready=function(){var f=this;this.JSC$13433_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var R;(R=this.embeddedPlayer)==null||R.remove()}else{var u;(u=this.ytdPlayer)==null||u.remove();xCf(this.JSC$13433_playerManager,this.embeddedPlayer,function(){f.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){f.data&&f.data.navigationEndpoint&&_.ul(f.hostElement,"yt-navigate",{endpoint:f.data.navigationEndpoint})})}};
_.X.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13433_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.X.dataChanged=function(){var f=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var R=!this.data.disableAutoPlayback,u,O={autoplay:R,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(R?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(O);this.setupYtdPlayer()}else $Cf(this.JSC$13433_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Sii(this.JSC$13433_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13433_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.OJ(f.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");f.JSC$13433_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.X.getPlayerPromise=function(){return this.JSC$13433_playerManager.getPlayerPromise()};
_.X.onYtToggleButton=function(f){this.useYtdPlayer?this.toggleMute(f.detail.toggled):f.detail.toggled?this.JSC$13433_playerManager.mute():this.JSC$13433_playerManager.unMute()};
_.X.onYtNavigate=function(f){var R=mDn(f.detail.endpoint),u=Q6P(this.data.clickthroughReportingData);R&&u&&(f.detail.endpoint.watchEndpoint?f.detail.tempData=u:_.VP(R,u,30))};
_.X.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13433_playerManager.stopVideo()};
_.X.setupYtdPlayer=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.ytdPlayer.getPlayerPromise(),2);R=u.yieldResult;R.addEventListener("onStateChange",function(O){f.onPlayerStateChange(O)});
R.addEventListener("onCueRangeExit",function(O){f.onCueRangeExit(O)});
_.KG(u)})};
_.X.onPlayerStateChange=function(f){if(f===1&&(f=this.ytdPlayer.getPlayer())){var R=f.getCurrentTime(),u,O,c=R+((O=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?O:0)/1E3;f.addCueRange("playback",R,c);_.OJ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13433_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.X.onCueRangeExit=function(f){f==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.X.toggleMute=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.ytdPlayer.getPlayerPromise(),2);u=O.yieldResult;f?u.mute():u.unMute();_.KG(O)})};
_.Vy.Object.defineProperties(Fh.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f,R;if(!((f=this.data)==null?0:(R=f.accessibilityData)==null?0:R.label))return"Ad primary link";var u,O;return _.Fa("AD_TITLE",{title:(u=this.data)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label})}}});
Fh.prototype.onYtMastheadHidden=Fh.prototype.onYtMastheadHidden;Fh.prototype.onYtNavigate=Fh.prototype.onYtNavigate;Fh.prototype.onYtToggleButton=Fh.prototype.onYtToggleButton;Fh.prototype.dataChanged=Fh.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Fh.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Fh.prototype,"useYtdPlayer",void 0);_.B([_.a4("ytd-toggle-button-renderer"),_.S("design:type",Object)],Fh.prototype,"muteButton",void 0);_.B([_.I(),_.S("design:type",Object)],Fh.prototype,"buttonOverrides",void 0);
_.B([_.T("data.accessibilityData.label"),_.S("design:type",String),_.S("design:paramtypes",[])],Fh.prototype,"titleAriaLabel",null);_.B([_.a4("#replay-button"),_.S("design:type",Object)],Fh.prototype,"replayButton",void 0);_.B([_.a4("#player-container"),_.S("design:type",Object)],Fh.prototype,"playerContainer",void 0);_.B([_.a4("#player"),_.S("design:type",Object)],Fh.prototype,"embeddedPlayer",void 0);_.B([_.a4("#ytd-player"),_.S("design:type",Object)],Fh.prototype,"ytdPlayer",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fh.prototype,"dataChanged",null);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Fh.prototype,"onYtToggleButton",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Fh.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-masthead-hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fh.prototype,"onYtMastheadHidden",null);Fh=_.B([_.e({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Fh);
_.G(Fh,"ytd-video-masthead-ad-primary-video-renderer",function(){if(p$Y!==void 0)return p$Y;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return p$Y=f},{mode:2});var j2G;var wr=function(){var f=_.U.apply(this,arguments)||this;f.collapsed=!1;f.impressionResolver=_.BM();f.JSC$13437_activeViewMeasurementDataResolver=_.BM();f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.y(wr,_.U);_.X=wr.prototype;_.X.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"}}}};
_.X.ready=function(){var f=this;_.b(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){f.expandAd()});
this.hostElement.addEventListener("yt-action",function(R){if(R.detail.actionName==="yt-service-request"){var u=R.detail.args[1];u.videoMastheadAdMuteCommand&&(f.collapseAd(u.videoMastheadAdMuteCommand.encryptedMastheadId),R.stopPropagation())}})};
_.X.attached=function(){var f=this;_.P2(function(){f.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(R){if(!f.collapsed){R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,SI(u.baseUrl,u.attributionSrcMode);f.data.impressionCommand=void 0}});
this.JSC$13437_activeViewMeasurementDataResolver.promise.then(function(R){f.ytdActiveViewBehavior.enableActiveViewMeasurement(R,15)});
_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.dataChanged=function(){var f;((f=this.data.impressionCommand)==null?0:f.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var R;((R=this.data)==null?0:R.activeView)&&this.JSC$13437_activeViewMeasurementDataResolver.resolve(this.data.activeView);(f=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(f.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.X.computeWidescreen=function(f){var R;return!!(f&&((R=_.t(f,fSk))==null?0:R.isWidescreen))};
_.X.computeExpandable=function(f){return!!(f&&f.length>0)};
_.X.onIronResize=function(){if(this.expandable){var f=_.b(this.hostElement).querySelector("#expandable-tile-container :first-child");f&&!f.expanded&&(f.expanded=!0)}};
_.X.handleMuteAd=function(){this.collapseAd(null)};
_.X.restoreCollapsedState=function(f){this.collapsed=_.Qu().get("HIDDEN_MASTHEAD_ID")===f};
_.X.collapseAd=function(f){if(f){var R=_.Qu();R.set("HIDDEN_MASTHEAD_ID",f);R.save()}(f=_.b(this.hostElement).querySelector("#video"))&&_.ul(f,"yt-masthead-hidden");this.collapsed=!0};
_.X.expandAd=function(){var f=_.Qu();f.set("HIDDEN_MASTHEAD_ID",!1);f.save();location.reload()};
_.X.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
wr.prototype.onIronResize=wr.prototype.onIronResize;wr.prototype.dataChanged=wr.prototype.dataChanged;_.B([_.z(_.Lu),_.S("design:type",Object)],wr.prototype,"ironResizableBehavior",void 0);_.B([_.z(DZ),_.S("design:type",Object)],wr.prototype,"ytdActiveViewBehavior",void 0);_.B([_.z(_.MD),_.S("design:type",Object)],wr.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],wr.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wr.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.S("design:type",Boolean)],wr.prototype,"widescreen",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.S("design:type",Boolean)],wr.prototype,"expandable",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wr.prototype,"collapsed",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wr.prototype,"dataChanged",null);
_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wr.prototype,"onIronResize",null);wr=_.B([_.e({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],wr);
_.G(wr,"ytd-video-masthead-ad-v3-renderer",function(){if(j2G!==void 0)return j2G;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return j2G=f},{mode:2});var mI=function(){return _.U.apply(this,arguments)||this};
_.y(mI,_.U);_.X=mI.prototype;_.X.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.X.ready=function(){var f=this;rc5(function(){f.isAttached&&cB(f.JSC$13442_storedAdSlotMetadata,f.JSC$13442_storedAdLayoutMetadata,f.adSlotMetadata,f.adLayoutMetadata)&&ZF(Xh(),f.JSC$13442_storedAdSlotMetadata,f.JSC$13442_storedAdLayoutMetadata)})};
_.X.attached=function(){cB(this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&lUH(Xh(),this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata)};
_.X.detached=function(){cB(this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ZF(Xh(),this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata)};
_.X.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13442_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13442_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13442_storedAdLayoutMetadata!==void 0&&this.JSC$13442_storedAdSlotMetadata!==void 0&&ZF(Xh(),this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata),lUH(Xh(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13442_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13442_storedAdSlotMetadata=this.adSlotMetadata)};
_.Vy.Object.defineProperties(mI.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.adLayoutMetadata}}});
mI.prototype.onAdMetadataChanged=mI.prototype.onAdMetadataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],mI.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mI.prototype,"data",void 0);_.B([_.T("data.adLayoutMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],mI.prototype,"adLayoutMetadata",null);
_.B([_.I(),_.S("design:type",Object)],mI.prototype,"adSlotMetadata",void 0);_.B([_.qM("adLayoutMetadata","adSlotMetadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mI.prototype,"onAdMetadataChanged",null);mI=_.B([_.e({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],mI);
_.G(mI,"ytd-page-top-ad-layout-renderer",function(){if(yRk!==void 0)return yRk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return yRk=
f},{mode:_.c7("kevlar_poly_si_batch_j070")?1:2});var DoC;var Q$=function(){var f=_.U.apply(this,arguments)||this;f.noBottomMargin=!1;f.overlayDensity=0;f.typographyBump=!1;return f};
_.y(Q$,_.U);_.X=Q$.prototype;
_.X.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.X.ready=function(){var f=this;rc5(function(){f.isAttached&&f.adSlotMetadata&&Z2E(Xh(),f.adSlotMetadata)})};
_.X.attached=function(){if(this.adSlotMetadata){var f;if(this.adSlotMetadata===((f=this.data)==null?void 0:f.adSlotMetadata))hXE(Xh(),this.adSlotMetadata);else{var R;_.Ih(Error("Jh`"+this.adSlotMetadata+"`"+((R=this.data)==null?void 0:R.adSlotMetadata)))}}};
_.X.detached=function(){this.adSlotMetadata&&Z2E(Xh(),this.adSlotMetadata)};
_.X.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.X.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Z2E(Xh(),this.adSlotMetadata),hXE(Xh(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Vy.Object.defineProperties(Q$.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var f,R,u=_.t((f=this.data)==null?void 0:(R=f.fulfillmentContent)==null?void 0:R.fulfilledLayout,_.uxk),O;return(f=(O=_.t(u==null?void 0:u.renderingContent,RKE))==null?void 0:O.layout)?f.toLowerCase().replace(/_/g,"-"):""}}});
Q$.prototype.onAdSlotMetadataChanged=Q$.prototype.onAdSlotMetadataChanged;Q$.prototype.onTypographyBumpChanged=Q$.prototype.onTypographyBumpChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Q$.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Q$.prototype,"rendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Q$.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Q$.prototype,"noBottomMargin",void 0);_.B([_.I(),_.S("design:type",Object)],Q$.prototype,"overlayDensity",void 0);_.B([_.I(),_.S("design:type",Object)],Q$.prototype,"typographyBump",void 0);_.B([_.a4("ytd-in-feed-ad-layout-renderer"),_.S("design:type",HTMLElement)],Q$.prototype,"inFeedAdLayoutRenderer",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Q$.prototype,"layout",null);_.B([_.qM("typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Q$.prototype,"onTypographyBumpChanged",null);_.B([_.qM("data.adSlotMetadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Q$.prototype,"onAdSlotMetadataChanged",null);
Q$=_.B([_.e({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Q$);
_.G(Q$,"ytd-ad-slot-renderer",function(){if(DoC!==void 0)return DoC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return DoC=f},{mode:_.c7("kevlar_poly_si_batch_j077")?
1:2});var JRk;var Wn=function(){return _.U.apply(this,arguments)||this};
_.y(Wn,_.U);_.X=Wn.prototype;_.X.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"}}}};
_.X.onTap=function(){_.E("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&XsX(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.X.onThumbnailContainerClick=function(f){this.onClick(f)};
_.X.onClick=function(f){if(_.E("enable_handle_watch_endpoint_click_for_vdc")){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint;u&&_.t(u,_.$7)&&(this.ytSparklesClickLocationBehavior.handleClick(u,f,!0),f.stopPropagation())}};
_.X.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var f=_.Z(this.data.impressionUrls),R=f.next();!R.done;R=f.next())R=R.value,Q1e(R,ES2(R));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.X.attached=function(){var f=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Vy.Object.defineProperties(Wn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Wn.prototype.dataChanged=Wn.prototype.dataChanged;Wn.prototype.onTap=Wn.prototype.onTap;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Wn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.B([_.z(DZ),_.S("design:type",Object)],Wn.prototype,"ytdActiveViewBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Wn.prototype,"ytdReduxBehavior",void 0);
_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],Wn.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],Wn.prototype,"isGridViewEnabled",void 0);_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Wn.prototype,"watchFeedBigThumbs",null);
_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],Wn.prototype,"thumbnailWidth",null);_.B([_.I(),_.S("design:type",Object)],Wn.prototype,"data",void 0);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wn.prototype,"onTap",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wn.prototype,"dataChanged",null);
Wn=_.B([_.e({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Wn);
_.G(Wn,"ytd-compact-promoted-video-renderer",function(){if(JRk!==void 0)return JRk;var f=document.createElement("template");_.N(f,'\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<ytd-thumbnail 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return JRk=f},{mode:1});var zXi;_.j6("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var EZ=function(){return _.U.apply(this,arguments)||this};
_.y(EZ,_.U);EZ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],EZ.prototype,"data",void 0);EZ=_.B([_.e({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],EZ);
_.G(EZ,"ytd-search-pyv-renderer",function(){if(zXi!==void 0)return zXi;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return zXi=f},{mode:1});var T0Y;_.j6("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var t8=function(){var f=_.U.apply(this,arguments)||this;f.roundedContainer=!0;f.JSC$13458_handleOpenPostCommentDialogActionAfterStamp=!1;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.y(t8,_.U);_.X=t8.prototype;
_.X.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}}};
_.X.onStampFinished=function(){this.JSC$13458_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){var f=_.b(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");f?f.openDialog():this.JSC$13458_handleOpenPostCommentDialogActionAfterStamp=!0};
_.X.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.X.computeHideBorder=function(){return this.isInEngagementPanel};
_.X.computeIsCompact=function(){return this.isInEngagementPanel};
_.X.computeUsesCompactLockup=function(f){return f==="BACKSTAGE_SURFACE_TYPE_HOME"||f==="BACKSTAGE_SURFACE_TYPE_SEARCH"||f==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||f==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||f==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||f==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.X.computeUsesFullLockup=function(){var f,R=(f=this.data)==null?void 0:f.post,u;f=(u=_.t(R,AdY))==null?void 0:u.surface;var O;u=(O=_.t(R,FzH))==null?void 0:O.originalPost;var c;if(O=f||((c=_.t(u,AdY))==null?void 0:c.surface))return!this.computeUsesCompactLockup(O)&&this.useUpdatedRepostUi;var h;return((h=_.t(R,FzH))==null?void 0:h.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Vy.Object.defineProperties(t8.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var f,R;return((R=_.t((f=this.data)==null?void 0:f.post,AdY))==null?void 0:R.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.useUpdatedRepostUi}}});
t8.prototype.onYtCommentModerationPanelEmpty=t8.prototype.onYtCommentModerationPanelEmpty;t8.prototype.onStampFinished=t8.prototype.onStampFinished;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],t8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],t8.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],t8.prototype,"roundedContainer",void 0);_.B([_.I({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.S("design:type",Boolean)],t8.prototype,"hideBorder",void 0);_.B([_.I({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.S("design:type",Boolean)],t8.prototype,"isCompact",void 0);
_.B([_.I({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.S("design:type",Boolean)],t8.prototype,"usesFullLockup",void 0);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t8.prototype,"onStampFinished",null);
_.B([_.Kf("ytd-comment-moderation-panel-empty"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],t8.prototype,"onYtCommentModerationPanelEmpty",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],t8.prototype,"isInEngagementPanel",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],t8.prototype,"useUpdatedRepostUi",null);
t8=_.B([_.e({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],t8);
_.G(t8,"ytd-backstage-post-thread-renderer",function(){if(T0Y!==void 0)return T0Y;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return T0Y=f},{mode:1});var H2H;var Cy=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(Cy,_.U);Cy.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Cy.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var f=this.data.thumbnail.thumbnails;this.isDarkTheme&&(f=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(f=_.rR(f,24,void 0,"height"))?f:void 0}};
Cy.prototype.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
Cy.prototype.computeHasText=function(){var f;return!((f=this.data)==null||!f.text)};
_.Vy.Object.defineProperties(Cy.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.EO(this.bannerImageUrl))+'");'}}});
Cy.prototype.computeHasText=Cy.prototype.computeHasText;Cy.prototype.computeBannerImageUrl=Cy.prototype.computeBannerImageUrl;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Cy.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Cy.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Cy.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Cy.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",String)],Cy.prototype,"bannerImageUrl",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.S("design:type",Boolean)],Cy.prototype,"hasText",void 0);_.B([_.qM("data","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cy.prototype,"computeBannerImageUrl",null);
_.B([_.qM("data.text"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cy.prototype,"computeHasText",null);_.B([_.T("bannerImageUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],Cy.prototype,"bannerStyle",null);Cy=_.B([_.e({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Cy);
_.G(Cy,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(H2H!==void 0)return H2H;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return H2H=f},{mode:1});var IUE;var y$=function(){return _.U.apply(this,arguments)||this};
_.y(y$,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],y$.prototype,"data",void 0);y$=_.B([_.e({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],y$);
_.G(y$,"ytd-backstage-zero-state-renderer",function(){if(IUE!==void 0)return IUE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return IUE=f},{mode:1});var MjG;var dr=function(){return _.U.apply(this,arguments)||this};
_.y(dr,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dr.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],dr.prototype,"icon",void 0);dr=_.B([_.e({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],dr);
_.G(dr,"ytd-post-filter-zero-state-renderer",function(){if(MjG!==void 0)return MjG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return MjG=f},{mode:1});var PRI;var Uot={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},NF=function(){return _.U.apply(this,arguments)||this};
_.y(NF,_.U);NF.prototype.configureRendererStamper=function(){return Uot};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],NF.prototype,"rendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],NF.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],NF.prototype,"icon",void 0);NF=_.B([_.e({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],NF);
_.G(NF,"ytd-post-scheduling-zero-state-renderer",function(){if(PRI!==void 0)return PRI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return PRI=f},{mode:1});var eXG;var Ly=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return f};
_.y(Ly,_.U);Ly.prototype.onTabsActivate=function(f){this.data&&this.data.tabs&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[f.detail.selected].navigationEndpoint})};
Ly.prototype.shouldShowTotalCount=function(f){return f&&f.totalCount!==void 0};
Ly.prototype.handleUpdatePostsTotalCountAction=function(f){var R=this.get(["data.tabs",1,"totalCount"]),u=this.get("updatePostsTotalCountAction.updateType",f);f=this.get("updatePostsTotalCountAction.number",f);R!==void 0&&u!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&f&&(u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(R)+f):u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(R)-f))};
_.Vy.Object.defineProperties(Ly.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var f=0,R=this.data.tabs.length;f<R;f++)if(this.data.tabs[f].selected)return f;return 0}}});
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Ly.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ly.prototype,"rendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ly.prototype,"data",void 0);_.B([_.T("data.tabs"),_.S("design:type",Number),_.S("design:paramtypes",[])],Ly.prototype,"selected",null);Ly=_.B([_.e({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Ly);
_.G(Ly,"ytd-post-stream-filter-renderer",function(){if(eXG!==void 0)return eXG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return eXG=f},{mode:1});var GEC;var ba=function(){return _.U.apply(this,arguments)||this};
_.y(ba,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ba.prototype,"kevlarBehaviors",void 0);_.B([_.I(),_.S("design:type",Object)],ba.prototype,"data",void 0);ba=_.B([_.e({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ba);
_.G(ba,"ytd-channel-age-gate-renderer",function(){if(GEC!==void 0)return GEC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GEC=f},{mode:1});var B0A;_.j6("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var py=function(){var f=_.U.apply(this,arguments)||this;f.data=null;return f};
_.y(py,_.U);py.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Vy.Object.defineProperties(py.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?0:(R=f.title)==null?0:(u=R.runs)==null?0:u.length)?147:160}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],py.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],py.prototype,"imageSizePx",null);py=_.B([_.e({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],py);
_.G(py,"ytd-channel-owner-empty-state-renderer",function(){if(B0A!==void 0)return B0A;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return B0A=f},{mode:1});var ofl;var xol;var jp=function(){var f=_.U.apply(this,arguments)||this;f.boundSubmitSearch=function(){f.submitSearch()};
f.boundClearSearch=function(){f.clearSearch()};
return f};
_.y(jp,_.U);_.X=jp.prototype;_.X.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]]"}}}}}};
_.X.toggleClearButton=function(){this.hideClearButton=ZP2||!this.input.value};
_.X.submitOnEnterKeyUp=function(f){f.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.X.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.X.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.X.submit=function(){_.ul(this.hostElement,"search-query-changed",this.input.value)};
jp.prototype.toggleClearButton=jp.prototype.toggleClearButton;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],jp.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jp.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],jp.prototype,"hideClearButton",void 0);_.B([_.I(),_.S("design:type",Object)],jp.prototype,"boundSubmitSearch",void 0);_.B([_.I(),_.S("design:type",Object)],jp.prototype,"boundClearSearch",void 0);_.B([_.a4("#input"),_.S("design:type",Object)],jp.prototype,"input",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jp.prototype,"toggleClearButton",null);
jp=_.B([_.e({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],jp);
_.G(jp,"ytd-channel-switcher-search-box-renderer",function(){if(xol!==void 0)return xol;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return xol=f},{mode:1});var StF;var DF=function(){var f=_.U.apply(this,arguments)||this;f.boundSubmit=function(){f.submit()};
return f};
_.y(DF,_.U);_.X=DF.prototype;_.X.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"}}}}};
_.X.ready=function(){var f=this;this.form.addEventListener("submit",function(R){return f.onSubmit(R)})};
_.X.onSubmit=function(f){f.preventDefault();return!1};
_.X.toggleClearButton=function(){this.hideClearButton=ZP2||!this.input.value};
_.X.submitOnEnterKeyUp=function(f){f.keyCode===13&&this.submit()};
_.X.submit=function(){var f=this.data.endpoint,R=(0,_.dq.unsafeClone)(f);_.t(R,_.wY)?_.t(R,_.wY).query=this.input.value:_.t(R,_.m6)&&(_.t(R,_.m6).query=this.input.value);var u=_.t(R.commandMetadata,_.vc);(u==null?0:u.url)?(u.url=_.UW(u.url,"query",this.input.value),_.ul(this.hostElement,"yt-navigate",{endpoint:R})):_.t(R,Vnt)?(_.t(R,Vnt).channelSwitcherQuery=this.input.value,_.vh().resolve(_.rv).resolveCommand(R,{form:{element:this.hostElement}})):(f=Error("Kh`"+JSON.stringify(f)),_.TL(f))};
_.X.getUrl=function(f){return this.get("commandMetadata.webCommandMetadata.url",f)};
DF.prototype.toggleClearButton=DF.prototype.toggleClearButton;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],DF.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],DF.prototype,"hideClearButton",void 0);
_.B([_.I(),_.S("design:type",Object)],DF.prototype,"boundSubmit",void 0);_.B([_.a4("#form"),_.S("design:type",HTMLFormElement)],DF.prototype,"form",void 0);_.B([_.a4("#input"),_.S("design:type",Object)],DF.prototype,"input",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DF.prototype,"toggleClearButton",null);DF=_.B([_.e({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],DF);
_.G(DF,"ytd-search-box-renderer",function(){if(StF!==void 0)return StF;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return StF=f},{mode:2});var J8=function(){var f=_.U.apply(this,arguments)||this;f.showSearchBox=!0;return f};
_.y(J8,_.U);J8.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],J8.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],J8.prototype,"showSearchBox",void 0);J8=_.B([_.e({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],J8);
_.G(J8,"ytd-channel-switcher-header-renderer",function(){if(ofl!==void 0)return ofl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ofl=f},{mode:1});var $oC;var gfG;var zY=function(){var f=_.U.apply(this,arguments)||this;f.isDisplayed=!0;return f};
_.y(zY,_.U);_.X=zY.prototype;_.X.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.dataChanged=function(){this.isDisplayed=!0};
_.X.computeType=function(f){return f||"UNKNOWN"};
_.X.onYtServiceRequestCompleted=function(f){f.stopPropagation();this.isDisplayed=!1};
_.X.onClose=function(){this.isDisplayed=!1};
zY.prototype.onYtServiceRequestCompleted=zY.prototype.onYtServiceRequestCompleted;zY.prototype.dataChanged=zY.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zY.prototype,"data",void 0);
_.B([_.I({computed:"computeType(data.type)",reflectToAttribute:!0}),_.S("design:type",String)],zY.prototype,"type",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],zY.prototype,"isDisplayed",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zY.prototype,"dataChanged",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zY.prototype,"onYtServiceRequestCompleted",null);zY=_.B([_.e({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],zY);
_.G(zY,"ytd-alert-with-button-renderer",function(){if(gfG!==void 0)return gfG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return gfG=f},{mode:1});var TY=function(){var f=_.U.apply(this,arguments)||this;f.noResult=!1;f.enableAlertBanner=!1;f.dismissedAlertBanner=!1;f.hideCreateChannelButton=!1;f.boundDismissAlertBanner=function(){f.dismissAlertBanner()};
f.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return f};
_.y(TY,_.U);_.X=TY.prototype;_.X.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.X.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.X.updateChannelSwitcherAction=function(f){var R;f=(R=_.t(f,DHC))==null?void 0:R.page;_.t(f,jtt)!==void 0&&(this.data=_.t(f,jtt))};
_.X.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]]"}}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.X.searchQueryChanged=function(f,R){if(this.data&&this.data.contents&&this.data.contents.length){f=[];var u=[];this.hideCreateChannelButton=this.noResult=!1;for(var O=document.querySelectorAll("ytd-account-item-renderer"),c=_.Z(O),h=c.next();!h.done;h=c.next())h=h.value,u.push(h),h.style.display="block";this.resetRightBorder(u);if(R){this.hideCreateChannelButton=!0;for(u=1;u<this.data.contents.length;u++)if(h=this.data.contents[u],_.t(h,gRI)){var l=void 0,K=void 0;c=(l=_.t(h,gRI))==null?void 0:(K=
l.accountName)==null?void 0:K.simpleText;K=l=void 0;h=(l=_.t(h,gRI))==null?void 0:(K=l.channelHandle)==null?void 0:K.simpleText;(l=O[u-1])&&c&&_.a7(c,R)?f.push(l):_.E("enable_handle_search_on_channel_switcher")&&l&&h&&_.a7(h.toString(),R.toString())?f.push(l):l.style.display="none"}f.length===0&&(this.noResult=!0);this.resetRightBorder(f)}}};
_.X.resetRightBorder=function(f){for(var R=0;R<f.length;R++)f[R].style.borderRight=!this.hideCreateChannelButton&&(R+2)%3===0||this.hideCreateChannelButton&&(R+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.X.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.X.setShowSearchBox=function(f){if(f&&f.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var R=0;R<f.contents.length;R++)_.t(f.contents[R],_.OX)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.X.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Vy.Object.defineProperties(TY.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.contents)}}});
TY.prototype.onContinuationItemsUpdated=TY.prototype.onContinuationItemsUpdated;TY.prototype.searchQueryChanged=TY.prototype.searchQueryChanged;TY.prototype.onDataChanged=TY.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],TY.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],TY.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],TY.prototype,"data",void 0);_.B([_.a4("ytd-channel-switcher-header-renderer"),_.S("design:type",Object)],TY.prototype,"channelSwitcherHeaderRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],TY.prototype,"noResult",void 0);
_.B([_.I(),_.S("design:type",Object)],TY.prototype,"enableAlertBanner",void 0);_.B([_.I(),_.S("design:type",Object)],TY.prototype,"dismissedAlertBanner",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],TY.prototype,"hideCreateChannelButton",void 0);_.B([_.T("data.contents"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"isLoading",null);_.B([_.I(),_.S("design:type",Object)],TY.prototype,"boundDismissAlertBanner",void 0);
_.B([_.I({computed:"computeButtonOverride()"}),_.S("design:type",Object)],TY.prototype,"buttonOverride",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TY.prototype,"onDataChanged",null);_.B([_.Kf("search-query-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,String]),_.S("design:returntype")],TY.prototype,"searchQueryChanged",null);
_.B([_.Kf("yt-next-continuation-data-updated"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],TY.prototype,"onContinuationItemsUpdated",null);TY=_.B([_.e({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],TY);
_.G(TY,"ytd-channel-switcher-page-renderer",function(){if($oC!==void 0)return $oC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $oC=f},{mode:1});var s2E;var nff;var Hn=function(){var f=_.U.apply(this,arguments)||this;f.images=[];f.selectedImageIndex=0;return f};
_.y(Hn,_.U);_.X=Hn.prototype;
_.X.ready=function(){_.y0(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.y0(this.JSC$13503_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.y0(this.JSC$13503_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.y0(this.JSC$13503_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.X.onThumbnailClick=function(f){if(f=f.event_.detail)this.selectedImageIndex=this.images.indexOf(f)};
_.X.updateImageThumbnails=function(f){f=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:f.event_.detail});this.images.splice(this.selectedImageIndex,1,f);this.images=[].concat(_.yq(this.images))};
_.X.cancelImageRepositions=function(){this.selectedImageIndex=0;_.ul(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.X.saveImageRepositions=function(){this.selectedImageIndex=0;_.ul(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Vy.Object.defineProperties(Hn.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var f=this;return(this.images||[]).map(function(R,u){return{image:R,selected:u===f.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("ytd-backstage-image-preview-renderer"),_.S("design:type",Object)],Hn.prototype,"JSC$13503_imagePreviewContainer",void 0);_.B([_.a4(".thumbnail-images-container"),_.S("design:type",HTMLElement)],Hn.prototype,"thumbnailImagesContainer",void 0);_.B([_.I(),_.S("design:type",Array)],Hn.prototype,"images",void 0);
_.B([_.I(),_.S("design:type",Object)],Hn.prototype,"repositionInstructions",void 0);_.B([_.I(),_.S("design:type",Object)],Hn.prototype,"selectedImageIndex",void 0);_.B([_.T("images","selectedImageIndex"),_.S("design:type",Array),_.S("design:paramtypes",[])],Hn.prototype,"thumbnailRendererDatas",null);_.B([_.T("images","selectedImageIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],Hn.prototype,"selectedImageData",null);
Hn=_.B([_.e({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Hn);
_.G(Hn,"ytd-backstage-multi-image-reposition-renderer",function(){if(nff!==void 0)return nff;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return nff=f},{mode:1});var IM=function(f,R){_.mq.call(this);this.uploadUrl=f;this.channelId=R;this.imagesUploadData=[]};
_.y(IM,_.mq);IM.prototype.getAllUploadStatuses=function(){var f=this,R,u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,VjC(f),2);R=c.yieldResult;u=R.get("succeed");O=R.get("failed");return c.return(u.concat(O))})};
var vfC=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,VjC(f),2);R=O.yieldResult;u=R.get("failed");u.length>0&&YtH(f,u);return O.return(f.getAllUploadStatuses())})},VjC=function(f){var R,u,O,c,h,l,K;
return _.k(function(q){if(q.nextAddress==1)return R=new Map,_.A(q,Promise.allSettled(f.imagesUploadData.map(function(F){return F.uploadPromise})),2);
u=q.yieldResult;O=[];c=_.Z(u);for(h=c.next();!h.done;h=c.next())l=h.value,l.status==="fulfilled"&&O.push(l.value);K=f.imagesUploadData.map(function(F){return F.image}).filter(function(F){return O.every(function(w){return w.id!==F.id})});
R.set("succeed",O);R.set("failed",K);return q.return(R)})},YtH=function(f,R){R=_.Z(R);
for(var u=R.next();!u.done;u=R.next()){var O=f;u=u.value;i2i(O,u.id)>=0&&O.cancel(u.id);var c=new rRf(u),h=_.H9k(O.uploadUrl,{"X-YouTube-ChannelId":O.channelId},u.imageBlob);c.transfer=h;c.uploadPromise=fyY(h,u);O.imagesUploadData.push(c);h.run()}};
IM.prototype.cancel=function(f){var R=i2i(this,f);R!==-1&&((R=this.imagesUploadData[R].transfer)&&R.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(u){return u.image.id!==f}))};
var i2i=function(f,R){return f.imagesUploadData.findIndex(function(u){return u.image.id===R})},fyY=function(f,R){return new Promise(function(u,O){f.listen("l",function(){var c=f.getResponseText();
c?(c=JSON.parse(c).encryptedBlobId,R.encryptedBlobId=c,u(R)):O("upload failed")});
f.listen("n",function(){O("upload failed")})})},rRf=function(f){this.image=f};var j20=function(f,R,u,O,c){this.id=f;this.imageBlob=R;this.localImageSrc=u;this.naturalWidth=O;this.naturalHeight=c;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 R$k=[".jpeg",".jpg",".png"],MF=function(){var f=_.U.apply(this,arguments)||this;f.showImagesPreview=!1;f.pollOptions=[];f.errorMessage="";f.optionPlaceholderText="";f.optionDefaultText="";f.JSC$13514_imageId=0;f.maxFileSizeMb=0;f.maxAspectRatio=0;f.invalidFileSizeError="";f.invalidAspectRatioError="";f.invalidFileTypeError="";f.imageSelector=new lx(null,"single_file",R$k);return f};
_.y(MF,_.U);_.X=MF.prototype;_.X.ready=function(){_.y0(this.imageSelector,"j",this.onImageSelect,!1,this);_.y0(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.y0(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.X.dataChanged=function(){var f,R,u=_.t((f=this.data)==null?void 0:(R=f.cellTemplate)==null?void 0:R.onEmptyCellTap,jnH);if(u&&u.uploadUrl&&u.channelId){var O;this.maxFileSizeMb=((O=u.imageValidationInfo)==null?void 0:O.maxFileSizeMb)||0;var c;this.maxAspectRatio=((c=u.imageValidationInfo)==null?void 0:c.allowedMaxAspectRatio)||0;var h;this.invalidFileSizeError=this.getSimpleString((h=this.data)==null?void 0:h.invalidFileSizeError);var l;this.invalidAspectRatioError=this.getSimpleString((l=this.data)==
null?void 0:l.invalidAspectRatioError);var K;this.invalidFileTypeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileTypeError);this.uploadManager=new IM(u.uploadUrl,u.channelId)}};
_.X.onEditorInfoChange=function(){this.optionPlaceholderText=_.$Z(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.$Z(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.X.observeAddImageError=function(){this.errorMessage!==""&&_.ul(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.X.onPollOptionsChange=function(){for(var f=!1,R=[],u=0;u<this.pollOptions.length;u++){var O=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(u+1);this.pollOptions[u].placeholderText!==O?(f=!0,R.push(Object.assign({},this.pollOptions[u],{placeholderText:O}))):R.push(this.pollOptions[u])}f&&(this.pollOptions=R);this.isValid()?_.ul(this.hostElement,"yt-commentbox-post-enable"):_.ul(this.hostElement,"yt-commentbox-post-disable")};
_.X.createPollOptions=function(f){var R=[],u;f=(u=f==null?void 0:f.minPollOptions)!=null?u:0;for(u=0;u<f;u++)R.push(this.createPollOption());return R};
_.X.onImageSelect=function(f){var R=this,u,O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1){if(R.selectedImageIndex===void 0)return q.jumpTo(0);u=f.files[0];R.errorMessage="";O=R.validateImage(u);if(O!=="")return R.errorMessage=O,q.return();c=new oY(R.maxAspectRatio,!1,!0);return _.A(q,c.transform(u),3)}if(q.nextAddress!=4)return h=q.yieldResult,h.transformedData?h.invalidAspectRatio?(R.errorMessage=R.invalidAspectRatioError,q.return()):_.A(q,Do5(R.JSC$13514_imageId,f.files[0],h.transformedData),
4):(R.errorMessage=R.invalidFileTypeError,q.return());l=q.yieldResult;R.JSC$13514_imageId++;YtH(R.uploadManager,[l]);K=Object.assign({},R.pollOptions[R.selectedImageIndex],{image:l});R.pollOptions.splice(R.selectedImageIndex,1,K);R.refreshPollOptions();_.ul(R.hostElement,"yt-backstage-poll-image-select");_.KG(q)})};
_.X.validateImage=function(f){return f.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.X.refreshPollOptions=function(){this.pollOptions=[].concat(_.yq(this.pollOptions))};
_.X.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.yq(this.pollOptions),[this.createPollOption()]))};
_.X.onRemovePollOption=function(f){var R=this.pollOptions[f.model.index];R&&R.image&&this.uploadManager.cancel(R.image.id);this.pollOptions.splice(f.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.ul(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.X.onTextInput=function(){this.refreshPollOptions()};
_.X.onImageButtonClick=function(f){this.selectedImageIndex=f.model.index;this.imageSelector.click()};
_.X.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.X.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.X.saveImageRepositions=function(f){f=f.event_.detail;for(var R=0,u=[],O=_.Z(this.pollOptions),c=O.next();!c.done;c=O.next())c=c.value,c.image!==void 0?(c=Object.assign({},c,{image:f[R]}),u.push(c),R++):u.push(c);this.showImagesPreview=!1;this.pollOptions=[].concat(_.yq(u))};
_.X.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 f=0,R=_.Z(this.pollOptions),u=R.next();!u.done;u=R.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;f++}return f>=Number(this.editorInfo.minPollOptions)};
_.X.getAllUploadStatuses=function(){var f=this,R,u,O,c;return _.k(function(h){if(h.nextAddress==1)return _.A(h,f.uploadManager.getAllUploadStatuses(),2);R=h.yieldResult;u=_.Z(R);for(O=u.next();!O.done;O=u.next())if(c=O.value,c.encryptedBlobId===void 0)return h.return(vfC(f.uploadManager));return h.return(R)})};
_.X.getPostCreateOptions=function(){for(var f=[],R=_.Z(this.pollOptions),u=R.next();!u.done;u=R.next())u=u.value,u.image!==void 0&&f.push({text:this.hasCustomOptionText?u.optionText:u.placeholderText,image:u.image});return f};
_.X.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.X.createButtonRenderer=function(f,R){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleString(f)}},isDisabled:R}};
_.X.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.X.computeThumbnailRendererData=function(f){return f?{image:f,selected:!1}:void 0};
_.X.getSimpleString=function(f){return _.$Z(f)};
_.X.updateOptionTextFromBinding=function(f){if(f.target){var R=Array.from(_.b(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(f.target);if(R>=0){var u;this.pollOptions[R].optionText=(u=f.detail.value)!=null?u:""}}};
_.Vy.Object.defineProperties(MF.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var f,R;return this.pollOptions.length<((R=(f=this.editorInfo)==null?void 0:f.maxPollOptions)!=null?R:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(f){return f.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(f){return f.image}).map(function(f){return f.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(f){return f.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.data)==null?void 0:f.addOptionButtonText;return R?this.createButtonRenderer(R,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.data)==null?void 0:f.repositionImagesButtonLabel;return R?this.createButtonRenderer(R,!this.hasImages):void 0}}});
MF.prototype.onPollOptionsChange=MF.prototype.onPollOptionsChange;MF.prototype.observeAddImageError=MF.prototype.observeAddImageError;MF.prototype.onEditorInfoChange=MF.prototype.onEditorInfoChange;MF.prototype.dataChanged=MF.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("ytd-backstage-multi-image-reposition-renderer"),_.S("design:type",Object)],MF.prototype,"imageRepositionContainer",void 0);
_.B([_.I(),_.S("design:type",Object)],MF.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],MF.prototype,"editorInfo",void 0);_.B([_.I(),_.S("design:type",IM)],MF.prototype,"uploadManager",void 0);_.B([_.I(),_.S("design:type",Object)],MF.prototype,"showImagesPreview",void 0);_.B([_.I(),_.S("design:type",Array)],MF.prototype,"pollOptions",void 0);_.B([_.I(),_.S("design:type",Object)],MF.prototype,"errorMessage",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MF.prototype,"dataChanged",null);_.B([_.QR("editorInfo"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MF.prototype,"onEditorInfoChange",null);_.B([_.qM("errorMessage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MF.prototype,"observeAddImageError",null);
_.B([_.QR("pollOptions"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MF.prototype,"onPollOptionsChange",null);_.B([_.T("pollOptions","editorInfo"),_.S("design:type",Object),_.S("design:paramtypes",[])],MF.prototype,"isAllowedToAddOption",null);_.B([_.T("pollOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],MF.prototype,"hasImages",null);
_.B([_.T("pollOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],MF.prototype,"imagesToReposition",null);_.B([_.T("pollOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],MF.prototype,"hasCustomOptionText",null);_.B([_.T("data","isAllowedToAddOption"),_.S("design:type",Object),_.S("design:paramtypes",[])],MF.prototype,"addOptionButton",null);_.B([_.T("data","hasImages"),_.S("design:type",Object),_.S("design:paramtypes",[])],MF.prototype,"repositionImagesButton",null);
MF=_.B([_.e({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],MF);
_.G(MF,"ytd-backstage-image-poll-editor-renderer",function(){if(s2E!==void 0)return s2E;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return s2E=f},{mode:2});var uJH={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 OXC;var Pn=function(){var f=_.U.apply(this,arguments)||this;f.a11yConfig=uJH;f.imageDisplayOffsetTop=0;f.imageDisplayOffsetLeft=0;f.pickerDisplayOffsetTop=0;f.pickerDisplayOffsetLeft=0;f.showPreviewContainer=!0;f.startPicker=!1;f.repositionOptional=!1;f.editOnlyMode=!1;f.savedImageDisplayOffsetTop=0;f.savedImageDisplayOffsetLeft=0;return f};
_.y(Pn,_.U);_.X=Pn.prototype;_.X.created=function(){_.Mj.requestAvailability()};
_.X.ready=function(){};
_.X.onArrowKeysDown=function(f){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){f.detail.keyboardEvent.preventDefault();var R=0,u=0,O="";switch(f.detail.keyboardEvent.key){case "ArrowUp":JRD(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?O=this.a11yConfig.reachBottomOfImage:R=this.imageHeight*.05*-1;break;case "ArrowDown":JRD(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?O=this.a11yConfig.reachTopOfImage:
R=this.imageHeight*.05;break;case "ArrowLeft":JRD(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?O=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":JRD(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?O=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}O&&_.Fa(O)&&_.ul(this.hostElement,"iron-announce",{text:_.Fa(O)});if(u||R)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+R)),f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),f=_.Fa(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+u)),f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),f=_.Fa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})),f&&_.ul(this.hostElement,"iron-announce",{text:f})}};
_.X.getPreviewPosition=function(f,R,u,O){return Math.round(100*(f+R*.5-u)/O)};
_.X.calculateDisplayPosition=function(){var f=this.imageData.naturalWidth,R=this.imageData.naturalHeight;this.displayScale=Math.max(200/f,200/R);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var u=f*this.displayScale*this.imageData.previewCoordinates.left,O=R*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=R>f?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-u;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=f>R?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-O;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=f*this.displayScale;this.imageHeight=R*this.displayScale};
_.X.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.X.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.X.getSignedPosition=function(f,R,u){return R==="X"&&_.Tf("HTML_DIR")==="rtl"?u==="-"?f+"px":f*-1+"px":u==="-"?f*-1+"px":f+"px"};
_.X.pickerMove=function(f){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var R=this.pickerOffsetX-f.clientX,u=this.pickerOffsetY-f.clientY;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.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-R))}};
_.X.pickerMoveStart=function(f){this.startPicker=!0;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY};
_.X.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var f=this.generateCropPreview();f&&_.ul(this.hostElement,"ytd-backstage-image-preview-coordinates-update",f)};
_.X.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.ul(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.X.deleteImage=function(){_.ul(this.hostElement,"ytd-backstage-image-preview-delete")};
_.X.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.X.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var f=this.generateCropPreview();f&&_.ul(this.hostElement,"ytd-backstage-image-preview-coordinates-save",f)};
_.X.getPreviewOffset=function(f,R,u){return R&&f?(u==="X"&&_.Tf("HTML_DIR")==="rtl"?300/R*f:300/R*f*-1)+"px":"0px"};
_.X.getSimpleText=function(f){return f?_.$Z(f):""};
_.X.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}};
_.Vy.Object.defineProperties(Pn.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Fa(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Fa(this.a11yConfig.verticalRepositionInstruction)}f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Fa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Fa(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 f,R,u=(f=this.instruction)==null?void 0:(R=f.previewInstruction)==null?void 0:R.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 f,R,u,O,c=this.editOnlyMode?(f=this.instruction)==null?void 0:(R=f.editInstruction)==null?void 0:R.saveImagesButtonLabel:(u=this.instruction)==null?void 0:(O=u.editInstruction)==null?void 0:O.saveButtonLabel;return c?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.instruction)==null?void 0:(R=f.previewInstruction)==null?void 0:R.deleteButtonLabel;return u?{size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.instruction)==null?void 0:(R=f.editInstruction)==null?void 0:R.cancelButtonLabel;f=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return u?{style:f,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"}}});
Pn.prototype.onEditOnlyModeUpdate=Pn.prototype.onEditOnlyModeUpdate;Pn.prototype.onImageChange=Pn.prototype.onImageChange;_.B([_.I(),_.S("design:type",j20)],Pn.prototype,"imageData",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"instruction",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"a11yConfig",void 0);_.B([_.I(),_.S("design:type",Number)],Pn.prototype,"imageWidth",void 0);_.B([_.I(),_.S("design:type",Number)],Pn.prototype,"imageHeight",void 0);
_.B([_.I(),_.S("design:type",Number)],Pn.prototype,"displayScale",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"imageDisplayOffsetTop",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"showPreviewContainer",void 0);
_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"startPicker",void 0);_.B([_.I(),_.S("design:type",Number)],Pn.prototype,"pickerOffsetX",void 0);_.B([_.I(),_.S("design:type",Number)],Pn.prototype,"pickerOffsetY",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"repositionOptional",void 0);_.B([_.I(),_.S("design:type",Object)],Pn.prototype,"editOnlyMode",void 0);_.B([_.a4("#picker-container"),_.S("design:type",HTMLElement)],Pn.prototype,"JSC$13527_pickerContainer",void 0);
_.B([_.a4("#picker"),_.S("design:type",HTMLElement)],Pn.prototype,"picker",void 0);_.B([_.a4("#preview-clipper"),_.S("design:type",HTMLElement)],Pn.prototype,"previewClipper",void 0);_.B([_.a4("#image-in-picker-background"),_.S("design:type",HTMLImageElement)],Pn.prototype,"JSC$13527_imageInBackground",void 0);_.B([_.a4("#image-in-picker"),_.S("design:type",HTMLImageElement)],Pn.prototype,"JSC$13527_imageInPicker",void 0);
_.B([_.a4("#image-in-preview-clipper"),_.S("design:type",HTMLImageElement)],Pn.prototype,"JSC$13527_imageInPreviewClipper",void 0);_.B([_.T("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],Pn.prototype,"altLabelForImage",null);_.B([_.T("imageHeight","imageWidth"),_.S("design:type",Number),_.S("design:paramtypes",[])],Pn.prototype,"pickerSize",null);
_.B([_.T("imageHeight","imageWidth"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pn.prototype,"imageOrientationStyle",null);_.B([_.T("instruction"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pn.prototype,"editButton",null);_.B([_.T("instruction","editOnlyMode"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pn.prototype,"saveButton",null);_.B([_.T("instruction"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pn.prototype,"deleteButton",null);
_.B([_.T("instruction","editOnlyMode"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pn.prototype,"cancelButton",null);_.B([_.T("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.S("design:type",Number),_.S("design:paramtypes",[])],Pn.prototype,"cropOffsetTop",null);_.B([_.T("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.S("design:type",Number),_.S("design:paramtypes",[])],Pn.prototype,"cropOffsetLeft",null);
_.B([_.T("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],Pn.prototype,"pickerBackgroundStyle",null);_.B([_.T("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],Pn.prototype,"pickerDisplayStyle",null);_.B([_.T("cropOffsetLeft","cropOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],Pn.prototype,"imageInPickerStyle",null);
_.B([_.T("cropOffsetLeft","cropOffsetTop","pickerSize"),_.S("design:type",String),_.S("design:paramtypes",[])],Pn.prototype,"previewClipperStyle",null);_.B([_.QR("imageData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Pn.prototype,"onImageChange",null);_.B([_.QR("editOnlyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Pn.prototype,"onEditOnlyModeUpdate",null);
_.B([_.T("showPreviewContainer"),_.S("design:type",String),_.S("design:paramtypes",[])],Pn.prototype,"pickerModeStyle",null);Pn=_.B([_.e({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Pn);
_.G(Pn,"ytd-backstage-image-preview-renderer",function(){if(OXC!==void 0)return OXC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return OXC=f},{mode:1});var cWA;var XEI={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 h$l;var ZXi;var UZ=function(){var f=_.U.apply(this,arguments)||this;f.a11yConfig=XEI;f.imageDisplayOffsetTop=0;f.imageDisplayOffsetLeft=0;f.pickerDisplayOffsetTop=0;f.pickerDisplayOffsetLeft=0;f.cropCoordinatesSaved=!1;f.previewSize=0;f.startPicker=!1;f.repositionOptional=!1;return f};
_.y(UZ,_.U);_.X=UZ.prototype;_.X.created=function(){_.Mj.requestAvailability()};
_.X.ready=function(){};
_.X.onArrowKeysDown=function(f){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){f.detail.keyboardEvent.preventDefault();var R=0,u=0,O="";switch(f.detail.keyboardEvent.key){case "ArrowUp":zXn(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?O=this.a11yConfig.reachBottomOfImage:R=this.imageHeight*.05*-1;break;case "ArrowDown":zXn(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?O=this.a11yConfig.reachTopOfImage:
R=this.imageHeight*.05;break;case "ArrowLeft":zXn(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?O=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":zXn(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?O=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}O&&_.Fa(O)&&_.ul(this.hostElement,"iron-announce",{text:_.Fa(O)});if(u||R)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+R)),f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),f=_.Fa(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+u)),f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),f=_.Fa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})),f&&_.ul(this.hostElement,"iron-announce",{text:f})}};
_.X.getPreviewPosition=function(f,R,u,O){return Math.round(100*(f+R*.5-u)/O)};
_.X.displayImage=function(){var f=this.JSC$13538_pickerContainer.getBoundingClientRect().width,R=this.JSC$13538_pickerContainer.getBoundingClientRect().height,u=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),O=this.JSC$13538_imageInBackground.naturalWidth,c=this.JSC$13538_imageInBackground.naturalHeight;this.displayScale=Math.max(u/O,u/c);this.imageWidth=O*this.displayScale;this.imageHeight=c*this.displayScale;this.pickerDisplayOffsetLeft=(f-u)/2;this.pickerDisplayOffsetTop=
(R-u)/2;this.imageDisplayOffsetLeft=c>O?this.pickerDisplayOffsetLeft:(f-this.imageWidth)/2;this.imageDisplayOffsetTop=O>c?this.pickerDisplayOffsetTop:(R-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.X.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13538_imageInBackground.src=this.imageData.toString(),this.JSC$13538_imageInPicker.src=this.imageData.toString(),this.JSC$13538_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.X.getSignedPosition=function(f,R,u){return R==="X"&&_.Tf("HTML_DIR")==="rtl"?u==="-"?f+"px":f*-1+"px":u==="-"?f*-1+"px":f+"px"};
_.X.pickerMove=function(f){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var R=this.pickerOffsetX-f.clientX,u=this.pickerOffsetY-f.clientY;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.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-R))}};
_.X.pickerMoveStart=function(f){this.startPicker=!0;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY};
_.X.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.X.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.ul(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.X.getPreviewOffset=function(f,R,u,O){return R&&f&&u?(O==="X"&&_.Tf("HTML_DIR")==="rtl"?u/R*f:u/R*f*-1)+"px":"0px"};
_.X.getSimpleText=function(f){return f?_.$Z(f):""};
_.X.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var f=this.cropOffsetTop/this.imageHeight,R=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,u=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,O=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.b(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.ul(this.hostElement,"yt-img-crop-coordinates-update",{top:f,right:R,bottom:u,left:O})}};
_.Vy.Object.defineProperties(UZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Fa(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Fa(this.a11yConfig.verticalRepositionInstruction)}f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Fa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Fa(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 f,R=(f=this.learnMore.runs[0])==null?void 0:f.navigationEndpoint,u;return((u=_.t(R,_.oh))==null?void 0:u.url)||void 0}}}});
UZ.prototype.onImageDataChange=UZ.prototype.onImageDataChange;_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"imageData",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"instruction",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"a11yConfig",void 0);_.B([_.I(),_.S("design:type",Number)],UZ.prototype,"imageWidth",void 0);_.B([_.I(),_.S("design:type",Number)],UZ.prototype,"imageHeight",void 0);_.B([_.I(),_.S("design:type",Number)],UZ.prototype,"displayScale",void 0);
_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"imageDisplayOffsetTop",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"cropCoordinatesSaved",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"previewSize",void 0);
_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"startPicker",void 0);_.B([_.I(),_.S("design:type",Number)],UZ.prototype,"pickerOffsetX",void 0);_.B([_.I(),_.S("design:type",Number)],UZ.prototype,"pickerOffsetY",void 0);_.B([_.I(),_.S("design:type",Object)],UZ.prototype,"repositionOptional",void 0);_.B([_.a4("#picker-container"),_.S("design:type",HTMLElement)],UZ.prototype,"JSC$13538_pickerContainer",void 0);_.B([_.a4("#picker"),_.S("design:type",HTMLElement)],UZ.prototype,"picker",void 0);
_.B([_.a4("#image-in-picker-background"),_.S("design:type",HTMLImageElement)],UZ.prototype,"JSC$13538_imageInBackground",void 0);_.B([_.a4("#image-in-picker"),_.S("design:type",HTMLImageElement)],UZ.prototype,"JSC$13538_imageInPicker",void 0);_.B([_.a4("#image-in-preview-clipper"),_.S("design:type",HTMLImageElement)],UZ.prototype,"JSC$13538_imageInPreviewClipper",void 0);_.B([_.a4("#full-image-as-preview"),_.S("design:type",HTMLImageElement)],UZ.prototype,"imageAsPreview",void 0);
_.B([_.T("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],UZ.prototype,"altLabelForImage",null);_.B([_.T("imageHeight","imageWidth"),_.S("design:type",Number),_.S("design:paramtypes",[])],UZ.prototype,"pickerSize",null);_.B([_.T("imageHeight","imageWidth"),_.S("design:type",Object),_.S("design:paramtypes",[])],UZ.prototype,"imageOrientationStyle",null);
_.B([_.T("instruction.previewInstruction.editButtonLabel"),_.S("design:type",Object),_.S("design:paramtypes",[])],UZ.prototype,"editButton",null);_.B([_.T("instruction.editInstruction.saveButtonLabel"),_.S("design:type",Object),_.S("design:paramtypes",[])],UZ.prototype,"saveButton",null);_.B([_.T("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.S("design:type",Number),_.S("design:paramtypes",[])],UZ.prototype,"cropOffsetTop",null);
_.B([_.T("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.S("design:type",Number),_.S("design:paramtypes",[])],UZ.prototype,"cropOffsetLeft",null);_.B([_.T("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],UZ.prototype,"pickerBackgroundStyle",null);_.B([_.T("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],UZ.prototype,"pickerDisplayStyle",null);
_.B([_.T("cropOffsetLeft","cropOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],UZ.prototype,"imageInPickerStyle",null);_.B([_.T("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.S("design:type",String),_.S("design:paramtypes",[])],UZ.prototype,"previewClipperStyle",null);_.B([_.qM("imageData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UZ.prototype,"onImageDataChange",null);
_.B([_.T("cropCoordinatesSaved"),_.S("design:type",String),_.S("design:paramtypes",[])],UZ.prototype,"pickerModeStyle",null);_.B([_.T("instruction.editInstruction.learnMore"),_.S("design:type",Object),_.S("design:paramtypes",[])],UZ.prototype,"learnMore",null);_.B([_.T("learnMore"),_.S("design:type",Object),_.S("design:paramtypes",[])],UZ.prototype,"learnMoreUrl",null);UZ=_.B([_.DO({is:"yt-img-crop-picker",disableElementRegistration:!0})],UZ);
_.G(UZ,"yt-img-crop-picker",function(){if(ZXi===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;h$l===void 0&&(h$l=document.createElement("template"));var O=h$l;u.call(R,O.content.cloneNode(!0),f.content.firstChild);ZXi=f}f=ZXi;return f},{mode:2});var Sp=function(){var f=_.U.apply(this,arguments)||this;f.errorMessage="";f.hasPreview=!1;f.isBackstagePost=!1;f.dismissButtonOverrides={size:"XS"};return f};
_.y(Sp,_.U);_.X=Sp.prototype;_.X.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"}}}};
_.X.detached=function(){this.removeOverlay()};
_.X.setPreview=function(f){_.b(this.hostElement).querySelector("#preview-picker").imageData=f;this.hasPreview=!0;_.ul(this.hostElement,"yt-backstage-image-select-preview")};
_.X.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var f=_.b(this.hostElement).querySelector("#dropzone");f.classList.remove("dragover");f.classList.remove("error");_.ul(this.hostElement,"yt-backstage-image-select-cancel")};
_.X.setupOverlay=function(){var f=this.imageUploadEndpoint;this.removeOverlay();if(f&&f.imageValidationInfo){var R=_.b(this.hostElement).querySelector("#dropzone"),u=_.b(this.hostElement).querySelector("#select");this.overlay=new Si(f.uploadUrl,f.channelId,f.imageValidationInfo.maxFileSizeMb,f.imageValidationInfo.allowedMaxAspectRatio,R,u,!0);_.y0(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.y0(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.y0(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.y0(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.y0(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.X.removeOverlay=function(){this.overlay&&(_.w4(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.w4(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.w4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.w4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.w4(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.X.onDragOver=function(f){var R=_.b(this.hostElement).querySelector("#dropzone");_.c2(R,"dragover",f.value)};
_.X.onPreview=function(f){this.setPreview(f.value)};
_.X.onImageError=function(f){if(f.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var R;f=(R=this.data)==null?void 0:R.fileSizeError}else if(f.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var u;f=(u=this.data)==null?void 0:u.invalidError}else if(f.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var O;f=(O=this.data)==null?void 0:O.invalidAspectRatioError}else return;this.errorMessage=_.$Z(f);_.b(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.X.onImageAlert=function(f){this.onImageError(f)};
_.X.uploadPromise=function(){var f=this,R=this.overlay&&this.overlay.uploadPromise();if(R)return R.catch(function(){throw Error(f.data?_.$Z(f.data.uploadFailureError):"");})};
_.Vy.Object.defineProperties(Sp.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var f,R;if((f=this.data)==null?0:(R=f.icon)==null?0:R.iconType)return _.li(this.data.icon.iconType)}}});
Sp.prototype.setupOverlay=Sp.prototype.setupOverlay;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Sp.prototype,"rendererStamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Sp.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Sp.prototype,"imageUploadEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],Sp.prototype,"errorMessage",void 0);
_.B([_.I(),_.S("design:type",Si)],Sp.prototype,"overlay",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Sp.prototype,"hasPreview",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Sp.prototype,"isBackstagePost",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sp.prototype,"selectionCancel",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sp.prototype,"previewCancel",null);
_.B([_.T("data.icon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sp.prototype,"icon",null);_.B([_.I(),_.S("design:type",Object)],Sp.prototype,"dismissButtonOverrides",void 0);_.B([_.qM("imageUploadEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Sp.prototype,"setupOverlay",null);Sp=_.B([_.e({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Sp);
_.G(Sp,"ytd-backstage-image-select-renderer",function(){if(cWA!==void 0)return cWA;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return cWA=f},{mode:1});var lyC;var kVi;var $A=function(){var f=_.U.apply(this,arguments)||this;f.selected=!1;return f};
_.y($A,_.U);_.X=$A.prototype;_.X.computeSelected=function(f){return f==null?void 0:f.selected};
_.X.computeTransform=function(f,R,u){var O,c,h=(c=(O=this.imageContainer)==null?void 0:O.getBoundingClientRect())!=null?c:{width:0,height:0};O=Math.max(h.width/R,h.height/u);u=u*O*f.top;return"translateX("+this.getSignedPosition(R*O*f.left,"X","-")+") translateY("+this.getSignedPosition(u,"Y","-")+")"};
_.X.getSignedPosition=function(f,R,u){return R==="X"&&_.Tf("HTML_DIR")==="rtl"?u==="-"?f+"px":f*-1+"px":u==="-"?f*-1+"px":f+"px"};
_.X.onClick=function(){var f;_.ul(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(f=this.data)==null?void 0:f.image)};
_.X.onKeyPress=function(f){if(f.keyCode===13)this.onClick()};
_.Vy.Object.defineProperties($A.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:(R=f.image)==null?void 0:R.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.image){var R;f=(R=this.data)==null?void 0:R.image;return f.previewCoordinates.top!==0||f.previewCoordinates.left!==0?(R=this.computeTransform(f.previewCoordinates,f.naturalWidth,f.naturalHeight),f.naturalHeight>=f.naturalWidth?"width:inherit;transform:"+R+";":"height:inherit;transform:"+R+";"):f.naturalHeight>=f.naturalWidth?"width:inherit;":"height:inherit;"}}}});
$A.prototype.onKeyPress=$A.prototype.onKeyPress;_.B([_.a4(".image-container"),_.S("design:type",HTMLElement)],$A.prototype,"imageContainer",void 0);_.B([_.I(),_.S("design:type",Object)],$A.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.S("design:type",Object)],$A.prototype,"selected",void 0);_.B([_.T("data.image"),_.S("design:type",Object),_.S("design:paramtypes",[])],$A.prototype,"thumbnailUrl",null);
_.B([_.T("data.image","data.image.previewCoordinates"),_.S("design:type",Object),_.S("design:paramtypes",[])],$A.prototype,"thumbnailStyle",null);_.B([_.Kf("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$A.prototype,"onKeyPress",null);$A=_.B([_.e({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],$A);
_.G($A,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(kVi!==void 0)return kVi;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return kVi=f},{mode:2});var gr=function(f,R,u){u=u===void 0?!1:u;_.mq.call(this);var O=this;this.dropZoneOverlay=new Zl(f);this.selectOverlay=u?new lx(R,"multiple_file",["image/*"]):new lx(R,"single_file",["image/*"]);this.handler=new _.uE(this);_.qG(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(R,"click",function(){O.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.y(gr,_.mq);gr.prototype.onChange=function(f){var R;(R=f.files)!=null&&R.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:f.files}))};var sZ=function(){var f=_.U.apply(this,arguments)||this;f.addImageErrorMessage="";f.errorMessage="";f.images=[];f.selectedImageIndex=0;f.modern=_.E("web_modern_buttons");f.maxNumImagesPerPost=_.RV("max_num_images_per_post_web_ui");f.JSC$13553_imageId=0;return f};
_.y(sZ,_.U);_.X=sZ.prototype;_.X.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.ul(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.X.observeDragToReorder=function(){var f=this;if(this.showImagesPreview){var R,u=TpI(_.Vp.getInstance(),(R=this.data)==null?void 0:R.dragToReorderTooltip);_.JA.addLowPriorityJob(function(){_.ZW(f.hostElement,u,f.thumbnailDragDropArea)})}};
_.X.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}}};
_.X.computeThumbnail=function(f){return(f==null?void 0:f.localImageSrc)||void 0};
_.X.onRendererstamperFinished=function(){_.AcG(this.ytReorderableBehavior,_.b(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.b(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.X.handleDrop=function(f){var R=f.currDragItem;if(R!=null&&R.data){f=this.images[this.selectedImageIndex];var u=R.data.image,O=this.images.indexOf(u)||0;R=_.x5(R.parentNode.children,R);this.images.splice(O,1);this.images.splice(R,0,u);this.images=[].concat(_.yq(this.images));this.selectedImageIndex=this.images.indexOf(f)}};
_.X.setUpImagePicker=function(){var f=this.imageUploadEndpoint;f&&f.imageValidationInfo&&(this.uploadManager=new IM(f.uploadUrl,f.channelId),this.initialPicker||(this.initialPicker=new gr(this.dropzone,this.selectLink,!0),_.y0(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new gr(this.addImageButtonContainer,this.addImageSelectButton),_.y0(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.y0(this.JSC$13553_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.y0(this.JSC$13553_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.y0(_.b(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.X.detached=function(){this.initialPicker&&(_.w4(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.w4(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.X.onInitialSelectImages=function(f){var R=this;return _.k(function(u){return _.A(u,R.onSelectImages(f,!1),0)})};
_.X.onAddImage=function(f){var R=this;return _.k(function(u){return _.A(u,R.onSelectImages(f,!0),0)})};
_.X.onSelectImages=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V;return _.k(function(ZD){switch(ZD.nextAddress){case 1:R?u.addImageErrorMessage="":(u.images=[],u.errorMessage="");O=f.detail;c=u.validateImages([].concat(_.yq(O)));if(c!=="")return R?u.addImageErrorMessage=c:u.errorMessage=c,ZD.return();h=[].concat(_.yq(O)).map(function(mP){return(new oY(u.maxAspectRatio,!1,!0)).transform(mP)});
return _.A(ZD,Promise.allSettled(h),2);case 2:l=ZD.yieldResult,K=_.Z(l.entries()),q=K.next();case 3:if(q.done){ZD.jumpTo(5);break}F=q.value;w=_.Z(F);m=w.next().value;W=w.next().value;C=m;d=W;if(d.status!=="fulfilled"){M=J=p=void 0;R?u.addImageErrorMessage=_.$Z((p=u.data)==null?void 0:p.invalidError):u.errorMessage=u.errorMessage===""?_.$Z((J=u.data)==null?void 0:J.invalidError):_.$Z((M=u.data)==null?void 0:M.multiFileError);ZD.jumpTo(4);break}P=d.value;P.cropped&&_.ul(u.hostElement,"yt-backstage-multi-image-cropped");
if(P.invalidAspectRatio){fh=x=g=void 0;R?u.addImageErrorMessage=_.$Z((g=u.data)==null?void 0:g.invalidAspectRatioError):u.errorMessage=u.errorMessage===""?_.$Z((x=u.data)==null?void 0:x.invalidAspectRatioError):_.$Z((fh=u.data)==null?void 0:fh.multiFileError);ZD.jumpTo(4);break}return _.A(ZD,Do5(u.JSC$13553_imageId,f.detail[C],P.transformedData),8);case 8:V=ZD.yieldResult,u.images.push(V),u.JSC$13553_imageId++;case 4:q=K.next();ZD.jumpTo(3);break;case 5:if(u.errorMessage!==""||u.addImageErrorMessage!==
"")return ZD.return();R?YtH(u.uploadManager,[u.images[u.images.length-1]]):YtH(u.uploadManager,u.images);u.images=[].concat(_.yq(u.images));u.selectedImageIndex=R?Math.max(u.images.length-1,0):0;_.ul(u.hostElement,"yt-backstage-multi-image-select");_.KG(ZD)}})};
_.X.onThumbnailClick=function(f){if(f=f.event_.detail)this.selectedImageIndex=this.images.indexOf(f)};
_.X.validateImages=function(f){if(f.length>this.maxNumImagesPerPost){var R;return _.$Z((R=this.data)==null?void 0:R.multiImageExceedMaxImageCountError)}var u=1048576*this.maxFileSizeMb;f=f.filter(function(h){return h.size>u}).length;
if(f===0)return"";var O,c;f=f>1?(O=this.data)==null?void 0:O.multiFileError:(c=this.data)==null?void 0:c.fileSizeError;return _.$Z(f)};
_.X.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.yq(this.images));this.selectedImageIndex=0};
_.X.repositionImage=function(f){this.images[this.selectedImageIndex].previewCoordinates=f.event_.detail;this.images=[].concat(_.yq(this.images))};
_.X.getAllUploadStatuses=function(){var f=this,R,u,O,c;return _.k(function(h){if(h.nextAddress==1)return _.A(h,f.uploadManager.getAllUploadStatuses(),2);R=h.yieldResult;u=_.Z(R);for(O=u.next();!O.done;O=u.next())if(c=O.value,c.encryptedBlobId===void 0)return h.return(vfC(f.uploadManager));return h.return(R)})};
_.X.hasImages=function(){return this.images.length>0};
_.X.cancel=function(){for(var f=this.uploadManager,R=_.Z(f.imagesUploadData),u=R.next();!u.done;u=R.next())f.cancel(u.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.ul(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Vy.Object.defineProperties(sZ.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.imageUploadEndpoint)==null?void 0:(R=f.imageValidationInfo)==null?void 0:R.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.imageUploadEndpoint)==null?void 0:(R=f.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var f,R;if((f=this.data)==null?0:(R=f.icon)==null?0:R.iconType)return _.li(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.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 f=this;return(this.images||[]).map(function(R,u){return{renderer:{image:R,selected:u===f.selectedImageIndex}}})}}});
sZ.prototype.setUpImagePicker=sZ.prototype.setUpImagePicker;sZ.prototype.onRendererstamperFinished=sZ.prototype.onRendererstamperFinished;sZ.prototype.observeDragToReorder=sZ.prototype.observeDragToReorder;sZ.prototype.observeAddImageError=sZ.prototype.observeAddImageError;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],sZ.prototype,"rendererStamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.aTC),_.S("design:type",Object)],sZ.prototype,"ytReorderableBehavior",void 0);_.B([_.a4("#dropzone"),_.S("design:type",HTMLElement)],sZ.prototype,"dropzone",void 0);_.B([_.a4("#select-link"),_.S("design:type",HTMLElement)],sZ.prototype,"selectLink",void 0);_.B([_.a4("#thumbnail-drag-drop-area"),_.S("design:type",HTMLElement)],sZ.prototype,"thumbnailDragDropArea",void 0);_.B([_.a4("#add-image-button-container"),_.S("design:type",HTMLElement)],sZ.prototype,"addImageButtonContainer",void 0);
_.B([_.a4("#add-image-button"),_.S("design:type",HTMLElement)],sZ.prototype,"addImageSelectButton",void 0);_.B([_.a4("#image-preview-container"),_.S("design:type",Object)],sZ.prototype,"JSC$13553_imagePreviewContainer",void 0);_.B([_.I(),_.S("design:type",Object)],sZ.prototype,"addImageErrorMessage",void 0);_.B([_.I(),_.S("design:type",Object)],sZ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],sZ.prototype,"errorMessage",void 0);
_.B([_.I(),_.S("design:type",Object)],sZ.prototype,"imageUploadEndpoint",void 0);_.B([_.I(),_.S("design:type",Array)],sZ.prototype,"images",void 0);_.B([_.I(),_.S("design:type",gr)],sZ.prototype,"initialPicker",void 0);_.B([_.I(),_.S("design:type",gr)],sZ.prototype,"addImagePicker",void 0);_.B([_.I(),_.S("design:type",IM)],sZ.prototype,"uploadManager",void 0);_.B([_.I(),_.S("design:type",Object)],sZ.prototype,"selectedImageIndex",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sZ.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sZ.prototype,"maxNumImagesPerPost",void 0);_.B([_.T("imageUploadEndpoint"),_.S("design:type",Number),_.S("design:paramtypes",[])],sZ.prototype,"maxAspectRatio",null);_.B([_.T("imageUploadEndpoint"),_.S("design:type",Number),_.S("design:paramtypes",[])],sZ.prototype,"maxFileSizeMb",null);
_.B([_.T("data.icon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],sZ.prototype,"dropIcon",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],sZ.prototype,"selectionCancel",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],sZ.prototype,"previewCancel",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],sZ.prototype,"dataForAddImageButton",null);
_.B([_.T("errorMessage"),_.S("design:type",String),_.S("design:paramtypes",[])],sZ.prototype,"dropzoneClass",null);_.B([_.T("images"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sZ.prototype,"showImagesPreview",null);_.B([_.T("images"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sZ.prototype,"containMaxImages",null);_.B([_.qM("addImageErrorMessage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sZ.prototype,"observeAddImageError",null);
_.B([_.qM("showImagesPreview"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sZ.prototype,"observeDragToReorder",null);_.B([_.T("images","selectedImageIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],sZ.prototype,"selectedImageData",null);_.B([_.T("images","selectedImageIndex"),_.S("design:type",Array),_.S("design:paramtypes",[])],sZ.prototype,"thumbnailRenderers",null);
_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sZ.prototype,"onRendererstamperFinished",null);_.B([_.qM("imageUploadEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sZ.prototype,"setUpImagePicker",null);sZ=_.B([_.e({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],sZ);
_.G(sZ,"ytd-backstage-multi-image-select-renderer",function(){if(lyC!==void 0)return lyC;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return lyC=f},{mode:1});var K7t;var q5k;var AWi;var ny=function(){var f=_.U.apply(this,arguments)||this;f.boundCaptureFocus=function(R){f.onCaptureFocus(R)};
return f};
_.y(ny,_.U);_.X=ny.prototype;_.X.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.X.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.X.onCaptureFocus=function(f){_.$S(f).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.X.getIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.X.onSelect=function(){var f;if((f=this.data)==null?0:f.onSelectCommand)if(_.E("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var R;((R=_.t(this.data.onSelectCommand.commandMetadata,_.vc))==null?0:R.url)?_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.vh().resolve(_.rv).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Vy.Object.defineProperties(ny.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.$Z(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}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ny.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ny.prototype,"data",void 0);_.B([_.a4("#item"),_.S("design:type",HTMLElement)],ny.prototype,"item",void 0);_.B([_.T("data.label"),_.S("design:type",String),_.S("design:paramtypes",[])],ny.prototype,"label",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ny.prototype,"value",null);ny=_.B([_.e({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],ny);
_.G(ny,"ytd-privacy-dropdown-item-renderer",function(){if(AWi!==void 0)return AWi;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return AWi=f},{mode:1});var V$=function(){var f=_.U.apply(this,arguments)||this;f.value="";f.label="";f.disabled=!1;return f};
_.y(V$,_.U);_.X=V$.prototype;_.X.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"}}}};
_.X.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.X.dataChanged=function(){this.reset()};
_.X.valueChanged=function(){var f;if(this.value&&(f=this.data)!=null&&f.entries){f=_.Z(this.data.entries);for(var R=f.next();!R.done;R=f.next())if((R=this.getRendererForEntry(R.value))&&this.getItemRendererValue(R)===this.value){this.label=this.ytComponentBehavior.getSimpleString(R.label);break}}};
_.X.setInitialLabel=function(){if(this.data&&this.data.entries)for(var f=_.Z(this.data.entries),R=f.next();!R.done;R=f.next())if(R=this.getRendererForEntry(R.value)){if(R.isSelected){this.label=this.ytComponentBehavior.getSimpleString(R.label);break}this.data.label&&(this.label=this.data.label)}};
_.X.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var f=_.Z(this.data.entries),R=f.next();!R.done;R=f.next()){R=this.getRendererForEntry(R.value);var u=void 0;if((u=R)==null?0:u.isSelected)return this.getItemRendererValue(R)||-1}return-1};
_.X.getItemRendererValue=function(f){return"stringValue"in f||"int32Value"in f?f.stringValue||f.int32Value||null:null};
_.X.getRendererForEntry=function(f){return f.dropdownItemRenderer||f.privacyDropdownItemRenderer||f.navigationDropdownItemRenderer||null};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("value-changed",this.value))};
_.X.updateValueFromBinding=function(f){this.value=f.detail.value};
V$.prototype.valueChangedForBinding=V$.prototype.valueChangedForBinding;V$.prototype.valueChanged=V$.prototype.valueChanged;V$.prototype.dataChanged=V$.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],V$.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],V$.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],V$.prototype,"value",void 0);_.B([_.I(),_.S("design:type",Object)],V$.prototype,"label",void 0);_.B([_.a4("#entries"),_.S("design:type",Object)],V$.prototype,"entries",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],V$.prototype,"disabled",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V$.prototype,"dataChanged",null);
_.B([_.QR("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V$.prototype,"valueChanged",null);_.B([_.qM("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V$.prototype,"valueChangedForBinding",null);V$=_.B([_.e({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],V$);
_.G(V$,"ytd-flat-dropdown-renderer",function(){if(q5k!==void 0)return q5k;var f=document.createElement("template");_.N(f,'\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="yt-icons:arrow_drop_down" 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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return q5k=f},{mode:1});var ayG;var YA=function(){var f=_.U.apply(this,arguments)||this;f.quizOptions=[];f.explanationPlaceholderText="";f.optionPlaceholderText="";f.correctAnswerIndex=-1;f.isMarkAnswerTooltipShown=!1;f.timer=0;return f};
_.y(YA,_.U);_.X=YA.prototype;_.X.dataChanged=function(){this.optionPlaceholderText=_.$Z(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.$Z(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.X.onMarkCorrectAnswer=function(f){var R,u=((R=this.quizOptions[this.correctAnswerIndex])==null?void 0:R.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[f.model.index]=Object.assign({},this.quizOptions[f.model.index],{explanationText:u,isCorrect:!0});this.correctAnswerIndex=f.model.index;this.quizOptions=[].concat(_.yq(this.quizOptions))};
_.X.updatePlaceholderTexts=function(){for(var f=!1,R=[],u=0;u<this.quizOptions.length;u++){var O=this.optionPlaceholderText+" "+(u+1),c=void 0;((c=this.quizOptions[u])==null?void 0:c.placeholderText)!==O?(f=!0,R.push(Object.assign({},this.quizOptions[u],{placeholderText:O}))):R.push(this.quizOptions[u])}f&&(this.quizOptions=R);this.isValid()?_.ul(this.hostElement,"yt-commentbox-post-enable"):_.ul(this.hostElement,"yt-commentbox-post-disable")};
_.X.getSimpleString=function(f){return _.$Z(f)};
_.X.createQuizOptions=function(f){var R=[],u;f=(u=f==null?void 0:f.minQuizOptions)!=null?u:0;for(u=0;u<f;u++)R.push(this.createQuizOption());return R};
_.X.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.yq(this.quizOptions),[this.createQuizOption()]))};
_.X.onInput=function(){this.quizOptions=[].concat(_.yq(this.quizOptions))};
_.X.onExplanationInput=function(){_.ul(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.X.onRemoveQuizOption=function(f){this.quizOptions.splice(f.model.index,1);f.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:f.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.yq(this.quizOptions));this.quizOptions.length===0&&_.ul(this.hostElement,"yt-quiz-attachment-dismiss")};
_.X.updateHintRenderer=function(){var f=this;clearTimeout(this.timer);this.timer=setTimeout(function(){f.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.X.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var f=0,R=0,u=_.Z(this.quizOptions),O=u.next();!O.done;O=u.next()){O=O.value;var c=void 0;if(((c=O.optionText)==null?void 0:c.trim())!==""||O.isCorrect){O.isCorrect&&R++;c=void 0;if(this.hasCustomOptionText&&((c=O.optionText)==null?void 0:c.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;f++}}return f>=
Number(this.editorInfo.minQuizOptions)&&R===1};
_.X.getPostCreateOptions=function(){for(var f=[],R=_.Z(this.quizOptions),u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;((O=u.optionText)==null?void 0:O.trim())!==""&&f.push({pollOption:{text:u.optionText,explanation:u.explanationText},isCorrect:u.isCorrect})}return f};
_.X.getExplanationText=function(){var f;return((f=this.quizOptions[this.correctAnswerIndex])==null?void 0:f.explanationText)||""};
_.X.maybeDisplayMarkAnswerEduToolTip=function(){var f,R,u,O,c,h,l;this.shouldShowMarkAnswerTooltip()&&((f=this.editorInfo)==null?0:(R=f.markAnswerButton)==null?0:(u=R.buttonRenderer)==null?0:(O=u.hint)==null?0:(c=O.hintRenderer)==null?0:(h=c.content)==null?0:(l=h.bubbleHintRenderer)==null?0:l.text)&&(_.Vp.getInstance(),f=Ya(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,(f==null?void 0:f.length)>0&&this.optionSelectors&&_.qO(f[0],this.optionSelectors[0]))};
_.X.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var f=0,R=_.Z(this.quizOptions),u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;((O=u.optionText)==null?void 0:O.trim())!==""&&f++;if(u.isCorrect)return!1}return f<2?!1:!0};
_.X.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.X.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.X.updateOptionTextFromBinding=function(f){if(f.target){var R=Array.from(_.b(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(f.target);if(R>=0){var u;this.quizOptions[R].optionText=(u=f.detail.value)!=null?u:""}}};
_.Vy.Object.defineProperties(YA.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.editorInfo)==null?void 0:(R=f.addOptionButton)==null?void 0:R.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 f,R;return this.quizOptions.length<((R=(f=this.editorInfo)==null?void 0:f.maxQuizOptions)!=null?R:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(f){var R;return(R=f.optionText)==null?void 0:R.trim()})}}});
YA.prototype.updatePlaceholderTexts=YA.prototype.updatePlaceholderTexts;YA.prototype.dataChanged=YA.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],YA.prototype,"editorInfo",void 0);_.B([_.I(),_.S("design:type",Array)],YA.prototype,"quizOptions",void 0);_.B([_.I(),_.S("design:type",Object)],YA.prototype,"explanationPlaceholderText",void 0);_.B([_.F4(".option-selector-button"),_.S("design:type",Array)],YA.prototype,"optionSelectors",void 0);
_.B([_.QR("editorInfo"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YA.prototype,"dataChanged",null);_.B([_.T("editorInfo","isAllowedToAddOption","quizOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],YA.prototype,"addAnswerButton",null);_.B([_.T("editorInfo","quizOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],YA.prototype,"isAllowedToAddOption",null);
_.B([_.QR("quizOptions"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YA.prototype,"updatePlaceholderTexts",null);_.B([_.T("quizOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],YA.prototype,"hasCustomOptionText",null);YA=_.B([_.e({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],YA);
_.G(YA,"ytd-backstage-quiz-editor-renderer",function(){if(ayG!==void 0)return ayG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ayG=f},{mode:2});var F7t;var wEF=(yo.FIRSTDAYOFWEEK+1)%7;var m0F;var QlE=[],W7Y=0,E9I=0;W7Y=0;E9I=24;if(.25*(E9I-W7Y)<0)m0F=[];else{for(var tsF=W7Y;tsF<E9I;tsF+=.25)QlE.push(tsF);m0F=QlE}var CJf=m0F.map(function(f){f=f*60*60;return{secondsSinceMidnight:f,text:(new oL(7)).format(new Date(0,0,0,0,0,f))}});var yWF;var vn=function(){var f=_.U.apply(this,arguments)||this;f.skipNextOpenDialog=!1;f.errorMessage="";return f};
_.y(vn,_.U);_.X=vn.prototype;_.X.attached=function(){var f=this,R=new MutationObserver(function(){f.JSC$13596_calendarMain.scrollHeight>0&&(R.disconnect(),f.calendarConfig&&f.calendarConfig.selectedDate&&f.scrollToDate())});
R.observe(this.JSC$13596_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){R.disconnect()},1E3)};
_.X.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.X.onDateTextChange=function(){if(this.calendarConfig){var f=this.validateDateText();f.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(f.details)):this.textbox.setAttribute("invalid","")}};
_.X.handleDayClick=function(f){f.model.day.date&&(this.commitDate(f.model.day.date),this.dialog.close())};
_.X.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var f=B02(this.calendarConfig.selectedDate,this.renderData);f!==void 0&&this.JSC$13596_calendarMain.scrollToIndex(f)}};
_.X.scrollToNextMonth=function(){this.JSC$13596_calendarMain.scrollToIndex(this.JSC$13596_calendarMain.firstVisibleIndex+1)};
_.X.scrollToPrevMonth=function(){this.JSC$13596_calendarMain.firstVisibleIndex===0&&this.JSC$13596_calendarMain.scrollTo(0,0);this.JSC$13596_calendarMain.scrollToIndex(this.JSC$13596_calendarMain.firstVisibleIndex-1)};
_.X.onFormSubmit=function(f){f.preventDefault();this.calendarConfig&&(f=this.validateDateText(),f.isValid&&(this.commitDate(f.details),this.dialog.close()))};
_.X.onEscOrClickingOutside=function(f){f=f.detail.path&&!!f.detail.path.length&&f.detail.path[0];if(f.classList.contains("ytd-calendar-date-picker")){f===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var R=0;R<this.dropdownButton.children.length;R++)this.dropdownButton.children[R]===f&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}f=this.textbox.value!==this.dateText;R=this.validateDateText();f&&R.isValid&&this.commitDate(R.details);this.dialog.close();this.textbox.value=
this.dateText};
_.X.commitDate=function(f){this.calendarConfig&&(this.set("calendarConfig.selectedDate",f),_.ul(this.hostElement,"ytd-calendar-date-selected",f))};
_.X.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var f=this.textbox.value;var R=new Date;f=(new h$P(2)).parse(f,R,{validate:!0})===f.length?eX0(R):void 0;if(!f)return this.errorMessage=_.Fa("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};R=this.calendarConfig.start;var u=this.calendarConfig.end;if(H27(f,R))return this.errorMessage=_.Fa("ENTER_DATE_OR_LATER",{allowed_date:UoX(R)}),{isValid:!1,details:void 0};if(H27(u,f))return this.errorMessage=
_.Fa("ENTER_DATE_OR_EARLIER",{allowed_date:UoX(u)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:f}};
_.Vy.Object.defineProperties(vn.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?UoX(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var f=this.calendarConfig,R=[],u=0;u<7;u++)R.push(yo.NARROWWEEKDAYS[(u+wEF)%7]);u=[];for(var O=new Date(f.start.year,f.start.month);O.getFullYear()<f.end.year||O.getFullYear()===f.end.year&&O.getMonth()<=f.end.month;){var c=u,h=c.push,l=O.getFullYear(),K=O.getMonth(),q=f,F=void 0,w=[],m=Object.freeze({extraCssClass:"invisible",debugClass:""}),W=new Date(l,K),C=eX0(W);W=W.getDay();for(var d=eX0(new Date);C.month===
K;){W!==wEF&&F||(F=Array.from({length:7}).fill(m),w.push(F));var p={date:{year:l,month:K,day:C.day},extraCssClass:"",debugClass:""};q.selectedDate&&p.date&&T0t(p.date,q.selectedDate)&&(p.extraCssClass+=" selected");if(H27(C,q.start)||H27(q.end,C))p.extraCssClass+=" disabled";T0t(C,d)&&(p.extraCssClass+=" today");p.extraCssClass=p.extraCssClass.trim();F[(W-wEF+7)%7]=p;C=Mj0(C);W=(W+1)%7}h.call(c,{weeks:w,monthLabel:yo.SHORTMONTHS[K]+" "+l,year:l,month:K,monthLabelExtraCssClass:w[0][2]===m?"shift-down-label":
""});O.setMonth(O.getMonth()+1)}return{months:u,daysOfWeekLabel:R}}}}});
vn.prototype.onEscOrClickingOutside=vn.prototype.onEscOrClickingOutside;vn.prototype.scrollToDate=vn.prototype.scrollToDate;_.B([_.I(),_.S("design:type",Object)],vn.prototype,"calendarConfig",void 0);_.B([_.I(),_.S("design:type",Object)],vn.prototype,"skipNextOpenDialog",void 0);_.B([_.I(),_.S("design:type",Object)],vn.prototype,"errorMessage",void 0);_.B([_.a4("#textbox"),_.S("design:type",HTMLInputElement)],vn.prototype,"textbox",void 0);
_.B([_.a4("#calendar-dialog"),_.S("design:type",Object)],vn.prototype,"dialog",void 0);_.B([_.a4("#calendar-main"),_.S("design:type",Object)],vn.prototype,"JSC$13596_calendarMain",void 0);_.B([_.a4("#date-picker"),_.S("design:type",HTMLElement)],vn.prototype,"dropdownButton",void 0);_.B([_.T("calendarConfig.selectedDate"),_.S("design:type",String),_.S("design:paramtypes",[])],vn.prototype,"dateText",null);
_.B([_.T("calendarConfig","calendarConfig.selectedDate"),_.S("design:type",Object),_.S("design:paramtypes",[])],vn.prototype,"renderData",null);_.B([_.qM("renderData","calendarConfig.selectedDate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vn.prototype,"scrollToDate",null);_.B([_.Kf("iron-overlay-canceled"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],vn.prototype,"onEscOrClickingOutside",null);
vn=_.B([_.DO({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],vn);
_.G(vn,"ytd-calendar-date-picker",function(){if(yWF!==void 0)return yWF;var f=document.createElement("template");_.N(f,'\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="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return yWF=f},{mode:2});var d0I=_.Fa("UTC_OFFSET_FORMAT",{utc_offset:(new oL("Z")).format(new Date)}),Nok=(new Date).getTimezoneOffset()*-60,L7f=new Date,bXC,pEk=BW(L7f.getTimezoneOffset());bXC=BAY(x5H(pEk,L7f));var jlC=_.Fa("LOCAL_TIME_GMT_LABEL",{gmt_text:bXC.replace("+0","+").replace("-0","-").replace(":00","")}),ia=function(){var f=_.U.apply(this,arguments)||this;f.selectedTimeIndex=0;f.selectedTimezoneIndex=0;f.timeOfDayOptions=CJf;return f};
_.y(ia,_.U);_.X=ia.prototype;_.X.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var f=PRq();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=f,this.selectedTimeIndex=0;else{var R=GE5(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},f,{selectedDate:R.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(u){return u.secondsSinceMidnight===R.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.X.onDatePicked=function(f){this.selectedDate=f.detail};
_.X.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.ul(this.hostElement,"ytd-date-time-selection-cancelled")};
_.X.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var f=this.selectedDate;f=new Date(f.year,f.month,f.day);_.ul(this.hostElement,"ytd-date-time-selection-update",Math.floor(f.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+f.getTimezoneOffset()*60))}};
_.X.getTimezoneFormat=function(f){return f.localizedDisplayText?f.localizedDisplayText:_.Fa("TIMEZONE_FORMAT",{utc_offset_text:""+f.localizedUtcOffset,city_name:""+f.localizedName})};
_.X.updateSelectedTimeIndexFromBinding=function(f){this.selectedTimeIndex=f.detail.value};
_.X.updateSelectedTimezoneIndexFromBinding=function(f){this.selectedTimezoneIndex=f.detail.value};
_.Vy.Object.defineProperties(ia.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data.timezoneOptions;var R={name:"Etc/Unknown",localizedName:_.Fa("LOCAL_TIME_LABEL"),localizedUtcOffset:d0I,utcOffsetSec:""+Nok,localizedDisplayText:jlC};f?f.length&&f[0].name!==R.name&&(f[0].localizedDisplayText||(R.localizedDisplayText=""),f.unshift(R)):f=[R];return f}}},
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]}}});
ia.prototype.onDateTimeTimezoneChange=ia.prototype.onDateTimeTimezoneChange;ia.prototype.onDatePicked=ia.prototype.onDatePicked;ia.prototype.updateDefaultSelectedValue=ia.prototype.updateDefaultSelectedValue;_.B([_.I(),_.S("design:type",Object)],ia.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],ia.prototype,"calendarConfig",void 0);_.B([_.I(),_.S("design:type",Object)],ia.prototype,"selectedDate",void 0);_.B([_.I(),_.S("design:type",Object)],ia.prototype,"selectedTimeIndex",void 0);
_.B([_.I(),_.S("design:type",Object)],ia.prototype,"selectedTimezoneIndex",void 0);_.B([_.a4("#time-listbox"),_.S("design:type",Object)],ia.prototype,"timeListBox",void 0);_.B([_.a4("#timezone-listbox"),_.S("design:type",Object)],ia.prototype,"timezoneListBox",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ia.prototype,"rendererStamperBehavior",void 0);_.B([_.T("data.timezoneOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],ia.prototype,"timeZones",null);
_.B([_.QR("data","timeZones"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ia.prototype,"updateDefaultSelectedValue",null);_.B([_.T("selectedTimezoneIndex","timeZones"),_.S("design:type",Object),_.S("design:paramtypes",[])],ia.prototype,"selectedTimezone",null);_.B([_.T("selectedTimeIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],ia.prototype,"selectedTime",null);
_.B([_.Kf("ytd-calendar-date-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ia.prototype,"onDatePicked",null);_.B([_.qM("selectedTimezone","selectedTime","selectedDate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ia.prototype,"onDateTimeTimezoneChange",null);ia=_.B([_.e({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],ia);
_.G(ia,"ytd-date-time-picker-renderer",function(){if(F7t!==void 0)return F7t;var f=document.createElement("template");_.N(f,'\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="yt-icons:arrow_drop_down" 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="yt-icons:arrow_drop_down" 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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return F7t=f},{mode:1});var D0H;var rr=function(){var f=_.U.apply(this,arguments)||this;f.boundOnTapDismissButton=function(){f.dismissTapHandler()};
f.dismissButtonOverrides={size:"XS"};return f};
_.y(rr,_.U);rr.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}}}}}};
rr.prototype.dismissTapHandler=function(){_.ul(this.hostElement,"yt-backstage-attachment-dismissed")};
rr.prototype.computeAttachmentType=function(f){return f?f.backstageImageRenderer?"image":f.videoRenderer?"video":"none":"none"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rr.prototype,"attachmentPreview",void 0);_.B([_.I(),_.S("design:type",Object)],rr.prototype,"dismissButton",void 0);_.B([_.I(),_.S("design:type",Object)],rr.prototype,"boundOnTapDismissButton",void 0);
_.B([_.I(),_.S("design:type",Object)],rr.prototype,"dismissButtonOverrides",void 0);_.B([_.I({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.S("design:type",String)],rr.prototype,"attachmentType",void 0);rr=_.B([_.e({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],rr);
_.G(rr,"ytd-backstage-dismissable-attachment",function(){if(D0H!==void 0)return D0H;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return D0H=f},{mode:1});var JWt;var fF=function(){var f=_.U.apply(this,arguments)||this;f.selectedVideoId=void 0;f.picker=void 0;f.dismissButtonOverrides={size:"XS"};f.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return f};
_.y(fF,_.U);_.X=fF.prototype;_.X.onServiceRequestCompleted=function(f){f.stopPropagation()};
_.X.handleAddVideoPreviewAction=function(f){f=this.get("addVideoPreviewAction",f);this.onGetVideoPreviewSuccess(f)};
_.X.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}}}}}};
_.X.onLaunchVideoPicker=function(f){var R=this,u=_.$Z(this.get("addVideoLinkAction.title",f)),O=this.get("addVideoLinkAction.onePickHostId",f);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",f);O&&(this.picker||(u=_.GPF(_.t$q(O).setTitle(u).addView(Mrt()).addView(INl()),function(c){R.onPickVideo(c)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",f)||u.addView("youtube"),this.picker=u.build()),this.picker.setVisible(!0))};
_.X.onPickVideo=function(f){if(f)if(f.action==="cancel")_.ul(this.hostElement,"yt-video-link-button-cancel");else if(f.action==="picked"){f=f.docs;if(!f||f.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(f=(f==null?0:f.length)?f[0]:void 0)?f.id:void 0;this.setVideoPreview()}};
_.X.setVideoPreview=function(){var f=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){f.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.X.onGetVideoPreviewSuccess=function(f){if(f&&f.videoPreview&&f.cancelButton)this.videoPreview=f.videoPreview,this.cancelButton=f.cancelButton,_.ul(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.X.onGetVideoPreviewError=function(){this.cancel()};
_.X.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.ul(this.hostElement,"yt-video-link-cancel")};
_.X.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
fF.prototype.onServiceRequestCompleted=fF.prototype.onServiceRequestCompleted;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],fF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],fF.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],fF.prototype,"videoPreview",void 0);_.B([_.I(),_.S("design:type",Object)],fF.prototype,"cancelButton",void 0);_.B([_.I(),_.S("design:type",Object)],fF.prototype,"getVideoPreviewCommand",void 0);_.B([_.I(),_.S("design:type",Object)],fF.prototype,"dismissButtonOverrides",void 0);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],fF.prototype,"onServiceRequestCompleted",null);fF=_.B([_.e({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],fF);
_.G(fF,"ytd-backstage-video-link-attachment",function(){if(JWt!==void 0)return JWt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return JWt=f},{mode:1});var z$l;var Tof;var HXC;var Ro=function(){return _.U.apply(this,arguments)||this};
_.y(Ro,_.U);Ro.prototype.dataChanged=function(){this.active=!1};
Ro.prototype.onTap=function(){_.ul(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Ro.prototype.identity=function(f){return f};
_.Vy.Object.defineProperties(Ro.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;if((f=this.data)==null?0:(R=f.image)==null?0:(u=R.thumbnails)==null?0:(O=u[0])==null?0:O.url)return f=this.data.image.thumbnails[0].url,f.startsWith("data:image/svg+xml")?Am(f):_.EO(f)}}});
Ro.prototype.dataChanged=Ro.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],Ro.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ro.prototype,"active",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ro.prototype,"dataChanged",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ro.prototype,"imageSrc",null);
Ro=_.B([_.e({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Ro);
_.G(Ro,"ytd-emoji-suggestion",function(){if(HXC!==void 0)return HXC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return HXC=f},{mode:1});var IyE=/.*([:@#].*?)$/,uN=function(){var f=_.U.apply(this,arguments)||this;f.suggestions=[];f.suggestionIndex=-1;f.JSC$13624_lastSuggestionRange=null;return f};
_.y(uN,_.U);_.X=uN.prototype;_.X.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.X.getSuggestions=function(f){var R=[],u=W3G(this.emojiManager,f.substr(0,3));if(u)for(var O in u)if(O.toLocaleLowerCase().indexOf(f)===0){var c=u[O];if(c&&c.emojiId){c=T5(this.emojiManager,c.emojiId);var h=void 0,l=void 0,K=void 0,q=void 0,F=((h=c)==null?0:h.isCustomEmoji)?(l=c)==null?void 0:(K=l.shortcuts)==null?void 0:K[0]:(q=c)==null?void 0:q.emojiId;h=void 0;R.push({suggestion:{image:(h=c)==null?void 0:h.image,alt:F,text:O}});if(R.length>=64)break}}return R?R.sort(function(w,m){return m.suggestion.text<
w.suggestion.text?-1:m.suggestion.text===w.suggestion.text?0:1}):null};
_.X.insertSuggestion=function(f){_.ul(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13624_lastSuggestionRange,text:f.alt});this.dropdown.opened=!1};
_.X.updateSuggestionsAtCaret=function(f){this.updateSuggestions(f,this.retrieveTextBeforeRange(f))};
_.X.offsetStartOfRangeBy=function(f,R){f.startOffset>=R&&f.setStart(f.startContainer,f.startOffset-R)};
_.X.updateSuggestions=function(f,R){var u=this;this.JSC$13624_lastSuggestionRange&&(this.JSC$13624_lastSuggestionRange.detach(),this.JSC$13624_lastSuggestionRange=null);if((R=IyE.exec(R))&&R.length&&(R=R[R.length-1].toLocaleLowerCase(),R.length>2||R===":_")&&(this.offsetStartOfRangeBy(f,R.length),this.JSC$13624_lastSuggestionRange=f,(f=this.getSuggestions(R))&&f.length)){this.suggestions=f;_.su(this,function(){u.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(f.length-1);return}this.dropdown.opened=!1};
_.X.onKeyDown=function(f){if(this.dropdown.opened)switch(f.key){case "Escape":this.dropdown.opened=!1;f.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);f.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);f.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),f.preventDefault()}};
_.X.onKeyUp=function(f,R){switch(f.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(R);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(R)}};
_.X.onKeyPress=function(f){f.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),f.preventDefault())};
_.X.changeSuggestionIndex=function(f){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(f+this.suggestions.length)%this.suggestions.length,f=this.dropdownContent.children[this.suggestionIndex],f.active=!0,this.dropdownContent.scrollTop=f.offsetTop)};
_.X.retrieveTextBeforeRange=function(f){var R=f.startContainer;return R&&R.nodeType===Node.TEXT_NODE?R.textContent.substr(0,f.startOffset):""};
uN.prototype.onKeyPress=uN.prototype.onKeyPress;uN.prototype.onKeyUp=uN.prototype.onKeyUp;uN.prototype.onKeyDown=uN.prototype.onKeyDown;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Array)],uN.prototype,"suggestions",void 0);_.B([_.I(),_.S("design:type",_.Je)],uN.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",Number)],uN.prototype,"verticalSuggestionsOffset",void 0);
_.B([_.a4("#dropdown"),_.S("design:type",Object)],uN.prototype,"dropdown",void 0);_.B([_.a4("#dropdown-content"),_.S("design:type",HTMLDivElement)],uN.prototype,"dropdownContent",void 0);_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],uN.prototype,"onKeyDown",null);_.B([_.Kf("keyup"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent,Range]),_.S("design:returntype")],uN.prototype,"onKeyUp",null);
_.B([_.Kf("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],uN.prototype,"onKeyPress",null);uN=_.B([_.e({disableElementRegistration:!0,is:"ytd-emoji-input"})],uN);
_.G(uN,"ytd-emoji-input",function(){if(Tof!==void 0)return Tof;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Tof=f},{mode:2});var Msk;var OI=function(){var f=_.U.apply(this,arguments)||this;f.hasMaxOptions=!1;return f};
_.y(OI,_.U);_.X=OI.prototype;_.X.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.X.setPrefilledChoices=function(f){var R=this;this.set("pollOptions",[]);var u;for(u=0;u<Math.min(f.length,this.data.maxPollOptions);u++)this.push("pollOptions",f[u].substring(0,this.data.maxPollOptionChars));for(;u<this.data.minPollOptions;u++)this.push("pollOptions","");this.hasMaxOptions=u>=this.data.maxPollOptions;_.su(this,function(){for(var O=R.pollOptions,c=_.b(R.hostElement).querySelectorAll(".poll-option-input"),h=0;h<c.length;h++)c[h].value=O[h]})};
_.X.focusChanged=function(){_.ZO(this.hostElement)};
_.X.onInput=function(){var f=this;_.UU(this,"onInput",function(){f.isValid()?_.ul(f.hostElement,"yt-commentbox-post-enable"):_.ul(f.hostElement,"yt-commentbox-post-disable")},300)};
_.X.setPollOptions=function(){var f=[],R,u=((R=this.data)==null?0:R.minPollOptions)?this.data.minPollOptions:0;for(R=0;R<u;R++)f.push("");return f};
_.X.addPollOption=function(){var f=this;_.ul(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.JA.addLowPriorityJob(function(){var R;(R=_.b(f.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||R.focus()})};
_.X.onRemovePollOption=function(f){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.ul(this.hostElement,"yt-poll-attachment-dismiss")):(f=this.repeat.indexForElement(f.target.parentNode),f!==null&&(this.splice("pollOptions",f,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.ul(this.hostElement,"yt-commentbox-post-enable"))))};
_.X.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.X.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var f=0,R=this.pollOptions.length;f<R;f++)if(this.pollOptions[f].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.X.getPollOptions=function(){return this.pollOptions};
_.X.setPollOptionsFromInputs=function(){for(var f=_.b(this.hostElement).querySelectorAll(".poll-option-input"),R=0;R<f.length;R++)this.pollOptions[R]=f[R].value.trim()};
_.X.clearPollOptions=function(){var f=_.b(this.hostElement).querySelectorAll(".poll-option-input");f=_.Z(f);for(var R=f.next();!R.done;R=f.next())R.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.X.getSimpleString=function(f){return _.$Z(f)};
_.X.updateValueFromBinding=function(f){if(f.target&&this.pollOptions){var R=Array.from(_.b(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(f.target);if(R>=0){var u;this.pollOptions[R]=(u=f.detail.value)!=null?u:"";this.notifyPath("pollOptions."+R)}}};
OI.prototype.dataChanged=OI.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],OI.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Array)],OI.prototype,"pollOptions",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],OI.prototype,"hasMaxOptions",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],OI.prototype,"enableCreationBox",void 0);
_.B([_.a4("#repeat"),_.S("design:type",Lf)],OI.prototype,"repeat",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],OI.prototype,"dataChanged",null);OI=_.B([_.e({disableElementRegistration:!0,is:"ytd-poll-attachment"})],OI);
_.G(OI,"ytd-poll-attachment",function(){if(Msk!==void 0)return Msk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Msk=f},{mode:2});var PJF;var U0G;var e$f;var GVt;var cV=function(){return _.U.apply(this,arguments)||this};
_.y(cV,_.U);_.Vy.Object.defineProperties(cV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cV.prototype,"rendererBehaviors",void 0);_.B([_.I(),_.S("design:type",Object)],cV.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],cV.prototype,"focused",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("focused"),_.S("design:type",Object),_.S("design:paramtypes",[])],cV.prototype,"ariaSelected",null);cV=_.B([_.DO({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],cV);
_.G(cV,"yt-user-mention-suggestion-renderer",function(){if(GVt===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;e$f===void 0&&(e$f=document.createElement("template"));var O=e$f;u.call(R,O.content.cloneNode(!0),f.content.firstChild);GVt=f}f=GVt;return f},{mode:2});var BoC;var o9A;var Xc=function(){var f=_.U.apply(this,arguments)||this;f.focusedSuggestionIndex=-1;return f};
_.y(Xc,_.U);_.X=Xc.prototype;_.X.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.X.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.X.setFocusedSuggestionIndex=function(f){!this.data||!this.data.suggestions||f<0||f>=this.data.suggestions.length||(this.focusedSuggestionIndex=f,f=this.getSuggestionId(f),this._setFocusedSuggestionId(f))};
_.X.advanceSuggestion=function(f){this.focusedSuggestionIndex===-1||f!==-1&&f!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+f),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.X.ensureSuggestionVisible=function(f){f=this.getSuggestionId(f);f=_.b(this.hostElement).querySelector("[id="+f+"]");f!=null&&(f.offsetTop<this.hostElement.scrollTop?f.scrollIntoView(!0):f.offsetTop+f.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&f.scrollIntoView(!1))};
_.X.getSuggestionId=function(f){return"user-mention-suggestion-"+f};
_.X.onSuggestionTap=function(f){var R=_.t(f.model.item,djH);this.ytRendererBehavior.logExplicitClick(R);_.ul(this.hostElement,"yt-user-mention-suggestion-selected",{data:R,index:f.model.index})};
_.X.onSuggestionMouseMove=function(f){f.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(f.model.index)};
_.X.isSuggestionFocused=function(f,R){return f===R};
_.X.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.X.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("focused-suggestion-id-changed",this.focusedSuggestionId))};
Xc.prototype.focusedSuggestionIdChangedForBinding=Xc.prototype.focusedSuggestionIdChangedForBinding;Xc.prototype.onDomChange=Xc.prototype.onDomChange;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Xc.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Xc.prototype,"focusedSuggestionIndex",void 0);_.B([_.I({readOnly:!0}),_.S("design:type",String)],Xc.prototype,"focusedSuggestionId",void 0);
_.B([_.Kf("dom-change"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Xc.prototype,"onDomChange",null);_.B([_.qM("focusedSuggestionId"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xc.prototype,"focusedSuggestionIdChangedForBinding",null);Xc=_.B([_.DO({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Xc);
_.G(Xc,"yt-user-mention-suggestions-dropdown",function(){if(o9A===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;BoC===void 0&&(BoC=document.createElement("template"));var O=BoC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);o9A=f}f=o9A;return f},{mode:2});var hX=function(){var f=_.U.apply(this,arguments)||this;f.suggestionsResponse=null;f.activeMention=null;f.selectionChangeListener=f.onSelectionChange.bind(f);f.handlesEnabled=_.E("enable_handles_in_mention_suggest_posts");f.handlesInMentionSuggestionsEnabled=_.E("handles_in_mention_suggest_posts");f.zeroPrefixMentionSuggestionEnabled=_.E("enable_zero_prefix_mention_suggestion_web");f.pendingQuery=null;f.flowNonce=null;return f};
_.y(hX,_.U);_.X=hX.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.X.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.X.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.X.hasSuggestions=function(f){return!!(f&&f.suggestions&&f.suggestions.length>0)};
_.X.onInput=function(){var f=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var R=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),u=this.activeMention.JSC$9247_getText().slice(-1)===" ",O=this.activeMention.JSC$9247_getText().slice(-2,-1)===" ",c="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9247_getText().slice(-2,-1))>=
0;c=this.zeroPrefixMentionSuggestionEnabled&&c;if(this.activeMention.isCollapsed()||(R||O||c)&&u)this.cancelActiveMention();else{var h=this.activeMention.JSC$9247_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.UU(this,"requestSuggestions",function(){f.requestSuggestions(h)},100)}}}};
_.X.onServiceRequestSent=function(f){f.stopPropagation()};
_.X.onServiceRequestCompleted=function(f){f.stopPropagation();f=f.detail.data;f.query&&(!this.pendingQuery||this.pendingQuery!==f.query)||!this.zeroPrefixMentionSuggestionEnabled&&f.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=f,this.hasSuggestions(f)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.X.onServiceRequestError=function(f){f.stopPropagation()};
_.X.onUserMentionSuggestionSelected=function(f){this.selectSuggestion(f.detail.data,f.detail.index)};
_.X.onSelectionChange=function(){if(this.activeMention){var f=_.Qo(),R=this.activeMention.JSC$9247_containsRange(f);f=f&&this.containsHelper(this.dropdown,f.getContainer());R||f||this.cancelActiveMention()}};
_.X.containsHelper=function(f,R){var u;if(((u=window.ShadyDOM)==null?void 0:u.noPatch)===!0)return f.contains(R);for(;R;){if(R===f)return!0;R=R instanceof ShadowRoot?R.host:R.parentNode}return!1};
_.X.maybeStartSuggest=function(){var f=_.Qo();if(f&&f.isCollapsed()){var R=f.JSC$9247_getStartNode(),u=f.JSC$9247_getStartOffset();if(R instanceof Text&&!(u<1)){var O=R.textContent;!(O=O&&O.charAt(u-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(O)<0||(this.activeMention=_.zp(R,u-1,f.JSC$9247_getEndNode(),f.JSC$9247_getEndOffset()),this.flowNonce=jd(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.X.updateActiveMention=function(){if(this.activeMention){var f=_.Qo();f&&f.isCollapsed()&&(this.activeMention=_.zp(this.activeMention.JSC$9247_getStartNode(),this.activeMention.JSC$9247_getStartOffset(),f.JSC$9247_getEndNode(),f.JSC$9247_getEndOffset()))}};
_.X.requestSuggestions=function(f){if(this.activeMention){var R={suggestions_query:f};this.pendingQuery=f;_.hH(this.hostElement,[this.suggestionsEndpoint,R])}};
_.X.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()};
_.X.focusPreviousSuggestion=function(f){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),f.preventDefault())};
_.X.focusNextSuggestion=function(f){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),f.preventDefault())};
_.X.selectFocusedSuggestion=function(f){if(this.hasSuggestions(this.suggestionsResponse)){var R=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.t(R,djH)&&(this.selectSuggestion(_.t(R,djH),this.dropdown.focusedSuggestionIndex),f.preventDefault())}};
_.X.selectSuggestion=function(f,R){if(f){var u=this.activeMention;if(u){var O=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&f.handle?_.Dj(O,"\u00a0\u2068@"+f.handle+"\u2069\u00a0"):this.handlesEnabled?_.Dj(O,"\u00a0"+f.displayName+"\u00a0"):_.Dj(O,"\u00a0@"+f.displayName+"\u00a0");Lj(O,"/channel/"+f.channelId);O.classList.add("yt-formatted-string","yt-simple-endpoint");O.setAttribute("spellcheck","false");u.isCollapsed()||u.JSC$9247_removeContents();u.insertNode(O,!0);f=document.createTextNode(" ");
O.parentNode.insertBefore(f,O.nextSibling);window.getSelection().collapse(f,1);R={suggestionSelected:{suggestionIndex:R}};if(this.zeroPrefixMentionSuggestionEnabled){var c;R.suggestionSelected.isZeroPrefix=((c=this.suggestionsResponse)==null?void 0:c.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",R);this.cancelActiveMention();_.ul(this.hostElement,"yt-mention-inserted")}}};
_.X.getPositionTarget=function(f){return f&&f.getBrowserRangeObject()};
_.X.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.X.onFocusedSuggestionIdChanged=function(f){var R=_.d$P(this.hostElement)[0];R&&(f.detail.value?R.setAttribute("aria-activedescendant",f.detail.value):R.removeAttribute("aria-activedescendant"))};
_.X.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.X.logGELEvent=function(f,R){f={eventType:f,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};R&&(f=Object.assign(f,R));_.Jr("userMentionAutoCompleteBoxEvent",f)};
hX.prototype.onDomChange=hX.prototype.onDomChange;hX.prototype.onUserMentionSuggestionSelected=hX.prototype.onUserMentionSuggestionSelected;hX.prototype.onServiceRequestError=hX.prototype.onServiceRequestError;hX.prototype.onServiceRequestCompleted=hX.prototype.onServiceRequestCompleted;hX.prototype.onServiceRequestSent=hX.prototype.onServiceRequestSent;hX.prototype.onInput=hX.prototype.onInput;_.B([_.z(_.mJ),_.S("design:type",Object)],hX.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],hX.prototype,"suggestionsEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],hX.prototype,"suggestionsResponse",void 0);_.B([_.I(),_.S("design:type",Object)],hX.prototype,"activeMention",void 0);_.B([_.a4("#dropdown"),_.S("design:type",Object)],hX.prototype,"dropdown",void 0);_.B([_.a4("#iron-dropdown"),_.S("design:type",Object)],hX.prototype,"ironDropdown",void 0);
_.B([_.Kf("input"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],hX.prototype,"onInput",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hX.prototype,"onServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hX.prototype,"onServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hX.prototype,"onServiceRequestError",null);_.B([_.Kf("yt-user-mention-suggestion-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hX.prototype,"onUserMentionSuggestionSelected",null);
_.B([_.Kf("dom-change"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hX.prototype,"onDomChange",null);hX=_.B([_.DO({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],hX);
_.G(hX,"yt-user-mention-autosuggest-input",function(){if(U0G===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;PJF===void 0&&(PJF=document.createElement("template"));var O=PJF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);U0G=f}f=U0G;return f},{mode:2});var ZI=null;
_.NM({is:"ytd-commentbox",_template:function(){if(z$l!==void 0)return z$l;var f=document.createElement("template");_.N(f,'\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="yt-icons:arrow_drop_down" 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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return z$l=f},
behaviors:[_.Rtn.YtHostElementBehavior,_.mJ,_.fq.YtActionHandlerBehavior,_.M7.YtComponentBehavior,_.rj.YtRendererstamperBehavior,_.HHI.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(f,R){return _.kZ(f.entities,"aadcGuidelinesStateEntityPayload",R)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(f,R){return _.kZ(f.entities,"commentboxStateEntity",R)},
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 _.Hd}},
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:_.E("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.E("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",_.ks(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(f){this.fire(f?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(f){this.set("submitButtonDisabled",void 0);this.clear();f&&this.computeIsEmojiButtonDisplayed_(f)&&(f=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&f.updateEmojiCategories()},
observePrefilledImage_:function(f,R,u){this.isValidPrefilledImage_(f,R,u)&&(this.prefilledAttachment_="image",this.prefilledImageData_=R,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(f,R){this.isValidPrefilledVideo_(f,R)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(f){f&&f.pollData&&f.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(f.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Z$();this.focus()},
detached:function(){document.removeEventListener("tap",_.ks(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(f){f=f.detail;f=f.isCustomEmoji?f.shortcuts[0]:f.emojiId;var R=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(R,f);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var f=_.Qo();if(f){f=f.getBrowserRangeObject();for(var R=f.commonAncestorContainer;R;){if(R===this.getEditableTextArea_())return f;R=R.parentNode}}f=this.getEditableTextArea_();f=_.JO(f,f.childNodes.length);f.select();return f.getBrowserRangeObject()},
insertTextWithEmojis_:function(f,R,u){(R=this.emojiManager.createDocumentFragment(R,!0,!1,u===void 0?!0:u))&&R.childNodes.length!==0&&(f.collapsed||f.deleteContents(),u=R.lastChild,f.insertNode(R),_.lWC(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var f=_.Qo();if(f){var R=f.JSC$9247_getStartNode(),u=f.JSC$9247_getEndNode();if(ofP(R)&&ofP(u)){var O=f.JSC$9247_getStartOffset(),c;if(_.ZY&&R.nodeType===Node.ELEMENT_NODE&&(c=_.CBl(R)))_.JO(c,0).select();else{c=FZ(R)?R:_.Tx(R,FZ);var h=FZ(u)?u:_.Tx(u,FZ);if(c||h)if(f.isCollapsed()){if(R.nodeType===Node.TEXT_NODE){f=!0;O===R.length&&(f=!1);if(ZI==="end"||ZI==="right")f=!1;R=R.parentNode;f=[].concat(_.yq(R.parentNode.childNodes)).indexOf(R)+(f?0:1);_.JO(R.parentNode,f).select()}}else c?
c.previousSibling&&c.previousSibling.length>0?_.zp(u,f.JSC$9247_getEndOffset(),c.previousSibling,c.previousSibling.length-1).select():(R=document.createTextNode("\u200b"),c.parentNode.insertBefore(R,c),_.zp(u,f.JSC$9247_getEndOffset(),R,0).select()):h&&(h.nextSibling&&h.nextSibling.length>0?_.zp(R,f.JSC$9247_getStartOffset(),h.nextSibling,1).select():(u=document.createTextNode("\u200b"),h.parentNode.insertBefore(u,h.nextSibling),_.zp(R,f.JSC$9247_getStartOffset(),u,u.length).select()));ZI=null}}else ZI=
null}else ZI=null},
leftKeyPressed_:function(){ZI="left"},
rightKeyPressed_:function(){ZI="right"},
endKeyPressed_:function(){ZI="end"},
maybeDeleteChip_:function(){var f=nfB(!0);if(f){var R=_.Qo(),u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();_.LJ(u,R,f,f.childNodes.length).select()}},
maybeBackspaceChip_:function(){var f=nfB(!1);if(f){var R=_.Qo(),u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();_.LJ(u,R,f,0).select()}},
maybeBackspaceChipWordMode_:function(f){var R=_.Qo();if(R.isCollapsed()){var u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();var O=Vjh(u,R,!0);O&&(_.LJ(u,R,O,0).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(f){var R=_.Qo();if(R.isCollapsed()){var u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();var O=Vjh(u,R,!1);O&&(_.LJ(u,R,O,O.childNodes.length).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
onTap_:function(f){if(!f.defaultPrevented&&(f.currentTarget.tagName==="YTD-COMMENTBOX"&&FZ(f.target)&&f.preventDefault(),this.isEmojiPickerDisplayed)){var R=this.$$("#emojis"),u=this.$$("#emoji-button"),O=this.getEditableTextArea_();if((f=f.path?f.path:f.composedPath&&f.composedPath())&&!f.includes(R)&&!f.includes(O)&&!f.includes(u))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(f,R,u){return f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&R!==void 0&&R.encryptedBlobId!==null&&R.sourceExternalVideoId!==null&&u!==void 0&&u.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(f,R){return f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!R&&!!R.videoRenderer&&!!R.videoRenderer.videoId},
isValidPrefilledAttachment_:function(f,R,u){return this.isValidPrefilledImage_(f,R,u)||this.isValidPrefilledVideo_(f,u)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.E("enable_multi_image_post_creation")){var f=this.$$("ytd-backstage-multi-image-select-renderer");f&&f.hasImages()&&f.cancel()}else(f=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&f.cancel();(f=this.$["poll-attachment"])&&this.hasPoll_&&f.clearPollOptions();(f=this.$["image-poll-attachment"])&&this.hasImagePoll_&&f.resetPollOptions();(f=this.$["quiz-attachment"])&&this.hasQuiz_&&f.resetQuizOptions();
(f=this.$["video-link-attachment"])&&this.hasVideo_&&f.cancel();(f=this.$["access-restrictions-selector"].firstElementChild)&&f.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 _.b(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.b(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(f,R){f=Stl(f,this.emojiManager,R).cloneNode(!0);for(R=f.firstChild;R;)if(R.nodeType!==1)R=R.nextSibling;else switch(R.tagName){case "BR":var u=_.dB();_.DXC(u,R);R=u.nextSibling;break;case "DIV":(u=R.lastChild)&&R.nextSibling&&_.pp(_.dB(),u);R.previousSibling&&(R.previousSibling.nodeType===1||R.previousSibling.nodeType===3&&!R.previousSibling.textContent.endsWith("\n"))&&_.bw(_.dB(),R);u&&u.nodeName==="BR"&&_.Q1(u);u=R;R.hasChildNodes()?(R=R.firstChild,
_.Jnl(u)):(R=R.nextSibling,_.Q1(u));break;default:R=R.nextSibling}return Yt7(f)},
onAddImageError_:function(f){f.stopPropagation();this.errorMessage_=_.S8(f.detail)},
setTextAreaValue_:function(f){f||(f="");var R=this.getEditableFormattedString_();R.text="";this.getEditableTextArea_().innerText="";typeof f==="string"&&(f={runs:[{text:f}]});R.text=f},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ZI=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var f=this.getEditableTextArea_();f&&(_.JO(f,f.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Tf("HTML_DIR")==="rtl"){var f=this.getEditableTextArea_(),R=this.getTextAreaValue()!==""?"auto":"rtl";f.setAttribute("dir",R)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var f;return Zd7((f=this.$["quiz-attachment"])==null?void 0:f.getExplanationText())||Zd7(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var f=null;if(this.isEmojiButtonDisplayed){var R=this.getInputRange_();R&&(f=this.emojiInput.retrieveTextBeforeRange(R))}this.insertText_(f,!0);this.updateCharCount_();this.setSubmitButton_();f=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=f.scrollHeight>f.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var f=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:f})},
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(f){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(f)},
onPasteEmoji_:function(f){f.preventDefault();f.stopImmediatePropagation();f=f.clipboardData.getData("text/plain");this.insertText_(f,!1,!1)},
insertText_:function(f,R,u){R=R===void 0?!1:R;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&f){var O=this.getInputRange_().cloneRange();this.emojiManager&&O&&(R&&this.emojiInput.offsetStartOfRangeBy(O,f.length),this.insertTextWithEmojis_(O,f,u),xoP(this.getEditableTextArea_().lastChild)||(O=this.getInputRange_().cloneRange()),O&&(this.emojiInput.updateSuggestions(O,f),this.updateSuggestionOffset_(O)))}},
setSubmitButton_:function(){if(this.data){var f=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",R=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(f||R){var u=this.getTextAreaValue().trim();R=u===this.previousText_;u=!u||this.aboveCharLimit_;f&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(u=this.aboveCharLimit_);this.submitButtonDisabled=
R||u||!this.getTextLength();f&&_.E("enable_post_scheduling")&&(this.submitButtonDisabled=R&&!this.scheduledPublishTimeSec_||u)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.$Z,computeCreationBoxClass_:function(f){return f?"focused":"not-focused"},
computeFooterMessageClass_:function(f,R){return R?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(f,R){return R?R:f},
computeFooterMessageHidden_:function(f,R){return!R&&!f},
computePlaceholderText_:function(f,R,u){return(u==="video"||u==="image")&&(f==null?0:f.prefilledPlaceholderText)?f==null?void 0:f.prefilledPlaceholderText:R==="poll"||R==="image-poll"?f==null?void 0:f.pollPostPlaceholderText:R==="quiz"?f==null?void 0:f.quizPostPlaceholderText:R==="image"?f==null?void 0:f.imagePostPlaceholderText:f==null?void 0:f.placeholderText},
computeHideAttachmentButtons_:function(f,R,u,O){return f===void 0?!1:O&&this.getSimpleString(O)===this.getSimpleString(f.rateLimitErrorMessage)?!0:R!=="none"||u!=="none"||!f.videoLinkButton&&!f.pollButton&&!f.imagePollButton&&!f.quizButton&&!f.imageButton},
computeHideDismissableAttachment_:function(f){return f!=="image"&&f!=="video"},
computeHasVideo_:function(f){return f==="video"},
computeHasImage_:function(f){return f==="image"},
computeHasPoll_:function(f){return f==="poll"},
computeHasImagePoll_:function(f){return f==="image-poll"},
computeHasQuiz_:function(f){return f==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(f){return f&&f.backstageAttachment?f.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!f.backstageAttachment.quizRenderer&&!f.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(f){if(this.isValidPrefilledAttachment_(f.purpose,f.prefilledImageData,f.backstageAttachment))return f.backstageAttachment},
computeEditAttachment_:function(f){if(this.computePrefilledContent_(f)===void 0)return f.backstageAttachment},
computeAuthorThumbnailDimension_:function(f,R){return f&&!R?24:40},
computeImageUploadEndpoint_:function(f){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",f)},
computeRateLimitErrorCommands_:function(f){var R,u;return f==null?void 0:(R=f.advancedTierFeatures)==null?void 0:(u=R.rateLimit)==null?void 0:u.rateLimitCommands},
computeIsBackstageComment_:function(f){return!(!f||f!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(f){return this.get("submitButton.buttonRenderer.serviceEndpoint",f)||this.get("replyButton.buttonRenderer.serviceEndpoint",f)||this.get("postButton.buttonRenderer.serviceEndpoint",f)},
computeSubmitButtonOverride:function(){if(_.E("web_modern_buttons")){var f,R;return{segmentedPosition:this.dropdownSchedulePanel_||!((f=this.data)==null?0:(R=f.postOptionsMenu)==null?0:R.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.E("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(f,R){f=this.get("submitButton.buttonRenderer",f)||this.get("replyButton.buttonRenderer",f)||this.get("postButton.buttonRenderer",f);R&&(f=R);f&&(f=Object.assign({},f),f.serviceEndpoint=void 0,f.isDisabled=this.submitButtonDisabled);return f},
computeHasExternalLinksAccess_:function(f){if(_.E("enable_rfa_external_links")){var R,u,O;return(O=f==null?void 0:(R=f.advancedTierFeatures)==null?void 0:(u=R.externalLinks)==null?void 0:u.allowExternalLinks)!=null?O:!0}return!0},
computeIsEmojiButtonDisplayed_:function(f){return f.emojiButton&&f.emojiPicker&&f.emojiPicker.emojiPickerRenderer&&f.emojiPicker.emojiPickerRenderer.categories?f.emojiPicker.emojiPickerRenderer.categories.find(function(R){return R.emojiPickerCategoryRenderer?R.emojiPickerCategoryRenderer.emojiIds&&R.emojiPickerCategoryRenderer.emojiIds.length>0:R.emojiPickerUpsellCategoryRenderer?R.emojiPickerUpsellCategoryRenderer.emojis&&R.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(f){return f.charLimit?f.charLimit:null},
computeDropdownSchedulingPanel_:function(f,R){if(f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&R)return R},
computeInlineSchedulingPanel_:function(f,R){if(f==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&R)return R},
computeHideAuthorThumbnail_:function(f,R){return f||this.computeUseIdentityChip_(R)},
computeHideIdentityChipRenderer_:function(f,R){return f||!this.computeUseIdentityChip_(R)},
computeUseIdentityChip_:function(f){return!!f&&!!f.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(f){var R,u,O,c;(f==null?0:(R=f.detail)==null?0:(u=R.endpoint)==null?0:u.ypcGetOffersEndpoint)||(f==null?0:(O=f.detail)==null?0:(c=O.endpoint)==null?0:c.ypcOffersEndpoint)?(f.stopPropagation(),_.hH(this,[f.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",f)&&(f.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(f){this.addedAttachment="video";this.selectedVideoId_=f.detail.videoId},
commentboxStateEntityChanged_:function(f){var R=this;(f==null?void 0:f.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(f==null?void 0:f.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){R.focus()})},
onYtServiceRequestSent_:function(f,R){if(R.actions)for(f=_.Z(R.actions),R=f.next();!R.done;R=f.next())R.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(f){this.isLoading=!1;var R=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",f),u,O,c,h=f==null?void 0:(u=f.detail)==null?void 0:(O=u.data)==null?void 0:(c=O.actionResult)==null?void 0:c.commentboxStateEntityKey;if(R)this.errorMessage_=R;else if(h){var l;this.dismissData_=f==null?void 0:(l=f.detail)==null?void 0:l.data;this.commentboxStateKey_=h}else{this.clear();var K;this.fire("yt-commentbox-dismiss",f==null?void 0:(K=f.detail)==
null?void 0:K.data)}},
onYtServiceRequestError_:function(f){f.stopPropagation();this.isLoading=!1;var R,u;if(((R=this.data)==null?void 0:R.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((u=this.data)==null?void 0:u.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(R=this.get("detail.error.args",f)||[],R.length>1&&R[1].message){this.handlePostsServiceRequestError_(R[1].message);return}(f=this.get("detail.error.message",f))?this.errorMessage_=this.data.errorMessage||_.S8(f):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(f){if(_.E("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var R=_.Z(this.rateLimitErrorCommands),u=R.next();!u.done;u=R.next())if(u=u.value,u.errorLabel===f){_.qO(u.command,this.hostElement);return}this.errorMessage_=_.S8(f)},
submitIfNotBackstagePost_:function(f){if(!this.isBackstagePost)this.onSubmit_(f)},
onSubmit_:function(f){var R=this,u,O,c,h,l,K,q,F,w,m,W,C,d,p,J;return _.k(function(M){switch(M.nextAddress){case 1:f.stopPropagation();if(!R.serviceEndpoint||!R.isValidInput_())return M.return();if(R.shouldShowPostAadcNotice_())return R.showPostAadcNotice_(),M.return();if(R.shouldShowCommentAadcNotice_())return R.showCommentAadcNotice_(),M.return();if(!(R.$$("ytd-backstage-multi-image-select-renderer")&&R.hasImage_&&_.E("enable_multi_image_post_creation"))){M.jumpTo(2);break}u=R.$$("ytd-backstage-multi-image-select-renderer");
return _.A(M,u.getAllUploadStatuses(),3);case 3:O=M.yieldResult;if(!O)return M.return();c=_.Z(O);for(h=c.next();!h.done;h=c.next())if(l=h.value,l.encryptedBlobId===void 0)return R.isLoading=!1,q=K=void 0,R.errorMessage_=(q=(K=R.imageUploadEndpoint_)==null?void 0:K.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?q:null,M.return();return M.return(R.submitForm_(void 0,void 0,void 0,void 0,u.images,R.taggedVideoId_));case 2:if(!R.hasImagePoll_||!R.$["image-poll-attachment"]){M.jumpTo(4);
break}return _.A(M,R.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:F=M.yieldResult;if(!F)return M.return();w=_.Z(F);for(m=w.next();!m.done;m=w.next())if(W=m.value,!W.encryptedBlobId)return R.isLoading=!1,C=void 0,R.errorMessage_=(C=R.data.errorMessage)!=null?C:null,M.return();case 4:p=(d=R.$$("ytd-backstage-image-select-renderer"))&&d.uploadPromise(),J=R.getSharedPostId_(),p?p.then(function(){R.submitForm_.apply(R,_.yq(_.yK.apply(0,arguments)))}).catch(function(P){R.isLoading=!1;
R.errorMessage_=_.S8(P.message)}):R.selectedVideoId_?R.submitForm_(void 0,R.selectedVideoId_):R.prefilledAttachment_==="image"?R.submitForm_(R.prefilledImageData_.encryptedBlobId,void 0,void 0,R.prefilledImageData_.sourceExternalVideoId,void 0,R.taggedVideoId_):R.prefilledAttachment_==="video"?R.submitForm_(void 0,R.data.backstageAttachment.videoRenderer.videoId):J?R.submitForm_(void 0,void 0,J):R.taggedVideoId_!==void 0?R.submitForm_(void 0,void 0,void 0,void 0,void 0,R.taggedVideoId_):R.submitForm_(),
_.KG(M)}})},
openSchedulingPanel:function(f){f&&f.scheduleButton&&f.scheduleButton.buttonRenderer&&(this.scheduleButton_=f.scheduleButton.buttonRenderer);f&&f.dateTimePicker&&this.set("data.schedulingDateTimePicker",f.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(f){f.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(f){f.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(f){f.stopPropagation();f.detail.alertMessage&&(this.alertMessage_=f.detail.alertMessage)},
onImageSelected_:function(f){f.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(f){f.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(f){f.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(f.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(f){f.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(f){var R=this.$["video-link-attachment"];R&&R.onLaunchVideoPicker(f)},
onAttachmentDismiss_:function(f){f.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"&&_.E("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.E("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 f;if(this.addedAttachment==="image-poll"&&((f=this.$["image-poll-attachment"])==null||!f.isValid()))return!1;var R;if(this.addedAttachment==="quiz"&&((R=this.$["quiz-attachment"])==null||!R.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;f=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(f=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")f=!0;return f||!!this.getTextAreaValue().trim()},
submitForm_:function(f,R,u,O,c,h){var l=this.getTextAreaValue().trim(),K={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&l===this.previousText_&&(l=void 0);l!==void 0&&(K.comment_text=l);this.isLoading=!0;h!=void 0&&(K.tagged_video_id=h);f?(K.image_blob_id=f,this.imagePreviewCoordinates_&&(K.image_preview_coordinates=this.imagePreviewCoordinates_)):R?K.attached_video_id=R:u?K.shared_post_id=u:c&&c.length>0&&(K.images_data=c.map(function(q){return{encryptedBlobId:q.encryptedBlobId,
previewCoordinates:q.previewCoordinates}}));
O&&(K.source_video_id=O);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(K.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(K.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(K.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.E("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(K.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.E("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(K.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.hH(this,[this.serviceEndpoint,K])},
onIsInputFocusChanged_:function(f,R){f?this.fire("yt-autonav-pause-focus"):R!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(f){var R=this.getEditableTextArea_();[].concat(_.yq(f.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(O){R.appendChild(document.createTextNode(O))})});
f.preventDefault()},
preventDefault_:function(f){f.preventDefault()},
onSuggestionInsert_:function(f){this.insertTextWithEmojis_(f.detail.range,f.detail.text)},
onEmojiSuggestionClick_:function(f){this.emojiInput.insertSuggestion(f.detail)},
computeSubmitButtonClass_:function(f,R){return!R||f?"":"with-options"},
updateSuggestionOffset_:function(f){if(this.emojiInput&&_.b(this.emojiInput).querySelector("#dropdown")){var R=this.getEditableTextArea_().getBoundingClientRect().bottom,u=f.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(R-u)+5;R=this.getEditableTextArea_().getBoundingClientRect().left;f=f.getBoundingClientRect().left-R;_.b(this.emojiInput).querySelector("#dropdown").style.marginLeft=f+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(f){if(_.E("enable_post_scheduling")&&this.data&&this.data.purpose){f=f.detail;if(Math.floor(Date.now()/1E3)>=f)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var R=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(R)||R!==f?this.scheduledPublishTimeSec_=f:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=f;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var f=["image-button","image-poll-button","poll-button"];_.E("enable_quiz_creation")&&f.push("quiz-button");_.E("auto_convert_posts_video_tag")||f.push("video-link-button");return f},
getButtonRenderer:function(f,R){if(f)switch(R){case "video-link-button":var u;return((u=f.videoLinkButton)==null?void 0:u.buttonRenderer)||void 0;case "image-button":var O;return((O=f.imageButton)==null?void 0:O.buttonRenderer)||void 0;case "poll-button":var c;return((c=f.pollButton)==null?void 0:c.buttonRenderer)||void 0;case "image-poll-button":var h;return((h=f.imagePollButton)==null?void 0:h.buttonRenderer)||void 0;case "quiz-button":var l;return((l=f.quizButton)==null?void 0:l.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var f;return(f=this.data)==null||!f.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var f,R;return!((f=this.data)==null||!f.openAadcDialog)&&!((R=this.aadcGuidelinesState_)==null||!R.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Tf("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var f;((f=this.data)==null?0:f.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Mx("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(f){f.clickTrackingParams&&_.wR().clickCommand(f);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.OJ(this,"yt-close-popup-action")},
onHideIdentityChip:function(f){var R;this.set("data.placeholderText",(R=f.hideIdentityChipAction)==null?void 0:R.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var lN=function(){var f=_.U.apply(this,arguments)||this;f.isOpen=!1;f.modern=_.E("web_modern_buttons");f.roundedContainer=!0;f.dropdownButtonOverride=_.E("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;f.inPopupContainer=!1;f.isCommentboxLoading=!1;var R=["image-button","image-poll-button","poll-button"];_.E("enable_quiz_creation")&&R.push("quiz-button");_.E("auto_convert_posts_video_tag")||R.push("video-link-button");f.attachmentButtonIds=R;f.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 f};
_.y(lN,_.U);_.X=lN.prototype;_.X.computeButtonOverride=function(){var f;return((f=this.data)==null?0:f.postOptionsMenu)&&_.E("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.X.configureRendererStamper=function(){var f={"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:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.E("auto_convert_posts_video_tag")||(f["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return f};
_.X.ready=function(){var f=this,R=_.b(this.hostElement).querySelector("#placeholder-area"),u=function(O){f.onOpen(O)};
R.addEventListener("tap",u);R.addEventListener("keypress",u)};
_.X.showButtonEduTooltip=function(){var f,R,u,O,c,h,l;if(_.E("enable_quiz_creation")&&((f=this.data)==null?0:(R=f.quizButton)==null?0:(u=R.buttonRenderer)==null?0:(O=u.hint)==null?0:(c=O.hintRenderer)==null?0:(h=c.content)==null?0:(l=h.bubbleHintRenderer)==null?0:l.text)&&(_.Vp.getInstance(),f=Ya(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(f==null?void 0:
f.length)>0)){this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.quizButton}});return}var K;if((K=this.data)==null?0:K.imagePollButtonTooltip)if(_.Vp.getInstance(),K=Ya(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(K==null?void 0:K.length)>0){this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.imagePollButton}});return}var q;_.E("enable_multi_image_post_creation")&&
((q=this.data)==null?0:q.multiImageButtonTooltip)&&(_.Vp.getInstance(),q=Ya(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(q==null?void 0:q.length)>0&&this.ytComponentBehavior.resolveCommand(q[0],{form:{element:this.imageButton}}))};
_.X.onCreatePollAction=function(f){_.t(f,ISC)&&(this.JSC$13679_commentbox.addedAttachment="poll",this.openDialog())};
_.X.onAddVideoLinkAction=function(f){if(_.t(f,HSk))this.JSC$13679_commentbox.onAddVideoLink(f)};
_.X.onShowSchedulingPanelCommand=function(f){(f=_.t(f,kaf))&&this.openSchedulingPanel(f)};
_.X.onCreateImagePollCommand=function(f){_.t(f,m_f)&&(this.JSC$13679_commentbox.openImagePollComponent(),this.openDialog())};
_.X.onCreateQuizCommand=function(f){_.t(f,Qzk)&&(this.JSC$13679_commentbox.openQuizComponent(),this.openDialog())};
_.X.openSchedulingPanel=function(f){_.E("enable_post_scheduling")&&(this.openDialog(),this.JSC$13679_commentbox.openSchedulingPanel(f))};
_.X.onCreateCommentAction=function(f){this.get("createCommentAction.contents",f)&&(this.JSC$13679_commentbox.clear(),this.closeDialog())};
_.X.onOpen=function(f){f instanceof KeyboardEvent&&f.type==="keypress"&&f.keyCode!==13&&f.keyCode!==32||(this.data.prepareAccountEndpoint?_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.X.onYtCommentboxDismiss=function(){this.closeDialog()};
_.X.onYtCommentboxLoadingStart=function(f){f.stopPropagation();this.isCommentboxLoading=!0};
_.X.onYtCommentboxLoadingEnd=function(f){f.stopPropagation();this.isCommentboxLoading=!1};
_.X.onYtVideoLinkButtonCancel=function(f){f.stopPropagation();this.onOpen(f)};
_.X.onYtVideoLinkSelected=function(f){f.stopPropagation();this.onOpen(f)};
_.X.onIronSelect=function(f){f.stopPropagation();f.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=f.detail.item.value&&(this.accessRestriction?(this.accessRestriction=f.detail.item.value,this.onOpen(f)):this.accessRestriction=f.detail.item.value)};
_.X.onYtNavigate=function(f){this.get("detail.endpoint.backstageImageUploadEndpoint",f)&&(this.JSC$13679_commentbox.addedAttachment="image",this.JSC$13679_commentbox.submitButtonDisabled=!0,this.onOpen(f))};
_.X.onRequestSent=function(f){if(_.E("web_button_rework"))for(var R=_.Z(f.detail),u=R.next();!u.done;u=R.next())_.t(u.value,jnH)&&(this.JSC$13679_commentbox.addedAttachment="image",this.JSC$13679_commentbox.submitButtonDisabled=!0,this.onOpen(f))};
_.X.openDialog=function(){this.JSC$13679_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13679_commentbox.focus()};
_.X.onPopupClosed=function(){_.Vp.getInstance()};
_.X.computeCreationDisabled=function(f){return!!f};
_.X.computeIsCreationDialog=function(f){return!!f&&f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.X.computeDisabledPostButton=function(f){if(!f)return null;f.isDisabled=!0;return f};
_.X.computeIsCreationDialogWithHeader=function(f){return!this.inPopupContainer&&!!f&&!!f.authorText&&f.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.X.computeIsHeaderHidden=function(f,R){return!f||R};
_.X.computeDropdownRendererClasses=function(f){return f?["text-secondary-style"]:[]};
_.X.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var f=_.b(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;f&&f.reset()};
lN.prototype.onPopupClosed=lN.prototype.onPopupClosed;lN.prototype.onRequestSent=lN.prototype.onRequestSent;lN.prototype.onYtNavigate=lN.prototype.onYtNavigate;lN.prototype.onIronSelect=lN.prototype.onIronSelect;lN.prototype.onYtVideoLinkSelected=lN.prototype.onYtVideoLinkSelected;lN.prototype.onYtVideoLinkButtonCancel=lN.prototype.onYtVideoLinkButtonCancel;lN.prototype.onYtCommentboxLoadingEnd=lN.prototype.onYtCommentboxLoadingEnd;lN.prototype.onYtCommentboxLoadingStart=lN.prototype.onYtCommentboxLoadingStart;
lN.prototype.onYtCommentboxDismiss=lN.prototype.onYtCommentboxDismiss;lN.prototype.showButtonEduTooltip=lN.prototype.showButtonEduTooltip;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],lN.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],lN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lN.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lN.prototype,"isOpen",void 0);_.B([_.I({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],lN.prototype,"buttonOverride",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lN.prototype,"modern",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lN.prototype,"roundedContainer",void 0);_.B([_.I(),_.S("design:type",Object)],lN.prototype,"dropdownButtonOverride",void 0);_.B([_.I({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.S("design:type",Boolean)],lN.prototype,"creationDisabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],lN.prototype,"enableCreationBox",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.S("design:type",Boolean)],lN.prototype,"isCreationDialog",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lN.prototype,"inPopupContainer",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.S("design:type",Boolean)],lN.prototype,"isCreationDialogWithHeader",void 0);_.B([_.I(),_.S("design:type",Object)],lN.prototype,"accessRestriction",void 0);
_.B([_.I({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.S("design:type",Array)],lN.prototype,"dropdownRendererClasses",void 0);_.B([_.I(),_.S("design:type",Object)],lN.prototype,"isCommentboxLoading",void 0);_.B([_.I(),_.S("design:type",Array)],lN.prototype,"attachmentButtonIds",void 0);_.B([_.a4("#image-button"),_.S("design:type",HTMLElement)],lN.prototype,"imageButton",void 0);
_.B([_.a4("#image-poll-button"),_.S("design:type",HTMLElement)],lN.prototype,"imagePollButton",void 0);_.B([_.a4("#quiz-button"),_.S("design:type",HTMLElement)],lN.prototype,"quizButton",void 0);_.B([_.a4("#commentbox"),_.S("design:type",Object)],lN.prototype,"JSC$13679_commentbox",void 0);_.B([_.qM("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lN.prototype,"showButtonEduTooltip",null);
_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onYtCommentboxDismiss",null);_.B([_.Kf("yt-commentbox-loading-start"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onYtCommentboxLoadingStart",null);
_.B([_.Kf("yt-commentbox-loading-end"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onYtCommentboxLoadingEnd",null);_.B([_.Kf("yt-video-link-button-cancel"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onYtVideoLinkButtonCancel",null);
_.B([_.Kf("yt-video-link-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onYtVideoLinkSelected",null);_.B([_.Kf("iron-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onIronSelect",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lN.prototype,"onRequestSent",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lN.prototype,"onPopupClosed",null);lN=_.B([_.e({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],lN);
_.G(lN,"ytd-backstage-post-dialog-renderer",function(){if(K7t!==void 0)return K7t;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return K7t=f},{mode:1});var x0k;var S5C;var kb=function(){return _.U.apply(this,arguments)||this};
_.y(kb,_.U);_.X=kb.prototype;_.X.computeHeartButtonStyle=function(f){return(f==null?0:f.styleType)?f.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.X.onYtButtonTap=function(){if(this.data.isEnabled){var f=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(f=this.getEndpoint(f))&&_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})}else(f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(f)};
_.X.toggle=function(f){this.set("data.isHearted",f!==void 0?f:!this.data.isHearted)};
_.X.getEndpoint=function(f){var R,u=(R=this.data)==null?void 0:R.heartEndpoint,O;R=(O=this.data)==null?void 0:O.unheartEndpoint;if(u&&R)return f?R:u};
_.X.computeButtonAccessibility=function(f,R){var u,O,c=f==null?void 0:(u=f.heartedAccessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label,h,l;f=f==null?void 0:(h=f.unheartedAccessibility)==null?void 0:(l=h.accessibilityData)==null?void 0:l.label;return R?c:f};
_.Vy.Object.defineProperties(kb.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 f;return _.E("kevlar_system_icons")&&!((f=this.data)==null||!f.isHearted)}}});
kb.prototype.onYtButtonTap=kb.prototype.onYtButtonTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],kb.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kb.prototype,"data",void 0);_.B([_.T("data.isHearted"),_.S("design:type",Object),_.S("design:paramtypes",[])],kb.prototype,"heartTooltip",null);
_.B([_.T("data.isHearted"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],kb.prototype,"iconFilled",null);_.B([_.I({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.S("design:type",String)],kb.prototype,"buttonAccessibility",void 0);_.B([_.I({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],kb.prototype,"heartButtonStyle",void 0);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kb.prototype,"onYtButtonTap",null);kb=_.B([_.e({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],kb);
_.G(kb,"ytd-creator-heart-renderer",function(){if(S5C!==void 0)return S5C;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return S5C=f},{mode:1});var KF=function(){var f=_.U.apply(this,arguments)||this;f.hasCreatorReply=!1;f.buttonOverrides={size:"S",iconPosition:"icon-only"};f.replyButtonOverrides={size:"S",type:"text"};f.forceIconButton=!_.E("web_modern_buttons");f.modern=_.E("web_modern_buttons");f.buttonTooltipPosition="bottom";f.systemIcons=_.E("kevlar_system_icons");f.replyDialog=null;return f};
_.y(KF,_.U);_.X=KF.prototype;
_.X.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]]"}}}}}};
_.X.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.X.dataChange=function(){this.replyDialog&&_.b(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var f,R,u;this.isLiked=this.systemIcons&&!!((f=this.data)==null?0:(R=f.likeButton)==null?0:(u=R.toggleButtonRenderer)==null?0:u.isToggled)};
_.X.computeShowVoteCountBeginning=function(f,R){return f===void 0||R===void 0?!0:f.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!R&&this.ytRendererBehavior.getSimpleString(R)!=="0"};
_.X.computeShowVoteCountEnd=function(f,R){return f===void 0||R===void 0?!0:f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!R&&this.ytRendererBehavior.getSimpleString(R)!=="0"};
_.X.computeShowCommentCount=function(f,R){return f===void 0||R===void 0?!0:f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!R&&this.ytRendererBehavior.getSimpleString(R)!=="0"};
_.X.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.X.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.X.showReplyDialog=function(f){f&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.b(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=f,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.X.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.X.onRequestSent=function(f){if(_.E("web_button_rework")){f=_.Z(f.detail);for(var R=f.next();!R.done;R=f.next())(R=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",R.value))&&this.showReplyDialog(R)}};
_.X.onYtNavigate=function(f){var R,u;(f=(R=_.t(f.detail.endpoint,_.J_C))==null?void 0:(u=R.dialog)==null?void 0:u.commentReplyDialogRenderer)&&this.showReplyDialog(f)};
_.X.onYtServiceRequestSent=function(f,R){f.stopPropagation();if(R.actions)for(f=0;f<R.actions.length;f++){var u=_.t(R.actions[f],USi);u&&this.handleUpdateCommentVoteAction(u)}};
_.X.handleUpdateCommentVoteAction=function(f){this.voteCount=f.voteCount||_.S8("0");f.voteStatus==="LIKE"?this.JSC$13690_ytdDislikeToggleButtonRenderer.toggle(!1):f.voteStatus==="DISLIKE"?this.JSC$13690_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13690_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13690_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.X.computeReplyButtonHidden=function(f){return f};
_.X.computeReplyButtonBeginning=function(f){return(f==null?0:f.replyButton)&&f.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?f.replyButton:void 0};
_.X.computeReplyButtonEnd=function(f){return(f==null?0:f.replyButton)&&f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?f.replyButton:void 0};
_.X.computeActionButtonStyle=function(f){return(f==null?0:f.style)?f.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.X.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.X.onYtToggleButton=function(f){var R,u;this.isLiked=this.systemIcons&&!!((R=f.detail)==null?0:(u=R.actions)==null?0:u.like)};
KF.prototype.onYtToggleButton=KF.prototype.onYtToggleButton;KF.prototype.onButtonTooltipPositionChanged=KF.prototype.onButtonTooltipPositionChanged;KF.prototype.onYtServiceRequestSent=KF.prototype.onYtServiceRequestSent;KF.prototype.onYtNavigate=KF.prototype.onYtNavigate;KF.prototype.onRequestSent=KF.prototype.onRequestSent;KF.prototype.onYtCommentboxDismiss=KF.prototype.onYtCommentboxDismiss;KF.prototype.dataChange=KF.prototype.dataChange;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"voteCount",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"commentCount",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"replyThumbnail",void 0);
_.B([_.I(),_.S("design:type",Object)],KF.prototype,"hasCreatorReply",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KF.prototype,"enableCreationBox",void 0);_.B([_.I({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],KF.prototype,"actionButtonsStyle",void 0);_.B([_.I({computed:"computeReplyButtonBeginning(data)"}),_.S("design:type",Object)],KF.prototype,"replyButtonBeginning",void 0);
_.B([_.I({computed:"computeReplyButtonEnd(data)"}),_.S("design:type",Object)],KF.prototype,"replyButtonEnd",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"buttonOverrides",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"replyButtonOverrides",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"forceIconButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KF.prototype,"useCommentIcon",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KF.prototype,"modern",void 0);_.B([_.I(),_.S("design:type",Object)],KF.prototype,"buttonTooltipPosition",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KF.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KF.prototype,"isLiked",void 0);_.B([_.a4("ytd-button-renderer"),_.S("design:type",Object)],KF.prototype,"ytdReplyButtonRenderer",void 0);
_.B([_.a4("#like-button"),_.S("design:type",Object)],KF.prototype,"JSC$13690_ytdLikeToggleButtonRenderer",void 0);_.B([_.a4("#dislike-button"),_.S("design:type",Object)],KF.prototype,"JSC$13690_ytdDislikeToggleButtonRenderer",void 0);_.B([_.a4("#reply-dialog"),_.S("design:type",HTMLElement)],KF.prototype,"replyDialogElement",void 0);_.B([_.a4("#reply-button"),_.S("design:type",HTMLElement)],KF.prototype,"replyButtonElement",void 0);
_.B([_.a4("#reply-button-end"),_.S("design:type",HTMLElement)],KF.prototype,"replyButtonEndElement",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KF.prototype,"dataChange",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],KF.prototype,"onYtCommentboxDismiss",null);
_.B([_.Kf("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],KF.prototype,"onRequestSent",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],KF.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],KF.prototype,"onYtServiceRequestSent",null);_.B([_.qM("buttonTooltipPosition"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KF.prototype,"onButtonTooltipPositionChanged",null);
_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],KF.prototype,"onYtToggleButton",null);KF=_.B([_.e({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],KF);
_.G(KF,"ytd-comment-action-buttons-renderer",function(){if(x0k!==void 0)return x0k;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return x0k=f},{mode:1});var $0I;var qY=function(){return _.U.apply(this,arguments)||this};
_.y(qY,_.U);qY.prototype.focus=function(){_.b(this.hostElement).querySelector("#commentbox").focus()};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qY.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],qY.prototype,"zeroStepChannelCreationRenderer",void 0);qY=_.B([_.e({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],qY);
_.G(qY,"ytd-comment-dialog-renderer",function(){if($0I!==void 0)return $0I;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $0I=f},{mode:1});var g9f;var AX=function(){var f=_.U.apply(this,arguments)||this;f.buttonOverrides={size:"S",iconPosition:"icon-only"};f.replyButtonOverrides={size:"S",type:"text"};return f};
_.y(AX,_.U);_.X=AX.prototype;_.X.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.X.detached=function(){this.replyBox&&this.replyBox.remove()};
_.X.showReplyDialog=function(f){if(f){var R=this.replyBox;R||(R=document.createElement("ytd-comment-reply-dialog-renderer"),R.id="replybox",_.b(this.replyDialogDiv).appendChild(R));R.data=f;this.replyDialogDiv.hidden=!1;R.openDialog()}};
_.X.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.X.onYtServiceRequestSent=function(f,R){f.stopPropagation();if(R.actions)for(var u=0;u<R.actions.length;u++){var O=_.t(R.actions[u],USi);O?this.handleUpdateCommentVoteAction(O):f.target===this.heartButton&&this.toggleHeartState()}};
_.X.handleUpdateCommentVoteAction=function(f){var R;(R=this.toolbarState)!=null&&R.key&&this.ytdReduxBehavior.dispatch(_.bA("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:f.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":f.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.X.toggleHeartState=function(){var f;(f=this.toolbarState)!=null&&f.key&&this.ytdReduxBehavior.dispatch(_.bA("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Vy.Object.defineProperties(AX.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return(((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(R=this.toolbarData)==null?void 0:R.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 f;return((f=this.toolbarSurface)==null?void 0:f.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand)!==void 0&&!_.E("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R=_.t((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand,_.TW),u,O,c,h,l,K,q,F,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((O=this.toolbarState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:R!=null?R:_.t((c=this.toolbarSurface)==null?void 0:c.likeCommand,_.TW),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:R!=null?R:_.t((h=this.toolbarSurface)==null?void 0:h.unlikeCommand,_.TW),defaultCommand:this.isVisiblyDisabled?_.t((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.TW):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.likeInactiveTooltip,toggledTooltip:(q=this.toolbarData)==null?void 0:q.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(F=this.toolbarData)==null?void 0:F.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R=_.t((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand,_.TW),u,O,c,h,l,K,q,F,w,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((O=this.toolbarState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:R!=null?R:_.t((c=this.toolbarSurface)==null?void 0:c.dislikeCommand,_.TW),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:R!=null?R:_.t((h=this.toolbarSurface)==null?void 0:h.undislikeCommand,_.TW),defaultCommand:this.isVisiblyDisabled?_.t((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.TW):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.dislikeInactiveTooltip,toggledTooltip:(q=this.toolbarData)==null?void 0:
q.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(F=this.toolbarSharedData)==null?void 0:F.dislikeReplyButtonA11y:(w=this.toolbarSharedData)==null?void 0:w.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R,u;if(((f=this.toolbarState)==null?void 0:f.heartState)!==void 0&&((R=this.toolbarState)==null?void 0:R.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((u=this.toolbarState)==null?void 0:u.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var O,c,h,l,K,q,F,w,m,W,C,d,p,J;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(O=this.toolbarData)==null?void 0:O.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((l=this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.t((q=this.toolbarSurface)==null?void 0:q.heartCommand,
_.TW),unheartEndpoint:this.isVisiblyDisabled?void 0:_.t((F=this.toolbarSurface)==null?void 0:F.unheartCommand,_.TW),disabledEndpoint:this.isVisiblyDisabled?_.t((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.TW):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(m=this.toolbarData)==null?void 0:m.heartActiveTooltip,unheartedTooltip:(W=this.toolbarData)==null?void 0:W.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((C=
this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(d=this.toolbarSharedData)==null?void 0:d.unheartButtonA11y:(p=this.toolbarSharedData)==null?void 0:p.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.toolbarSurface)==null||!f.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(f=this.commentStrings)==null?void 0:f.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.t((R=this.toolbarSurface)==null?void 0:R.replyCommand,_.TW),command:this.isVisiblyDisabled?_.t((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,
_.TW):this.isSubscribersOnlyComments?_.t((O=this.toolbarSurface)==null?void 0:O.subscribersOnlySnackbarCommand,_.TW):void 0}}}});
AX.prototype.onYtServiceRequestSent=AX.prototype.onYtServiceRequestSent;AX.prototype.hideReplyDialogDiv=AX.prototype.hideReplyDialogDiv;_.B([_.I(),_.S("design:type",Object)],AX.prototype,"commentStrings",void 0);_.B([_.I(),_.S("design:type",Boolean)],AX.prototype,"isReply",void 0);_.B([_.I(),_.S("design:type",Object)],AX.prototype,"toolbarData",void 0);_.B([_.I(),_.S("design:type",Object)],AX.prototype,"toolbarSharedData",void 0);
_.B([_.I(),_.S("design:type",String)],AX.prototype,"toolbarStateKey",void 0);_.B([_.I(),_.S("design:type",String)],AX.prototype,"toolbarSurfaceKey",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],AX.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],AX.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.a4("#reply-dialog"),_.S("design:type",HTMLElement)],AX.prototype,"replyDialogDiv",void 0);_.B([_.a4("#replybox"),_.S("design:type",Object)],AX.prototype,"replyBox",void 0);_.B([_.a4("ytd-creator-heart-renderer"),_.S("design:type",Object)],AX.prototype,"heartButton",void 0);_.B([_.I({selector:function(f,R){return _.kZ(f.entities,"engagementToolbarStateEntityPayload",R)},
selectorArgs:["toolbarStateKey"]}),_.S("design:type",Object)],AX.prototype,"toolbarState",void 0);_.B([_.I({selector:NE7,selectorArgs:["toolbarSurfaceKey"]}),_.S("design:type",Object)],AX.prototype,"toolbarSurface",void 0);_.B([_.I(),_.S("design:type",Object)],AX.prototype,"buttonOverrides",void 0);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AX.prototype,"hideReplyDialogDiv",null);
_.B([_.T("toolbarData","toolbarState"),_.S("design:type",String),_.S("design:paramtypes",[])],AX.prototype,"likeCount",null);_.B([_.T("likeCount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],AX.prototype,"showLikeCount",null);_.B([_.T("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],AX.prototype,"isVisiblyDisabled",null);_.B([_.T("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],AX.prototype,"isSubscribersOnlyComments",null);
_.B([_.T("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],AX.prototype,"hasPrepareAccountCommand",null);_.B([_.T("toolbarData","toolbarState","toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],AX.prototype,"likeToggleButtonRenderer",null);_.B([_.T("isReply","toolbarData","toolbarState","toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],AX.prototype,"dislikeToggleButtonRenderer",null);
_.B([_.T("toolbarData","toolbarState","toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],AX.prototype,"creatorHeartSupportedRenderer",null);_.B([_.T("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],AX.prototype,"hasReplyCommand",null);_.B([_.T("toolbarSurface","commentStrings","isVisiblyDisabled"),_.S("design:type",Object),_.S("design:paramtypes",[])],AX.prototype,"replyButtonRenderer",null);
_.B([_.I(),_.S("design:type",Object)],AX.prototype,"replyButtonOverrides",void 0);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],AX.prototype,"onYtServiceRequestSent",null);AX=_.B([_.e({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],AX);
_.G(AX,"ytd-comment-engagement-bar",function(){if(g9f!==void 0)return g9f;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return g9f=f},{mode:1});var slC;var ao=function(){return _.U.apply(this,arguments)||this};
_.y(ao,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ao.prototype,"data",void 0);ao=_.B([_.e({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],ao);
_.G(ao,"ytd-comment-inline-thumbnail-renderer",function(){if(slC!==void 0)return slC;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return slC=f},{mode:1});var n9E;var Fc=function(){return _.U.apply(this,arguments)||this};
_.y(Fc,_.U);_.B([_.I(),_.S("design:type",Object)],Fc.prototype,"data",void 0);Fc=_.B([_.e({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Fc);
_.G(Fc,"ytd-comment-pause-composer-renderer",function(){if(n9E!==void 0)return n9E;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return n9E=f},{mode:1});var Vsk;var Y5G;var wy=function(){var f=_.U.apply(this,arguments)||this;f.isOpen=!1;return f};
_.y(wy,_.U);_.X=wy.prototype;_.X.dataChanged=function(){this.isOpen=!1};
_.X.onTap=function(){this.data&&(this.data.navigationEndpoint?_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.X.focus=function(){this.JSC$13716_commentbox.focus()};
_.X.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.X.openDialog=function(){this.isOpen=!0;this.JSC$13716_commentbox.focus();this.JSC$13716_commentbox.maybeHeightChanged()};
wy.prototype.onYtCommentboxDismiss=wy.prototype.onYtCommentboxDismiss;wy.prototype.dataChanged=wy.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wy.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],wy.prototype,"isOpen",void 0);_.B([_.a4("#commentbox"),_.S("design:type",Object)],wy.prototype,"JSC$13716_commentbox",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wy.prototype,"dataChanged",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],wy.prototype,"onYtCommentboxDismiss",null);wy=_.B([_.e({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],wy);
_.G(wy,"ytd-comment-reply-dialog-renderer",function(){if(Y5G!==void 0)return Y5G;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Y5G=f},{mode:1});var v9C;var mc=function(){return _.U.apply(this,arguments)||this};
_.y(mc,_.U);_.Vy.Object.defineProperties(mc.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.data)==null?void 0:(R=f.icon)==null?void 0:R.iconType;return u?"yt-icons:"+u.toLowerCase():null}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mc.prototype,"data",void 0);_.B([_.I(),_.T("data.icon"),_.S("design:type",Object),_.S("design:paramtypes",[])],mc.prototype,"icon",null);mc=_.B([_.e({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],mc);
_.G(mc,"ytd-pinned-comment-badge-renderer",function(){if(v9C!==void 0)return v9C;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return v9C=f},{mode:1});var iXl;var rWl={},f_f={input:!0,meta:!0,br:!0,link:!0,img:!0},QV=null;rWl.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(){QV==null&&(QV=document.createElement("tp-yt-paper-tooltip"),QV.offset=8,QV.fitToVisibleBounds=!0)},
onMouseOver_:function(f){if(f=_.Tx(f.target,function(c){return c==this||c.getAttribute&&c.getAttribute("shared-tooltip-text")}.bind(this),!0)){var R=f.getAttribute("shared-tooltip-text");
if(R){var u=this,O=null;f!=this&&(f.tagName.toLowerCase()in f_f?u=f.parentElement:u=f,f.id&&(O=f.id));this.polymerController.createTooltipIfRequired_();if(QV.parentElement!=u||QV.for!=O)(0,_.hl)(QV).textContent=R,_.b(u).appendChild(QV),QV.for=O,QV.animationDelay=this.polymerController.sharedTooltipAnimationDelay,QV.position=this.polymerController.sharedTooltipPosition}}}};var WV=function(){return _.U.apply(this,arguments)||this};
_.y(WV,_.U);WV.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]]"}}}}}};
WV.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
WV.prototype.colorChanged=function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.color)==null?void 0:(u=R.basicColorPaletteData)==null?void 0:u.foregroundBodyColor;O&&(this.rgbBadgeColor=_.I1(O));_.b(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
WV.prototype.tooltipChanged=function(){var f;((f=this.data)==null?0:f.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
WV.prototype.tooltipChanged=WV.prototype.tooltipChanged;WV.prototype.colorChanged=WV.prototype.colorChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(rWl.YtSharedTooltipBehavior),_.S("design:type",Object)],WV.prototype,"ytSharedTooltipBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WV.prototype,"data",void 0);
_.B([_.I({value:"#4285F4"}),_.S("design:type",String)],WV.prototype,"rgbBadgeColor",void 0);_.B([_.qM("data.color"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WV.prototype,"colorChanged",null);_.B([_.qM("data.tooltip"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WV.prototype,"tooltipChanged",null);WV=_.B([_.e({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],WV);
_.G(WV,"ytd-sponsor-comment-badge-renderer",function(){if(iXl!==void 0)return iXl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return iXl=f},{mode:1});var REf;var uYf;var EI=function(){return _.U.apply(this,arguments)||this};
_.y(EI,_.U);EI.prototype.computeState=function(f){switch(f==null?void 0:f.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"}};
EI.prototype.updateStateIdentifier=function(f){if(this.viewModel.triStateKey){var R=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.bA("triStateButtonStateEntityPayload",R,{key:R,stateIdentifier:f}))}};
EI.prototype.onClick=function(){var f=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(){f.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){f.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Vy.Object.defineProperties(EI.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 f;return((f=this.data)==null?void 0:f.buttonText)||""}}});
_.B([_.I(),_.S("design:type",Object)],EI.prototype,"viewModel",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],EI.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],EI.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.B([_.I({selector:LW5,selectorArgs:["viewModel.triStateKey"]}),_.S("design:type",Object)],EI.prototype,"triStateButtonStateEntity",void 0);
_.B([_.I({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.S("design:type",String)],EI.prototype,"state",void 0);_.B([_.T("viewModel","state"),_.S("design:type",Object),_.S("design:paramtypes",[])],EI.prototype,"data",null);_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],EI.prototype,"buttonText",null);EI=_.B([_.e({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],EI);
_.G(EI,"ytd-tri-state-button-view-model",function(){if(uYf!==void 0)return uYf;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return uYf=f},{mode:1});var OKC;var c7H;var tX=function(){var f=_.U.apply(this,arguments)||this;f.defaultIconToFilled=!_.E("kevlar_fill_comment_chip_icon_killswitch");return f};
_.y(tX,_.U);tX.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
tX.prototype.dataChanged=function(){if(this.data){var f,R;((f=this.data.chipColorPalette)==null?0:f.backgroundColor)&&((R=this.data.chipColorPalette)==null?0:R.foregroundTitleColor)&&_.ZO(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.ML(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.ML(this.data.chipColorPalette.foregroundTitleColor)});var u;((u=this.data)==null?0:u.command)?(_.ZO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.ZO(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}};
tX.prototype.onTap=function(){var f;if(this.data&&(f=this.data)!=null&&f.command){var R;this.ytComponentBehavior.resolveCommand((R=this.data)==null?void 0:R.command)}};
tX.prototype.getIconSize=function(){return _.E("kevlar_fill_comment_chip_icon_killswitch")?24:12};
tX.prototype.onTap=tX.prototype.onTap;tX.prototype.dataChanged=tX.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.mJ),_.S("design:type",Object)],tX.prototype,"ironA11yKeysBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tX.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],tX.prototype,"basePriceText",void 0);_.B([_.I(),_.S("design:type",Object)],tX.prototype,"chipIcon",void 0);_.B([_.I(),_.S("design:type",Object)],tX.prototype,"defaultIconToFilled",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tX.prototype,"dataChanged",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tX.prototype,"onTap",null);
tX=_.B([_.DO({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],tX);
_.G(tX,"yt-pdg-comment-chip-renderer",function(){if(c7H===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;OKC===void 0&&(OKC=document.createElement("template"));var O=OKC;u.call(R,O.content.cloneNode(!0),f.content.firstChild);c7H=f}f=c7H;return f},{mode:2});var CF=function(){var f=_.U.apply(this,arguments)||this;f.useSmallAvatars=_.E("small_avatars_for_comments");f.webWatchCompactComments=_.E("web_watch_compact_comments");f.editDialog=null;return f};
_.y(CF,_.U);_.X=CF.prototype;_.X.onShow=function(){_.zT("cmv",void 0,"wn_comments")};
_.X.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"}}}};
_.X.detached=function(){this.editDialog=null;this.expander.reset()};
_.X.updateBackgroundColor=function(){if(this.backgroundColor){var f={"--ytd-comment-paid-background-color":_.ML(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.ZO(this.hostElement,f)}else _.ZO(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.X.resetExpander=function(){var f;(f=this.expander)==null||f.reset()};
_.X.openEditDialog=function(f){f.dialog&&(this.editDialog=f.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.X.onYtNavigate=function(f){var R=f.detail.endpoint;if(R=_.t(R,_.zoY)||_.t(R,_.Twt))f.stopPropagation(),this.openEditDialog(R)};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null;_.ZO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.X.onAuthorThumbnailClicked=function(){var f=this;_.E("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(R,u){f.onAuthorThumbnailEndpointSuccess(u)},
onServerError:function(R,u){_.Ih(new _.ts("Failed to resolve the command",u))}}})};
_.X.onAuthorThumbnailEndpointSuccess=function(f){if((f=f==null?void 0:f.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(f,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();f=f==null?void 0:f.clickTrackingParams;var R=_.Jj();f&&R&&_.wR().graftServerVe(f,R)}};
_.X.logScreenVe=function(){_.O1(_.wR(),66557)};
_.X.onYtCommentboxResize=function(f){var R;(f==null?0:(R=f.detail)==null?0:R.height)&&_.ZO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":f.detail.height+"px"})};
_.Vy.Object.defineProperties(CF.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 f,R=(f=this.commentEntity)==null?void 0:f.author;return R&&(R.isCreator||R.isVerified||R.isArtist)?{renderer:{authorEndpoint:R.channelPageEndpoint?_.t(R.channelPageEndpoint,_.TW):_.t(R.channelCommand,_.TW),authorText:{runs:[{text:R.displayName}]},color:R.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:R.isArtist?{iconType:"AUDIO_BADGE"}:
R.isVerified?{iconType:R.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:R.isArtist||R.isVerified?R.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.commentEntity)==null?void 0:f.author;return R!=null&&R.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:R.sponsorBadgeUrl}]},tooltip:R.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return _.t((f=this.commentSurfaceEntity)==null?void 0:f.pdgCommentChip,_.Z5k)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var f;return this.voiceReplyContainerViewModel&&((f=this.voiceReplyContainerViewModel)==null?void 0:f.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return _.t((f=this.commentSurfaceEntity)==null?void 0:f.voiceReplyContainerViewModel,$Sk)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var f;return this.voiceReplyContainerViewModel&&(f=this.voiceReplyContainerViewModel)!=null&&f.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.commentSurfaceEntity)==null?void 0:f.commentBackgroundColor)!=null?R:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var f,R;return(((f=this.commentEntity)==null?void 0:(R=f.properties)==null?void 0:R.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var f,R;if(_.E("enable_profile_cards_on_comments")&&((f=this.commentEntity)==null?0:(R=f.author)==null?0:R.profileCardEndpoint)&&this.viewModel.allowProfileCard){var u,O;return _.t((u=this.commentEntity)==null?void 0:(O=u.author)==null?void 0:O.profileCardEndpoint,_.TW)}var c,h;return _.t((c=this.commentEntity)==null?void 0:(h=c.avatar)==null?void 0:h.endpoint,_.TW)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var f,R;if(_.E("enable_profile_cards_on_comments")&&((f=this.commentEntity)==null?0:(R=f.author)==null?0:R.channelPageEndpoint)){var u,O;return _.t((u=this.commentEntity)==null?void 0:(O=u.author)==null?void 0:O.channelPageEndpoint,_.TW)}var c,h;return _.t((c=this.commentEntity)==null?void 0:(h=c.avatar)==null?void 0:h.endpoint,_.TW)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c=(f=this.commentEntity)==null?void 0:(R=f.avatar)==null?void 0:(u=R.image)==null?void 0:(O=u.sources)==null?void 0:O[0];return c?{thumbnails:[{url:c.url,width:c.width,height:c.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.commentEntity)==null?0:(R=f.author)==null?0:R.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.commentEntity)==null?void 0:(R=f.author)==null?void 0:R.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.commentEntity)==null?void 0:(R=f.properties)==null?void 0:R.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var f;return _.t((f=this.commentSurfaceEntity)==null?void 0:f.publishedTimeCommand,_.TW)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var f,R;if(((f=this.commentEntity)==null?0:f.translatedContent)&&((R=this.translateButtonState)==null?void 0:R.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 O,c;return((O=this.commentEntity)==null?void 0:(c=O.properties)==null?void 0:c.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.commentSharedEntity)==null?void 0:(R=f.strings)==null?void 0:R.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.commentSharedEntity)==null?void 0:(R=f.strings)==null?void 0:R.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.commentEntity)==null||!f.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var f,R,u=(R=_.t((f=this.viewModel)==null?void 0:f.translateButton,SXE))!=null?R:{},O,c,h,l,K,q,F,w,m,W,C;return Object.assign({},u,{untoggledStateData:Object.assign({},u.untoggledStateData,{buttonText:(O=this.commentEntity)==null?void 0:(c=O.translateData)==null?void 0:c.text}),togglingStateData:Object.assign({},u.togglingStateData,{buttonText:(h=this.commentSharedEntity)==null?
void 0:(l=h.strings)==null?void 0:l.translatingText}),toggledStateData:Object.assign({},u.toggledStateData,{buttonText:(K=this.commentSharedEntity)==null?void 0:(q=K.strings)==null?void 0:q.seeOriginalText}),transitionCommand:((F=this.commentEntity)==null?0:F.translatedContent)?void 0:_.t((w=this.commentEntity)==null?void 0:(m=w.translateData)==null?void 0:m.translateComment,_.TW),triStateKey:(W=this.commentEntity)==null?void 0:(C=W.properties)==null?void 0:C.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((R=_.t(_.t((f=this.toolbarSurface)==null?void 0:f.menuCommand,_.TW),HWC))==null?void 0:(u=R.menu)==null?void 0:u.menuRenderer)||null}}});
CF.prototype.onYtCommentboxResize=CF.prototype.onYtCommentboxResize;CF.prototype.onYtCommentboxDismiss=CF.prototype.onYtCommentboxDismiss;CF.prototype.onYtNavigate=CF.prototype.onYtNavigate;CF.prototype.resetExpander=CF.prototype.resetExpander;CF.prototype.updateBackgroundColor=CF.prototype.updateBackgroundColor;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],CF.prototype,"ytdReduxBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],CF.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#author-thumbnail > button"),_.S("design:type",HTMLElement)],CF.prototype,"authorThumbnailAnchor",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("viewModel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CF.prototype,"linked",null);
_.B([_.T("viewModel","linked"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"linkedCommentBadge",null);_.B([_.I({reflectToAttribute:!0}),_.T("viewModel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CF.prototype,"pinned",null);_.B([_.T("viewModel","pinned"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"pinnedCommentBadge",null);
_.B([_.T("commentEntity","commentSharedEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"authorCommentBadge",null);_.B([_.I({reflectToAttribute:!0}),_.T("authorCommentBadge"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"hasAuthorBadge",null);_.B([_.T("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"sponsorCommentBadge",null);
_.B([_.I({reflectToAttribute:!0}),_.T("sponsorCommentBadge"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"hasSponsorBadge",null);_.B([_.T("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"pdgCommentChipRenderer",null);_.B([_.I({reflectToAttribute:!0}),_.T("voiceReplyContainerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"hasVoiceReply",null);
_.B([_.T("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"voiceReplyContainerViewModel",null);_.B([_.T("voiceReplyContainerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"voiceReplyUnavailableText",null);_.B([_.I(),_.S("design:type",Object)],CF.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"viewModel",null);
_.B([_.I({selector:function(f,R){return _.kZ(f.entities,"commentSharedEntityPayload",R)},
selectorArgs:["viewModel.sharedKey"]}),_.S("design:type",Object)],CF.prototype,"commentSharedEntity",void 0);_.B([_.I({selector:function(f,R){return _.kZ(f.entities,"commentEntityPayload",R)},
selectorArgs:["viewModel.commentKey"]}),_.S("design:type",Object)],CF.prototype,"commentEntity",void 0);_.B([_.I({selector:function(f,R){return _.kZ(f.entities,"commentSurfaceEntityPayload",R)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.S("design:type",Object)],CF.prototype,"commentSurfaceEntity",void 0);_.B([_.I({selector:NE7,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.S("design:type",Object)],CF.prototype,"toolbarSurface",void 0);_.B([_.I({selector:LW5,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.S("design:type",Object)],CF.prototype,"translateButtonState",void 0);
_.B([_.T("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"backgroundColor",null);_.B([_.I({reflectToAttribute:!0}),_.T("viewModel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CF.prototype,"optimalReadingWidthComments",null);_.B([_.a4("ytd-expander"),_.S("design:type",Object)],CF.prototype,"expander",void 0);
_.B([_.qM("backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CF.prototype,"updateBackgroundColor",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],CF.prototype,"useSmallAvatars",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],CF.prototype,"webWatchCompactComments",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"isReply",null);
_.B([_.T("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"authorThumbnailEndpoint",null);_.B([_.T("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"authorNameEndpoint",null);_.B([_.T("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"authorThumbnail",null);_.B([_.T("commentEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],CF.prototype,"authorTextClass",null);
_.B([_.T("commentEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],CF.prototype,"authorChannelName",null);_.B([_.T("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"publishedTime",null);_.B([_.T("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"publishedTimeCommand",null);
_.B([_.T("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"contentText",null);_.B([_.qM("contentText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CF.prototype,"resetExpander",null);_.B([_.T("commentEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CF.prototype,"shouldShowReadMoreInitially",null);
_.B([_.T("commentSharedEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],CF.prototype,"expandText",null);_.B([_.T("commentSharedEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],CF.prototype,"collapseText",null);_.B([_.T("commentEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CF.prototype,"shouldShowTranslateButton",null);
_.B([_.T("commentEntity","commentSharedEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"translateButton",null);_.B([_.T("toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],CF.prototype,"overflowMenuRenderer",null);_.B([_.I(),_.S("design:type",Object)],CF.prototype,"editDialog",void 0);_.B([_.a4("ytd-comment-dialog-renderer"),_.S("design:type",Object)],CF.prototype,"editCommentDialogContainer",void 0);
_.B([_.a4("ytd-comment-reply-dialog-renderer"),_.S("design:type",Object)],CF.prototype,"editReplyDialogContainer",void 0);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],CF.prototype,"onYtNavigate",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],CF.prototype,"onYtCommentboxDismiss",null);
_.B([_.Kf("yt-commentbox-resize"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],CF.prototype,"onYtCommentboxResize",null);CF=_.B([_.e({disableElementRegistration:!0,is:"ytd-comment-view-model"})],CF);
_.G(CF,"ytd-comment-view-model",function(){if(REf!==void 0)return REf;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return REf=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var yV=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_modern_buttons");f.isWatchGrid=_.E("kevlar_watch_grid");f.buttonOverrides={style:"call-to-action"};f.JSC$13762_spinnerEl=null;return f};
_.y(yV,_.U);_.X=yV.prototype;_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.X.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]]"}}}}}};
_.X.attached=function(){this.isShowRepliesVisible=!0};
_.X.dataChanged=function(){var f=this.expanderContents;f&&(f.hidden=!0);this.isLoading=!1};
_.X.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.X.isLoadingChanged=function(){this.isLoading&&!this.JSC$13762_spinnerEl&&(this.JSC$13762_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.b(this.expanderContents).appendChild(this.JSC$13762_spinnerEl));this.JSC$13762_spinnerEl&&(this.JSC$13762_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var f;(f=this.contents)==null||f.classList.remove("reloading")}};
_.X.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var f=_.t(this.data.viewReplies,_.z9);f&&this.ytRendererBehavior.logExplicitClick(f)};
_.X.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var f=_.t(this.data.hideReplies,_.z9);f&&this.ytRendererBehavior.logExplicitClick(f)};
_.X.isShowMoreChanged=function(){var f=_.b(this.hostElement).querySelector("#expander-contents");f&&(f.hidden=this.isShowRepliesVisible)};
_.X.computeAlign=function(){if(this.modern){var f;return!((f=this.data)==null?0:f.viewRepliesCreatorThumbnail)}};
_.Vy.Object.defineProperties(yV.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.data)==null?void 0:f.contents;return!!R&&R.length>0&&!!R[R.length-1].continuationItemRenderer}}});
yV.prototype.isShowMoreChanged=yV.prototype.isShowMoreChanged;yV.prototype.isLoadingChanged=yV.prototype.isLoadingChanged;yV.prototype.triggerFirstContinuation=yV.prototype.triggerFirstContinuation;yV.prototype.dataChanged=yV.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.Pp),_.S("design:type",Object)],yV.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yV.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yV.prototype,"modern",void 0);_.B([_.I(),_.S("design:type",Boolean)],yV.prototype,"isLoading",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],yV.prototype,"isShowRepliesVisible",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],yV.prototype,"useNewFormatting",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yV.prototype,"isWatchGrid",void 0);_.B([_.I(),_.S("design:type",Object)],yV.prototype,"buttonOverrides",void 0);_.B([_.a4("#expander-contents"),_.S("design:type",HTMLElement)],yV.prototype,"expanderContents",void 0);_.B([_.a4("ytd-continuation-item-renderer"),_.S("design:type",Object)],yV.prototype,"continuationItemRenderer",void 0);_.B([_.a4("#contents"),_.S("design:type",HTMLElement)],yV.prototype,"contents",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yV.prototype,"dataChanged",null);_.B([_.T("data.contents"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yV.prototype,"hasContinuation",null);_.B([_.Kf("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yV.prototype,"triggerFirstContinuation",null);
_.B([_.qM("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yV.prototype,"isLoadingChanged",null);_.B([_.qM("isShowRepliesVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yV.prototype,"isShowMoreChanged",null);yV=_.B([_.e({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],yV);
_.G(yV,"ytd-comment-replies-renderer",function(){if(Vsk!==void 0)return Vsk;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Vsk=f},{mode:1});var XkI;var dy=function(){var f=_.U.apply(this,arguments)||this;f.isOpen=!1;f.commentDialog=null;f.useSmallAvatars=_.E("small_avatars_for_comments");f.useSmallAvatarsEngagementPanelOnly=_.E("small_avatars_for_comments_ep");f.placeholderFocusListener=null;f.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return f};
_.y(dy,_.U);_.X=dy.prototype;_.X.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]]"}}}}}};
_.X.ready=function(){var f=this,R=_.b(this.hostElement).querySelector("#placeholder-area"),u=_.b(this.hostElement).querySelector("#simplebox-placeholder"),O=function(c){c.stopPropagation();c instanceof KeyboardEvent&&c.type==="keypress"&&c.keyCode!==13&&c.keyCode!==32||f.openDialog()};
this.placeholderFocusListener=O;u.addEventListener("focus",this.placeholderFocusListener);R.addEventListener("tap",O);R.addEventListener("keypress",O)};
_.X.maybeRemoveFocusEventListener=function(){var f;(f=this.data)!=null&&f.prepareAccountEndpoint&&!_.E("web_comments_simplebox_modal_focus_on_tap_ks")&&(f=_.b(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(f.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.X.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.X.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.E("web_comment_simplebox_resolve_polymer_command_ks")?_.KU.instance.resolveCommand(this.data.prepareAccountEndpoint):_.qO(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.b(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.X.onYtCommentboxDismiss=function(f){f.stopPropagation();this.isOpen=!1};
_.X.onCreateCommentAction=function(f){this.get("createCommentAction.contents",f)&&(this.isOpen=!1)};
_.X.computeCommentDialog=function(f){return{placeholderText:f.placeholderText,authorThumbnail:f.authorThumbnail,submitButton:f.submitButton,imageButton:f.imageButton,cancelButton:f.cancelButton,emojiButton:f.emojiButton,emojis:f.emojis,emojiPicker:f.emojiPicker,aadcGuidelinesStateEntityKey:f.aadcGuidelinesStateEntityKey,openAadcDialog:f.openAadcDialog,unicodeEmojisUrl:f.unicodeEmojisUrl}};
_.X.onHideIdentityChip=function(f){_.t(f,MgF)&&this.set("data.placeholderText",_.t(f,MgF).placeholderText)};
dy.prototype.onYtCommentboxDismiss=dy.prototype.onYtCommentboxDismiss;dy.prototype.dataChanged=dy.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],dy.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],dy.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],dy.prototype,"isOpen",void 0);_.B([_.I(),_.S("design:type",Object)],dy.prototype,"commentDialog",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],dy.prototype,"engagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dy.prototype,"useSmallAvatars",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dy.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],dy.prototype,"enableCreationBox",void 0);_.B([_.I(),_.S("design:type",Boolean)],dy.prototype,"showCreateDialog",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dy.prototype,"dataChanged",null);
_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],dy.prototype,"onYtCommentboxDismiss",null);dy=_.B([_.e({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],dy);
_.G(dy,"ytd-comment-simplebox-renderer",function(){if(XkI!==void 0)return XkI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return XkI=f},{mode:1});var hEl;_.j6("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var NY=function(){var f=_.U.apply(this,arguments)||this;f.addHoverEffect=_.E("swatcheroo_comments_hover_effect");return f};
_.y(NY,_.U);NY.prototype.onTap=function(f){if(this.addHoverEffect&&!this.engagementPanel&&!_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;((R=window.getSelection())==null?0:R.toString().length)||_.qO({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
NY.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Vy.Object.defineProperties(NY.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.commentViewModel)return _.t(this.data.commentViewModel,xSY)}}});
NY.prototype.onTap=NY.prototype.onTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NY.prototype,"addHoverEffect",void 0);_.B([_.I(),_.S("design:type",Object)],NY.prototype,"data",void 0);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],NY.prototype,"commentViewModel",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],NY.prototype,"engagementPanel",void 0);_.B([_.Kf("tap"),_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],NY.prototype,"onTap",null);NY=_.B([_.e({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],NY);
_.G(NY,"ytd-comment-thread-renderer",function(){if(hEl!==void 0)return hEl;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return hEl=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var ZKG;var LF=function(){var f=_.U.apply(this,arguments)||this;f.modernTypography=_.E("web_modern_typography");f.compactHeader=_.E("web_watch_compact_comments_header");f.hidePanelButton=!1;f.isPostSchedulingEnabled=_.E("enable_post_scheduling");f.hasFinishedStamping=!1;f.JSC$13780_handleOpenPostCommentDialogActionAfterStamp=!1;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.y(LF,_.U);_.X=LF.prototype;
_.X.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"}}}};
_.X.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.X.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13780_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.X.onYtServiceRequestSent=function(f,R){if(!_.E("kevlar_command_handler")&&R.actions)for(f=0;f<R.actions.length;f++){var u=R.actions[f];_.t(u,kaf)&&_.b(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.t(u,kaf))}};
_.X.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var f;if(this.getPrefilledBackstagePostDialog((f=this.data)==null?void 0:f.actions)){_.b(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var R=_.b(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;R&&_.su(this,function(){R.focus();R.openDialog&&R.openDialog()})}}else this.hasActionsChange=!0};
_.X.computeIsBackstage=function(f){return f};
_.X.onYtCommentboxDismiss=function(){_.b(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.X.removePrefilledDialog=function(f){if(f==null?0:f.actions){for(var R=f.actions.length-1;R>=0;R--){var u=void 0;((u=_.t(f.actions[R],D2G))==null?0:u.dialog)&&delete f.actions[R]}this.set("data",void 0);this.set("data",f)}};
_.X.getPrefilledBackstagePostDialog=function(f){if(f)for(var R=0;R<f.length;R++){var u=f[R],O=void 0;if((O=_.t(u,D2G))==null?0:O.dialog)return _.t(u,D2G).dialog}return null};
_.X.computeBackstagePostDialog=function(f){return f&&(this.getPrefilledBackstagePostDialog(f.actions)||f.createRenderer)};
_.X.dataChanged=function(){if(this.data){var f=this.data.customEmojis,R=this.data.unicodeEmojisUrl;_.Hd.clear();R&&_.axA(_.Hd,R);f&&_.Hd.load(f)}};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){var f=_.b(this.hostElement).querySelector("ytd-comment-simplebox-renderer");f?f.openDialog():this.JSC$13780_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Vy.Object.defineProperties(LF.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.E("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c,h,l;return!this.hidePanelButton&&_.E("kevlar_watch_comments_panel_button")&&((l=_.t((f=this.data)==null?void 0:(R=f.sortMenu)==null?void 0:(u=R.sortFilterSubMenuRenderer)==null?void 0:(O=u.subMenuItems)==null?void 0:(c=O[0])==null?void 0:(h=c.serviceEndpoint)==null?void 0:h.commandMetadata,_.vc))==null?void 0:l.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Fa("MINIPLAYER_EXPAND_LABEL"),text:_.S8(_.Fa("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
LF.prototype.dataChanged=LF.prototype.dataChanged;LF.prototype.onYtCommentboxDismiss=LF.prototype.onYtCommentboxDismiss;LF.prototype.observePrefilledBackstagePostDialog=LF.prototype.observePrefilledBackstagePostDialog;LF.prototype.onYtServiceRequestSent=LF.prototype.onYtServiceRequestSent;LF.prototype.onStampFinished=LF.prototype.onStampFinished;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],LF.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LF.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LF.prototype,"modernTypography",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LF.prototype,"compactHeader",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],LF.prototype,"engagementPanel",void 0);_.B([_.I(),_.S("design:type",Object)],LF.prototype,"hidePanelButton",void 0);_.B([_.I({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.S("design:type",Boolean)],LF.prototype,"isBackstage",void 0);_.B([_.I({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.S("design:type",Object)],LF.prototype,"backstagePostDialog",void 0);
_.B([_.I(),_.S("design:type",Object)],LF.prototype,"isPostSchedulingEnabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data","showCommentsPanelButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],LF.prototype,"useSpaceBetween",null);_.B([_.I({reflectToAttribute:!0}),_.T("data","hidePanelButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],LF.prototype,"showCommentsPanelButton",null);
_.B([_.T("data","showCommentsPanelButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],LF.prototype,"commentsPanelButtonData",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LF.prototype,"onStampFinished",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],LF.prototype,"onYtServiceRequestSent",null);
_.B([_.qM("data.actions"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LF.prototype,"observePrefilledBackstagePostDialog",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],LF.prototype,"onYtCommentboxDismiss",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LF.prototype,"dataChanged",null);
LF=_.B([_.e({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],LF);
_.G(LF,"ytd-comments-header-renderer",function(){if(ZKG!==void 0)return ZKG;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ZKG=f},{mode:1});var l_G;var bN=function(){return _.U.apply(this,arguments)||this};
_.y(bN,_.U);_.B([_.I(),_.S("design:type",Object)],bN.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);bN=_.B([_.e({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],bN);
_.G(bN,"ytd-destination-button-renderer",function(){if(l_G!==void 0)return l_G;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return l_G=f},{mode:1});var kuf;var pF=function(){var f=_.U.apply(this,arguments)||this;f.isRichGrid=!1;f.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};f.modernTypography=_.E("web_modern_typography");return f};
_.y(pF,_.U);_.X=pF.prototype;_.X.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.X.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.X.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.X.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var f;if((f=this.data)==null||!f.isExpanded){f=this.hostElement.clientWidth;var R;if(f&&(R=this.data)!=null&&R.destinationButtons){R=Math.floor((f+4)/214);f=this.data.destinationButtons.length;var u=Math.ceil(f/R);this.fullyVisibleRows=f%R===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}}}};
_.X.updateRichGridDestinationButtonsVisibility=function(){var f,R;if(this.isRichGrid&&((f=this.data)==null||!f.isExpanded)&&(R=this.data)!=null&&R.destinationButtons){f=this.richGridItemsPerRow+1;R=this.data.destinationButtons.length;var u=Math.ceil(R/f);this.fullyVisibleRows=R%f===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
_.X.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
pF.prototype.updateRichGridDestinationButtonsVisibility=pF.prototype.updateRichGridDestinationButtonsVisibility;_.B([_.I(),_.S("design:type",Object)],pF.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Number)],pF.prototype,"fullyVisibleRows",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pF.prototype,"isShowMoreVisible",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],pF.prototype,"isRichGrid",void 0);
_.B([_.I({selector:_.DH,value:0}),_.S("design:type",Number)],pF.prototype,"richGridItemsPerRow",void 0);_.B([_.I(),_.S("design:type",Object)],pF.prototype,"gridStateActionMap",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],pF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],pF.prototype,"ytdReduxBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],pF.prototype,"modernTypography",void 0);_.B([_.qM("data","richGridItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pF.prototype,"updateRichGridDestinationButtonsVisibility",null);
pF=_.B([_.e({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],pF);
_.G(pF,"ytd-destination-shelf-renderer",function(){if(kuf!==void 0)return kuf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return kuf=f},{mode:1});var KrI;var jU=function(){return _.U.apply(this,arguments)||this};
_.y(jU,_.U);jU.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jU.prototype,"data",void 0);jU=_.B([_.e({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],jU);
_.G(jU,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(KrI!==void 0)return KrI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return KrI=f},{mode:1});var q4H;var DI=function(){var f=_.U.apply(this,arguments)||this;f.disableAnimation=!1;f.isSlimlineSurvey=!1;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;return f};
_.y(DI,_.U);DI.prototype.onTap=function(f){f.preventDefault();this.data&&_.ul(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Vy.Object.defineProperties(DI.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 f,R,u,O,c;return((f=this.data)==null?0:f.checked)?(R=this.data)==null?void 0:(u=R.onStateIcon)==null?void 0:u.iconType:(O=this.data)==null?void 0:(c=O.defaultStateIcon)==null?void 0:c.iconType}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],DI.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],DI.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],DI.prototype,"disableAnimation",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],DI.prototype,"isSlimlineSurvey",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],DI.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],DI.prototype,"isShortsStyle",void 0);_.B([_.T("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],DI.prototype,"isAnimatedIcon",null);
_.B([_.T("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.S("design:type",Number),_.S("design:paramtypes",[])],DI.prototype,"iconSize",null);_.B([_.T("isShortsStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],DI.prototype,"isDarkTheme",null);_.B([_.T("data.checked"),_.S("design:type",Object),_.S("design:paramtypes",[])],DI.prototype,"icon",null);DI=_.B([_.e({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],DI);
_.G(DI,"ytd-rating-survey-option-renderer",function(){if(q4H!==void 0)return q4H;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return q4H=f},{mode:2});var A7f;var JX=function(){var f=_.U.apply(this,arguments)||this;f.firstResponseText=null;f.lastResponseText=null;f.selectedNonStarOption=null;f.hideOptions=!1;f.hideUndoButton=!0;f.disableAnimation=!1;f.showResponseRangeText=!1;f.selectedRatingIndex=-1;f.isSlimlineSurvey=!1;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;f.slimlineSurveyRatingSelectedIndex=-1;return f};
_.y(JX,_.U);_.X=JX.prototype;_.X.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.X.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.X.onOptionChange=function(f,R){var u=this;f=R.onStateIcon&&R.defaultStateIcon&&R.onStateIcon.iconType===R.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(l,K){l.responseText===R.responseText?u.isSlimlineSurvey?(u.selectedRatingIndex=K,u.ytdReduxBehavior.dispatch(Q6l(K))):(u.setSurveyOptionValue(K,!0,"checked"),u.setSurveyOptionValue(K,!0,"selected")):(u.setSurveyOptionValue(K,!1,"checked"),u.setSurveyOptionValue(K,
!1,"selected"))});
else if(f)this.selectedNonStarOption=R,this.hideOptions=!0;else{var O=this.ytRendererBehavior.getSimpleString(R.responseText),c=!0;this.getOptionRenderers().forEach(function(l,K){u.setSurveyOptionValue(K,c,"checked");u.setSurveyOptionValue(K,!1,"selected");u.ytRendererBehavior.getSimpleString(l.responseText)===O&&(c=!1,u.setSurveyOptionValue(K,!0,"selected"))})}f=R.responseEndpoint;
var h;R.followUpCommand&&(h=_.t(R.followUpCommand,Opt));this.isSlimlineSurvey?(this.resetComponent(),_.OJ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.OJ(this.hostElement,"ytd-inline-survey-rating-select-action",[f,h])};
_.X.showSelectedOption=function(){var f=this;_.JA.addJob(function(){var R=f.getOptionRenderers()[f.slimlineSurveyRatingSelectedIndex];f.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),R)},8,100)};
_.X.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(f){var R;return(R=_.t(f,XIG))!=null?R:{}}):[]};
_.X.onUndoClick=function(){this.resetComponent();_.OJ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.X.setSurveyOptionValue=function(f,R,u){this.notifyPath("data.ratings."+f+".ratingSurveyOptionRenderer."+u);this.set("data.ratings."+f+".ratingSurveyOptionRenderer."+u,R)};
_.X.resetComponent=function(){var f=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var R=this.getOptionRenderers(),u,O;this.firstResponseText=(O=(u=R[0])==null?void 0:u.responseText)!=null?O:null;var c,h;this.lastResponseText=(h=(c=R[R.length-1])==null?void 0:c.responseText)!=null?h:null;R.forEach(function(l,K){f.setSurveyOptionValue(K,!1,"checked");f.setSurveyOptionValue(K,!1,"selected")})};
_.Vy.Object.defineProperties(JX.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
JX.prototype.onOptionChange=JX.prototype.onOptionChange;JX.prototype.dataChanged=JX.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],JX.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],JX.prototype,"firstResponseText",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"lastResponseText",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"selectedNonStarOption",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"hideOptions",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"hideUndoButton",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"disableAnimation",void 0);
_.B([_.I(),_.S("design:type",Object)],JX.prototype,"showResponseRangeText",void 0);_.B([_.I(),_.S("design:type",Object)],JX.prototype,"selectedRatingIndex",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],JX.prototype,"isSlimlineSurvey",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],JX.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],JX.prototype,"isShortsStyle",void 0);_.B([_.I({selector:function(f){return f.ui.slimlineSurveyRatingSelectedIndex}}),
_.S("design:type",Object)],JX.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.B([_.T("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],JX.prototype,"isSingleSelect",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JX.prototype,"dataChanged",null);
_.B([_.Kf("ytd-rating-survey-option-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],JX.prototype,"onOptionChange",null);JX=_.B([_.e({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],JX);
_.G(JX,"ytd-rating-survey-renderer",function(){if(A7f!==void 0)return A7f;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return A7f=f},{mode:1});var a_A;var FrF;var wkC;var OX5=(yo.FIRSTDAYOFWEEK+1)%7,m4G=function(f,R,u,O){var c="";if(O.selection&&rRn(O.selection))EY(f,O.selection)&&(c+=" selected");else if(O.selection&&fyt(O.selection)){var h=O.selection.selectionState||"START_DATE";EY(f,O.selection.start)&&(c+=" period-start ",h==="START_DATE"&&(c+="selected"));EY(f,O.selection.end)&&(c+=" period-end ",h==="END_DATE"&&(c+="selected"));tF(f,O.selection.start)||tF(O.selection.end,f)||(c+=" highlighted")}if(tF(R,O.start)||tF(O.end,R))c+=" disabled";O.circleToday&&
EY(R,u)&&(c+=" today");return c};var z8=function(){return _.U.apply(this,arguments)||this};
_.y(z8,_.U);_.X=z8.prototype;_.X.attached=function(){var f=this;_.su(this,function(){f.JSC$13814_calendarMain.scrollHeight>0&&(f.calendarConfig.selection?f.scrollToDate(R$7(f.calendarConfig.selection)):f.scrollToDate(f.calendarConfig.end))})};
_.X.updateSelection=function(f){f=cW2(Object.assign({},this.calendarConfig,{selection:f}),m4G);this.splice.apply(this,["renderData.months",0,f.length].concat(_.yq(f)))};
_.X.scrollToDate=function(f){this.renderData&&(f=XEq(f,this.renderData),f!==void 0&&this.JSC$13814_calendarMain.scrollToIndex(f))};
_.X.scrollToNextMonth=function(){this.JSC$13814_calendarMain.scrollToIndex(this.JSC$13814_calendarMain.firstVisibleIndex+1)};
_.X.scrollToPrevMonth=function(){this.JSC$13814_calendarMain.firstVisibleIndex===0&&this.JSC$13814_calendarMain.scrollTo(0,0);this.JSC$13814_calendarMain.scrollToIndex(this.JSC$13814_calendarMain.firstVisibleIndex-1)};
_.X.handleDayClick=function(f){_.OJ(this.hostElement,"ytd-calendar-date-clicked",[f.model.day.date])};
_.X.handleDayMouseDown=function(f){f.preventDefault();_.OJ(this.hostElement,"ytd-calendar-date-mousedown",[f.model.day.date])};
_.X.handleDayMouseUp=function(f){_.OJ(this.hostElement,"ytd-calendar-date-mouseup",[f.model.day.date])};
_.X.handleDayMouseEnter=function(f){f.preventDefault();_.OJ(this.hostElement,"ytd-calendar-date-mouseenter",[f.model.day.date])};
_.X.handleDayMouseLeave=function(f){_.OJ(this.hostElement,"ytd-calendar-date-mouseleave",[f.model.day.date])};
_.Vy.Object.defineProperties(z8.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var f=this.calendarConfig,R=m4G;R=R===void 0?m4G:R;for(var u=[],O=0;O<7;O++)u.push(yo.NARROWWEEKDAYS[(O+OX5)%7]);return{months:cW2(f,R),daysOfWeekLabel:u}}}});
_.B([_.I(),_.S("design:type",Object)],z8.prototype,"calendarConfig",void 0);_.B([_.a4("#calendar-main"),_.S("design:type",Object)],z8.prototype,"JSC$13814_calendarMain",void 0);_.B([_.T("calendarConfig"),_.S("design:type",Object),_.S("design:paramtypes",[])],z8.prototype,"renderData",null);z8=_.B([_.e({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],z8);
_.G(z8,"ytd-scrollable-calendar",function(){if(wkC!==void 0)return wkC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wkC=f},{mode:2});var Qdl;var Wri;var T8=function(){var f=_.U.apply(this,arguments)||this;f.hideCharCounter=!1;f.hideLabel=!1;f.noLabelFloat=!1;f.autoValidate=!0;f.invalid=!1;f.disabled=!1;f.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return f};
_.y(T8,_.U);_.X=T8.prototype;_.X.reset=function(f){this.value=f&&this.data?this.data.value=f:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.X.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.X.focusTextInput=function(){this.input.focus()};
_.X.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()};
_.X.valueChanged=function(){var f,R;if(((f=this.data)==null?0:f.value)||((R=this.data)==null?void 0:R.value)==="")this.value=this.data.value;else{var u;((u=this.data)==null?void 0:u.value)!==void 0||this.value||(this.value="")}};
_.X.computeLabel=function(f,R){return R?"":_.$Z(f)};
_.X.computeAriaLabel=function(f,R){return R?_.$Z(f):""};
_.X.computeErrorMessage=function(f,R,u,O){!f&&R?f=u||this.strings.REQUIRED_LABEL:(f=_.$Z(O),f=_.qX(f,"&")?"document"in _.Oe?arB(f):FAe(f):f);return f};
_.X.computeType=function(f){return f==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.X.onTextValueChanged=function(f){this.value=f.detail.value;var R;(R=this.onValueChanged)==null||R.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.X.handleUpdateTextInputFormFieldRendererCommand=function(f){(f=_.t(f,NZf))&&this.data&&this.data.id===f.id&&(f.invalid!==void 0&&(this.invalid=f.invalid),f.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",f.invalidValueErrorMessage))};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("value-changed",this.value))};
_.X.updateInvalidFromBinding=function(f){this.invalid=f.detail.value};
_.Vy.Object.defineProperties(T8.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var f;return!((f=this.data)==null||!f.isMultiline)}}});
T8.prototype.valueChangedForBinding=T8.prototype.valueChangedForBinding;T8.prototype.valueChanged=T8.prototype.valueChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],T8.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],T8.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],T8.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],T8.prototype,"value",void 0);_.B([_.I(),_.S("design:type",String)],T8.prototype,"pattern",void 0);_.B([_.I(),_.S("design:type",String)],T8.prototype,"errorMessage",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],T8.prototype,"componentStyle",void 0);_.B([_.I(),_.S("design:type",Object)],T8.prototype,"hideCharCounter",void 0);
_.B([_.I(),_.S("design:type",Object)],T8.prototype,"hideLabel",void 0);_.B([_.I(),_.S("design:type",Object)],T8.prototype,"noLabelFloat",void 0);_.B([_.I(),_.S("design:type",Function)],T8.prototype,"onValueChanged",void 0);_.B([_.I(),_.S("design:type",Boolean)],T8.prototype,"isMultilineOverride",void 0);_.B([_.I(),_.S("design:type",Object)],T8.prototype,"autoValidate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],T8.prototype,"invalid",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],T8.prototype,"disabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],T8.prototype,"enableOverlayTheme",void 0);_.B([_.I({value:{REQUIRED_LABEL:_.Fa("REQUIRED_LABEL",void 0,"Required")}}),_.S("design:type",Object)],T8.prototype,"strings",void 0);_.B([_.a4("#input"),_.S("design:type",Object)],T8.prototype,"input",void 0);
_.B([_.T("data","isMultilineOverride"),_.S("design:type",Object),_.S("design:paramtypes",[])],T8.prototype,"isMultiline",null);_.B([_.QR("data.value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T8.prototype,"valueChanged",null);_.B([_.qM("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T8.prototype,"valueChangedForBinding",null);T8=_.B([_.DO({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],T8);
_.G(T8,"yt-text-input-form-field-renderer",function(){if(Wri===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;Qdl===void 0&&(Qdl=document.createElement("template"));var O=Qdl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Wri=f}f=Wri;return f},{mode:2});var HV=function(){var f=_.U.apply(this,arguments)||this;f.data=void 0;f.selectionState="START_DATE";f.isStartDateInvalid=!1;f.isEndDateInvalid=!1;f.autoapply=!1;f.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 f};
_.y(HV,_.U);_.X=HV.prototype;_.X.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"}}}}};
_.X.focus=function(){this.startDateInput.focus()};
_.X.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:C9(this.data.selection.start),end:C9(this.data.selection.end)})};
_.X.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.X.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.km(this.selectionState)}};
_.X.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.X.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.X.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.X.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var f=this.calendar.calendarConfig,R=f.end;f=ZXn({start:f.start,end:this.endDate||R},this.startDateInput.value||"");this.isStartDateInvalid=!f.isValid;f.isValid&&(f=f.value,this.selection=this.endDate?{start:f,end:this.endDate}:f,this.calendar.scrollToDate(f));this.updateInvalidState()}};
_.X.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var f=this.calendar.calendarConfig,R=f.start;f=ZXn({start:this.startDate||R,end:f.end},this.endDateInput.value||"");this.isEndDateInvalid=!f.isValid;f.isValid&&(f=f.value,this.selection={start:this.startDate,end:f},this.calendar.scrollToDate(f));this.updateInvalidState()}};
_.X.handleCalendarDateClicked=function(f){var R=this.selection&&R$7(this.selection),u=this.selection&&uJ7(this.selection);R&&!tF(f,R)&&this.selectionState==="END_DATE"?(this.selection={start:R,end:f},this.selectionState="START_DATE"):(u&&!tF(u,f)?this.selection={start:f,end:u}:this.selection=f,this.selectionState="END_DATE")};
_.X.handleCalendarDateMouseDown=function(f){this.selection&&!rRn(this.selection)&&(this.dragPivot=EY(f,this.selection.start)?this.selection.end:EY(f,this.selection.end)?this.selection.start:f)};
_.X.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.X.handleCalendarDateMouseEnter=function(f){this.dragPivot&&(this.selection={start:function(R,u){return tF(R,u)?R:u}(this.dragPivot,f),
end:function(R,u){return tF(R,u)?u:R}(this.dragPivot,f)},this.dragPivot||(this.selectionState="START_DATE"))};
_.X.handleCalendarDateMouseLeave=function(){};
_.X.handleCalendarSubmitDateRange=function(){this.selection&&!rRn(this.selection)&&_.OJ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.X.updateInvalidState=function(){var f=function(R,u){u?R.setAttribute("invalid",""):R.removeAttribute("invalid")};
f(this.startDateInput,this.isStartDateInvalid);f(this.endDateInput,this.isEndDateInvalid)};
_.X.updateDateStrings=function(){this.selection&&(rRn(this.selection)?i2n(this.selection):(i2n(this.selection.start),i2n(this.selection.end)))};
_.X.updateCalendarSelection=function(f){this.calendar.updateSelection(Object.assign({},f,{selectionState:this.selectionState}))};
_.X.updateIsStartDateInvalidFromBinding=function(f){this.isStartDateInvalid=f.detail.value};
_.X.updateIsEndDateInvalidFromBinding=function(f){this.isEndDateInvalid=f.detail.value};
_.X.updateStartDateStringFromBinding=function(){};
_.X.updateEndDateStringFromBinding=function(){};
_.Vy.Object.defineProperties(HV.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:C9(this.data.dateRangeStart),end:C9(this.data.dateRangeEnd),selection:{start:C9(this.data.selection.start),end:C9(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&R$7(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&uJ7(this.selection)}}});
HV.prototype.resetTextboxes=HV.prototype.resetTextboxes;HV.prototype.observeSelection=HV.prototype.observeSelection;HV.prototype.dataChanged=HV.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],HV.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#calendar"),_.S("design:type",Object)],HV.prototype,"calendar",void 0);
_.B([_.a4("#start-date"),_.S("design:type",Object)],HV.prototype,"startDateInput",void 0);_.B([_.a4("#end-date"),_.S("design:type",Object)],HV.prototype,"endDateInput",void 0);_.B([_.I(),_.S("design:type",Object)],HV.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],HV.prototype,"selection",void 0);_.B([_.I(),_.S("design:type",String)],HV.prototype,"selectionState",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],HV.prototype,"calendarConfig",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],HV.prototype,"errorMessage",null);_.B([_.T("selection"),_.S("design:type",Object),_.S("design:paramtypes",[])],HV.prototype,"startDate",null);_.B([_.T("selection"),_.S("design:type",Object),_.S("design:paramtypes",[])],HV.prototype,"endDate",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HV.prototype,"dataChanged",null);
_.B([_.qM("selection","selectionState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HV.prototype,"observeSelection",null);_.B([_.qM("selectionState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HV.prototype,"resetTextboxes",null);HV=_.B([_.e({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],HV);
_.G(HV,"ytd-date-period-picker-renderer",function(){if(FrF!==void 0)return FrF;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return FrF=f},{mode:1});var Io=function(){var f=_.U.apply(this,arguments)||this;var R={};f.actionMap=(R["ytd-date-period-picker-apply"]="handleDateRangeUpdated",R);return f};
_.y(Io,_.U);Io.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Io.prototype.handleDateRangeUpdated=function(){};
_.B([_.I(),_.S("design:type",Object)],Io.prototype,"data",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Io.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Io.prototype,"rendererstamperBehavior",void 0);Io=_.B([_.e({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Io);
_.G(Io,"ytd-report-history-section-header-renderer",function(){if(a_A!==void 0)return a_A;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return a_A=f},{mode:1});var Eqi;var tft;var CYf;var MY=function(){return _.U.apply(this,arguments)||this};
_.y(MY,_.U);_.Vy.Object.defineProperties(MY.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?0:(R=f.icon)==null?0:R.iconType)?_.li(this.data.icon.iconType):""}}});
_.B([_.I(),_.S("design:type",Object)],MY.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],MY.prototype,"icon",null);MY=_.B([_.e({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],MY);
_.G(MY,"ytd-report-history-table-text-cell-renderer",function(){if(CYf!==void 0)return CYf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return CYf=f},{mode:1});var PV=function(){return _.U.apply(this,arguments)||this};
_.y(PV,_.U);PV.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],PV.prototype,"data",void 0);PV=_.B([_.e({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],PV);
_.G(PV,"ytd-report-history-table-reason-cell-renderer",function(){if(tft!==void 0)return tft;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return tft=f},{mode:1});var UI=function(){return _.U.apply(this,arguments)||this};
_.y(UI,_.U);UI.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"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],UI.prototype,"rendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],UI.prototype,"data",void 0);UI=_.B([_.e({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],UI);
_.G(UI,"ytd-report-history-table-cell-renderer",function(){if(Eqi!==void 0)return Eqi;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return Eqi=f},{mode:1});var y7f;var eU=function(){var f=_.U.apply(this,arguments)||this;f.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 f};
_.y(eU,_.U);eU.prototype.onDataChanged=function(){var f;if((f=this.data)==null?0:f.style)this.componentStyle=this.getStyleName(this.data.style)};
eU.prototype.getCellForColumn=function(f){return this.cells.find(function(R){var u;return((u=_.t(R==null?void 0:R.cell,lji)||_.t(R==null?void 0:R.cell,ZpC))==null?void 0:u.columnId)===f.type})};
eU.prototype.getClassForColumn=function(f){switch(f){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
eU.prototype.getStyleName=function(f){switch(f){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Vy.Object.defineProperties(eU.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.cells)||[]).map(function(R){return _.t(R,hJC)})}}});
eU.prototype.onDataChanged=eU.prototype.onDataChanged;_.B([_.I(),_.S("design:type",Object)],eU.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Array)],eU.prototype,"columnRenderData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],eU.prototype,"componentStyle",void 0);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],eU.prototype,"cells",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eU.prototype,"onDataChanged",null);eU=_.B([_.e({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],eU);
_.G(eU,"ytd-report-history-table-row-renderer",function(){if(y7f!==void 0)return y7f;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return y7f=f},{mode:1});var d4i;var Nff;var ly5={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},kVn={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var G8=function(){return _.U.apply(this,arguments)||this};
_.y(G8,_.U);G8.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"}}}}}};
G8.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Vy.Object.defineProperties(G8.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.columns)?F7X(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return AWn(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var f=this.tableSpec,R=ly5;R=R===void 0?kVn:R;R=ay0(f.columnDimensions,f.columnsToShow||[],R);f=0;R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,f+=u.minWidth+u.paddingLeft+u.paddingRight;return f}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.B([_.z(_.Pp),_.S("design:type",Object)],G8.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],G8.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],G8.prototype,"tableSpec",null);_.B([_.T("tableSpec"),_.S("design:type",Array),_.S("design:paramtypes",[])],G8.prototype,"columnRenderData",null);
_.B([_.T("tableSpec"),_.S("design:type",Number),_.S("design:paramtypes",[])],G8.prototype,"totalMinWidth",null);_.B([_.T("totalMinWidth"),_.S("design:type",String),_.S("design:paramtypes",[])],G8.prototype,"tableWidthStyle",null);G8=_.B([_.e({is:"ytd-table-renderer",disableElementRegistration:!0})],G8);
_.G(G8,"ytd-table-renderer",function(){if(Nff!==void 0)return Nff;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Nff=f},{mode:1});var BV=function(){return _.U.apply(this,arguments)||this};
_.y(BV,_.U);BV.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}}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],BV.prototype,"data",void 0);BV=_.B([_.e({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],BV);
_.G(BV,"ytd-report-reason-history-modal-renderer",function(){if(d4i!==void 0)return d4i;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return d4i=f},{mode:1});var Lrk;var bKG;var pki;var oo=function(){return _.U.apply(this,arguments)||this};
_.y(oo,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oo.prototype,"data",void 0);oo=_.B([_.e({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],oo);
_.G(oo,"ytd-profile-column-stats-entry-renderer",function(){if(pki!==void 0)return pki;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pki=f},{mode:1});var jdf;var xb=function(){return _.U.apply(this,arguments)||this};
_.y(xb,_.U);xb.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xb.prototype,"data",void 0);xb=_.B([_.e({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],xb);
_.G(xb,"ytd-profile-column-stats-renderer",function(){if(jdf!==void 0)return jdf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return jdf=f},{mode:1});var D4f;var SU=function(){return _.U.apply(this,arguments)||this};
_.y(SU,_.U);_.Vy.Object.defineProperties(SU.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.useThumbnailSize)return 80;var R,u;f=(R=this.data)==null?void 0:(u=R.thumbnail)==null?void 0:u.thumbnails;var O;return f&&((O=f[0])==null?void 0:O.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.useThumbnailSize)return 80;var R,u;f=(R=this.data)==null?void 0:(u=R.thumbnail)==null?void 0:u.thumbnails;var O;return f&&((O=f[0])==null?void 0:O.height)||80}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SU.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],SU.prototype,"componentStyle",void 0);_.B([_.T("data.useThumbnailSize"),_.S("design:type",Object),_.S("design:paramtypes",[])],SU.prototype,"thumbnailWidth",null);
_.B([_.T("data.useThumbnailSize"),_.S("design:type",Object),_.S("design:paramtypes",[])],SU.prototype,"thumbnailHeight",null);SU=_.B([_.e({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],SU);
_.G(SU,"ytd-profile-column-user-info-renderer",function(){if(D4f!==void 0)return D4f;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return D4f=f},{mode:1});var $b=function(){return _.U.apply(this,arguments)||this};
_.y($b,_.U);$b.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]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$b.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],$b.prototype,"componentStyle",void 0);$b=_.B([_.e({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],$b);
_.G($b,"ytd-profile-column-renderer",function(){if(bKG!==void 0)return bKG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return bKG=f},{mode:1});var gy=function(){var f=_.U.apply(this,arguments)||this;f.componentStyle="NON_CENTERED_PROFILE";return f};
_.y(gy,_.U);gy.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
gy.prototype.getIcon=function(f){return f?"settings:"+f.toLowerCase():null};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gy.prototype,"data",void 0);gy=_.B([_.e({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],gy);
_.G(gy,"ytd-page-introduction-renderer",function(){if(Lrk!==void 0)return Lrk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Lrk=f},{mode:1});var J7t;var sI=function(){return _.U.apply(this,arguments)||this};
_.y(sI,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sI.prototype,"data",void 0);sI=_.B([_.e({is:"ytd-report-description-renderer",disableElementRegistration:!0})],sI);
_.G(sI,"ytd-report-description-renderer",function(){if(J7t!==void 0)return J7t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return J7t=f},{mode:1});var zEI;var Tfk;var nF=function(){return _.U.apply(this,arguments)||this};
_.y(nF,_.U);nF.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nF.prototype,"data",void 0);nF=_.B([_.e({is:"ytd-video-report-renderer",disableElementRegistration:!0})],nF);
_.G(nF,"ytd-video-report-renderer",function(){if(Tfk!==void 0)return Tfk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Tfk=f},{mode:1});var HKf;_.j6("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.j6("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var VV=function(){return _.U.apply(this,arguments)||this};
_.y(VV,_.U);VV.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.thumbnail]]"}}}}}};
VV.prototype.computeMessageStyle=function(f){return f};
VV.prototype.computeButtonOverride=function(f){var R;if((f==null?0:(R=f.style)==null?0:R.value)&&f.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],VV.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],VV.prototype,"shelf",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],VV.prototype,"panel",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.S("design:type",Boolean)],VV.prototype,"componentStyle",void 0);_.B([_.I({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],VV.prototype,"buttonOverride",void 0);VV=_.B([_.e({is:"ytd-message-renderer",disableElementRegistration:!0})],VV);
_.G(VV,"ytd-message-renderer",function(){if(HKf!==void 0)return HKf;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return HKf=f},{mode:1});var Yb=function(){return _.U.apply(this,arguments)||this};
_.y(Yb,_.U);Yb.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"}}}};
Yb.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Yb.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Vy.Object.defineProperties(Yb.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var f,R;return!!(((f=this.data)==null?0:f.header)&&((R=this.data)==null?0:R.table))}}});
Yb.prototype.onRequestError=Yb.prototype.onRequestError;_.B([_.z(_.Pp),_.S("design:type",Object)],Yb.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Yb.prototype,"data",void 0);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yb.prototype,"isUnifiedReportHistory",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yb.prototype,"onRequestError",null);Yb=_.B([_.e({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Yb);
_.G(Yb,"ytd-report-history-section-renderer",function(){if(zEI!==void 0)return zEI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zEI=f},{mode:1});var I_E;var vV=function(){var f=_.U.apply(this,arguments)||this;f.answerExpanded=!1;return f};
_.y(vV,_.U);vV.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vV.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vV.prototype,"answerExpanded",void 0);vV=_.B([_.e({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],vV);
_.G(vV,"ytd-handles-claiming-faq-renderer",function(){if(I_E!==void 0)return I_E;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return I_E=f},{mode:1});var Mft;var iN=function(){return _.U.apply(this,arguments)||this};
_.y(iN,_.U);_.B([_.I(),_.S("design:type",Object)],iN.prototype,"data",void 0);iN=_.B([_.e({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],iN);
_.G(iN,"ytd-handles-claiming-faq-section-renderer",function(){if(Mft!==void 0)return Mft;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Mft=f},{mode:1});var PYY;var ry=function(){var f=_.U.apply(this,arguments)||this;f.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";f.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";f.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";f.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";f.leftSquiggly=f.leftSquigglyLight;f.rightSquiggly=f.rightSquigglyLight;
f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return f};
_.y(ry,_.U);_.X=ry.prototype;_.X.updateLeftSquigglyStyle=function(){_.ZO(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.X.updateRightSquigglyStyle=function(){_.ZO(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.X.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),f?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
ry.prototype.updateRightSquigglyStyle=ry.prototype.updateRightSquigglyStyle;ry.prototype.updateLeftSquigglyStyle=ry.prototype.updateLeftSquigglyStyle;_.B([_.I(),_.S("design:type",Object)],ry.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],ry.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",String)],ry.prototype,"leftSquiggly",void 0);_.B([_.I(),_.S("design:type",String)],ry.prototype,"rightSquiggly",void 0);
_.B([_.qM("leftSquiggly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ry.prototype,"updateLeftSquigglyStyle",null);_.B([_.qM("rightSquiggly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ry.prototype,"updateRightSquigglyStyle",null);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ry.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ry.prototype,"actionButtonOverride",void 0);ry=_.B([_.e({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],ry);
_.G(ry,"ytd-handles-claiming-header-renderer",function(){if(PYY!==void 0)return PYY;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return PYY=f},{mode:1});var U4f;var fA=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";f.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";f.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";f.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
f.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";f.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";f.image0SquigglyBackground=f.image0LightSquigglyBackground;f.image1SquigglyBackground=f.image1LightSquigglyBackground;f.image3SquigglyBackground=f.image3LightSquigglyBackground;return f};
_.y(fA,_.U);_.X=fA.prototype;_.X.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.X.onDataChanged=function(){this.updateTitleAndImages()};
_.X.onThemeChanged=function(){this.updateTitleAndImages()};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
_.X.updateImage0SquigglyBackground=function(){_.ZO(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.X.updateImage1SquigglyBackground=function(){_.ZO(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.X.updateImage3SquigglyBackground=function(){_.ZO(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.X.updateTitleAndImages=function(){var f,R;((f=this.data)==null?void 0:(R=f.titleImages)==null?void 0:R.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))};
fA.prototype.updateImage3SquigglyBackground=fA.prototype.updateImage3SquigglyBackground;fA.prototype.updateImage1SquigglyBackground=fA.prototype.updateImage1SquigglyBackground;fA.prototype.updateImage0SquigglyBackground=fA.prototype.updateImage0SquigglyBackground;fA.prototype.onThemeChanged=fA.prototype.onThemeChanged;fA.prototype.onDataChanged=fA.prototype.onDataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],fA.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],fA.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"title0",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"title1",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"title2",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"title3",void 0);
_.B([_.I(),_.S("design:type",Object)],fA.prototype,"title4",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"image0",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"image1",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"image2",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"image3",void 0);_.B([_.I(),_.S("design:type",Object)],fA.prototype,"image4",void 0);_.B([_.I(),_.S("design:type",String)],fA.prototype,"image0SquigglyBackground",void 0);
_.B([_.I(),_.S("design:type",String)],fA.prototype,"image1SquigglyBackground",void 0);_.B([_.I(),_.S("design:type",String)],fA.prototype,"image3SquigglyBackground",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fA.prototype,"onDataChanged",null);_.B([_.qM("isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fA.prototype,"onThemeChanged",null);
_.B([_.qM("image0SquigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fA.prototype,"updateImage0SquigglyBackground",null);_.B([_.qM("image1SquigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fA.prototype,"updateImage1SquigglyBackground",null);
_.B([_.qM("image3SquigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fA.prototype,"updateImage3SquigglyBackground",null);fA=_.B([_.e({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],fA);
_.G(fA,"ytd-handles-claiming-title-images-section-renderer",function(){if(U4f!==void 0)return U4f;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return U4f=f},{mode:1});var eEt;var RO=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(RO,_.U);RO.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
RO.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f)};
RO.prototype.onCopyButtonClick=function(){var f=this,R,u,O;return _.k(function(c){return(R=f.data)!=null&&R.primaryChannelUrl?_.A(c,navigator.clipboard.writeText(((u=f.data)==null?0:u.encodedChannelUrl)?f.data.encodedChannelUrl:"https://"+_.$Z((O=f.data)==null?void 0:O.primaryChannelUrl)),0):c.jumpTo(0)})};
_.B([_.I(),_.S("design:type",Object)],RO.prototype,"data",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],RO.prototype,"ytComponentBehavior",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],RO.prototype,"isDarkTheme",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],RO.prototype,"ytActionHandlerBehavior",void 0);RO=_.B([_.e({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],RO);
_.G(RO,"ytd-handles-claiming-update-social-renderer",function(){if(eEt!==void 0)return eEt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return eEt=f},{mode:1});var GuG;var ub=function(){var f=_.U.apply(this,arguments)||this;f.JSC$13909_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";f.JSC$13909_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.squigglyBackground=f.JSC$13909_squigglyBackgroundLight;return f};
_.y(ub,_.U);ub.prototype.updateSquigglyBackgroundStyle=function(){_.ZO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ub.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.squigglyBackground=f?this.JSC$13909_squigglyBackgroundDark:this.JSC$13909_squigglyBackgroundLight};
ub.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),this.squigglyBackground=f?this.JSC$13909_squigglyBackgroundDark:this.JSC$13909_squigglyBackgroundLight)};
ub.prototype.updateSquigglyBackgroundStyle=ub.prototype.updateSquigglyBackgroundStyle;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ub.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ub.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],ub.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",String)],ub.prototype,"squigglyBackground",void 0);_.B([_.qM("squigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ub.prototype,"updateSquigglyBackgroundStyle",null);ub=_.B([_.e({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ub);
_.G(ub,"ytd-handles-claiming-vanity-info-renderer",function(){if(GuG!==void 0)return GuG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return GuG=f},{mode:1});var BfC;var OB=function(){var f=_.U.apply(this,arguments)||this;f.JSC$13912_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";f.JSC$13912_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";f.squigglyBackground=f.JSC$13912_squigglyBackgroundLight;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(OB,_.U);_.X=OB.prototype;_.X.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),this.squigglyBackground=f?this.JSC$13912_squigglyBackgroundDark:this.JSC$13912_squigglyBackgroundLight)};
_.X.updateSquigglyBackgroundStyle=function(){_.ZO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.X.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.X.detached=function(){this.stop()};
_.X.stop=function(){this.playerElement.stop()};
_.X.setupVideoPlayer=function(){var f=this,R,u;return _.k(function(O){R=f.data.videoId;u="http://i1.ytimg.com/vi/"+R+"/maxresdefault.jpg";f.playerElement.loadVideoWithPlayerVars({video_id:R,iurlhq:u});_.KG(O)})};
OB.prototype.onDataChanged=OB.prototype.onDataChanged;OB.prototype.updateSquigglyBackgroundStyle=OB.prototype.updateSquigglyBackgroundStyle;_.B([_.I({value:!1}),_.S("design:type",Boolean)],OB.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",String)],OB.prototype,"squigglyBackground",void 0);_.B([_.a4("#player"),_.S("design:type",Object)],OB.prototype,"playerElement",void 0);_.B([_.I(),_.S("design:type",Object)],OB.prototype,"data",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],OB.prototype,"ytActionHandlerBehavior",void 0);_.B([_.qM("squigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],OB.prototype,"updateSquigglyBackgroundStyle",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],OB.prototype,"onDataChanged",null);
OB=_.B([_.e({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],OB);
_.G(OB,"ytd-handles-claiming-video-item-renderer",function(){if(BfC!==void 0)return BfC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return BfC=f},{mode:1});var oqk;var XK=function(){var f=_.w_.apply(this,arguments)||this;f.dragging=!1;f.dragMouseStart=0;f.dragOffsetStart=0;f.containerWidthDiff=0;f.boundPrevClick=function(){f.set("offset",cj(f,f.offset-(f.scrollDistance||320)))};
f.boundNextClick=function(){f.set("offset",cj(f,f.offset+(f.scrollDistance||320)))};
f.boundScrollContainerMouseDown=function(R){f.dragMouseStart=R.clientX;f.dragOffsetStart=f.offset;f.dragging=!0};
f.boundScrollContainerDrag=function(R){f.dragging&&f.set("offset",cj(f,f.dragOffsetStart-(R.clientX-f.dragMouseStart)))};
f.boundMouseUp=function(){f.onMouseUp()};
f.boundWheelScroll=function(R){var u=0;Math.abs(R.deltaX)>=Math.abs(R.deltaY)?u=R.deltaX:R.shiftKey&&(u=R.deltaY);u!==0&&(f.offset+=u,R.stopPropagation(),R.preventDefault())};
f.boundChipCloudChipScrollIntoView=function(R){(R=R.detail)&&f.scrollChipIntoView(R)};
return f};
_.y(XK,_.w_);XK.prototype.attached=function(){var f=_.b(this.hostElement).querySelector("#scroll-container");f.addEventListener("wheel",this.boundWheelScroll);f.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);f.style.touchAction="pan-y";f.addEventListener("pointerdown",this.boundScrollContainerMouseDown);f.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
XK.prototype.detached=function(){var f=_.b(this.hostElement).querySelector("#scroll-container");f.removeEventListener("wheel",this.boundWheelScroll);f.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);f.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);f.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
XK.prototype.reset=function(){this.set("offset",0);_.su(this,this.setContainerWidthDiff);h0(this)};
var cj=function(f,R){return Math.min(Math.max(R,0),f.containerWidthDiff)};
XK.prototype.onMouseUp=function(){this.dragging=!1};
XK.prototype.transformContainer=function(){this.offset=cj(this,this.offset);var f=_.Tf("HTML_DIR")==="rtl"?"":"-";_.b(this.hostElement).querySelector("#chips").style.transform="translateX("+f+this.offset+"px)";h0(this)};
var h0=function(f){_.su(f,f.setButtonsState)};
XK.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=cj(this,this.offset));this.atStart=this.offset<=0};
XK.prototype.setContainerWidthDiff=function(){var f=_.b(this.hostElement).querySelector("#scroll-container"),R=_.b(this.hostElement).querySelector("#chips");f&&R&&(this.containerWidthDiff=R.clientWidth-f.clientWidth)};
XK.prototype.scrollChipIntoView=function(f){var R=_.b(this.hostElement).querySelector("#scroll-container");if(R){var u=this.atStart?0:106,O=this.atEnd?0:106;f.offsetLeft<this.offset+u?this.offset=cj(this,f.offsetLeft-u):f.offsetLeft+f.clientWidth>this.offset+R.clientWidth-O&&(this.offset=cj(this,f.offsetLeft+f.clientWidth+O-R.clientWidth))}};
XK.prototype.transformContainer=XK.prototype.transformContainer;_.B([_.I({value:0}),_.S("design:type",Number)],XK.prototype,"offset",void 0);_.B([_.I({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],XK.prototype,"atStart",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],XK.prototype,"atEnd",void 0);_.B([_.I(),_.S("design:type",Number)],XK.prototype,"scrollDistance",void 0);
_.B([_.qM("offset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XK.prototype,"transformContainer",null);XK=_.B([_.mt()],XK);var x4A;var S4k;var sdf=_.nf(function(f){var R=f.data;f=_.Z(_.qK(!1,void 0,"icHmSe"));var u=f.next().value,O=f.next().value;f={};f=_.KL("ytChipShapeChip",function(){a:switch(R==null?void 0:R().state){case 0:var h="ytChipShapeActive";break a;case 1:h="ytChipShapeDisabled";break a;default:h="ytChipShapeInactive"}return h},function(){var h=R().type===1||R().type===2,l=R();
return h||l!=null&&l.startIcon?l==null||!l.startIcon||l!=null&&l.text?h?"ytChipShapeEndIconPadding":(l==null?0:l.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(f.ytChipShapeFocused=function(){var h;
return u()&&((h=R())==null?void 0:h.state)!==1},f));
var c=function(h){if((R==null?void 0:R().state)!==1){var l,K;(K=(l=R()).onTap)==null||K.call(l,h)}};
return _.a("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Ff(function(){var h=_.vh().resolve(_.Y8(_.Oc));if(h){O(h.isKeyBoardInUse());var l,K;(K=(l=R()).onFocusIn)==null||K.call(l)}return!1}),
"on:focusout":_.Ff(function(){O(!1);return!1})},_.a($4t,{shouldWrapInButton:function(){return R().type!==2},
selected:function(){return R().state===0},
onClick:c,isDropdown:function(){return R().type===1},
accessibilityLabel:function(){return R().accessibilityLabel}},_.a("div",{class:f},_.a(_.Q,{cond:function(){return R().startIcon},
then:function(){return _.a(_.WM,{icon:function(){var h;return(h=R())==null?void 0:h.startIcon},
className:function(){return R().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return R().text},_.a(gqG,{shape:R,
onClick:c}))))},"zb");
sdf.idomCompat=!0;var $4t=_.nf(function(f){var R=_.Ff(function(u){f.onClick(u);return!1});
return _.a(_.Q,{cond:f.shouldWrapInButton,then:function(){return _.a("button",{class:"ytChipShapeButtonReset","on:click":R,role:function(){return f.isDropdown()?"combobox":"tab"},
"aria-label":f.accessibilityLabel,"aria-selected":f.selected},f.children)},
else:function(){return f.children}})},"Ab"),gqG=_.nf(function(f){var R=f.shape;
var u=f.onClick;var O=_.Ff(function(c){u(c);return!1});
return _.a(_.yM,null,_.a(_.t1,{when:function(){return R().type===1}},function(){return _.a(_.WM,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.a(_.t1,{when:function(){return R().type===2}},function(){return _.a("button",{class:"ytChipShapeButtonReset",
"on:click":O},_.a(_.WM,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.a(_.t1,{when:function(){return R().type===0}},function(){return _.a(_.RS,null)}))},"Bb");_.ii(sdf,"chip-shape",{props:{data:_.SG}});var Zf=function(){var f=_.U.apply(this,arguments)||this;f.disableDeselectEvent=!1;f.modern=_.E("web_modern_typography");f.useChipShape=_.E("web_chip_shape_defrag");f.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return f};
_.y(Zf,_.U);_.X=Zf.prototype;_.X.beforeRegister=function(){_.E("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.X.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.X.onSelectChipCommand=function(f){if(!this.selected&&this.data&&(f=_.t(f,woH),f.targetId&&f.targetId===this.data.targetId))this.onTap()};
_.X.onFilterChipTransformCommand=function(f){if(!this.selected&&this.data){var R;(f=(R=_.t(f,WzI))==null?void 0:R.chipUniqueId)&&f===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.X.dataChanged=function(){var f=this;_.su(this,function(){f.data&&f.data.isSelected&&!f.selected&&(f.scrollChipIntoView(),f.onTap())})};
_.X.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.X.computeChipStyle=function(f){return f!=null?f:"STYLE_DEFAULT"};
_.X.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.OJ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.OJ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.X.onFocus=function(){var f=_.vh().resolve(_.Y8(_.Oc));f&&f.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.X.scrollChipIntoView=function(){_.ul(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Vy.Object.defineProperties(Zf.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return tsl({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Zf.prototype.onFocus=Zf.prototype.onFocus;Zf.prototype.onTap=Zf.prototype.onTap;Zf.prototype.selectionChanged=Zf.prototype.selectionChanged;Zf.prototype.dataChanged=Zf.prototype.dataChanged;_.B([_.z(_.ET),_.S("design:type",Object)],Zf.prototype,"ironButtonState",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Zf.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Zf.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.mJ),_.S("design:type",Object)],Zf.prototype,"ironA11yKeysBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zf.prototype,"disableDeselectEvent",void 0);_.B([_.I(),_.S("design:type",Object)],Zf.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.icon"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Zf.prototype,"hasIcon",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.uniqueId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Zf.prototype,"isGnomeChip",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zf.prototype,"modern",void 0);_.B([_.I({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.S("design:type",String)],Zf.prototype,"chipStyle",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Zf.prototype,"selected",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zf.prototype,"useChipShape",void 0);_.B([_.T("data","selected"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zf.prototype,"chipShapeData",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"dataChanged",null);_.B([_.qM("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"selectionChanged",null);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"onTap",null);_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"onFocus",null);Zf=_.B([_.DO({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Zf);
_.G(Zf,"yt-chip-cloud-chip-renderer",function(){if(S4k===void 0){var f=document.createElement("template");_.N(f,'\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<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;x4A===void 0&&(x4A=document.createElement("template"));var O=x4A;u.call(R,O.content.cloneNode(!0),f.content.firstChild);S4k=f}f=S4k;return f},{mode:2});var lb=function(){var f=_.U.apply(this,arguments)||this;f.isDarkTheme=!1;f.notSticky=!1;f.transparentBackground=!1;f.shouldHide=!1;f.disableSticky=!1;f.fluidWidth=!1;f.isClipList=!1;f.defaultChipIndex=0;f.isPlaylist=!1;f.playlistVotingAnimationEnabled=_.E("web_enable_voting_animation");f.toolbarHeight=0;f.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return f};
_.y(lb,_.U);_.X=lb.prototype;
_.X.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.X.attached=function(){var f=this;document.addEventListener("scroll",_.ks(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var R;this.toolbarHeight=((R=document.querySelector("ytd-masthead"))==null?void 0:R.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(u){f.handleIntersect(u)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){f.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.X.detached=function(){var f;(f=this.intersectionObserver)==null||f.disconnect();var R;(R=this.resizeObserver)==null||R.disconnect();document.removeEventListener("scroll",_.ks(this,this.updateChipBarWidthAndTop))};
_.X.dataChanged=function(){var f=this,R,u,O;((O=_.t((R=this.data)==null?void 0:(u=R.contents)==null?void 0:u[0],U_f))==null?void 0:O.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var c=this.findSelectedChipIndex();this.selectedIndex!==c&&(this.selectedIndex=-1);_.su(this,function(){f.selectedIndex=c;f.updating=!1;f.ytScrollableChipCloudBehavior.reset()})};
_.X.findSelectedChipIndex=function(){var f;if((f=this.data)==null||!f.contents)return 0;f=this.data.contents;for(var R=0;R<f.length;R++){var u=void 0;if((u=_.t(f[R],U_f))==null?0:u.isSelected)return R}return 0};
_.X.computeStyle=function(f){return f};
_.X.handleChipCloudChipSelectAction=function(f){f=this.JSC$13931_chipsSelector.indexOf(f);f>-1&&this.JSC$13931_chipsSelector.selectIndex(f)};
_.X.handleChipCloudChipDeselectAction=function(){if(_.E("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],U_f))==null?void 0:u.navigationEndpoint;O&&_.OJ(this.hostElement,"yt-browse-section-list-reload-endpoint",[O]);this.JSC$13931_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.X.onGuideIsExpandedChanged=function(){var f=this.ytScrollableChipCloudBehavior;_.su(f,f.setContainerWidthDiff);h0(this.ytScrollableChipCloudBehavior)};
_.X.onResize=function(){var f=this.ytScrollableChipCloudBehavior;_.su(f,f.setContainerWidthDiff);h0(this.ytScrollableChipCloudBehavior)};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.X.handleIntersect=function(f){this.notSticky=this.isChannelPageGrid||this.disableSticky||f[0].intersectionRatio===1};
_.X.updateDimensions=function(){var f=this.ytRendererBehavior.parentComponent;if(f){var R,u=(R=f.headerElement)!=null?R:f;_.ZO(this.hostElement,{"--ytd-rich-grid-chips-bar-width":u.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.X.updateSelectedIndexFromBinding=function(f){this.selectedIndex=f.detail.value};
_.X.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var f;(f=this.sortFilterHeaderRendererElement)==null||f.setAttribute("is-playlist-page-with-filters","")}};
_.X.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.OP({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Vy.Object.defineProperties(lb.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 f,R,u=(f=this.data)==null?void 0:(R=f.contents)==null?void 0:R.find(function(O){return _.t(O,x_k)});
return{sortFilterHeaderRenderer:_.t(u,x_k)}}}});
lb.prototype.dispatchChipBarIsSticky=lb.prototype.dispatchChipBarIsSticky;lb.prototype.isPlaylistPageChanged=lb.prototype.isPlaylistPageChanged;lb.prototype.updateChipBarWidthAndTop=lb.prototype.updateChipBarWidthAndTop;lb.prototype.onResize=lb.prototype.onResize;lb.prototype.onGuideIsExpandedChanged=lb.prototype.onGuideIsExpandedChanged;lb.prototype.dataChanged=lb.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],lb.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],lb.prototype,"ironResizableBehavior",void 0);_.B([_.z(),_.S("design:type",XK)],lb.prototype,"ytScrollableChipCloudBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],lb.prototype,"data",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],lb.prototype,"selectedIndex",void 0);_.B([_.I({value:320}),_.S("design:type",Number)],lb.prototype,"scrollDistance",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"notSticky",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"transparentBackground",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.S("design:type",String)],lb.prototype,"componentStyle",void 0);_.B([_.I({selector:_.qd7}),_.S("design:type",Boolean)],lb.prototype,"guideIsExpanded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"shouldHide",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"disableSticky",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"fluidWidth",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"isClipList",void 0);_.B([_.I(),_.S("design:type",Object)],lb.prototype,"defaultChipIndex",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lb.prototype,"isPlaylist",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],lb.prototype,"playlistVotingAnimationEnabled",void 0);_.B([_.a4("#chips"),_.S("design:type",Object)],lb.prototype,"JSC$13931_chipsSelector",void 0);_.B([_.a4("ytd-sort-filter-header-renderer"),_.S("design:type",HTMLElement)],lb.prototype,"sortFilterHeaderRendererElement",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],lb.prototype,"updating",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lb.prototype,"dataChanged",null);_.B([_.qM("guideIsExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lb.prototype,"onGuideIsExpandedChanged",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lb.prototype,"onResize",null);
_.B([_.QR("isChannelPageGrid","disableSticky","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lb.prototype,"updateChipBarWidthAndTop",null);_.B([_.T("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lb.prototype,"isChannelPageGrid",null);_.B([_.T("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lb.prototype,"isHashtagLandingPage",null);
_.B([_.qM("isPlaylistPage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lb.prototype,"isPlaylistPageChanged",null);_.B([_.T("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lb.prototype,"isPlaylistPage",null);_.B([_.T("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lb.prototype,"isDisableDeselectEvent",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],lb.prototype,"sortFilterHeaderRendererData",null);_.B([_.I({reflectToAttribute:!0,selector:_.WZl}),_.S("design:type",String)],lb.prototype,"frostedGlassMode",void 0);_.B([_.qM("notSticky"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lb.prototype,"dispatchChipBarIsSticky",null);lb=_.B([_.e({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],lb);
_.G(lb,"ytd-feed-filter-chip-bar-renderer",function(){if(oqk!==void 0)return oqk;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return oqk=f},{mode:1});var nqF;var Vff=_.nf(function(f){var R=f.data;var u=f.buttonIndex;var O=f.selectedIndex;var c=f.onSelect;var h=function(){return u()===O()},l=function(){var K,q;
return(q=(K=R().text)==null?void 0:K.content)!=null?q:""};
f=_.fiB();return _.a("yt-toggleable-image-button-view-model",{class:function(){var K={};K=(K["toggleable-image-button-view-model-wiz"]=!0,K[""]=!0,K["toggleable-image-button-view-model-wiz__semi-transparent"]=O()!==-1&&!h(),K);return _.AS(K)},
tabindex:0,"aria-label":l,"aria-pressed":h,role:"button","on:keydown":f,"on:click":_.Ff(function(){c(R().onSubmitCommand);return!1})},_.a(_.Q,{cond:function(){return R().logo},
then:function(K){return _.a(_.gR,{data:K,className:function(){var q={};q=(q["toggleable-image-button-view-model-wiz__image"]=!0,q["toggleable-image-button-view-model-wiz__circular-radius"]=!(!R().backgroundColor||!R().backgroundColorDarkMode),q["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(h()&&R().backgroundColor&&R().backgroundColorDarkMode),q);return _.AS(q)},
alt:l,useWidth:!1,style:function(){if(h()&&R().backgroundColor&&R().backgroundColorDarkMode){var q=PL(Number(R().backgroundColorDarkMode),"1");var F=PL(Number(R().backgroundColor),"1");q="background: linear-gradient(180deg,"+q+","+F+") border-box;"}else q="";return q}})}}),_.a(_.CL,{model:{borderRadius:"16px"}}),_.a("p",{class:function(){var K={};
K=(K["toggleable-image-button-view-model-wiz__label"]=!0,K["toggleable-image-button-view-model-wiz__bold-text"]=h(),K);return _.AS(K)}},_.a(_.YO,{text:function(){return R().text}})))},"Cb");
Vff.idomCompat=!0;var vqC=_.nf(function(f){var R=f.data;f=_.Z(_.qK({index:-1,command:{}},void 0,"Zcqtsb"));var u=f.next().value,O=f.next().value;return _.a("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.a("div",{class:"nudge-form-view-model-wiz__form-options"},_.a(_.y5,{data:function(){return R().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(c,h){return _.a(Vff,{data:c.data,buttonIndex:h,selectedIndex:function(){return u().index},
onSelect:function(l){O({index:h(),command:l})}})}})),_.a(_.YO,{text:function(){return R().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.a("div",{class:"nudge-form-view-model-wiz__submit"},_.a(_.y5,{data:function(){return R().submitButton}},{buttonViewModel:function(c){return _.a(Y4k,{data:c.data,
isDisabled:function(){return u().index===-1},
onClick:function(){_.Ux(u().command)}})}})))},"Db");
vqC.idomCompat=!0;var Y4k=_.nf(function(f){var R=_.Qt(function(){return Object.assign({},f.data(),{state:f.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.a(_.TS,{data:R,onClick:f.onClick})},"Eb");_.ii(vqC,"yt-nudge-form-view-model",{props:{data:_.SG}});var kK=function(){var f=_.U.apply(this,arguments)||this;f.roundedContainer=!0;f.buttonUpdate=_.E("web_modern_buttons");f.isDarkMode=!1;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return f};
_.y(kK,_.U);_.X=kK.prototype;_.X.computeNudgeStyle=function(f){return f?"modernized-nudge":""};
_.X.handleDarkModeToggledAction=function(f){this.isDarkMode=f};
_.X.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.X.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"}}}};
_.X.computeIsHorizontalButtons=function(f){return f?!!f.applyModernizedStyle&&!!f.enableHorizontalButtons&&!!f.secondaryButton:!1};
_.Vy.Object.defineProperties(kK.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.data)==null?void 0:f.backgroundStyle)!=null?R:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.data)==null?void 0:f.contentsLocation)!=null?R:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.lightIconImage)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],kK.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],kK.prototype,"actionHandlerBehavior",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("isHideEnclosingAction"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],kK.prototype,"isHidden",null);_.B([_.I(),_.S("design:type",Object)],kK.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],kK.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],kK.prototype,"buttonUpdate",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.S("design:type",String)],kK.prototype,"nudgeStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.trimStyle"),_.S("design:type",String),_.S("design:paramtypes",[])],kK.prototype,"trimStyle",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.backgroundStyle"),_.S("design:type",String),_.S("design:paramtypes",[])],kK.prototype,"backgroundStyle",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.contentsLocation"),_.S("design:type",String),_.S("design:paramtypes",[])],kK.prototype,"contentsLocation",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.disableDropShadow"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],kK.prototype,"noShadow",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.lightIconImage"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],kK.prototype,"noIcon",null);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.S("design:type",Boolean)],kK.prototype,"isHorizontalButtons",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Object)],kK.prototype,"isDarkMode",void 0);kK=_.B([_.e({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],kK);
_.G(kK,"ytd-feed-nudge-renderer",function(){if(nqF!==void 0)return nqF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return nqF=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var iKY;var r7i;var KA=function(){var f=_.U.apply(this,arguments)||this;f.collapsed=!1;f.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return f};
_.y(KA,_.U);KA.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"}}}};
KA.prototype.handleRatingSelect=function(){var f;((f=this.data)==null?0:f.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
KA.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],KA.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],KA.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.HX),_.S("design:type",Object)],KA.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],KA.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KA.prototype,"collapsed",void 0);KA=_.B([_.e({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],KA);
_.G(KA,"ytd-slimline-survey-renderer",function(){if(r7i!==void 0)return r7i;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return r7i=f},{mode:1});var fdI;var qd=function(){return _.U.apply(this,arguments)||this};
_.y(qd,_.U);qd.prototype.maybeGetBackgroundColor=function(f){return this.isDarkMode?f.section2Color:f.section3Color};
qd.prototype.colorPaletteChanged=function(){var f=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;f&&(f==null?0:f.secondaryTitleColor)&&this.maybeGetBackgroundColor(f)?(this.hostElement.style.backgroundColor=_.I1(this.maybeGetBackgroundColor(f)),this.hostElement.style.color=_.I1(f.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
qd.prototype.colorPaletteChanged=qd.prototype.colorPaletteChanged;_.B([_.z(_.zH),_.S("design:type",Object)],qd.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qd.prototype,"data",void 0);_.B([_.I({selector:function(f){return f.ui.darkModeIsEnabled}}),
_.S("design:type",Boolean)],qd.prototype,"isDarkMode",void 0);_.B([_.I(),_.S("design:type",Object)],qd.prototype,"lightColorPalette",void 0);_.B([_.I(),_.S("design:type",Object)],qd.prototype,"darkColorPalette",void 0);_.B([_.qM("darkColorPalette","lightColorPalette","data","isDarkMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qd.prototype,"colorPaletteChanged",null);qd=_.B([_.e({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],qd);
_.G(qd,"ytd-endorsement-header-renderer",function(){if(fdI!==void 0)return fdI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return fdI=f},{mode:1});_.ii(_.LY,"yt-decorated-avatar-view-model",{props:{data:_.SG,className:_.SG}});var A0=function(){var f=_.U.apply(this,arguments)||this;f.fullHeight=_.E("web_rich_grid_media_full_height");f.showChannelAvatar=!0;f.hasPlaylistThumbnail=!1;f.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};f.prepareThumbnailForPageTransition=function(){_.E("web_thumbnail_to_watch_transition")&&(f.thumbnail.style.viewTransitionName="thumbnail-to-watch",f.cleanupThumbnailAfterPageTransition(f.thumbnail))};
return f};
_.y(A0,_.U);_.X=A0.prototype;
_.X.configureRendererStamper=function(){return{lazyLoadMenu:KY,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"}}}};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.shouldLazyLoadMenu=function(){var f=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.E("kevlar_modern_downloads_page")||!f};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13957_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:this.JSC$13957_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.X.getVideoPreviewOpts=function(){var f={},R;if((R=this.data)==null?0:R.multipleInlinePlaybackEndpoint)f=V_C;this.isRadio&&(f=n2E);return _.E("web_thumbnail_to_watch_transition")?Object.assign({},f,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):f};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13957_inlinePreviewHoverListener)==null||uk(f)};
_.X.getOwner=function(){var f,R,u;return((f=this.data)==null?void 0:(R=f.channelThumbnailSupportedRenderers)==null?void 0:R.channelThumbnailWithLinkRenderer)||_.t((u=this.data)==null?void 0:u.showProviderChannelThumbnail,DSt)};
_.X.updateLockupSize=function(){var f;((f=this.getOwner())==null?0:f.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.X.getFeedbackEndpoint=function(f){if(_.t(f,_.DS))return f;var R,u;f=(u=(R=_.t(f,_.kE))==null?void 0:R.commands)!=null?u:[];R=_.Z(f);for(u=R.next();!u.done;u=R.next())if(u=this.getFeedbackEndpoint(u.value))return u;return null};
_.X.computeNavigationEndpoint=function(f){return ow2(f==null?void 0:f.navigationEndpoint)};
_.X.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var f=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(f)!==JSON.stringify(this.data)&&this.set("data",f)}};
_.X.onDataChanged=function(){var f=this,R=this.getOwner();if(R){this.set("data.owner",R);var u,O,c,h,l,K=((u=this.data)==null?void 0:(O=u.shortBylineText)==null?void 0:(c=O.runs)==null?void 0:(h=c[0])==null?void 0:h.text)||((l=R.name)==null?void 0:l.simpleText);this.set("data.owner.title",K)}var q,F,w,m,W,C;R=((q=this.data)==null?void 0:(F=q.thumbnailRenderer)==null?void 0:F.playlistVideoThumbnailRenderer)||((w=this.data)==null?void 0:(m=w.thumbnailRenderer)==null?void 0:m.playlistCustomThumbnailRenderer)||
((W=this.data)==null?void 0:(C=W.thumbnailRenderer)==null?void 0:C.showCustomThumbnailRenderer);var d;((d=this.data)==null?0:d.thumbnail)||!R||this.set("data.thumbnail",R.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){f.updateLockupSize()});
var p;if(q=((p=this.data)==null?void 0:p.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(q);var J;((J=this.dismissActionToReplayEntity)==null?0:J.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.X.onHiddenChanged=function(){this.updateLockupSize()};
_.X.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.OJ(this.hostElement,"yt-terminate-video-preview-action");else{var f;(f=this.videoTitleLink)==null||f.focus()}};
_.X.metadataColorChanged=function(){var f;if(this.metadataColor&&((f=this.videoTitle)==null?0:f.style))this.videoTitle.style.color=_.I1(this.metadataColor);else{var R,u;!this.metadataColor&&((R=this.videoTitle)==null?0:(u=R.style)==null?0:u.color)&&(this.videoTitle.style.color="")}};
_.X.onDetailsClick=function(f){var R=this.computedNavigationEndpoint;R&&(_.$G(_.$S(f),this.hostElement,["A","BUTTON"])||_.ul(this.hostElement,"yt-navigate",{endpoint:R}))};
_.X.cleanupThumbnailAfterPageTransition=function(f){_.xLh(document,"yt-page-type-changed",function(){f.style.viewTransitionName=""})};
_.X.onRendererTap=function(){this.prepareThumbnailForPageTransition();var f,R,u=((f=this.data)==null?void 0:f.serviceEndpoint)||this.getFeedbackEndpoint((R=this.data)==null?void 0:R.navigationEndpoint);u&&_.t(u,_.DS)&&this.ytComponentBehavior.resolveCommand(u)};
_.X.onMouseDown=function(f){var R=f.target,u=this.computedNavigationEndpoint,O;f=R.href||((O=_.t(u==null?void 0:u.commandMetadata,_.vc))==null?void 0:O.url);O=R.data||u;f&&O&&oU2(f,O)};
_.X.computeVideoTitleText=function(){var f;if((f=this.data)==null?0:f.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.X.computeHasPlaylistThumbnail=function(f){var R,u,O,c,h;if((((R=f.thumbnailRenderer)==null?0:R.playlistVideoThumbnailRenderer)||((u=f.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer)||((O=f.thumbnailRenderer)==null?0:O.showCustomThumbnailRenderer)||((c=f.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((h=f.thumbnailRenderer)==null?0:h.playlistCustomThumbnailRenderer))&&f.thumbnailOverlays)for(R=0;R<f.thumbnailOverlays.length;R++)if(u=void 0,(u=f.thumbnailOverlays[R])==
null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Vy.Object.defineProperties(A0.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.E("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var f;return(f=this.data)==null?void 0:f.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var f;return(f=this.data)==null?void 0:f.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13957_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.a1(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.videoId)||((R=this.data)==null?void 0:R.playlistId)||""}}});
A0.prototype.onMouseDown=A0.prototype.onMouseDown;A0.prototype.metadataColorChanged=A0.prototype.metadataColorChanged;A0.prototype.onIsDismissedChanged=A0.prototype.onIsDismissedChanged;A0.prototype.onHiddenChanged=A0.prototype.onHiddenChanged;A0.prototype.onDataChanged=A0.prototype.onDataChanged;A0.prototype.handleReloadDownloadsInfo=A0.prototype.handleReloadDownloadsInfo;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],A0.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],A0.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],A0.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],A0.prototype,"ytdReduxBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],A0.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],A0.prototype,"entitySelectorType",void 0);_.B([_.I(),_.S("design:type",Boolean)],A0.prototype,"noEndpoints",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],A0.prototype,"isRadio",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],A0.prototype,"miniMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],A0.prototype,"fullHeight",void 0);
_.B([_.I(),_.S("design:type",Boolean)],A0.prototype,"showDarkVideoMetadata",void 0);_.B([_.I(),_.S("design:type",Boolean)],A0.prototype,"showLightVideoMetadata",void 0);_.B([_.I(),_.S("design:type",Number)],A0.prototype,"metadataColor",void 0);_.B([_.I(),_.S("design:type",Object)],A0.prototype,"showChannelAvatar",void 0);_.B([_.I(),_.S("design:type",Boolean)],A0.prototype,"hidden",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],A0.prototype,"showYtInteraction",void 0);
_.B([_.I(),_.S("design:type",String)],A0.prototype,"dismissedContentId",void 0);_.B([_.I({selectorArgs:["dismissedContentId"],selector:jZ2}),_.S("design:type",Object)],A0.prototype,"dismissActionToReplayEntity",void 0);
_.B([_.I({selectorArgs:["entitySelectorType","mediaId"],selector:function(f,R,u){if(_.E("kevlar_modern_downloads_page")&&u&&R&&R!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(R){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var O=ytn(f,u);if(O){R=_.Te(f,u);var c=IL(f,u),h=HN0(f,u);f=Mq(f,u);var l=Ku2(O,R,c,h);c=l.shortViewCountText;var K=l.publishedTimeText;l=l.badges;var q=f>0;h=lnh(O,R,h,f);O=_.WW(R)||R==="TRANSFER_STATE_FAILED"||R==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Qe(O.policyEntity)?
void 0:Ggl(u,f,O.videoEntity.lengthSeconds);R==="TRANSFER_STATE_PAUSED_BY_USER"&&u&&!_.E("dl_resume_click_killswitch")&&(O={offlineVideoEndpoint:{videoId:u,action:"ACTION_RESUME"}});u={shortViewCountText:c,publishedTimeText:K,badges:l,isWatched:q,navigationEndpoint:O,thumbnailOverlays:h}}else u=void 0;return u;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(R=dit(f,u))if(O=_.HW(f,u),h=_.NSl(f,u),O!=="TRANSFER_STATE_UNKNOWN"){u=kCB(R,O,h,u,QYl(f));break a}u=void 0}return u;default:_.Ih(new _.ts("Error: entitySelectorType defined but not matched in selector.",
f,R))}}}),
_.S("design:type",Object)],A0.prototype,"entityDrivenState",void 0);_.B([_.I({computed:"computeVideoTitleText(data)"}),_.S("design:type",Object)],A0.prototype,"videoTitleText",void 0);_.B([_.I({computed:"computeHasPlaylistThumbnail(data)"}),_.S("design:type",Object)],A0.prototype,"hasPlaylistThumbnail",void 0);_.B([_.I({computed:"computeNavigationEndpoint(data)"}),_.S("design:type",Object)],A0.prototype,"computedNavigationEndpoint",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],A0.prototype,"typographyBump",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("typographyBump"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],A0.prototype,"typographyBumpV2",null);_.B([_.a4("#video-title"),_.S("design:type",HTMLElement)],A0.prototype,"videoTitle",void 0);_.B([_.a4("#video-title-link"),_.S("design:type",HTMLElement)],A0.prototype,"videoTitleLink",void 0);
_.B([_.a4("#thumbnail"),_.S("design:type",HTMLElement)],A0.prototype,"thumbnail",void 0);_.B([_.a4("#dismissible"),_.S("design:type",HTMLElement)],A0.prototype,"JSC$13957_dismissibleMedia",void 0);_.B([_.T("data.menu"),_.S("design:type",Object),_.S("design:paramtypes",[])],A0.prototype,"lazyLoadMenu",null);_.B([_.T("data.menu"),_.S("design:type",Object),_.S("design:paramtypes",[])],A0.prototype,"immediateLoadMenu",null);
_.B([_.QR("entityDrivenState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A0.prototype,"handleReloadDownloadsInfo",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A0.prototype,"onDataChanged",null);_.B([_.QR("hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A0.prototype,"onHiddenChanged",null);
_.B([_.qM("isDismissed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A0.prototype,"onIsDismissedChanged",null);_.B([_.qM("metadataColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A0.prototype,"metadataColorChanged",null);_.B([_.Kf("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],A0.prototype,"onMouseDown",null);
_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],A0.prototype,"isHovered",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],A0.prototype,"useAvatar",null);_.B([_.T("data","entitySelectorType"),_.S("design:type",String),_.S("design:paramtypes",[])],A0.prototype,"mediaId",null);A0=_.B([_.e({is:"ytd-rich-grid-media",disableElementRegistration:!0})],A0);
var RkG=_.Ox()(A0,"ytd-rich-grid-media",function(){if(iKY!==void 0)return iKY;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return iKY=f},{mode:_.c7("kevlar_poly_si_batch_j072")?1:2});var uvF;var aO=function(){var f=_.U.apply(this,arguments)||this;f.removeMaxWidth=!0;f.insetMetadata=!1;return f};
_.y(aO,_.U);_.X=aO.prototype;_.X.configureRendererStamper=function(){return{innerMenu:KY,outerMenu:Object.assign({},KY,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.onDataChanged=function(){var f,R=((f=this.data)==null?void 0:f.trackingParams)||"";R&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(R));var u;((u=this.dismissActionToReplayEntity)==null?0:u.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13962_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:this.JSC$13962_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:YKA})};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13962_inlinePreviewHoverListener)==null||uk(f)};
_.X.onRendererTap=function(){var f,R,u=(f=this.data)==null?void 0:(R=f.serviceEndpoints)==null?void 0:R[0];_.t(u,_.DS)&&this.componentBehavior.resolveCommand(u)};
_.X.onDetailsClick=function(f){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint;u&&(_.$G(_.$S(f),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(u))};
_.X.onShow=function(){var f=this.data;f.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(f.onFirstVisibleCommand),delete f.onFirstVisibleCommand)};
_.Vy.Object.defineProperties(aO.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var f;return this.insetMetadata?void 0:(f=this.data)==null?void 0:f.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var f;return this.insetMetadata?(f=this.data)==null?void 0:f.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var f=this.data;if(f!=null&&f.badge&&(f=_.t(f.badge,JVE))){var R,u,O;return[{metadataBadgeRenderer:{label:((R=f.label)==null?void 0:(u=R.runs)==null?void 0:u[0].text)||((O=f.label)==null?void 0:O.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var f=this.data;return Object.assign({},f.headline,{accessibility:f.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return this.isSlimShort?(f=this.computedTitle)==null?void 0:(R=f.accessibility)==null?void 0:(u=R.accessibilityData)==null?void 0:u.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13962_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
aO.prototype.onDataChanged=aO.prototype.onDataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],aO.prototype,"componentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],aO.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.HX),_.S("design:type",Object)],aO.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],aO.prototype,"ytdReduxBehavior",void 0);_.B([_.a4("ytd-thumbnail"),_.S("design:type",HTMLElement)],aO.prototype,"thumbnail",void 0);_.B([_.a4("#dismissible"),_.S("design:type",HTMLElement)],aO.prototype,"JSC$13962_dismissibleMedia",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],aO.prototype,"removeMaxWidth",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],aO.prototype,"insetMetadata",void 0);_.B([_.I(),_.S("design:type",String)],aO.prototype,"dismissedContentId",void 0);_.B([_.I({selectorArgs:["dismissedContentId"],selector:jZ2}),_.S("design:type",Object)],aO.prototype,"dismissActionToReplayEntity",void 0);_.B([_.T("insetMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],aO.prototype,"thumbnailObjectFit",null);
_.B([_.T("data","insetMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],aO.prototype,"innerMenu",null);_.B([_.T("data","insetMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],aO.prototype,"outerMenu",null);_.B([_.I(),_.S("design:type",Object)],aO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],aO.prototype,"miniMode",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aO.prototype,"onDataChanged",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],aO.prototype,"shortsBadges",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],aO.prototype,"isShort",null);
_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],aO.prototype,"isSlimShort",null);_.B([_.T("data","isShort"),_.S("design:type",Object),_.S("design:paramtypes",[])],aO.prototype,"computedTitle",null);_.B([_.T("isSlimShort","computedTitle"),_.S("design:type",Object),_.S("design:paramtypes",[])],aO.prototype,"computedAccessibilityLabel",null);
_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],aO.prototype,"isHovered",null);aO=_.B([_.e({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],aO);
_.G(aO,"ytd-rich-grid-slim-media",function(){if(uvF!==void 0)return uvF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return uvF=f},{mode:_.c7("kevlar_poly_si_batch_j063")?1:2});var O_H;var c$C;var FK=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(FK,_.U);FK.prototype.computeIcon=function(f){return f&&f.iconType?"yt-sys-icons:"+f.iconType.toLowerCase():""};
FK.prototype.onMouseEnter=function(){this.isHovered=!0};
FK.prototype.onMouseLeave=function(){this.isHovered=!1};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FK.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],FK.prototype,"isHovered",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FK.prototype,"darkerDarkTheme",void 0);FK=_.B([_.e({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],FK);
_.G(FK,"ytd-expand-on-hover-card-renderer",function(){if(c$C!==void 0)return c$C;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return c$C=f},{mode:1});var Xal,hkC=function(){if(Xal!==void 0)return Xal;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Xal=f};_.j6("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var wi=function(){var f=_.U.apply(this,arguments)||this;f.compactStyle=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(wi,_.U);_.X=wi.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.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"}}}};
_.X.computeHideDot=function(f){return!(f&&f.subscriberCountText&&f.videoCountText)||this.compactStyle};
_.X.hasDualButtons=function(f){return f&&f.purchaseButton&&f.subscribeButton};
_.X.backgroundColorChanged=function(){if(this.data!==void 0){var f=this.data.backgroundColor;this.isDarkTheme&&(f=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=f!=null?_.I1(f):"transparent"}};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.onTap=function(f){var R,u,O=((R=this.data)==null?void 0:R.navigationEndpoint)||((u=this.data)==null?void 0:u.serviceEndpoint);_.t(O,_.OY)&&(O&&_.vh().resolve(_.rv).resolveCommand(O,{form:{element:this.hostElement}}),f.preventDefault())};
_.X.computeChannelEndpoint=function(f){return _.t(f,_.OY)?null:f};
_.X.computeHrefEndpoint=function(f){return _.t(f,_.OY)?null:this.componentBehavior.computeHref_(f)};
_.X.computeChannelRendererStyle=function(f){return f};
_.X.computeIconSize=function(f){return f?108:136};
_.Vy.Object.defineProperties(wi,{template:{configurable:!0,enumerable:!0,get:function(){return hkC()}}});
wi.prototype.backgroundColorChanged=wi.prototype.backgroundColorChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],wi.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],wi.prototype,"componentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],wi.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],wi.prototype,"isDarkTheme",void 0);_.B([_.I({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.S("design:type",String)],wi.prototype,"channelRendererStyle",void 0);_.B([_.I({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],wi.prototype,"dualButtons",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],wi.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],wi.prototype,"biggerThumbStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wi.prototype,"compactStyle",void 0);_.B([_.qM("data","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wi.prototype,"backgroundColorChanged",null);wi=_.B([_.e({is:"ytd-channel-renderer",disableElementRegistration:!0})],wi);_.G(wi,"ytd-channel-renderer",function(){return hkC()},{mode:1});var Z_k;var ldI;_.j6("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var mk=function(){var f=_.U.apply(this,arguments)||this;f.displayItemCount=2;f.collections=_.E("web_modern_collections_v2");f.hasPlaylistThumbnail=!1;f.stackThumbnailSize="large";return f};
_.y(mk,_.U);_.X=mk.prototype;_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.X.computeFirstVideos=function(f,R){return f&&R?f.slice(0,R):[]};
_.X.computeThumbnailWidth=function(f,R){return f?R==="BIG"?500:R==="MASSIVE"?600:R==="MEDIUM"?450:420:360};
_.X.computeThumbnailHeight=function(f,R){return f?R==="BIG"?280:R==="MASSIVE"?337:234:202};
_.X.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13975_inlinePreviewHoverListener)==null||uk(f)};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13975_inlinePreviewHoverListener=$O({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:V_C,thumbnailElement:this.thumbnail})};
_.X.computeHasPlaylistThumbnail=function(f){var R,u;if((((R=f.thumbnailRenderer)==null?0:R.playlistVideoThumbnailRenderer)||((u=f.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer))&&f.thumbnailOverlays)for(R=0;R<f.thumbnailOverlays.length;R++)if(u=void 0,(u=f.thumbnailOverlays[R])==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Vy.Object.defineProperties(mk.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13975_inlinePreviewHoverListener)==null?0:D7(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mk.prototype.dataChanged=mk.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],mk.prototype,"ytdLockupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mk.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],mk.prototype,"displayItemCount",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],mk.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],mk.prototype,"biggerThumbsStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],mk.prototype,"collections",void 0);_.B([_.I({computed:"computeHasPlaylistThumbnail(data)"}),_.S("design:type",Object)],mk.prototype,"hasPlaylistThumbnail",void 0);_.B([_.I(),_.S("design:type",String)],mk.prototype,"stackThumbnailSize",void 0);_.B([_.a4("ytd-thumbnail"),_.S("design:type",HTMLElement)],mk.prototype,"thumbnail",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mk.prototype,"dataChanged",null);_.B([_.T("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],mk.prototype,"isHovered",null);mk=_.B([_.e({is:"ytd-radio-renderer",disableElementRegistration:!0})],mk);
_.G(mk,"ytd-radio-renderer",function(){if(ldI!==void 0)return ldI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ldI=f},{mode:_.c7("kevlar_poly_si_batch_j058")?1:2});var knH;_.j6("itemSectionRenderer","showRenderer","ytd-show-renderer");var Qx=function(){return _.U.apply(this,arguments)||this};
_.y(Qx,_.U);Qx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Qx.prototype.computeThumbnailWidth=function(f){return f?360:246};
Qx.prototype.computeUseProminentThumbs=function(f){return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Qx.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Qx.prototype,"isSearch",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.S("design:type",Boolean)],Qx.prototype,"useProminentThumbs",void 0);Qx=_.B([_.e({is:"ytd-show-renderer",disableElementRegistration:!0})],Qx);
_.G(Qx,"ytd-show-renderer",function(){if(knH!==void 0)return knH;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return knH=f},{mode:1});_.j6("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Wj=function(){var f=_.U.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.y(Wj,_.U);Wj.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"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Wj.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Wj.prototype,"isRichGrid",void 0);Wj=_.B([_.e({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Wj);
_.G(Wj,"ytd-feed-entry-renderer",function(){if(Z_k!==void 0)return Z_k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Z_k=f},{mode:1});var KbE;var EB=function(){return _.U.apply(this,arguments)||this};
_.y(EB,_.U);EB.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.B([_.z(_.zH),_.S("design:type",Object)],EB.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],EB.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],EB.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.DH,value:3}),_.S("design:type",Number)],EB.prototype,"itemsPerRow",void 0);
EB=_.B([_.e({is:"ytd-link-card-renderer",disableElementRegistration:!0})],EB);
_.G(EB,"ytd-link-card-renderer",function(){if(KbE!==void 0)return KbE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KbE=f},{mode:1});var qgE;var t0=function(){return _.U.apply(this,arguments)||this};
_.y(t0,_.U);_.X=t0.prototype;_.X.configureRendererStamper=function(){return{"data.menu":KY,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.onRendererTap=function(f){if(!this.ytdDismissibleItemBehavior.isDismissed){var R,u=(R=this.data)==null?void 0:R.navigationEndpoint;u&&!_.$G(_.$S(f),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(u)?_.$G(_.$S(f),this.hostElement,["A"])||_.ul(this.hostElement,"yt-navigate",{endpoint:u}):this.ytComponentBehavior.resolveCommand(u,{}))}};
_.X.maybeComputeHref=function(f){return this.ytComponentBehavior.computeHref_(f,!0)};
_.X.getNavigationCommand=function(f){return this.isNavigationCommand(f)?f:null};
_.X.isNavigationCommand=function(f){return f?_.t(f,_.wY)||_.t(f,_.$7)||_.t(f,_.oh)?!0:!1:!1};
t0.prototype.onRendererTap=t0.prototype.onRendererTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],t0.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],t0.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],t0.prototype,"data",void 0);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],t0.prototype,"onRendererTap",null);t0=_.B([_.e({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],t0);
_.G(t0,"ytd-lumiere-promo-item-image-renderer",function(){if(qgE!==void 0)return qgE;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qgE=f},{mode:1});var A$t;var CA=function(){return _.U.apply(this,arguments)||this};
_.y(CA,_.U);CA.prototype.computeLandscapeThumbnail=function(){var f;return((f=this.data)==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],CA.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],CA.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],CA.prototype,"miniMode",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.DH}),_.S("design:type",Number)],CA.prototype,"itemsPerRow",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.S("design:type",Boolean)],CA.prototype,"landscapeThumbnail",void 0);CA=_.B([_.e({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],CA);
_.G(CA,"ytd-lumiere-shelf-details-renderer",function(){if(A$t!==void 0)return A$t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return A$t=f},{mode:_.c7("kevlar_poly_si_batch_j076")?1:2});var adk;var yx=function(){return _.U.apply(this,arguments)||this};
_.y(yx,_.U);yx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yx.prototype,"data",void 0);yx=_.B([_.e({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],yx);
_.G(yx,"ytd-primetime-promo-details-renderer",function(){if(adk!==void 0)return adk;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return adk=f},{mode:1});var FbI;var di=function(){return _.U.apply(this,arguments)||this};
_.y(di,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],di.prototype,"data",void 0);di=_.B([_.e({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],di);
_.G(di,"ytd-panel-show-style-metadata-renderer",function(){if(FbI!==void 0)return FbI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FbI=f},{mode:1});var wal;var Nd=function(){return _.U.apply(this,arguments)||this};
_.y(Nd,_.U);_.X=Nd.prototype;_.X.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.X.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.X.computeThumbnail=function(f){if(f)return f.smallFormFactorBackgroundThumbnail||f.largeFormFactorBackgroundThumbnail};
_.X.maybeComputeHref=function(f){return this.ytComponentBehavior.computeHref_(f,!0)};
_.X.isNavigationCommand=function(f){return f?_.t(f,_.wY)||_.t(f,_.$7)||_.t(f,_.oh)?!0:!1:!1};
_.X.getNavigationCommand=function(f){return this.isNavigationCommand(f)?f:null};
Nd.prototype.onPanelTap=Nd.prototype.onPanelTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Nd.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Nd.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],Nd.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.S("design:type",Boolean)],Nd.prototype,"modernButtons",void 0);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nd.prototype,"onPanelTap",null);Nd=_.B([_.e({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Nd);
_.G(Nd,"ytd-primetime-promo-panel-renderer",function(){if(wal!==void 0)return wal;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return wal=f},{mode:1});_.ii(_.nf(function(f){f=_.sU(f,{data:{},useFullWidth:!1});var R=f.data,u=f.useFullWidth,O=function(){return R().caption},c=function(){return R().image},h=function(){return _.H7(R().onTap)};
f={};f=_.KL("ytTeaserCardViewModelHost",(f.ytTeaserCardViewModelUseFullWidth=function(){return u()},f));
return _.a("teaser-card-view-model",{class:f},_.a(_.Q,{cond:function(){return h()},
then:function(){return _.a(I6G,{className:"ytTeaserCardViewModelLink",command:h,forceNewState:!0,useATagConfig:!0},_.a("div",{class:"ytTeaserCardViewModelImageContainer"},_.a(_.Q,{cond:c,then:function(l){return _.a(_.gR,{data:l,className:"ytTeaserCardViewModelImage",alt:""})}})),_.a("p",{class:"ytTeaserCardViewModelCaption"},O))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.SG,
useFullWidth:_.SG}});var m8C=new _.Vi("RICH_GRID_VIDEO_RENDERER_TOKEN");_.ii(_.nf(function(f){var R=f.data;var u=f.showYtInteractionInContent;var O=function(){return!!R().selectableFeedback};
f=_.Z(_.qK(!1,void 0,"nblDw"));var c=f.next().value,h=f.next().value;_.bt(function(){var W=_.t(R().primaryButton,_.Np);(W==null?0:W.isToggled)&&h(W.isToggled)});
f=_.Ff(function(W){if(!O())return!1;if(c()){var C;var d=(C=R().selectableFeedback)==null?void 0:C.onDeselect}else{var p;d=(p=R().selectableFeedback)==null?void 0:p.onSelect}d&&_.Ux(d,{form:{element:W.target}});h(!c());if(W=_.t(R().primaryButton,_.Np))W.isToggled=c();return!1});
var l=function(){if(!O()){var W,C=(W=R().loggingDirectives)==null?void 0:W.trackingParams;C&&_.Zn(_.vh().resolve(_.Cq),C)}},K=_.RbB(),q=function(){var W;
return O()?(W=R().selectableFeedback)==null?void 0:W.a11yLabel:void 0},F=function(){return O()?{toggled:c()}:{}},w=_.vh().resolve(_.Y8(m8C)),m={};
return _.a("yt-feedback-item-renderer",{class:_.KL("ytFeedbackItemRendererHost",(m.ytFeedbackItemRendererSelectableFeedback=O,m)),"on:click":f,"on:keydown":K,title:q,"aria-label":q,"aria-pressed":function(){return O()?c():void 0},
tabindex:function(){return O()?0:void 0},
role:function(){return O()?"button":void 0}},_.a("div",{class:"ytFeedbackItemRendererContentContainer"},_.a(_.y5,{data:function(){return R().content}},{videoRenderer:function(W){return _.a(w,{data:W.data,
showYtInteraction:u})},
lockupViewModel:function(W){return _.a(_.RE,{data:W.data,containerType:2})}})),_.a("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.a(_.y5,{data:function(){return R().primaryButton}},{toggleButtonViewModel:function(W){return _.a(_.Lr,{data:W.data,
buttonShapeOverrides:F,disableExplicitClickLogging:!0,onToggle:l})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.SG,
showYtInteractionInContent:_.SG}});var LA=function(){var f=_.U.apply(this,arguments)||this;f.isShortsGrid=!1;f.isCompactGrid=!1;f.isShortsPanelGrid=!1;f.renderedFromRichGrid=!1;f.isInFirstColumn=!1;f.noGutterMargins=!1;f.isInlineGroupItem=!1;f.insetMetadata=!1;f.noBottomMarginInAds=_.E("web_no_bottom_margin_for_home_ad_buttons");f.force16By9ThumbnailAspectRatio=!1;f.useCompactList=!1;f.containerType=2;f.thumbnailTargetWidth=9999;f.isResponsiveGrid=!1;f.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};f.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};f.hoverListener=f.hover.bind(f);f.leaveListener=f.leave.bind(f);f.highlighted=!1;f.JSC$14010_unsubscribeFromInlinePreviewIsActive=function(){};
return f};
_.y(LA,_.U);_.X=LA.prototype;_.X.computeContainerType=function(){return this.useCompactList?3:2};
_.X.computeThumbnailTargetWidth=function(){var f;return(f=this.itemWidth)!=null?f:9999};
_.X.updateIsInFirstColumn=function(){var f;this.isInFirstColumn=((f=this.data)==null?void 0:f.colIndex)===0};
_.X.observerContainerType=function(){if(this.lockup){var f=this.lockup;f.containerType=this.containerType;f.sizing=this.sizing;f.typographyBump=this.typographyBump;f.itemWidth=this.itemWidth}this.richGridMedia&&_.E("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.E("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.X.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.X.leave=function(f){f=f.relatedTarget;var R=document.querySelector("ytd-video-preview");f&&R&&_.OU(R).contains(f)||this.removeAndCleanupHighlight()};
_.X.hover=function(){var f;if(!this.highlighted&&(!_.E("web_enable_rich_item_on_focus_effect")||(f=this.data)!=null&&f.onFocusEffect)){var R,u;((R=this.data)==null?void 0:(u=R.onFocusEffect)==null?void 0:u.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(f=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:f,boxShadow:"0 0 0 10px "+f}));var O,c;((O=this.data)==null?void 0:(c=O.onFocusEffect)==null?void 0:
c.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.X.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};
_.X.registerHoverHighlightListeners=function(){var f=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14010_unsubscribeFromInlinePreviewIsActive=_.aC(_.sP(),_.FZD,function(R){f.highlighted&&!R&&f.removeAndCleanupHighlight()})};
_.X.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14010_unsubscribeFromInlinePreviewIsActive()};
_.X.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.X.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.X.getBackgroundColor=function(){var f,R,u=(f=this.data)==null?void 0:(R=f.onFocusEffect)==null?void 0:R.onFocusColor;if(u){if(document.documentElement.hasAttribute("dark")&&(u==null?0:u.darkTheme))return _.I1(u==null?void 0:u.darkTheme);if(u==null?0:u.lightTheme)return _.I1(u==null?void 0:u.lightTheme)}};
_.X.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var f=_.z4(),R,u,O;f&&((R=this.data)==null?0:R.trackingParams)&&((u=this.data)==null?void 0:u.colIndex)!=null&&((O=this.data)==null?void 0:O.rowIndex)!=null&&_.gA(f,_.t4(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.X.isSlimMediaRenderer=function(f){return!!_.t(f==null?void 0:f.content,_.ZWl)||!!_.t(f==null?void 0:f.content,hoI)||!!_.t(f==null?void 0:f.content,_.Jt)||!!_.t(f==null?void 0:f.content,pqC)};
_.X.isPostRenderer=function(){var f,R;return!!_.t((f=this.data)==null?void 0:f.content,aSF)||!!_.t((R=this.data)==null?void 0:R.content,FzH)};
_.X.computeIsGameCardShelf=function(){var f;return!!_.t((f=this.data)==null?void 0:f.content,FCt)};
_.X.computeIsMiniGameCardShelf=function(){var f,R;return!!_.t((f=this.data)==null?void 0:f.content,Jkk)||!!_.t((R=this.data)==null?void 0:R.content,zJI)};
_.X.computeIsTeaserCard=function(){var f;return!!_.t((f=this.data)==null?void 0:f.content,zJI)};
_.X.computeIsSelectableFeedbackItem=function(){var f,R;return!((R=_.t((f=this.data)==null?void 0:f.content,_.Hpf))==null||!R.selectableFeedback)};
_.X.computeContainsLumierePosters=function(){var f,R;return((R=_.t((f=this.data)==null?void 0:f.content,NIA))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.X.computeIsExpandOnHoverCardShelf=function(){var f;return!!_.t((f=this.data)==null?void 0:f.content,dSC)};
_.X.computeIsLinkCardShelf=function(){var f;return!!_.t((f=this.data)==null?void 0:f.content,HNG)};
_.X.computeIsReelItemStyleAvatarCircle=function(f){var R;return((R=_.t(f==null?void 0:f.content,_.Jt))==null?void 0:R.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.X.computeIsLinkCardFullWidth=function(f,R){var u;return((u=_.t(f==null?void 0:f.content,HNG))==null?void 0:u.useFullWidth)||R<=2};
_.Vy.Object.defineProperties(LA.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.E("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.E("web_enable_rich_item_on_focus_effect")||_.E("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.E("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.E("web_shorts_2_by_3_lockups_study")||_.E("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
LA.prototype.richGridHoverHighlightChanged=LA.prototype.richGridHoverHighlightChanged;LA.prototype.observerContainerType=LA.prototype.observerContainerType;LA.prototype.updateIsInFirstColumn=LA.prototype.updateIsInFirstColumn;_.B([_.z(_.zH),_.S("design:type",Object)],LA.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],LA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],LA.prototype,"ytdLockupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LA.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.S("design:type",Boolean)],LA.prototype,"isPost",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.S("design:type",Boolean)],LA.prototype,"containsLumierePosters",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.S("design:type",Boolean)],LA.prototype,"isSlimMedia",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.S("design:type",Boolean)],LA.prototype,"isGameCardShelf",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.S("design:type",Boolean)],LA.prototype,"isMiniGameCardShelf",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.S("design:type",Boolean)],LA.prototype,"isTeaserCard",void 0);_.B([_.I({computed:"computeIsSelectableFeedbackItem(data)"}),_.S("design:type",Boolean)],LA.prototype,"isSelectableFeedbackItem",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"isShortsGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],LA.prototype,"isSlimGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"isCompactGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"isShortsPanelGrid",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.S("design:type",Boolean)],LA.prototype,"isExpandOnHoverCardShelf",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.S("design:type",Boolean)],LA.prototype,"isLinkCardShelf",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.DH,value:3}),_.S("design:type",Number)],LA.prototype,"itemsPerRow",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"renderedFromRichGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"isInFirstColumn",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"noGutterMargins",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"isInlineGroupItem",void 0);_.B([_.I(),_.S("design:type",Object)],LA.prototype,"insetMetadata",void 0);
_.B([_.I(),_.S("design:type",Object)],LA.prototype,"noBottomMarginInAds",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],LA.prototype,"isShelfItem",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.S("design:type",Boolean)],LA.prototype,"isReelItemStyleAvatarCircle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.S("design:type",Boolean)],LA.prototype,"isLinkCardFullWidth",void 0);
_.B([_.I(),_.S("design:type",Object)],LA.prototype,"force16By9ThumbnailAspectRatio",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"useCompactList",void 0);_.B([_.I(),_.S("design:type",String)],LA.prototype,"sizing",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],LA.prototype,"typographyBump",void 0);_.B([_.I(),_.S("design:type",Number)],LA.prototype,"itemWidth",void 0);_.B([_.I(),_.S("design:type",Boolean)],LA.prototype,"isHomeShelf",void 0);
_.B([_.I(),_.S("design:type",Boolean)],LA.prototype,"isHomeGrid",void 0);_.B([_.a4("yt-lockup-view-model"),_.S("design:type",HTMLElement)],LA.prototype,"lockup",void 0);_.B([_.a4("ytd-rich-grid-media"),_.S("design:type",HTMLElement)],LA.prototype,"richGridMedia",void 0);_.B([_.a4("ytd-ad-slot-renderer"),_.S("design:type",HTMLElement)],LA.prototype,"adSlotRenderer",void 0);_.B([_.I({computed:"computeContainerType(useCompactList)"}),_.S("design:type",Object)],LA.prototype,"containerType",void 0);
_.B([_.I({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.S("design:type",Object)],LA.prototype,"thumbnailTargetWidth",void 0);_.B([_.T("showYtInteractionOnRichItem"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],LA.prototype,"showYtInteractionOnRichGridMedia",null);_.B([_.T("isSelectableFeedbackItem","richGridHoverHighlight"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],LA.prototype,"showYtInteractionOnRichItem",null);
_.B([_.T("typographyBump","isHomeGrid"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],LA.prototype,"richTypographyBump",null);_.B([_.I({reflectToAttribute:!0}),_.T("isShortsGrid","isCompactGrid"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],LA.prototype,"richGridHoverHighlight",null);_.B([_.T("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.S("design:type",Number),_.S("design:paramtypes",[])],LA.prototype,"shortsLockupViewModelAspectRatio",null);
_.B([_.T("isInlineGroupItem"),_.S("design:type",Number),_.S("design:paramtypes",[])],LA.prototype,"shortsLockupViewModelScrimStyle",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LA.prototype,"updateIsInFirstColumn",null);_.B([_.qM("containerType","sizing","typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LA.prototype,"observerContainerType",null);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LA.prototype,"isResponsiveGrid",void 0);_.B([_.I(),_.S("design:type",Object)],LA.prototype,"lockupExperiments",void 0);_.B([_.qM("richGridHoverHighlight"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LA.prototype,"richGridHoverHighlightChanged",null);LA=_.B([_.e({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],LA);
_.QTi=_.Ox()(LA,"ytd-rich-item-renderer",function(){if(O_H===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);O_H=f}f=O_H;return f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var D07={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var U00=_.S8(_.Fa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var WbF;var bb=function(){var f=_.U.apply(this,arguments)||this;f.useResponsiveGrid=!1;f.hidden=!1;f.standardShelfMargins=_.E("web_rich_grid_standard_shelf_margins");f.isShowMoreHidden=!1;f.isExpanded=!1;f.isInnerShelf=!1;f.allVideosCount=0;f.allPlaylistCount=0;f.haveSmartDownloadsCompleted=!1;f.isShowLessHidden=!0;f.restrictContentsOverflow=!1;f.firstShownIndex=0;f.horizontalOffset=0;f.atEnd=!0;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};f.nextClick=function(){var R;(R=f.data)!=null&&R.contents&&(f.firstShownIndex+=f.currentElementsPerRow,f.updateHorizontalOffset(),f.updateHorizontalItemVisibility())};
f.previousClick=function(){var R;(R=f.data)!=null&&R.contents&&(f.firstShownIndex-=f.currentElementsPerRow,f.updateHorizontalOffset(),f.updateHorizontalItemVisibility())};
return f};
_.y(bb,_.U);_.X=bb.prototype;
_.X.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Tf("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.X.attached=function(){this.requestElementsPerRow()};
_.X.refreshGridLayoutNew=function(){var f;if((f=this.data)!=null&&f.contents&&this.containerWidth){var R;((R=this.data.responsiveContainerConfiguration)==null?0:R.responsiveSize)?(f=_.Boh(this.data.responsiveContainerConfiguration,this.containerWidth),f=_.sp(Object.assign({},f,{standardUnitMinWidth:this.standardUnitMinWidth}))):f=_.sp({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=f.typographyBump;if(this.elementsPerRow!==
f.numItems||this.gutter!==f.gutter)this.elementsPerRow=f.numItems,this.gutter=f.gutter,this.itemWidth=f.itemWidth,_.ZO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":f.gutter+"px"})}};
_.X.computeSizing=function(){if(!this.isLumiere){var f=_.XUP(this.data);if(f)return f;if(_.E("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.X.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.X.computeButton=function(f){var R=_.t(f,_.z9);f=Object.assign({},_.t(f,_.z9));return R?(f.text||(f.text={simpleText:f.tooltip}),f.style="STYLE_MONO_OUTLINE",f.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",f):R};
_.X.onRowIndexChange=function(){var f=_.z4(),R,u;((R=this.data)==null?0:R.trackingParams)&&((u=this.data)==null?void 0:u.rowIndex)!=null&&f&&_.gA(f,_.t4(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.X.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var f,R=((f=this.getRichItemRenderers()[0])==null?void 0:f.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*R;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
_.X.onUpdateElementsPerRowAction=function(f,R,u,O,c,h){if(this.containerWidth!==h&&(this.containerWidth=h,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&f&&R&&u&&O&&c&&(this.elementsPerRow!==f||this.postsPerRow!==R||this.slimItemsPerRow!==u||this.gameCardsPerRow!==O||this.miniGameCardsPerRow!==c)&&(this.elementsPerRow=f,this.postsPerRow=R,this.slimItemsPerRow=u,this.gameCardsPerRow=O,this.miniGameCardsPerRow=c,this.updateItemVisibility())};
_.X.getRichItemRenderers=function(){return _.b(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.X.updateItemVisibility=function(){var f=this;if(this.data&&this.data.contents){var R=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(O,c){var h;((h=f.data)==null?0:h.isExpanded)?(O.hidden=c>R-1,O.ytRendererBehavior.markDirty()):O.hidden=c>f.currentElementsPerRow-1||c>R-1});
var u=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||u||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||u||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.X.setHeightToSingleRow=function(){var f=this.getRichItemRenderers(),R=Number.parseInt(getComputedStyle(f[0]).marginBottom,10)||0;f=f.slice(0,this.currentElementsPerRow).reduce(function(u,O){return Math.max(u,O.getBoundingClientRect().height+R)},0);
this.contents.style.height=f+"px"};
_.X.focusNextExpandedItem=function(){var f;((f=this.data)==null?0:f.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.X.focusItem=function(f,R){var u=this.getRichItemRenderers();if(u[f]&&(f=u[f].querySelector(".focus-on-expand"))){if(R){var O;(O=u[this.currentElementsPerRow])==null||O.scrollIntoView({behavior:"smooth",block:"center"})}f.focus({preventScroll:!0})}};
_.X.onDataChange=function(){var f=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.su(this,function(){f.updateItemVisibility()});
var R;if((R=this.data)==null?0:R.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.ZO(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),R=0;R<this.data.contents.length;R++){var u=_.t(this.data.contents[R],_.LN)||{};u.colIndex=R;u.rowIndex=this.data.rowIndex}};
_.X.handleRerenderDownloadsData=function(){_.E("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())};
_.X.blockInlinePreview=function(f){var R=this,u;return _.k(function(O){(u=R.inlinePreviewIsEnabled)&&R.ytdReduxBehavior.dispatch(_.EiG(!1));return O.return(new Promise(function(c){f(function(){u&&R.ytdReduxBehavior.dispatch(_.EiG(!0));c()})}))})};
_.X.expandShelf=function(){var f=this;if(this.data){var R,u=(R=_.t(this.data.showMoreButton,_.z9))==null?void 0:R.trackingParams;u&&_.Zn(_.wR(),u);this.data.isExpanded=!0;this.blockInlinePreview(function(O){f.setHeightToSingleRow();f.updateItemVisibility();f.contents.style.height=f.contents.scrollHeight+"px";_.JA.addJob(function(){f.contents.style.height="auto";f.focusNextExpandedItem();O()},2,200)})}};
_.X.collapseShelf=function(){var f=this;return _.k(function(R){if(R.nextAddress==1){if(!f.data)return R.return();f.data.isExpanded=!1;return _.A(R,f.blockInlinePreview(function(u){f.contents.style.height=f.contents.scrollHeight+"px";f.setHeightToSingleRow();_.JA.addJob(function(){f.updateItemVisibility();f.contents.style.height="auto";u()},2,200)}),2)}_.ul(f.hostElement,"yt-rich-shelf-renderer-collapse",f.data.trackingParams);
f.focusItem(0,!1);_.KG(R)})};
_.X.updateArrowButtonStatus=function(){var f=this.getRichItemRenderers().length;if(!_.E("web_rich_shelf_renderer_use_data_contents_killswitch")){var R,u;f=((R=this.data)==null?void 0:(u=R.contents)==null?void 0:u.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=f};
_.X.onChildElementFocus=function(f){this.hasChevronButtons&&(f=f.target.closest("#contents > *"),this.contents.contains(f)&&(f.offsetLeft<this.horizontalOffset?this.previousClick():f.offsetLeft+f.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.X.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Tf("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.X.updateHorizontalOffset=function(){var f=this.getRichItemRenderers(),R=f.length;if(!_.E("web_rich_shelf_renderer_use_data_contents_killswitch")){var u,O;R=((u=this.data)==null?void 0:(O=u.contents)==null?void 0:O.length)||0}var c;f=((c=f[0])==null?void 0:c.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>R?this.firstShownIndex=R-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*f};
_.X.isSlimMediaShelfRenderer=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!!(_.t(O,_.ZWl)||_.t(O,hoI)||_.t(O,_.Jt)||_.t(O,pqC))};
_.X.isGameCardShelf=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!!_.t(O,FCt)};
_.X.isGnomeShelf=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!!_.t(O,_.Hpf)};
_.X.isMiniGameCardShelf=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!!_.t(O,Jkk)||!!_.t(O,zJI)};
_.X.hasGameBoxArtAvatarStyle=function(){var f;return((f=this.data)==null?void 0:f.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.X.hasRoundedGameBoxArtAvatarStyle=function(){var f;return((f=this.data)==null?void 0:f.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.X.isShortsShelf=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!!_.t(O,_.Jt)||!!_.t(O,pqC)};
_.X.isPostShelfRenderer=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!(!_.t(O,aSF)&&!_.t(O,FzH))};
_.X.isLumiereShelf=function(){var f,R,u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN);return!!_.t(u==null?void 0:u.content,NIA)};
_.X.isLumiereShelfWithPosters=function(){var f,R,u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN),O;return((O=_.t(u==null?void 0:u.content,NIA))==null?void 0:O.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.X.isExpandOnHoverCardShelf=function(){var f,R,u,O=(u=_.t((f=this.data)==null?void 0:(R=f.contents)==null?void 0:R[0],_.LN))==null?void 0:u.content;return!!_.t(O,dSC)};
_.X.computeHasFeaturedBadge=function(){var f,R,u=_.t((f=this.data)==null?void 0:(R=f.badges)==null?void 0:R[0],_.TZA);return u?u.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.X.computeHasPaygatedFeaturedBadge=function(){var f,R,u=_.t((f=this.data)==null?void 0:(R=f.badges)==null?void 0:R[0],_.TZA);return u?(u==null?void 0:u.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.X.computeHeaderHidden=function(){var f,R,u,O,c,h;return!((f=this.data)==null?0:f.icon)&&!((R=this.data)==null?0:R.title)&&!((u=this.data)==null?0:u.subtitle)&&!((O=this.data)==null?0:O.thumbnail)&&!((c=this.data)==null?0:c.badges)&&!((h=this.data)==null?0:h.menu)};
_.X.showCtaButton=function(){var f;return!((f=this.data)==null||!f.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.X.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.X.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.X.computeForce16By9ThumbnailAspectRatio=function(){var f,R;return((f=this.data)==null?void 0:(R=f.responsiveContainerConfiguration)==null?void 0:R.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.X.onSectionReactiveDismissal=function(f,R,u){var O,c;var h=(O=this.data)==null?void 0:(c=O.targetingContext)==null?void 0:c.targetGroupId;this&&h&&R.targetGroupId&&h.includes(R.targetGroupId)?(O=this.rowIndex,f=O===void 0?!1:!(R.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&O<=f)):f=!1;f&&(this.hidden=u)};
_.Vy.Object.defineProperties(bb.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var f=this.elementsPerRow;this.isPostShelfRenderer()?f=this.postsPerRow:this.isSlimMediaShelfRenderer()?f=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?f=this.slimItemsPerRow-1:this.isGameCardShelf()?f=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(f=this.miniGameCardsPerRow);return f}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.E("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.previousButton)&&!((R=this.data)==null||!R.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 f;return((f=_.vh().resolve(_.sz).getCurrentPage())==null?void 0:f.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return!((f=this.data)==null?0:(R=f.thumbnail)==null?0:(u=R.accessibility)==null?0:(O=u.accessibilityData)==null?0:O.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
bb.prototype.onChildElementFocus=bb.prototype.onChildElementFocus;bb.prototype.handleRerenderDownloadsData=bb.prototype.handleRerenderDownloadsData;bb.prototype.onDataChange=bb.prototype.onDataChange;bb.prototype.onRowIndexChange=bb.prototype.onRowIndexChange;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.HX),_.S("design:type",Object)],bb.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],bb.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.B([_.I({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.S("design:type",Object)],bb.prototype,"useResponsiveGrid",void 0);_.B([_.I(),_.S("design:type",Object)],bb.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Number)],bb.prototype,"standardUnitMinWidth",void 0);_.B([_.I({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],bb.prototype,"elementsPerRow",void 0);_.B([_.I({value:3}),_.S("design:type",Number)],bb.prototype,"postsPerRow",void 0);_.B([_.I({value:6}),_.S("design:type",Number)],bb.prototype,"slimItemsPerRow",void 0);_.B([_.I({value:6}),_.S("design:type",Number)],bb.prototype,"gameCardsPerRow",void 0);
_.B([_.I({value:6}),_.S("design:type",Number)],bb.prototype,"miniGameCardsPerRow",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"hidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"standardShelfMargins",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"isShowMoreHidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"isExpanded",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"isInnerShelf",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.S("design:type",Boolean)],bb.prototype,"isShorts",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.S("design:type",Boolean)],bb.prototype,"isLumiere",void 0);_.B([_.I({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.S("design:type",Boolean)],bb.prototype,"hasBoxArtThumbnailStyle",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.S("design:type",Boolean)],bb.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.S("design:type",Boolean)],bb.prototype,"hasFeaturedBadge",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.S("design:type",Boolean)],bb.prototype,"hasPaygatedFeaturedBadge",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.S("design:type",Boolean)],bb.prototype,"isHeaderHidden",void 0);_.B([_.I({selector:_.Cxl}),_.S("design:type",Object)],bb.prototype,"allVideosCount",void 0);_.B([_.I({selector:GVX}),_.S("design:type",Object)],bb.prototype,"allPlaylistCount",void 0);_.B([_.I({selector:zOe}),_.S("design:type",Object)],bb.prototype,"haveSmartDownloadsCompleted",void 0);
_.B([_.I({selectorArgs:["entitySelectorType"],selector:function(f,R){if(_.E("kevlar_modern_downloads_page")&&R&&R!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var u=f.entities;switch(R){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":R=_.Nq(u);f=Nm(R);var O=_.EP(R);u=_.b$(u);u=_.fg(z$P(O,u,R.length));return{contents:f,subtitle:u};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return u=_.Nq(u),{contents:Nm(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return u=
_.Lg(u),{contents:Nm(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return u=_.rLe(u),{contents:Nm(u)};default:_.Ih(new _.ts("Error: entitySelectorType defined but not matched in selector.",f,R))}}}}),
_.S("design:type",Object)],bb.prototype,"entityDrivenRichShelfData",void 0);_.B([_.I({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.S("design:type",Boolean)],bb.prototype,"hasTopCtaButton",void 0);_.B([_.I({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.S("design:type",Boolean)],bb.prototype,"hasBottomCtaButton",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.S("design:type",Boolean)],bb.prototype,"force16By9ThumbnailAspectRatio",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"isShowLessHidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bb.prototype,"restrictContentsOverflow",void 0);_.B([_.I({selector:_.wY0}),_.S("design:type",Boolean)],bb.prototype,"inlinePreviewIsEnabled",void 0);
_.B([_.I({computed:"computeSizing(data)"}),_.S("design:type",String)],bb.prototype,"sizing",void 0);_.B([_.I(),_.S("design:type",Boolean)],bb.prototype,"typographyBump",void 0);_.B([_.I(),_.S("design:type",Number)],bb.prototype,"itemWidth",void 0);_.B([_.I(),_.S("design:type",Object)],bb.prototype,"firstShownIndex",void 0);_.B([_.I(),_.S("design:type",Object)],bb.prototype,"horizontalOffset",void 0);_.B([_.I(),_.S("design:type",Object)],bb.prototype,"atEnd",void 0);
_.B([_.a4("#contents"),_.S("design:type",HTMLElement)],bb.prototype,"contents",void 0);_.B([_.qM("data.rowIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bb.prototype,"onRowIndexChange",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bb.prototype,"onDataChange",null);
_.B([_.qM("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bb.prototype,"handleRerenderDownloadsData",null);_.B([_.Kf("focusin"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],bb.prototype,"onChildElementFocus",null);_.B([_.I({reflectToAttribute:!0}),_.T("data","isHomePage"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bb.prototype,"isTruncated",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bb.prototype,"hideBottomDivider",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],bb.prototype,"hasChevronButtons",null);_.B([_.T("firstShownIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],bb.prototype,"previousButtonOverride",null);
_.B([_.T("atEnd"),_.S("design:type",Object),_.S("design:paramtypes",[])],bb.prototype,"nextButtonOverride",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bb.prototype,"isHomePage",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bb.prototype,"thumbnailAriaHidden",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bb.prototype,"initiallyIsExpanded",null);
_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],bb.prototype,"entitySelectorType",null);bb=_.B([_.e({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],bb);
_.EBk=_.Ox()(bb,"ytd-rich-shelf-renderer",function(){if(WbF===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);WbF=f}f=WbF;return f},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var tCi;_.ii(rzE,"yt-slimline-survey-view-model",{props:{data:_.SG}});var pA=function(){var f=_.U.apply(this,arguments)||this;f.tileLottieAnimationRef={};f.backgroundLottieAnimationRef={};f.isOnHoverBehaviorForLottieEnabled=!0;f.useBiggerShowcaseImage=_.E("enable_desktop_search_bigger_thumbs");f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return f};
_.y(pA,_.U);_.X=pA.prototype;_.X.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.X.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.X.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var f=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);f!==this.hasTile&&this.set("hasTile",f);f=this.hasLogo(this.data)||!!this.data.badgeText;f!==this.hasMetadata&&this.set("hasMetadata",f);f=this.data.overflowButton?!1:f;f!==this.showLogoImage&&this.set("showLogoImage",f);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.X.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.X.currentColorChanged=function(){this.updateButtonPalette()};
_.X.computeBackgroundStyle=function(f){if(f&&this.data){var R=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.fL((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&R.push('background-image: url("'+u+'");')}var O;((O=f.basicColorData)==null?void 0:O.backgroundColor)!==void 0&&R.push("background-color: "+_.ML(f.basicColorData.backgroundColor)+";");return R.join("")}};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f)};
_.X.getCurrentLogo=function(f,R){if(f)return R?f.darkLogoImage:f.lightLogoImage};
_.X.getCurrentStaticTileImage=function(f,R){if(this.hasStaticTile(f))return f.darkTileImage?R?f.darkTileImage:f.tileImage:f.tileImage};
_.X.computeTitleStyle=function(f){if(this.data&&this.data.title&&f&&f.basicColorData&&f.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.I1(f.basicColorData.foregroundTitleColor)+";"};
_.X.computeSubtitleStyle=function(f){if(this.data&&this.data.subtitle&&f&&f.basicColorData&&f.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.I1(f.basicColorData.foregroundBodyColor)+";"};
_.X.computeSupplementalStyle=function(f){if(this.data&&this.data.supplementalText&&f&&f.supplementalTextColor!==void 0)return f=_.I1(f.supplementalTextColor),"color:"+f+";--yt-endpoint-color:"+f+";--yt-endpoint-hover-color:"+f+";--yt-endpoint-visited-color:"+f+";--yt-formatted-string-bold-font-weight:700;"};
_.X.computeBadgeStyle=function(f){if(this.data&&this.data.badgeText&&f&&f.basicColorData&&f.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.I1(f.basicColorData.foregroundActivatedColor)+";"};
_.X.computeDismissIconStyle=function(f){var R,u;if((f==null?0:(R=f.dismissButtonColorData)==null?0:R.foregroundTitleColor)&&(f==null?0:(u=f.dismissButtonColorData)==null?0:u.backgroundColor))return"--yt-button-color:"+_.ML(f.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ML(f.dismissButtonColorData.backgroundColor)+";"};
_.X.computeOverflowIconStyle=function(f){var R,u;if((f==null?0:(R=f.dismissButtonColorData)==null?0:R.foregroundTitleColor)&&(f==null?0:(u=f.dismissButtonColorData)==null?0:u.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.ML(f.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ML(f.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.ML(f.dismissButtonColorData.foregroundTitleColor)+";"};
_.X.computeBannerStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeLocation=function(f){switch(f==null?void 0:f.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.X.shouldShowTileSection=function(f,R,u){return!this.shouldExpandLogo(f,R,u)&&R};
_.X.shouldShowExpandedLogoSection=function(f,R,u){return this.shouldExpandLogo(f,R,u)&&f!==void 0&&this.hasLogo(f)};
_.X.shouldExpandLogo=function(f,R,u){return f&&R?!1:u>=2};
_.X.hasStaticTile=function(f){return!(f==null||!f.tileImage)};
_.X.hasTileLottie=function(f){var R;return!!(f==null?0:(R=f.tileLottie)==null?0:R.url)};
_.X.hasLogo=function(f){return this.getCurrentLogo(f,this.isDarkTheme)!==void 0};
_.X.getLogoHeight=function(f){return this.logoWithPadding(f)?"26":"20"};
_.X.getExpandedLogoHeight=function(f){return this.logoWithPadding(f)?"31":"24"};
_.X.getLogoImageId=function(f){return this.logoWithPadding(f)?"logo-image-with-padding":"logo-image"};
_.X.hasBackgroundLottie=function(f){var R;return!!(f==null?0:(R=f.backgroundLottie)==null?0:R.url)};
_.X.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var f,R;(f=this.tileLottieAnimationRef)==null||(R=f.lottieEl)==null||R.play();var u,O;(u=this.backgroundLottieAnimationRef)==null||(O=u.lottieEl)==null||O.play()}};
_.X.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var f,R;(f=this.tileLottieAnimationRef)==null||(R=f.lottieEl)==null||R.pause();var u,O;(u=this.backgroundLottieAnimationRef)==null||(O=u.lottieEl)==null||O.pause()}};
_.X.pauseLottie=function(){var f,R;(f=this.tileLottieAnimationRef)==null||(R=f.lottieEl)==null||R.pause();var u,O;(u=this.backgroundLottieAnimationRef)==null||(O=u.lottieEl)==null||O.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.X.performPrimaryButtonAction=function(){var f,R,u;((f=this.data)==null?0:(R=f.primaryButton)==null?0:(u=R.buttonRenderer)==null?0:u.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
_.X.updateButtonPalette=function(){if(this.data&&this.currentColorData){var f;((f=this.data.dismissButton)==null?0:f.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 R;if((R=this.data.primaryButton)==null?0:R.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 O;((O=this.data.primaryButton)==null?0:O.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var c;((c=this.data.secondaryButton)==null?0:c.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.X.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var f=this.getTileLottieDataBasedOnTheme(),R,u;if(f.url!==((R=this.tileLottiePlayerProps)==null?void 0:(u=R.animationConfig)==null?void 0:u.path)){var O,c;(O=this.tileLottieAnimationRef)==null||(c=O.lottieEl)==null||c.destroy();var h;this.isOnHoverBehaviorForLottieEnabled=!((h=f.settings)==null?0:h.autoplay);var l,K;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(K=(l=f.settings)==null?void 0:l.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(f.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof f.url==="string"?this.tileLottiePlayerProps.animationConfig.path=f.url:this.tileLottiePlayerProps.animationConfig.animationData=f.url}}};
_.X.getOverflowButton=function(f){return _.t(f.overflowButton,T5A)};
_.X.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var f=this.getBackgroundLottieDataBasedOnTheme(),R,u;if(f.url!==((R=this.backgroundLottiePlayerProps)==null?void 0:(u=R.animationConfig)==null?void 0:u.path)){var O,c;(O=this.backgroundLottieAnimationRef)==null||(c=O.lottieEl)==null||c.destroy();var h;this.isOnHoverBehaviorForLottieEnabled=!((h=f.settings)==null?0:h.autoplay);var l,K;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(K=(l=f.settings)==null?void 0:l.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(f.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof f.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=f.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
f.url}}};
_.X.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var f;((f=this.tileLottieAnimationRef)==null?void 0:f.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var R;((R=this.backgroundLottieAnimationRef)==null?void 0:R.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.X.getTileLottieDataBasedOnTheme=function(){var f;if(this.isDarkTheme&&((f=this.data)==null?0:f.darkThemeTileLottie))return this.data.darkThemeTileLottie;var R;return((R=this.data)==null?0:R.tileLottie)?this.data.tileLottie:{}};
_.X.getBackgroundLottieDataBasedOnTheme=function(){var f;if(this.isDarkTheme&&((f=this.data)==null?0:f.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var R;return((R=this.data)==null?0:R.backgroundLottie)?this.data.backgroundLottie:{}};
_.X.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
_.X.getLottieLoopValue=function(f){return f?f.loop!==void 0?f.loop:f.loopCount?f.loopCount-1:!0:!0};
_.X.logoWithPadding=function(f){var R,u,O;return(f=(R=this.getCurrentLogo(f,this.isDarkTheme))==null?void 0:(u=R.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&f%31===0?!0:!1};
pA.prototype.currentColorChanged=pA.prototype.currentColorChanged;pA.prototype.themeChanged=pA.prototype.themeChanged;pA.prototype.dataChanged=pA.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],pA.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],pA.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],pA.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"primaryButton",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"secondaryButton",void 0);
_.B([_.I({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],pA.prototype,"elementsPerRow",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pA.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pA.prototype,"hasTile",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pA.prototype,"hasMetadata",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pA.prototype,"showLogoImage",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"currentColorData",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.S("design:type",String)],pA.prototype,"bannerStyle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.S("design:type",String)],pA.prototype,"location",void 0);
_.B([_.I(),_.S("design:type",Object)],pA.prototype,"tileLottiePlayerProps",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"tileLottieAnimationRef",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"backgroundLottiePlayerProps",void 0);_.B([_.I(),_.S("design:type",Object)],pA.prototype,"backgroundLottieAnimationRef",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],pA.prototype,"useBiggerShowcaseImage",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],pA.prototype,"isHideEnclosingAction",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pA.prototype,"dataChanged",null);_.B([_.QR("isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pA.prototype,"themeChanged",null);
_.B([_.QR("currentColorData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pA.prototype,"currentColorChanged",null);pA=_.B([_.e({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],pA);
_.G(pA,"ytd-statement-banner-renderer",function(){if(tCi!==void 0)return tCi;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return tCi=f},{mode:1});var C9f;var jm=function(){var f=_.U.apply(this,arguments)||this;f.isSearch=!1;f.hideShelfHeader=!1;f.engagementPanel=!1;f.disableMouseScroll=!0;f.useFloorScrolling=!0;f.modernTypography=_.E("web_modern_typography");return f};
_.y(jm,_.U);jm.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Fa("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Fa("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
jm.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jm.prototype.onDataChanged=jm.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jm.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],jm.prototype,"hideShelfHeader",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],jm.prototype,"engagementPanel",void 0);_.B([_.I(),_.S("design:type",Object)],jm.prototype,"disableMouseScroll",void 0);_.B([_.I(),_.S("design:type",Object)],jm.prototype,"useFloorScrolling",void 0);_.B([_.I(),_.S("design:type",Object)],jm.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],jm.prototype,"modernTypography",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jm.prototype,"onDataChanged",null);jm=_.B([_.e({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],jm);
_.G(jm,"ytd-reel-shelf-renderer",function(){if(C9f!==void 0)return C9f;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return C9f=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var y$A;var d8f=_.nf(function(f){var R=f.data;f=f.useSmallFont;var u={},O={};return _.a("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.a(_.Q,{cond:function(){return R().favicon},
then:function(c){return _.a(_.gR,{data:c,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.a("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.a(_.YO,{text:function(){return R().title},
className:_.KL("yt-channel-external-link-view-model-wiz__title",(u["yt-channel-external-link-view-model-wiz__title--title-small-font"]=f,u)),ellipsisTruncate:!0,userInput:!0}),_.a(_.YO,{text:function(){return R().link},
className:_.KL("yt-channel-external-link-view-model-wiz__link",(O["yt-channel-external-link-view-model-wiz__link--link-small-font"]=f,O)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
d8f.idomCompat=!0;_.ii(d8f,"yt-channel-external-link-view-model",{props:{data:_.SG,useSmallFont:_.SG}});_.j6("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Df=function(){var f=_.U.apply(this,arguments)||this;f.revealButtonClass="button";f.businessEmailDisplayState="HIDE_SECTION";return f};
_.y(Df,_.U);_.X=Df.prototype;_.X.refit=function(){var f=this;_.P2(function(){_.c_(f.hostElement,"yt-refit-popups-action")});
_.su(this,function(){_.c_(f.hostElement,"yt-refit-popups-action")})};
_.X.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Um("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.X.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"};
_.X.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.X.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"}}}};
_.X.computeEmailHref=function(f){return"mailto:"+f};
_.X.computeSafeUrl=function(f){if(f)return _.EO(f)};
_.X.linkEndpoint=function(f){return _.t(f.onTap,_.TW)};
_.X.linkEndpointToHref=function(f){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(f))};
_.X.onYtServiceRequestCompleted=function(f){var R;if((R=f.detail.data)==null?0:R.businessEmail)this.businessEmail=f.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=f.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=f.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.X.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var f=this.JSC$14114_captchaTextarea.value;if(f){f={recaptcha_response_token:f,channel_id:this.metadata.channelId};var R=_.t(this.metadata.onBusinessEmailRevealClickCommand,_.TW);R&&this.ytComponentBehavior.resolveCommand(R,{form:f})}}};
_.X.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Vy.Object.defineProperties(Df.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var f;return _.t((f=this.data)==null?void 0:f.metadata,jGG)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.t(this.metadata.businessEmailRevealButton,_.dW)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var f=new URL(this.metadata.canonicalChannelUrl);return f.host+f.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 _.t(this.metadata.learnMoreOnTap,_.TW)}}});
Df.prototype.onYtServiceRequestCompleted=Df.prototype.onYtServiceRequestCompleted;Df.prototype.businessEmailMetadataChanged=Df.prototype.businessEmailMetadataChanged;Df.prototype.refit=Df.prototype.refit;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#g-recaptcha-response"),_.S("design:type",HTMLTextAreaElement)],Df.prototype,"JSC$14114_captchaTextarea",void 0);_.B([_.I(),_.S("design:type",Object)],Df.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Df.prototype,"revealButtonClass",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Df.prototype,"metadata",null);
_.B([_.T("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],Df.prototype,"revealButton",null);_.B([_.T("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],Df.prototype,"channelDisplayUrl",null);_.B([_.QR("metadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Df.prototype,"refit",null);_.B([_.T("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],Df.prototype,"formattedDescription",null);
_.B([_.T("metadata","learnMoreCommand"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Df.prototype,"shouldRendereVerifiedPhoneStatus",null);_.B([_.T("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],Df.prototype,"learnMoreCommand",null);_.B([_.I(),_.S("design:type",String)],Df.prototype,"businessEmailDisplayState",void 0);_.B([_.I(),_.S("design:type",String)],Df.prototype,"businessEmail",void 0);
_.B([_.I(),_.S("design:type",String)],Df.prototype,"businessEmailErrorMessage",void 0);_.B([_.QR("metadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Df.prototype,"businessEmailMetadataChanged",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Df.prototype,"onYtServiceRequestCompleted",null);
Df=_.B([_.e({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Df);
_.G(Df,"ytd-about-channel-renderer",function(){if(y$A!==void 0)return y$A;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return y$A=f},{mode:1});var NLC;var J0=function(){return _.U.apply(this,arguments)||this};
_.y(J0,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],J0.prototype,"data",void 0);J0=_.B([_.e({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],J0);
_.G(J0,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(NLC!==void 0)return NLC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return NLC=f},{mode:1});var LbE;var zs=function(){return _.U.apply(this,arguments)||this};
_.y(zs,_.U);zs.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zs.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],zs.prototype,"aligment",void 0);zs=_.B([_.e({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],zs);
_.G(zs,"ytd-channel-list-sub-menu-renderer",function(){if(LbE!==void 0)return LbE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return LbE=
f},{mode:1});var b_k;var Ts=function(){return _.U.apply(this,arguments)||this};
_.y(Ts,_.U);Ts.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ts.prototype,"data",void 0);Ts=_.B([_.e({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Ts);
_.G(Ts,"ytd-channel-sub-menu-renderer",function(){if(b_k!==void 0)return b_k;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return b_k=f},{mode:1});var paF;var jTl;var Hj=function(){var f=_.U.apply(this,arguments)||this;f.isCompact=!1;return f};
_.y(Hj,_.U);_.Vy.Object.defineProperties(Hj.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var f,R;return((R=_.t((f=this.data)==null?void 0:f.endpoint,_.oh))==null?void 0:R.target)==="TARGET_NEW_WINDOW"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Hj.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Hj.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Hj.prototype,"isCompact",void 0);_.B([_.T("isCompact"),_.S("design:type",Number),_.S("design:paramtypes",[])],Hj.prototype,"thumbnailWidth",null);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"openNewWindow",null);Hj=_.B([_.e({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Hj);
_.G(Hj,"ytd-media-lockup-renderer",function(){if(jTl!==void 0)return jTl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return jTl=f},{mode:1});var D8C;var IO=function(){return _.U.apply(this,arguments)||this};
_.y(IO,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],IO.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IO.prototype,"data",void 0);IO=_.B([_.e({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],IO);
_.G(IO,"ytd-structured-description-channel-lockup-renderer",function(){if(D8C!==void 0)return D8C;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return D8C=f},{mode:1});var J$Y;var Md=function(){var f=_.U.apply(this,arguments)||this;f.isCompact=!1;f.collections=_.E("web_modern_collections_v2");f.collectionsStackColor=_.E("modernize_structured_description_playlist_lockups_v2");return f};
_.y(Md,_.U);Md.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:_.E("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Vy.Object.defineProperties(Md.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c,h;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(f=this.data)==null?void 0:(R=f.thumbnail)==null?void 0:R.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(c=this.data)==null?void 0:(h=c.thumbnail)==
null?void 0:h.vibrantColorPalette:void 0}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Md.prototype,"componentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Md.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Md.prototype,"showSidePanelThumbnailOverlay",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Md.prototype,"isCompact",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Md.prototype,"collections",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Md.prototype,"collectionsStackColor",void 0);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Md.prototype,"twoLineTitle",null);
_.B([_.T("data","collections","collectionsStackColor"),_.S("design:type",Object),_.S("design:paramtypes",[])],Md.prototype,"collectionStack",null);Md=_.B([_.e({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Md);
_.G(Md,"ytd-structured-description-playlist-lockup-renderer",function(){if(J$Y!==void 0)return J$Y;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return J$Y=f},{mode:1});var zkY;var Pj=function(){return _.U.apply(this,arguments)||this};
_.y(Pj,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Pj.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Pj.prototype,"data",void 0);Pj=_.B([_.e({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Pj);
_.G(Pj,"ytd-structured-description-video-lockup-renderer",function(){if(zkY!==void 0)return zkY;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return zkY=f},{mode:2});var UB=function(){return _.U.apply(this,arguments)||this};
_.y(UB,_.U);
UB.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],UB.prototype,"data",void 0);UB=_.B([_.e({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],UB);
_.G(UB,"ytd-compact-infocard-renderer",function(){if(paF!==void 0)return paF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return paF=f},{mode:1});var TLE;var em=function(){var f=_.U.apply(this,arguments)||this;f.useModernCollectionsV2=_.E("web_modern_collections_v2");return f};
_.y(em,_.U);em.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Vy.Object.defineProperties(em.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],em.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],em.prototype,"ytdReduxBehavior",void 0);_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],em.prototype,"isGridViewEnabled",void 0);
_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],em.prototype,"watchFeedBigThumbs",null);_.B([_.T("isGridViewEnabled","data"),_.I({reflectToAttribute:!0,value:"168"}),_.S("design:type",String),_.S("design:paramtypes",[])],em.prototype,"thumbnailWidth",null);_.B([_.T("isGridViewEnabled","data"),_.I({reflectToAttribute:!0,value:"94"}),_.S("design:type",String),_.S("design:paramtypes",[])],em.prototype,"customThumbnailSize",null);
_.B([_.I(),_.S("design:type",Object)],em.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],em.prototype,"useModernCollectionsV2",void 0);em=_.B([_.e({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],em);
_.G(em,"ytd-compact-playlist-renderer",function(){if(TLE!==void 0)return TLE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return TLE=f},{mode:1});var H_Y;var Gs=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.roundedContainer=!0;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return f};
_.y(Gs,_.U);_.X=Gs.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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"}}}};
_.X.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.X.computeViewStyle=function(f){return f.style?f.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.X.onUpdateElementsPerRowAction=function(f){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&f===1};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
Gs.prototype.dataChanged=Gs.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],Gs.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Gs.prototype,"actionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Gs.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Gs.prototype,"hideThumbnail",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.S("design:type",String)],Gs.prototype,"viewStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Gs.prototype,"darkerDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Gs.prototype,"roundedContainer",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gs.prototype,"dataChanged",null);Gs=_.B([_.e({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Gs);
_.G(Gs,"ytd-compact-promoted-item-renderer",function(){if(H_Y!==void 0)return H_Y;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return H_Y=f},{mode:1});var IdC;var Bj=function(){var f=_.U.apply(this,arguments)||this;f.collections=_.E("web_modern_collections_v2");return f};
_.y(Bj,_.U);Bj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Bj.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Bj.prototype.onYtNavigate=function(f,R){var u=this;if(R.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",R)){var O=this.get("watchEndpoint.videoId",R.endpoint),c=_.c_(this.hostElement,"yt-get-current-video-id-action")[0];_.E("kevlar_mix_handle_first_endpoint_different")&&O&&c&&O!==c||(f.stopPropagation(),_.YG().getPlayerPromise().then(function(h){if(h.getPlayerState()===0&&u.data.secondaryNavigationEndpoint)var l=u.data.secondaryNavigationEndpoint;else{l=
Object.assign({},R.endpoint);var K=_.t(l.commandMetadata,_.vc);K&&(h=Math.floor(h.getCurrentTime()),K.url=_.S0(K.url,{t:h}),!_.E("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(K=_.t(l,_.$7)))&&(K.startTimeSeconds=h)}_.ul(u.hostElement,"yt-navigate",{endpoint:l})}))}};
_.Vy.Object.defineProperties(Bj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c,h;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(R=f.thumbnail)==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(O=u.thumbnail)==null?void 0:O.vibrantColorPalette,darkColorPalette:(c=this.data)==null?void 0:(h=c.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
Bj.prototype.onYtNavigate=Bj.prototype.onYtNavigate;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],Bj.prototype,"ytEndpointBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],Bj.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.BX),_.S("design:type",Object)],Bj.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],Bj.prototype,"isGridViewEnabled",void 0);_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Bj.prototype,"watchFeedBigThumbs",null);
_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],Bj.prototype,"thumbnailWidth",null);_.B([_.I(),_.S("design:type",Object)],Bj.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bj.prototype,"collections",void 0);_.B([_.T("data","collections"),_.S("design:type",Object),_.S("design:paramtypes",[])],Bj.prototype,"collectionStack",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Bj.prototype,"onYtNavigate",null);Bj=_.B([_.e({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Bj);
_.G(Bj,"ytd-compact-radio-renderer",function(){if(IdC!==void 0)return IdC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return IdC=f},{mode:1});var MCI;var oO=function(){return _.U.apply(this,arguments)||this};
_.y(oO,_.U);oO.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
oO.prototype.computeRendererStyle=function(f){return f.style?f.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.B([_.I(),_.S("design:type",Object)],oO.prototype,"data",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oO.prototype,"rendererBehavior",void 0);_.B([_.I({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],oO.prototype,"rendererStyle",void 0);
oO=_.B([_.e({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],oO);
_.G(oO,"ytd-compact-text-promo-renderer",function(){if(MCI!==void 0)return MCI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return MCI=f},{mode:1});var P9Y;var xK=function(){var f=_.U.apply(this,arguments)||this;f.isShortsStyle=!1;return f};
_.y(xK,_.U);_.X=xK.prototype;_.X.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"}}}};
_.X.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.ul(this.hostElement,"yt-disable-lockup-interaction"):_.ul(this.hostElement,"yt-enable-lockup-interaction"))};
_.X.isMetaBlockEmpty=function(f){return!f||!f.longBylineText&&!f.shortBylineText&&!f.shortViewCountText&&!f.viewCountText};
_.X.computeHasOneLineTitle=function(f){return this.forceOneLineTitle||!(f==null||!f.buttons)};
_.X.computeDisableInteraction=function(){var f;return!((f=this.data)==null?0:f.navigationEndpoint)};
_.X.hasSingularTopStandaloneBadge=function(){var f;return!((f=this.data)==null||!f.topStandaloneBadge)};
_.Vy.Object.defineProperties(xK.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("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 f;return this.hasSingularTopStandaloneBadge()?[(f=this.data)==null?void 0:f.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var f;return this.shouldShowTopBadges?((f=this.data)==null?void 0:f.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
xK.prototype.disableInteractionChanged=xK.prototype.disableInteractionChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],xK.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],xK.prototype,"ytdLockupBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],xK.prototype,"ytdReduxBehavior",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.S("design:type",Boolean)],xK.prototype,"metaBlockEmpty",void 0);_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],xK.prototype,"isGridViewEnabled",void 0);_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],xK.prototype,"watchFeedBigThumbs",null);
_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],xK.prototype,"thumbnailWidth",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],xK.prototype,"isShortsStyle",void 0);_.B([_.I(),_.S("design:type",Object)],xK.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.S("design:type",Boolean)],xK.prototype,"hasOneLineTitle",void 0);
_.B([_.I(),_.S("design:type",Boolean)],xK.prototype,"hideThumbnail",void 0);_.B([_.I(),_.S("design:type",Boolean)],xK.prototype,"forceOneLineTitle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.S("design:type",Boolean)],xK.prototype,"disableInteraction",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],xK.prototype,"musicMetadataVideoLockup",void 0);
_.B([_.qM("disableInteraction"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xK.prototype,"disableInteractionChanged",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],xK.prototype,"shouldShowTopBadges",null);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],xK.prototype,"topBadges",null);
_.B([_.T("shouldShowTopBadges","data"),_.S("design:type",Array),_.S("design:paramtypes",[])],xK.prototype,"inlineMetadataBadges",null);_.B([_.T("shouldShowTopBadges"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],xK.prototype,"shouldShowBadgesBelowMetadata",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],xK.prototype,"compactTitleClass",null);xK=_.B([_.e({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],xK);
_.G(xK,"ytd-compact-video-renderer",function(){if(P9Y!==void 0)return P9Y;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return P9Y=f},{mode:_.c7("kevlar_poly_si_batch_j067")?1:2});var U8G;_.j6("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Sm=function(){return _.U.apply(this,arguments)||this};
_.y(Sm,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Sm.prototype,"data",void 0);Sm=_.B([_.e({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Sm);
_.G(Sm,"ytd-counterfactual-renderer",function(){if(U8G!==void 0)return U8G;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return U8G=f},{mode:1});var ekC;var $K=function(){var f=_.U.apply(this,arguments)||this;f.hidden=!1;return f};
_.y($K,_.U);$K.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.vh().resolve(_.rv).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
$K.prototype.computeHidden=function(f){return!!f};
_.Vy.Object.defineProperties($K.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}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$K.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.S("design:type",Object)],$K.prototype,"hidden",void 0);_.B([_.T("data.label"),_.S("design:type",String),_.S("design:paramtypes",[])],$K.prototype,"label",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],$K.prototype,"value",null);
$K=_.B([_.e({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],$K);
_.G($K,"ytd-dropdown-item-renderer",function(){if(ekC!==void 0)return ekC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ekC=f},{mode:1});var GnE;var BLG;var gi=function(){return _.U.apply(this,arguments)||this};
_.y(gi,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gi.prototype,"data",void 0);_.B([_.I({computed:"getSimpleString(data.label)"}),_.S("design:type",String)],gi.prototype,"label",void 0);gi=_.B([_.e({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],gi);
_.G(gi,"ytd-navigation-dropdown-item-renderer",function(){if(BLG!==void 0)return BLG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return BLG=f},{mode:1});var sB=function(){var f=_.U.apply(this,arguments)||this;f.disabled=!1;f.value="";f.noLabelFloat=!1;f.noUnderline=!1;f.usePrimaryColor=!1;f.hasBackground=!1;f.verticalAlign="top";f.autosize=!1;f.minAutosizeWidth=100;f.autosizeFont="14px Roboto";return f};
_.y(sB,_.U);_.X=sB.prototype;_.X.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"}}}};
_.X.open=function(){this.inputEl.open()};
_.X.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.X.dataChanged=function(){this.reset()};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("value-changed",this.value))};
_.X.stopPropagation=function(f){f.stopPropagation()};
_.X.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var f=this.canvas.getContext("2d");f&&(f.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(f.measureText(this.inputEl.value).width)+24)+"px")}};
_.X.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var f=0,R=this.data.entries.length;f<R;f++){var u=this.data.entries[f],O;for(O in u)if(u.hasOwnProperty(O)){var c=u[O];if("isSelected"in c&&c.isSelected)return"stringValue"in c?c.stringValue||"":"int32Value"in c?c.int32Value||0:0}}return null};
_.X.updateValueFromBinding=function(f){this.value=f.detail.value};
_.Vy.Object.defineProperties(sB.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 f=0,R=this.data.entries.length;f<R;f++){var u=this.data.entries[f],O;for(O in u)if(u.hasOwnProperty(O)){var c=u[O];if("isSelected"in c&&c.isSelected&&"label"in c)return this.ytRendererBehavior.getSimpleString(c.label)}}return null}}});
sB.prototype.autoSizeLabel=sB.prototype.autoSizeLabel;sB.prototype.stopPropagation=sB.prototype.stopPropagation;sB.prototype.valueChangedForBinding=sB.prototype.valueChangedForBinding;sB.prototype.dataChanged=sB.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],sB.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],sB.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sB.prototype,"disabled",void 0);_.B([_.I(),_.S("design:type",Object)],sB.prototype,"value",void 0);_.B([_.I(),_.S("design:type",Object)],sB.prototype,"noLabelFloat",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sB.prototype,"noUnderline",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],sB.prototype,"theme",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sB.prototype,"usePrimaryColor",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sB.prototype,"hasBackground",void 0);_.B([_.I(),_.S("design:type",Object)],sB.prototype,"verticalAlign",void 0);_.B([_.I(),_.S("design:type",Object)],sB.prototype,"autosize",void 0);_.B([_.I(),_.S("design:type",Object)],sB.prototype,"minAutosizeWidth",void 0);_.B([_.I(),_.S("design:type",Object)],sB.prototype,"autosizeFont",void 0);
_.B([_.a4("#entries"),_.S("design:type",Object)],sB.prototype,"entries",void 0);_.B([_.a4("#input"),_.S("design:type",Object)],sB.prototype,"inputEl",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sB.prototype,"dataChanged",null);_.B([_.QR("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sB.prototype,"valueChangedForBinding",null);
_.B([_.Kf("iron-overlay-opened"),_.Kf("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],sB.prototype,"stopPropagation",null);_.B([_.Kf("iron-select"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sB.prototype,"autoSizeLabel",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],sB.prototype,"label",null);
sB=_.B([_.e({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],sB);
_.G(sB,"ytd-dropdown-renderer",function(){if(GnE!==void 0)return GnE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GnE=f},{mode:1});var oBH;var nA=function(){var f=_.U.apply(this,arguments)||this;f.isConstrainedList=!1;return f};
_.y(nA,_.U);nA.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"}}}};
nA.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
nA.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
nA.prototype.computeViewAllHidden=function(f,R){return f||!R.viewAllEndpoint};
nA.prototype.fillRestIfNoShowMore=nA.prototype.fillRestIfNoShowMore;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],nA.prototype,"ytLazyListBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nA.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],nA.prototype,"isConstrainedList",void 0);_.B([_.QR("data","canShowMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nA.prototype,"fillRestIfNoShowMore",null);nA=_.B([_.e({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],nA);
_.G(nA,"ytd-expanded-shelf-contents-renderer",function(){if(oBH!==void 0)return oBH;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return oBH=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var x8A;var Vx=function(){return _.U.apply(this,arguments)||this};
_.y(Vx,_.U);Vx.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Vx.prototype,"data",void 0);Vx=_.B([_.e({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Vx);
_.G(Vx,"ytd-feed-channel-filter-header-renderer",function(){if(x8A!==void 0)return x8A;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return x8A=f},{mode:1});var SgC;var $8f;var gBH;var YK=function(){return _.U.apply(this,arguments)||this};
_.y(YK,_.U);_.X=YK.prototype;_.X.onClick=function(f){var R,u=(R=this.data)==null?void 0:R.sectionEndpoint;!_.$G(_.$S(f),this.hostElement,["A".toString()])&&u&&_.ul(this.hostElement,"yt-navigate",{endpoint:u})};
_.X.computeHasSectionEndpoint=function(f){return(f==null?void 0:f.sectionEndpoint)!==void 0};
_.X.computeShowHeaderAsLink=function(f){return(f==null?void 0:f.header)!==void 0&&(f==null?void 0:f.sectionEndpoint)!==void 0};
_.X.computeShowSubheaderAsLink=function(f){return(f==null?void 0:f.subheader)!==void 0&&(f==null?void 0:f.sectionEndpoint)!==void 0&&(f==null?void 0:f.header)===void 0};
_.X.getHeaderAsLinkClass=function(f){var R=[],u;(f==null?0:(u=f.headerIcon)==null?0:u.iconType)&&R.push("header-link-active");return R.join(" ")};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],YK.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],YK.prototype,"data",void 0);
_.B([_.I({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],YK.prototype,"hasSectionEndpoint",void 0);_.B([_.I({computed:"computeShowHeaderAsLink(data)"}),_.S("design:type",Boolean)],YK.prototype,"showHeaderAsLink",void 0);_.B([_.I({computed:"computeShowSubheaderAsLink(data)"}),_.S("design:type",Boolean)],YK.prototype,"showSubheaderAsLink",void 0);YK=_.B([_.e({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],YK);
_.G(YK,"ytd-medical-panel-section-renderer",function(){if(gBH!==void 0)return gBH;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return gBH=f},{mode:1});var vj=function(){var f=_.U.apply(this,arguments)||this;f.isExpanded=!1;f.roundedContainer=!0;f.skipRoundingTop=!1;f.toggleExpandableSection=function(){f.isExpanded=!f.isExpanded};
return f};
_.y(vj,_.U);
vj.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]]"}}}}}};
vj.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
vj.prototype.dataChanged=vj.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vj.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],vj.prototype,"isExpanded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vj.prototype,"roundedContainer",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vj.prototype,"skipRoundingTop",void 0);_.B([_.I(),_.S("design:type",Object)],vj.prototype,"toggleExpandableSection",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vj.prototype,"dataChanged",null);vj=_.B([_.e({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],vj);
_.G(vj,"ytd-medical-panel-content-renderer",function(){if($8f!==void 0)return $8f;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return $8f=f},{mode:1});_.j6("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ib=function(){var f=_.U.apply(this,arguments)||this;f.roundedContainer=!0;f.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");f.hasTitle=!1;f.linkIcon="OPEN_IN_NEW";f.isDismissed=!1;return f};
_.y(ib,_.U);
ib.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ib.prototype.computeHasTitle=function(f){return!(f==null||!f.title)};
ib.prototype.onClick=function(f){var R,u=(R=this.data)==null?void 0:R.headerEndpoint;!_.$G(_.$S(f),this.hostElement,["BUTTON".toString()])&&u&&this.ytComponentBehavior.resolveCommand(u)};
_.Vy.Object.defineProperties(ib.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 f;return((f=this.data)==null?void 0:f.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.disableBottomDivider)||!((R=this.data)==null?0:R.title)}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ib.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ib.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],ib.prototype,"amsterdamEnabled",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.S("design:type",Object)],ib.prototype,"hasTitle",void 0);
_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.background"),_.S("design:type",Object),_.S("design:paramtypes",[])],ib.prototype,"background",null);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.titleStyle"),_.S("design:type",Object),_.S("design:paramtypes",[])],ib.prototype,"titleStyle",null);
_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.T("data.titleStyle"),_.S("design:type",Object),_.S("design:paramtypes",[])],ib.prototype,"showLinkIcon",null);_.B([_.I(),_.S("design:type",String)],ib.prototype,"linkIcon",void 0);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ib.prototype,"hideDivider",null);
_.B([_.I({selectorArgs:["data.dismissStateEntityKey"],selector:function(f,R){f=_.kZ(f.entities,"dismissState",R);return(f==null?void 0:f.isDismissed)||(f==null?void 0:f.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(f==null?void 0:f.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.S("design:type",Object)],ib.prototype,"isDismissed",void 0);ib=_.B([_.e({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ib);
_.G(ib,"ytd-info-panel-container-renderer",function(){if(SgC!==void 0)return SgC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return SgC=f},{mode:1});var sTI;_.j6("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ri=function(){var f=_.U.apply(this,arguments)||this;f.modernTypography=_.E("web_modern_typography");return f};
_.y(ri,_.U);ri.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ri.prototype.computeStyle=function(f){return f?f:""};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ri.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.S("design:type",String)],ri.prototype,"titleStyle",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ri.prototype,"modernTypography",void 0);ri=_.B([_.e({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],ri);
_.G(ri,"ytd-item-section-header-renderer",function(){if(sTI!==void 0)return sTI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return sTI=f},{mode:1});var nBk;var VCC,YgA=function(){return VCC!==void 0?VCC:VCC=document.createElement("template")};
document.head.appendChild(YgA().content);var vBC;_.fM=new _.Vi("VOTING_ANIMATION_CONTROLLER_TOKEN");var r$f=_.nf(function(f){var R=f.data;var u=_.sW(),O=_.sW();f=_.Z(_.qK("VOTE_STATUS_NONE",void 0,"FVF7mc"));var c=f.next().value,h=f.next().value,l=_.Ax(o92,function(){var W;return(W=R())==null?void 0:W.entityKey}),K=_.E("web_enable_voting_animation")||_.E("enable_music_web_cairo_voting_animation");
_.bt(function(){var W;((W=R().initialState)==null?0:W.status)&&h(R().initialState.status)});
var q=function(){var W,C,d=(C=(W=R().initialState)==null?void 0:W.votes)!=null?C:0,p;W=(p=R().initialState)==null?void 0:p.status;return W==="VOTE_STATUS_UPVOTED"?d-1:W==="VOTE_STATUS_DOWNVOTED"?d+1:d},F=function(){return c()==="VOTE_STATUS_UPVOTED"?q()+1:c()==="VOTE_STATUS_DOWNVOTED"?q()-1:q()},w=function(W){var C=W?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
h(C);var d=F(),p=_.vh().resolve(_.Y8(_.fM)),J=l();J&&(W&&(J==null?0:J.upvoteDefaultButtonOnTap)?_.Ux(J.upvoteDefaultButtonOnTap,{form:{element:u.value},disableClickTracking:!0}):(J==null?0:J.upvoteToggledButtonOnTap)&&_.Ux(J.upvoteToggledButtonOnTap,{form:{element:u.value},disableClickTracking:!0}));var M;W=(M=J==null?void 0:J.enableOptimisticReordering)!=null?M:R().enableOptimisticReordering;K&&p&&R().itemId&&W&&i_I(p,R().itemId,d,C)},m=function(W){var C=W?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
h(C);var d=F(),p=_.vh().resolve(_.Y8(_.fM)),J=l();J&&(W&&(J==null?0:J.downvoteDefaultButtonOnTap)?_.Ux(J.downvoteDefaultButtonOnTap,{form:{element:O.value},disableClickTracking:!0}):(J==null?0:J.downvoteToggledButtonOnTap)&&_.Ux(J.downvoteToggledButtonOnTap,{form:{element:O.value},disableClickTracking:!0}));var M;W=(M=J==null?void 0:J.enableOptimisticReordering)!=null?M:R().enableOptimisticReordering;K&&p&&R().itemId&&W&&i_I(p,R().itemId,d,C)};
f={};f=_.KL("ytVotingViewModelVoteCount",(f.ytVotingViewModelVoteCountDisabled=function(){return R().isDisabled},f));
return _.a("voting-view-model",{class:"ytVotingViewModelHost"},_.a("div",{el:u},_.a(_.y5,{data:function(){var W=_.t(R().upvoteButton,_.Np);return{toggleButtonViewModel:Object.assign({},W,{isToggled:c()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(W){return _.a(_.Lr,{data:W.data,
onToggle:w})}})),_.a("div",{class:f},function(){var W,C,d;
return c()==="VOTE_STATUS_UPVOTED"?(W=R().initialState)==null?void 0:W.compactVotesUpvoted:c()==="VOTE_STATUS_DOWNVOTED"?(C=R().initialState)==null?void 0:C.compactVotesDownvoted:(d=R().initialState)==null?void 0:d.compactVotes}),_.a("div",{el:O},_.a(_.y5,{data:function(){var W=_.t(R().downvoteButton,_.Np);
return{toggleButtonViewModel:Object.assign({},W,{isToggled:c()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(W){return _.a(_.Lr,{data:W.data,
onToggle:m})}})))},"Ib");_.ii(_.nf(function(f){var R=f.data;return _.a("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.a("div",{class:_.KL("ytEngagementBarViewModelEngagementBarWrapper",f.className)},_.a(_.y5,{data:function(){return R().actions}},{votingViewModel:r$f})))},"Jb"),"engagement-bar-view-model",{props:{data:_.SG,
className:_.SG}});var RP=function(){var f=_.U.apply(this,arguments)||this;f.amsterdamPostMvp=_.E("web_amsterdam_post_mvp_playlists");f.cairoCollabPlaylistPostMvp=_.E("web_collab_playlist_thumbnail_size");f.playlistVotingAnimationEnabled=_.E("web_enable_voting_animation");f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.downloadState="DOWNLOAD_STATE_UNKNOWN";f.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";f.offlineVideoPolicyExpirationTimestamp=0;return f};
_.y(RP,_.U);_.X=RP.prototype;_.X.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"}}}};
_.X.canReorderChanged=function(){this.persistentDragHandle=_.E("kevlar_playlist_drag_handles")&&this.canReorder};
_.X.onDrag=function(){if(this.thumbnail){var f=_.b(this.thumbnail).querySelector("yt-image");f&&(f.shouldRenderLazy=!1)}};
_.X.onMenuOverlayChanged=function(f,R){this.menuOpened=R};
_.X.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.X.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.X.onContentsTap=function(f){var R,u=(R=this.data)==null?void 0:R.serviceEndpoints;if(u&&u.length===1&&_.t(u[0],cRq)&&!_.$G(_.$S(f),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(u[0]);else{var O;(R=(O=this.data)==null?void 0:O.navigationEndpoint)&&_.E("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?fJY(_.vh().resolve(_.MS),R):(_.qk().playlistSuggestionsShelfActivation=
!0,_.R1G(_.vh().resolve(_.MS),R)):R&&!_.$G(_.$S(f),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.E("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.ul(this.hostElement,"yt-navigate",{endpoint:R}):this.ytComponentBehavior.resolveCommand(R))}};
_.X.computeStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeThumbnailWidth=function(f){return f==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.X.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=Ku2(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))}};
_.X.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.X.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.X.dataChanged=function(){if(this.data){var f,R,u,O=((f=this.downloadRenderData)==null?void 0:f.badges)&&((R=this.downloadRenderData)==null?void 0:R.badges)!==((u=this.data)==null?void 0:u.badges),c,h,l;f=((c=this.downloadRenderData)==null?void 0:c.thumbnailOverlays)&&((h=this.downloadRenderData)==null?void 0:h.thumbnailOverlays)!==((l=this.data)==null?void 0:l.thumbnailOverlays);(!this.downloadRenderData||O||f)&&this.downloadStateChanged()}};
_.X.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var f,R,u=(f=this.data.menu)==null?void 0:(R=f.menuRenderer)==null?void 0:R.items;if(u)for(f=_.Z(u),R=f.next();!R.done;R=f.next())if(R=R.value,u=void 0,_.t((u=R.menuServiceItemRenderer)==null?void 0:u.serviceEndpoint,_.ji)){var O=u=void 0,c=void 0;R=(u=R)==null?void 0:(O=u.menuServiceItemRenderer)==null?void 0:(c=O.serviceEndpoint)==null?void 0:c.playlistEditEndpoint;c=O=void 0;if(u=(O=R)==null?void 0:(c=O.actions)==null?void 0:
c[0])O=void 0,u.setVideoId=(O=this.data)==null?void 0:O.setVideoId;c=O=u=void 0;if(R=(u=R)==null?void 0:(O=u.clientActions)==null?void 0:(c=O[0])==null?void 0:c.playlistRemoveVideosAction)u=void 0,R.setVideoIds=[(u=this.data)==null?void 0:u.setVideoId]}}};
_.Vy.Object.defineProperties(RP.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
RP.prototype.setVideoIdChanged=RP.prototype.setVideoIdChanged;RP.prototype.dataChanged=RP.prototype.dataChanged;RP.prototype.downloadStateChanged=RP.prototype.downloadStateChanged;RP.prototype.onMenuOverlayChanged=RP.prototype.onMenuOverlayChanged;RP.prototype.canReorderChanged=RP.prototype.canReorderChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],RP.prototype,"ytdReduxBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],RP.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],RP.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],RP.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],RP.prototype,"amsterdamPostMvp",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],RP.prototype,"canReorder",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],RP.prototype,"menuOpened",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],RP.prototype,"handleIsHovered",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],RP.prototype,"persistentDragHandle",void 0);
_.B([_.I(),_.S("design:type",Object)],RP.prototype,"downloadRenderData",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],RP.prototype,"styleType",void 0);_.B([_.I({computed:"computeThumbnailWidth(data.style)"}),_.S("design:type",Number)],RP.prototype,"thumbnailWidth",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],RP.prototype,"isDownloads",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],RP.prototype,"cairoCollabPlaylistPostMvp",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],RP.prototype,"playlistVotingAnimationEnabled",void 0);_.B([_.I({selector:IL,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],RP.prototype,"downloadProgress",void 0);_.B([_.I(),_.S("design:type",Number)],RP.prototype,"relativeDateReference",void 0);
_.B([_.I({selector:_.Te,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],RP.prototype,"transferState",void 0);_.B([_.I({selector:HN0,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],RP.prototype,"downloadState",void 0);_.B([_.I({selector:Ehl,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],RP.prototype,"offlinePolicyAction",void 0);_.B([_.I({selector:tiP,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],RP.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.B([_.I({selector:ytn,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],RP.prototype,"entityInfo",void 0);_.B([_.I({selector:_.Jh}),_.S("design:type",Boolean)],RP.prototype,"miniplayerIsActive",void 0);_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],RP.prototype,"playlistVideoId",null);_.B([_.a4("#thumbnail"),_.S("design:type",Object)],RP.prototype,"thumbnail",void 0);
_.B([_.QR("canReorder"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],RP.prototype,"canReorderChanged",null);_.B([_.Kf("yt-menu-overlay-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Boolean]),_.S("design:returntype")],RP.prototype,"onMenuOverlayChanged",null);
_.B([_.QR("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],RP.prototype,"downloadStateChanged",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],RP.prototype,"dataChanged",null);
_.B([_.QR("data.setVideoId"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],RP.prototype,"setVideoIdChanged",null);RP=_.B([_.e({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],RP);
_.G(RP,"ytd-playlist-video-renderer",function(){if(vBC!==void 0)return vBC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);f.content.insertBefore(YgA().content.cloneNode(!0),f.content.firstChild);return vBC=f},{mode:1});var u6l;var up=function(){return _.U.apply(this,arguments)||this};
_.y(up,_.U);_.B([_.I(),_.S("design:type",Object)],up.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],up.prototype,"rendererBehavior",void 0);up=_.B([_.e({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],up);
_.G(up,"ytd-premium-browse-footer-renderer",function(){if(u6l!==void 0)return u6l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return u6l=f},{mode:1});var O3F;var OA=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return f};
_.y(OA,_.U);_.X=OA.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.handleDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.computeHeaderLogoThumbnail=function(f,R){if(f)return R?f.darkLogo:f.lightLogo};
_.X.computeHeaderLogoHeight=function(f,R){var u,O,c;return(f=(u=this.computeHeaderLogoThumbnail(f,R))==null?void 0:(O=u.thumbnails)==null?void 0:(c=O[0])==null?void 0:c.height)&&f%31===0?"31":"24"};
_.X.computeHeaderLogoMarginBottom=function(f,R){return this.computeHeaderLogoHeight(f,R)==="24"?"0":"-7"};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],OA.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],OA.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],OA.prototype,"isDarkTheme",void 0);_.B([_.I({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.S("design:type",Object)],OA.prototype,"themeLogo",void 0);
_.B([_.I({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.S("design:type",String)],OA.prototype,"logoHeight",void 0);_.B([_.I({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.S("design:type",String)],OA.prototype,"logoMarginBottom",void 0);OA=_.B([_.e({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],OA);
_.G(OA,"ytd-primetime-promo-header-renderer",function(){if(O3F!==void 0)return O3F;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return O3F=f},{mode:1});var cGF;var h1f=_.nf(function(f){var R=_.Ff(function(c){var h;(h=f.onClick)==null||h.call(f,c)}),u={},O={};
return _.a("yt-shelf-header-layout",{class:_.KL("shelf-header-layout-wiz",(u["shelf-header-layout-wiz--disable-horizontal-padding"]=f.disableHorizontalPadding,u["shelf-header-layout-wiz--disable-vertical-padding"]=f.disableVerticalPadding,u["shelf-header-layout-wiz--responsive"]=f.useResponsiveLayout,u["shelf-header-layout-wiz--narrow"]=function(){var c,h;return((c=f.useResponsiveLayout)==null?void 0:c.call(f))&&((h=f.forceSmallLayout)==null?void 0:h.call(f))},u["shelf-header-layout-wiz--is-overlay"]=
f.isOverlay,u["shelf-header-layout-wiz--tappable"]=!!f.onClick,u)),
"on:click":R,tabindex:f.onClick?0:void 0},_.a(_.Q,{cond:f.leadingIcon,then:function(c){return _.a("div",{class:"shelf-header-layout-wiz__leading-icon"},_.a(_.WM,{icon:c}))},
else:function(){return _.a(_.Q,{cond:f.hasLeadingImage,then:function(){var c,h={};return _.a("div",{class:_.KL("shelf-header-layout-wiz__leading-image",(h["shelf-header-layout-wiz__leading-image--circular-image"]=f.circularImage,h))},(c=f.leadingImage)==null?void 0:c.call(f))}})}}),_.a("div",{class:"shelf-header-layout-wiz__label-container"},_.a(_.Q,{cond:f.hasSuperlabel,
then:function(){var c;return _.a("div",{class:"shelf-header-layout-wiz__superlabel"},(c=f.superlabel)==null?void 0:c.call(f))}}),_.a("div",{class:"shelf-header-layout-wiz__title-row"},_.a(XZf,{text:f.title,
className:_.KL("shelf-header-layout-wiz__title",(O["shelf-header-layout-wiz__title--small-title"]=f.forceSmallLayout,O)),tagLevel:f.tagLevel}),_.a(_.Q,{cond:f.hasDetail,then:function(){var c;return _.a("div",{class:"shelf-header-layout-wiz__detail"},(c=f.detail)==null?void 0:c.call(f))}})),_.a(_.Q,{cond:f.hasSublabel,
then:function(){var c;return _.a("div",{class:"shelf-header-layout-wiz__sublabel"},(c=f.sublabel)==null?void 0:c.call(f))}})),_.a(_.Q,{cond:f.hasTrailingActions,
then:function(){var c;return _.a("div",{class:"shelf-header-layout-wiz__trailing-actions"},(c=f.trailingActions)==null?void 0:c.call(f))}}))},"Kb");
h1f.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var XZf=_.nf(function(f){var R=f.text;var u=f.className;var O=f.tagLevel;return _.a(_.yM,null,_.a(_.t1,{when:function(){return(O==null?void 0:O())===0}},function(){return _.a("h2",{class:u},R())}),_.a(_.t1,{when:function(){return(O==null?void 0:O())===1}},function(){return _.a("h3",{class:u},R())}),_.a(_.t1,{when:function(){return(O==null?void 0:O())===2}},function(){return _.a("h4",{class:u},R())}),_.a(_.CQ,null,function(){return _.a("h2",{class:u},R())}))},"Lb");var kNA,Z3f,lJC;_.c3=_.nf(function(f){var R=f.data;return _.a("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Qm({"background-color":function(){return x07(R().backgroundColor)?_.ML(x07(R().backgroundColor)):void 0}})},_.a(h1f,{hasDetail:!1,
title:function(){return _.a(_.YO,{text:function(){return R().headline}})},
hasTitle:!0,sublabel:function(){return _.a(Z3f,{data:R})},
hasSublabel:function(){return!!R().sublabel||!!R().bottomBadge},
superlabel:function(){return _.a(lJC,{data:R})},
hasSuperlabel:function(){return!!R().superlabel||!!R().topBadge},
leadingImage:function(){return _.a(kNA,{leadingAccessory:function(){return R().leadingAccessory}})},
hasLeadingImage:function(){return!!R().leadingAccessory},
trailingActions:function(){return _.a(_.y5,{data:function(){return R().trailingActions}},{flexibleActionsViewModel:pe})},
hasTrailingActions:function(){return!!R().trailingActions},
disableHorizontalPadding:f.disableHorizontalPadding,disableVerticalPadding:f.disableVerticalPadding,forceSmallLayout:f.forceSmallLayout,useResponsiveLayout:f.useResponsiveLayout,isOverlay:f.isOverlay,onClick:function(u){if(_.oA(R().rendererContext)){var O=_.BJ(R().rendererContext);O&&_.IF(O,{form:{element:u.target,event:u}})}}}))},"Mb");
kNA=_.nf(function(f){var R=f.leadingAccessory;return _.a(_.RS,null,_.a(_.Q,{cond:function(){var u;return(u=R().image)!=null?u:_.V5(R().themedImage)},
then:function(u){return _.a(_.gR,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.a(_.Q,{cond:function(){return _.t(R().avatar,_.SP)},
then:function(u){return _.a(_.NC,{data:u})}}))},"Nb");
Z3f=_.nf(function(f){var R=f.data;return _.a(_.RS,null,_.a(_.Q,{cond:function(){return _.t(R().bottomBadge,Mvl)},
then:function(u){var O={};return _.a(_.vP,{data:u,class:_.KL((O.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!R().sublabel},O))})}}),_.a(_.Q,{cond:function(){return R().sublabel},
then:function(u){return _.a(_.YO,{text:u})}}))},"Ob");
lJC=_.nf(function(f){var R=f.data;return _.a(_.RS,null,_.a(_.Q,{cond:function(){return _.t(R().topBadge,Mvl)},
then:function(u){var O={};return _.a(_.vP,{data:u,class:_.KL((O.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!R().superlabel},O))})}}),_.a(_.Q,{cond:function(){return R().superlabel},
then:function(u){return _.a(_.YO,{text:u})}}))},"Pb");_.ii(_.c3,"yt-section-header-view-model",{props:{data:_.SG,className:_.SG,disableHorizontalPadding:_.SG,disableVerticalPadding:_.SG,forceSmallLayout:_.SG,useResponsiveLayout:_.SG,isOverlay:_.SG}});_.j6("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Xo=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return f};
_.y(Xo,_.U);_.X=Xo.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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"}}}};
_.X.onDataChange=function(){var f=this;_.su(this,function(){f.updateItemVisibility()})};
_.X.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f,this.updateItemVisibility())};
_.X.updateItemVisibility=function(){var f=this;this.data&&this.data.panels&&_.b(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(R,u){R.hidden=u>f.elementsPerRow-1})};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
Xo.prototype.onDataChange=Xo.prototype.onDataChange;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],Xo.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Xo.prototype,"actionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Xo.prototype,"data",void 0);_.B([_.I({value:3}),_.S("design:type",Number)],Xo.prototype,"elementsPerRow",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xo.prototype,"onDataChange",null);Xo=_.B([_.e({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Xo);
_.G(Xo,"ytd-primetime-promo-renderer",function(){if(cGF!==void 0)return cGF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return cGF=f},{mode:1});var KVA;var hv=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return f};
_.y(hv,_.U);hv.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
hv.prototype.handleButtonRefreshAction=function(f){if(f=_.t(f,vRE))this.set("data.button",f.membershipButton),this.notifyPath("data.button")};
_.Vy.Object.defineProperties(hv.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:(R=f.avatars)==null?void 0:R.slice(0,8))||[]}}});
_.B([_.I(),_.S("design:type",Object)],hv.prototype,"data",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],hv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hv.prototype,"rendererBehavior",void 0);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],hv.prototype,"avatars",null);
hv=_.B([_.e({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],hv);
_.G(hv,"ytd-recognition-shelf-renderer",function(){if(KVA!==void 0)return KVA;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KVA=f},{mode:1});var qRH;var AGi;var Zx=function(){var f=_.U.apply(this,arguments)||this;f.modernButtons=_.E("web_modern_buttons");return f};
_.y(Zx,_.U);_.X=Zx.prototype;
_.X.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]]"}}}}}};
_.X.dataChanged=function(){this.collapsed=!0};
_.X.computeVisibleItems=function(f,R){return f!==void 0&&f.items?R?f.items.slice(0,this.data.collapsedItemCount):f.items:[]};
_.X.computeHideShowMore=function(f,R,u){return f>=R||!u};
_.X.computeHideShowAll=function(f,R,u){return!(f&&R)||u};
_.X.onMoreClick=function(){this.collapsed=!1};
_.Vy.Object.defineProperties(Zx.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.E("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.uZ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.E("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Zx.prototype.dataChanged=Zx.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zx.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Zx.prototype,"isSearch",void 0);
_.B([_.I({computed:"computeVisibleItems(data,collapsed)"}),_.S("design:type",Array)],Zx.prototype,"visibleItems",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],Zx.prototype,"collapsed",void 0);_.B([_.I({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.S("design:type",Boolean)],Zx.prototype,"hideShowMore",void 0);
_.B([_.I({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.S("design:type",Boolean)],Zx.prototype,"hideShowAll",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Zx.prototype,"modernButtons",void 0);_.B([_.T("isSearch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Zx.prototype,"typographyBump",null);
_.B([_.T("isSearch"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zx.prototype,"lockupExperiments",null);_.B([_.T("isSearch"),_.S("design:type",String),_.S("design:paramtypes",[])],Zx.prototype,"thumbnailWidth",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zx.prototype,"dataChanged",null);Zx=_.B([_.e({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Zx);
_.G(Zx,"ytd-vertical-list-renderer",function(){if(AGi!==void 0)return AGi;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return AGi=f},{mode:1});var aJE=_.Sg(["#"]);_.j6("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var lp=function(){var f=_.U.apply(this,arguments)||this;f.isConstrainedList=!1;f.modernTypography=_.E("web_modern_typography");return f};
_.y(lp,_.U);_.X=lp.prototype;
_.X.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"}}}};
_.X.computeThumbnailStyle=function(f){return f||""};
_.X.computePlaceAnnotationUnderTitle=function(){var f;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((f=this.data)==null?void 0:f.thumbnailStyle)||"")};
_.X.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f)||_.dQ(aJE)};
_.X.computeIsPromoShelf=function(f){var R;return(f=f==null?void 0:(R=f[0])==null?void 0:R.metadataBadgeRenderer)?f.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.X.computePlaceBadgeBesideTitle=function(f){var R;return(f==null?0:(R=f[0])==null?0:R.metadataBadgeRenderer)?!this.computeIsPromoShelf(f):!1};
_.X.computeMenuIcon=function(f){return this.computeIsPromoShelf(f)?"yt-icons:more_vert":"yt-icons:more"};
_.X.onDataChange=function(){var f,R;((f=this.data)==null?0:(R=f.content)==null?0:R.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.X.onLockupRequested=function(f){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&f.detail&&f.detail.videoIds){for(var R=this.data.content.gridRenderer.items,u=new Set,O=_.Z(f.detail.videoIds),c=O.next();!c.done;c=O.next())u.add(c.value);f.detail.returnValue=R.filter(function(h){return h.gridVideoRenderer&&h.gridVideoRenderer.videoId&&u.has(h.gridVideoRenderer.videoId)}).map(function(h){return h.gridVideoRenderer})}};
_.X.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
lp.prototype.onLockupRequested=lp.prototype.onLockupRequested;lp.prototype.onDataChange=lp.prototype.onDataChange;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],lp.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],lp.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],lp.prototype,"ironResizableBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lp.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],lp.prototype,"isSearch",void 0);_.B([_.I(),_.S("design:type",Object)],lp.prototype,"isConstrainedList",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("kevlar_fluid_dismiss")}}),
_.S("design:type",Boolean)],lp.prototype,"enableFluidDismiss",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.S("design:type",String)],lp.prototype,"thumbnailStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lp.prototype,"modernTypography",void 0);_.B([_.I({computed:"computeMenuIcon(data.badges)"}),_.S("design:type",String)],lp.prototype,"menuIcon",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lp.prototype,"onDataChange",null);_.B([_.Kf("yt-lockup-requested"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lp.prototype,"onLockupRequested",null);lp=_.B([_.e({is:"ytd-shelf-renderer",disableElementRegistration:!0})],lp);
_.G(lp,"ytd-shelf-renderer",function(){if(qRH!==void 0)return qRH;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qRH=f},{mode:1});var FVY;var ke=function(){return _.U.apply(this,arguments)||this};
_.y(ke,_.U);ke.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Vy.Object.defineProperties(ke.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ke.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ke.prototype,"isPlaylist",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ke.prototype,"isClipList",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ke.prototype,"isPlaylistPageWithFilters",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ke.prototype,"hasTitle",null);_.B([_.I(),_.T("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.S("design:type",Object),_.S("design:paramtypes",[])],ke.prototype,"isRightAligned",null);
ke=_.B([_.e({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],ke);
_.G(ke,"ytd-sort-filter-header-renderer",function(){if(FVY!==void 0)return FVY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FVY=f},{mode:1});var wZk;var KM=function(){return _.U.apply(this,arguments)||this};
_.y(KM,_.U);
KM.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]]"}}}}}};
KM.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Vy.Object.defineProperties(KM.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.E("enable_creator_details_shelf_m2")){var f=[],R;((R=this.data)==null?0:R.creatorVideosButton)&&f.push(this.data.creatorVideosButton);var u;((u=this.data)==null?0:u.creatorAboutButton)&&f.push(this.data.creatorAboutButton);R=_.Z(this.data.creatorCustomUrlButtons||[]);for(u=R.next();!u.done;u=R.next())f.push(u.value);return f}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.E("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],KM.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],KM.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KM.prototype,"engagementPanel",void 0);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],KM.prototype,"creatorCustomUrlButtons",null);_.B([_.I({reflectToAttribute:!0}),_.T("data","creatorCustomUrlButtons"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],KM.prototype,"showCreatorCustomUrlButtons",null);_.B([_.T("showCreatorCustomUrlButtons"),_.S("design:type",Number),_.S("design:paramtypes",[])],KM.prototype,"channelAvatarSize",null);
KM=_.B([_.e({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],KM);
_.G(KM,"ytd-video-description-infocards-section-renderer",function(){if(wZk!==void 0)return wZk;var f=document.createElement("template");_.N(f,'\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_">\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wZk=f},{mode:_.c7("kevlar_poly_si_batch_j067")?1:2});var mJI;var qr=function(){return _.U.apply(this,arguments)||this};
_.y(qr,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qr.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.infoIcon)"}),_.S("design:type",Object)],qr.prototype,"infoIcon",void 0);qr=_.B([_.e({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],qr);
_.G(qr,"ytd-eom-settings-disclaimer-renderer",function(){if(mJI!==void 0)return mJI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return mJI=f},{mode:1});var QJE;var Av=function(){return _.U.apply(this,arguments)||this};
_.y(Av,_.U);_.Vy.Object.defineProperties(Av.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.suppressPaddingDisclaimer)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Av.prototype,"componentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Av.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Av.prototype,"suppressPaddingDisclaimer",null);Av=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Av);
_.G(Av,"ytd-product-list-header-renderer",function(){if(QJE!==void 0)return QJE;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return QJE=f},{mode:1});var WVH;var aP=function(){return _.U.apply(this,arguments)||this};
_.y(aP,_.U);aP.prototype.computeThumbnailStyle=function(f){if(f&&(f=_.I1(f)))return"background-color:"+f+";"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aP.prototype,"rendererBehaviors",void 0);_.B([_.I(),_.S("design:type",Object)],aP.prototype,"data",void 0);aP=_.B([_.e({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],aP);
_.G(aP,"ytd-hashtag-tile-renderer",function(){if(WVH!==void 0)return WVH;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WVH=f},{mode:1});var EXi;var Fo=function(){return _.U.apply(this,arguments)||this};
_.y(Fo,_.U);Fo.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Fo.prototype,"data",void 0);Fo=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Fo);
_.G(Fo,"ytd-sponsorships-alert-renderer",function(){if(EXi!==void 0)return EXi;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return EXi=f},{mode:1});var t3k;var wV=function(){return _.U.apply(this,arguments)||this};
_.y(wV,_.U);wV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Vy.Object.defineProperties(wV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.B([_.z(_.HX),_.S("design:type",Object)],wV.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],wV.prototype,"ytdLockupBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],wV.prototype,"isGridViewEnabled",void 0);
_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wV.prototype,"watchFeedBigThumbs",null);_.B([_.T("isGridViewEnabled"),_.I({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],wV.prototype,"thumbnailWidth",null);_.B([_.I(),_.S("design:type",Object)],wV.prototype,"data",void 0);wV=_.B([_.e({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],wV);
_.G(wV,"ytd-compact-movie-renderer",function(){if(t3k!==void 0)return t3k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return t3k=f},{mode:1});var CWf;var yGk;var dJY=_.Tf("HTML_DIR")==="rtl",m3=function(){var f=_.U.apply(this,arguments)||this;f.engagementPanel=!1;f.maxLines=2;f.expandButtonOffset=0;f.showExpandButton=!1;f.isTruncated=!1;f.isExpanded=!1;f.currentSnippetType=2;f.alwaysShowExpandButton=!1;f.JSC$14262_lastWidth=NaN;f.observer=null;f.left=0;f.right=0;f.mid=0;f.longestSnippetLength=0;f.isFinalSnippet=!1;f.isFirstMutation=!1;f.isResetMutation=!1;f.OVERFLOW_THRESHOLD=5;return f};
_.y(m3,_.U);_.X=m3.prototype;_.X.onClick=function(f){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;if((R=window.getSelection())==null||!R.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.X.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.X.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.X.updateTextOnSnippetTypeChange=function(){_.E("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.X.setUpBinarySearch=function(f){f=f*this.maxLines/8;this.left=0;var R,u;this.right=Math.min(f*2,(u=(R=this.simpleText)==null?void 0:R.length)!=null?u:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.X.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.X.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Ih(new _.ts("AttributedSnippet is empty when the description is not empty",this.text))};
_.X.mutationCallback=function(){if(this.observer!=null){var f=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var R=Math.floor(f*this.maxLines/8);this.setSnippetText(this.text,R);R!==0||this.attributedTextIsEmpty()||_.Ih(new _.ts("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;f=f*this.maxLines/8;this.left=0;var u;this.right=Math.min(f*2,(u=(R=this.simpleText)==null?void 0:R.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)}}};
_.X.mutationObserve=function(f){var R=this;this.observer||(this.observer=new MutationObserver(function(){R.mutationCallback()}));
this.observer.observe(f,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.X.attached=function(){var f=this;_.su(this,function(){f.resize()})};
_.X.isExpandedChanged=function(){_.ul(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.X.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)};
_.X.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var f="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((dJY?"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",f);this.snippetContainer.style.setProperty("mask-image",
f)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(dJY?"right":"left",this.expandButtonOffset+"px")};
_.X.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.X.setSnippetText=function(f,R){f||(f={});if(_.xr(f)){var u=Gst(f,R);u.attachmentRuns||u.commandRuns||u.decorationRuns||u.styleRuns||u.alignment||u.lineBreakMode?this.attributedSnippetTextEl?(_.E("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Gst(f,R),this.attributedSnippetTextEl.headerRuns=eYX(R,this.headerRuns)):this.attributedSnippetText={data:Gst(f,R),headerRuns:eYX(R,this.headerRuns)},this.currentSnippetType=0):_.Ih(new _.ts("Tried to set snippet text when HTML element was null",
f)):(this.plainSnippetText.textContent=GW(f.content||"",R),this.currentSnippetType=2)}else{a:{u=S55(f,R);if(u.runs){u=_.Z(u.runs);for(var O=u.next();!O.done;O=u.next())if(O=O.value,O.bold||O.deemphasize||O.italics||O.strikethrough||O.textColor||O.navigationEndpoint||_.t(O,J4)){u=!0;break a}}u=!1}u?this.formattedSnippetText?(this.formattedSnippetText.text=S55(f,R),this.currentSnippetType=1):_.Ih(new _.ts("Tried to set snippet text when HTML element was null",f)):(this.plainSnippetText.textContent=
GW(_.$Z(f),R),this.currentSnippetType=2)}};
_.X.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.X.attributedTextIsEmpty=function(){var f=this.text;if(!_.xr(f))return!0;var R;return((R=f.content)==null?void 0:R.length)===0?!0:!1};
_.X.resize=function(f){if(this.snippetText){if(f===void 0?0:f)this.JSC$14262_lastWidth=NaN;var R=this.hostElement.offsetWidth;if(R!==this.JSC$14262_lastWidth&&!this.isExpanded)if(this.JSC$14262_lastWidth=R,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;f=0;var u,O;R=Math.min(R*this.maxLines/8*2,(O=(u=this.simpleText)==null?void 0:u.length)!=null?O:0)-1;for(u=0;f<=R;)O=Math.floor(f+(R-f)/2),this.setSnippetText(this.text,O),this.isOverflowing()?R=O-1:(f=O+1,u=O);this.setSnippetText(this.text,u);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.X.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.X.onExpandClick=function(){var f=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.E("inline_expander_reset_focus_killswitch")||_.su(this,function(){var R;((R=_.vh().resolve(_.Y8(_.Oc)))==null?0:R.isKeyBoardInUse())&&_.Vb(f.hostElement)});
_.ul(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.X.onCollapseClick=function(){this.collapse();_.ul(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.X.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.X.computeExpandButtonOffset=function(){var f=this.expandSizer;return f?dJY?f.offsetParent?f.offsetParent.offsetWidth-f.offsetWidth-f.offsetLeft:0:f.offsetLeft:0};
_.Vy.Object.defineProperties(m3.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.xr(this.text)?this.text.content||"":_.$Z(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 _.xr(this.text)?!0:this.text&&_.E("web_replace_formatted_with_attributed_string")&&ZAn(this.text)?(this.text=_.Dz(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}}});
m3.prototype.onTextChanged=m3.prototype.onTextChanged;m3.prototype.updateMaskAndExpandButtonOffset=m3.prototype.updateMaskAndExpandButtonOffset;m3.prototype.updateSnippetContainerMaxHeight=m3.prototype.updateSnippetContainerMaxHeight;m3.prototype.isExpandedChanged=m3.prototype.isExpandedChanged;m3.prototype.updateTextOnSnippetTypeChange=m3.prototype.updateTextOnSnippetTypeChange;m3.prototype.updateIsFormattedExpanded=m3.prototype.updateIsFormattedExpanded;m3.prototype.updateIsAttributedExpanded=m3.prototype.updateIsAttributedExpanded;
m3.prototype.onClick=m3.prototype.onClick;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],m3.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],m3.prototype,"text",void 0);_.B([_.I(),_.S("design:type",Array)],m3.prototype,"headerRuns",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],m3.prototype,"engagementPanel",void 0);_.B([_.I(),_.S("design:type",Object)],m3.prototype,"maxLines",void 0);
_.B([_.I(),_.S("design:type",String)],m3.prototype,"expandLabel",void 0);_.B([_.I(),_.S("design:type",String)],m3.prototype,"collapseLabel",void 0);_.B([_.I(),_.S("design:type",Object)],m3.prototype,"expandCommand",void 0);_.B([_.I(),_.S("design:type",Object)],m3.prototype,"expandButtonOffset",void 0);_.B([_.T("text"),_.S("design:type",String),_.S("design:paramtypes",[])],m3.prototype,"simpleText",null);
_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],m3.prototype,"onClick",null);_.B([_.T("text","isExpanded"),_.S("design:type",Object),_.S("design:paramtypes",[])],m3.prototype,"expandedText",null);_.B([_.T("headerRuns","isExpanded"),_.S("design:type",Object),_.S("design:paramtypes",[])],m3.prototype,"expandedHeaderRuns",null);
_.B([_.T("text"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],m3.prototype,"hasAttributedStringText",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],m3.prototype,"showExpandButton",void 0);_.B([_.T("collapseLabel","isExpanded"),_.S("design:type",Object),_.S("design:paramtypes",[])],m3.prototype,"showCollapseButton",null);_.B([_.I(),_.S("design:type",Object)],m3.prototype,"isTruncated",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],m3.prototype,"isExpanded",void 0);_.B([_.I(),_.S("design:type",Boolean)],m3.prototype,"isAttributedExpanded",void 0);_.B([_.qM("isExpanded","hasAttributedStringText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"updateIsAttributedExpanded",null);_.B([_.I(),_.S("design:type",Boolean)],m3.prototype,"isFormattedExpanded",void 0);
_.B([_.qM("isExpanded","hasAttributedStringText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"updateIsFormattedExpanded",null);_.B([_.I(),_.S("design:type",Number)],m3.prototype,"currentSnippetType",void 0);_.B([_.T("currentSnippetType"),_.S("design:type",Object),_.S("design:paramtypes",[])],m3.prototype,"useAttributedSnippet",null);
_.B([_.T("currentSnippetType"),_.S("design:type",Object),_.S("design:paramtypes",[])],m3.prototype,"useFormattedSnippet",null);_.B([_.T("currentSnippetType"),_.S("design:type",Object),_.S("design:paramtypes",[])],m3.prototype,"usePlainSnippet",null);_.B([_.I(),_.S("design:type",Object)],m3.prototype,"alwaysShowExpandButton",void 0);_.B([_.qM("currentSnippetType"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"updateTextOnSnippetTypeChange",null);
_.B([_.I(),_.S("design:type",Object)],m3.prototype,"attributedSnippetText",void 0);_.B([_.a4("#snippet"),_.S("design:type",HTMLElement)],m3.prototype,"snippetContainer",void 0);_.B([_.a4("#snippet-text"),_.S("design:type",HTMLElement)],m3.prototype,"snippetText",void 0);_.B([_.a4("#plain-snippet-text"),_.S("design:type",HTMLElement)],m3.prototype,"plainSnippetText",void 0);_.B([_.a4("#formatted-snippet-text"),_.S("design:type",Object)],m3.prototype,"formattedSnippetText",void 0);
_.B([_.a4("#attributed-snippet-text"),_.S("design:type",Object)],m3.prototype,"attributedSnippetTextEl",void 0);_.B([_.a4("#expand"),_.S("design:type",HTMLElement)],m3.prototype,"expandButton",void 0);_.B([_.a4("#expand-sizer"),_.S("design:type",HTMLElement)],m3.prototype,"expandSizer",void 0);_.B([_.QR("isExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"isExpandedChanged",null);
_.B([_.qM("isExpanded","maxLines"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"updateSnippetContainerMaxHeight",null);_.B([_.qM("isTruncated","showExpandButton","expandButtonOffset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"updateMaskAndExpandButtonOffset",null);
_.B([_.QR("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m3.prototype,"onTextChanged",null);m3=_.B([_.e({is:"ytd-text-inline-expander",disableElementRegistration:!0})],m3);
_.G(m3,"ytd-text-inline-expander",function(){if(yGk===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);yGk=f}f=yGk;return f},{mode:2});var Qn=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return f};
_.y(Qn,_.U);Qn.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Qn.prototype.handleUpdateDescriptionAction=function(f){if(f=_.t(f,_.XYi))if(f.attributedDescription)this.set("data.attributedDescriptionBodyText",f.attributedDescription);else if(f.description){var R;((R=this.data)==null?0:R.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Dz(f.description)):this.set("data.descriptionBodyText",f.description)}};
_.Vy.Object.defineProperties(Qn.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.attributedDescriptionBodyText)||!((R=this.data)==null||!R.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.collapsedLineCount){var R;return(R=this.data)==null?void 0:R.collapsedLineCount}f=_.RV("web_watch_description_collapsed_default_lines",12);if(_.E("ww_desc_line_page_size_ks"))return f;R=Math.round(_.WL().height*_.RV("web_watch_description_screen_height_percentage",.5)/20);return Math.max(R,f)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return(u=(f=this.data)==null?void 0:f.descriptionBodyText)!=null?u:(R=this.data)==null?void 0:R.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.sourceAttributions}}});
Qn.prototype.panelContentVisibleChanged=Qn.prototype.panelContentVisibleChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Qn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Qn.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Qn.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Qn.prototype,"panelContentVisible",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Qn.prototype,"engagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Qn.prototype,"shortsPanel",void 0);_.B([_.a4("#inline-expander"),_.S("design:type",Object)],Qn.prototype,"inlineExpander",void 0);
_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qn.prototype,"panelContentVisibleChanged",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Qn.prototype,"hasDescriptionText",null);_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],Qn.prototype,"collapsedLines",null);
_.B([_.T("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Qn.prototype,"descriptionText",null);_.B([_.T("data","data.headerRuns"),_.S("design:type",Object),_.S("design:paramtypes",[])],Qn.prototype,"headerRuns",null);_.B([_.T("data","data.sourceAttributions"),_.S("design:type",Object),_.S("design:paramtypes",[])],Qn.prototype,"sourceAttributions",null);
Qn=_.B([_.e({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Qn);
_.G(Qn,"ytd-expandable-video-description-body-renderer",function(){if(CWf!==void 0)return CWf;var f=document.createElement("template");_.N(f,'\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]]" 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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return CWf=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var N$E;var LVi=_.nf(function(f){var R=f.data;return _.a("factoid-renderer",{class:"ytwFactoidRendererHost"},_.a("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return R().accessibilityText}},_.a("span",{class:"ytwFactoidRendererValue"},_.a(_.YO,{text:function(){return R().value}})),_.a("span",{class:"ytwFactoidRendererLabel"},_.a(_.YO,{text:function(){return R().label}}))))},"Qb");_.ii(LVi,"factoid-renderer",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;return _.a("upload-time-factoid-renderer",null,_.a(_.y5,{data:function(){return R().factoid}},{factoidRenderer:LVi}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.v7}});_.ii(_.nf(function(f){var R=f.data;return _.a("view-count-factoid-renderer",null,_.a(_.y5,{data:function(){return R().factoid}},{factoidRenderer:LVi}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.v7}});var W3=function(){var f=_.U.apply(this,arguments)||this;f.shortsPanel=!1;f.engagementPanel=!1;f.watchWhileSdp=_.E("shorts_desktop_watch_while_sdp");return f};
_.y(W3,_.U);W3.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"}}}}};
_.Vy.Object.defineProperties(W3.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var f;return(f=this.data)==null?void 0:f.channel}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],W3.prototype,"componentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],W3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W3.prototype,"shortsPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W3.prototype,"engagementPanel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W3.prototype,"watchWhileSdp",void 0);_.B([_.T("shortsPanel","engagementPanel","data.channel"),_.S("design:type",Object),_.S("design:paramtypes",[])],W3.prototype,"showChannelInfo",null);W3=_.B([_.e({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],W3);
_.G(W3,"ytd-video-description-header-renderer",function(){if(N$E!==void 0)return N$E;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return N$E=f},{mode:1});var b3F;var EA=function(){return _.U.apply(this,arguments)||this};
_.y(EA,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],EA.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],EA.prototype,"noPadding",void 0);_.B([_.I(),_.S("design:type",Object)],EA.prototype,"data",void 0);EA=_.B([_.e({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],EA);
_.G(EA,"ytd-list-item-view-model",function(){if(b3F!==void 0)return b3F;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return b3F=f},{mode:1});var pZE;var jJG;var DJE;var JGf;var tv=function(){var f=_.U.apply(this,arguments)||this;f.adaptiveFullWidth=!1;f.modernButtons=_.E("web_modern_buttons");f.buttonOverrides={style:"call-to-action",type:"filled"};f.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return f};
_.y(tv,_.U);tv.prototype.handleSetTimestamp_=function(f){this.data&&this.data.shortUrl&&(_.b(this.hostElement).querySelector("#share-url").value=f.isSet?_.U2(this.data.shortUrl,"t",f.timestamp):this.data.shortUrl)};
tv.prototype.handleSignalActionCopyShareUrl_=function(f,R){(_.E("killswitch_copy_link_target_check")||_.b(this.hostElement).querySelector("#copy-button")===R)&&this.copyUrlToClipboard()};
tv.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.b(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
tv.prototype.computeStyle_=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],tv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tv.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.S("design:type",String)],tv.prototype,"rendererStyle",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tv.prototype,"adaptiveFullWidth",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tv.prototype,"modernButtons",void 0);_.B([_.I(),_.S("design:type",Object)],tv.prototype,"buttonOverrides",void 0);tv=_.B([_.DO({is:"yt-copy-link-renderer",disableElementRegistration:!0})],tv);
_.G(tv,"yt-copy-link-renderer",function(){if(JGf===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;DJE===void 0&&(DJE=document.createElement("template"));var O=DJE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);JGf=f}f=JGf;return f},{mode:2});_.j6("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var CM=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return f};
_.y(CM,_.U);_.X=CM.prototype;_.X.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.X.attached=function(){this.keyboardFocused=!1};
_.X.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var f=_.vh().resolve(_.Y8(_.Oc));f&&(this.keyboardFocused=f.isKeyBoardInUse())}};
_.X.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.X.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}};
_.X.onChange_=function(){if(this.data){var f=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;f&&this.ytComponentBehavior.resolveCommand(f);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.X.handleUpdateToggleAction_=function(f){(f=_.t(f,q0I))&&this.data&&f.targetId==this.data.targetId&&this.set("data.toggled",f.toggled)};
_.X.toBoolean_=function(f){return!!f};
_.X.reset=function(){};
_.X.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("data-changed",this.data))};
_.X.updateDataToggledFromBinding=function(f){this.set("data.toggled",f.detail.value)};
CM.prototype.dataChangedForBinding=CM.prototype.dataChangedForBinding;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],CM.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],CM.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],CM.prototype,"data",void 0);_.B([_.I({computed:"computeDescription_(data.*)"}),_.S("design:type",Object)],CM.prototype,"description_",void 0);_.B([_.I({value:function(){return!!_.vh().resolve(_.Y8(_.Oc))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.S("design:type",Boolean)],CM.prototype,"useKeyboardFocused",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],CM.prototype,"keyboardFocused",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CM.prototype,"dataChangedForBinding",null);CM=_.B([_.DO({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],CM);
_.G(CM,"yt-toggle-form-field-renderer",function(){if(jJG===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;pZE===void 0&&(pZE=document.createElement("template"));var O=pZE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);jJG=f}f=jJG;return f},{mode:2});var z1C;var T$I;var yn=function(){var f=_.U.apply(this,arguments)||this;f.isDarkTheme=!1;f.isSearch=!1;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.noTopMargin=_.E("kevlar_watch_no_top_margin");f.maskFade=_.E("web_watch_chips_mask_fade");f.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 f};
_.y(yn,_.U);_.X=yn.prototype;_.X.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}}}}}};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.X.dataChanged=function(){var f=this.getSelectedIndex();if(f>0)this.selected=f;else{this.selected=0;var R,u;(R=this.ytScrollableChipCloudBehavior)==null||(u=R.reset)==null||u.call(R)}};
_.X.getSelectedIndex=function(){var f;if((f=this.data)==null||!f.chips)return-1;f=-1;for(var R,u=0;u<((R=this.data)==null?void 0:R.chips.length);u++){var O=void 0,c=void 0;if((O=this.data)==null?0:(c=O.chips[u].chipCloudChipRenderer)==null?0:c.isSelected){f=u;break}}return f};
_.X.onResize=function(){var f=this.ytScrollableChipCloudBehavior;_.su(f,f.setContainerWidthDiff);h0(this.ytScrollableChipCloudBehavior)};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.handleRelatedChipCommand=function(f,R){f=this.JSC$14289_chipsSelector.indexOf(R);f!==-1&&this.JSC$14289_chipsSelector.selectIndex(f)};
_.X.handleChipCloudChipSelectAction=function(f){f=this.JSC$14289_chipsSelector.indexOf(f);f>-1&&this.JSC$14289_chipsSelector.selectIndex(f)};
_.X.handleChipCloudChipDeselectAction=function(){var f=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14289_chipsSelector&&((f==null?0:f.continuationCommand)?_.hH(this.hostElement,[f]):(f==null?0:f.searchEndpoint)?this.ytComponentBehavior.resolveCommand(f):f&&_.ZW(this.hostElement,[f],this.hostElement),this.JSC$14289_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.X.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
yn.prototype.onResize=yn.prototype.onResize;yn.prototype.dataChanged=yn.prototype.dataChanged;yn.prototype.isSearchChanged=yn.prototype.isSearchChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],yn.prototype,"actionHandlerBehavior",void 0);
_.B([_.z(_.Lu),_.S("design:type",Object)],yn.prototype,"ironResizableBehavior",void 0);_.B([_.z(),_.S("design:type",XK)],yn.prototype,"ytScrollableChipCloudBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],yn.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yn.prototype,"data",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],yn.prototype,"selected",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yn.prototype,"isDarkTheme",void 0);_.B([_.I({value:160}),_.S("design:type",Number)],yn.prototype,"scrollDistance",void 0);_.B([_.I(),_.S("design:type",Object)],yn.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yn.prototype,"darkerDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yn.prototype,"noTopMargin",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yn.prototype,"maskFade",void 0);_.B([_.a4("#chips"),_.S("design:type",Object)],yn.prototype,"JSC$14289_chipsSelector",void 0);_.B([_.qM("isSearch"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yn.prototype,"isSearchChanged",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yn.prototype,"dataChanged",null);
_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yn.prototype,"onResize",null);yn=_.B([_.DO({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],yn);
_.G(yn,"yt-chip-cloud-renderer",function(){if(T$I===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;z1C===void 0&&(z1C=document.createElement("template"));var O=z1C;u.call(R,O.content.cloneNode(!0),f.content.firstChild);T$I=f}f=T$I;return f},{mode:2});var H3k,IJY=function(){return H3k!==void 0?H3k:H3k=document.createElement("template")};
document.head.appendChild(IJY().content);var M3f;var PWk=document.head,UJt=PWk.appendChild,e1k;if(M3f===void 0){var GNi=document.createElement("template");_.N(GNi,"");GNi.content.insertBefore(IJY().content.cloneNode(!0),GNi.content.firstChild);M3f=GNi}e1k=M3f;UJt.call(PWk,e1k.content);var B$f=_.nf(function(f){var R=f.data;return _.a("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.a("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.a("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.a(_.Q,{cond:function(){return _.V5(R().image)},
then:function(u){return _.a("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.a(_.gR,{data:u,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.a("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.a(_.YO,{text:function(){return R().subtitle}})))),_.a(_.Q,{cond:function(){var u;
return(u=R())==null?void 0:u.hasBottomDivider},
then:function(){return _.a("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var oXi=_.nf(function(f){var R=f.data;return _.a("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.a("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.a(_.y5,{data:function(){var u;return(u=R().offerPlanDetailsItem)!=null?u:[]}},{offerPlanDetailsItemViewModel:function(u){return _.a("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.a(B$f,{data:u.data}))}})),_.a("div",null,_.a(_.Q,{cond:function(){return R().hasBottomDivider},
then:function(){return _.a("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.a("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.a("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.a("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.a("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var xJI=_.nf(function(f){var R=f.data;f=_.Z(_.qK(!1,void 0,"SpEGQd"));var u=f.next().value,O=f.next().value,c=_.Ff(function(){O(!u());return!1}),h=function(){var l;
return(l=R().offerPlanDetailsContainer)!=null?l:[]};
return _.a("lp-complex-offer-card-details-view-model",null,_.a("div",null,_.a(_.Q,{cond:function(){return u()},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.a("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":c,"aria-expanded":u},_.a(_.YO,{text:function(){return R().expandedTitle}})),_.a("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.a(_.y5,{data:h},{offerPlanDetailsContainerViewModel:function(l){return _.a("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.a(oXi,{data:l.data}))}})),_.a("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.a(_.YO,{text:function(){return R().legalText}})))},
else:function(){return _.a("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":c,"aria-expanded":u},_.a(_.YO,{text:function(){return R().collapsedTitle}}),_.a("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.a(_.WM,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var SRC=_.nf(function(f){var R=f.data;return _.a("lp-complex-offer-card-option-view-model",null,_.a("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.a(_.Q,{cond:function(){return R().topDividerText},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.a("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.a("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.a("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.a(_.YO,{text:function(){return R().topDividerText}}))))}}),_.a(_.Q,{cond:function(){return R().planPricingPrimary},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.a(_.YO,{text:function(){return R().planPricingPrimary}}))}}),_.a(_.Q,{cond:function(){return R().planPricingSecondary},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.a(_.YO,{text:function(){return R().planPricingSecondary}}))}}),_.a(_.Q,{cond:function(){return R().primaryButton},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.a(_.y5,{data:function(){return R().primaryButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var $Jf=_.nf(function(f){var R=f.data;var u=function(){var h;return((h=R())==null?void 0:h.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
f={};var O={},c={};return _.a("ytm-lp-complex-offer-card-view-model",null,_.a("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.a("div",{class:_.KL((f.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=u,f),"ytmLpComplexOfferCardViewModelCardContainer")},_.a(_.Q,{cond:function(){var h;return(h=R())==null?void 0:h.bannerText},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.a("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.a(_.YO,{text:function(){return R().bannerText}})))}}),_.a(_.Q,{cond:function(){return _.V5(R().logo)},
then:function(h){var l={};return _.a("div",{class:_.KL((l.ytmLpComplexOfferCardViewModelLogoAlignLeft=u,l),"ytmLpComplexOfferCardViewModelLogo")},_.a(_.gR,{data:h,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.a("div",{class:_.KL((O.ytmLpComplexOfferCardViewModelTitleAlignLeft=u,O),"ytmLpComplexOfferCardViewModelTitle")},_.a(_.YO,{text:function(){return R().title}})),_.a(_.Q,{cond:function(){var h;
return(h=R())==null?void 0:h.subtitle},
then:function(){var h={};return _.a("div",{class:_.KL((h.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=u,h),"ytmLpComplexOfferCardViewModelSubtitle")},_.a(_.YO,{text:function(){return R().subtitle}}))}}),_.a(_.Q,{cond:function(){return R().planPricingPrimary},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.a(_.YO,{text:function(){return R().planPricingPrimary}}))}}),_.a(_.Q,{cond:function(){return R().planPricingSecondary},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.a(_.YO,{text:function(){return R().planPricingSecondary}}))}}),_.a(_.Q,{cond:function(){return R().purchaseButton},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.a(_.y5,{data:function(){return R().purchaseButton}},{buttonViewModel:function(h){return _.a(_.TS,{data:h.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.a(_.Q,{cond:function(){var h;
return(h=R())==null?void 0:h.offerOptions},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.a(_.y5,{data:function(){return R().offerOptions}},{lpComplexOfferCardOptionViewModel:SRC}))}}),_.a("div",{class:_.KL((c.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=u,c),"ytmLpComplexOfferCardViewModelLegalText")},_.a(_.YO,{text:function(){return R().legalText}})),_.a(_.Q,{cond:function(){var h;
return(h=R())==null?void 0:h.offerCardDetails},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.a(_.y5,{data:function(){return R().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:xJI}))}}))))},"Xb");var gXY=_.nf(function(f){var R=f.data;var u=function(){var l;return((l=R())==null?void 0:l.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
f={};var O={},c={},h={};return _.a("ytm-lp-complex-offer-card-section-view-model",null,_.a("div",{class:_.KL("ytmLpComplexOfferCardSectionViewModelHost")},_.a("div",{class:_.KL((f.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=u,f),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.a("div",{class:_.KL((O.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=u,O),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.a("h2",{class:_.KL((c.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
u,c),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.a(_.YO,{text:function(){return R().title}}))),_.a(_.Q,{cond:function(){var l;
return(l=R())==null?void 0:l.subtitle},
then:function(){var l={},K={};return _.a("div",{class:_.KL((l.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=u,l),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.a("div",{class:_.KL((K.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=u,K),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.a(_.YO,{text:function(){return R().subtitle}})))}}),_.a("div",{class:_.KL((h.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=u,h),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.a(_.y5,{data:function(){var l;
return(l=R().offerPlans)!=null?l:[]}},{lpComplexOfferCardViewModel:function(l){return _.a("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.a($Jf,{data:l.data}))}})))))},"Yb");_.dV=pQA.getInstance();var sJi=_.nf(function(f){return _.a("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":f.shouldAriaHideContent},_.a("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:f.questionId},_.a(_.YO,{text:f.question})))},"Zb"),nXk=_.nf(function(f){var R=f.data;
var u=f.themeOverride;f=_.Z(_.qK(!1,void 0,"ljTVPd"));var O=f.next().value,c=f.next().value;f=_.Ff(function(){c(!O());return!1});
var h=function(){return O()?"EXPAND_LESS":"EXPAND_MORE"},l=("faq-container"+_.j4(_.dV)).toString(),K="faq-question-and-answers-section-question"+_.j4(_.dV),q={},F={};
return _.a("faq-entry-view-model-c3",null,_.a("div",{class:_.KL("yt-lp-faq-entry-view-model",(q["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return u==null?void 0:u().useDarkTheme},q))},_.a("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":f,role:"button","aria-expanded":O,"aria-labelledby":K.toString(),"tab-index":"0"},_.a(sJi,{question:function(){return R().question},
questionId:K,shouldAriaHideContent:!0}),_.a(_.Q,{cond:function(){return O()!==void 0},
then:function(){return _.a("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.a(_.WM,{icon:h,ariaHidden:!0}),_.a("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.a("div",{class:_.KL("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(F["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!O()},F))},_.a("div",{id:l},_.a(_.EC,{each:function(){return R().answers||[]}},function(w){return _.a("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.a(_.YO,{text:w}))})))))},"$b");
nXk.idomCompat=!0;var V3A=_.nf(function(f){var R=f.data;var u=f.themeOverride;f={};return _.a("lp-faq-section-view-model-c3",null,_.a("div",{class:_.KL("yt-lp-faq-section-view-model",(f["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},f["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},f))},_.a("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.a(_.Q,{cond:function(){return R().header},
then:function(O){return _.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.a(_.YO,{text:O}))}}),_.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.a(_.y5,{data:function(){return R().faqs}},{faqEntryViewModel:function(O){return _.a(nXk,{data:O.data,
themeOverride:u})}})),_.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.a(_.EC,{each:function(){return R().footers||[]}},function(O){return _.a(_.YO,{text:O})})),_.a(_.Q,{cond:function(){return R().legal},
then:function(O){return _.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.a(_.YO,{text:O}))}}))))},"ac");
V3A.idomCompat=!0;var YRE=_.nf(function(f){var R=f.data;var u=f.themeOverride;_.bt(function(){var l=R().gtmId;l&&_.Ck(l,_.Tf("GL",""))});
var O={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var l,K,q;return(q=(l=R().logo)==null?void 0:(K=l.accessibilityData)==null?void 0:K.label)!=null?q:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},c=_.vh().resolve(_.Y8(_.oF)),h=function(){return c&&c()||(u==null?void 0:u().useDarkTheme)};
return _.a("lp-header-section-view-model",null,_.a("div",{class:function(){var l=R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",K=R().marginType==="LP_SECTION_MARGIN_TYPE_TOP",q=u==null?void 0:u().useDarkTheme,F=["lp-header-section-view-model"];l&&F.push("lp-header-section-view-model--ptc-layout-type");K&&F.push("lp-header-section-view-model__lp-header-section-margin");q&&F.push("lp-header-section-view-model--premium-force-dark-mode");return F.join(" ")}},_.a(_.Q,{cond:function(){return R().logo},
then:function(){return _.a("div",null,_.a(_.Q,{cond:h,then:function(){return _.a(_.Q,{cond:function(){var l;return(l=R().logo)==null?void 0:l.imageDark},
then:function(l){return _.a(_.gR,Object.assign({},{data:l},O))}})},
else:function(){return _.a(_.Q,{cond:function(){var l;return(l=R().logo)==null?void 0:l.imageLight},
then:function(l){return _.a(_.gR,Object.assign({},{data:l},O))}})}}))}}),_.a(_.Q,{cond:function(){return R().title},
then:function(l){return _.a("div",{class:"lp-header-section-view-model__lp-header-title"},_.a(_.YO,{text:l}))}}),_.a("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.a(_.Q,{cond:function(){return R().subtitles},
then:function(l){return _.a(_.EC,{each:l},function(K){return _.a("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.a(_.YO,{text:K}))})}})),_.a(_.Q,{cond:function(){return R().additionalInfo},
then:function(l){return _.a("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.a(_.YO,{text:l}))}}),_.a("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.a(_.Q,{cond:function(){return R().primaryButton},
then:function(l){return _.a("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.a(_.y5,{data:l},{buttonViewModel:_.TS}))}}),_.a(_.Q,{cond:function(){return R().secondaryButton},
then:function(l){return _.a("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.a(_.y5,{data:l},{buttonViewModel:_.TS}))}})),_.a(_.Q,{cond:function(){return R().otherOffersInfo},
then:function(l){return _.a("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.a(_.YO,{text:l}))}}),_.a("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.a(_.Q,{cond:function(){return R().billingInfo},
then:function(l){return _.a(_.EC,{each:l},function(K){return _.a("div",null,_.a(_.YO,{text:K}))})}}))))},"bc");
YRE.idomCompat=!0;var vXA=_.nf(function(f){var R=f.data;var u=_.g_(f.themeOverride,{useDarkTheme:!1});f={};f=_.KL("ytm-lp-headline-section-view-model",(f["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return u().useDarkTheme},f));
return _.a("lp-headline-section-view-model",null,_.a("div",{class:f},_.a("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.a(_.YO,{text:function(){return R().title}})),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(O){return _.a("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.a(_.YO,{text:O}))}})))},"cc");var i3G=_.nf(function(f){var R=f.data;var u=f.themeOverride;var O=_.vh().resolve(_.Y8(_.oF)),c=function(){return O&&O()||(u==null?void 0:u().useDarkTheme)},h=function(){var F,w;
var m=c()?(F=R().textBackgroundImage)==null?void 0:F.imageDark:(w=R().textBackgroundImage)==null?void 0:w.imageLight;return lx2((m==null?void 0:m.sources)||[])},l=function(){var F,w;
return c()?(F=R().featureImage)==null?void 0:F.imageDark:(w=R().featureImage)==null?void 0:w.imageLight},K=function(){return R().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},q=function(){var F,w;
return c()?(F=R().logo)==null?void 0:F.imageDark:(w=R().logo)==null?void 0:w.imageLight};
return _.a("ytm-lp-large-feature-section-view-model",null,_.a("div",{class:function(){var F=R().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",w=R().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",m=(R().index||0)%2===1,W=u==null?void 0:u().useDarkTheme,C=["yt-lp-large-feature-section-view-model"];F?C.push("yt-lp-large-feature-section-view-model--music-feature-type"):w?C.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):m||C.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
W&&C.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return C.join(" ")}},_.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.a(_.Q,{cond:l,
then:function(){return _.a(_.gR,{data:function(){return l()},
alt:function(){var F,w,m;return(m=(F=R().featureImage)==null?void 0:(w=F.accessibilityData)==null?void 0:w.label)!=null?m:""},
contentMode:K})}})),_.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var F;return((F=h())==null?0:F.url)?"background-image: url("+_.EO(h().url)+");":""}},_.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.a(_.Q,{cond:q,
then:function(){return _.a(_.gR,{data:function(){return q()},
alt:function(){var F,w,m;return(m=(F=R().logo)==null?void 0:(w=F.accessibilityData)==null?void 0:w.label)!=null?m:""},
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"})}}),_.a(_.Q,{cond:function(){return R().eyebrowText},
then:function(){return _.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.a(_.YO,{text:function(){return R().eyebrowText}}))}}),_.a(_.Q,{cond:function(){return R().title},
then:function(){return _.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.a(_.YO,{text:function(){return R().title}}))}}),_.a(_.Q,{cond:function(){return R().subtitles},
then:function(){return _.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.a(_.EC,{each:function(){return R().subtitles||[]}},function(F){return _.a(_.YO,{text:F})}))}})))))},"dc");
i3G.idomCompat=!0;var rGC=_.nf(function(f){return _.a("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.a("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.a(_.WM,{icon:function(){var R;return(R=f.data())==null?void 0:R.iconType},
className:function(){var R;return((R=f.data())==null?void 0:R.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.a("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.a(_.YO,{text:function(){var R;
return(R=f.data())==null?void 0:R.text}}))))},"ec");var fof=_.nf(function(f){f=_.sU(f,{config:void 0,themeOverride:void 0});var R=f.data,u=f.config,O=f.themeOverride;f={};f=_.KL("ytm-lp-offer-card-option-view-model",(f["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var K;return(K=O())==null?void 0:K.useDarkTheme},f));
var c=_.Ff(function(){var K,q;(K=u())==null||(q=K.handleRadioButtonClick)==null||q.call(K,R());return!1}),h=function(){var K;
return(K=u())==null?void 0:K.shouldDisplayRadioButton},l=function(){var K;
return(K=R().featureListItems)!=null?K:[]};
return _.a("ytm-lp-offer-card-option-view-model",null,_.a("div",{class:f,"on:click":_.Ff(function(){if(h()){var K,q;(K=u())==null||(q=K.handleRadioButtonClick)==null||q.call(K,R())}return!1})},_.a(_.Q,{cond:h,
then:function(){return _.a("div",null,_.a("input",{type:"radio","on:click":c,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var K;return!((K=u())==null||!K.isOptionSelected)}}))}}),_.a("div",null,_.a("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.a(_.YO,{text:function(){return R().eyebrowText}})),_.a("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.a(_.YO,{text:function(){return R().subtitle}})),_.a(_.Q,{cond:function(){return l().length>0},
then:function(){return _.a("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.a(_.y5,{data:l},{lpFeatureListItemViewModel:rGC}))}}),_.a("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.a(_.YO,{text:function(){return R().description}})))))},"fc");
fof.idomCompat=!0;var R0t=_.nf(function(f){var R=f.data;var u=f.themeOverride;f=_.Z(_.m8(function(){var h,l=(h=R().offerOptions)==null?void 0:h[0];return _.t(l,C0f)||{}}));
var O=f.next().value,c=f.next().value;f={};return _.a("ytm-lp-offer-card-view-model",null,_.a("div",{class:_.KL("ytm-lp-offer-card-view-model",(f["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},f))},_.a("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.a(_.Q,{cond:function(){return R().titleIconType},
then:function(){return _.a("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.a(_.WM,{icon:function(){var h;return((h=R().titleIconType)==null?void 0:h.toString())||""}}))}}),_.a("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.a(_.YO,{text:function(){return R().title}})),_.a(_.y5,{data:function(){return R().titleBadge}},{badgeViewModel:function(h){return _.a("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.a(_.vP,{data:h.data}))}})),_.a("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.a(_.y5,{data:function(){return R().offerOptions}},{lpOfferCardOptionViewModel:function(h){var l=h.data;
return _.a(_.RS,null,_.a("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.a(fof,{data:l,config:function(){var K;return{shouldDisplayRadioButton:(R().offerOptions||[]).length>1,isOptionSelected:l().id===((K=O())==null?void 0:K.id),handleRadioButtonClick:function(q){return void c(q)}}},
themeOverride:u}))}})),_.a("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.a(_.y5,{data:function(){var h;
return(h=O())==null?void 0:h.purchaseButtonOverride}},{buttonViewModel:_.TS}))))},"gc");
R0t.idomCompat=!0;var uLC=_.nf(function(f){var R=f.data;var u=f.themeOverride;f={};f=_.KL("ytm-lp-offer-card-section-view-model",(f["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var O;return u==null?void 0:(O=u())==null?void 0:O.useDarkTheme},f));
return _.a("ytm-lp-offer-card-section-view-model",null,_.a("div",{class:f},_.a(_.Q,{cond:function(){return R().title!==void 0},
then:function(){return _.a("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.a("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.a(_.YO,{text:function(){return R().title}})),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(){return _.a("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.a(_.YO,{text:function(){return R().subtitle}}))}}))}}),_.a("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.a(_.y5,{data:function(){return R().offerCards}},{lpOfferCardViewModel:function(O){return _.a("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.a(R0t,{data:O.data,
themeOverride:u}))}})),_.a(_.Q,{cond:function(){return R().footer},
then:function(){return _.a("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.a(_.YO,{text:function(){return R().footer}}))}})))},"hc");var OVf=_.nf(function(f){var R=f.data;return _.a("lp-offer-table-cell-content-view-model",null,_.a("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.a(_.yM,null,_.a(_.t1,{when:function(){return R().title}},function(){return _.a(_.YO,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return R().title}})}),_.a(_.t1,{when:function(){return R().subTitle}},function(){return _.a(_.YO,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return R().subTitle}})}),_.a(_.t1,{when:function(){return R().featureDescription}},function(){return _.a(_.YO,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return R().featureDescription}})}),_.a(_.t1,{when:function(){return R().description}},function(){return _.a(_.YO,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return R().description}})}),_.a(_.t1,{when:function(){return R().iconType}},function(){return _.a("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.a(_.WM,{icon:function(){return R().iconType.toString()}}))}),_.a(_.t1,{when:function(){return R().purchaseButton}},function(){return _.a(_.y5,{data:function(){return R().purchaseButton}},{buttonViewModel:function(u){return _.a("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.a(_.TS,{data:u.data}))}})}),_.a(_.t1,{when:function(){return R().note}},function(){return _.a(_.YO,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return R().note}})}),_.a(_.t1,{when:function(){return R().featureDetail}},function(){return _.a(_.YO,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return R().featureDetail}})}),_.a(_.t1,{when:function(){return R().badge}},function(){return _.a(_.y5,{data:function(){return R().badge}},{badgeViewModel:_.vP})}))))},"ic");
OVf.idomCompat=!0;var c2Y=_.nf(function(f){var R=f.data;return _.a("lp-offer-table-cell-view-model",null,_.a("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(R().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;"}}},_.a(_.y5,{data:function(){return R().contents}},{lpOfferTableCellContentViewModel:OVf})))},
"jc");
c2Y.idomCompat=!0;var XyY=_.nf(function(f){var R=f.data;var u=f.lpTableIsFirstRow;var O=f.lpTableIsLastRow;var c=function(){return(u==null?0:u())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},h=function(){return(u==null?0:u())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(O==null?0:O())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.a("ytm-lp-offer-table-row-view-model",null,_.a("div",{class:"yt-lp-offer-table-row-view-model"},_.a(_.y5,{data:function(){return R().rowHeaderCell}},{lpOfferTableCellViewModel:function(l){return _.a("div",{class:c},_.a(c2Y,{data:l.data}))}}),_.a(_.y5,{data:function(){return R().contentCells}},{lpOfferTableCellViewModel:function(l){return _.a("div",{class:h},_.a(c2Y,{data:l.data}))}})))},"kc");
XyY.idomCompat=!0;var h0G=_.nf(function(f){var R=f.data;var u=f.themeOverride;var O=_.vh().resolve(_.Y8(_.oF)),c=function(){return _.t(R().logo,Mit)||{}};
f={};return _.a("ytm-lp-offer-table-section-view-model",null,_.a("div",{class:"yt-lp-offer-table-view-model"},_.a(_.Q,{cond:function(){var h,l;return O&&O()||(u==null?0:u().useDarkTheme)?(h=c())==null?void 0:h.imageDark:(l=c())==null?void 0:l.imageLight},
then:function(h){return _.a(_.gR,{data:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var l,K,q;return(q=(l=c())==null?void 0:(K=l.accessibilityData)==null?void 0:K.label)!=null?q:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.a(_.YO,{text:function(){return R().subtitle}})),_.a(_.Q,{cond:function(){return R().disclaimers},
then:function(h){return _.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.a(_.EC,{each:h},function(l){return _.a("div",null,_.a(_.YO,{text:l}))}))}}),_.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.a(_.y5,{data:function(){return R().rows}},{lpOfferTableRowViewModel:function(h,l){return _.a(XyY,{data:h.data,
lpTableIsFirstRow:function(){return l()===0},
lpTableIsLastRow:function(){return l()===R().rows.length-1}})}})),_.a("div",{class:_.KL((f["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return R().hasFooterBackground},f))},_.a(_.Q,{cond:function(){return R().footer},
then:function(){return _.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.a(_.YO,{text:function(){return R().footer}}))}}),_.a(_.Q,{cond:function(){return R().footerTitle},
then:function(){return _.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.a(_.YO,{text:function(){return R().footerTitle}}))}}),_.a(_.Q,{cond:function(){return R().footerDescription},
then:function(){return _.a("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.a(_.YO,{text:function(){return R().footerDescription}}))}}))))},"lc");
h0G.idomCompat=!0;var ZVf=_.nf(function(f){var R=f.data;var u=f.themeOverride;var O=_.vh().resolve(_.Y8(_.oF)),c=function(){var K;return u==null?void 0:(K=u())==null?void 0:K.useDarkTheme},h=function(){var K,q;
return O&&O()||c()?(K=R().image)==null?void 0:K.imageDark:(q=R().image)==null?void 0:q.imageLight};
f={};f=_.KL("ytm-lp-small-feature-section-view-model",(f["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=c,f));var l=function(){var K,q,F;return(F=(K=R().image)==null?void 0:(q=K.accessibilityData)==null?void 0:q.label)!=null?F:""};
return _.a("ytm-lp-small-feature-section-view-model",{class:f},_.a(_.Q,{cond:function(){return h()&&!CJn},
then:function(){return _.a("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.a(_.gR,{data:function(){return h()},
alt:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.a("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.a("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.a(_.Q,{cond:function(){return R().title},
then:function(K){return _.a(_.YO,{text:K})}})),_.a("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.a(_.YO,{text:function(){return R().description}}))))},"mc");
ZVf.idomCompat=!0;var loA=_.nf(function(f){var R=f.data;var u=f.themeOverride;f={};return _.a("ytm-lp-small-feature-section-group-view-model",null,_.a("div",{class:_.KL("ytm-lp-small-feature-section-group-view-model",(f["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},f))},_.a("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.a(_.y5,{data:function(){return R().smallFeatures}},{lpSmallFeatureSectionViewModel:function(O){return _.a("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.a(ZVf,{data:O.data,
themeOverride:u}))}}))))},"nc");
loA.idomCompat=!0;_.ii(_.nf(function(f){var R=f.data;var u=function(){return R().forcedTheme==="USER_INTERFACE_THEME_DARK"},O=function(){return R().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},c=function(){var l="",K,q;
var F=_.vh().resolve(_.Y8(_.oF));F=u()||(F==null?0:F())?(K=R().themedImageViewModel)==null?void 0:K.imageDark:(q=R().themedImageViewModel)==null?void 0:q.imageLight;(K=lx2((F==null?void 0:F.sources)||[]))&&K.url&&(l=O()?"background-image: linear-gradient(to bottom, transparent, "+(R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.EO(K.url)+");":"background-image: url("+_.EO(K.url)+");");return l},h=function(){return{useDarkTheme:u()}};
f={};return _.a("yt-section-group-view-model",null,_.a("div",{class:_.KL("yt-lp-section-group-view-model",(f["yt-lp-section-group-view-model--premium-force-dark-mode"]=u,f["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},f))},_.a(_.Q,{cond:function(){return c().length},
then:function(){var l={};return _.a("div",{class:_.KL("yt-lp-section-group-view-model__bg-image",(l["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=O,l)),style:c})}}),_.a("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.a(_.y5,{data:function(){return R().sections}},{lpFaqSectionViewModel:function(l){return _.a(V3A,{data:l.data,
themeOverride:h})},
lpHeaderSectionViewModel:function(l){return _.a(YRE,{data:l.data,themeOverride:h})},
lpHeadlineSectionViewModel:function(l){return _.a(vXA,{data:l.data,themeOverride:h})},
lpLargeFeatureSectionViewModel:function(l){return _.a(i3G,{data:l.data,themeOverride:h})},
lpOfferCardSectionViewModel:function(l){return _.a(uLC,{data:l.data,themeOverride:h})},
lpComplexOfferCardSectionViewModel:function(l){return _.a(gXY,{data:l.data})},
lpOfferTableSectionViewModel:function(l){return _.a(h0G,{data:l.data,themeOverride:h})},
lpSmallFeatureSectionGroupViewModel:function(l){return _.a(loA,{data:l.data,themeOverride:h})}}))))},"oc"),"yt-section-group-view-model",{props:{data:_.SG}});var sl5=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.krG=_.nf(function(f){function R(){if(sl5.has(f.data().displayType)){var F=!O(),w;if((w=f.disableDeselection)==null||!w.call(f)||F){f.data().selected=F;w=Object.assign({},l(),{selected:F});K(w);var m;(m=f.callback)==null||m.call(f,w,F)}}}
var u=_.sW(),O=function(){var F,w;return!!(((F=f.selected)==null?void 0:F.call(f))!==void 0?(w=f.selected)==null?0:w.call(f):l().selected)},c=_.Z(_.m8(f.data)),h=c.next().value;
c=c.next().value;var l=h,K=c,q=_.Ax(g9n,function(){return f.data().chipEntityKey||""});
return _.a("chip-view-model",{class:"ytChipViewModelHost",el:u},_.a(sdf,{data:function(){var F,w=Object.assign({},l(),{selected:O()}),m=q(),W=(F=f.disableDeselection)==null?void 0:F.call(f);a:switch(w.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":F=1;break a;default:F=0}return{text:(m==null?void 0:m.text)||w.text,state:w.disabled?1:w.selected?0:2,type:F,onTap:n9e(w,u,R,W),accessibilityLabel:w.accessibilityLabel||w.text}}}))},"pc");
_.krG.idomCompat={callbacks:{callback:!0}};_.KsI=_.nf(function(f){var R=_.Ax($0q,function(){var l;return(l=f.data())==null?void 0:l.chipBarStateEntityKey}),u=function(){return f.data().disableDeselection},O=_.Z(_.m8(function(){var l;
if(((l=R())==null?void 0:l.selectedIndex)!=void 0)return R().selectedIndex;var K,q;l=_.Z(((K=f.data())==null?void 0:(q=K.chips)==null?void 0:q.entries())||[]);for(K=l.next();!K.done;K=l.next()){K=_.Z(K.value);q=K.next().value;K=K.next().value;var F=void 0;if((F=_.t(K,_.Mi))==null?0:F.selected)return q}return-1})),c=O.next().value,h=O.next().value;
return _.a("chip-bar-view-model",{class:_.KL("ytChipBarViewModelHost",f.className),role:"tablist"},_.a(_.y5,{data:function(){return f.data().chips}},{chipViewModel:function(l,K){return _.a("div",{class:"ytChipBarViewModelChipWrapper"},_.a(_.krG,{data:l.data,
selected:function(){return K()===c()},
callback:function(q,F){q=!!F;F=K();h(q?F:-1);var w,m=(w=f.data())==null?void 0:w.chipBarStateEntityKey;m&&q&&_.$s(_.aA("chipBarStateEntity",m,{key:m,selectedIndex:F}))},
disableDeselection:f.disableDeselection||u}))}}))},"qc");_.ii(_.KsI,"chip-bar-view-model",{props:{data:_.v7,className:_.v7,disableDeselection:_.v7}});_.qMF=_.nf(function(f){var R=f.data;f={};return _.a("divider-view-model",{class:_.KL("divider-view-model-wiz",(f["divider-view-model-wiz__inset-thin-padding"]=function(){return R().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},f))},_.a("div",{class:_.KL("divider-view-model-wiz__base-divider",function(){return Vs7(R().dividerStyle)}),
style:_.Qm({"background-color":function(){return R().backgroundColor?_.I1(R().backgroundColor):void 0}})}))},"rc");
_.qMF.idomCompat=!0;_.ii(_.qMF,"divider-view-model",{props:{data:_.SG}});var bX=new Map,L9=new Map,iXP=0,p9;var Xkq=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],l_0={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var A2H,aoY;A2H=function(f){return function(R){return function(){return String(R())+f}}};
_.Nr=A2H("px");aoY=A2H("s");var wyi=_.nf(function(f){function R(fh){return function(){var V=C().numItemsPerGridRow,ZD=fh()*V;V=ZD+V;var mP,NX;return(NX=(mP=O().contents)==null?void 0:mP.slice(ZD,V))!=null?NX:[]}}
var u=_.sU(f,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),O=u.data,c=u.layoutContainerWidth,h=u.shouldUseOwnContainerSize,l=u.marginSettings;u=_.Z(_.qK(!0,void 0,"qgr2Je"));var K=u.next().value,q=u.next().value,F=function(){var fh,V=(fh=_.t(O().showMoreButton,_.dW))==null?void 0:fh.trackingParams;V&&_.Zn(_.wR(),V);q(!1)},w=function(){var fh,V=(fh=_.t(O().showLessButton,_.dW))==null?void 0:fh.trackingParams;
V&&_.Zn(_.wR(),V);q(!0)};
u=_.sW();var m=_.Krq(u,{canHaveZeroSize:!1}),W=function(){var fh;return(fh=O().contentAspectRatio)!=null?fh:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},C=_.Qt(function(){var fh=_.sp({containerWidth:h()&&m.width()>0?m.width()||c():c(),
sizing:"EXTRA_COMPACT",marginSettings:l(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:fh.maxContainerWidth,numItemsPerGridRow:fh.numItems,contentPadding:h()?fh.margin:fh.contentMargin,itemWidth:fh.itemWidth,itemMargin:fh.gutter/2}},void 0,"pqVdjc"),d=function(){if(O().enableVerticalExpansion){if(K())return p();
var fh,V,ZD=(V=(fh=O().contents)==null?void 0:fh.length)!=null?V:0;return Math.ceil(ZD/C().numItemsPerGridRow)}return C().numItemsPerGridRow<=2?2:1},p=function(){var fh;
return Math.ceil(((fh=O().minCollapsedItemCount)!=null?fh:1)/C().numItemsPerGridRow)},J=function(){return O().enableVerticalExpansion&&O().showLessButton&&!K()&&d()>p()},M=function(){var fh,V;
return O().enableVerticalExpansion&&O().showMoreButton&&K()&&((V=(fh=O().contents)==null?void 0:fh.length)!=null?V:0)>C().numItemsPerGridRow*p()},P=function(){return!J()},g=function(){return!M()},x={};
return _.a("grid-shelf-view-model",{class:_.KL("ytGridShelfViewModelHost",f.className,(x.ytGridShelfViewModelHostHasBottomButton=function(){return J()||M()},x)),
el:u,style:_.Qm({"margin-left":(0,_.Nr)(function(){return C().contentPadding}),
"margin-right":(0,_.Nr)(function(){return C().contentPadding})})},_.a(_.Q,{cond:function(){return _.t(O().header,nHf)},
then:function(fh){return _.a(_.c3,{data:fh,disableHorizontalPadding:!0})}}),_.a("div",null,_.a(_.EC,{each:function(){return Array(d())}},function(fh,V){return _.a(Fsi,{className:f.className,
items:R(V),responsiveGridShelfLayout:C,contentAspectRatio:W})})),_.a("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.a(_.y5,{data:function(){return O().showMoreButton}},{buttonViewModel:function(fh){return _.a("div",{hidden:g},_.a(_.TS,{data:fh.data,
onClick:F}))}}),_.a(_.y5,{data:function(){return O().showLessButton}},{buttonViewModel:function(fh){return _.a("div",{hidden:P},_.a(_.TS,{data:fh.data,
onClick:w}))}})))},"sc");
wyi.idomCompat=!0;var Fsi=_.nf(function(f){var R=f.items;var u=f.responsiveGridShelfLayout;var O=f.contentAspectRatio;f=f.className;var c=_.sW();v95(c,function(){a:{var l=c.value;for(var K=R(),q=[],F=0;F<K.length;F++){var w=_.t(K[F],pqC);if(!w||w==null||!w.inlinePlayerData){l=null;break a}var m=l.children.item(F);if(!m){l=null;break a}q.push({thumbnailElement:m,videoData:w})}l={gridVideoPreviewData:{gridItems:q}}}return l});
var h=(0,_.Nr)(function(){return-u().itemMargin});
return _.a("div",{el:c,class:_.KL("ytGridShelfViewModelGridShelfRow",f),style:_.Qm({"margin-left":h,"margin-right":h})},_.a(_.y5,{data:R,replacementWrapper:function(l){return _.a(m6E,{responsiveGridShelfLayout:u},l)}},{shortsLockupViewModel:function(l){return _.a(m6E,{responsiveGridShelfLayout:u},_.a(OlF,{data:l.data,
aspectRatio:function(){return O()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"tc"),m6E=_.nf(function(f){return _.a("div",{style:_.Qm({width:(0,_.Nr)(function(){return f.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+f.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},f.children)},"uc");
wyi.idomCompat=!0;_.ii(wyi,"grid-shelf-view-model",{props:{data:_.SG,layoutContainerWidth:_.SG,shouldUseOwnContainerSize:_.SG,marginSettings:_.SG,className:_.SG}});_.QHi=_.nf(function(f){var R=_.Z(_.qK(!1,void 0,"YYtxR")),u=R.next().value,O=R.next().value;R={};return _.a("yt-alert-banner-view-model",{class:_.KL("ytAlertBannerViewModelHost",f.className,function(){var c;a:switch((c=f.data())==null?void 0:c.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":c="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":c="ytAlertBannerViewModelWarning";break a;default:c="ytAlertBannerViewModelInformational"}return c},(R.ytAlertBannerViewModelDismissed=
u,R.ytAlertBannerViewModelFullbleed=f.fullbleed,R.ytAlertBannerViewModelNarrow=f.narrow,R.ytAlertBannerViewModelIsInRichGrid=f.isInRichGrid,R))},_.a(_.Q,{cond:function(){var c;
return!((c=f.data())==null?0:c.hideIcon)},
then:function(){return _.a("div",{class:"ytAlertBannerViewModelIcon"},_.a(_.WM,{icon:function(){return"info_circle"}}))}}),_.a("div",{class:"ytAlertBannerViewModelOuterContainer"},_.a("div",{class:"ytAlertBannerViewModelContainer"},_.a("div",{class:"ytAlertBannerViewModelContent"},_.a("div",{class:"ytAlertBannerViewModelHeading"},_.a(_.YO,{text:function(){var c;
return(c=f.data())==null?void 0:c.heading}})),_.a("div",{class:"ytAlertBannerViewModelBody"},_.a(_.YO,{text:function(){var c;
return(c=f.data())==null?void 0:c.body}})))),_.a(_.y5,{data:function(){var c;
return(c=f.data())==null?void 0:c.actionButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.a(_.y5,{data:function(){var c;
return(c=f.data())==null?void 0:c.dismissButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var h;((h=f.data())==null?0:h.disableLocalDismissBehavior)||O(!0)}})}}))},"vc");_.ii(_.QHi,"yt-alert-banner-view-model",{props:{data:_.SG,fullbleed:_.SG,narrow:_.SG,isInRichGrid:_.SG,className:_.SG}});var q47;q47=_.WJ({chipViewModel:_.krG,buttonViewModel:_.TS});_.Wsl=_.aX(A7B,{callbacks:{callback:!0}});_.RI(A7B);_.ii(_.Wsl,"chips-shelf-view-model",{props:{data:_.SG,callback:_.v7,enableSingleChipSelection:_.SG,disableChipsScrollAnimation:_.SG}});var EpF=_.nf(function(f){f=_.sU(f,{disabled:!1});var R=f.active,u=f.disabled;f={};f=_.KL("ytSwitchShapeTrack",(f.ytSwitchShapeTrackActive=function(){return R()},f.ytSwitchShapeTrackDisabled=function(){return u()},f));
var O={};O=_.KL("ytSwitchShapeKnob",(O.ytSwitchShapeKnobActive=function(){return R()},O));
return _.a("switch-shape",{class:"ytSwitchShapeHost"},_.a("div",{class:f}),_.a("div",{class:O}))},"wc");var txA=_.nf(function(f){var R=_.sU(f,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),u=R.data;f=R.className;var O=R.handleOnTapEventInParent,c=R.parentActive;R=_.Z(_.m8(function(){var m;return(m=c())!=null?m:u().switchedOnByDefault||!1}));
var h=R.next().value,l=R.next().value,K=function(){return u().isDisabled},q=_.sW();
R=_.Ff(function(m){return m.key==="Enter"?(m.preventDefault(),q.value.click(),!1):!0});
var F=_.Ff(function(m){if(u().handleOnTapEventInParent||O())return!0;if(K())return!1;Frl(u(),h(),m);l(!h());return!1}),w={};
w=_.KL("ytSwitchButtonViewModelButton",(w.ytSwitchButtonViewModelTappable=function(){return!K()},w));
return _.a("switch-button-view-model",{class:_.KL("ytSwitchButtonViewModelHost",f)},_.a("button",{el:q,class:w,"on:click":F,"on:keydown":R,"aria-label":function(){return h()?u().a11yLabelSwitchedOn:u().a11yLabelSwitchedOff},
"aria-checked":h,"aria-disabled":K,role:"switch"},_.a(EpF,{active:h,disabled:K})))},"xc");var y2I=_.nf(function(f){var R=_.sU(f,{checked:!1});f=R.name;var u=R.onChange,O=R.onClick,c=R.checked,h=R.labelRenderable,l=R.hasLeadingLabel,K=R.labelClass,q=R.isCompact,F=R.selectElementClass;R=R.disableHorizontalPadding;var w="checkbox"+_.j4(_.dV),m=_.Ff(function(d){O==null||O(d);return!1}),W=_.Ff(function(d){u==null||u(d);
return!1}),C={};
return _.a("checkbox-shape",null,_.a("label",{class:_.KL("checkbox-shape-wiz",K,(C["checkbox-shape-wiz--compact"]=q,C["checkbox-shape-wiz--disable-horizontal-padding"]=R,C))},_.a("input",{class:"checkbox-shape-wiz__input",id:w,checked:c,name:f,type:"checkbox","prop:checked":c,"on:change":W,"on:click":m}),_.a(_.Q,{cond:function(){return!(l==null?0:l())},
then:function(){return _.a(Cnt,{isLeading:!0,selectElementClass:F})}}),_.a(_.Q,{cond:function(){return!!h},
then:function(){return _.a("div",{class:"checkbox-shape-wiz__label"},h==null?void 0:h())}}),_.a(_.Q,{cond:l,
then:function(){return _.a(Cnt,{isLeading:!1,selectElementClass:F})}})))},"yc");
y2I.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Cnt=_.nf(function(f){var R=f.selectElementClass;f={};return _.a("div",{class:_.KL("checkbox-shape-wiz__checkbox",R,(f["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(R==null?0:R())},f)),
"aria-hidden":"true"},_.a(_.WM,{icon:_.E("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.a(_.WM,{icon:_.E("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"zc");_.LM=_.nf(function(f){var R=f.name;var u=f.onChange;var O=f.onClick;var c=f.checked;var h=f.labelRenderable;var l=f.useCheckIcon;var K=f.hasLeadingLabel;var q=f.labelClass;var F=f.isCompact;var w=f.selectElementClass;var m=f.ariaLabel;f=f.className;var W="radio"+_.j4(_.dV),C=_.sW(),d=_.Ff(function(g){C.value.checked=!(c==null||!c());u==null||u(g);return!1}),p=_.Ff(function(g){O==null||O(g);
return!1}),J=_.Z(_.qK(!1,void 0,"v5AMrb")),M=J.next().value,P=J.next().value;
J={};return _.a("radio-shape",{class:_.KL("radio-shape-wiz",f)},_.a("input",{el:C,class:"radio-shape-wiz__input",id:W,"prop:checked":c,name:R,type:"radio","on:change":d,"on:click":p,"aria-label":m,"on:focusin":_.Ff(function(){var g;((g=_.vh().resolve(_.Y8(_.Oc)))==null?0:g.isKeyBoardInUse())&&P(!0)}),
"on:focusout":_.Ff(function(){P(!1)})}),_.a("label",{class:_.KL("radio-shape-wiz__label-container",q,(J["radio-shape-wiz--compact"]=F,J["radio-shape-wiz__label-container--keyboard-focused"]=M,J)),
for:W},_.a(_.Q,{cond:function(){return!(K==null?0:K())},
then:function(){return _.a(d6H,{checked:c,useCheckIcon:l,isLeading:!0,selectElementClass:w})}}),_.a(_.Q,{cond:function(){return!!h},
then:function(){return _.a("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(m==null?0:m())?"true":"false"}},h==null?void 0:h())}}),_.a(_.Q,{cond:K,
then:function(){return _.a(d6H,{checked:c,useCheckIcon:l,isLeading:!1,selectElementClass:w})}})))},"Ac");
_.LM.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var d6H=_.nf(function(f){var R=f.useCheckIcon;var u=f.selectElementClass;f=function(){return(R==null?0:R())?"CHECK":_.E("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var O={};return _.a("div",{class:_.KL("radio-shape-wiz__radio",u,(O["radio-shape-wiz__radio--check-icon"]=R,O["radio-shape-wiz__radio--radio-default-style"]=function(){return!(u==null?0:u())},O)),
"aria-hidden":"true"},_.a(_.WM,{icon:f}),_.a(_.WM,{icon:f,active:function(){return!(R==null?0:R())}}))},"Bc");_.bp=_.nf(function(f){function R(){var LC;((LC=_.vh().resolve(_.Y8(_.Oc)))==null?0:LC.isKeyBoardInUse())&&Gq(!0)}
function u(){Gq(!1)}
var O=f.data;var c=f.isMenuItem;var h=f.isCompact;var l=f.onTap;var K=f.trailingAccessory;var q=f.hideSelectionTextChevron;var F=f.disabled;var w=f.inPopup;var m=f.disableHorizontalPadding;f=f.isOverlay;var W=_.E("apply_button_role_to_list_item"),C=_.JS(function(LC){a:{var wN=O();if((wN==null?0:wN.entitySelectorType)&&(wN==null?0:wN.entityKey))switch(wN.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":LC=_.fTh(LC,wN.entityKey);LC=LC==null?void 0:
LC.value;wN=!1;LC==="CAPTIONS_UNAVAILABLE"&&(wN=!0,LC="");LC=Object.assign({},!!LC&&{selectionText:{content:LC}},{isSelected:!!LC},!!LC&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:wN});break a;default:LC={}}else LC={}}return LC}),d=function(){return _.E("enable_web_shorts_captions_language_command")?Object.assign({},O(),C()):O()},p=function(){return!(d().isSelected===void 0||!d().selectionStyle||d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
J=function(){return(_.oA(d().rendererContext)||l)&&!p()},M=function(){return _.oA(d().rendererContext)||p()},P={};
f=_.KL("yt-list-item-view-model-wiz",(P["yt-list-item-view-model-wiz--is-overlay"]=f,P["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!W&&St()},P));
P={};var g=_.KL("yt-list-item-view-model-wiz__label",(P["yt-list-item-view-model-wiz__container"]=function(){return!p()},P["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!d().isDisabled||!(F==null||!F())},P["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!d().subtitle},P["yt-list-item-view-model-wiz__container--compact"]=h,P["yt-list-item-view-model-wiz__container--tappable"]=J,P["yt-list-item-view-model-wiz__container--in-popup"]=w,P["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return W&&St()},P["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&!p()},P));
P={};var x=_.KL("yt-list-item-view-model-wiz__container",(P["yt-list-item-view-model-wiz__container--tappable"]=M,P["yt-list-item-view-model-wiz__container--compact"]=h,P["yt-list-item-view-model-wiz__container--in-popup"]=w,P["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&p()},P)),fh=function(){return d().leadingImage||d().leadingAccessory},V=_.KL("yt-list-item-view-model-wiz__image-container",function(){return fh()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
w=_.sW();var ZD=_.sW(),mP=W?ZD:w,NX=_.nf(function(){return _.a(_.Q,{cond:function(){return W},
then:function(){return _.a("div",{class:g,el:ZD,role:function(){return M()||J()?"button":void 0},
tabindex:function(){return l||J()?0:void 0},
"on:keydown":Jn,"on:click":jt},_.a(NDl,{data:d,hideSelectionTextChevron:q,trailingAccessory:K}))},
else:function(){return _.a("div",{class:g,el:ZD},_.a(NDl,{data:d,hideSelectionTextChevron:q,trailingAccessory:K}))}})},"Cc");
NX.idomCompat=!0;_.xO(w,function(){return d().rendererContext});
var jt=_.Ff(function(LC){return void(l==null?void 0:l(LC))}),Jn=_.fiB(),zq=_.Z(_.qK(!1,void 0,"inP9Dc"));
P=zq.next().value;zq=zq.next().value;var St=P,Gq=zq;_.bt(function(){J()&&(mP.value.addEventListener("focusin",R),mP.value.addEventListener("focusout",u));_.jN(function(){mP.value&&J()&&(mP.value.removeEventListener("focusin",R),mP.value.removeEventListener("focusout",u))})});
P=_.Ff(function(){return!0});
return _.a("yt-list-item-view-model",{el:w,class:f,role:function(){return(c==null?0:c())?"menuitem":"listitem"},
tabindex:function(){var LC=J();LC=W?void 0:l||LC?0:void 0;return LC},
"on:keydown":W?P:Jn,"on:click":W?P:jt},_.a(_.Q,{cond:p,then:function(){return _.a(_.yM,null,_.a(_.t1,{when:function(){return d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.a(y2I,{labelRenderable:function(){return _.a(NX,null)},
isCompact:h,checked:function(){return d().isSelected},
hasLeadingLabel:function(){return!!fh()},
labelClass:x,selectElementClass:V,disableHorizontalPadding:m})}),_.a(_.t1,{when:function(){return d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.a(_.LM,{labelRenderable:function(){return _.a(NX,null)},
isCompact:h,checked:function(){return d().isSelected},
hasLeadingLabel:function(){return!!fh()},
labelClass:x,selectElementClass:V})}),_.a(_.t1,{when:function(){return d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.a(_.LM,{labelRenderable:function(){return _.a(NX,null)},
isCompact:h,checked:function(){return d().isSelected},
hasLeadingLabel:function(){return!!fh()},
labelClass:x,selectElementClass:V,useCheckIcon:!0})}),_.a(_.CQ,null,function(){return _.a(NX,null)}))},
else:function(){return _.a(NX,null)}}))},"Dc");
_.bp.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var NDl=_.nf(function(f){var R=f.data;var u=f.hideSelectionTextChevron;var O=f.trailingAccessory;return _.a(_.RS,null,_.a(Lsi,{data:R,isLeading:!0,hideSelectionTextChevron:function(){return!(u==null||!u())}}),_.a(bVt,{data:R}),_.a(_.Q,{cond:function(){return!!O},
then:function(){return _.a("div",{class:"yt-list-item-view-model-wiz__trailing"},O==null?void 0:O())},
else:function(){return _.a(Lsi,{data:R,isLeading:!1,hideSelectionTextChevron:function(){return!(u==null||!u())}})}}))},"Ec"),Lsi=_.nf(function(f){var R=f.data;
var u=f.isLeading;var O=f.hideSelectionTextChevron;var c=_.KL("yt-list-item-view-model-wiz__button-container");f={};var h=_.KL("yt-list-item-view-model-wiz__image-container",(f["yt-list-item-view-model-wiz__leading"]=u,f["yt-list-item-view-model-wiz__trailing"]=function(){return!u()},f)),l=function(){return u()?R().leadingImage:R().trailingImage},K=_.KL("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
f={};var q=_.KL("yt-list-item-view-model-wiz__accessory",(f["yt-list-item-view-model-wiz__leading"]=u,f["yt-list-item-view-model-wiz__trailing"]=function(){return!u()},f)),F=function(){a:switch(R().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var w="expand_more";
break a;default:w="chevron_right"}return w};
return _.a(_.Q,{cond:function(){var w=R(),m=u();return!!(m&&(w.leadingImage||w.leadingAccessory)||!m&&(w.trailingImage||w.trailingButton||w.trailingButtons||w.selectionText))},
then:function(){return _.a(_.RS,null,_.a(_.Q,{cond:l,then:function(w){return _.a("div",{class:h,"aria-hidden":"true"},_.a(_.gR,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0,className:K}))}}),_.a(_.Q,{cond:function(){return u()&&R().leadingAccessory},
then:function(){return _.a("div",{class:h},_.a(_.y5,{data:function(){return R().leadingAccessory}},{avatarViewModel:function(w){return _.a(_.NC,{data:w.data,
avatarButtonCustomClassName:K})},
collectionThumbnailViewModel:VSi}))}}),_.a(_.Q,{cond:function(){return!u()&&R().trailingButton},
then:function(){return _.a("div",{class:c},_.a(_.y5,{data:function(){return R().trailingButton}},{buttonViewModel:function(w){return _.a(_.TS,{data:w.data,
className:q})}}))}}),_.a(_.Q,{cond:function(){var w;
return!u()&&((w=R().trailingButtons)==null?void 0:w.buttons)},
then:function(){return _.a("div",{class:c},_.a(_.y5,{data:function(){var w;return(w=R().trailingButtons)==null?void 0:w.buttons}},{buttonViewModel:function(w){return _.a(_.TS,{data:w.data,
className:q})},
accountLinkButtonViewModel:function(w){return _.a(U3h,{data:w.data,className:function(){return q()||""}})},
switchButtonViewModel:function(w){return _.a(txA,{data:w.data,className:q})},
subscribeButtonViewModel:function(w){return _.a(_.Le,{data:w.data,isOverlay:!1,animateWidth:!1,className:q})},
toggleButtonViewModel:function(w){return _.a(_.Lr,{data:w.data,className:q})}}))}}),_.a(_.Q,{cond:function(){return!u()&&!!R().selectionText},
then:function(){return _.a(_.RS,null,_.a(_.YO,{text:function(){return R().selectionText},
className:_.KL("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.a(_.Q,{cond:function(){return!O()},
then:function(){return _.a(_.WM,{icon:F,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Fc"),bVt=_.nf(function(f){var R=f.data;
return _.a(_.Q,{cond:function(){return R().title||R().subtitle},
then:function(){return _.a("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.a("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.a(_.Q,{cond:function(){return R().title},
then:function(u){return _.a(_.YO,{text:u,className:"yt-list-item-view-model-wiz__title"})}})),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(u){return _.a(_.YO,{text:u,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Gc");_.pyC=_.nf(function(f){var R=f.data;var u=f.onTap;var O=f.onSwitch;var c=f.overrideDisabled;f=f.disableHorizontalPadding;var h=_.Z(_.m8(function(){var m;return((m=m40(w()))==null?void 0:m.switchedOnByDefault)||!1})),l=h.next().value,K=h.next().value;
h=_.Z(_.qK(!1,void 0,"ZHBkbb"));var q=h.next().value,F=h.next().value,w=function(){var m;if(!(m=R().switchButton)){var W=R();m=c==null?void 0:c();W={switchOnCommand:W.switchOnCommand,switchOffCommand:W.switchOffCommand,switchedOnByDefault:W.switchedOnByDefault,isDisabled:W.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:W.a11yLabelSwitchedOn,a11yLabelSwitchedOff:W.a11yLabelSwitchedOff};m!==void 0&&(W.isDisabled=m);m={switchButtonViewModel:W}}return m};
return _.a("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.a(_.bp,{data:function(){return{title:R().title,subtitle:R().attributedSubtitle,leadingImage:R().leadingImage,leadingAccessory:R().leadingAccessory,isDisabled:R().isDisabled}},
onTap:function(m){var W=m40(w());!W||W.isDisabled||R().ignoreTapUntilCommandCompletes&&q()||(u==null||u(m),Frl(W,l(),m,R().ignoreTapUntilCommandCompletes,F),K(!l()),O==null||O(l()))},
trailingAccessory:function(){return _.a(_.y5,{data:w},{switchButtonViewModel:function(m){return _.a(txA,{data:m.data,parentActive:l,handleOnTapEventInParent:!!u})}})},
disableHorizontalPadding:f}))},"Hc");var jHf=_.Fa("DOWNLOAD",{},"Download"),D6f=_.Fa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),J2E=_.Fa("RETRY",{},"Retry"),z0t=_.Fa("PAUSE_DOWNLOADING",{},"Pause downloading"),TDk=_.Fa("RESUME_DOWNLOAD",{},"Resume download"),QdP={text:jHf,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},jn={text:D6f,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},tfX={text:J2E,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Wrn={text:z0t,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Eqn={text:TDk,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var HVf=_.nf(function(f){var R=function(){var K=f.data();K=_.BJ(K.rendererContext);var q;return(q=_.t(K,_.kO))==null?void 0:q.videoId},u=_.JS(function(K){var q=R(),F=d4n(f.data());
return q?_.Te(K,q):F?_.HW(K,F):"TRANSFER_STATE_UNKNOWN"}),O=_.Ax(_.TSe,R),c=_.JS(function(K){return _.bNt(K,R(),d4n(f.data()))}),h=function(){return y7n(u(),O(),_.BJ(f.data().rendererContext),!!d4n(f.data()))},l=function(){return c()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.a("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:l},_.a(_.Q,{cond:function(){return!l()},
then:function(){return _.a(_.Q,{cond:h,then:function(K){return _.a(_.EC,{each:K},function(q){return _.a(_.bp,{data:q,isCompact:f.isCompact,isMenuItem:f.isMenuItem,inPopup:f.inPopup,disableHorizontalPadding:f.disableHorizontalPadding})})}})}}))},"Ic");
HVf.idomCompat=!0;_.IoI=_.nf(function(f){var R=f.data;var u=f.isCompact;var O=f.hideSelectionTextChevron;var c=f.inPopup;var h=f.isOverlay;var l=f.disableHorizontalPadding;var K=function(){return Nfn(R())&&(c==null?void 0:c())};
f={};return _.a("yt-list-view-model",{class:_.KL("yt-list-view-model-wiz",(f["yt-list-view-model-wiz--kaios-spat-nav"]=CJn&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",f)),role:function(){return K()?"menu":"list"},
style:_.Qm({"max-height":function(){var q,F=(q=R())==null?void 0:q.visibleElementCount;if(F)return bK0(R())?(F+.5)*48+"px":(F+.5)*40+"px"}})},_.a(_.y5,{data:function(){return R().listItems}},{listItemViewModel:function(q){return _.a(_.bp,{data:q.data,
isMenuItem:K,isCompact:u,hideSelectionTextChevron:O,inPopup:c,isOverlay:h,disableHorizontalPadding:l})},
downloadListItemViewModel:function(q){return _.a(HVf,{data:q.data,isMenuItem:K,isCompact:u,inPopup:c,disableHorizontalPadding:l})},
switchListItemViewModel:function(q){return _.a(_.pyC,{data:q.data,disableHorizontalPadding:l})}}))},"Jc");
_.IoI.idomCompat=!0;var Mxl=_.nf(function(f){var R=f.data;var u=f.isOverlay;f={};return _.a("yt-course-perks-view-model",{class:_.KL("ytwCoursePerksViewModelHost",(f.ytwCoursePerksViewModelHostOverlay=u,f))},_.a("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",null,_.a(_.Q,{cond:function(){return R().perks},
then:function(O){return _.a(_.IoI,{data:function(){return{listItems:O()}},
isCompact:!0,isOverlay:u})}})))},"Kc");_.ii(Mxl,"yt-course-perks-view-model",{props:{data:_.v7,isOverlay:_.v7}});_.ii(_.nf(function(f){var R=f.data;return _.a("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.a("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.a(_.YO,{text:function(){return R().progressSummary}})),_.a("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.a("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Qm({width:function(){return R().progressPercentage*100+"%"}})})))},"Lc"),"yt-course-progress-view-model",{props:{data:_.SG}});var Pnk=_.nf(function(f){var R={};return _.a("yt-progress-view-model",{class:_.KL("ytwProgressViewModelHost",(R.ytwProgressViewModelHostOverlay=_.g_(f.isOverlay,!1),R))},_.a(_.Q,{cond:function(){return f.data().progressSummary},
then:function(u){return _.a("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.a(_.YO,{text:u}))}}),_.a("div",{class:"ytwProgressViewModelHostProgressContainer"},_.a(_.Q,{cond:function(){return f.data().leadingLabel},
then:function(u){return _.a("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.a(_.YO,{text:u}))}}),_.a("div",{class:"ytwProgressViewModelHostProgressBar"},_.a("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(f.data().progressPercentage||0)*100+"%"}}))))},"Mc");var pM=_.nf(function(f){var R=f.starNumber;var u=f.data;var O=function(){var c;return((c=u())==null?void 0:c.rating)||0};
return _.a(_.Q,{cond:function(){return R()},
then:function(c){return _.a(_.yM,null,_.a(_.t1,{when:function(){return O()>=c()-.25}},function(){return _.a("div",{class:"ytStarRatingViewModelHostStar"},_.a(_.WM,{icon:"STAR_FILLED"}))}),_.a(_.t1,{when:function(){return O()>=c()-.75}},function(){return _.a("div",{class:"ytStarRatingViewModelHostStar"},_.a(_.WM,{icon:"STAR_HALF"}))}),_.a(_.CQ,null,function(){return _.a("div",{class:"ytStarRatingViewModelHostStar"},_.a(_.WM,{icon:"STAR_BORDER"}))}))}})},"Nc"),U6k=_.nf(function(f){f=f.data;
return _.a("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.a(pM,{starNumber:1,data:f}),_.a(pM,{starNumber:2,data:f}),_.a(pM,{starNumber:3,data:f}),_.a(pM,{starNumber:4,data:f}),_.a(pM,{starNumber:5,data:f}))},"Oc");_.ii(_.nf(function(f){var R=_.sU(f,{}).data;return _.a("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.a("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.a(_.YO,{text:function(){var u;return(u=R())==null?void 0:u.title}})),_.a("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.a(_.Q,{cond:function(){return R().starProgressViewModels},
then:function(u){return _.a("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.a(_.y5,{data:u},{progressViewModel:Pnk}))}}),_.a("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.a("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.a(_.YO,{text:function(){var u;
return(u=R())==null?void 0:u.averageRatingLabel}})),_.a(_.Q,{cond:function(){return R().zeroStateText},
then:function(u){return _.a("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.a(_.YO,{text:u}))}}),_.a(_.Q,{cond:function(){return R().starRatingViewModel},
then:function(u){return _.a("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.a(_.y5,{data:u},{starRatingViewModel:U6k}))}}),_.a("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.a(_.YO,{text:function(){var u;
return(u=R())==null?void 0:u.totalRatingsCountLabel}})))))},"Pc"),"yt-course-ratings-view-model",{props:{data:_.v7}});var e0k;e0k={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.Grk=_.nf(function(f){var R=_.sW(),u=_.ZR();_.NW(function(){requestAnimationFrame(function(){var c;(c=u.lottieEl)==null||c.addEventListener("DOMLoaded",function(){var h;(h=f.onLottieLoaded)==null||h.call(f)})});
var O=f.data().browseEndpoint;O&&_.Ux(O)});
return _.a("yt-learning-journey-loader-view-model",{class:_.KL("learningJourneyLoaderViewModelHost",f.className),"data-target-id":function(){var O;return((O=f.data)==null?void 0:O.call(f).targetId)||""},
el:R},_.a(_.qI,{className:_.KL("learningJourneyLoaderViewModelLoader",f.className),animationName:function(){return e0k.animationConfig.name},
data:e0k,animationRef:u}))},"Qc");_.ii(_.Grk,"yt-learning-journey-loader-view-model",{props:{data:_.SG,className:_.v7,onLottieLoaded:_.v7}});_.BDA=_.nf(function(f){var R=function(){return f.data()},u=_.Z(_.qK(-1,void 0,"GvxRR")),O=u.next().value,c=u.next().value,h=function(F){return O()===F},l=function(F){return R().correctAnswerIndex===F},K=function(){return O()!==-1},q=_.Ff(function(){c(-1);
return!1});
return _.a("learning-journey-quiz-view-model",{class:_.KL("learningJourneyQuizViewModelHost",f.className),style:_.Qm({background:function(){return zB(Dm(R())).backgroundColor}})},_.a(_.Q,{cond:function(){return!!R().video},
then:function(){return _.a("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Qm({background:function(){return zB(Dm(R())).videoBackgroundColor}})},_.a(_.y5,{data:function(){return R().video}},{lockupViewModel:function(F){return _.a(_.RE,{data:F.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.a("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.a("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.a("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.a("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.a("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Qm({color:function(){return zB(Dm(R())).primaryTextColor}})},_.a(_.YO,{text:function(){var F=R(),w=K(),m=O()===R().correctAnswerIndex;
return w?m?F.successTitle:F.failureTitle:F.questionHeaderText}})),_.a("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.a(_.Q,{cond:K,
then:function(){return _.a("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":q,role:"button","aria-label":"Reset","tab-index":"0"},_.a("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Qm({fill:function(){return zB(Dm(R())).primaryTextColor}})},_.a("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"})))}}),
_.a(_.y5,{data:function(){return R().overflowMenu}},{buttonViewModel:function(F){return _.a(_.TS,{data:F.data})}}))),_.a("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Qm({color:function(){return zB(Dm(R())).secondaryTextColor}})},_.a(_.YO,{text:function(){var F=R();
return K()?F.explanationText:F.questionSubheaderText}}))),_.a("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.a(_.EC,{each:function(){return R().optionsData||[]}},function(F,w){var m={};
return _.a("div",{class:_.KL("learningJourneyQuizViewModelHostQuizOptions",(m.learningJourneyQuizViewModelHostQuizHover=function(){return!K()},m.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return O()===R().correctAnswerIndex&&h(w())},m.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return O()!==R().correctAnswerIndex&&h(w())},m.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return K()&&!h(w())},m)),
"on:click":_.Ff(function(){if(K())return!1;c(w());return!1}),
style:_.Qm({background:function(){return K()&&h(w())?"":zB(Dm(R())).optionColor}}),
role:"button","aria-disabled":K,"tab-index":"0"},_.a(_.Q,{cond:K,then:function(){return _.a("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var W=w();return l(W)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Qm({fill:function(){return zB(Dm(R())).primaryTextColor}})},_.a("path",{d:function(){var W=w();
return l(W)?"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"}}))}}),_.a(_.YO,{text:F.optionText}))})))))},"Rc");
_.BDA.idomCompat=!0;_.ii(_.BDA,"learning-journey-quiz-view-model",{props:{data:_.SG,className:_.SG}});var opY=_.nf(function(f){var R=_.sW();_.xO(R,function(){return f.data().rendererContext});
var u=_.sU(f,{palette:void 0,isLastItem:!1}),O=u.palette,c=u.isLastItem,h=function(){return f.data().isHighlighted},l=function(){var F;
return pkn((F=O())==null?void 0:F.iconDisabledColor)},K=function(){var F;
return pkn((F=O())==null?void 0:F.primaryTitleColor)},q=function(){var F;
return pkn((F=O())==null?void 0:F.secondaryTitleColor)};
u={};return _.a("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:R},_.a(_.y5,{data:function(){return f.data().thumbnail}},{thumbnailViewModel:_.si}),_.a("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.a("div",{class:_.KL("ytMacroMarkerListItemViewModelTimeDescription",(u.ytMacroMarkerListItemViewModelHighlighted=h,u)),
style:_.Qm({"background-color":function(){return h()?K():l()},
color:function(){return h()?"":q()}})},_.a(_.YO,{text:function(){return f.data().timestamp}})),_.a("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Qm({"background-color":function(){return c()?"transparent":l()}})}),_.a("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(h()?K():q())}},_.a(_.YO,{text:function(){return f.data().title}}))))},"Sc");_.jL=_.nf(function(f){function R(kC){M("transform:translateX("+(_.Tf("HTML_DIR")==="rtl"?"":"-")+kC+"px)")}
function u(kC){return Math.min(Math.max(kC,0),J()-V())}
function O(){var kC=x()+jt();return c()?(Math.round(V()/kC)||1)*kC:0}
var c=function(){return f.data().items||[]},h=function(){return f.data().previousButton},l=function(){return f.data().nextButton},K=function(){var kC,Rw;
return(Rw=(kC=f.disableArrows)==null?void 0:kC.call(f))!=null?Rw:!1},q=function(){var kC;
return!((kC=f.forceNarrowLayout)==null||!kC.call(f))},F=_.sW(),w=_.sW(),m=_.Z(_.qK(0,void 0,"D4aXB")),W=m.next().value,C=m.next().value;
m=_.Z(_.qK(0,void 0,"GQlHRc"));var d=m.next().value,p=m.next().value,J=d;d=_.Z(_.qK("",void 0,"Bw1Yz"));m=d.next().value;var M=d.next().value;d=_.Z(_.qK(0,void 0,"buTjVb"));var P=d.next().value,g=d.next().value,x=P;d=_.Z(_.qK(0,void 0,"GIAWN"));P=d.next().value;var fh=d.next().value,V=P;d=_.Z(_.qK(!1,void 0,"cenvwc"));var ZD=d.next().value,mP=d.next().value;d=_.Z(_.qK(0,void 0,"LSY2Ub"));P=d.next().value;var NX=d.next().value,jt=P;d=_.Z(_.qK(0,void 0,"oS46jc"));var Jn=d.next().value,zq=d.next().value,
St=function(){var kC,Rw=(kC=f.data())==null?void 0:kC.responsiveContainerConfiguration,KC,qe;return Rw?c3n(Rw==null?void 0:Rw.responsiveSize):(qe=(KC=f.sizing)==null?void 0:KC.call(f))!=null?qe:"STANDARD"};
d=_.Qt(function(){return!K()&&W()>0},void 0,"KINjJe");
P=_.Qt(function(){return!K()&&W()<J()-V()},void 0,"Ea00Ib");
var Gq=function(){C(u(W()-O()));R(W())},LC=function(){C(u(W()+O()));
R(W())},wN=function(){F.value!==null&&ak()},GI;
_.bt(function(){ak();window.ResizeObserver?(GI=new ResizeObserver(_.mC(wN,0)),GI.observe(F.value)):window.addEventListener("resize",wN)});
_.jN(function(){if(window.ResizeObserver){var kC;(kC=GI)==null||kC.disconnect()}else window.removeEventListener("resize",wN)});
var ak=function(){var kC=F.value.clientWidth,Rw=f.includeMargin!==void 0?f.includeMargin():!1,KC;var qe=f.hasPeek!==void 0?f.hasPeek():!((KC=f.data())==null||!KC.hasPeek);kC=_.sp({containerWidth:kC,hasPeek:qe,sizing:St(),marginSettings:Rw?q()?4:1:0});NX(kC.gutter);zq(kC.margin);g(kC.itemWidth);mP(kC.maxContainerWidth<528||q());fh(kC.maxContainerWidth);c()&&p((kC.itemWidth+kC.gutter)*c().length-kC.gutter)};
return _.a("horizontal-shelf-view-model",{class:_.KL("ytwHorizontalShelfViewModelHost",f.className),el:F},_.a(_.Q,{cond:function(){var kC;return f.data().header&&!((kC=f.horizontalShelfExperiments)==null?0:kC.call(f).hideHeader)},
then:function(){return _.a("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Qm({width:function(){return V()+"px"},
padding:function(){return"0 "+Jn()+"px"}})},_.a(_.y5,{data:function(){return f.data().header}},{sectionHeaderViewModel:function(kC){return _.a(_.c3,{data:kC.data,
disableHorizontalPadding:!0,forceSmallLayout:ZD,useResponsiveLayout:!0})}}))}}),_.a("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Qm({"margin-top":function(){var kC,Rw=f.data().header&&!((kC=f.horizontalShelfExperiments)==null?0:kC.call(f).hideHeader),KC;return(((KC=f.ensureMarginTop)==null?0:KC.call(f))&&!Rw?12:0)+"px"}})},_.a("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Qm({width:function(){return V()+"px"},
padding:function(){return"0 "+Jn()+"px"},
overflow:function(){return K()?"auto":"hidden"}})},_.a("div",{class:"ytwHorizontalShelfViewModelItems",
el:w,style:m},_.a(_.y5,{data:c},{macroMarkerListItemViewModel:function(kC,Rw){return _.a("div",{style:_.Qm({width:function(){return x()+"px"},
"margin-right":function(){return(Rw()===c().length-1?0:jt())+"px"}})},_.a(opY,{data:kC.data,
palette:_.g_(f.palette),isLastItem:function(){return Rw()===c().length-1}}))},
lockupViewModel:function(kC,Rw){var KC=kC.data;return _.a("div",{style:_.Qm({width:function(){return x()+"px"},
"margin-right":function(){return(Rw()===c().length-1?0:jt())+"px"}})},_.a(_.RE,{data:KC,
containerType:4,sizing:St,protectBackground:f.protectBackground,thumbnailFixedWidth:function(){return jdB(KC())+"px"},
thumbnailTargetWidth:function(){return jdB(KC())}}))}}))),_.a(_.Q,{cond:d,
then:function(){return _.a("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.a(_.y5,{data:h},{buttonViewModel:function(kC){return _.a(_.TS,{data:kC.data,onClick:Gq})}}))}}),_.a(_.Q,{cond:P,
then:function(){return _.a("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.a(_.y5,{data:l},{buttonViewModel:function(kC){return _.a(_.TS,{data:kC.data,onClick:LC})}}))}})))},"Tc");
_.jL.idomCompat=!0;var x6E=_.nf(function(f){var R=function(){return f.data().targetId||""},u=function(){var d;
return((d=f.data())==null?void 0:d.expansionEntityKey)||""},O=_.Ax(_.fTh,u),c=!0,h=function(){var d;
return((d=O())==null?void 0:d.value)===R()},l=function(d){_.$s(_.aA("stringEntity",u(),{key:u(),
value:d?R():""}))};
_.NW(function(){c=!1;f.data().isExpanded&&l(!0)});
var K=function(){if(h()){var d=!0;f.onCollapse!==void 0&&(d=f.onCollapse());d&&l(!1)}else l(!0)},q=_.Ff(K),F=function(){var d;
return(((d=f.accordionStyle)==null?void 0:d.call(f))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},w=_.sW(),m=function(){var d,p;
return(p=(d=_.t(f.data().rendererContext,_.mZ))==null?void 0:d.label)!=null?p:""},W={},C={};
return _.a("yt-accordion-item-view-model",{class:_.KL("ytAccordionItemViewModelHost",f.className,(W.ytAccordionItemViewModelExpanded=function(){return h()},W.ytAccordionItemViewModelHidden=function(){var d;
return(d=f.hideIfNotExpanded)==null?void 0:d.call(f)},W.ytAccordionItemViewModelMini=F,W)),
"data-target-id":R},_.a("div",{class:"ytAccordionItemViewModelContainer"},_.a("div",{class:"ytAccordionItemViewModelLeftSection","on:click":q,title:m},_.a(_.YO,{text:function(){return f.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:m})),_.a("div",{class:"ytAccordionItemViewModelRightSection"},_.a(_.y5,{data:function(){return h()?f.data().expandButton:f.data().collapseButton}},{buttonViewModel:function(d){return _.a(_.TS,{data:d.data,
className:"ytAccordionItemViewModelToggleButton",onClick:K})}}))),_.a("div",{class:"ytAccordionItemViewModelContainer"},_.a("div",{class:_.KL("ytAccordionItemViewModelContent",(C.ytAccordionItemViewModelExpandedSubtitle=function(){return h()},C)),
el:w,style:_.Qm({"max-height":function(){return c?"auto":h()?w.value.scrollHeight+"px":"0"}})},_.a(_.Q,{cond:function(){return!F()},
then:function(){return _.a(_.YO,{text:function(){return f.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.a(_.y5,{data:function(){return f.data().content}},{horizontalShelfViewModel:function(d){return _.a(_.jL,{data:d.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Uc");_.SMl=_.nf(function(f){var R=_.Z((0,_.tzC)(f.data)).next().value,u=function(){return f.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},O=function(){return u()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},c=_.Z(_.qK(!0,void 0,"FVec2e")),h=c.next().value,l=c.next().value,K=function(){return O()&&h()},q=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){l(!h())}}},F=_.Ff(function(){R().onTitleTap&&_.Ux(R().onTitleTap||{})});
c={};return _.a("yt-accordion-view-model",{class:_.KL("ytAccordionViewModelHost",(c.ytAccordionViewModelMinimized=function(){return K()},c)),
"data-target-id":function(){return f.data().targetId||""}},_.a(_.Q,{cond:function(){return O()||!!R().title},
then:function(){return _.a("div",{class:"ytAccordionViewModelHeader"},_.a("div",{class:"ytAccordionViewModelTitleSection"},_.a("div",{class:"ytAccordionViewModelTitleWrapper"},_.a(_.Q,{cond:function(){return!!f.data().headerIcon},
then:function(){return _.a(_.WM,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var w;return(w=f.data().headerIcon)==null?void 0:w.iconType}})}}),_.a("div",{class:"ytAccordionViewModelTitle",
"on:click":F},_.a(_.YO,{className:"ytAccordionViewModelTitleText",text:function(){return R().title}})))),_.a("div",{class:"ytAccordionViewModelButtonSection"},_.a(_.Q,{cond:O,
then:function(){return _.a(iA,{data:q,iconName:function(){return K()?"chevron_down":"chevron_collapse"}})}})))}}),_.a("div",{class:"ytAccordionViewModelContent"},_.a(_.y5,{data:function(){return R().contents}},{accordionItemViewModel:function(w){return _.a(x6E,{data:w.data,
className:"ytAccordionViewModelRow",accordionStyle:u,hideIfNotExpanded:K,onCollapse:function(){return O()?(l(!0),!1):!0}})}})),_.a("div",null,_.a(_.Q,{cond:function(){return!O()&&(!!R().disclaimerFooter||!!R().footer)},
then:function(){return _.a("div",{class:"ytAccordionViewModelFooter"},_.a(_.YO,{text:function(){return R().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.a(_.y5,{data:function(){return f.data().footer}},{flexibleActionsViewModel:function(w){return _.a(pe,{data:w.data,
layout:0})}}))}})))},"Vc");_.ii(_.SMl,"yt-accordion-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R,u=(R=_.vh().resolve(_.Y8(_.oF)))==null?void 0:R(),O=_.Z(_.qK(!1,void 0,"BxguL"));R=O.next().value;var c=O.next().value;O=_.Z(_.qK(!0,void 0,"WTCeFf"));var h=O.next().value,l=O.next().value,K=_.sW(),q=function(d){c(!0);d={learningJourneyFormData:{query:d}};_.Ux(f.data().searchEndpoint||{},{form:{formData:d}});return!1},F=_.Ff(function(d){d.target.closest("button-view-model")&&c(!0)});
O=_.Ff(function(){l(K.value.value.length===0)});
var w=_.Ff(function(d){if(d.key==="Enter"&&!d.shiftKey&&!h()){var p=d.target;d.preventDefault();q(p.value)}}),m={},W={},C={};
return _.a("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.a("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.a(_.gR,{data:function(){return f.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.a("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.a("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.a("div",{class:_.KL("ytLearningJourneyZeroStateSearchBar",(m.ytLearningJourneyZeroStateSearchBarDark=u,m))},_.a("textarea",{class:_.KL("ytLearningJourneyZeroStateTextInput",(W.ytLearningJourneyZeroStateTextInputDark=u,W)),el:K,"on:keyup":O,"on:keydown":w,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.a("div",{class:_.KL("ytLearningJourneyZeroStateSearchButtonContainer",(C.ytLearningJourneyZeroStateSearchButtonContainerDark=u,C))},_.a(_.TS,{data:function(){return _.t(f.data().searchButton,_.dW)},
className:"search-button",onClick:function(){return q(K.value.value)},
buttonOverrides:function(){return{disabled:h(),style:u?"mono-inverse":"mono",size:"XL"}}}))),_.a(_.Q,{cond:function(){return!!f.data().errorBanner},
then:function(){return _.a("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.a(_.y5,{data:function(){return f.data().errorBanner}},{alertBannerViewModel:function(d){return _.a(_.QHi,{data:d.data,
"client-ve-type":264617})}}))}})),_.a(_.Q,{cond:R,
then:function(){return _.a("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.a(_.y5,{data:function(){return f.data().loader}},{learningJourneyLoaderViewModel:function(d){return _.a(_.Grk,{data:d.data})}}))},
else:function(){return _.a("div",null,_.a(_.Q,{cond:function(){return!!f.data().learningJourneyShelf},
then:function(){return _.a("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.a("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return f.data().learningJourneySectionTitle}),_.a(_.y5,{data:function(){return f.data().learningJourneyShelf}},{horizontalShelfViewModel:_.jL}))}}),_.a("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.a("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return f.data().suggestedJourneySectionTitle}),
_.a("div",{"on:click":F},_.a(_.y5,{data:function(){return f.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(d){return _.a(pe,{data:d.data,
layout:1})}}))))}}))},"Wc"),"yt-learning-journey-zero-state",{props:{data:_.SG}});var $6i=_.nf(function(f){var R=f.data;return _.a("ytvl-live-leaderboard-item-action-content-view-model",{class:_.KL("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.a(_.YO,{text:function(){var u;return(u=R())==null?void 0:u.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.a(_.y5,{data:function(){return R().actionButton}},{buttonViewModel:function(u){return _.a(_.TS,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:u.data})}}))},"Xc");var gpE=_.nf(function(f){var R=f.data;return _.a("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.KL("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.a(_.YO,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var u;return(u=R())==null?void 0:u.displayName},
ellipsisTruncate:!0}),_.a(_.y5,{data:function(){return R().badge}},{buttonViewModel:function(u){return _.a(_.TS,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:u.data})}}))},"Yc");_.ii(_.nf(function(f){var R=f.data;return _.a("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.a("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.a(_.YO,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var u;return(u=R())==null?void 0:u.rank}})),_.a("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.a(_.y5,{data:function(){return R().avatar}},{avatarViewModel:_.NC})),_.a("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.a(_.y5,{data:function(){return R().content}},{liveLeaderboardItemChannelContentViewModel:gpE,
liveLeaderboardItemActionContentViewModel:$6i})),_.a(_.YO,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var u;return(u=R())==null?void 0:u.points}}))},"Zc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;return _.a("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.a(_.YO,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var u,O;return(u=R())==null?void 0:(O=u.ranking)==null?void 0:O.rank}}),_.a("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.a(_.y5,{data:function(){return R().avatar}},{avatarViewModel:_.NC})),_.a(_.YO,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var u,O;return(u=R())==null?void 0:(O=u.channelContent)==null?void 0:O.channelName}}),_.a(_.YO,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var u;return(u=R())==null?void 0:u.points}}))},"$c"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.SG}});var sHi=_.nf(function(f){f=_.sU(f,{wrapper:!1}).wrapper;return _.a(_.Q,{cond:f,then:function(){return _.a("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.a("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.a("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"ad");
sHi.idomCompat=!0;var npC=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],VxI=_.nf(function(f){var R=f.data;var u=_.sW(),O=_.Qt(function(){return R().command},void 0,"tJY20c");
_.pc(function(){O()&&_.IF(O(),{form:{element:u.value}})});
return _.a("div",{el:u,class:"YtQrCodeRendererHostContainer"},_.a(_.Q,{cond:function(){return R().qrCodeImage},
then:function(c){return _.a(_.gR,{data:c,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.a(_.Q,{cond:function(){return R().spinner},
then:function(){return _.a(sHi,null)}})}}),_.a(_.Q,{cond:function(){return R().label},
then:function(c){return _.a(_.YO,{text:c,className:"YtQrCodeRendererHostLabel"})}}),_.a(_.Q,{cond:function(){return R().labels},
then:function(c){return _.a("div",{class:"YtQrCodeRendererHostLabels"},_.a(_.EC,{each:c},function(h){return _.a(_.YO,{text:h})}))}}))},"cd");_.ii(_.nf(function(f){var R=f.data;var u=_.Qt(function(){return R().qrEntityKey},void 0,"joYCxd"),O=_.Qt(function(){return R().deleteEntityOnDismiss},void 0,"x3yAde"),c=_.Qt(function(){return R().command},void 0,"dJe1Re"),h=_.Ax(pw7,u);
f=_.Qt(function(){return R().qrCodeImage},void 0,"qM5dZe");
var l=_.Qt(function(){return R().style&&npC.includes(R().style)},void 0,"CaNEkf"),K=_.sW();
_.fT(K,{visibilityCallback:function(q){q&&c()&&_.IF(c())},
showOption:{calledOnce:!0,state:"visible"}});_.bt(function(){_.jN(function(){O()&&u()&&_.xs().dispatch(_.aA("qrCodeEntity",u()))})});
return _.a("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:K},_.a(_.Q,{cond:l,then:function(){return _.a(_.Q,{cond:h,then:function(q){return _.a(VxI,{data:q})}})}}),_.a(_.Q,{cond:f,
then:function(q){return _.a(_.gR,{data:q,alt:""})}}))},"bd"),"yt-qr-code-renderer",{props:{data:_.SG}});_.YMf=_.nf(function(f){var R=f.data;var u=f.topbarOffset;var O,c=((O=_.vh().resolve(_.Y8(_.oF)))==null?void 0:O())||!1;return _.a("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var h=R();var l,K,q=c?(l=h.config)==null?void 0:l.darkThemeBackgroundColor:(K=h.config)==null?void 0:K.lightThemeBackgroundColor;h=q?_.I1(q):void 0;h="background-color: "+h+";";u!==void 0&&(h+="top: -"+u()+"px;");return h},
"aria-hidden":!0},_.a(_.Q,{cond:function(){var h,l,K;return!!((h=R().backgroundImageConfig)==null?0:(l=h.image)==null?0:(K=l.sources)==null?0:K.length)},
then:function(){return _.a(_.gR,{data:function(){var h;return(h=R().backgroundImageConfig)==null?void 0:h.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.a("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+D4n(c,R().gradientColorConfig)+";"}}))},"dd");
_.YMf.idomCompat=!0;var Dx=_.nf(function(f){var R=f.className;var u=f.data;var O=f.isOverlay;var c=f.maxLinesOverride;var h=f.useMediumText;f=_.sW();var l=function(){return u().alwaysShowTruncationText},K=function(){return u().truncationText},q=function(){return h!==void 0&&h()?"medium":"small"},F=function(){return O!==void 0&&O()?"overlay":"default"},w=function(){var p,J;
return(J=(p=_.t(u().rendererContext,_.mZ))==null?void 0:p.label)!=null?J:""},m=_.Z(_.qK(!1,void 0,"mkuWzb")),W=m.next().value,C=m.next().value;
_.xO(f,function(){return u().rendererContext});
m=_.Ff(function(){u().expandOnTap&&C(!W());return!1});
var d={};return _.a("yt-description-preview-view-model",{el:f,class:_.KL("yt-description-preview-view-model-wiz",R,(d["yt-description-preview-view-model-wiz--clickable"]=function(){var p;return!((p=_.t(u().rendererContext,AD7))==null||!p.onTap)},d["yt-description-preview-view-model-wiz--is-overlay"]=O,d)),
"on:click":m},_.a(_.Q,{cond:function(){return u().description},
then:function(p){return _.a(_.Q,{cond:W,then:function(){var J={};return _.a("div",{class:_.KL("yt-description-preview-view-model-wiz__description",(J["yt-description-preview-view-model-wiz__description--medium-text"]=h,J))},_.a(_.YO,{text:p}))},
else:function(){return _.a(yDC,{text:p,alwaysShowTruncationText:l,truncationText:K,maxLines:function(){var J;return(J=c==null?void 0:c())!=null?J:u().maxLines},
textStyle:F,accessibilityLabel:w,textSize:q})}})}}))},"ed");
Dx.idomCompat=!0;var vpA=_.nf(function(f){var R=f.data;var u=f.isOverlay;return _.a("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.a("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.a(_.y5,{data:function(){return R().header}},{sectionHeaderViewModel:function(O){return _.a(_.c3,{data:O.data,
isOverlay:u})}})),_.a("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.a(_.y5,{data:function(){return R().channelInfoButtons}},{flexibleActionsViewModel:pe})),_.a("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.a(_.y5,{data:function(){return R().description}},{descriptionPreviewViewModel:function(O){return _.a(Dx,{data:O.data,
isOverlay:u})}})))},"fd");
vpA.idomCompat=!0;var iVC=_.nf(function(f){var R=f.data;var u={};return _.a("factoid-view-model",{class:_.KL("ytwFactoidViewModelHost",(u.ytwFactoidViewModelHostOverlay=f.isOverlay,u))},_.a(_.YO,{text:function(){return R().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.a(_.YO,{text:function(){return R().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"gd");
iVC.idomCompat=!0;var r2f=_.nf(function(f){var R=f.data;var u=f.isOverlay;return _.a("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.a(_.y5,{data:function(){return R().factoids}},{factoidViewModel:function(O){return _.a(iVC,{data:O.data,
isOverlay:u})}}))},"hd");
r2f.idomCompat=!0;_.fhG=_.nf(function(f){var R=f.data;var u=f.isOverlay;return _.a("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.a(_.y5,{data:function(){return R().items}},{channelInfoViewModel:function(O){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(vpA,{data:O.data,
isOverlay:u}))},
coursePerksViewModel:function(O){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(Mxl,{data:O.data,isOverlay:u}))},
descriptionPreviewViewModel:function(O){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(Dx,{data:O.data,isOverlay:u}))},
factoidsRowViewModel:function(O){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(r2f,{data:O.data,isOverlay:u}))},
progressViewModel:function(O){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(Pnk,{data:O.data,isOverlay:u}))}}))},"id");var RPf=_.nf(function(f){return _.a("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.a(_.y5,{data:function(){return f.data().content}},{courseMetadataViewModel:function(R){return _.a(_.fhG,{data:R.data,
isOverlay:f.isOverlay})},
progressViewModel:function(R){return _.a(Pnk,{data:R.data})}}))},"jd");var ujf=_.nf(function(f){var R=f.data;f=f.className;var u=_.sW(),O=function(){var h;return _.oA((h=R())==null?void 0:h.rendererContext)},c={};
c=(c["dynamic-text-view-model-wiz"]=!0,c["dynamic-text-view-model-wiz--tappable"]=function(){return O()},c);
_.xO(u,function(){var h;return(h=R())==null?void 0:h.rendererContext});
return _.a("yt-dynamic-text-view-model",{el:u,role:function(){return O()?"link":void 0},
tabindex:function(){return O()?0:void 0},
class:_.KL(f,c)},_.a("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var h,l,K;return(K=(l=_.t((h=R())==null?void 0:h.rendererContext,_.mZ))==null?void 0:l.label)!=null?K:""}},_.a(_.YO,{text:function(){return R().text},
userInput:!0})))},"kd");
ujf.idomCompat=!0;_.Obk=_.nf(function(f){var R=f.data;var u=f.isPositionRelative;var O=_.n0(),c=_.zEq("(max-width: 527.9px)"),h=function(){var l,K;return(K=(l=R())==null?void 0:l.style)!=null?K:"IMAGE_BANNER_STYLE_FULL_BLEED"};
f={};f=(f["yt-image-banner-view-model-wiz"]=!0,f["yt-image-banner-view-model-wiz--inset"]=function(){return Tf7(h())},f["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Jy(!0)&&!(u==null?0:u())},f["yt-image-banner-view-model-wiz--small-inset"]=function(){return Tf7(h())&&c()},f["yt-image-banner-view-model-wiz--tappable"]=function(){var l;
return _.Jy(O.value)&&_.oA((l=R())==null?void 0:l.rendererContext)},f);
_.xO(O,function(){var l;return(l=R())==null?void 0:l.rendererContext});
return _.a("yt-image-banner-view-model",{el:O,class:_.KL(f)},_.a(_.Q,{cond:function(){var l;return(l=R())==null?void 0:l.image},
then:function(){return _.a(_.gR,{data:function(){return R().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.a(_.y5,{data:function(){var l;
return(l=R())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:dG}))},"ld");
_.Obk.idomCompat=!0;var cQi;cQi=_.nf(function(f){var R=f.condition;var u=f.content;return _.a(_.Q,{cond:R,then:function(){return _.a("div",{class:"page-header-view-model-wiz__scroll-container"},u())},
else:function(){return u()}})},"md");
_.XAF=_.nf(function(f){var R=f.data;var u=f.noPadding;var O=f.enableBanner;var c=f.cinematicContainerTopbarOffset;var h=f.allowCinematicContainerOverflow;var l=f.displayAsSidebar;var K=f.displayAsPanel;var q=HKn(),F=function(){return!!R().image||!!R().animatedImage},w=function(){return!!R().background},m=function(){return(l==null?0:l())||(K==null?0:K())?1:q()},W=function(){return m()===1},C=function(){return W()||m()===2},d=function(){return m()===4},p=function(){var Jn=R();
var zq=!!R().heroImage;var St=m(),Gq=I_e(R()),LC=l==null?void 0:l(),wN=!Jn.metadata,GI;if(GI=zq?_.t(Jn.heroImage,PLH):_.t(Jn.animatedImage||Jn.image,PLH)){Jn=GI.style;var ak=GI.layoutMode;if(ak!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(GI=CvB(tzh(GI)),zq)zq=J7X(St,Jn,ak,GI,LC);else b:if(wN)zq=St===1?{size:48}:{size:72};else switch(St){case 1:zq={size:72};break b;case 2:zq={size:120};break b;default:zq=Gq<4?{size:120}:{size:160}}else zq=void 0}else zq={size:0};return zq};
f={};f=_.KL((f["page-header-view-model-wiz"]=!0,f["page-header-view-model-wiz--no-padding"]=function(){return!(u==null||!u())},f["page-header-view-model-wiz--small-top-padding"]=function(){return W()&&!R().actions||m()===2&&!(F()||R().heroImage)},f["page-header-view-model-wiz--small-bottom-padding"]=function(){return C()&&!R().actions},f["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(h==null?0:h())},f["page-header-view-model-wiz--display-as-sidebar"]=l,f["page-header-view-model-wiz--display-as-panel"]=
K,f));
var J={},M=_.KL((J["page-header-view-model-wiz__page-header-headline"]=!0,J["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var Jn;return(Jn=p())==null?void 0:Jn.allowFullWidth},J)),P=function(){var Jn;
return C()&&!((Jn=p())==null?0:Jn.allowFullWidth)},g=function(){return W()&&(!!R().heroImage||F())&&I_e(R())>0},x=function(){return g()&&(K==null?void 0:K())};
J={};var fh=_.KL((J["page-header-view-model-wiz__page-header-title"]=!0,J["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!g()},J["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return g()&&!x()},J["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=x,J["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=w,J));
J={};var V=_.KL((J["page-header-view-model-wiz__page-header-headline-image"]=!0,J["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!R().heroImage&&C()},J));
J={};var ZD=_.KL((J["page-header-view-model-wiz__page-header-banner-container"]=O,J["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Jn;return(O==null?void 0:O())&&((Jn=_.t(R().banner,_.enf))==null?void 0:Jn.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},J));
J={};var mP=_.KL((J["page-header-view-model-wiz__page-header-content-metadata"]=!0,J["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=w,J));J={};var NX=_.KL((J["page-header-view-model-wiz__page-header-flexible-actions"]=!0,J["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!R().metadata||C()},J["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!C()},J));
J={};var jt=_.KL((J["page-header-view-model-wiz__page-header-attribution"]=!0,J["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=w,J));return _.a("yt-page-header-view-model",{class:f},_.a(_.Q,{cond:w,then:function(){return _.a("div",{class:"page-header-view-model-wiz__page-header-background"},_.a(_.y5,{data:function(){return R().background}},{cinematicContainerViewModel:function(Jn){return _.a(_.YMf,{data:Jn.data,
topbarOffset:c})}}))}}),_.a(cQi,{condition:function(){return!(l==null||!l())},
content:function(){return _.a("div",{class:"page-header-view-model-wiz__page-header-content"},_.a(_.Q,{cond:function(){return(O==null?void 0:O())&&R().banner},
then:function(){return _.a("div",{class:ZD},_.a(_.y5,{data:function(){return R().banner}},{imageBannerViewModel:_.Obk}))}}),_.a("div",{class:M},_.a(_.Q,{cond:F,
then:function(){return _.a(_.y5,{data:function(){var Jn;if(!(Jn=R().animatedImage)){Jn=R();if(F()){var zq=Jn=Object.assign({},Jn),St=m(),Gq=I_e(R()),LC=zq.image,wN=_.t(LC,UjE),GI=wN==null?void 0:wN.avatar,ak=_.t(GI,_.SP);if(LC&&GI&&ak){switch(St){case 1:ak.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ak.avatarImageSize="AVATAR_SIZE_XXL";break;default:Gq<4?ak.avatarImageSize="AVATAR_SIZE_XXL":ak.avatarImageSize="AVATAR_SIZE_XXXL"}_.E("web_enable_sink_page_header_view_model")&&(_.jQ(GI,_.SP,Object.assign({},
ak)),wN.avatar=Object.assign({},GI),_.jQ(LC,UjE,Object.assign({},wN)),zq.image=Object.assign({},LC))}}Jn=Jn.image}return Jn}},{contentPreviewImageViewModel:function(Jn){return _.a(_.iS,{data:Jn.data,
className:V,imageSizeConfig:p})},
decoratedAvatarViewModel:function(Jn){return _.a(_.LY,{data:Jn.data,className:V})}})}}),_.a(_.Q,{cond:function(){return!!R().heroImage&&!P()},
then:function(){return _.a(_.y5,{data:function(){return R().heroImage}},{contentPreviewImageViewModel:function(Jn){return _.a(_.iS,{data:Jn.data,
className:V,imageSizeConfig:p})}})}}),_.a("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.a(_.Q,{cond:function(){return!!R().heroImage&&P()},
then:function(){return _.a("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.a(_.y5,{data:function(){return R().heroImage}},{contentPreviewImageViewModel:function(Jn){return _.a(_.iS,{data:Jn.data,
className:V,imageSizeConfig:p})}}))}}),_.a(_.y5,{data:function(){return R().title}},{dynamicTextViewModel:function(Jn){return _.a(ujf,{data:Jn.data,
className:fh})}}),_.a(_.y5,{data:function(){return R().metadata}},{contentMetadataViewModel:function(Jn){return _.a(_.qKE,{data:Jn.data,
layout:function(){return W()?1:0},
className:mP,isOverlay:w,useMediumText:d})}}),_.a(_.Q,{cond:function(){return R().description&&!W()},
then:function(){return _.a(_.y5,{data:function(){return R().description}},{descriptionPreviewViewModel:function(Jn){return _.a(Dx,{data:Jn.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return W()?void 0:1},
useMediumText:d})}})}}),_.a(_.Q,{cond:function(){return R().attribution&&!C()},
then:function(){return _.a(_.y5,{data:function(){return R().attribution}},{attributionViewModel:function(Jn){return _.a(cDE,{data:Jn.data,
className:jt,useMediumText:d})}})}}),_.a(_.Q,{cond:function(){return R().actions&&!C()},
then:function(){return _.a(_.y5,{data:function(){return R().actions}},{flexibleActionsViewModel:function(Jn){return _.a(pe,{data:Jn.data,
layout:function(){return MfX(m())},
className:NX})}})}}))),_.a("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.a(_.Q,{cond:function(){return R().description&&W()},
then:function(){return _.a(_.y5,{data:function(){return R().description}},{descriptionPreviewViewModel:function(Jn){return _.a(Dx,{data:Jn.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return W()?void 0:1},
useMediumText:d})}})}}),_.a(_.Q,{cond:function(){return R().attribution&&C()},
then:function(){return _.a(_.y5,{data:function(){return R().attribution}},{attributionViewModel:function(Jn){return _.a(cDE,{data:Jn.data,
className:jt,useMediumText:d})}})}}),_.a(_.Q,{cond:function(){return R().actions&&C()},
then:function(){return _.a(_.y5,{data:function(){return R().actions}},{flexibleActionsViewModel:function(Jn){return _.a(pe,{data:Jn.data,
layout:function(){return MfX(m())},
className:NX})}})}})),_.a("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.a(_.y5,{data:function(){return R().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Jn){return _.a(RPf,{data:Jn.data,
isOverlay:w})}})))}}))},"nd");
_.XAF.idomCompat=!0;_.ii(_.nf(function(f){var R=_.Z(_.qK(!1,void 0,"vVRl3b")),u=R.next().value,O=R.next().value;return _.a("yt-official-card-view-model",{class:_.KL("ytOfficialCardViewModelHost",f.className),style:_.Qm({"background-color":function(){var c,h=x07((c=f.data())==null?void 0:c.backgroundColor);return h?_.ML(h):void 0}})},_.a(_.y5,{data:function(){return f.data().header}},{pageHeaderViewModel:function(c){return _.a(_.XAF,{data:c.data,
noPadding:!0})}}),_.a(_.y5,{data:function(){return f.data().contents}},{horizontalShelfViewModel:function(c){return _.a(_.jL,{data:c.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.a(_.Q,{cond:u,
then:function(){return _.a("div",{class:"ytOfficialCardViewModelExpandedContent"},_.a(_.y5,{data:function(){return f.data().expandedContents}},{horizontalShelfViewModel:function(c){return _.a(_.jL,{data:c.data,
sizing:"MINI"})}}),_.a("div",{class:"ytOfficialCardViewModelCollapseButton"},_.a(_.y5,{data:function(){return f.data().collapseButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
onClick:function(){O(!u())}})}})))},
else:function(){return _.a("div",{class:"ytOfficialCardViewModelExpandButton"},_.a(_.y5,{data:function(){return f.data().expandButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
onClick:function(){O(!u())}})}}))}}))},"od"),"yt-official-card-view-model",{props:{data:_.SG,
className:_.SG}});var PYt=_.WJ({buttonViewModel:_.TS});_.RI(U4B);_.hS(U4B,"ytw-search-friction-view-model",{propNames:["data"]});_.Jv=_.nf(function(f){var R=_.sW(),u,O=(u=_.vh().resolve(_.Y8(_.oF)))==null?void 0:u();_.pc(function(){var c=R.value;var h=new KPE,l=new Map(h.JSC$7309_sanitizerTable.globalAttributePolicies);l.set("style",{policyAction:4});h.JSC$7309_sanitizerTable=new QO(h.JSC$7309_sanitizerTable.allowedElements,h.JSC$7309_sanitizerTable.elementPolicies,h.JSC$7309_sanitizerTable.allowedGlobalAttributes,l,h.JSC$7309_sanitizerTable.globallyAllowedAttributePrefixes);var K=["data-time"];if(K===void 0)l=new Set(h.JSC$7309_sanitizerTable.globallyAllowedAttributePrefixes),
l.add("data-"),h.JSC$7309_sanitizerTable=new QO(h.JSC$7309_sanitizerTable.allowedElements,h.JSC$7309_sanitizerTable.elementPolicies,h.JSC$7309_sanitizerTable.allowedGlobalAttributes,h.JSC$7309_sanitizerTable.globalAttributePolicies,l);else{l=new Set(h.JSC$7309_sanitizerTable.allowedGlobalAttributes);K=_.Z(K);for(var q=K.next();!q.done;q=K.next()){q=q.value;if(q.indexOf("data-")!==0)throw Error("qa`"+q);l.add(q)}h.JSC$7309_sanitizerTable=new QO(h.JSC$7309_sanitizerTable.allowedElements,h.JSC$7309_sanitizerTable.elementPolicies,
l,h.JSC$7309_sanitizerTable.globalAttributePolicies,h.JSC$7309_sanitizerTable.globallyAllowedAttributePrefixes)}l=new Set(h.JSC$7309_sanitizerTable.allowedGlobalAttributes);l.add("class");h.JSC$7309_sanitizerTable=new QO(h.JSC$7309_sanitizerTable.allowedElements,h.JSC$7309_sanitizerTable.elementPolicies,l,h.JSC$7309_sanitizerTable.globalAttributePolicies,h.JSC$7309_sanitizerTable.globallyAllowedAttributePrefixes);_.ey(c,_.X0C(h.build(),Gu0(f.text())));Bf5(R.value)});
u={};return _.a("div",null,_.a("markdown-div",{class:_.KL("ytwMarkdownDivHost",(u.ytwMarkdownDivDark=O,u.ytwMarkdownDivHostSmall=function(){var c;return((c=f.isSmallText)==null?void 0:c.call(f))||!1},u)),
el:R}))},"pd");
_.Jv.idomCompat=!0;var hPA=_.nf(function(f){var R=f.imageData;var u=_.g_(f.isInList,!1),O=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 _.a("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.a(_.Q,{cond:function(){return R().image},
then:function(c){return _.a(_.gR,{data:c,alt:function(){return O().alt},
contentMode:function(){return O().contentMode},
targetWidth:function(){return O().targetWidth},
targetHeight:function(){return O().targetHeight},
className:function(){return O().className}})}}),_.a("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.a("div",{class:_.KL("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.a(_.YO,{text:function(){return R().title}})),_.a(_.EC,{each:function(){var c;
return(c=R().description)!=null?c:[]}},function(c){return _.a("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.a(zk,{content:c}))})))},"qd"),Zbi=_.nf(function(f){var R=f.list;
var u=function(){var O;return(O=R().items)!=null?O:[]};
return _.a("div",{class:"ytwGenAiRichTextViewModelListContent"},_.a(_.Q,{cond:function(){return R().title},
then:function(O){return _.a("div",{class:_.KL("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.a(_.YO,{text:O}))}}),_.a(_.Q,{cond:function(){return R().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.a("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.a(_.EC,{each:u},function(O){return _.a("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.a(zk,{content:O,isInList:!0}))}))}}),_.a(_.Q,{cond:function(){return R().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.a("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.a(_.EC,{each:u},function(O){return _.a("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.a(zk,{content:O,isInList:!0}))}))}}),_.a(_.Q,{cond:function(){return R().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.a("div",{class:"ytwGenAiRichTextViewModelImageList"},_.a(_.EC,{each:u},function(O){return _.a("div",{class:"ytwGenAiRichTextViewModelListItem"},_.a(zk,{content:O,isInList:!0}))}))}}))},"rd"),lhH=_.nf(function(f){var R=f.table;
return _.a("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.a("thead",null,_.a("tr",null,_.a(_.EC,{each:function(){var u,O;return(O=(u=R().header)==null?void 0:u.cells)!=null?O:[]}},function(u){return _.a("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.a(_.EC,{each:function(){return u.contents}},function(O){return _.a(zk,{content:O})}))}))),_.a("tbody",null,_.a(_.EC,{each:function(){var u;
return(u=R().rows)!=null?u:[]}},function(u){return _.a("tr",null,_.a(_.EC,{each:function(){return u.cells}},function(O){return _.a("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.a(_.EC,{each:function(){return O.contents}},function(c){return _.a(zk,{content:c})}))}))})))},"sd"),zk=_.nf(function(f){var R=f.content;
var u=_.g_(f.isInList,!1),O=function(){var c,h;return(h=(c=R().contentBlock)==null?void 0:c.contents)!=null?h:[]};
return _.a("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.a(_.Q,{cond:function(){return R().text},
then:function(c){return _.a(_.YO,{className:"ytwGenAiRichTextViewModelText",text:c})}}),_.a(_.Q,{cond:function(){return R().image},
then:function(c){return _.a(hPA,{imageData:c,isInList:u})}}),_.a(_.Q,{cond:function(){return R().list},
then:function(c){return _.a(Zbi,{list:c})}}),_.a(_.Q,{cond:function(){return R().contentBlock},
then:function(){return _.a("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.a(_.EC,{each:O},function(c){return _.a(zk,{content:c,isInList:!1})}))}}),_.a(_.Q,{cond:function(){return R().table},
then:function(c){return _.a(lhH,{table:c})}}))},"td"),kiE=_.nf(function(f){var R={};
R=_.AS("ytwGenAiRichTextViewModelHost",(R.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.uZ("search_overview_link_style")),R));return _.a("gen-ai-rich-text-view-model",{class:R},_.a(zk,{content:function(){return f.data().content}}))},"ud");_.RI(oqD);_.RI(TB);_.K5Y=_.nf(function(f){var R=f.data;var u=function(){var p;return((p=R().loadingUi)!=null?p:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},O=function(){return R().isLoading&&(u()==="UNSPECIFIED"||u()==="GHOST_CARD")},c=function(){return!R().isLoading},h=function(){return!!R().content&&!R().contents},l=function(){return!!R().contents},K=function(){return!!R().nextQueryButtons},q=function(){return R().isLoading&&u()==="INVISIBLE"},F=function(){var p,J;
return(J=(p=R().headerIcon)==null?void 0:p.iconType)!=null?J:""},w=function(){var p;
return(p=R().content)!=null?p:""},m=function(){return!!R().sourcesSection},W,C=!((W=_.vh().resolve(_.Y8(_.oF)))==null||!W()),d=_.Qt(function(){var p=[],J=R().contents;
if(J)for(var M=0;M<J.length;M++){var P=_.t(J&&J[M],szl);P&&p.push(P)}return p},void 0,"ycU97e");
_.bt(function(){R().isLoading||_.JH("so_re",void 0,"search_overview_answer")});
return _.a("ytd-overview-answer-view-model",{class:function(){var p={};p=(p.ytdOverviewAnswerViewModelHost=!0,p.ytdOverviewAnswerViewModelDarkBackground=C&&!q(),p.ytdOverviewAnswerViewModelLightBackground=!C&&!q(),p);return _.AS(p)}},_.a(_.Q,{cond:function(){return!q()},
then:function(){return _.a(_.RS,null,_.a("h2",null,_.a("div",{class:"ytdOverviewAnswerViewModelHeader"},_.a(_.Q,{cond:F,then:function(p){return _.a("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.a(_.WM,{icon:p}))}}),_.a("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.a("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return R().headerText}),_.a("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.a(_.YO,{text:function(){return R().headerSubtext}}))))),_.a(_.Q,{cond:O,
then:function(){return oqD()}}),_.a(_.Q,{cond:c,
then:function(){return _.a(_.RS,null,_.a(_.Q,{cond:h,then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelText"},_.a(_.Jv,{text:w,isSmallText:!0}))}}),_.a(_.Q,{cond:l,
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelRichText"},_.a(_.EC,{each:d},function(p){return _.a(kiE,{data:p})}))}}),_.a(_.Q,{cond:K,
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.a(_.y5,{data:function(){return R().nextQueryButtons}},{buttonViewModel:function(p){return _.a(_.TS,{data:p.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.jL}))}}),_.a("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.a("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.a(_.Q,{cond:function(){return!!_.t(R().likeButtonViewModel,_.pr)&&!!_.t(R().dislikeButtonViewModel,_.jP)},
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.a(_.DA,{data:function(){return _.t(R().likeButtonViewModel,_.pr)},
disableIconAnimation:!0}),_.a(_.jM,{data:function(){return _.t(R().dislikeButtonViewModel,_.jP)}}))}})),_.a(_.Q,{cond:function(){var p;
return(p=R().sourcesSection)==null?void 0:p.headerText},
then:function(p){return _.a("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.a(_.YO,{text:p}))}})),_.a(_.Q,{cond:m,
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelSources"},_.a(_.y5,{data:function(){var p;return(p=R().sourcesSection)==null?void 0:p.sourcesShelf}},{buttonViewModel:_.TS,
horizontalShelfViewModel:function(p){return _.a(_.jL,{data:p.data,includeMargin:!0,hasPeek:!0})}}))}}),_.a(_.Q,{cond:function(){return R().disclaimerText},
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.a(_.YO,{text:function(){return R().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"vd");var qji=_.nf(function(f){var R=f.data;var u=f.active;var O=_.sW();_.pc(function(){var c,h,l,K=((c=_.vh().resolve(_.Y8(_.oF)))==null?0:c())?(h=R())==null?void 0:h.darkThemeColorPalette:(l=R())==null?void 0:l.lightThemeColorPalette;K&&(K.additiveBackground&&O.value.style.setProperty("--timestamp-active-background-color",_.ML(K.additiveBackground)),K.textSecondary&&O.value.style.setProperty("--timestamp-active-color",_.I1(K.textSecondary)))},"KHcbwb");
f={};return _.a("transcript-segment-view-model",{class:_.KL("ytwTranscriptSegmentViewModelHost",(f.ytwTranscriptSegmentViewModelHostActive=u,f.ytwTranscriptSegmentViewModelHostModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),f)),el:O},_.a(_.Q,{cond:function(){var c;return(c=R())==null?void 0:c.timestamp},
then:function(c){var h={};return _.a("div",{class:_.KL("ytwTranscriptSegmentViewModelTimestamp",(h.ytwTranscriptSegmentViewModelTimestampActive=u,h))},c)}}),_.a(_.YO,{text:function(){var c,h,l;
return(l=(c=R())==null?void 0:c.attributedText)!=null?l:{content:(h=R())==null?void 0:h.simpleText}},
linkInheritColor:!0}))},"wd");var AQf=_.nf(function(f){var R=f.data;return _.a("div",{class:"yt-video-attributes-section-view-model__header"},_.a("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return R().headerTitle}),_.a(_.Q,{cond:function(){return R().headerSubtitle},
then:function(){return _.a("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return R().headerSubtitle})}}))},"xd"),ahC=_.nf(function(f){function R(d){return Math.max(Math.min(d,0),F()-K())}
var u=f.data;var O=_.sW(),c=_.sW();f=_.Z(_.qK(0,void 0,"ucDlDf"));var h=f.next().value,l=f.next().value,K=h;f=_.Z(_.qK(0,void 0,"lHzSub"));h=f.next().value;var q=f.next().value,F=h;f=_.Z(_.qK(0,void 0,"Q8fDIe"));var w=f.next().value,m=f.next().value;_.bt(function(){var d=function(){l(c.value.scrollWidth);q(O.value.clientWidth)};
d();if(window.ResizeObserver){var p=new ResizeObserver(d);p.observe(O.value);_.jN(function(){p.disconnect()})}});
var W=function(){m(R(w()+F()))},C=function(){m(R(w()-F()))};
return _.a("yt-video-attributes-section-view-model",null,_.a("div",{class:"yt-video-attributes-section-view-model"},_.a(_.Q,{cond:function(){return u().headerTitle},
then:function(){return _.a(AQf,{data:u})}}),_.a("div",{class:_.KL("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:O},_.a("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Qm({transform:function(){var d=w();_.Tf("HTML_DIR")==="rtl"&&(d*=-1);return"translateX("+d+"px)"}}),
el:c},_.a(_.y5,{data:function(){return u().videoAttributeViewModels}},{videoAttributeViewModel:d9C}))),_.a(_.y5,{data:function(){return u().footerButton}},{buttonViewModel:function(d){return _.a(_.TS,{data:d.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.a(_.Q,{cond:function(){return w()<0&&u().previousButton},
then:function(){return _.a("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.a(_.y5,{data:function(){return u().previousButton}},{buttonViewModel:function(d){return _.a(_.TS,{data:d.data,
onClick:W})}}))}}),_.a(_.Q,{cond:function(){return w()>F()-K()&&u().nextButton},
then:function(){return _.a("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.a(_.y5,{data:function(){return u().nextButton}},{buttonViewModel:function(d){return _.a(_.TS,{data:d.data,
onClick:C})}}))}})))},"yd");
ahC.idomCompat=!0;var F5f=_.nf(function(f){var R=f.data;var u=f.active;var O={},c={};return _.a("timeline-item-view-model",{class:_.KL("ytwTimelineItemViewModelHost",(O.ytwTimelineItemViewModelHostChapterChild=f.chapterChild,O.ytwTimelineItemViewModelModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),O))},_.a("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.a("div",{class:_.KL("ytwTimelineItemViewModelTimestamp",(c.ytwTimelineItemViewModelTimestampActive=
u,c))},function(){return R().timestamp})),_.a("div",{class:"ytwTimelineItemViewModelContentItems"},_.a(_.y5,{data:function(){return R().contentItems}},{transcriptSegmentViewModel:function(h){return _.a(qji,{data:h.data,
active:u})},
videoAttributesSectionViewModel:ahC})))},"zd");var wAt=_.nf(function(f){var R=f.data;f={};return _.a("timeline-chapter-view-model",{class:_.KL("ytwTimelineChapterViewModelHost")},_.a("div",{class:_.KL("ytwTimelineChapterViewModelTitle",(f.ytwTimelineChapterViewModelModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),f))},function(){return R().title}),_.a(_.y5,{data:function(){return R().contents}},{timelineItemViewModel:function(u){return _.a(F5f,{data:u.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(u){return _.a(ahC,{data:u.data})}}))},"Ad");var mzI=_.nf(function(f){var R=f.data;var u=_.sW(),O=_.Ax(_.yB2,function(){var h;return(h=R().markersEngagementPanelSyncEntityKey)!=null?h:""}),c=function(){var h;
return((h=O())==null?void 0:h.activeItemIndex)===R().index};
return _.a("macro-markers-panel-item-view-model",{class:_.KL("ytwMacroMarkersPanelItemViewModelHost",{"is-active":c}),el:u,"on:click":_.Ff(function(h){var l,K,q,F,w;return _.k(function(m){if(m.nextAddress==1)return h.stopPropagation(),_.GS(_.eP(h),u.value,["A".toString(),"BUTTON".toString()])?m.return():(l=_.H7(R().onTap))?_.A(m,_.cJ(),2):m.return();K=m.yieldResult;F=(q=_.t(l,_.$7))==null?void 0:q.startTimeSeconds;F===void 0||(w=K)!=null&&w.seekTo(F,!0);_.KG(m)})}),
tabindex:0},_.a(_.y5,{data:function(){var h;return(h=R())==null?void 0:h.item}},{timelineChapterViewModel:function(h){return _.a(wAt,{data:h.data,
active:c})},
timelineItemViewModel:function(h){return _.a(F5f,{data:h.data,active:c})},
videoAttributeViewModel:d9C}))},"Bd");
mzI.idomCompat=!0;_.ii(mzI,"macro-markers-panel-item-view-model",{props:{data:_.SG}});_.ii(ahC,"yt-video-attributes-section-view-model",{props:{data:_.SG}});var QQf=_.nf(function(f){var R=function(){var u,O,c;return(c=(u=f.data().leadingLogoAccessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?c:""};
return _.a("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.a(_.Q,{cond:function(){return f.data().leadingLogo},
then:function(u){return _.a(_.gR,{className:"ytwFantasySectionHeaderViewModelLogo",data:u,alt:R})}}),_.a("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.a(_.YO,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return f.data().title}}),_.a(_.YO,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return f.data().subtitle}})),_.a(_.y5,{data:function(){return f.data().trailingButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Cd");var W5k=_.nf(function(f){var R={};R=_.KL("ytwFantasyTeamViewModelHost",(R.ytwFantasyTeamViewModelCompact=function(){var c;return!((c=f.compact)==null||!c.call(f))},R.ytwFantasyTeamViewModelUser=function(){return f.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},R.ytwFantasyTeamViewModelOpponent=function(){return f.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},R));
var u=function(){var c,h,l;return(l=(c=f.data().teamLogoAccessibility)==null?void 0:(h=c.accessibilityData)==null?void 0:h.label)!=null?l:""},O=_.Ax(Nge,function(){return f.data().teamEntityKey});
return _.a("ytw-fantasy-team-view-model",{class:R},_.a(_.Q,{cond:function(){return f.data().teamLogo},
then:function(c){return _.a(_.gR,{className:"ytwFantasyTeamViewModelLogo",data:c,alt:u})}}),_.a("div",{class:"ytwFantasyTeamViewModelMetadata"},_.a("div",{class:"ytwFantasyTeamViewModelHeader"},_.a(_.YO,{className:"ytwFantasyTeamViewModelScore",
text:function(){var c;return(c=O())==null?void 0:c.score}}),_.a(_.WM,{icon:function(){var c;
return(c=O())==null?void 0:c.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.a(_.YO,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var c;return(c=O())==null?void 0:c.projectedScore}})),_.a(_.YO,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return f.data().primaryText}}),_.a(_.YO,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return f.data().secondaryText}}),_.a(_.YO,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return f.data().tertiaryText}})),_.a(_.YO,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var c;return(c=O())==null?void 0:c.score}}))},"Dd");_.ii(_.nf(function(f){return _.a("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.a("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.a(_.y5,{data:function(){return f.data().summaryHeader}},{fantasySectionHeaderViewModel:QQf})),_.a(_.y5,{data:function(){return f.data().userTeam}},{fantasyTeamViewModel:W5k}),_.a(_.y5,{data:function(){return f.data().opponentTeam}},{fantasyTeamViewModel:W5k}))},"Ed"),"fantasy-league-summary-view-model",{props:{data:_.SG}});var E4I=_.nf(function(f){var R=_.sU(f,{shape:{},useCustomTabRenderable:!1}),u=R.shape;R=R.useCustomTabRenderable;var O=f.customTabRenderable,c=function(){return u().disabled},h=function(){return u().selected},l=function(){return u().title},K=function(){return u().icon},q=_.sW();
f=_.Ff(function(m){var W;if(!c()&&((W=u().aTagConfig)==null?0:W.onclick))u().aTagConfig.onclick(m);return!1});
var F=_.Ff(function(m){if(m.key==="Enter"||m.key==="ArrowUp"||m.key==="ArrowDown")m.preventDefault(),q.value.click();return!1}),w={};
return _.a("yt-tab-shape",{class:_.KL("yt-tab-shape-wiz",function(){return u().className},(w["yt-tab-shape-wiz__tab--last-tab"]=function(){return u().isLastTab},w["yt-tab-shape-wiz--host-disabled"]=c,w["yt-tab-shape-wiz--host-clickable"]=!O,w)),
role:O?void 0:"tab","aria-selected":h!=null?h:!1,"aria-disabled":c,tabindex:O?void 0:0,"on:click":f,"on:keydown":F,el:q,"tab-identifier":function(){return u().identifier},
"tab-title":l},_.a(_.Q,{cond:R,then:function(){return O()},
else:function(){var m={},W={};return _.a(_.RS,null,_.a("div",{class:_.KL("yt-tab-shape-wiz__tab",(m["yt-tab-shape-wiz__tab--tab-selected"]=h,m))},_.a(_.Q,{cond:K,then:function(C){return _.a(_.WM,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return C().iconType}})}}),l),_.a("div",{class:_.KL("yt-tab-shape-wiz__tab-bar",(W["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=h,W))}))}}))},"Fd");
E4I.idomCompat={callbacks:{customTabRenderable:!0}};_.CDH=_.nf(function(f){var R=f.shape;f=_.Z(_.qK(48,void 0,"r9IBlb"));var u=f.next().value,O=f.next().value;f=_.Z(_.qK(0,void 0,"Bd7rmd"));var c=f.next().value,h=f.next().value,l=function(){return R().tabs},K=_.sW(),q=function(){var F,w;
return(w=(F=l())==null?void 0:F.findIndex(function(m){return m.selected}))!=null?w:-1};
_.bt(function(){var F=K.value.querySelectorAll("yt-tab-shape"),w=q()>-1?F[q()]:void 0;_.JA.addJob(function(){O((w==null?void 0:w.getBoundingClientRect().width)||0)},8,0)});
_.pc(function(){var F=q(),w=_.JA.addJob(function(){var m,W=((m=K.value)==null?void 0:m.querySelectorAll("yt-tab-shape"))||[],C;O(((C=F>-1?W[F]:void 0)==null?void 0:C.getBoundingClientRect().width)||0);for(C=m=0;C<F;C++)m+=W[C].offsetWidth+24;_.Tf("HTML_DIR")==="rtl"&&(m=-m);h(m)},8,0);
_.jN(function(){_.JA.cancelJob(w)})});
f={};return _.a("yt-tab-group-shape",{class:_.KL("yt-tab-group-shape-wiz",(f["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return R().isOverflowHidden},f)),
el:K},_.a(_.Q,{cond:l,then:function(F){return _.a(_.RS,null,_.a("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.a(_.EC,{each:F},function(w,m){return _.a(E4I,{shape:function(){return Object.assign({},w,{isLastTab:m()===F().length-1})},
customTabRenderable:w.customTabRenderable,useCustomTabRenderable:!!w.customTabRenderable})})),_.a(teG,{width:u,
sliderOffset:c}))}}))},"Gd");
_.CDH.idomCompat=!0;var teG=_.nf(function(f){var R=_.g_(f.sliderOffset,0),u=f.width;return _.a("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Qm({width:function(){return u()+"px"},
transform:function(){return"translateX("+R()+"px)"}})})},"Hd");var yQk=_.nf(function(f){var R=function(){var h,l,K;return(K=(h=f.data().playerLogoAccessibility)==null?void 0:(l=h.accessibilityData)==null?void 0:l.label)!=null?K:""},u=_.Ax(Let,function(){return f.data().playerEntityKey}),O={};
O=_.KL("ytwFantasyPlayerViewModelHost",(O.ytwFantasyPlayerViewModelPlaying=function(){var h;return!((h=u())==null||!h.isPlayerPlaying)},O.ytwFantasyPlayerViewModelOnField=function(){var h;
return((h=u())==null?void 0:h.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},O.ytwFantasyPlayerViewModelRedZone=function(){var h;
return((h=u())==null?void 0:h.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},O));
var c=function(){var h,l,K,q=((h=_.vh().resolve(_.Y8(_.oF)))==null?0:h())?(l=f.data().playerLogoBackgroundColor)==null?void 0:l.darkTheme:(K=f.data().playerLogoBackgroundColor)==null?void 0:K.lightTheme;return q===void 0?"":_.ML(q)};
return _.a("ytw-fantasy-player-view-model",{class:O},_.a(_.Q,{cond:function(){return f.data().playerLogo},
then:function(h){return _.a("div",{class:"ytwFantasyPlayerViewModelLogo"},_.a("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.a(_.gR,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Qm({"background-color":c}),data:h,alt:R})),_.a("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.a(_.WM,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.a("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.a("div",{class:"ytwFantasyPlayerViewModelHeader"},_.a(_.YO,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var h;return(h=f.data())==null?void 0:h.playerNameText}}),_.a(_.YO,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var h;return(h=f.data())==null?void 0:h.playerDescriptionText}})),_.a("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.a(_.YO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=u())==null?void 0:h.gamePeriodText}}),_.a(_.YO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=f.data())==null?void 0:h.opponentTeamText}}),_.a(_.YO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=u())==null?void 0:h.gameStatusText}}),_.a(_.YO,{className:_.KL("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var h;return(h=u())==null?void 0:h.playerStatusText}})),_.a("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.a(_.YO,{text:function(){var h;
return(h=u())==null?void 0:h.playerStatsText}}))),_.a(_.YO,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var h;return(h=u())==null?void 0:h.fantasyScore}}))},"Id");var dzf=_.nf(function(f){return _.a("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.a(_.Q,{cond:function(){return f.data().players},
then:function(R){return _.a(_.y5,{data:R},{fantasyPlayerViewModel:yQk})}}))},"Jd");var N8G=_.nf(function(f){var R=_.Z(_.m8(function(){var c;return(c=f.data().selectedTabIdentifierKey)!=null?c:""})),u=R.next().value,O=R.next().value;
_.NW(function(){var c;(c=f.setSelectedTabSignal)==null||c.call(f,u)});
return _.a("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.a("div",{class:"ytTabbedViewModelTabGroup"},_.a(_.CDH,{shape:function(){var c=f.data(),h=[],l={tabs:h};if(!c.tabs)return l;c=_.Z(c.tabs);for(var K=c.next(),q={};!K.done;q={tabViewModel:void 0},K=c.next())if(q.tabViewModel=_.t(K.value,uuI),q.tabViewModel){var F=K=void 0;h.push({aTagConfig:{onclick:function(w){return function(){var m;O((m=w.tabViewModel.tabIdentifier)!=null?m:"")}}(q)},
identifier:q.tabViewModel.tabIdentifier,selected:u()===q.tabViewModel.tabIdentifier,title:(F=(K=q.tabViewModel.title)==null?void 0:K.content)!=null?F:""})}return l}})),_.a(_.y5,{data:function(){var c,h=_.Z((c=f.data().tabs)!=null?c:[]);
for(c=h.next();!c.done;c=h.next())if((c=_.t(c.value,uuI))&&c.tabIdentifier===u())return c.content}},{fantasyRosterViewModel:dzf}))},"Kd");_.ii(_.nf(function(f){var R=_.Z(x42()),u=R.next().value,O=R.next().value;return _.a("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.a(_.YO,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return f.data().title}}),_.a(_.Q,{cond:function(){return f.data().tabbedViewModel},
then:function(c){return _.a(_.y5,{data:c},{tabbedViewModel:function(h){return _.a(N8G,{data:h.data,setSelectedTabSignal:O})}})}}),_.a(_.Q,{cond:function(){var c,h=(c=_.t(f.data().tabbedViewModel,ONY))==null?void 0:c.tabs;
c=_.t(h==null?void 0:h[0],uuI);h=_.t(h==null?void 0:h[1],uuI);var l=c==null?void 0:c.tabIdentifier;if(u()===l){var K,q;if(!((K=_.t(c==null?void 0:c.content,uek))==null?0:(q=K.players)==null?0:q.length))return f.data().noUserTeamPlayersText}else{var F,w;if(!((F=_.t(h==null?void 0:h.content,uek))==null?0:(w=F.players)==null?0:w.length))return f.data().noOpponentTeamPlayersText}},
then:function(c){return _.a(_.YO,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:c})}}))},"Ld"),"ytw-fantasy-matchup-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){return _.a("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.a(_.YO,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return f.data().title}}),_.a(_.Q,{cond:function(){return f.data().matchupTeamPairs},
then:function(R){return _.a(_.EC,{each:R,keyBy:"INDEX"},function(u){return _.a("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.a(_.y5,{data:function(){return[u().firstTeam,u().secondTeam]}},{fantasyTeamViewModel:function(O){return _.a(W5k,{data:O.data,
compact:!0})}}))})}}))},"Md"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=function(){var c,h,l;return(l=(c=f.data().userLogoAccessibility)==null?void 0:(h=c.accessibilityData)==null?void 0:h.label)!=null?l:""},u=function(){var c,h,l;
return(l=(c=f.data().opponentLogoAccessibility)==null?void 0:(h=c.accessibilityData)==null?void 0:h.label)!=null?l:""},O=_.Ax(dNn,function(){return f.data().entityKey});
return _.a("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.a("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.a(_.Q,{cond:function(){return f.data().userLogo},
then:function(c){return _.a(_.gR,{className:"ytwFantasyWinProbabilityViewModelLogo",data:c,alt:R})}}),_.a("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.a(_.YO,{text:function(){return f.data().title}})),_.a(_.Q,{cond:function(){return f.data().opponentLogo},
then:function(c){return _.a(_.gR,{className:"ytwFantasyWinProbabilityViewModelLogo",data:c,alt:u})}})),_.a("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.a("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.a(_.YO,{text:function(){var c;
return(c=O())==null?void 0:c.userWinNumberLabel}})),_.a("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.a("div",{class:_.KL("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Qm({flex:function(){var c,h;return(h=(c=O())==null?void 0:c.userWinNumber)!=null?h:50}})}),_.a("div",{class:_.KL("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Qm({flex:function(){var c,h;return(h=(c=O())==null?void 0:c.opponentWinNumber)!=null?h:50}})})),_.a("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.a(_.YO,{text:function(){var c;
return(c=O())==null?void 0:c.opponentWinNumberLabel}}))))},"Nd"),"fantasy-win-probability-view-model",{props:{data:_.SG}});_.j6("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Tk=function(){var f=_.U.apply(this,arguments)||this;f.darkerPanels=_.E("web_watch_darker_panels");f.commentsHidePanelButton=!1;f.isWatchGrid=!1;f.continuationShowButton=!1;f.isSearch=!1;f.isConstrainedList=!1;f.isWatch=!1;f.eligibleToSwitchToGrid=!1;f.epRestyle=!1;f.isCarouselInFeed=!0;f.topSpacingZero=!1;f.continuationIsInitialLoad=!0;f.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");f.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");f.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};f.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return f};
_.y(Tk,_.U);_.X=Tk.prototype;_.X.updateLockupContainerTypes=function(f){if(this.eligibleToSwitchToGrid){var R;(R=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||R.forEach(function(u){u.containerType=f})}};
_.X.getItemsPath=function(){return"data.contents"};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.E("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.E("kevlar_low_priority_continuation")}}};
_.X.created=function(){this.JSC$14493_cachedViewportHeight=_.Tf("initialInnerHeight")||window.innerHeight};
_.X.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var f=_.b(this.hostElement).querySelector("ytd-comments-header-renderer");f&&(f.hidePanelButton=this.commentsHidePanelButton)}};
_.X.onRetrieveLocation=function(f,R){this.containsComments()&&(this.firstCommentsLoaded=R.hasComments=!0)};
_.X.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.X.onLoadReloadContinuation=function(f,R){var u=this;f.stopPropagation();this.isReloading=!0;_.ul(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(O){var c=_.vh().resolve(_.DM);O=R(O);c.postData(O).then(function(h){u.onReloadContinuationData(h)})}})};
_.X.onReloadContinuationData=function(f){if(f=this.get("response.continuationContents.itemSectionContinuation",f)||this.get("response.contents.itemSectionRenderer",f)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",f)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",f))this.set("data.contents",f.contents||f.results),f.header&&this.set("data.header",f.header),this.set("data.continuations",
f.continuations||[]);this.isReloading=!1};
_.X.computeContentsClass=function(f){return f?"reloading":""};
_.X.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.X.computeSectionIdentifier=function(f){return f==null?void 0:f.sectionIdentifier};
_.X.computeFitContainer=function(f){return(f==null?void 0:f.sectionIdentifier)==="youchat-item-section"};
_.X.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.E("kevlar_disable_comments_auto_load")};
_.X.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.X.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.X.computeHasDestinationShelfRenderer=function(f){var R,u;return!!(f==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:u.destinationShelfRenderer)};
_.X.computeHasSectionGroupViewModel=function(f){var R,u;return!!(f==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:u.sectionGroupViewModel)};
_.X.computeHasQrCodeRenderer=function(f){var R,u;return!!(f==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:u.qrCodeRenderer)};
_.X.computeStaticCommentsHeader=function(f){return f&&this.containsComments()};
_.X.computeEpRestyle=function(f){return _.E("web_ep_restyling")&&f&&this.containsComments()};
_.X.computeIsContinuationCommentSection=function(f){return(f==null?void 0:f.targetId)==="shorts-engagement-panel-comments-section"||(f==null?void 0:f.targetId)==="comments-section"||(f==null?void 0:f.targetId)==="engagement-panel-comments-section"};
_.X.computeSuppressPaddingDisclaimer=function(){var f,R,u,O;return!!((f=this.data)==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:(O=u.productListHeaderRenderer)==null?0:O.suppressPaddingDisclaimer)};
_.X.computeHeaderStyle=function(f){switch(f==null?void 0:f.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.X.dataChanged=function(){this.firstCommentsLoaded=!1};
_.X.observeDataContentsLength=function(){var f,R;((f=this.data)==null?0:(R=f.contents)==null?0:R.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.X.onYtDismissibleItemDismissedChange=function(f){this._setItemDismissed(f.type==="yt-dismissible-item-dismissed")};
_.X.triggerContinuations=function(){for(var f=_.b(this.hostElement).querySelector("#continuations").children,R=0;R<f.length;R++)f[R].trigger()};
_.X.triggerInitialContinuations=function(){for(var f=_.b(this.hostElement).querySelector("#continuations").children,R=0;R<f.length;R++)f[R].triggerIfNotPreviouslyTriggered()};
_.X.handleYtItemSectionContinuation=function(f,R){var u;R&&((u=this.data)==null?void 0:u.sectionIdentifier)!==R||(this.set("data.continuations",[f]),this.triggerContinuations())};
_.X.handleYtItemSectionReplace=function(f,R){var u;R&&((u=this.data)==null?void 0:u.sectionIdentifier)!==R||(this.set("data.contents",f),this.set("data.continuations",[]))};
_.X.computeUseHeightHack=function(f){return f&&!_.E("kevlar_disable_height_hack")};
_.X.computeTopSpacingZero=function(f){return f};
_.X.continuationShowButtonChanged=function(){var f=_.b(this.hostElement).querySelector("ytd-continuation-item-renderer");f&&(f.showButton=this.continuationShowButton)};
_.X.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("data-changed",this.data))};
_.Vy.Object.defineProperties(Tk.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.E("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!((f=this.data)==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:u.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O,c,h,l;return!!((f=this.data)==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:(O=u.shelfRenderer)==null?0:(c=O.content)==null?0:(h=c.gridRenderer)==null?0:(l=h.targetId)==null?0:l.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!((f=this.data)==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:u.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!((f=this.data)==null?0:(R=f.contents)==null?0:(u=R[0])==null?0:u.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.uZ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.E("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.E("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14493_cachedViewportHeight-130)/150)},
set:function(){}}});
Tk.prototype.dataChangedForBinding=Tk.prototype.dataChangedForBinding;Tk.prototype.continuationShowButtonChanged=Tk.prototype.continuationShowButtonChanged;Tk.prototype.onYtDismissibleItemDismissedChange=Tk.prototype.onYtDismissibleItemDismissedChange;Tk.prototype.observeDataContentsLength=Tk.prototype.observeDataContentsLength;Tk.prototype.dataChanged=Tk.prototype.dataChanged;Tk.prototype.onServiceRequestCompleted=Tk.prototype.onServiceRequestCompleted;Tk.prototype.onLoadReloadContinuation=Tk.prototype.onLoadReloadContinuation;
Tk.prototype.onRetrieveLocation=Tk.prototype.onRetrieveLocation;Tk.prototype.commentsHidePanelButtonChanged=Tk.prototype.commentsHidePanelButtonChanged;Tk.prototype.updateLockupContainerTypes=Tk.prototype.updateLockupContainerTypes;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Tk.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],Tk.prototype,"ytLazyListBehavior",void 0);_.B([_.z(_.UH.YtNextContinuationBehavior),_.S("design:type",Object)],Tk.prototype,"ytNextContinuationBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],Tk.prototype,"ytContinuationHandlerBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Tk.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Tk.prototype,"ytdReduxBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tk.prototype,"darkerPanels",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Tk.prototype,"engagementPanel",void 0);
_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"commentsHidePanelButton",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"isWatchGrid",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"continuationShowButton",void 0);_.B([_.I({computed:"computeIsContinuationCommentSection(data)"}),_.S("design:type",Boolean)],Tk.prototype,"continuationIsCommentsSection",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],Tk.prototype,"autoFill",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Tk.prototype,"continuationDisablePrescanVisibility",void 0);_.B([_.I(),_.S("design:type",Boolean)],Tk.prototype,"isReloading",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"isSearch",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"isConstrainedList",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"isWatch",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"eligibleToSwitchToGrid",void 0);
_.B([_.I({selector:_.PJ}),_.S("design:type",Object)],Tk.prototype,"isGridViewEnabled",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.S("design:type",Object)],Tk.prototype,"epRestyle",void 0);_.B([_.T("isWatch"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tk.prototype,"hideShortsShelfHeader",null);
_.B([_.T("isSearch","isWatch"),_.S("design:type",String),_.S("design:paramtypes",[])],Tk.prototype,"thumbnailWidth",null);_.B([_.T("isSearch","isWatch"),_.S("design:type",String),_.S("design:paramtypes",[])],Tk.prototype,"sizing",null);_.B([_.T("isWatch","isGridViewEnabled","data"),_.I({reflectToAttribute:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],Tk.prototype,"lockupContainerType",null);
_.B([_.qM("lockupContainerType","data"),_.S("design:type",Function),_.S("design:paramtypes",[Number]),_.S("design:returntype")],Tk.prototype,"updateLockupContainerTypes",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],Tk.prototype,"pageSubtype",void 0);_.B([_.I({computed:"computeContainerWidth()"}),_.S("design:type",Number)],Tk.prototype,"containerWidth",void 0);_.B([_.I(),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tk.prototype,"isPlaylist",null);
_.B([_.I(),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tk.prototype,"isClipList",null);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"isCarouselInFeed",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tk.prototype,"isPlaylistVideoContainer",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tk.prototype,"isSearchFrictionPage",null);
_.B([_.I({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.S("design:type",Boolean)],Tk.prototype,"useHeightHack",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.S("design:type",Object)],Tk.prototype,"topSpacingZero",void 0);_.B([_.I({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.S("design:type",Boolean)],Tk.prototype,"showButton",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Tk.prototype,"firstCommentsLoaded",void 0);_.B([_.I(),_.S("design:type",Object)],Tk.prototype,"continuationIsInitialLoad",void 0);_.B([_.I(),_.S("design:type",Boolean)],Tk.prototype,"isSearchDova",void 0);_.B([_.I({reflectToAttribute:!0,readOnly:!0}),_.S("design:type",Boolean)],Tk.prototype,"itemDismissed",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.S("design:type",String)],Tk.prototype,"sectionIdentifier",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.S("design:type",String)],Tk.prototype,"fitContainer",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.S("design:type",Boolean)],Tk.prototype,"hasDestinationShelfRenderer",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.S("design:type",Boolean)],Tk.prototype,"staticCommentsHeader",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tk.prototype,"enableSqueezebackPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tk.prototype,"enableAnchoredPanel",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.S("design:type",Boolean)],Tk.prototype,"hasSectionGroupViewModel",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.S("design:type",Boolean)],Tk.prototype,"hasQrCodeRenderer",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.S("design:type",Boolean)],Tk.prototype,"suppressDisclaimerSeparator",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.S("design:type",String)],Tk.prototype,"headerStyle",void 0);
_.B([_.T("isSearch"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tk.prototype,"lockupExperiments",null);_.B([_.T("isSearch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tk.prototype,"typographyBump",null);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],Tk.prototype,"header",void 0);_.B([_.qM("commentsHidePanelButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tk.prototype,"commentsHidePanelButtonChanged",null);
_.B([_.Kf("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Tk.prototype,"onRetrieveLocation",null);_.B([_.Kf("yt-load-reload-continuation"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Function]),_.S("design:returntype")],Tk.prototype,"onLoadReloadContinuation",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tk.prototype,"onServiceRequestCompleted",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tk.prototype,"dataChanged",null);_.B([_.QR("data.contents.length"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tk.prototype,"observeDataContentsLength",null);
_.B([_.Kf("yt-dismissible-item-dismissed"),_.Kf("yt-dismissible-item-undismissed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Tk.prototype,"onYtDismissibleItemDismissedChange",null);_.B([_.qM("continuationShowButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tk.prototype,"continuationShowButtonChanged",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tk.prototype,"dataChangedForBinding",null);Tk=_.B([_.e({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Tk);
_.G(Tk,"ytd-item-section-renderer",function(){if(nBk!==void 0)return nBk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return nBk=f},{mode:1});var L5l;var nql=_.S8(_.Fa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var S47={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var bbG={},sdn=(bbG[0]={title:_.fg(_.Fa("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fg(_.Fa("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:il("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},bbG[1]={title:_.fg(_.Fa("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:il("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},bbG);_.j6("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var H3=function(){var f=_.U.apply(this,arguments)||this;f.allVideosCount=0;f.allPlaylistCount=0;f.shouldRenderDownloadsBanner=!1;f.hasOptedIntoSmartDownloads=!1;f.areAllSmartDownloadsDeleted=!1;f.smartDownloadsCompleted=!1;return f};
_.y(H3,_.U);H3.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
H3.prototype.attached=function(){this.downloadsToRenderChanged()};
H3.prototype.detached=function(){this.set("renderableData",{})};
H3.prototype.downloadsToRenderChanged=function(){var f=_.sP().getState().entities,R=_.Nq(f),u=_.E("kevlar_playlist_dl_page_killswitch")?ll7(f):_.Lg(f),O=_.ONt(f),c=_.EP(R);f=_.b$(f);this.set("renderableData",Y47(u,R,O,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,c,f))};
H3.prototype.downloadsToRenderChanged=H3.prototype.downloadsToRenderChanged;_.B([_.z(_.zH),_.S("design:type",Object)],H3.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],H3.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],H3.prototype,"renderableData",void 0);_.B([_.I({selector:_.Cxl}),_.S("design:type",Object)],H3.prototype,"allVideosCount",void 0);_.B([_.I({selector:GVX}),_.S("design:type",Object)],H3.prototype,"allPlaylistCount",void 0);_.B([_.I({selector:_.jYD}),_.S("design:type",Object)],H3.prototype,"shouldRenderDownloadsBanner",void 0);_.B([_.I({selector:_.DiB}),_.S("design:type",Object)],H3.prototype,"hasOptedIntoSmartDownloads",void 0);
_.B([_.I({selector:_.Jt2}),_.S("design:type",Object)],H3.prototype,"areAllSmartDownloadsDeleted",void 0);_.B([_.I({selector:zOe}),_.S("design:type",Object)],H3.prototype,"smartDownloadsCompleted",void 0);_.B([_.QR("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],H3.prototype,"downloadsToRenderChanged",null);
H3=_.B([_.e({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],H3);
_.G(H3,"ytd-offline-item-section-renderer",function(){if(L5l!==void 0)return L5l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return L5l=f},
{mode:1});var pAC;var jQI;var IP=function(){return _.U.apply(this,arguments)||this};
_.y(IP,_.U);
IP.prototype.onDataChanged=function(){if(this.JSC$14519_lastData){var f=this.getFilterClass(this.JSC$14519_lastData.status);f&&this.hostElement.classList.remove(f)}var R;(f=this.getFilterClass((R=this.data)==null?void 0:R.status))&&this.hostElement.classList.add(f);f==="selected"?_.b(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.b(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");f==="disabled"?_.b(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.b(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14519_lastData=this.data};
IP.prototype.getFilterClass=function(f){switch(f){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
IP.prototype.onDataChanged=IP.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IP.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IP.prototype,"onDataChanged",null);IP=_.B([_.e({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],IP);
_.G(IP,"ytd-search-filter-renderer",function(){if(jQI!==void 0)return jQI;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return jQI=f},{mode:_.c7("kevlar_poly_si_batch_j075")?1:2});var Mr=function(){return _.U.apply(this,arguments)||this};
_.y(Mr,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Mr.prototype,"data",void 0);Mr=_.B([_.e({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Mr);
_.G(Mr,"ytd-search-filter-group-renderer",function(){if(pAC!==void 0)return pAC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pAC=f},{mode:_.c7("kevlar_poly_si_batch_j075")?1:2});var Dzk;var P3=function(){return _.U.apply(this,arguments)||this};
_.y(P3,_.U);P3.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Z$());this.isCollapsed=!this.isCollapsed};
P3.prototype.navigateToAboutTheseResultsPage=function(){var f=mo("https://www.youtube.com/howyoutubeworks/product-features/search/");f?_.zd(window,f,"_blank"):_.IS(Error("Ph"))};
P3.prototype.dataChanged=function(){this.isCollapsed=!0};
P3.prototype.computeShowBottomBorder=function(){var f,R,u;return!!((f=this.data)==null?0:(R=f.button)==null?0:R.toggleButtonRenderer)||!((u=this.data)==null||!u.aboutTheseResultsButton)};
P3.prototype.dataChanged=P3.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],P3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.S("design:type",Boolean)],P3.prototype,"showBottomBorder",void 0);_.B([_.I(),_.S("design:type",Boolean)],P3.prototype,"renderCollapsibleMenu",void 0);
_.B([_.I(),_.S("design:type",Boolean)],P3.prototype,"isCollapsed",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],P3.prototype,"dataChanged",null);P3=_.B([_.e({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],P3);
_.G(P3,"ytd-search-sub-menu-renderer",function(){if(Dzk!==void 0)return Dzk;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Dzk=f},{mode:1});var JQk;var zPY=new _.Vi("SECTION_LIST_RENDERER_TOKEN");var T8i;var UA=function(){return _.U.apply(this,arguments)||this};
_.y(UA,_.U);UA.prototype.computeStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],UA.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],UA.prototype,"headerStyle",void 0);UA=_.B([_.e({is:"ytd-text-header-renderer",disableElementRegistration:!0})],UA);
_.G(UA,"ytd-text-header-renderer",function(){if(T8i!==void 0)return T8i;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return T8i=f},{mode:1});var Hbl;var eL=function(){return _.U.apply(this,arguments)||this};
_.y(eL,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],eL.prototype,"data",void 0);eL=_.B([_.e({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],eL);
_.G(eL,"ytd-minor-moment-header-renderer",function(){if(Hbl!==void 0)return Hbl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Hbl=f},{mode:1});var Ihl;var Gk=function(){return _.U.apply(this,arguments)||this};
_.y(Gk,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gk.prototype,"data",void 0);Gk=_.B([_.e({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Gk);
_.G(Gk,"ytd-minor-moment-setting-alert-renderer",function(){if(Ihl!==void 0)return Ihl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Ihl=f},{mode:1});var MeY;var PDt;var B3=function(){var f=_.U.apply(this,arguments)||this;f.booleanSettingById=!1;f.smartDownloadsEnabledVE=_.dx(128287);f.smartDownloadsDisabledVE=_.dx(128286);f.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return f};
_.y(B3,_.U);_.X=B3.prototype;_.X.attachSmartDownloadsSettingVes=function(){var f;this.activeVeForLogging||((f=this.data)==null?void 0:f.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.c1(_.wR(),this.smartDownloadsEnabledVE),_.c1(_.wR(),this.smartDownloadsDisabledVE))};
_.X.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.ul(this.hostElement,"yt-settings-switch-ready")};
_.X.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.X.onSwitchChange=function(f){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(f=_.gY(f).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.E("kevlar_settings_switch_resolve_command_killswitch")?_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(f)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.X.handleUpdateSettingsSwitch=function(f){(f=_.t(f,yMl))&&this.data&&this.data.id===f.id&&this.set("data.enabled",!!f.enabled)};
_.X.onToggleSettingsSwitch=function(f,R){this.data&&this.data.id===f&&this.set("data.enabled",R!=null?R:!this.data.enabled)};
_.X.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.sd.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.X.maybeLogSmartDownloadsSettingVisibility=function(){var f=_.z4(),R;f&&((R=this.data)==null?void 0:R.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.op(f,[this.smartDownloadsEnabledVE]),_.xE(f,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.op(f,[this.smartDownloadsDisabledVE]),_.xE(f,[this.smartDownloadsEnabledVE])))};
_.X.maybeLogSmartDownloadsSettingClick=function(){var f;((f=this.data)==null?void 0:f.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.hi(_.wR(),this.activeVeForLogging)};
_.X.updateDataEnabledFromBinding=function(f){this.set("data.enabled",f.detail.value)};
_.Vy.Object.defineProperties(B3.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!f&&(f=this.ytRendererBehavior.getSimpleString(this.data.title));return f}}});
B3.prototype.dataChanged=B3.prototype.dataChanged;_.B([_.z(_.zH),_.S("design:type",Object)],B3.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],B3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],B3.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],B3.prototype,"data",void 0);_.B([_.I({selector:function(f,R){if(Object.keys(f==null?void 0:f.entities).length)switch(R){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return k9n(f.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.S("design:type",Object)],B3.prototype,"booleanSettingById",void 0);_.B([_.I(),_.S("design:type",_.Dv)],B3.prototype,"activeVeForLogging",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],B3.prototype,"toggleAriaLabel",null);_.B([_.QR("data"),_.QR("booleanSettingById"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],B3.prototype,"dataChanged",null);
B3=_.B([_.e({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],B3);
_.G(B3,"ytd-settings-switch-renderer",function(){if(PDt!==void 0)return PDt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return PDt=f},{mode:1});var oP=function(){return _.U.apply(this,arguments)||this};
_.y(oP,_.U);oP.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}}}}};
_.Vy.Object.defineProperties(oP.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var f=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(f+=" remove-left-margin");this.data.extraBottomSpace&&(f+=" extra-bottom-space");return f}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oP.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],oP.prototype,"contentsClassName",null);oP=_.B([_.e({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],oP);
_.G(oP,"ytd-minor-moment-setting-section-renderer",function(){if(MeY!==void 0)return MeY;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return MeY=f},{mode:1});var Uzf;var xe=function(){return _.U.apply(this,arguments)||this};
_.y(xe,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],xe.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xe.prototype,"data",void 0);xe=_.B([_.e({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],xe);
_.G(xe,"ytd-empty-product-details-renderer",function(){if(Uzf!==void 0)return Uzf;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Uzf=f},{mode:1});var ePt;var GiF;var SL=function(){var f=_.U.apply(this,arguments)||this;f.expanded=!0;return f};
_.y(SL,_.U);SL.prototype.getBadgeRowClass=function(f,R,u){for(var O=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),c=O.next();!c.done;c=O.next())c.value.onShow();f=f.selected;return u?f!==-1?f===R?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(f!==void 0?f:0)===R?"badge-line":"badge-hidden"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SL.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],SL.prototype,"expanded",void 0);SL=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],SL);
_.G(SL,"ytd-sponsorships-loyalty-badges-renderer",function(){if(GiF!==void 0)return GiF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GiF=f},{mode:1});var B8t;var $e=function(){var f=_.U.apply(this,arguments)||this;f.expanded=!0;return f};
_.y($e,_.U);$e.prototype.getContainerClasses=function(f,R){f=f?"expanded":"collapsed";R&&(f+=" item");return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$e.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],$e.prototype,"expanded",void 0);$e=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],$e);
_.G($e,"ytd-sponsorships-perk-renderer",function(){if(B8t!==void 0)return B8t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return B8t=f},{mode:1});var o4l;var gV=function(){var f=_.U.apply(this,arguments)||this;f.expanded=!0;return f};
_.y(gV,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gV.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],gV.prototype,"expanded",void 0);gV=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],gV);
_.G(gV,"ytd-sponsorships-perks-renderer",function(){if(o4l!==void 0)return o4l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return o4l=f},{mode:1});var sA=function(){var f=_.U.apply(this,arguments)||this;f.isCollapsed=!1;return f};
_.y(sA,_.U);sA.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
sA.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
sA.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var f;this.expandCollapseButton=_.t((f=this.data)==null?void 0:f.expandButton,_.z9)}else{var R;this.expandCollapseButton=_.t((R=this.data)==null?void 0:R.collapseButton,_.z9)}};
sA.prototype.updateExpandCollapseButton=sA.prototype.updateExpandCollapseButton;sA.prototype.onDataChanged=sA.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sA.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sA.prototype,"isCollapsed",void 0);_.B([_.I(),_.S("design:type",Object)],sA.prototype,"expandCollapseButton",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sA.prototype,"onDataChanged",null);_.B([_.QR("data","isCollapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sA.prototype,"updateExpandCollapseButton",null);sA=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],sA);
_.G(sA,"ytd-sponsorships-expandable-perks-renderer",function(){if(ePt!==void 0)return ePt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ePt=f},{mode:1});var xzH;var nM=function(){return _.U.apply(this,arguments)||this};
_.y(nM,_.U);nM.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],nM.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nM.prototype,"data",void 0);nM=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],nM);
_.G(nM,"ytd-sponsorships-actionable-message-renderer",function(){if(xzH!==void 0)return xzH;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return xzH=f},{mode:1});var SjY;var Vn=function(){return _.U.apply(this,arguments)||this};
_.y(Vn,_.U);_.X=Vn.prototype;_.X.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.X.getExpansionIcon=function(f){return f?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.X.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.X.computeMessageContainerStyle=function(f){var R=f.expandableItems?" style-clickable":"";return f.messageContainerStyle?f.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+R:"style-unspecified"+R};
_.X.isSinglePerk=function(f){return!!f.messageContainerStyle&&(f.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||f.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.X.onExpandedChanged=function(){var f=this;if(this.expanded)for(var R=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),u=R.next();!u.done;u=R.next())u.value.onShow();_.su(this,function(){_.ul(f.hostElement,"yt-refit")})};
_.X.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Vn.prototype.onDataChanged=Vn.prototype.onDataChanged;Vn.prototype.onExpandedChanged=Vn.prototype.onExpandedChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Vn.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Vn.prototype,"expanded",void 0);
_.B([_.qM("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vn.prototype,"onExpandedChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vn.prototype,"onDataChanged",null);Vn=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Vn);
_.G(Vn,"ytd-sponsorships-expandable-message-renderer",function(){if(SjY!==void 0)return SjY;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return SjY=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var $zC;var Ye=function(){return _.U.apply(this,arguments)||this};
_.y(Ye,_.U);Ye.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"}}}}};
Ye.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.t(this.data.endButton,_.z9).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Ye.prototype.onDataChanged=Ye.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ye.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ye.prototype,"onDataChanged",null);
Ye=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Ye);
_.G(Ye,"ytd-sponsorships-heading-renderer",function(){if($zC!==void 0)return $zC;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $zC=f},{mode:1});var g4A;var v3=function(){return _.U.apply(this,arguments)||this};
_.y(v3,_.U);_.B([_.I(),_.S("design:type",Object)],v3.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);v3=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],v3);
_.G(v3,"ytd-sponsorships-links-renderer",function(){if(g4A!==void 0)return g4A;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return g4A=f},{mode:1});var sQF;var ip=function(){return _.U.apply(this,arguments)||this};
_.y(ip,_.U);_.X=ip.prototype;_.X.onDataChanged=function(){if(this.data&&this.data.expandableItems){var f;(f=_.b(this.hostElement).querySelector("tp-yt-paper-button"))==null||f.setAttribute("role","button")}else{var R;(R=_.b(this.hostElement).querySelector("tp-yt-paper-button"))==null||R.removeAttribute("role")}};
_.X.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.X.getExpansionIcon=function(f){return f?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.X.getTileClasses=function(f){return f?"tile expandable-tile":"tile"};
_.X.getButtonDisabled=function(f){return f?void 0:""};
ip.prototype.onDataChanged=ip.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ip.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],ip.prototype,"expanded",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ip.prototype,"onDataChanged",null);
ip=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ip);
_.G(ip,"ytd-sponsorships-list-tile-renderer",function(){if(sQF!==void 0)return sQF;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return sQF=f},{mode:1});var n4C;var VeE;var rV=function(){return _.U.apply(this,arguments)||this};
_.y(rV,_.U);rV.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rV.prototype,"data",void 0);rV=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],rV);
_.G(rV,"ytd-sponsorships-promotion-renderer",function(){if(VeE!==void 0)return VeE;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return VeE=f},{mode:1});var YjG;var f1=function(){return _.U.apply(this,arguments)||this};
_.y(f1,_.U);f1.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],f1.prototype,"data",void 0);f1=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],f1);
_.G(f1,"ytd-sponsorships-purchase-option-renderer",function(){if(YjG!==void 0)return YjG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return YjG=f},{mode:1});var v4f;var ibY;var Ru=function(){return _.U.apply(this,arguments)||this};
_.y(Ru,_.U);_.B([_.I(),_.S("design:type",Object)],Ru.prototype,"data",void 0);Ru=_.B([_.e({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Ru);
_.G(Ru,"ytd-ypc-offer-promo-renderer",function(){if(ibY!==void 0)return ibY;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ibY=f},{mode:1});var uI=function(){return _.U.apply(this,arguments)||this};
_.y(uI,_.U);_.X=uI.prototype;
_.X.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"}}}}};
_.X.expansionCTA=function(f,R){return f&&(R?f.collapseCallToAction:f.expansionCallToAction)};
_.X.getExpansionIcon=function(f){return f?"arrow_drop_up":"arrow_drop_down"};
_.X.expansionCallToActionTap=function(){var f=this;this.expanded=!this.expanded;_.su(this,function(){_.ul(f.hostElement,"yt-refit")})};
_.X.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var f,R=(f=this.data)==null?void 0:f.onVisible;R&&this.ytComponentBehavior.resolveCommand(R)};
_.X.computeDisplayTitle=function(f){return!(!f||this.titledisplaystatus!=="show")};
_.X.computeDisplaySeparator=function(){return!1};
_.X.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
uI.prototype.onDataChanged=uI.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],uI.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],uI.prototype,"data",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],uI.prototype,"expanded",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],uI.prototype,"purchaseButtonClicked",void 0);_.B([_.I({reflectToAttribute:!0,value:"show"}),_.S("design:type",String)],uI.prototype,"titledisplaystatus",void 0);_.B([_.I({computed:"computeDisplayTitle(data.title)"}),_.S("design:type",Boolean)],uI.prototype,"displayTitle",void 0);
_.B([_.I({computed:"computeDisplaySeparator(data)"}),_.S("design:type",Boolean)],uI.prototype,"displaySeparator",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uI.prototype,"onDataChanged",null);uI=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],uI);
_.G(uI,"ytd-sponsorships-tier-renderer",function(){if(v4f!==void 0)return v4f;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return v4f=f},{mode:2});var O6=function(){return _.U.apply(this,arguments)||this};
_.y(O6,_.U);
O6.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],O6.prototype,"data",void 0);O6=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],O6);
_.G(O6,"ytd-sponsorships-management-renderer",function(){if(n4C!==void 0)return n4C;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return n4C=f},{mode:1});var rQY;var cw=function(){return _.U.apply(this,arguments)||this};
_.y(cw,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cw.prototype,"data",void 0);cw=_.B([_.e({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],cw);
_.G(cw,"ytd-open-in-native-app-view-model",function(){if(rQY!==void 0)return rQY;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return rQY=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var ftG;var R6f;var uEE=_.Sg(["top-"]),Ook=_.Sg(["bottom-"]),cbG=_.Sg(["left-"]),XDt=_.Sg(["right-"]),h6f={},Zoi=function(f,R,u){f.removeAttribute("top-"+u);f.removeAttribute("bottom-"+u);f.removeAttribute("left-"+u);f.removeAttribute("right-"+u);R&&(R.top&&_.Bz([_.rn(uEE)],f,"top-"+u,R.top),R.bottom&&_.Bz([_.rn(Ook)],f,"bottom-"+u,R.bottom),R.left&&_.Bz([_.rn(cbG)],f,"left-"+u,R.left),R.right&&_.Bz([_.rn(XDt)],f,"right-"+u,R.right))};
h6f.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(f){var R,u=_.b((R=this.hostElement)!=null?R:this),O;R=this.cardItemBoxBehaviorMarginTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(O=this.hostElement)!=null?O:this;Zoi(R,f,"margin")},
cardItemContainerPaddingChanged_:function(f){var R,u=_.b((R=this.hostElement)!=null?R:this),O;R=this.cardItemBoxBehaviorPaddingTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(O=this.hostElement)!=null?O:this;Zoi(R,f,"padding")}}];var Xb={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 ltI;var kci;var hB=function(){return _.U.apply(this,arguments)||this};
_.y(hB,_.U);hB.prototype.textColorChanged_=function(){this.hostElement.style.color=Xb[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
hB.prototype.textColorChanged_=hB.prototype.textColorChanged_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.B([_.z(h6f.YtCardItemBoxBehavior),_.S("design:type",Object)],hB.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hB.prototype,"data",void 0);_.B([_.qM("data.textColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hB.prototype,"textColorChanged_",null);
hB=_.B([_.DO({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],hB);
_.G(hB,"yt-card-item-text-renderer",function(){if(kci===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ltI===void 0&&(ltI=document.createElement("template"));var O=ltI;u.call(R,O.content.cloneNode(!0),f.content.firstChild);kci=f}f=kci;return f},{mode:2});var KRk;var q3G;var Zc=function(){return _.U.apply(this,arguments)||this};
_.y(Zc,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zc.prototype,"data",void 0);Zc=_.B([_.DO({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Zc);
_.G(Zc,"yt-card-item-badge-renderer",function(){if(q3G===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;KRk===void 0&&(KRk=document.createElement("template"));var O=KRk;u.call(R,O.content.cloneNode(!0),f.content.firstChild);q3G=f}f=q3G;return f},{mode:2});var Abl;var atC;var lI=function(){return _.U.apply(this,arguments)||this};
_.y(lI,_.U);lI.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lI.prototype,"data",void 0);lI=_.B([_.DO({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],lI);
_.G(lI,"yt-card-item-text-collection-renderer",function(){if(atC===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;Abl===void 0&&(Abl=document.createElement("template"));var O=Abl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);atC=f}f=atC;return f},{mode:2});var FRt;var wDt;var kJ=function(){return _.U.apply(this,arguments)||this};
_.y(kJ,_.U);kJ.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]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kJ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Number)],kJ.prototype,"iconSize",void 0);kJ=_.B([_.DO({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],kJ);
_.G(kJ,"yt-card-item-text-with-button-renderer",function(){if(wDt===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;FRt===void 0&&(FRt=document.createElement("template"));var O=FRt;u.call(R,O.content.cloneNode(!0),f.content.firstChild);wDt=f}f=wDt;return f},{mode:2});var K1=function(){return _.U.apply(this,arguments)||this};
_.y(K1,_.U);K1.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],K1.prototype,"data",void 0);K1=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],K1);
_.G(K1,"ytd-commerce-cart-summary-line-item-renderer",function(){if(R6f!==void 0)return R6f;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return R6f=f},{mode:1});_.j6("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var qN=function(){var f=_.U.apply(this,arguments)||this;f.hidden=!1;return f};
_.y(qN,_.U);_.X=qN.prototype;_.X.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"}}}}};
_.X.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.X.updateSummary=function(){var f=this.commerceCartCheckoutButtonEntity,R;if(((R=this.data)==null?0:R.cartButton)&&f.checkoutSummaryText){var u,O=HB((u=this.data)==null?void 0:u.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",Im(f.checkoutSummaryText));if(f.checkoutDetailText){var c;u=HB((c=this.data)==null?void 0:c.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",Im(f.checkoutDetailText))}if(f.checkoutAdditionalMetadataText){var h;
c=HB((h=this.data)==null?void 0:h.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",Im(f.checkoutAdditionalMetadataText))}}else f.estimatedTotalPrice&&(h=HB((O=this.data)==null?void 0:O.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",Im(f.estimatedTotalPrice)))};
_.X.updateIsHidden=function(){var f,R=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isHidden;R!==void 0&&(this.hidden=R)};
_.X.updateCheckoutButton=function(){var f,R=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isDisabled;R!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",R);var u;f=(u=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:u.innertubeCommand;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",f);var O;u=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.checkoutButtonText;u!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:u})};
qN.prototype.entityChanged=qN.prototype.entityChanged;_.B([_.z(_.zH),_.S("design:type",Object)],qN.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],qN.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],qN.prototype,"fullWidth",void 0);_.B([_.I(),_.S("design:type",Object)],qN.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],qN.prototype,"compact",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],qN.prototype,"hidden",void 0);
_.B([_.I({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bD7}),_.S("design:type",Object)],qN.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.qM("commerceCartCheckoutButtonEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qN.prototype,"entityChanged",null);qN=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],qN);
_.G(qN,"ytd-commerce-cart-checkout-button-renderer",function(){if(ftG!==void 0)return ftG;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ftG=f},{mode:2});var mni;_.QqF={};
_.QqF.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",_.ks(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ks(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(f){!this.tappableItemBehaviorTapEnabled||f.keyCode!==13&&f.keyCode!==32||f.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var f=this.data.onTap;f.ypcGetCartEndpoint?(_.hH(this.hostElement,[f]),this.tappableItemBehaviorTapEnabled=!1):f.ypcOffersEndpoint?_.hH(this.hostElement,[f]):_.ZW(this.hostElement,[f],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(f){this.tappableItemBehaviorTapEnabled=!!f},
tappableItemBehaviorOnTapEnabledChanged_:function(){var f=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(f.setAttribute("tabIndex",0),f.setAttribute("role","button")):(f.removeAttribute("tabIndex"),f.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(f){f.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var WRf;var EgI;var AB=function(){return _.U.apply(this,arguments)||this};
_.y(AB,_.U);AB.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.DB("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.DB("sharingToggleButtonAndDefaultButton")}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AB.prototype,"data",void 0);AB=_.B([_.DO({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],AB);
_.G(AB,"yt-card-item-actions-renderer",function(){if(EgI===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;WRf===void 0&&(WRf=document.createElement("template"));var O=WRf;u.call(R,O.content.cloneNode(!0),f.content.firstChild);EgI=f}f=EgI;return f},{mode:2});var tBH;var CGI;var ybE;var dnl;var N6E;var LRC;var au=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return f};
_.y(au,_.U);au.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
au.prototype.handleDarkModeToggledAction_=function(f){this.isDarkTheme_=f};
au.prototype.computeThemeImage_=function(f,R){if(!f||!f.imageLight)return!1;this.isCircular_=f.isCircular;f.imageWidth&&(this.hostElement.style.width=f.imageWidth+"px");f.imageHeight&&(this.hostElement.style.height=f.imageHeight+"px");f.borderWidth&&(this.image.style.borderWidth=f.borderWidth+"px",this.image.style.borderStyle="solid");f.borderColor&&(this.image.style.borderColor=_.ML(f.borderColor));return R&&f.imageDark?f.imageDark:f.imageLight};
au.prototype.computeThemeIcon_=function(f){var R,u;if(!(f==null?0:(R=f.themedIcon)==null?0:(u=R.icon)==null?0:u.iconType))return!1;this.icon.style.color=Xb[f.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(f.imageWidth||18)+"px";this.icon.style.height=(f.imageHeight||18)+"px";return _.li(f.themedIcon.icon.iconType)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(h6f.YtCardItemBoxBehavior),_.S("design:type",Object)],au.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],au.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],au.prototype,"data",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],au.prototype,"fit",void 0);_.B([_.I(),_.S("design:type",Boolean)],au.prototype,"isDarkTheme_",void 0);_.B([_.I({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.S("design:type",Object)],au.prototype,"themeImage_",void 0);_.B([_.I({computed:"computeThemeIcon_(data)"}),_.S("design:type",Object)],au.prototype,"themeIcon_",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Object)],au.prototype,"isCircular_",void 0);
_.B([_.a4("#image"),_.S("design:type",Object)],au.prototype,"image",void 0);_.B([_.a4("#icon"),_.S("design:type",Object)],au.prototype,"icon",void 0);au=_.B([_.DO({is:"yt-themed-image-renderer",disableElementRegistration:!0})],au);
_.G(au,"yt-themed-image-renderer",function(){if(LRC===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;N6E===void 0&&(N6E=document.createElement("template"));var O=N6E;u.call(R,O.content.cloneNode(!0),f.content.firstChild);LRC=f}f=LRC;return f},{mode:2});var Fb=function(){return _.U.apply(this,arguments)||this};
_.y(Fb,_.U);Fb.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"}}}}};
Fb.prototype.computeImagePlacement_=function(f){return f||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Fb.prototype,"data",void 0);_.B([_.I({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.S("design:type",String)],Fb.prototype,"imagePlacement",void 0);
Fb=_.B([_.DO({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Fb);
_.G(Fb,"yt-card-item-text-with-image-renderer",function(){if(dnl===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ybE===void 0&&(ybE=document.createElement("template"));var O=ybE;u.call(R,O.content.cloneNode(!0),f.content.firstChild);dnl=f}f=dnl;return f},{mode:2});var wg=function(){return _.U.apply(this,arguments)||this};
_.y(wg,_.U);wg.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"}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wg.prototype,"data",void 0);wg=_.B([_.DO({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],wg);
_.G(wg,"yt-card-item-error-renderer",function(){if(CGI===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;tBH===void 0&&(tBH=document.createElement("template"));var O=tBH;u.call(R,O.content.cloneNode(!0),f.content.firstChild);CGI=f}f=CGI;return f},{mode:2});var boi;var pDA;_.j6("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var me=function(){return _.U.apply(this,arguments)||this};
_.y(me,_.U);_.X=me.prototype;
_.X.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"}}}}};
_.X.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.X.backgroundColorChanged_=function(){var f,R=(f=this.data)==null?void 0:f.backgroundColor;f=Xb[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.b(this.hostElement).querySelector("#main-content").style.backgroundColor=f};
_.X.headerPromoBackgroundColorChanged_=function(){var f,R=(f=this.data)==null?void 0:f.headerPromoBackgroundColor;f=Xb[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.b(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=f};
_.X.errorRendererVisibilityChanged_=function(){var f=this.isExpanded_,R;this.isErrorRendererVisible_=!((R=this.data)==null||!R.errorRenderer)&&!f};
_.X.onYtToggleButton_=function(f,R){this.isExpanded_=R.toggled};
me.prototype.onYtToggleButton_=me.prototype.onYtToggleButton_;me.prototype.errorRendererVisibilityChanged_=me.prototype.errorRendererVisibilityChanged_;me.prototype.headerPromoBackgroundColorChanged_=me.prototype.headerPromoBackgroundColorChanged_;me.prototype.backgroundColorChanged_=me.prototype.backgroundColorChanged_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(h6f.YtCardItemBoxBehavior),_.S("design:type",Object)],me.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.z(_.QqF.YtTappableItemBehavior),_.S("design:type",Object)],me.prototype,"ytTappableItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],me.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],me.prototype,"isExpanded_",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],me.prototype,"isErrorRendererVisible_",void 0);_.B([_.qM("data.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],me.prototype,"backgroundColorChanged_",null);_.B([_.qM("data.headerPromoBackgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],me.prototype,"headerPromoBackgroundColorChanged_",null);
_.B([_.qM("data.errorRenderer","isExpanded_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],me.prototype,"errorRendererVisibilityChanged_",null);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Object]),_.S("design:returntype")],me.prototype,"onYtToggleButton_",null);me=_.B([_.DO({is:"yt-card-item-renderer",disableElementRegistration:!0})],me);
_.G(me,"yt-card-item-renderer",function(){if(pDA===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;boi===void 0&&(boi=document.createElement("template"));var O=boi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);pDA=f}f=pDA;return f},{mode:2});_.j6("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Q6=function(){var f=_.U.apply(this,arguments)||this;f.hidden=!1;return f};
_.y(Q6,_.U);_.X=Q6.prototype;_.X.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.X.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.X.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var f,R=(f=this.commerceCartHeaderEntity)==null?void 0:f.isHidden;R!==void 0&&(this.hidden=R)}};
_.X.updateTitle=function(){var f=this.commerceCartHeaderEntity.isDisabled,R,u,O=(u=_.t((R=this.data)==null?void 0:R.item,JtA))==null?void 0:u.headingRenderer;O&&(R=HB(O,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+R+".0.cardItemTextRenderer.textColor",f?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.X.updateSummaryText=function(){var f=this.commerceCartHeaderEntity;if(this.compact){var R,u,O=(u=_.t((R=this.data)==null?void 0:R.item,JtA))==null?void 0:u.headingRenderer;O&&(R=HB(O,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+R+".1.cardItemTextRenderer.text",f.shortHeaderSummaryText?Im(f.shortHeaderSummaryText):f.headerSummaryText?Im(f.headerSummaryText):""))}else{var c;if(R=(c=_.t((O=this.data)==null?void 0:O.item,JtA))==null?void 0:c.additionalInfoRenderer)R=HB(R,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+R+".text",f.headerSummaryText?Im(f.headerSummaryText):"")}};
_.X.updateCheckoutButton=function(){var f=this.commerceCartHeaderEntity,R,u,O=(u=_.t((R=this.data)==null?void 0:R.item,JtA))==null?void 0:u.additionalInfoRenderer;R=HB(O,"buttonRenderer");var c;u=(c=this.commerceCartHeaderEntity)==null?void 0:c.isButtonDisabled;var h;c=(h=this.commerceCartHeaderEntity)==null?void 0:h.isButtonHidden;u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+R+".buttonRenderer.isDisabled",u);c!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
c);var l;f=(l=f.checkoutButtonCommand)==null?void 0:l.innertubeCommand;f!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+R+".buttonRenderer.command",f)};
Q6.prototype.entityChanged=Q6.prototype.entityChanged;_.B([_.z(_.zH),_.S("design:type",Object)],Q6.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Q6.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Q6.prototype,"compact",void 0);_.B([_.I({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(f,R){return _.kZ(f.entities,"commerceCartHeaderEntity",R)}}),
_.S("design:type",Object)],Q6.prototype,"commerceCartHeaderEntity",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Q6.prototype,"hidden",void 0);_.B([_.qM("commerceCartHeaderEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Q6.prototype,"entityChanged",null);Q6=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Q6);
_.G(Q6,"ytd-commerce-cart-header-renderer",function(){if(mni!==void 0)return mni;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return mni=f},{mode:1});var jqG;var DnF=_.mC(function(f,R){var u;return(u=f.onChangeCallback)==null?void 0:u.call(f,R)},1E3),Jbf=_.nf(function(f){var R=f.data;
var u=f.iconMinus;f=f.iconPlus;var O=function(){return!!R().disabled},c=_.Z(_.qK(0,void 0,"r56zNb")),h=c.next().value,l=c.next().value;
c={};c=_.KL("yt-spec-quantity-incrementer-shape__icon",(c["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return O()||h()===(R().onRemoveCommand?0:1)},c));
var K={};K=_.KL("yt-spec-quantity-incrementer-shape__icon",(K["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return h()>=R().maxValue||O()},K));
var q={};q=_.KL("yt-spec-quantity-incrementer-shape__text",(q["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return h()>R().maxValue},q["yt-spec-quantity-incrementer-shape__text--text-disabled"]=O,q));
var F=_.Ff(function(){if(h()===1){var m,W;(W=(m=R()).onRemoveCommand)==null||W.call(m)}m=h()>R().maxValue?R().maxValue:h()-1;l(m);DnF(R(),m);return!1}),w=_.Ff(function(){if(h()===R().maxValue)return!1;
var m=h()+1;l(m);DnF(R(),m);return!1});
_.NW(function(){l(R().value)});
return _.a("quantity-incrementer-shape",null,_.a("div",{class:"yt-spec-quantity-incrementer-shape"},_.a("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return h()===(R().onRemoveCommand?0:1)||O()},
"aria-label":function(){return h()!==1?R().minusLabel:R().minimumReachedLabel},
"on:click":F},_.a(_.CL,{model:{circular:!0}}),_.a("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.a("div",{class:c},u()))),_.a("div",{class:q},h),_.a("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return h()>=R().maxValue||O()},
"aria-label":function(){return h()!==R().maxValue?R().plusLabel:R().maximumReachedLabel},
"on:click":w},_.a(_.CL,{model:{circular:!0}}),_.a("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.a("div",{class:K},f())))))},"Od");_.ii(_.nf(function(f){function R(){u().onRemoveCommand&&_.Ux(u().onRemoveCommand)}
var u=f.data;var O=_.Ax(TKe,function(){return u().quantityIncrementerEntityKey});
return _.a("yt-quantity-incrementer-view-model",null,_.a(Jbf,{data:function(){var c=u(),h;var l=O()?!((h=O())==null||!h.disabled):!1;var K;h=O()?(K=O())==null?void 0:K.quantity:u().quantity;return r7n(c,l,R,h)},
iconMinus:function(){return _.a(_.WM,{icon:"BAR_HORIZONTAL",className:_.AS("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.a(_.WM,{icon:"ADD",className:_.AS("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Pd"),"yt-quantity-incrementer-view-model",{props:{data:_.SG}});var Ww=function(){var f=_.U.apply(this,arguments)||this;f.compact=!1;f.hasQuantityIncrementer=!1;return f};
_.y(Ww,_.U);Ww.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"}}}};
Ww.prototype.computeHasQuantityIncrementer=function(){var f;return!!_.t((f=this.data)==null?void 0:f.picker,IlA)};
Ww.prototype.onLabelClick=function(){var f;(f=this.dropdownEl)==null||f.open()};
_.B([_.a4("ytd-dropdown-renderer"),_.S("design:type",Object)],Ww.prototype,"dropdownEl",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ww.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],Ww.prototype,"quantityColor",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ww.prototype,"compact",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.S("design:type",Object)],Ww.prototype,"hasQuantityIncrementer",void 0);Ww=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Ww);
_.G(Ww,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jqG!==void 0)return jqG;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return jqG=f},{mode:1});var z6E;var T6k;var E6=function(){return _.U.apply(this,arguments)||this};
_.y(E6,_.U);E6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
E6.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
E6.prototype.updateTitle=function(){var f=this.disabledCartItemEntity;f.disableActionName&&this.set("data.title",Im(f.disableActionName))};
E6.prototype.updateButton=function(){var f,R=(f=this.disabledCartItemEntity.undoCommand)==null?void 0:f.innertubeCommand;R!==void 0&&(this.set("data.actionButton.buttonRenderer.command",R),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
E6.prototype.entityChanged=E6.prototype.entityChanged;_.B([_.z(_.zH),_.S("design:type",Object)],E6.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(f,R){return _.kZ(f.entities,"disabledCartItemEntity",R)}}),
_.S("design:type",Object)],E6.prototype,"disabledCartItemEntity",void 0);_.B([_.I(),_.S("design:type",Object)],E6.prototype,"data",void 0);_.B([_.qM("disabledCartItemEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],E6.prototype,"entityChanged",null);E6=_.B([_.e({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],E6);
_.G(E6,"ytd-disabled-cart-item-renderer",function(){if(T6k!==void 0)return T6k;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return T6k=f},{mode:1});_.j6("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var tB=function(){var f=_.U.apply(this,arguments)||this;f.compact=!1;f.hidden=!1;f.errorHidden=!1;f.noOnTap=!1;return f};
_.y(tB,_.U);_.X=tB.prototype;
_.X.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"}}}};
_.X.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.X.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var f=this.firstButtonElement;f.alignByText=!0;f.iconAlignByText=!0}};
_.X.computeNoOnTap=function(f){return!f};
_.X.updateQuantityColor=function(){if(this.pickerElement){var f,R=(f=this.commerceCartItemEntity)==null?void 0:f.quantityColor;this.pickerElement.quantityColor=R}};
_.X.updateTotalPriceColor=function(){var f,R=(f=this.commerceCartItemEntity)==null?void 0:f.totalPriceColor;if(R){var u;f=_.t((u=this.data)==null?void 0:u.quantityPicker,TSE);if(u=_.t(f==null?void 0:f.price,zOE))u.textColor=R}};
_.X.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var f,R=(f=this.commerceCartItemEntity)==null?void 0:f.isHidden;R!==void 0&&(this.hidden=R)}};
_.X.updateHideErrorMessage=function(){var f,R=(f=this.commerceCartItemEntity)==null?void 0:f.hideErrorMessage;R!==void 0&&(this.errorHidden=R)};
_.X.updateQuantity=function(){var f=this,R,u=(R=this.commerceCartItemEntity)==null?void 0:R.quantity,O;R=(O=this.commerceCartItemEntity)==null?void 0:O.totalPrice;if(u){this.updateTotalPriceColor();this.updateQuantityColor();var c;O=_.t((c=this.data)==null?void 0:c.quantityPicker,TSE);if(c=_.t(O==null?void 0:O.price,zOE))c.text=R?{simpleText:R.content}:void 0;if(R=_.t(O==null?void 0:O.picker,IlA))R.quantity=u;var h;if(c=(h=_.t(O==null?void 0:O.picker,eUY))==null?void 0:h.entries){h=!1;R=void 0;c=
_.Z(c);for(O=c.next();!O.done;O=c.next())O=O.value,O.dropdownItemRenderer&&(R||(R=O.dropdownItemRenderer),O.dropdownItemRenderer.isSelected=!1,u===O.dropdownItemRenderer.int32Value&&(h=!0,O.dropdownItemRenderer.isSelected=!0));!h&&R&&(R.isSelected=!0)}_.su(this,function(){var l;f.set("data.quantityPicker",_.dq.unsafeClone((l=f.data)==null?void 0:l.quantityPicker))})}};
tB.prototype.onYtRendererstamperFinished=tB.prototype.onYtRendererstamperFinished;tB.prototype.entityChanged=tB.prototype.entityChanged;_.B([_.I(),_.S("design:type",Object)],tB.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tB.prototype,"compact",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],tB.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],tB.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(f,R){return _.kZ(f.entities,"commerceCartItemEntity",R)}}),
_.S("design:type",Object)],tB.prototype,"commerceCartItemEntity",void 0);_.B([_.I(),_.S("design:type",Object)],tB.prototype,"quantityPicker",void 0);_.B([_.I(),_.S("design:type",Object)],tB.prototype,"compactQuantityPicker",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tB.prototype,"hidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tB.prototype,"errorHidden",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.S("design:type",Object)],tB.prototype,"noOnTap",void 0);_.B([_.a4("ytd-commerce-cart-item-quantity-picker-renderer"),_.S("design:type",Object)],tB.prototype,"pickerElement",void 0);_.B([_.a4("yt-button-renderer"),_.S("design:type",Element)],tB.prototype,"firstButtonElement",void 0);
_.B([_.qM("commerceCartItemEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tB.prototype,"entityChanged",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tB.prototype,"onYtRendererstamperFinished",null);tB=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],tB);
_.G(tB,"ytd-commerce-cart-item-renderer",function(){if(z6E!==void 0)return z6E;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return z6E=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var Hol;var Itt;var C1=function(){return _.U.apply(this,arguments)||this};
_.y(C1,_.U);C1.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}}}}}};
C1.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
C1.prototype.updateCheckoutLineItems=function(){var f,R=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutLineItems;R&&(f=R.map(function(u){a:{var O=u.price,c=u.description;switch(u.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Im(c),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:Im(O),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:Im(c),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:Im(O),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",f))};
C1.prototype.updateIsHidden=function(){var f,R=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isHidden;R!==void 0&&(this.hostElement.hidden=R)};
C1.prototype.entityChanged=C1.prototype.entityChanged;_.B([_.z(_.zH),_.S("design:type",Object)],C1.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],C1.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bD7}),_.S("design:type",Object)],C1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.qM("commerceCartCheckoutButtonEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C1.prototype,"entityChanged",null);C1=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],C1);
_.G(C1,"ytd-commerce-cart-summary-renderer",function(){if(Itt!==void 0)return Itt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Itt=f},{mode:1});var MBE={};MBE.InjectBehavior=[ieX.InjectBehavior];var PGf;var Uni;var y6=function(){return _.U.apply(this,arguments)||this};
_.y(y6,_.U);
y6.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:_.DB("menuRenderer")}}};
y6.prototype.onMenuTap=function(f){f.stopPropagation()};
_.Vy.Object.defineProperties(y6.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 f,R;return!(((f=this.data)==null||!f.sectionHeading)&&((R=this.data)==null?void 0:R.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var f,R;return!(((f=this.data)==null||!f.image)&&((R=this.data)==null?void 0:R.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var f,R;return!(((f=this.data)==null||!f.menu)&&((R=this.data)==null?void 0:R.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.QqF.YtTappableItemBehavior),_.S("design:type",Object)],y6.prototype,"ytTappableItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],y6.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.accessibilityData"),_.S("design:type",String),_.S("design:paramtypes",[])],y6.prototype,"ariaLabel",null);_.B([_.T("data.sectionHeading","data.layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y6.prototype,"sectionHeadingVisible",null);_.B([_.T("data.image","data.layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y6.prototype,"imageVisible",null);
_.B([_.T("data.menu","data.layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y6.prototype,"menuVisible",null);y6=_.B([_.DO({is:"yt-activity-item-renderer",disableElementRegistration:!0})],y6);
_.G(y6,"yt-activity-item-renderer",function(){if(Uni===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;PGf===void 0&&(PGf=document.createElement("template"));var O=PGf;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Uni=f}f=Uni;return f},{mode:2});var e6t;var Gck;var B6i;var ogC;var dg=function(){return _.U.apply(this,arguments)||this};
_.y(dg,_.U);
dg.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"}}}}};
dg.prototype.backgroundColorChanged_=function(){var f,R=(f=this.data)==null?void 0:f.backgroundColor;this.hostElement.style.backgroundColor=Xb[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
dg.prototype.backgroundColorChanged_=dg.prototype.backgroundColorChanged_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dg.prototype,"data",void 0);
_.B([_.qM("data.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dg.prototype,"backgroundColorChanged_",null);dg=_.B([_.DO({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],dg);
_.G(dg,"yt-offer-item-upsell-renderer",function(){if(ogC===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;B6i===void 0&&(B6i=document.createElement("template"));var O=B6i;u.call(R,O.content.cloneNode(!0),f.content.firstChild);ogC=f}f=ogC;return f},{mode:2});_.j6("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var NN=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};f.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return f};
_.y(NN,_.U);_.X=NN.prototype;
_.X.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:_.DB("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.X.computeContainerStyle_=function(f){return f};
_.X.computeContainerIsHidden_=function(f){return f&&!!f.isHidden};
_.X.computeShowSpinner_=function(f,R){return f&&R==="in-progress"};
_.X.computeShowMoreContentsButton_=function(f,R,u,O,c){return!(!(O&&O.length||c&&c.length&&u)||!f||R)};
_.X.onToggleButton_=function(f){var R=this;f.stopPropagation();this.isExpanded_=f.detail&&f.detail.toggled;var u,O;this.isExpanded_&&!this.data.continuationSection.length&&((u=this.data)==null?0:(O=u.continuation)==null?0:O.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.ul(this.hostElement,"yt-load-next-continuation",function(c){return R.getContinuationUrl_(R.data.continuation.onClickContinuationData,c)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.hH(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.X.onShowMoreContentsButtonClicked_=function(f){var R=this;f.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.ul(this.hostElement,"yt-load-next-continuation",function(u){return R.getContinuationUrl_(R.data.continuations[0].nextContinuationData,u)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.hH(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.X.getContinuationUrl_=function(f,R){var u=f.continuation;f=f.clickTrackingParams;var O=_.z4();f&&O&&_.Sa(O,_.t4(f));return _.S0(R,{continuation:u})};
_.X.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var f=_.b(this.hostElement).querySelector("#continuation-section");f&&(f=f.querySelectorAll("ytmusic-item-section-renderer"))&&f.forEach(function(R){return R.classList.add("memberships-and-purchases")})};
_.X.dataChanged_=function(){var f;this.isExpanded_=!((f=this.data)==null||!f.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.X.updateCardOnClickCommand_=function(f){f=_.t(f,yti);var R,u;this.data&&((R=this.data)==null?0:R.targetId)&&f&&f.targetId===((u=this.data)==null?void 0:u.targetId)&&f.onClickCommand&&(this.data.onClickCommand=f.onClickCommand,this.isOnClickCommand_=!0)};
_.X.backgroundColorChanged_=function(){var f,R=(f=this.data)==null?void 0:f.backgroundColor;this.hostElement.style.backgroundColor=Xb[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
NN.prototype.backgroundColorChanged_=NN.prototype.backgroundColorChanged_;NN.prototype.dataChanged_=NN.prototype.dataChanged_;NN.prototype.nextContinuationDataUpdated_=NN.prototype.nextContinuationDataUpdated_;NN.prototype.onToggleButton_=NN.prototype.onToggleButton_;_.B([_.z(_.Pp),_.S("design:type",Object)],NN.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],NN.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.UH.YtNextContinuationBehavior),_.S("design:type",Object)],NN.prototype,"ytNextContinuationBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.B([_.z(MBE.InjectBehavior),_.S("design:type",Object)],NN.prototype,"injectBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],NN.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],NN.prototype,"compact",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],NN.prototype,"isExpanded_",void 0);_.B([_.I({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.S("design:type",String)],NN.prototype,"containerStyle_",void 0);_.B([_.I({value:"not-started"}),_.S("design:type",String)],NN.prototype,"continuationStatus_",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.S("design:type",Boolean)],NN.prototype,"showSpinner_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],NN.prototype,"isOnClickCommand_",void 0);_.B([_.I({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.S("design:type",Boolean)],NN.prototype,"showMoreContentsButton_",void 0);
_.B([_.I({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(f,R){return!R||f.entities?null:_.kZ(f.entities,"cardItemContainerEntity",R)}}),
_.S("design:type",Object)],NN.prototype,"cardItemContainerEntity_",void 0);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NN.prototype,"onToggleButton_",null);_.B([_.Kf("yt-next-continuation-data-updated"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NN.prototype,"nextContinuationDataUpdated_",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NN.prototype,"dataChanged_",null);_.B([_.qM("data.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NN.prototype,"backgroundColorChanged_",null);NN=_.B([_.DO({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],NN);
_.G(NN,"yt-card-item-container-renderer",function(){if(Gck===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;e6t===void 0&&(e6t=document.createElement("template"));var O=e6t;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Gck=f}f=Gck;return f},{mode:2});var L1=function(){return _.U.apply(this,arguments)||this};
_.y(L1,_.U);L1.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"}}}};
L1.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
L1.prototype.computeLoadingHidden=function(){var f;return!((f=this.commerceCartPageStateEntity)==null?0:f.cartActionInProgress)};
L1.prototype.updateNotification=function(){var f,R=(f=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:f.summaryText;R&&this.set("data.cartNotification",Im(R))};
L1.prototype.notificationEntityChanged=L1.prototype.notificationEntityChanged;_.B([_.z(_.zH),_.S("design:type",Object)],L1.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],L1.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(f,R){return _.kZ(f.entities,"commerceCartExpandableNotificationEntity",R)}}),
_.S("design:type",Object)],L1.prototype,"commerceCartExpandableNotificationEntity",void 0);_.B([_.I({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(f,R){return _.kZ(f.entities,"commerceCartPageStateEntity",R)}}),
_.S("design:type",Object)],L1.prototype,"commerceCartPageStateEntity",void 0);_.B([_.a4("#spinner"),_.S("design:type",HTMLElement)],L1.prototype,"spinner",void 0);_.B([_.qM("commerceCartExpandableNotificationEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L1.prototype,"notificationEntityChanged",null);L1=_.B([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],L1);
_.G(L1,"ytd-commerce-cart-renderer",function(){if(Hol!==void 0)return Hol;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Hol=f},{mode:1});var xnA;var bI=function(){var f=_.U.apply(this,arguments)||this;f.bigImage=!1;return f};
_.y(bI,_.U);_.Vy.Object.defineProperties(bI.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.placeholderImageUrl}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bI.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bI.prototype,"bigImage",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],bI.prototype,"placeholderImageUrl",null);bI=_.B([_.e({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],bI);
_.G(bI,"ytd-empty-product-shelf-renderer",function(){if(xnA!==void 0)return xnA;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return xnA=f},{mode:1});var S3k;var p1=function(){var f=_.U.apply(this,arguments)||this;f.itemStyle="link-item";f.watchMetadataRefresh=!1;f.skinnyMode=!1;f.metaPanel=!1;f.inStructuredDescription=!1;f.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};f.updateOnResizeDebouncer=null;return f};
_.y(p1,_.U);_.X=p1.prototype;_.X.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.X.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"}}}}};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.X.attachVEs=function(f){f.trackingParams&&_.wR().graftServerVe(f.trackingParams)};
_.X.handleUpdateMerchShelfAction=function(f){var R=this,u=_.t(f.updateMerchandiseShelfAction.merchandiseShelf,_.Xst);u&&(u.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){R.attachVEs(u);R.data=u},Number(u.renderDelayMs))):(this.attachVEs(u),this.data=u))};
_.X.updateOnResize=function(){if(this.JSC$14687_scrollContainer!==void 0&&this.JSC$14687_scrollContainer.clientWidth!==0&&this.items!==void 0){var f=this.JSC$14687_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-f));this.ytdHorizontalListBehavior.reposition_();var R;switch((R=this.data)==null?void 0:R.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var u,
O;((u=this.data)==null?void 0:(O=u.items)==null?void 0:O.length)===1?this.itemStyle="cta-item":this.itemStyle=f>=740?"large-item":"small-item"}}};
_.X.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.uQ(this.updateOnResizeDebouncer,_.SH.after(100),this.updateOnResize)};
p1.prototype.debouncedUpdateOnResize=p1.prototype.debouncedUpdateOnResize;p1.prototype.dataChanged=p1.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],p1.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],p1.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],p1.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],p1.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],p1.prototype,"itemStyle",void 0);_.B([_.I({value:6}),_.S("design:type",Number)],p1.prototype,"initialCount",void 0);
_.B([_.I({value:"data.items"}),_.S("design:type",String)],p1.prototype,"itemsPath",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],p1.prototype,"watchMetadataRefresh",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],p1.prototype,"skinnyMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],p1.prototype,"metaPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],p1.prototype,"inStructuredDescription",void 0);
_.B([_.a4("#items"),_.S("design:type",HTMLDivElement)],p1.prototype,"items",void 0);_.B([_.a4("#scroll-container"),_.S("design:type",HTMLDivElement)],p1.prototype,"JSC$14687_scrollContainer",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],p1.prototype,"dataChanged",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],p1.prototype,"debouncedUpdateOnResize",null);
p1=_.B([_.e({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],p1);
_.G(p1,"ytd-merch-shelf-renderer",function(){if(S3k!==void 0)return S3k;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return S3k=f},{mode:2});var $nI;var jZ=function(){var f=_.U.apply(this,arguments)||this;f.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 f};
_.y(jZ,_.U);_.X=jZ.prototype;
_.X.addBackstagePostAction=function(f){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(f=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",f))&&(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:f}):this.set("data.contents",[{backstagePostThreadRenderer:f}]))};
_.X.addBackstageCommentAction=function(f){var R=this.get("addBackstageCommentAction.parentId",f);f=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",f);if(R&&f){R=this.postIdToIndices(R);for(var u=0;u<R.length;u++){var O=R[u];if(O<0)break;O="data.contents."+O+".backstagePostThreadRenderer.comments";this.get(O)&&(this.get(O+".backstageCommentsRenderer.contents")&&this.push(O+".backstageCommentsRenderer.contents",{commentThreadRenderer:f}),this.get(O+".backstageCommentsRenderer.teaserContents")?
this.push(O+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:f}):this.set(O+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:f}]))}}};
_.X.addBackstageReplyAction=function(f){var R=this.get("addBackstageReplyAction.parentId",f);f=this.get("addBackstageReplyAction.renderer.commentRenderer",f);R&&f&&this.setCreatorReply(R,f)};
_.X.banAuthorAction=function(f){var R=this.get("banAuthorAction.commentId",f);R&&(f=this.get("banAuthorAction.parentCommentId",f)||this.getParentPostId(R),this.removeFromStream(R,f))};
_.X.hideReportedCommentAction=function(f){var R=this.get("hideReportedCommentAction.commentId",f);R&&((f=this.get("hideReportedCommentAction.parentCommentId",f))||(f=this.getParentPostId(R)),this.removeFromStream(R,f))};
_.X.replaceBackstageCommentAction=function(f){var R=this.get("replaceBackstageCommentAction.commentId",f),u=this.get("replaceBackstageCommentAction.parentId",f);f=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",f);if(R&&u&&f){u=this.postIdToIndices(u);for(var O=0;O<u.length;O++){var c=u[O];if(c<0)break;var h=this.commentIdToIndex(R,c,!1);if(h>=0){var l=this.get("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+h+".commentThreadRenderer.replies.commentRepliesRenderer");
l&&(f.replies={commentRepliesRenderer:l});this.splice("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",h,1,{commentThreadRenderer:f})}h=this.commentIdToIndex(R,c,!0);if(h>=0){if(l=this.get("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(h+".commentThreadRenderer.replies.commentRepliesRenderer")))f.replies={commentRepliesRenderer:l};this.splice("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
h,1,{commentThreadRenderer:f})}}}};
_.X.replaceBackstagePostAction=function(f){var R=this.get("replaceBackstagePostAction.itemId",f);if(R){R=this.postIdToIndices(R);for(var u=0;u<R.length;u++){var O=R[u];if(O<0)break;var c=this.getPostRendererType(O),h=this.get("replaceBackstagePostAction.renderer."+c,f);if(!h&&c!=="sharedPostRenderer")break;var l=!1;h||(l=!0,h=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",f));if(!h)break;var K={};l?(_.jQ(K,AdY,h),this.set("data.contents."+O+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
K)):(_.jQ(K,new _.Y(c),h),this.set("data.contents."+O+".backstagePostThreadRenderer.post",K))}}};
_.X.replaceBackstageReplyAction=function(f){var R=this.get("replaceBackstageReplyAction.replyId",f),u=this.get("replaceBackstageReplyAction.parentId",f);f=this.get("replaceBackstageReplyAction.renderer.commentRenderer",f);R&&f&&u&&this.setCreatorReply(u,f)};
_.X.removeCommentAction=function(f){var R=this.get("removeCommentAction.commentId",f);if(R){var u=this.get("removeCommentAction.parentCommentId",f);u&&this.get("removeCommentAction.isCreatorReply",f)?this.setCreatorReply(u,void 0):(u||(u=this.getParentPostId(R)),this.removeFromStream(R,u))}};
_.X.setCreatorReply=function(f,R){var u=this.getParentPostId(f);if(u){u=this.postIdToIndices(u);for(var O=0;O<u.length;O++){var c=u[O];if(c<0)break;var h=this.commentIdToIndex(f,c,!1);if(h>=0){var l="data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+h;h=l+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";l+=".commentThreadRenderer.replies";R==void 0?(this.set(l,{}),this.set(h,!1)):(this.set(l,{commentRepliesRenderer:{teaserContents:[{commentRenderer:R}]}}),
this.set(l+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(h,!0))}h=this.commentIdToIndex(f,c,!0);h>=0&&(h="data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+h,c=h+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",h+=".commentThreadRenderer.replies",R==void 0?(this.set(h,{}),this.set(c,!1)):(this.set(h,{commentRepliesRenderer:{teaserContents:[{commentRenderer:R}]}}),this.set(c,!0)))}}};
_.X.removeFromStream=function(f,R){if(R){R=this.postIdToIndices(R);for(var u=0;u<R.length;u++){var O=R[u];if(O<0)break;var c=this.commentIdToIndex(f,O,!1);c>=0&&this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",c,1);c=this.commentIdToIndex(f,O,!0);c>=0&&this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",c,1);O="data.contents."+O+".backstagePostThreadRenderer.post.backstagePostRenderer";
c=O+".backstageAttachment.pollRenderer.votedCommentId";this.get(c)===f&&(this.set(c,null),this.set(O+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(R=this.postIdToIndices(f).reverse(),u=0;u<R.length;u++){O=R[u];if(O<0)break;c=this.getPostRendererType(O);var h=this.get("backstagePostThreadRenderer.post."+c,this.data.contents[O]);h.postId===f?this.splice("data.contents",O,1):c==="sharedPostRenderer"&&this.set("data.contents."+O+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);h.scheduledPublishTimeSec&&_.OJ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.X.postIdToIndices=function(f){for(var R=[],u=0;u<this.data.contents.length;u++){var O=this.getPostRendererType(u);this.get("backstagePostThreadRenderer.post."+O+".postId",this.data.contents[u])===f&&R.push(u);if(O==="sharedPostRenderer"){var c=this.get("backstagePostThreadRenderer.post."+O+".originalPost.backstagePostRenderer.postId",this.data.contents[u]);O=this.get("backstagePostThreadRenderer.post."+O+".originalPost.postRenderer.postId",this.data.contents[u]);c!==f&&O!==f||R.push(u)}}return R};
_.X.commentIdToIndex=function(f,R,u){if(R<0)return-1;var O,c,h,l,K=_.t((O=this.data)==null?void 0:(c=O.contents)==null?void 0:(h=c[R])==null?void 0:(l=h.backstagePostThreadRenderer)==null?void 0:l.comments,Kzk);return(R=u?K==null?void 0:K.teaserContents:K==null?void 0:K.contents)&&R.length?R.findIndex(function(q){return _.t(q,eKF).comment.commentRenderer.commentId===f}):-1};
_.X.getParentPostId=function(f){f=f.split(".");if(f[1])return f[0]};
_.X.getPostRendererType=function(f){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[f])?"sharedPostRenderer":"backstagePostRenderer"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jZ.prototype,"data",void 0);jZ=_.B([_.e({disableElementRegistration:!0,is:"ytd-backstage-items"})],jZ);
_.G(jZ,"ytd-backstage-items",function(){if($nI!==void 0)return $nI;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return $nI=
f},{mode:1});var ggk;_.NM({is:"ytd-comments",_template:function(){if(ggk!==void 0)return ggk;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ggk=f},
behaviors:[_.Rtn.YtHostElementBehavior,_.xi.YtPlayerListenerBehavior,_.r.YtRendererBehavior,_.fq.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(f){f&&f.value&&f.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(f){f&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.DW("wn_comments");var f=_.z4();f&&_.ja({clientScreenNonce:f},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(f){f=fdq(f);var R,u,O;if(f=(R=f)==null?void 0:(u=R.createCommentAction)==null?void 0:(O=u.contents)==null?void 0:O.commentThreadRenderer){var c,h,l,K,q,F;!this.isBackstage&&((c=this.data)==null?0:(h=c.header)==null?0:(l=h.commentsHeaderRenderer)==null?0:(K=l.createRenderer)==null?0:(q=K.commentSimpleboxRenderer)==null?0:(F=q.zeroStep)==null?0:F.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var w,m,W,C;this.isBackstage&&((w=this.data)==null?0:(m=w.header)==null?0:(W=m.commentsHeaderRenderer)==null?0:(C=W.zeroStateMessage)==null?0:C.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(f)}},
doReplyInsert_:function(f,R,u,O){O?this.splice(f,O,0,R):this.push(f,R)},
getRepliesPath_:function(f){return"data.contents."+f+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(f,R){f=this.getRepliesPath_(f);return R?f+".commentRepliesRenderer.teaserContents":f+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(f){f=fdq(f);var R,u,O=(R=f)==null?void 0:(u=R.createCommentReplyAction)==null?void 0:u.parentCommentId,c,h;if(R=(c=f)==null?void 0:(h=c.createCommentReplyAction)==null?void 0:h.contents)if(O=this.commentIdToIndex_(O),!(O<0))if(c=this.getRepliesPath_(O),this.get(c)){var l,K;f=(l=f)==null?void 0:(K=l.createCommentReplyAction)==null?void 0:K.replyToCommentId;l=this.getRepliesContentsPath_(O,!1);this.get(l)&&(K=this.get(l).length,c=l+"."+(K-1)+".continuationItemRenderer",
this.get(c+".button")?(c=this.replyIdToIndex_(f,O,!1),this.doReplyInsert_(l,R,c,K-1)):this.get(c)||(K=this.replyIdToIndex_(f,O,!1),this.doReplyInsert_(l,R,K,null)));l=this.getRepliesContentsPath_(O,!0);this.get(l)?(O=this.replyIdToIndex_(f,O,!0),(!f||O>=0)&&this.doReplyInsert_(l,R,O,null)):this.set(l,[R])}else this.set(c,{commentRepliesRenderer:{teaserContents:[R]}})},
hideReportedCommentAction_:function(f){var R,u=f==null?void 0:(R=f.hideReportedCommentAction)==null?void 0:R.commentId;if(u){var O;f=f==null?void 0:(O=f.hideReportedCommentAction)==null?void 0:O.parentCommentId;u=u.replace("#",".");f||(f=this.getParentCommentId_(u));this.remove_(u,f)}},
getParentCommentId_:function(f){f=f.split(".");if(f[1])return f[0]},
removeCommentAction_:function(f){var R,u=f==null?void 0:(R=f.removeCommentAction)==null?void 0:R.commentId;if(u){var O;f=f==null?void 0:(O=f.removeCommentAction)==null?void 0:O.parentCommentId;u=u.replace("#",".");f||(f=this.getParentCommentId_(u));this.remove_(u,f)}},
pinCommentAction_:function(f){f=fdq(f);var R,u,O=(R=f)==null?void 0:(u=R.pinCommentAction)==null?void 0:u.commentId;O&&(f=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",f))&&(this.remove_(O),this.insert_(f,!0))},
unpinCommentAction_:function(f){f=fdq(f);var R,u,O=(R=f)==null?void 0:(u=R.unpinCommentAction)==null?void 0:u.commentId;if(O){var c,h,l;if(f=(c=f.unpinCommentAction)==null?void 0:(h=c.actionResult)==null?void 0:(l=h.update)==null?void 0:l.commentThreadRenderer)this.remove_(O),this.insert_(f)}},
banAuthorAction_:function(f){var R,u=f==null?void 0:(R=f.banAuthorAction)==null?void 0:R.commentId;if(u){var O;f=f==null?void 0:(O=f.banAuthorAction)==null?void 0:O.parentCommentId;u=u.replace("#",".");f||(f=this.getParentCommentId_(u));this.remove_(u,f)}},
commentIdToIndex_:function(f){var R;return f&&(R=this.data)!=null&&R.contents?this.data.contents.findIndex(function(u){var O,c;return f===((u==null?void 0:(O=u.commentThreadRenderer)==null?void 0:O.commentViewModel)&&((c=_.t(u.commentThreadRenderer.commentViewModel,xSY))==null?void 0:c.commentId))}):-1},
insert_:function(f,R){var u,O;if((u=this.data)==null?0:(O=u.contents)==null?0:O.some(function(h){return!(h==null||!h.commentThreadRenderer)}))for(u=0,O=this.data.contents.length;u<O;u++){var c=this.data.contents[u].commentThreadRenderer;
if(this.RenderingPriority[f.renderingPriority]>=this.RenderingPriority[c.renderingPriority]){R&&this.RenderingPriority[f.renderingPriority]==this.RenderingPriority[c.renderingPriority]?this.splice("data.contents",u,1,{commentThreadRenderer:f}):this.splice("data.contents",u,0,{commentThreadRenderer:f});break}}else this.set("data.contents",[{commentThreadRenderer:f}])},
doReplyRemove_:function(f,R,u){f=this.replyIdToIndex_(f,R,u);f<0||(R=this.getRepliesContentsPath_(R,u),this.splice(R,f,1))},
remove_:function(f,R){R=this.commentIdToIndex_(R);R<0?(R=this.commentIdToIndex_(f),R<0||this.splice("data.contents",R,1)):(this.doReplyRemove_(f,R,!1),this.doReplyRemove_(f,R,!0))},
replyIdToIndex_:function(f,R,u){if(R<0)return-1;R=this.getRepliesContentsPath_(R,u);R=this.get(R);if(!R||!R.length)return-1;u=0;for(var O=R.length;u<O;u++){var c=void 0,h=void 0;if(((c=R[u])==null?void 0:(h=c.commentViewModel)==null?void 0:h.commentId)===f)return u}return-1},
computeIsBackstage_:function(f){return!!f},
tickForCommentsTimer_:function(f){_.zT(f,void 0,"wn_comments")},
reloadComments_:function(f){f&&f.reloadCommentsCommand&&f.reloadCommentsCommand.command&&f.reloadCommentsCommand.command.continuationCommand&&_.hH(this,[f.reloadCommentsCommand.command])}});var Dc=function(){return _.w_.apply(this,arguments)||this};
_.y(Dc,_.w_);_.X=Dc.prototype;_.X.bindIf=function(f,R,u){return f?R:u};
_.X.bindIfDefined=function(f,R){return f!==void 0?f:R};
_.X.booleanString=function(f){return(!!f).toString()};
_.X.equals=function(){for(var f=_.yK.apply(0,arguments),R=f[0],u=1;u<f.length;u++)if(R!=f[u])return!1;return!0};
_.X.isGreaterThan=function(f,R){return f>R};
_.X.isLessThan=function(f,R){return f<R};
_.X.logicalAND=function(){for(var f=_.yK.apply(0,arguments),R=!!f[0],u=1;u<f.length;u++)R=R&&!!f[u];return R};
_.X.logicalOR=function(){for(var f=_.yK.apply(0,arguments),R=!!f[0],u=1;u<f.length;u++)R=R||!!f[u];return R};
_.X.toBool=function(f){return!!f};
Dc.prototype.toBool=Dc.prototype.toBool;Dc.prototype.logicalOR=Dc.prototype.logicalOR;Dc.prototype.logicalAND=Dc.prototype.logicalAND;Dc.prototype.isLessThan=Dc.prototype.isLessThan;Dc.prototype.isGreaterThan=Dc.prototype.isGreaterThan;Dc.prototype.equals=Dc.prototype.equals;Dc.prototype.booleanString=Dc.prototype.booleanString;Dc.prototype.bindIfDefined=Dc.prototype.bindIfDefined;Dc.prototype.bindIf=Dc.prototype.bindIf;Dc=_.B([_.mt()],Dc);_.sqY=[Dc.prototype];var ngi;var VBA;var JB=function(){return _.U.apply(this,arguments)||this};
_.y(JB,_.U);JB.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
JB.prototype.onBackIconTap_=function(){window.history.back()};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],JB.prototype,"data",void 0);JB=_.B([_.DO({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],JB);
_.G(JB,"yt-header-with-back-renderer",function(){if(VBA===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ngi===void 0&&(ngi=document.createElement("template"));var O=ngi;u.call(R,O.content.cloneNode(!0),f.content.firstChild);VBA=f}f=VBA;return f},{mode:2});var Y3k;var vgE;var zZ=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(zZ,_.U);_.X=zZ.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f,this.setUrl())};
_.X.dataChanged=function(){var f=this;if(this.data){var R=this.setUrl();R&&_.VF({destination:window,iframe:this.iframe,origin:_.wGk(R.toString()),channelName:"yt-iframe",onMessage:function(u){(u=f.getCommunicationCommand(u.data))&&f.ytComponentBehavior.resolveCommand(u)},
onEstablished:function(){}})}};
_.X.setUrl=function(){if(this.data&&this.data.iframeUrl){var f=_.z2(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(f)return _.D0(this.iframe,f),f}};
_.X.getCommunicationCommand=function(f){var R;if((R=this.data)!=null&&R.onCommunicationCommandsMap){R=this.data.onCommunicationCommandsMap.find(function(c){return c.key===f});
if(R==null?0:R.value)return R==null?void 0:R.value;try{var u=alf(_.Fi(f)),O=this.data.onCommunicationCommandsMap.find(function(c){return c.key===(u==null?void 0:_.bH(u,1))});
if(O==null?0:O.value)return O==null?void 0:O.value}catch(c){}}};
zZ.prototype.dataChanged=zZ.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],zZ.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],zZ.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zZ.prototype,"data",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],zZ.prototype,"isDarkTheme",void 0);_.B([_.a4("#iframe"),_.S("design:type",HTMLIFrameElement)],zZ.prototype,"iframe",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zZ.prototype,"dataChanged",null);zZ=_.B([_.DO({is:"yt-iframe-renderer",disableElementRegistration:!0})],zZ);
_.G(zZ,"yt-iframe-renderer",function(){if(vgE===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Y3k===void 0&&(Y3k=document.createElement("template"));var O=Y3k;u.call(R,O.content.cloneNode(!0),f.content.firstChild);vgE=f}f=vgE;return f},{mode:2});_.TZ=function(f){_.d9.call(this);this.callback=f;this.bezier=new sLI(0,0,.4,0,.2,1,1,1);this.delay=new _.iq(this.next,window,this);this.JSC$14718_animating=!1;_.qG(this,this.delay)};
_.y(_.TZ,_.d9);_.TZ.prototype.isAnimating=function(){return this.JSC$14718_animating};
_.TZ.prototype.start=function(f,R,u){this.config={from:f,to:R,duration:u,startTime:(0,_.iZ)()};this.JSC$14718_animating=!0;this.next()};
_.TZ.prototype.stop=function(){this.delay.stop();this.JSC$14718_animating=!1;this.config=void 0};
_.TZ.prototype.next=function(){if(this.config){var f=this.config,R=f.from,u=f.to,O=f.duration;f=f.startTime;var c=(0,_.iZ)()-f;f=this.bezier;O=V8l(f,c/O);if(O==0)f=f.y0;else if(O==1)f=f.y3;else{c=WI(f.y0,f.y1,O);var h=WI(f.y1,f.y2,O);f=WI(f.y2,f.y3,O);c=WI(c,h,O);h=WI(h,f,O);f=WI(c,h,O)}f=_.Jd(f,0,1);this.callback(R+(u-R)*f);f<1?this.delay.start():this.JSC$14718_animating=!1}};_.Hw=new _.Vi("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ioF={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},fbE=function(f,R,u,O){_.d9.call(this);this.JSC$14726_miniAppId=f;this.localReleaseId=R;this.derivedDeviceInterface=u;this.isForeground=O;this.JSC$14726_playNonceResolver=new _.lj;this.playPingTimerId=NaN;this.playPingIntervalMs=_.RV("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.RV("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.E("enable_displaying_ppn");this.JSC$14726_miniAppClientDataProvider=_.vh().resolve(_.Hw);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;rbt(this);var c=setTimeout(function(){_.Ih(new _.ts("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14726_playNonceResolver.promise.then(function(){clearTimeout(c)})};
_.y(fbE,_.d9);var uFC=function(f,R){f.JSC$14726_playNonceResolver.resolve(R!=null?R:jd(8));f.enableDisplayingPpn&&RSk(f).then(function(u){f.JSC$14726_miniAppClientDataProvider.clientData.set("post_play_nonce",u)})},RSk=function(f){return _.k(function(R){return R.nextAddress==1?_.A(R,f.JSC$14726_playNonceResolver.promise,2):R.return(R.yieldResult)})},rbt=function(f){var R,u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$14726_playNonceResolver.promise,2);R=O.yieldResult;u={miniAppInfo:{externalPostId:f.JSC$14726_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:R,derivedDeviceInterface:f.derivedDeviceInterface}};_.ja(u);_.KG(O)})},cwG=function(f){f.state!==0?_.Ih(new _.ts("[MiniAppPlayLogger] recordPlayStart failed with state "+ioF[f.state])):(f.state=1,Iu(f,"ma_cl"),MN(f,"PLAY_EVENT_TYPE_PLAY_START"),O$t(f))},XFC=function(f){f.isForeground=!1;
MN(f,"PLAY_EVENT_TYPE_PLAY_PAUSE")},hSk=function(f){f.state!==1&&f.state!==2?_.Ih(new _.ts("[MiniAppPlayLogger] recordPlayEnd failed with state "+ioF[f.state])):(f.state=3,window.clearInterval(f.playPingTimerId),f.playPingTimerId=NaN,RUn(),MN(f,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Z$f=function(f,R){f.state===2&&f.gameReady&&(f.firstClickRecorded?Date.now()-f.clickRecordedMs<f.playClickIntervalMs||(f.clickRecordedMs=Date.now(),MN(f,"PLAY_EVENT_TYPE_PLAY_CLICK")):R&&(Iu(f,"ma_fua"),MN(f,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),f.firstClickRecorded=!0,f.clickRecordedMs=Date.now()))};
fbE.prototype.logError=function(f){var R=this,u;_.k(function(O){if(O.nextAddress==1)return f.metadata.externalPostId=R.JSC$14726_miniAppId,u=f.metadata,_.A(O,Promise.race([R.JSC$14726_playNonceResolver.promise,new Promise(function(c){setTimeout(function(){c("")},3E4)})]),2);
u.postPlayNonce=O.yieldResult;f.metadata.localReleaseId=R.localReleaseId;f.loggingError.level="WARNING";_.TL(f.loggingError,f.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:f.metadata});_.KG(O)})};
var lbl=function(f,R,u,O){var c,h,l,K,q,F;_.k(function(w){if(w.nextAddress==1)return _.A(w,f.JSC$14726_playNonceResolver.promise,2);c=w.yieldResult;h={externalPostId:f.JSC$14726_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:c,sdkVersion:u,api:R};O!==void 0&&(h.networkRequestsMeasurement={networkRequests:_.Rj(O,1),cachedRequests:_.Rj(O,2),transferredBytes:_.Rj(O,3)},(l=O)==null?0:_.at(l,sT,6))&&(h.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((K=_.Ry(O,
sT,6))==null?void 0:jT(K,1))||"0",cacheHits:((q=_.Ry(O,sT,6))==null?void 0:jT(q,2))||"0",cachedBytes:((F=_.Ry(O,sT,6))==null?void 0:jT(F,3))||"0"});_.Jr("miniAppSdkUsage",h);_.KG(w)})},Kjt=function(f,R,u){var O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P;
_.k(function(g){if(g.nextAddress==1)return _.A(g,f.JSC$14726_playNonceResolver.promise,2);O=g.yieldResult;c={externalPostId:f.JSC$14726_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:O,sdkVersion:u,measurementWindow:{startTimestampMs:String(NH(R,1)),endTimestampMs:String(NH(R,2))},frameRate:{averageFrameTimeDeltaMs:L6(R,3),averageFrameIdleTimeMs:L6(R,4)}};_.at(R,nu,5)&&(c.networkRequests={networkRequests:(h=RY(R))==null?void 0:_.Rj(h,1),cachedRequests:(l=RY(R))==null?void 0:_.Rj(l,2),transferredBytes:(K=
RY(R))==null?void 0:_.Rj(K,3),sameOriginStatusCodeToCounts:kyY((q=RY(R))==null?void 0:Rze(q,4)),crossOriginStatusCodeToCounts:kyY((F=RY(R))==null?void 0:Rze(F,5))},(w=RY(R))==null?0:_.at(w,sT,6))&&(c.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((m=RY(R))==null?void 0:(W=_.Ry(m,sT,6))==null?void 0:jT(W,1))||"0",cacheHits:((C=RY(R))==null?void 0:(d=_.Ry(C,sT,6))==null?void 0:jT(d,2))||"0",cachedBytes:((p=RY(R))==null?void 0:(J=_.Ry(p,sT,6))==null?void 0:jT(J,3))||"0"});_.at(R,
Z9l,7)&&(c.gameCapture={averageFrameTimeDeltaMs:(M=_.Ry(R,Z9l,7))==null?void 0:L6(M,1),averageFrameIdleTimeMs:(P=_.Ry(R,Z9l,7))==null?void 0:L6(P,2)});_.Jr("miniAppPerformanceMetrics",c);_.KG(g)})},q_C=function(f,R,u){var O,c;
return _.k(function(h){if(h.nextAddress==1)return _.A(h,f.JSC$14726_playNonceResolver.promise,2);O=h.yieldResult;c={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:f.JSC$14726_miniAppId,postPlayNonce:O,miniAppReleaseId:f.localReleaseId},derivedDeviceInterface:f.derivedDeviceInterface,adTriggerType:R};c.rejectedReason=u||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Jr("miniAppAdEvent",c);_.KG(h)})};
fbE.prototype.disposeInternal=function(){_.d9.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var MN=function(f,R,u,O){u=u===void 0?{}:u;O=O===void 0?!1:O;var c,h,l,K;_.k(function(q){if(q.nextAddress==1)return c=f.isForeground,h=f.beforeReady,_.A(q,f.JSC$14726_playNonceResolver.promise,2);l=q.yieldResult;K={externalPostId:f.JSC$14726_miniAppId,localReleaseId:f.localReleaseId,derivedDeviceInterface:f.derivedDeviceInterface,postPlayNonce:l,type:R};u.sequenceGroup=l;K.playState=h?"PLAY_STATE_NOT_READY":c?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Jr("miniAppPlayEvent",K,u);
O&&_.zL();_.KG(q)})},Iu=function(f,R){var u;
_.k(function(O){if(O.nextAddress==1)return u=(0,_.iZ)(),_.A(O,f.JSC$14726_playNonceResolver.promise,2);_.JH(R,u);_.KG(O)})},O$t=function(f){isNaN(f.playPingTimerId)&&(f.playPingTimerId=_.lZ(function(){f.state!==1&&f.state!==2?_.Ih(new _.ts("[MiniAppPlayLogger] reportPlayPing failed with state "+ioF[f.state])):MN(f,"PLAY_EVENT_TYPE_PLAY_PING")},f.playPingIntervalMs))},kyY=function(f){return Array.from(f.entries()).map(function(R){var u=_.Z(R);
R=u.next().value;u=u.next().value;return{key:R,value:u}})};var AwY=_.RV("show_mini_app_ad_frequency_cap_ms",0),abl=function(){this.showAdIntervalMs=AwY;this.isRateLimited=!0},FjA=function(f,R){setTimeout(function(){return f.isRateLimited=!1},f.showAdIntervalMs);
f.showMiniAppAdCommand=R.showMiniAppAdCommand;f.isEmbeddedInWebview=R.isEmbeddedInWebview;f.playLogger=R.playLogger},myF=function(f,R){var u;
return _.k(function(O){if(O.nextAddress==1){if(!f.showMiniAppAdCommand||!f.isEmbeddedInWebview)return O.return(wFG(f,R,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(f.isRateLimited)return O.return(wFG(f,R,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));f.adResolver=new _.lj;u=pIC(new bpF,R);PB(f.showMiniAppAdCommand,jgi(u));f.isRateLimited=!0;setTimeout(function(){return f.isRateLimited=!1},f.showAdIntervalMs);
return _.A(O,f.adResolver.promise,2)}return O.return(O.yieldResult)})};
abl.prototype.onAdFinished=function(f){f=eAG(f);var R;(R=this.adResolver)==null||R.resolve(f)};
var wFG=function(f,R,u){var O;return _.k(function(c){if(c.nextAddress==1)c=_.A(c,(O=f.playLogger)==null?void 0:q_C(O,hk5(R),u),2);else{var h=c.return;var l=new UpG;l=_.uO(l,1,2);c=h.call(c,l)}return c})};var QNk=new _.Vi("INNERTUBE_MANAGER_TOKEN");var WjG=function(){this.callbacks={}};
WjG.prototype.initialize=function(f){var R=this;this.callbacks=f;window.youtubewebview?window.youtubewebview.onmessage=function(u){Eot(R,u)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(u){Eot(R,u)})};
var Eot=function(f,R){if(R.data)try{var u=alf(R.data);if(_.Bt(_.AM(u,1))!=null){var O=tAk(_.bH(u,2));switch(_.bH(u,1)){case "yt-mini-app-load-audio-state":var c,h;(h=(c=f.callbacks).onAudioStateLoaded)==null||h.call(c,_.dZ(O,EW(O,bx,1)));break;case "yt-mute-mini-app":var l,K;(K=(l=f.callbacks).onMuteMiniApp)==null||K.call(l);break;case "yt-unmute-mini-app":var q,F;(F=(q=f.callbacks).onUnmuteMiniApp)==null||F.call(q);break;case "yt-playable-exit":var w,m;(m=(w=f.callbacks).onExit)==null||m.call(w);
break;case "yt-post-play-nonce":var W,C;(C=(W=f.callbacks).onPostPlayNonceReceived)==null||C.call(W,DY(O,2,bx));break;case "yt-confirm-exit-mini-app":var d,p;(p=(d=f.callbacks).confirmExitMiniApp)==null||p.call(d);break;case "yt-confirm-exit-mini-app-edu":var J,M;(M=(J=f.callbacks).confirmExitMiniAppEdu)==null||M.call(J);break;case "yt-benchmarking-response":var P,g;(g=(P=f.callbacks).onNativeBenchmarkingMessageReceived)==null||g.call(P,DY(O,2,bx));break;case "yt-mini-app-load-3p-consent-state":var x,
fh;(fh=(x=f.callbacks).multiplayer3pAckStateLoaded)==null||fh.call(x,_.dZ(O,EW(O,bx,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var V,ZD;(ZD=(V=f.callbacks).exitMiniAppSeenStateLoaded)==null||ZD.call(V,_.dZ(O,EW(O,bx,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var mP,NX;(NX=(mP=f.callbacks).onNavigateToNewMiniApp)==null||NX.call(mP);break;case "yt-game-data-available":var jt,Jn;(Jn=(jt=f.callbacks).onGameDataAvailable)==null||Jn.call(jt,DY(O,2,bx));break;case "yt-pause-mini-app":var zq,
St;(St=(zq=f.callbacks).onPauseMiniApp)==null||St.call(zq);break;case "yt-resume-mini-app":var Gq,LC;(LC=(Gq=f.callbacks).onResumeMiniApp)==null||LC.call(Gq);break;case "yt-playable-ad-finished":var wN,GI;(GI=(wN=f.callbacks).onAdFinished)==null||GI.call(wN,DY(O,2,bx))}}else _.Ih(Error("Qh"))}catch(ak){_.TL(Error("Rh"))}else _.Ih(Error("Sh"))};var ldq=function(f){this.rpcErrorCode=f};var Pw=function(f,R,u){this.intervalMs=f;this.apiFunc=R;this.type=u;this.schedulerReady=!0};
Pw.prototype.call=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1){if(R.type!==1&&f===R.cachedValue)return O.return();R.pendingApiRequestResolver||(R.pendingApiRequestResolver=new _.lj);u=R.pendingApiRequestResolver.promise;R.cachedValue=f;return _.A(O,tRI(R),2)}return O.return(u)})};
Pw.prototype.flush=function(f){f=f===void 0?!1:f;var R=this;return _.k(function(u){return R.cachedValue===void 0?u.return():_.A(u,R.apiFunc(R.cachedValue,f),0)})};
var tRI=function(f){var R,u,O;return _.k(function(c){switch(c.nextAddress){case 1:if(!f.schedulerReady||!f.pendingApiRequestResolver)return c.return();f.schedulerReady=!1;R=f.pendingApiRequestResolver;f.pendingApiRequestResolver=void 0;_.cl(c,2);if(f.cachedValue===void 0){c.jumpTo(4);break}return _.A(c,f.apiFunc(f.cachedValue),5);case 5:u=c.yieldResult,R.resolve(u);case 4:_.Bf(c,3);break;case 2:O=_.ku(c),R.reject(O);case 3:setTimeout(function(){return _.k(function(h){f.schedulerReady=!0;return _.A(h,
tRI(f),0)})},f.intervalMs),_.KG(c)}})};var qge=window.location.origin+"/miniapp_cloudsaves",kn7=[400,401],Cmt=_.RV("cloud_save_game_data_rate_limit_ms",3E3),NTC=function(f){var R=this;this.JSC$14770_miniAppId=f;this.loadAttempts=0;this.cloudSaveIntervalMs=Cmt;this.initialDownloadDataSucceeded=!1;this.JSC$14770_playNonceResolver=new _.lj;this.scottyUploadRateLimiter=new Pw(this.cloudSaveIntervalMs,function(u,O){return ywl(R,u,O)},2);
this.downloadDataPromise=dyt(this);this.downloadDataPromise.then(function(){R.initialDownloadDataSucceeded=!0}).catch(function(){})},LjY=function(f,R){R.then(function(u){return f.JSC$14770_playNonceResolver.resolve(u)})},b$k=function(f){return _.k(function(R){return f.cachedData===void 0?R.return(f.downloadDataPromise):R.return(f.cachedData)})},pFf=function(f,R){return _.k(function(u){f.cachedData=R;
if(!f.initialDownloadDataSucceeded)throw Error("Th");return _.A(u,f.scottyUploadRateLimiter.call(R),0)})},jNA=function(){return new Promise(function(f){setTimeout(f,1E3,"")})},Dyf=function(f,R){var u,O;
return _.k(function(c){if(c.nextAddress==1)return u=f.JSC$14770_miniAppId,_.A(c,Promise.race([f.JSC$14770_playNonceResolver.promise,jNA()]),2);O={"X-YouTube-MiniAppId":u,"X-YouTube-PostPlayNonce":c.yieldResult};"DELEGATED_SESSION_ID"in _.J1&&Pqn(R,O);return c.return(O)})},ywl=function(f,R,u){u=u===void 0?!1:u;
return _.k(function(O){return Z_7()?_.E("enable_cloud_save_error_popup_after_retry")?O.return(new Promise(function(c,h){var l,K,q,F,w;return _.k(function(m){switch(m.nextAddress){case 1:l=0,K=!0,F=q=null;case 2:if(!(K&&l++<2)){m.jumpTo(4);break}_.cl(m,5);return _.A(m,Jwt(f,R,u),7);case 7:q=m.yieldResult;K=q.ok?!1:!kn7.includes(q.status);_.Bf(m,2);break;case 5:F=w=_.ku(m);K=Kbe(F);m.jumpTo(2);break;case 4:q?q.ok?(U6(f,Cmt),c()):(U6(f,f.cloudSaveIntervalMs*2),h(Error("Uh`"+String(q.status),{cause:{rpcErrorCode:q.status}}))):
(U6(f,f.cloudSaveIntervalMs*2),h(F||Error("Vh"))),_.KG(m)}})})):O.return(new Promise(function(c,h){var l,K;
return _.k(function(q){if(q.nextAddress==1){if(f.JSC$14770_miniAppId==="")return h(Error("Wh")),q.return();_.cl(q,2);return _.A(q,Jwt(f,R,u),4)}if(q.nextAddress!=2)return l=q.yieldResult,l.ok?(U6(f,Cmt),c()):(U6(f,f.cloudSaveIntervalMs*2),h(Error("Uh`"+String(l.status),{cause:{rpcErrorCode:l.status}}))),_.Bf(q,0);K=_.ku(q);U6(f,f.cloudSaveIntervalMs*2);h(K);_.KG(q)})})):O.return()})},Jwt=function(f,R,u){u=u===void 0?!1:u;
var O,c,h;return _.k(function(l){if(l.nextAddress==1)return O=_.fE((new TextEncoder).encode(R)),c=A$X(),_.A(l,Dyf(f,c),2);h=l.yieldResult;return l.return(fetch(c,{method:"POST",body:new Blob([O]),headers:h,keepalive:u}))})},dyt=function(f){var R,u;
return _.k(function(O){if(O.nextAddress==1){if(!Z_7())return O.return("");if(f.JSC$14770_miniAppId==="")throw Error("Wh");if(f.loadAttempts>2)return O.return(f.downloadDataPromise);_.cl(O,2);return _.A(O,zSC(f),4)}if(O.nextAddress!=2)return R=O.yieldResult,O.return(R);u=_.ku(O);if(Kbe(u)&&++f.loadAttempts<2)return O.return(dyt(f));throw u;})},zSC=function(f){var R,u,O,c,h;
return _.k(function(l){switch(l.nextAddress){case 1:return _.cl(l,2),R=A$X(),_.A(l,Dyf(f,R),4);case 4:return u=l.yieldResult,_.A(l,fetch(R,{method:"GET",headers:u}),5);case 5:return O=l.yieldResult,O.ok?_.A(l,O.text(),6):l.return(Promise.reject(Error("Xh`"+String(O.status),{cause:new ldq(O.status)})));case 6:return c=l.yieldResult,l.return((new TextDecoder).decode(_.Fi(c)));case 2:return h=_.ku(l),l.return(Promise.reject(h))}})},U6=function(f,R){f.cloudSaveIntervalMs=R;
f.scottyUploadRateLimiter.intervalMs=f.cloudSaveIntervalMs};
NTC.prototype.flush=function(){var f=this;return _.k(function(R){return f.initialDownloadDataSucceeded?_.A(R,f.scottyUploadRateLimiter.flush(!0),0):R.return()})};var TTH=rm(iL(1),YH(1)),H$i=rm(iL(1),YH(3)),eZ=function(f){this.callbacks=f};
_.X=eZ.prototype;_.X.onAudioToggled=function(f,R){(R===void 0||R)&&_.cT("yt-mini-app-is-audio-enabled",f,2592E3)};
_.X.onPause=function(){this.onAudioToggled(!1,!1)};
_.X.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.X.returnNativeBenchmarkingMessage=function(){};
_.X.sendGameData=function(){};
_.X.sendStartGameFrameCapture=function(){};
var adD=function(f,R,u){this.callbacks=f;var O=this;this.sdkVersion=new _.lj;this.channel=new LdB(_.VF({destination:window,iframe:R,origin:(new URL(u.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var c=GZ;var h=iL(5);var l=new nOF;l=_.zR(l,1,1E4);h=_.cz(h,4,uZI,l);c(O,h);O.onAudioToggled(O.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){O.sdkVersion.resolve("")},1E4)};
_.y(adD,eZ);_.X=adD.prototype;_.X.onAudioToggled=function(f,R){eZ.prototype.onAudioToggled.call(this,f,R===void 0?!0:R);R=GZ;var u=iL(2),O=new gOk;f=_.X$(O,1,f);f=_.cz(u,3,uZI,f);R(this,f)};
_.X.onPause=function(){eZ.prototype.onPause.call(this);GZ(this,iL(3))};
_.X.onResume=function(){eZ.prototype.onResume.call(this);GZ(this,iL(4))};
_.X.returnNativeBenchmarkingMessage=function(f){var R=GZ,u=iL(6);var O=YH(_.at(f,xz,1)?1:2);f=_.at(f,xz,1)?f:null;O=_.cz(O,5,vm,f);R(this,rm(u,O))};
_.X.sendGameData=function(f){var R=GZ,u=iL(7);f=_.cz(u,5,uZI,f);R(this,f)};
_.X.sendStartGameFrameCapture=function(){GZ(this,iL(9))};
var Bw=function(f,R,u){var O,c,h;return _.k(function(l){if(l.nextAddress==1)return O=f.callbacks,c=O.onSdkCalled,h=R,_.A(l,f.sdkVersion.promise,2);c.call(O,h,l.yieldResult,u);_.KG(l)})};
adD.prototype.onMessage=function(){var f=this;return jit(ux,function(R){var u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD,mP,NX,jt,Jn,zq,St,Gq,LC,wN,GI,ak,kC,Rw,KC,qe,LE,k5,yA,HG,GX,bf,$C,Bl,qt;return _.k(function(Y5){switch(Y5.nextAddress){case 1:if(!qYl(R.data))return _.Ih(Error("Yh")),Y5.return();u=_.p6(R.data,1);_.E("enable_iframe_message_get_type_via_fields")&&(O=R.data,u=c=_.p6(O,1));switch(u){case 8:if(R.data.hasMetadata()){var tf=f.sdkVersion,lK=tf.resolve;var CC=R.data.getMetadata();CC=_.bH(CC,
1);lK.call(tf,CC);clearTimeout(f.sdkVersionTimeoutId)}break;case 6:return Y5.jumpTo(2);case 16:if(!_.FA(R.data,XBE,14,Od))return Y5.return();h=_.JM(R.data,XBE,14,Od);(K=(l=f.callbacks).onGameFrameReceived)==null||K.call(l,h);return Y5.return();case 17:if(!_.FA(R.data,cFG,15,Od))return Y5.return();(F=(q=f.callbacks).onGameAudioReceived)==null||F.call(q,_.JM(R.data,cFG,15,Od));return Y5.return();case 1:if(tf=_.JM(R.data,vOC,2,Od))switch(_.p6(tf,1)){case 1:f.callbacks.onFirstFrameReady();if(_.E("enable_network_request_logging_on_game_events")&&
_.at(tf,nu,4)){Bw(f,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Ry(tf,nu,4));break}Bw(f,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(CC=(lK=f.callbacks).onGameReady)==null||CC.call(lK);if(_.E("enable_network_request_logging_on_game_events")&&_.at(tf,nu,4)){Bw(f,"MINI_APP_SDK_API_GAME_READY",_.Ry(tf,nu,4));break}Bw(f,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.FA(tf,VX,3,irY))f.callbacks.onResourceLoaded(_.JM(tf,VX,3,irY))}return Y5.return();case 3:return Y5.jumpTo(3);case 4:return Y5.jumpTo(4);
case 2:return Y5.jumpTo(5);case 9:return Y5.jumpTo(6);case 10:return f.callbacks.onClick(),Y5.return();case 5:return Y5.jumpTo(7);case 11:if(!_.FA(R.data,$H,9,Od))return Y5.return();w=_.JM(R.data,$H,9,Od);(W=(m=f.callbacks).onBenchmarkingMessageReceived)==null||W.call(m,w);tf=R.reply;lK=iL(1);CC=YH(1);var Eh=new $H;var k_=new Uint8Array(V9n(w,EW(w,BWA,6))|0);Eh=F0(Eh,5,BWA,_.eY(k_,!1));CC=_.cz(CC,5,vm,Eh);tf.call(R,rm(lK,CC));return Y5.return();case 12:return Y5.jumpTo(8);case 13:return Y5.jumpTo(9);
case 15:if(!_.E("enable_open_yt_content"))return R.reply(H$i),Y5.return();if(!_.FA(R.data,O9A,12,Od))return R.reply(rm(iL(1),YH(2))),Y5.return();tf=_.JM(R.data,O9A,12,Od);C=_.bH(tf,1);f.callbacks.onOpenYTContent(C);R.reply(TTH);return Y5.return();case 14:return Y5.jumpTo(10);default:return Y5.return()}Y5.jumpTo(0);break;case 2:if(!_.FA(R.data,fN,5,Od))return Y5.return();lK=R.data;tf=EW(lK,Od,5);lK=lK.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(tf=zz(lK,lK[_.pC]|0,fN,tf))||(tf=fN[Sl])||
(tf=new fN,Jf(tf.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),tf=fN[Sl]=tf);d=tf;tf=_.rq(d,gm,1,_.fR());p=_.Z(tf);J=p.next();case 12:if(J.done){Y5.jumpTo(14);break}M=J.value;P=new _.ts;P.level=_.p6(M,2)===1?"WARNING":"ERROR";g=waP(M.getSource());return _.A(Y5,f.sdkVersion.promise,15);case 15:x={source:g,sdkVersion:Y5.yieldResult};_.yS(_.AM(M,6))!=null?(P.message=M.getMessage(),P.stack=_.bH(M,5),x.sdkErrorType=m8h(_.p6(M,6)),_.yS(_.AM(M,7))!=null&&(x.sdkApi=QTn(_.p6(M,7)))):P.stack=void 0;
V=fh=void 0;(V=(fh=f.callbacks).onError)==null||V.call(fh,{loggingError:P,metadata:x});J=p.next();Y5.jumpTo(12);break;case 14:return Y5.return();case 3:return _.cl(Y5,16),tf=f.callbacks,lK=tf.onSave,CC=_.JM(R.data,sAk,4,Od),CC=_.bH(CC,1),_.A(Y5,lK.call(tf,CC),18);case 18:R.reply(TTH);_.Bf(Y5,17);break;case 16:return ZD=_.ku(Y5),mP=UY,NX=ZD,jt=f.callbacks,Jn="MINI_APP_SDK_API_SAVE_DATA",_.A(Y5,f.sdkVersion.promise,19);case 19:mP(NX,jt,Jn,Y5.yieldResult),R.reply(H$i);case 17:return _.A(Y5,Bw(f,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return Y5.return();case 4:return _.cl(Y5,21),_.A(Y5,f.callbacks.onLoad(),23);case 23:zq=Y5.yieldResult;tf=R.reply;lK=iL(1);CC=YH(1);Eh=new sAk;Eh=_.FH(Eh,1,zq);CC=_.cz(CC,3,vm,Eh);tf.call(R,rm(lK,CC));_.Bf(Y5,22);break;case 21:return St=_.ku(Y5),Gq=UY,LC=St,wN=f.callbacks,GI="MINI_APP_SDK_API_LOAD_DATA",_.A(Y5,f.sdkVersion.promise,24);case 24:Gq(LC,wN,GI,Y5.yieldResult),R.reply(H$i);case 22:return _.A(Y5,Bw(f,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Y5.return();case 5:_.cl(Y5,
26);f.callbacks.onSendHighScore(Hi(_.JM(R.data,kBi,3,Od).getValue()));R.reply(rm(iL(1),YH(1)));_.Bf(Y5,27);break;case 26:return ak=_.ku(Y5),kC=UY,Rw=ak,KC=f.callbacks,qe="MINI_APP_SDK_API_SEND_SCORE",_.A(Y5,f.sdkVersion.promise,28);case 28:kC(Rw,KC,qe,Y5.yieldResult),R.reply(H$i);case 27:return _.A(Y5,Bw(f,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Y5.return();case 6:if(!_.FA(R.data,KGC,8,Od)){Y5.jumpTo(30);break}tf=_.JM(R.data,KGC,8,Od);tf=_.p6(tf,1);return _.A(Y5,Bw(f,QTn(tf)),30);case 30:return Y5.return();
case 7:return tf=R.reply,lK=iL(1),CC=YH(1),Eh=f.callbacks.getLanguage(),CC=F0(CC,4,vm,el(Eh)),tf.call(R,rm(lK,CC)),_.A(Y5,Bw(f,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Y5.return();case 8:if(!_.FA(R.data,lmY,10,Od))return Y5.return();LE=_.JM(R.data,lmY,10,Od);k5=f.callbacks;yA=k5.onSdkPerformanceUpdate;return _.A(Y5,f.sdkVersion.promise,33);case 33:return yA.call(k5,LE,Y5.yieldResult),Y5.return();case 9:tf=R.data;lK=EW(tf,Od,11);if(_.Bt(_.AM(tf,lK))==null)return R.reply(rm(iL(1),YH(2))),
Y5.return();HG=DY(R.data,11,Od);f.callbacks.onShareInviteCode(HG);R.reply(TTH);return _.A(Y5,Bw(f,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Y5.return();case 10:if(_.FA(R.data,$pf,13,Od)){Y5.jumpTo(35);break}return _.A(Y5,f.callbacks.onShowMiniAppAd(2),36);case 36:return GX=Y5.yieldResult,R.reply(rm(iL(1),fmf(GX))),_.A(Y5,Bw(f,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Y5.return();case 35:tf=_.JM(R.data,$pf,13,Od);a:switch(_.p6(tf,1)){case 1:tf={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:tf={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:tf={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}bf=tf;$C=bf.adType;Bl=bf.sdkApi;tf=f.callbacks;lK=tf.onShowMiniAppAd;CC=_.JM(R.data,$pf,13,Od);CC=_.bH(CC,2);return _.A(Y5,lK.call(tf,$C,CC||void 0),38);case 38:return qt=Y5.yieldResult,R.reply(rm(iL(1),fmf(qt))),_.A(Y5,Bw(f,Bl),39);case 39:return Y5.return()}})})};
var GZ=function(f,R){_.k(function(u){f.channel.send(R);_.KG(u)})},en=function(f,R,u){this.callbacks=f;
var O=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;f=ZED(R,(new URL(u.toString())).origin);this.gameSnacks=new oYl(f);this.gameSnacks.page.onReady(function(){O.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){O.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var c,h;(h=(c=O.callbacks).onGameReady)==null||h.call(c)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(c,h){try{O.callbacks.onSendHighScore(h)}catch(l){UY(l,O.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(c,h){var l;return _.k(function(K){if(K.nextAddress==1)return _.cl(K,2),_.A(K,O.callbacks.onSave(O.decoder.decode(h)),4);if(K.nextAddress!=2)return _.Bf(K,0);l=_.ku(K);UY(l,O.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return K.return()})});
this.gameSnacks.storage.onLoad(function(){var c,h;return _.k(function(l){if(l.nextAddress==1)return _.cl(l,2),_.A(l,O.callbacks.onLoad(),4);if(l.nextAddress!=2)return c=l.yieldResult,l.return(O.encoder.encode(c));h=_.ku(l);UY(h,O.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return l.return(O.encoder.encode(""))})});
this.gameSnacks.init()};
_.y(en,eZ);en.prototype.onAudioToggled=function(f,R){eZ.prototype.onAudioToggled.call(this,f,R===void 0?!0:R);var u;(u=this.gameSnacks)==null||u.audio.update(f)};
en.prototype.onPause=function(){eZ.prototype.onPause.call(this);var f;(f=this.gameSnacks)==null||f.game.pause()};
en.prototype.onResume=function(){eZ.prototype.onResume.call(this);var f;(f=this.gameSnacks)==null||f.game.resume()};var IbC=Wbl,MRC=_.nf(function(f){var R=f.data;var u=f.loadingProgress;f=_.Z(_.qK("",void 0,"LYYTdd"));var O=f.next().value,c=f.next().value;f=_.Z(_.qK(!1,void 0,"K0waae"));var h=f.next().value,l=f.next().value,K=[],q=function(){return"transform: scaleX("+(_.Jy(u)||0)+")"},F=null,w=function(){var d;
return(d=R()&&F)!=null?d:F=R().showAnniversaryAnimation?6:IbC()};
_.pc(function(){var d;if(R().timeOutMessages&&((d=R().timeOutMessages)==null?0:d.length)){F=null;d=_.Z(K);for(var p=d.next();!p.done;p=d.next())clearTimeout(p.value);K.length=0;EB7(R().timeOutMessages,K,c,l)}});
var m=function(){return!!R().persistentErrorMessageTitle},W=function(){return u!==void 0},C=function(){return R().title};
return _.a("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.a("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.a("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.a("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var d,p=(d=R().backgroundImage)==null?void 0:d.sources,J;return(p==null?0:p.length)?"background-image: url("+((J=p[0])==null?void 0:J.url)+")":
""}}),_.a("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.a(_.Q,{cond:function(){return!m()},
then:function(){var d={};return _.a("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.a("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.a(_.qI,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+w()},
data:function(){var p="loading_animation_"+w();return{animationConfig:{name:p,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+p+".json",loop:!0,autoplay:!0}}}})),_.a("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.a(_.Q,{cond:C,
then:function(){return _.a("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},C)}}),_.a("p",{class:_.KL("mini-app-splash-screen-view-model-wiz__timeout-message",(d["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return h()},d)),
"aria-live":"polite"},O),_.a(_.Q,{cond:W,then:function(){return _.a("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.a("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:q}))}})))}}),_.a(_.Q,{cond:m,
then:function(){return _.a("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.a("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return R().persistentErrorMessageTitle}),_.a(_.Q,{cond:function(){return!!R().persistentErrorMessageDescription},
then:function(){return _.a("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return R().persistentErrorMessageDescription})}}))}})))},"Qd");var PmY=new _.Vi("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var UyI=Vt;Vt=function(f){function R(u){if(u){var O,c;(O=u.__spec)==null||(c=O.didUnmount)==null||c.call(O);for(O=0;O<u.childNodes.length;O++)R(u.childNodes[O])}}
UyI==null||UyI(f);LU(function(){for(var u=0;u<f.length;u++)R(f[u])})};var eSA=_.nf(function(f){var R=f.data;var u=f.score;var O=f.formattedScore;var c=f.onScoreChanged;var h=f.isEmbeddedInWebview;var l=_.n0(),K=function(){var C;return _.t(R==null?void 0:(C=R())==null?void 0:C.buttonViewModel,_.dW)},q=function(){var C;
return(u==null?void 0:u())||Number(R==null?void 0:(C=R())==null?void 0:C.lastScore)||0},F=function(){var C;
return(O==null?void 0:O())||((C=K())==null?void 0:C.title)||""},w,m=1;
if(f=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))f=Number(f),m=isNaN(f)?1:f/100;_.pc(function(){c==null||c(q());var C;var d=_.H7((C=K())==null?void 0:C.onTap);if(d){C=_.t(d,znC);var p,J,M;C=_.t(C==null?void 0:(p=C.panelLoadingStrategy)==null?void 0:(J=p.inlineContent)==null?void 0:(M=J.dialogViewModel)==null?void 0:M.customContent,DUf)}else C=void 0;if(p=C)p.score=F()});
f=_.Ff(function(){var C,d,p=R==null?void 0:(C=R())==null?void 0:(d=C.loggingDirectives)==null?void 0:d.trackingParams;p&&_.Zn(_.vh().resolve(_.Cq),p);return!1});
_.bt(function(){if(l.value){var C=l.value.querySelector("button"),d=K();C&&d&&tCn(C,d);ic("yt-share-playable-with-high-score",function(){var p=q().toString(),J=R==null?void 0:R().onShareHighScoreCommand,M=R==null?void 0:R().highScoreShareClientParamIdentifier,P=h==null?void 0:h();J&&(P?(M=new tvf,p=_.FH(M,2,p),PB(J,p.JSC$10269_serializeBinary())):M&&(_.vh().resolve(PmY).clientParams.set(M,{miniAppClientParams:{highScore:p}}),O_7(J,!1)))})}});
var W=function(){var C=K();C&&(u==null?0:u())&&C.accessibilityText&&(C.accessibilityText=C.accessibilityText.replace(w,F()));w=F();return{numberValue:q(),numberText:F(),heightPx:36,fontSizeMultiplier:m,shouldAnimate:!(u==null||!u())&&!0}};
return _.a("yt-mini-app-score-button-view-model",{class:function(){var C={};return _.AS("mini-app-score-button-view-model-wiz",(C["mini-app-score-button-view-model-wiz--is-visible"]=q()!==0,C))},
el:l,"on:click":f},V1(!1,function(){return _.a("span",{style:"display:none;"},q)}),_.a(_.y5,{data:function(){var C;
return R==null?void 0:(C=R())==null?void 0:C.buttonViewModel}},{buttonViewModel:function(C){return _.a(_.TS,{data:C.data,
animatedTextProps:W})}}))},"Rd");var S_G=_.nf(function(f){var R,u=(R=_.Xs("yt-mini-app-is-theater-mode-enabled"))!=null?R:!1,O=_.E("enable_playable_container_save_button"),c=_.E("enable_play_next_destination_page_in_toolbar");R={};return _.a("ytm-mini-app-top-bar-view-model",null,_.a("div",{class:_.KL("yt-mini-app-top-bar-view-model",(R["yt-mini-app-top-bar-view-model--mobile"]=!1,R["yt-mini-app-top-bar-view-model--desktop"]=!0,R))},_.a("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.a(_.Q,{cond:function(){var h;
return!!f.data().backButtonEdu&&!((h=f.isExitMiniAppSeen)==null?0:h.call(f))},
then:function(){return _.a(_.y5,{data:function(){return f.data().backButtonEdu}},{buttonViewModel:_.TS})},
else:function(){return _.a(_.y5,{data:function(){return f.data().backButton}},{buttonViewModel:_.TS})}}),_.a(_.Q,{cond:function(){return f.data().viewAllButton&&!0},
then:function(){return _.a(_.y5,{data:function(){return f.data().viewAllButton}},{buttonViewModel:_.TS})}}),_.a(_.Q,{cond:function(){return f.data().title&&!0},
then:function(){return _.a("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return f.data().title})}})),_.a("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.a(_.Q,{cond:function(){var h;
return(h=f.isDesktopPlayPage)==null?void 0:h.call(f)},
then:function(){return _.a(_.RS,null,_.a(GyC,{highScoreButton:function(){return f.data().highScoreButton},
score:f.score,formattedScore:f.formattedScore,onScoreChanged:f.onScoreChanged,isEmbeddedInWebview:f.isEmbeddedInWebview}),_.a(BTC,{enableSaveButton:function(){return _.Jy(O)},
saveButton:function(){return f.data().saveButton},
isSaved:f.isSaved,onSaveToggled:function(){return f.onSaveToggled}}),_.a(oof,{menuButton:function(){return f.data().menuButton}}))},
else:function(){return _.a(_.Q,{cond:function(){return!1},
then:function(){return _.a(_.y5,{data:function(){return f.data().playPageButton}},{buttonViewModel:function(h){return _.a(_.TS,{data:h.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.a(GyC,{highScoreButton:function(){return f.data().highScoreButton},
score:f.score,formattedScore:f.formattedScore,onScoreChanged:f.onScoreChanged,isEmbeddedInWebview:f.isEmbeddedInWebview})}})}})),_.a("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.a(_.y5,{data:function(){return f.data().muteButton}},{toggleButtonViewModel:function(h){var l=h.data;
return _.a(_.Lr,{data:function(){var K,q;return Object.assign({},l(),{isToggled:(q=(K=f.isAudioEnabled)==null?void 0:K.call(f))!=null?q:!0})},
onToggle:f.onAudioToggled,useOutlinedIcon:!0})}}),_.a(_.y5,{data:function(){return f.data().theatreModeButton}},{toggleButtonViewModel:function(h){var l=h.data;
return _.a("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.a(_.Lr,{data:function(){return Object.assign({},l(),{isToggled:u})},
useOutlinedIcon:!0}))}}),_.a(xyk,{fullscreenButton:function(){return f.data().fullscreenButton}}),_.a(_.Q,{cond:function(){return _.Jy(c)&&f.data().viewAllButton&&!1},
then:function(){return _.a(_.y5,{data:function(){return f.data().viewAllButton}},{buttonViewModel:_.TS})}}),_.a(_.Q,{cond:function(){var h;
return!((h=f.isDesktopPlayPage)==null?0:h.call(f))},
then:function(){return _.a(_.RS,null,_.a(BTC,{enableSaveButton:function(){return _.Jy(O)},
saveButton:function(){return f.data().saveButton},
isSaved:f.isSaved,onSaveToggled:function(){return f.onSaveToggled}}),_.a(oof,{menuButton:function(){return f.data().menuButton}}))}}))))},"Sd");
S_G.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var oof=_.nf(function(f){return _.a(_.y5,{data:f.menuButton},{buttonViewModel:_.TS})},"Td"),BTC=_.nf(function(f){var R=f.enableSaveButton;
var u=f.saveButton;var O=f.isSaved;var c=f.onSaveToggled;return _.a(_.Q,{cond:function(){return R()&&!(u==null||!u())},
then:function(){return _.a(_.y5,{data:function(){var h=_.t(u==null?void 0:u(),_.Np),l;return{toggleButtonViewModel:Object.assign({},h,{isToggled:(l=O==null?void 0:O())!=null?l:!(h==null||!h.isToggled)})}}},{toggleButtonViewModel:function(h){return _.a(_.Lr,{data:h.data,
onToggle:c})}})}})},"Ud"),GyC=_.nf(function(f){var R=f.highScoreButton;
var u=f.score;var O=f.formattedScore;var c=f.onScoreChanged;var h=f.isEmbeddedInWebview;return _.a(_.y5,{data:R},{miniAppScoreButtonViewModel:function(l){return _.a(eSA,{data:l.data,score:u,formattedScore:O,onScoreChanged:c,isEmbeddedInWebview:h})}})},"Vd"),xyk=_.nf(function(f){f=f.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.a(_.RS,null):_.a(_.y5,{data:f},{buttonViewModel:_.TS})},"Wd");_.$yl=new _.Vi("DESKTOP_CURRENT_PAGE");var voA=_.nf(function(f){var R=f.data;var u=_.E("force_active_time_logging_webview"),O=!1,c=new WjG,h=void 0,l=void 0,K=_.vh().resolve(QNk),q=new abl,F=void 0,w=void 0,m=[],W=void 0,C=void 0,d=!1,p=!1,J=!1,M=!1,P=new _.lj,g=_.vh().resolve(PmY),x=_.vh().resolve(_.Hw),fh=_.vh().resolve(_.Y8(a3)),V,ZD=(V=_.vh().resolve(_.Y8(_.$yl)))==null?void 0:V.getCurrentPage(),mP=!1,NX=0,jt=function($5){$5.preventDefault();return $5.returnValue=""},Jn;
f=_.Z(_.qK(!((Jn=_.Xs("yt-mini-app-is-audio-enabled"))!=null&&!Jn),void 0,"HKETIe"));var zq=f.next().value,St=f.next().value,Gq;Jn=_.Z(_.qK(!((Gq=_.Xs("exit-mini-app-seen-state"))==null||!Gq),void 0,"YikM9"));var LC=Jn.next().value,wN=Jn.next().value;Gq=_.Z(_.qK(!1,void 0,"iTNqCb"));var GI=Gq.next().value,ak=Gq.next().value;Gq=_.Z(_.qK(void 0,void 0,"bU3Vbf"));var kC=Gq.next().value,Rw=Gq.next().value;Gq=_.Z(_.qK(void 0,void 0,"qd4Zt"));var KC=Gq.next().value,qe=Gq.next().value;Gq=_.Z(_.qK(!0,void 0,
"Cqc83e"));var LE=Gq.next().value,k5=Gq.next().value;Gq=_.Z(_.qK(!1,void 0,"oHovIe"));var yA=Gq.next().value,HG=Gq.next().value;Gq=_.Z(_.qK(void 0,void 0,"aeN11"));var GX=Gq.next().value,bf=Gq.next().value;Gq=_.Z(_.qK(0,void 0,"AEGRyb"));var $C=Gq.next().value,Bl=Gq.next().value,qt=_.sW(),Y5=function(){return R().isEmbeddedInWebview},tf=function(){return R().hasPlayNextShelf};
ic("yt-page-type-changed",function($5){if(_.E("enable_is_mini_app_page_active_bugfix"))$5.detail.newPageSubtype!=="mini_app"&&LE()&&Eh();else if($5=_.X$5()==="mini_app",$5!==LE())if(k5($5),$5){var ct;$5=(ct=R().playableId)==null?void 0:ct.toString();$5!==void 0&&window.location.href.includes($5)&&!p&&(M=!0,lK(),a8(wH.value))}else $5||Eh()});
ic("yt-action",function($5){$5.detail.actionName==="yt-engagement-panel-visible-changed"&&$5.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&$5.detail.args[2]==="PAmini_app_panel"&&Eh();_.E("enable_is_mini_app_page_active_bugfix")?$5.detail.actionName==="yt-history-load"&&!LE()&&(ZD==null?0:ZD.active)?(k5(!0),lK(),a8(wH.value)):$5.detail.actionName==="yt-history-load"&&LE()&&!R().isEmbeddedInWebview&&Wl():LE()&&$5.detail.actionName==="yt-history-load"&&(M?M=!1:R().isEmbeddedInWebview||Wl())});
_.jN(function(){CC()});
_.pc(function(){lK()});
var lK=function(){var $5=R().playableId,ct=R().localReleaseId,KE=R().derivedDeviceInterface;if(p)_.Ih(new _.ts("[MiniAppContainerViewModel] onEnter was called more than once"));else{p=!0;h=new fbE($5,ct,KE,document.visibilityState==="visible");cwG(h);l=new NTC($5);goi(K,$5);FjA(q,{showMiniAppAdCommand:R().showMiniAppAdCommand,isEmbeddedInWebview:R().isEmbeddedInWebview,playLogger:h});yj2()&&(C=document.body.style.backgroundColor,_.zD(document.body,"background-color","black"));FT();EE();P=new _.lj;
if(R().isEmbeddedInWebview){if($5=(new URLSearchParams(window.location.search)).get("postPlayNonce"))uFC(h,$5),mP=!0;c.initialize({onAudioStateLoaded:function(rN){Uh(rN)},
onMuteMiniApp:function(){Uh(!1)},
onUnmuteMiniApp:function(){Uh(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(rN){mP||(uFC(h,rN),mP=!0)},
confirmExitMiniApp:function(){var rN,bC,nG;return _.k(function(JT){if(JT.nextAddress==1)return R().confirmExitMiniAppCommand?_.A(JT,Promise.race([P.promise,Promise.resolve(!1)]),2):JT.return();(rN=JT.yieldResult)?!R().confirmExitMiniAppCommandEdu||(nG=(bC=LC)==null?void 0:bC())!=null&&nG?tu(R().confirmExitMiniAppCommand):(tu(R().confirmExitMiniAppCommandEdu),_.cT("exit-mini-app-seen-state","true",2592E6)):tu(R().closeMiniAppCommand);_.KG(JT)})},
onNativeBenchmarkingMessageReceived:function(rN){rN=xpE(_.R10(rN));if(_.FA(rN,_.Mm,3,GSE)){var bC=_.JM(rN,_.Mm,3,GSE),nG=c$h();var JT=Hi(nG.getSeconds())-Hi(bC.getSeconds());bC=_.Rj(nG,2)-_.Rj(bC,2);JT<0&&bC>0?(JT+=1,bC-=1E9):JT>0&&bC<0&&(--JT,bC+=1E9);JT=(new xz).setSeconds(JT);JT=_.br(JT,2,_.dN(bC),0);_.OO(rN,1,JT)}var E0;(E0=w)==null||E0.returnNativeBenchmarkingMessage(rN)},
multiplayer3pAckStateLoaded:function(rN){Wl(rN)},
exitMiniAppSeenStateLoaded:function(rN){R().confirmExitMiniAppCommandEdu&&wN(rN)},
onNavigateToNewMiniApp:function(){tu(R().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(rN){rN=new URLSearchParams(rN);var bC=void 0;rN.has("invite_code")&&(bC=new YpE,rN=rN.get("invite_code"),bC=_.FH(bC,1,rN));if(rN=bC){var nG;(nG=w)==null||nG.sendGameData(rN)}},
onPauseMiniApp:function(){O=!0;k_()},
onResumeMiniApp:function(){O=!0;kM()},
onAdFinished:function(rN){q.onAdFinished(rN)}});
R().showMultiplayer3pConsentDialogCommand||P.resolve(!0);tu(R().onContainerReadyCommand)}else uFC(h),P.resolve(!0);LjY(l,RSk(h));RSk(h).then(function(rN){rN={miniAppPlayData:{postPlayNonce:rN}};var bC,nG=(bC=R().loggingDirectives)==null?void 0:bC.trackingParams;nG&&_.wR().stateChanged(nG,rN)});
$5=R().showSignInDialogCommand;!Z_7()&&$5&&(_.cT("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),tu($5));R().confirmExitMiniAppCommand&&fh&&($5=Rk0(R().confirmExitMiniAppCommand))&&(fh.customConfirmationCommand=$5)}},CC=function(){C&&_.zD(document.body,"background-color",C);
d=!1;W&&W.release();l.flush().catch(function($5){_.Ih($5)});
K.flush().catch(function($5){_.Ih($5)});
hSk(h);Me();w=void 0;sNG(g)},Eh=function(){k5(!1);
CC();ak(!1);bf(void 0);Rw(void 0);qe(void 0);NX=0;Bl(0);p=!1},k_=function(){var $5;
($5=w)==null||$5.onPause();W&&W.release();l.flush().catch(function(ct){_.Ih(ct)});
K.flush().catch(function(ct){_.Ih(ct)});
XFC(h)},kM=function(){var $5;
($5=w)==null||$5.onResume();EE();$5=h;$5.isForeground=!0;MN($5,"PLAY_EVENT_TYPE_PLAY_RESUME")},Uh=function($5){var ct;
(ct=w)==null||ct.onAudioToggled($5);St($5)},Wl=function($5){R().showMultiplayer3pConsentDialogCommand&&(R().isEmbeddedInWebview&&$5!==void 0&&P.resolve($5),!$5&&_.X$5()==="mini_app"&&tu(R().showMultiplayer3pConsentDialogCommand))},Kv=function(){var $5,ct,KE,rN;
return _.k(function(bC){if(bC.nextAddress==1){!R().isLivestream||R().disableVideoCapture||($5=w)!=null&&$5.sendStartGameFrameCapture();ct=(new URL(window.location.href)).searchParams;if(ct.has("invite_code")){var nG=new YpE,JT=ct.get("invite_code");KE=_.FH(nG,1,JT);(rN=w)==null||rN.sendGameData(KE)}GI()||(ak(!0),nG=h,nG.state!==1?_.Ih(new _.ts("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ioF[nG.state])):(_.Xt("mini_app_ids_without_game_ready").includes(nG.JSC$14726_miniAppId)&&(nG.gameReady=
!0),nG.state=2,nG.beforeReady=!1,Iu(nG,"ma_ffr"),MN(nG,"PLAY_EVENT_TYPE_PLAY_READY")));return _.A(bC,P.promise,2)}tu(R().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();R().isEmbeddedInWebview||Wl();_.KG(bC)})},BG=function(){var $5=h;
$5.gameReady=!0;Iu($5,"ma_gr")},bK=function($5){var ct;
return _.k(function(KE){if(KE.nextAddress==1)return _.cl(KE,2),_.A(KE,pFf(l,$5),4);if(KE.nextAddress!=2)return _.Bf(KE,0);ct=_.ku(KE);tu(R().showSavingErrorPopupCommand);throw ct;})},vt=function(){var $5,ct;
return _.k(function(KE){if(KE.nextAddress==1)return _.cl(KE,2),_.A(KE,b$k(l),4);if(KE.nextAddress!=2)return $5=KE.yieldResult,KE.return($5);ct=_.ku(KE);tu(R().showLoadingErrorDialogCommand);throw ct;})},iK=function($5){h.logError($5)},Ob=function($5,ct,KE){lbl(h,$5,ct,KE)},Ek=function($5,ct){Kjt(h,$5,ct)},cf=function(){!u&&R().isEmbeddedInWebview||_.uc();
Z$f(h,!0);d||(window.addEventListener("beforeunload",jt,{capture:!0}),d=!0)},Ct=function($5){var ct,KE,rN,bC,nG,JT,E0;
return _.k(function(tM){if(tM.nextAddress==1)return K&&(!F||F<$5)&&$5>0?_.A(tM,noH(K,$5),3):tM.jumpTo(0);ct=tM.yieldResult;KE=_.Z(ct);rN=KE.next().value;bC=KE.next().value;nG=rN;JT=bC;((E0=nG)==null?0:E0.displayString)&&JT&&(Rw(JT),qe(nG.displayString));_.KG(tM)})},Gd=function($5){var ct=R().onBenchmarkingMessageReceivedCommand;
if(ct){var KE=c$h();_.cz($5,3,GSE,KE);PB(ct,SpA($5))}},AZ=function($5){var ct=R().onGameFrameReceivedCommand;
if(ct){var KE=new bpF;var rN=new ykH;var bC=NH($5,1);rN=_.C0(rN,1,bC);$5=_.bH($5,2);$5=_.FH(rN,2,$5);KE=_.OO(KE,2,$5);PB(ct,jgi(KE))}},tn=function($5){var ct=R().onGameAudioDataReceivedCommand;
if(ct){var KE=new bpF;var rN=new NBi;$5=_.bH($5,1);rN=_.FH(rN,1,$5);KE=_.OO(KE,4,rN);PB(ct,jgi(KE))}},MX=function(){var $5=new URLSearchParams(window.location.search);
if(R().isEmbeddedInWebview&&$5&&$5.get("override_hl")==="true"&&$5.get("hl"))return $5.get("hl");$5=document.documentElement.lang;return $5!==""?$5:_.PW},o7=function($5){var ct=R().onShareInviteCodeCommand;
if(ct)if(R().isEmbeddedInWebview){var KE=new tvf;$5=_.FH(KE,1,$5);PB(ct,yLk($5))}else KE=R().inviteCodeShareClientParamIdentifier,g.clientParams.set(KE,{miniAppClientParams:{inviteCode:$5}}),tu(ct)},ml=function($5){var ct,KE,rN;
return _.k(function(bC){if(bC.nextAddress==1)return ct=R().onMiniAppOpenYtContentRequested,K&&_.E("enable_open_yt_content")&&ct?_.A(bC,VRA(K,$5),3):bC.jumpTo(0);KE=bC.yieldResult;if(KE==="OK")if(R().isEmbeddedInWebview){var nG=new WCk;rN=F0(nG,2,bx,el($5));PB(ct,CwY(rN))}else x.clientData.set("video_id",$5),tu(ct);_.KG(bC)})},X5=function($5){NX+=_.Rj($5,3);
$5=Math.min(Math.log(1+NX/15E6*9)/Math.log(10),.99);Bl($5);Dp($5)},Dp=_.mC(function($5){var ct=R().updateLoadingProgressCommand;
if(ct){var KE=new WCk;$5=F0(KE,3,bx,_.Km($5));PB(ct,CwY($5))}},100),A9=function($5){return myF(q,$5)},EE=function(){var $5,ct;
(($5=_.pyh())==null?void 0:(ct=$5.wakeLock)==null?void 0:ct.request)!=null&&_.pyh().wakeLock.request("screen").then(function(KE){W=KE}).catch(function(){})},wH=_.sW();
_.pc(function(){R().isSupportedCountry&&(Z_7()||_.E("enable_sign_in_promo")||!R().showSignInDialogCommand?a8(wH.value):tu(R().onMiniAppReadyCommand))});
var Wt=function(){return _.a("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return GI()?0:-1},
el:wH})},a8=function($5,ct){ct=ct===void 0?!1:ct;
var KE=hf();KE&&(ct||KE.toString()!==$5.getAttribute("src"))&&(w=Fbq(R().source,{isAudioEnabled:zq,onFirstFrameReady:Kv,onGameReady:BG,onSave:bK,onLoad:vt,onError:iK,onSdkCalled:Ob,onSdkPerformanceUpdate:Ek,onClick:cf,onSendHighScore:Ct,onBenchmarkingMessageReceived:Gd,getLanguage:MX,onShareInviteCode:o7,onResourceLoaded:X5,onOpenYTContent:ml,onShowMiniAppAd:A9,onGameFrameReceived:AZ,onGameAudioReceived:tn},$5,KE),W7($5,"load",function(){Iu(h,"ma_il");W7($5,"load",function(){a8($5,!0)})}),_.D0($5,
KE))},hf=function(){var $5=R().url;
if($5&&($5=_.z2($5),$5!==null)){if(R().source&&R().source==="MINI_APP_SOURCE_GAMESNACKS")$5=_.u_($5,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.E("enable_origin_query_parameter_bugfix")){var ct=_.NS(_.hZ7($5.toString()));ct=new URLSearchParams(ct||"");ct.set("origin",window.location.origin);ct=ct.toString();$5=_.k3($5).toString();$5=_.lh(qet.exec($5)[0]+(ct.trim()?"#"+ct:""))}return $5}},QK=function(){var $5={};
$5=_.KL("yt-mini-app-container-view-model__loading-screen",($5["yt-mini-app-container-view-model__loading-screen--fade-out"]=GI,$5));var ct=function(){return GI()?1:$C()};
return _.a("div",{class:$5},_.a(_.y5,{data:function(){return R().splashScreen}},{miniAppSplashScreenViewModel:function(KE){return _.a(MRC,{data:KE.data,
loadingProgress:ct})}}))},FT=function(){m=[];
m.push(_.y0(window,"visibilitychange",function(){J||O&&Y5()||(document.visibilityState==="visible"?kM():k_())}));
m.push(_.y0(window,"pagehide",function(){CC()}));
m.push(_.y0(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&qt.value.dispatchEvent(new Event("tap"))},0)}));
m.push(_.y0(qt.value,"pointerdown",function(){Z$f(h,!1)},!0));
m.push(_.y0(qt.value,"pause",function(){J=!0;k_()}));
m.push(_.y0(qt.value,"play",function(){J=!1;kM()}));
m.push(_.y0(qt.value,"exit",function(){CC()}));
var $5=navigator.keyboard,ct=$5&&$5.lock;m.push(_.y0(window,qJC,function(){HG(aWH());aWH()?(R().hasPlayNextShelf&&Gw("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),KB("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),ct&&$5.lock(["Escape"])):(R().hasPlayNextShelf&&KB("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Gw("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),ct&&$5.unlock())}));
R().showMultiplayer3pConsentDialogCommand&&m.push(_.y0(window,"yt-playables-ack-3p-data-usage",function(){Y_H(K)}));
R().confirmExitMiniAppCommandEdu&&m.push(_.y0(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.cT("exit-mini-app-seen-state","true",2592E6)}))},Me=function(){m.forEach(function($5){Ex($5)});
window.removeEventListener("beforeunload",jt,{capture:!0})},tu=function($5){$5&&O_7($5,R().isEmbeddedInWebview||!1)},KB=function($5,ct){$5=_.Z(qt.value.getElementsByClassName($5));
for(var KE=$5.next();!KE.done;KE=$5.next())KE.value.classList.add(ct)},Gw=function($5,ct){$5=_.Z(qt.value.getElementsByClassName($5));
for(var KE=$5.next();!KE.done;KE=$5.next())KE.value.classList.remove(ct)};
return function(){var $5={};$5=_.KL("yt-mini-app-container-view-model",($5["yt-mini-app-container-view-model--desktop"]=!0,$5["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return R().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},$5["yt-mini-app-container-view-model--ios-web-view"]=yj2(),$5["yt-mini-app-container-view-model--no-top-bar"]=function(){return!R().topBar},$5["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return R().hasPlayNextShelf},$5["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return R().hasPlayNextShelf},$5["yt-mini-app-container-view-model--show-peek-below"]=function(){return!yA()&&R().hasPlayNextShelf},$5));
var ct={};ct=_.KL("yt-mini-app-container-view-model__content",(ct["yt-mini-app-container-view-model__content--desktop-content"]=!0,ct["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return R().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},ct["yt-mini-app-container-view-model--desktop-play-page"]=function(){return R().hasPlayNextShelf},ct));
return _.a("mini-app-container-view-model",{el:qt},_.a("div",{class:$5},_.a(_.Q,{cond:function(){return R().topBar&&!yA()},
then:function(){return _.a(_.y5,{data:function(){return R().topBar}},{miniAppTopBarViewModel:function(KE){return _.a(S_G,{data:KE.data,
isAudioEnabled:zq,onAudioToggled:function(rN){Uh(rN)},
score:kC,formattedScore:KC,onScoreChanged:function(rN){F=rN},
isEmbeddedInWebview:Y5,isSaved:GX,onSaveToggled:function(rN){bf(rN)},
isExitMiniAppSeen:LC,isDesktopPlayPage:tf})}})}}),_.a("div",{class:ct},_.a(_.Q,{cond:LE,
then:function(){return Wt()}}),_.a(_.Q,{cond:function(){return!R().isEmbeddedInWebview},
then:function(){return QK()}}))))}()},"Xd");
voA.idomCompat=!0;_.ii(voA,"mini-app-container-view-model",{props:{data:_.SG}});var i$l=_.nf(function(f){var R=f.data;return _.a("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.a("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Ff(function(){var u=R().onTap;u&&_.Ux(u)})},_.a(_.Q,{cond:function(){return R().icon},
then:function(u){return _.a(_.WM,{icon:function(){return u().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.a("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return R().title})))},"Yd");
i$l.idomCompat=!0;var rwk=_.nf(function(f){var R=_.sW(),u=_.Z(_.qK(void 0,void 0,"kFCJ0c")),O=u.next().value,c=u.next().value;u=_.Z(_.qK(void 0,void 0,"PIPgWd"));var h=u.next().value,l=u.next().value;u=_.Z(_.qK(void 0,void 0,"rV66ob"));var K=u.next().value,q=u.next().value,F=function(){var M=O();return M!==void 0?Math.abs(M):void 0},w=function(){var M=F();
return M===void 0||M<=3},m=function(){var M=F();
var P=h(),g=K();M=M!==void 0&&P!==void 0&&g!==void 0?P-g-M:void 0;return M===void 0||M<=3},W=function(M){R.value&&R.value.scrollBy({top:0,
left:(_.Tf("HTML_DIR")==="rtl"?-1:1)*M*R.value.clientWidth,behavior:"smooth"})},C=function(){var M;
c((M=R.value)==null?void 0:M.scrollLeft);var P;l((P=R.value)==null?void 0:P.scrollWidth);var g;q((g=R.value)==null?void 0:g.clientWidth)},d=function(){W(-.5)},p=function(){W(.5)};
u=_.Ff(function(){C()});
_.NW(function(){C();if(R.value){var M=new ResizeObserver(C);M.observe(R.value);_.jN(function(){M.disconnect()})}});
var J={};return _.a("yt-sponsorships-scrollable-shelf",{class:_.KL("ytdSponsorshipsScrollableShelfHost",f.className)},_.a("div",{class:_.KL("ytdSponsorshipsScrollableShelfContent",(J.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return f.data().previousButton&&f.data().nextButton&&!w()&&!m()},J.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return f.data().previousButton&&!w()&&m()},J.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return f.data().nextButton&&
w()&&!m()},J)),
el:R,"on:scroll":u},f.children),_.a(_.Q,{cond:function(){return!w()},
then:function(){return _.a(_.y5,{data:function(){return f.data().previousButton}},{buttonViewModel:function(M){return _.a(_.TS,{data:M.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:d})}})}}),_.a(_.Q,{cond:function(){return!m()},
then:function(){return _.a(_.y5,{data:function(){return f.data().nextButton}},{buttonViewModel:function(M){return _.a(_.TS,{data:M.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:p})}})}}))},"Zd");
rwk.idomCompat=!0;var R2E=_.nf(function(f){var R=f.data;f={};return _.a("yt-sponsorships-hub",{class:_.KL("ytdSponsorshipsHubHost",(f.ytdSponsorshipsHubHostIndented=function(){return R().indented},f))},_.a("div",{class:"ytdSponsorshipsHubHeader"},_.a("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.a("div",{class:"ytdSponsorshipsHubAvatar"},_.a(_.y5,{data:function(){return R().avatar}},{avatarViewModel:_.NC})),_.a(_.Q,{cond:function(){return R().badgeImage},
then:function(u){return _.a("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.a("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.a("div",{class:"ytdSponsorshipsHubBadge"},_.a(_.gR,{data:u,targetWidth:24,targetHeight:24,alt:""}))))}})),_.a("div",{class:"ytdSponsorshipsHubDetails"},_.a("div",{class:"ytdSponsorshipsHubTierName"},function(){return R().tierName}),_.a("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return R().membershipType}),_.a("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return R().membershipDurationOrExpiry})),_.a("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.a(_.y5,{data:function(){return R().manageButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.a(_.y5,{data:function(){return R().actionMenuButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.a("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return R().perksTitle}),_.a(rwk,{data:function(){return{previousButton:R().previousPerkButton,
nextButton:R().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.a("div",{class:"ytdSponsorshipsHubPerkCards"},_.a(_.y5,{data:function(){return R().perkCards}},{sponsorshipsHubPerkCardViewModel:i$l}),_.a(_.Q,{cond:function(){return R().viewAllPerksButton},
then:function(u){return _.a(fPF,{data:u})}}))))},"$d");
R2E.idomCompat=!0;var fPF=_.nf(function(f){var R=f.data;return _.a("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.a(_.y5,{data:function(){return R().button}},{buttonViewModel:_.TS}),_.a("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.a("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return R().title}),_.a("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return R().subtitle})))},"ae");
fPF.idomCompat=!0;_.ii(R2E,"yt-sponsorships-hub",{props:{data:_.SG}});_.u8I=_.nf(function(f){var R=f.data;return _.a("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Qm({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var u;return((u=R().badgeCutoutRadius)!=null?u:14)+"px"}})},_.a("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.a(_.y5,{data:function(){return R().startAvatar}},{avatarViewModel:_.NC}),_.a(_.y5,{data:function(){return R().endAvatar}},{avatarViewModel:_.NC})),_.a(_.y5,{data:function(){return R().badge}},{contentPreviewImageViewModel:function(u){return _.a("div",
{class:"ytDualAvatarViewModelBadge"},_.a(_.iS,{data:u.data}))}}))},"be");
_.u8I.idomCompat=!0;var cYt=_.nf(function(f){var R=f.data;var u,O=!((u=_.vh().resolve(_.Y8(_.oF)))==null||!u());f=_.Qt(function(){var w,m,W=O?(w=R().header)==null?void 0:w.backgroundColorDarkMode:(m=R().header)==null?void 0:m.backgroundColorLightMode;if(W!==void 0)return _.ML(W)},void 0,"UX2G6c");
u=_.Qt(function(){var w,m;return O?(w=R().header)==null?void 0:w.backgroundImagePart1Dark:(m=R().header)==null?void 0:m.backgroundImagePart1Light},void 0,"GPAi1d");
var c=_.Qt(function(){var w,m;return O?(w=R().header)==null?void 0:w.backgroundImagePart2Dark:(m=R().header)==null?void 0:m.backgroundImagePart2Light},void 0,"nboJld"),h=_.Qt(function(){return _.Tf("HTML_DIR")==="rtl"},void 0,"LGJceb"),l=_.sW(),K=!1,q=function(){var w=l.value;
if(w&&!K){var m,W=(m=w.parentElement)==null?void 0:m.parentElement;if(W)for(w=w.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),m=0;m<w.length;++m){var C=w[m];if(C instanceof HTMLElement){W.scrollTo({top:C.offsetTop+C.clientHeight/2-W.clientHeight/2,behavior:"smooth"});K=!0;break}}}};
_.bt(function(){var w=l.value;if(w){var m=new ResizeObserver(q);m.observe(w);_.jN(function(){m.disconnect()})}});
var F={};return _.a("yt-sponsorships-perks-list",{el:l,class:_.KL("ytdSponsorshipsPerksListHost",(F.ytdSponsorshipsPerksListHorizontalPadding=function(){return R().horizontalPaddingEnabled},F))},_.a("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.a("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Qm({"background-color":f})},_.a("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.a(_.Q,{cond:u,then:function(w){var m={};return _.a("div",{class:_.KL((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=O,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!O,m.ytdSponsorshipsPerksListFlipped=h,m))},_.a(_.gR,{data:w,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.a("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.a(_.Q,{cond:c,
then:function(w){var m={};return _.a("div",{class:_.KL((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=O,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!O,m.ytdSponsorshipsPerksListFlipped=h,m))},_.a(_.gR,{data:w,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.a("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.a(_.y5,{data:function(){var w;
return(w=R().header)==null?void 0:w.dualAvatar}},{dualAvatarViewModel:_.u8I})))),_.a("div",{class:"ytdSponsorshipsPerksListBody"},_.a("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return R().title}),_.a(_.Q,{cond:function(){return R().perks},
then:function(w){return _.a(_.EC,{each:w},function(m,W){var C={};return _.a("div",{class:_.KL("ytdSponsorshipsPerksListPerkContainer",(C.ytdSponsorshipsPerksListSelectedPerk=function(){var d=W(),p=R().selectedPerkIndex;return d===p},C))},_.a(_.Q,{cond:function(){return W()>0},
then:function(){return _.a("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.a("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.a(_.Q,{cond:function(){return m.icon},
then:function(d){return _.a(_.WM,{icon:function(){return d().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.a("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.a("div",{class:"ytdSponsorshipsPerksListPerkTitle"},m.title),_.a("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.a(_.YO,{text:m.description})),_.a(_.Q,{cond:function(){return m.instructions},
then:function(){var d,p;return _.a("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.a("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(d=m.instructions)==null?void 0:d.title),_.a("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.a(_.YO,{text:(p=m.instructions)==null?void 0:p.text})))}}))),_.a(_.Q,{cond:function(){return m.emoji},
then:function(d){return _.a("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.a(_.EC,{each:function(){return d()}},function(p){return _.a(_.gR,{data:p,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.a(OPC,{data:m}))})}})))},"ce");
cYt.idomCompat=!0;var OPC=_.nf(function(f){var R=f.data;var u=function(l,K){return l===K},O=function(){var l=R();
l=_.t(l==null?void 0:l.badgesShelf,buA);return l!==void 0&&l!==null?l:{previousButton:{},nextButton:{}}},c=_.n0(),h=function(){var l=c.value;
if(l){var K=l.parentElement;if(K){l=l.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var q=0;q<l.length;++q){var F=l[q];if(F instanceof HTMLElement){K.scrollTo({left:F.offsetLeft+F.clientWidth/2-K.clientWidth/2,behavior:"instant"});break}}}}};
_.bt(function(){var l=c.value;if(l){var K=new ResizeObserver(h);K.observe(l);_.jN(function(){K.disconnect()})}});
return _.a("div",null,_.a(_.Q,{cond:function(){return R().badges},
then:function(l){return _.a(rwk,{data:O},_.a("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:c},_.a(_.EC,{each:function(){return l()}},function(K,q){var F={},w={},m={};
return _.a("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.a(_.Q,{cond:function(){return q()>0},
then:function(){return _.a("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.a("div",{class:_.KL("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(F.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return u(q(),R().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!u(q(),R().currentBadgeIndex)},F))},_.a("div",{class:_.KL("ytdSponsorshipsPerksListLoyaltyBadge",(w.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return u(q(),
R().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!u(q(),R().currentBadgeIndex)},w))},_.a(_.Q,{cond:function(){return K.image},
then:function(W){var C={};return _.a("div",{class:_.KL((C.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return u(q(),R().currentBadgeIndex)},C.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!u(q(),R().currentBadgeIndex)},C))},_.a(_.gR,{data:W,
alt:""}))}})),_.a("div",{class:_.KL("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(m.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return u(q(),R().currentBadgeIndex)},m))},K.title)))})))}}))},"de");
OPC.idomCompat=!0;_.ii(cYt,"yt-sponsorships-perks-list",{props:{data:_.SG}});_.ii(_.nf(function(f){return _.a("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.a(_.Q,{cond:function(){return f.data().image},
then:function(R){return _.a(_.gR,{className:"ytwFantasyEmptyStateViewModelImage",data:R,ariaHidden:!0,alt:""})}}),_.a(_.YO,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return f.data().title}}),_.a(_.YO,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return f.data().subtitle}}),_.a(_.y5,{data:function(){return f.data().primaryButton}},{buttonViewModel:function(R){return _.a(_.TS,{data:R.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ee"),"ytw-fantasy-empty-state-view-model",{props:{data:_.SG}});var Xgi;var C9B=_.WJ({buttonRenderer:_.BP});_.RI(y$2);_.hS(y$2,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var ou=function(){var f=_.U.apply(this,arguments)||this;f.hideJoinButtonBeforeSubscribed=_.E("hide_join_button_before_subscribed");f.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return f};
_.y(ou,_.U);_.X=ou.prototype;
_.X.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"}}}};
_.X.updateJoinButtonOverrides=function(){var f,R;(f=_.b(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(R=f.polymerController)==null||R.set("overrides",this.joinButtonOverrides);if(f=_.b(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))f.overrides=this.joinButtonOverrides};
_.X.handleButtonRefreshAction=function(f){if(f=_.t(f,vRE))this.set("data.membershipButton",f.membershipButton),this.notifyPath("data.membershipButton")};
_.X.onYtServiceRequestError=function(f){_.f9(this.hostElement,f.detail.error.message)};
_.X.handleUnsubscribeAction=function(){var f,R,u;((f=this.data)==null?void 0:(R=f.membershipButton)==null?void 0:(u=R.buttonRenderer)==null?void 0:u.style)==="STYLE_PRIMARY"&&_.b(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Vy.Object.defineProperties(ou.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.subscriptionStateEntity)==null||!f.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.data)==null?void 0:f.membershipButton,u;f=(R==null?void 0:R.buttonRenderer)||_.t(R==null?void 0:(u=R.timedAnimationButtonRenderer)==null?void 0:u.buttonRenderer,_.z9);return(f==null?void 0:f.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(f==null?void 0:f.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(f==null?void 0:f.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
ou.prototype.onYtServiceRequestError=ou.prototype.onYtServiceRequestError;ou.prototype.updateJoinButtonOverrides=ou.prototype.updateJoinButtonOverrides;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ou.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],ou.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ou.prototype,"data",void 0);_.B([_.T("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],ou.prototype,"hideJoin",null);_.B([_.I(),_.S("design:type",String)],ou.prototype,"subscribeKey",void 0);_.B([_.I({selectorArgs:["subscribeKey"],selector:Con}),_.S("design:type",Object)],ou.prototype,"subscriptionStateEntity",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ou.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.B([_.T("subscriptionStateEntity"),_.I({reflectToAttribute:!0}),_.S("design:type",Object),_.S("design:paramtypes",[])],ou.prototype,"subscribed",null);_.B([_.T("subscribed","data.membershipButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],ou.prototype,"joinButtonOverrides",null);
_.B([_.qM("joinButtonOverrides"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ou.prototype,"updateJoinButtonOverrides",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ou.prototype,"onYtServiceRequestError",null);ou=_.B([_.e({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],ou);
var h2l=_.Ox()(ou,"ytd-video-owner-renderer",function(){if(Xgi===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" 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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);Xgi=f}f=Xgi;return f},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.ii(_.nf(function(f){var R=f.data;var u;f=_.Z(_.qK(!((u=_.Xs("yt-mini-app-is-theater-mode-enabled"))==null||!u),void 0,"LUeOgf"));var O=f.next().value,c=f.next().value,h;u=(h=_.vh().resolve(_.Y8(zPY)))!=null?h:function(){return _.a("div",null)};
_.gJ("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){c(!0);_.cT("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.gJ("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){c(!1);_.cT("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
h={};f={};var l={};return _.a("mini-app-play-page-renderer",{class:_.KL("miniAppPlayPageRendererHost",(h.miniAppPlayPageRendererHostDetailsView=function(){return!O()},h))},_.a("div",{class:_.KL("miniAppPlayPageRendererGameContainer",(f.miniAppPlayPageRendererGameContainerDetailsView=function(){return!O()},f))},_.a(_.y5,{data:function(){return R().containerViewModel}},{miniAppContainerViewModel:voA}),_.a("div",{class:"miniAppPlayPageRendererChannelContainer"},_.a(_.y5,{data:function(){return R().channel}},
{videoOwnerRenderer:function(K){return _.a(h2l,{data:K.data})}}),_.a(_.y5,{data:function(){return R().subscribeButton}},{subscribeButtonViewModel:function(K){return _.a(_.Le,{data:K.data,
isOverlay:!1,animateWidth:!0})}})),_.a(_.Q,{cond:function(){return!O()&&R().description},
then:function(){return _.a("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.a("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return R().description}))}})),_.a("div",{class:_.KL("miniAppPlayPageRendererPlayNextContainer",(l.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!O()},l))},_.a(_.y5,{data:function(){return R().sectionList}},{sectionListRenderer:u})))},"fe"),"mini-app-play-page-renderer",{props:{data:_.SG}});var xJ=function(){var f=_.U.apply(this,arguments)||this;f.isSearch=!1;f.isConstrainedList=!1;f.hasChipsBar=!1;f.inReplyPanel=!1;f.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"}};f.monitorScroll=!0;f.SCROLL_ANIMATION_DURATION_MS=300;f.nextContinuation={continuationType:"sectionListContinuation"};return f};
_.y(xJ,_.U);_.X=xJ.prototype;
_.X.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(f){switch(f.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.E("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.E("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.X.created=function(){var f=this;this.JSC$14864_scrollAnimation=new _.TZ(function(R){f.hostElement.scrollTop=R})};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.X.getItemsPath=function(){return"data.contents"};
_.X.replacePrimaryContent=function(f){this.set("data.contents",f)};
_.X.computeHasSortFilter=function(f){return!!f&&!!f.sortFilterSubMenuRenderer};
_.X.computeShouldScrollInPanel=function(f){var R;return!!(f==null?0:(R=f.scrollPaneStyle)==null?0:R.scrollable)};
_.X.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.c2(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.X.scrollToTop=function(){this.hostElement.scrollTop=0};
_.X.scrollToItemSection=function(f){if(f=this.getItemByIdentifier(f))f=this.getScrollPositionForItem(f),this.hostElement.scrollTop!==f&&this.JSC$14864_scrollAnimation.start(this.hostElement.scrollTop,f,this.SCROLL_ANIMATION_DURATION_MS)};
_.X.getItemByIdentifier=function(f){var R=this.contents.querySelectorAll("ytd-item-section-renderer");if(R&&R.length!==0){var u=Array.from(R).findIndex(function(O){return O.sectionIdentifier===f});
return R[u===-1?0:u]}};
_.X.getScrollPositionForItem=function(f){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===f)return 0;f=_.J5(f).y+this.hostElement.scrollTop-_.J5(this.hostElement).y;return Math.min(f,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Vy.Object.defineProperties(xJ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.targetId)==="browse-feedFEclips"}}});
xJ.prototype.onScroll=xJ.prototype.onScroll;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],xJ.prototype,"ytLazyListBehavior",void 0);_.B([_.z(_.UH.YtNextContinuationBehavior),_.S("design:type",Object)],xJ.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.z(_.sqY),_.S("design:type",Object)],xJ.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],xJ.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xJ.prototype,"data",void 0);_.B([_.I({value:2}),_.S("design:type",Number)],xJ.prototype,"initialCount",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],xJ.prototype,"autoFill",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.S("design:type",Boolean)],xJ.prototype,"hasSortFilter",void 0);_.B([_.I({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.S("design:type",Boolean)],xJ.prototype,"hideBottomSeparator",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.S("design:type",Boolean)],xJ.prototype,"shouldScrollInPanel",void 0);
_.B([_.I(),_.S("design:type",Object)],xJ.prototype,"isSearch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],xJ.prototype,"isConstrainedList",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],xJ.prototype,"responsiveSizing",void 0);_.B([_.I(),_.S("design:type",Object)],xJ.prototype,"hasChipsBar",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],xJ.prototype,"pageSubtype",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],xJ.prototype,"engagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],xJ.prototype,"liveChatEngagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],xJ.prototype,"inReplyPanel",void 0);_.B([_.a4("#action-button"),_.S("design:type",HTMLElement)],xJ.prototype,"actionButton",void 0);_.B([_.I(),_.S("design:type",Object)],xJ.prototype,"scrollUpButtonData",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],xJ.prototype,"engagementPanelDropdown",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],xJ.prototype,"engagementPanelDialog",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],xJ.prototype,"isClipList",null);_.B([_.a4("#contents"),_.S("design:type",HTMLElement)],xJ.prototype,"monitorScrollElement",void 0);_.B([_.a4("#contents"),_.S("design:type",HTMLElement)],xJ.prototype,"contents",void 0);
_.B([_.Kf("scroll"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xJ.prototype,"onScroll",null);xJ=_.B([_.e({is:"ytd-section-list-renderer",disableElementRegistration:!0})],xJ);
var ZPA=_.Ox()(xJ,"ytd-section-list-renderer",function(){if(JQk===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);JQk=f}f=JQk;return f},{mode:1});var lPk;var kmA;var KXG;var qDl;var SZ=function(){return _.U.apply(this,arguments)||this};
_.y(SZ,_.U);SZ.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
SZ.prototype.onLikeButtonClick=function(f){f.stopPropagation();f.preventDefault()};
_.Vy.Object.defineProperties(SZ.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.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)})}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],SZ.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],SZ.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],SZ.prototype,"ytRendererStamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SZ.prototype,"data",void 0);
_.B([_.I({selectorArgs:["data.likeStatusEntityKey"],selector:zw}),_.S("design:type",Object)],SZ.prototype,"likeStatusEntity",void 0);_.B([_.T("data","likeStatusEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],SZ.prototype,"likeButtonRenderer",null);SZ=_.B([_.e({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],SZ);
_.G(SZ,"ytd-slim-metadata-toggle-button-renderer",function(){if(qDl!==void 0)return qDl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return qDl=f},{mode:1});var $J=function(){var f=_.U.apply(this,arguments)||this;f.minimizePipBreakages=_.E("web_pip_minimize_breakages");f.showEqualizer=_.E("web_enable_playlist_video_lockup_equalizer");f.watchColorUpdate=_.E("kevlar_watch_color_update");f.actionMap={};return f};
_.y($J,_.U);_.X=$J.prototype;_.X.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"}}}};
_.X.computeEditableClass=function(f){return f&&f.menu?"editable":""};
_.X.computeSelected=function(f){return!(f==null||!f.selected)};
_.X.computeUseColorPalette=function(f){return!!((f==null?0:f.lightColorPalette)&&(f==null?0:f.darkColorPalette))};
_.X.computeLargerPlaylistThumbs=function(f,R){return _.E("web_enable_playlist_bigger_thumbnails")&&!R};
_.X.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.X.onYtServiceRequestSent=function(f,R){R.endpoint&&this.isHideEnclosingAction(R.endpoint)&&!this.selected&&iIC(_.Mk(),this.data.videoId)};
_.X.isHideEnclosingAction=function(f){var R=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",f);f=this.get("likeEndpoint.status",f)==="INDIFFERENT";return R||f};
_.X.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.X.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Vy.Object.defineProperties($J.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var f;return!!(this.withinMiniplayer&&((f=this.data)==null?0:f.actionButtons))}}});
$J.prototype.onYtServiceRequestSent=$J.prototype.onYtServiceRequestSent;$J.prototype.canReorderChanged=$J.prototype.canReorderChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],$J.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.BX),_.S("design:type",Object)],$J.prototype,"ytdLockupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$J.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"withinMiniplayer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],$J.prototype,"minimizePipBreakages",void 0);_.B([_.I({computed:"computeSelected(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"selected",void 0);
_.B([_.I({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"useColorPalette",void 0);_.B([_.I({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"largerPlaylistThumbs",void 0);_.B([_.I(),_.S("design:type",Object)],$J.prototype,"showEqualizer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"canReorder",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"touchPersistentDragHandle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],$J.prototype,"handleIsHovered",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],$J.prototype,"watchColorUpdate",void 0);_.B([_.I(),_.S("design:type",String),_.S("design:paramtypes",[])],$J.prototype,"reorderIcon",null);
_.B([_.T("largerPlaylistThumbs"),_.S("design:type",Number),_.S("design:paramtypes",[])],$J.prototype,"thumbnailWidth",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],$J.prototype,"showActionButtons",null);_.B([_.QR("canReorder"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$J.prototype,"canReorderChanged",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],$J.prototype,"onYtServiceRequestSent",null);$J=_.B([_.e({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],$J);
_.G($J,"ytd-playlist-panel-video-renderer",function(){if(KXG!==void 0)return KXG;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KXG=f},{mode:2});var gg=function(){return _.U.apply(this,arguments)||this};
_.y(gg,_.U);gg.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gg.prototype,"data",void 0);gg=_.B([_.e({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],gg);
_.G(gg,"ytd-playlist-panel-supported-items",function(){if(kmA!==void 0)return kmA;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return kmA=
f},{mode:1});AhA=!0;jFF("\\P{N}");var d8n;var AYf=_.Fa("END_OF_PLAYLIST",void 0,"End of playlist"),aPf=_.Fa("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),s6=function(){var f=_.U.apply(this,arguments)||this;f.minimizePipBreakages=_.E("web_pip_minimize_breakages");f.updatedCoursePanel=_.E("move_three_dot_menu_to_playlist_panel_header_for_courses");f.hideHeaderText=!1;f.useColorPalette=!1;f.collapsed=!1;f.collapsedPreServerOverride="not_tracked";f.isHovered=!1;f.modernPanels=_.E("kevlar_watch_modern_panels");
f.expandLabel=_.Fa("MINIPLAYER_EXPAND_LABEL");f.collapseLabel=_.Fa("MINIPLAYER_COLLAPSE_LABEL");f.isFloating=!1;f.metaPanel=!1;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};f.currentIndex=void 0;return f};
_.y(s6,_.U);_.X=s6.prototype;
_.X.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"}}}};
_.X.created=function(){this.scrollThrottle=new _.vJ(this.onThrottledScroll,1E3,this)};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
_.X.computeOverflowMenuData=function(f){return f&&f.menu?f.menu:null};
_.X.computeCollapsible=function(f){return!f};
_.X.computeHasPlaylistButtons=function(f){return!(!f||!f.playlistButtons)};
_.X.computeHasSeparateSaveButton=function(f){return!(!f||!f.saveButton)};
_.X.computeHasToolbarButton=function(f,R){return!(!f||!(R||f.saveButton||f.menu))};
_.X.computePlaylistType=function(f){if(f&&f.playlistId)return f.playlistId.substring(0,4)};
_.X.computeCanReorder=function(f){return f?f.playlistId&&f.playlistId.startsWith("TLPQ")?!0:!!f.isEditable&&!f.isInfinite:!1};
_.X.attached=function(){var f=this;try{_.vh().resolve(_.Ji).setPlaylistComponent(this.hostElement)}catch(R){if(_.E("kevlar_park_on_playlist_token_killswitch"))throw R;_.TC().parkOrScheduleJob(function(){_.vh().resolve(_.Ji).setPlaylistComponent(f.hostElement)},2,"ci")}_.fv(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.X.detached=function(){_.Rp(this.hostElement)};
_.X.computeTrailingIcon=function(f,R,u){return u?R?"yt-icons:collapse":"yt-icons:close":R?"yt-icons:expand":_.E("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.X.computeIndexMessage=function(f,R){return b_7(f+1)+" / "+b_7(R)};
_.X.onRenderStamperFinished=function(){if(this.scrollForStampDom){var f=!0;this.isHovered&&(f=!1);if(this.collapsed||this.hidden)f=!1;f&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.X.collapseChanged=function(){var f=this;this.collapsed||(_.Cr(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.X.hiddenChanged=function(){var f=this;this.hidden||_.Cr(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.scrollToCurrentVideo()})};
_.X.setupReordering=function(){var f=_.b(this.hostElement).querySelector("#items");DCi?_.AcG(this.ytReorderableBehavior,f,f,"playlist-drag-handle"):_.AcG(this.ytReorderableBehavior,f,f)};
_.X.scrollToCurrentVideo=function(){var f=this;_.JA.addJob(function(){var R=_.b(f.hostElement).querySelector("#items");if(R){R.style.setProperty("padding-bottom","");var u=_.b(f.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(u){R=u.parentElement||_.Cp(document);var O=R||_.Cp(document);var c=_.J5(u),h=_.J5(O),l=_.uiA(O);if(O==_.Cp(document)){var K=c.x-O.scrollLeft;c=c.y-O.scrollTop}else K=c.x-h.x-l.left,c=c.y-h.y-l.top;u=ihk(u);h=O.clientHeight-
u.height;l=O.scrollLeft;var q=O.scrollTop;l+=K-(O.clientWidth-u.width)/2;O=new _.b_(l,q+(c-h/2));R.scrollLeft=O.x;R.scrollTop=O.y}}},8)};
_.X.dataChanged=function(){var f=this;_.qSE(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.su(this,function(){_.dJ(f.ytTaskEmitterBehavior.getTaskManager(),function(){f.ytRendererBehavior.markDirty();f.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.X.onTheaterModeChanged=function(){_.E("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.X.onFullscreenChanged=function(){_.E("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.X.updateNowPlayingOverlay=function(){_.E("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.X.onPlaylistLockupNowPlaying=function(f,R){R&&(this.activeNowPlayingRenderer=R);this.updateNowPlayingOverlay()};
_.X.onScroll=function(){this.scrollThrottle.fire()};
_.X.onThrottledScroll=function(){var f=this;_.dJ(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.ytRendererBehavior.markDirty()})};
_.X.onToggleExpanded=function(f){!this.collapsible||f&&(_.gY(f).tagName==="A"||_.$G(_.$S(f),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.X.setCollapsed=function(f){this.collapsible&&(this.collapsed=f,_.c_(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.X.handleCollapsedFromData=function(f){if(f){var R=f.playlistPanelCollapseState;R==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||R==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),R=R==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==R&&this.setCollapsed(R)):this.currentPlaylistId!==f.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(R=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==R&&this.setCollapsed(R),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=f.playlistId}};
_.X.handleDrop=function(f){var R=f.currDragItem;f=R.data.playlistSetVideoId;var u=_.x5(R.parentNode.childNodes,R),O=void 0;u>0&&(O=R.parentNode.childNodes[u-1].data.playlistSetVideoId);R=_.Mk();if(R.responsePlaylistData&&R.responsePlaylistData.contents){var c=Y1t(f,R.responsePlaylistData);R.responsePlaylistData=(0,_.dq.unsafeClone)(R.responsePlaylistData);dXl(R.responsePlaylistData.contents,c,u);R.queueProxy?pXH(R.queueProxy,c,u,f,O):R.playlistProxy&&pXH(R.playlistProxy,c,u,f,O);_.P1(R,_.U1(R,R.response?
R.response.autoplayRenderer:void 0))}};
_.X.handleDarkModeChange=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
_.X.colorPaletteChanged=function(){var f,R=((f=this.data)==null?void 0:f.contents)||[],u;f=_.Z(R);for(R=f.next();!R.done;R=f.next()){R=R.value;var O=void 0;if((O=R.playlistPanelVideoRenderer)==null?0:O.selected){f=R.playlistPanelVideoRenderer;O=R=void 0;(u=this.isDarkTheme?(R=f)==null?void 0:R.darkColorPalette:(O=f)==null?void 0:O.lightColorPalette)&&_.be(this.hostElement,u);break}}this.useColorPalette=!!u};
_.Vy.Object.defineProperties(s6.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.playlistId)&&!((R=this.data)==null||!R.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var f=_.vh().resolve(_.Y8(_.Ji)),R;if(((R=this.data)==null?0:R.contents)&&(f==null?0:f.hasAutoplayData())){var u;if(((u=this.playlistLoopStateEntity)==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ONE"){if(f=this.data.currentIndex,f!==void 0){var O,c;var h=(O=this.data.contents[f])==null?void 0:(c=O.playlistPanelVideoRenderer)==null?void 0:c.title}}else{var l,K=(l=_.t(f.getAutoplayEndpoint(),_.$7))==null?void 0:l.videoId,q,F;h=(q=this.data.contents.find(function(w){var m;
return((m=w.playlistPanelVideoRenderer)==null?void 0:m.videoId)===K}))==null?void 0:(F=q.playlistPanelVideoRenderer)==null?void 0:F.title}return h}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)!=null&&f.nextVideoLabel?this.nextVideoTitle?_.$Z(this.data.nextVideoLabel)+":":AYf:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?0:f.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.S8(aPf);var R;return(R=this.data)==null?void 0:R.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.playlistButtons)==null?void 0:(u=R.menuRenderer)==null?void 0:u.topLevelButtons;if(O)for(f=_.Z(O),R=f.next();!R.done;R=f.next())if(R=R.value,R.playlistLoopButtonRenderer)return R.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var f;return!!(this.collapsed&&((f=this.data)==null?0:f.nextVideoLabel))}}});
s6.prototype.colorPaletteChanged=s6.prototype.colorPaletteChanged;s6.prototype.onPlaylistLockupNowPlaying=s6.prototype.onPlaylistLockupNowPlaying;s6.prototype.updateNowPlayingOverlay=s6.prototype.updateNowPlayingOverlay;s6.prototype.onFullscreenChanged=s6.prototype.onFullscreenChanged;s6.prototype.onTheaterModeChanged=s6.prototype.onTheaterModeChanged;s6.prototype.dataChanged=s6.prototype.dataChanged;s6.prototype.hiddenChanged=s6.prototype.hiddenChanged;s6.prototype.collapseChanged=s6.prototype.collapseChanged;
s6.prototype.onRenderStamperFinished=s6.prototype.onRenderStamperFinished;s6.prototype.onMouseLeave=s6.prototype.onMouseLeave;s6.prototype.onMouseEnter=s6.prototype.onMouseEnter;_.B([_.z(_.Lu),_.S("design:type",Object)],s6.prototype,"ironResizableBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(kjF.YtPlaylistPanelBehavior),_.S("design:type",Object)],s6.prototype,"ytPlaylistPanelBehavior",void 0);_.B([_.z(_.V3.YtTaskEmitterBehavior),_.S("design:type",Object)],s6.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.z(_.aTC),_.S("design:type",Object)],s6.prototype,"ytReorderableBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],s6.prototype,"ytdReduxBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],s6.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],s6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],s6.prototype,"autoplayData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],s6.prototype,"withinMiniplayer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"minimizePipBreakages",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"updatedCoursePanel",void 0);_.B([_.I({computed:"setMenuData_(data)"}),_.S("design:type",Object)],s6.prototype,"menuRendererData",void 0);_.B([_.I({computed:"computeOverflowMenuData(data)"}),_.S("design:type",Object)],s6.prototype,"overflowMenuDataTopRow",void 0);_.B([_.I({computed:"computeOverflowMenuData(data)"}),_.S("design:type",Object)],s6.prototype,"overflowMenuData",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"hideHeaderText",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"useColorPalette",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.S("design:type",Boolean)],s6.prototype,"collapsible",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"collapsed",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],s6.prototype,"hidden",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.S("design:type",Boolean)],s6.prototype,"hasPlaylistButtons",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.S("design:type",Boolean)],s6.prototype,"hasSeparateSaveButton",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.S("design:type",Boolean)],s6.prototype,"hasToolbar",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.S("design:type",String)],s6.prototype,"playlistType",void 0);_.B([_.I(),_.S("design:type",Object)],s6.prototype,"isHovered",void 0);_.B([_.I({selectorArgs:["playlistLoopStateEntityKey"],selector:_.p4n}),_.S("design:type",Object)],s6.prototype,"playlistLoopStateEntity",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"modernPanels",void 0);_.B([_.I({value:56}),_.S("design:type",Number)],s6.prototype,"scrollMargin",void 0);_.B([_.I({computed:"computeCanReorder(data)"}),_.S("design:type",Boolean)],s6.prototype,"canReorder",void 0);_.B([_.I(),_.S("design:type",Object)],s6.prototype,"expandLabel",void 0);_.B([_.I(),_.S("design:type",Object)],s6.prototype,"collapseLabel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"isFloating",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],s6.prototype,"metaPanel",void 0);_.B([_.I({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.S("design:type",String)],s6.prototype,"trailingIcon",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],s6.prototype,"isDarkTheme",void 0);
_.B([_.I({selector:_.Jh}),_.S("design:type",Boolean)],s6.prototype,"miniplayerIsActive",void 0);_.B([_.I({selector:function(f){return f.watch.playerState}}),
_.S("design:type",Number)],s6.prototype,"playerState",void 0);_.B([_.I({selector:_.Mp}),_.S("design:type",Boolean)],s6.prototype,"isFullscreen",void 0);_.B([_.I({selector:_.IA}),_.S("design:type",Boolean)],s6.prototype,"isTheaterMode",void 0);_.B([_.I(),_.S("design:type",Object)],s6.prototype,"activeNowPlayingRenderer",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],s6.prototype,"moveThreeDotMenuToTopRow",null);
_.B([_.T("data","autoplayData","playlistLoopStateEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],s6.prototype,"nextVideoTitle",null);_.B([_.T("data","nextVideoTitle"),_.S("design:type",String),_.S("design:paramtypes",[])],s6.prototype,"nextVideoLabel",null);_.B([_.T("collapsed"),_.S("design:type",String),_.S("design:paramtypes",[])],s6.prototype,"buttonAriaLabel",null);
_.B([_.T("data","playlistId","longBylineText"),_.S("design:type",Object),_.S("design:paramtypes",[])],s6.prototype,"mixLongByLine",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],s6.prototype,"playlistLoopStateEntityKey",null);_.B([_.Kf("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"onMouseEnter",null);
_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"onMouseLeave",null);_.B([_.I({reflectToAttribute:!0}),_.T("data","collapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],s6.prototype,"showNextVideoHeader",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"onRenderStamperFinished",null);
_.B([_.qM("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"collapseChanged",null);_.B([_.qM("hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"hiddenChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"dataChanged",null);
_.B([_.qM("isTheaterMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"onTheaterModeChanged",null);_.B([_.qM("isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"onFullscreenChanged",null);_.B([_.qM("playerState","miniplayerIsActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"updateNowPlayingOverlay",null);
_.B([_.Kf("yt-playlist-lockup-now-playing-active"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],s6.prototype,"onPlaylistLockupNowPlaying",null);_.B([_.qM("data","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],s6.prototype,"colorPaletteChanged",null);s6=_.B([_.e({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],s6);
_.FXC=_.Ox()(s6,"ytd-playlist-panel-renderer",function(){if(lPk===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);lPk=f}f=lPk;return f},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var wgF;var n1=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_button_rework");return f};
_.y(n1,_.U);n1.prototype.computeShouldButtonBeVertical=function(f,R){return f||R};
n1.prototype.onYtServiceRequestSent=function(f,R){(f=_.t(R.endpoint,_.GB))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.aA("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:f.status})):this.handleLikeEndpoint(f))};
n1.prototype.computelikeStatusEntityKey=function(f){return f==null?void 0:f.likeStatusEntityKey};
n1.prototype.handleLikeEndpoint=function(f){f.status==="LIKE"?this.JSC$14889_ytdDislikeToggleButtonRenderer.toggle(!1):f.status==="DISLIKE"?this.JSC$14889_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14889_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14889_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Vy.Object.defineProperties(n1.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var f;return J$t(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(f=this.likeStatusEntity)==null?void 0:f.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var f;if(this.data&&((f=this.data)==null||!f.hideDislikeButton)){var R;return J$t(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(R=this.likeStatusEntity)==null?void 0:R.likeStatus)}}}});
n1.prototype.onYtServiceRequestSent=n1.prototype.onYtServiceRequestSent;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],n1.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],n1.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],n1.prototype,"vertical",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],n1.prototype,"textTransform",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],n1.prototype,"useShortsIcon",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],n1.prototype,"underIconLabel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],n1.prototype,"modern",void 0);_.B([_.I({value:"left"}),_.S("design:type",String)],n1.prototype,"buttonTooltipPosition",void 0);
_.B([_.I(),_.S("design:type",Object)],n1.prototype,"overrides",void 0);_.B([_.a4("#like-button"),_.S("design:type",Object)],n1.prototype,"JSC$14889_ytdLikeToggleButtonRenderer",void 0);_.B([_.a4("#dislike-button"),_.S("design:type",Object)],n1.prototype,"JSC$14889_ytdDislikeToggleButtonRenderer",void 0);_.B([_.T("data","likeStatusEntity.likeStatus"),_.S("design:type",Object),_.S("design:paramtypes",[])],n1.prototype,"likeButton",null);
_.B([_.T("data","likeStatusEntity.likeStatus"),_.S("design:type",Object),_.S("design:paramtypes",[])],n1.prototype,"dislikeButton",null);_.B([_.I({computed:"computelikeStatusEntityKey(data)"}),_.S("design:type",String)],n1.prototype,"likeStatusEntityKey",void 0);_.B([_.I({selectorArgs:["likeStatusEntityKey"],selector:zw}),_.S("design:type",Object)],n1.prototype,"likeStatusEntity",void 0);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],n1.prototype,"onYtServiceRequestSent",null);n1=_.B([_.e({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],n1);
var mQl=_.Ox()(n1,"ytd-like-button-renderer",function(){if(wgF===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);wgF=f}f=wgF;return f},{mode:1});_.Q9I={};
_.Q9I.YtConditionalRendererBehavior=[_.r.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(f,R){var u=this,O,c;return _.k(function(h){switch(h.nextAddress){case 1:if(!R)return u.hidden=!0,u.showSpinner=!1,h.return();if((O=f)==null?0:(c=O.visibilityCondition)==null?0:c.mode)switch(f.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return h.jumpTo(5);default:return h.jumpTo(6)}u.showSpinner=
!1;u.hidden=!0;return _.A(h,u.shouldShow_(f),4);case 4:u.hidden=!h.yieldResult;h.jumpTo(0);break;case 5:return _.A(h,u.shouldShow_(f),8);case 8:u.showSpinner=h.yieldResult;u.hidden=!1;h.jumpTo(0);break;case 6:return u.showSpinner=!1,_.A(h,u.shouldShow_(f),9);case 9:u.hidden=!h.yieldResult,_.KG(h)}})},
shouldShow_:function(f){return f&&f.supportedDatas&&f.supportedDatas.rendererVisibilityConditionData&&f.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(f.supportedDatas.rendererVisibilityConditionData.showIf):f&&f.visibilityCondition&&f.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(f.visibilityCondition.showIf):f&&f.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(f.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(f){switch(f){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(f){switch(f){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var f=_.OJ(this.hostElement,"yt-get-mdx-status");return f.length==1&&f[0].connected},
isLocationPermissionGranted_:function(){var f;return _.k(function(R){return R.nextAddress==1?navigator.permissions?_.A(R,navigator.permissions.query({name:"geolocation"}),3):R.jumpTo(2):R.nextAddress!=2?(f=R.yieldResult,R.return(Promise.resolve(f.state==="granted"))):R.return(Promise.resolve(!1))})}}];var WXi=function(f,R){R=R===void 0?{}:R;return function(u){var O=document.createElement(f),c;var h=(c=O.polymerController)!=null?c:O;oAh(O,h,u,R);return O}}("yt-icon"),E6f=_.E("web_bypass_polymer_yt_icon")&&_.E("kevlar_use_wil_icons")?_.nf(function(f){var R=f.icon;
var u=f.active;var O=f.className;var c=f.style;var h=f.dataSelected;var l=f.dataDisabled;var K=f.role;var q=f.themeOverride;var F=f.animateIcon;var w=f.ariaHidden;var m=f.ariaExpanded;var W=f.ariaLabel;var C=f.id;var d=f.iconFilter;var p=function(){var g=R==null?void 0:R(),x=null,fh=void 0;g&&(g=ud.computeIcon(g),g=Qol(g),g.length&&(x=g[1],fh=g[0]));return{iconName:x,iconSetName:fh}};
f=_.Z(_.qK(void 0,void 0,"MMbMuc"));var J=f.next().value,M=f.next().value;_.pc(function(){ud.getIconShapeData(p().iconName,u==null?void 0:u(),void 0,void 0,p().iconSetName).then(M)});
var P=function(){return{iconWidth:"100%",iconHeight:"100%",iconFilter:d==null?void 0:d()}};
return _.a(_.Q,{cond:F,then:function(){return _.a(WXi,{icon:R,active:u,className:O,style:c,dataSelected:h,dataDisabled:l,role:K,themeOverride:q,ariaHidden:w,ariaExpanded:m,ariaLabel:W,id:C,iconFilter:d})},
else:function(){return _.a(_.Q,{cond:J,then:function(g){return _.a(Bg7,{data:g,options:P})}})}})},"ge"):WXi;var t9i=function(f){var R=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];$L7();_.V4("ytglobal.ytUtilActivityCallback_",function(){_.c_(f,"yt-user-activity")});
new Rh(function(){return R.JSC$14903_onMouseMove});
document.addEventListener("scroll",function(){return R.onScroll});
window.addEventListener("resize",function(){return R.onResize})},CTE=function(f,R,u){R in f.eventJobIds||(u=_.LS().addLowPriorityJob(function(){_.uc();
delete f.eventJobIds[R]},u),f.eventJobIds[R]=u)};
t9i.prototype.onScroll=function(f){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):f.target===document&&CTE(this,"scroll",200)};
t9i.prototype.onResize=function(){CTE(this,"resize",200)};
t9i.prototype.JSC$14903_onMouseMove=function(){CTE(this,"mousemove",100)};
_.Yi=function(f){f.scrollEventsToIgnore+=1;f.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){f.scrollEventsToIgnore--},500))};var yYk=function(f){this.element=f;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
yYk.prototype.showFeedbackDialog=function(f,R,u,O){var c=dQG();if(!c)return!1;var h=oB7();h.productId=c;R&&(h.flow="submit",h.report={description:R});u&&(dQG()==="59"?h.callback=_.MW(function(){_.Jr("userFeedbackEvent",{});u()}):h.callback=_.MW(u));
h.bucket=O||_.Tf("GOOGLE_FEEDBACK_BUCKET","Other");NsI(h);f=LXH(this,"GFEEDBACK",f);try{_.GBI(h,f)}catch(l){return _.IS(l),!1}return!0};
yYk.prototype.showHelpDialog=function(f,R,u){var O=this,c=dQG();if(!c)return!1;var h={helpCenterPath:"/youtube",productData:LXH(this,"GUIDED_HELP",u)};NsI(h);var l=oB7();l.context=f||h.productData.context||"default";l.defaultHelpArticleId=R;l.enableSendFeedback=!0;(_.Ph("gapi.load")||function(K,q){return q()})("client",function(){try{var K=bGk(c,h);
if(_.E("web_always_load_chat_support")&&!O.chatSupportLoaded)try{K.JSC$7980_loadChatSupport(l),O.chatSupportLoaded=!0}catch(q){}K.startHelp(l)}catch(q){_.IS(q)}})};
var dQG=function(){var f=_.Tf("GOOGLE_FEEDBACK_PRODUCT_ID");f||_.IS(Error("bi"));return f},NsI=function(f){f&&(f.locale=_.E("kevlar_help_use_locale")?_.Tf("INNERTUBE_CONTEXT_HL","en"):_.Tf("HTML_LANG","en"))},LXH=function(f,R,u){var O=f.productData;
delete O.origin;O.device=_.Q2();var c;a:{if(c=document.createElement("canvas")){var h=c.getContext("experimental-webgl",{stencil:!0});if(h){var l=h.getExtension("WEBGL_debug_renderer_info");if(l){c=h.getParameter(l.UNMASKED_RENDERER_WEBGL);break a}}if(h=c.getContext("webgl")){c=h.getParameter(h.RENDERER);break a}}c=null}O.gpu=c;O.isSDC=!!_.Tf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(c=_.Tf("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.dq.extend(O,c);_.Gne(R,O);_.BL0(O);(f=_.c_(f.element,"yt-get-autonav-pause-debug-state"))&&
f.length&&(O.autonav_pause_state=f[0]);f=_.qg();O.browser_resolution=f.width+"\u00d7"+f.height+"@"+(window.devicePixelRatio||1)+"x";u&&_.dq.extend(O,u);return O};
yYk.prototype.resetProductData=function(){this.productData={}};var bPl=function(f){this.feedbackManager=new yYk(f)};
bPl.prototype.showFeedbackDialog=function(f,R,u,O){return this.feedbackManager.showFeedbackDialog(f,R,u,O)};
bPl.prototype.showHelpDialog=function(f,R,u){return this.feedbackManager.showHelpDialog(f,R,u)};var pgk=function(){this.baseUrl="";this.aTag=document.createElement("a")},tLf=function(f,R,u){u=u===void 0?{}:u;
u.pbj||(u.pbj=1);u=_.DOX(R,u);f.baseUrl&&u&&!_.$8(u)[1]&&!_.gv(u)&&(R=f.baseUrl,lB(R,"/")&&(R=R.slice(0,-1)),_.hn(u,"/")&&(u=u.slice(1)),u=R+"/"+u);Lj(f.aTag,mo(u||""));return f.aTag.href};
pgk.prototype.fetchData=function(f){return _.H_t(f)};
pgk.prototype.postData=function(f,R){var u={method:"POST"};if(R){for(var O=_.Z(Object.keys(R)),c=O.next();!c.done;c=O.next()){c=c.value;var h=R[c];_.OE(h)&&(R[c]=JSON.stringify(h))}u.postParams=R}return _.H_t(f,u)};
_.CpF=function(f,R,u,O,c){f=tLf(f,R,u);if(!f)throw O=Error("ci"),Object.assign(O,{params:R}),O;return _.H_t(f,c,O)};
pgk.prototype.requestDataForServiceEndpoint=function(f,R){if(_.t(f,_.mw7))return this.fetchData("/getAccountSwitcherEndpoint");R=R||{};var u=_.t(f,Rnf);u?R.se=u.base64EncodedServiceEndpoint:R.sej=JSON.stringify(f);(u=_.z4())&&_.E("enable_service_ajax_csn")&&(R.csn=u);R.theme=_.NL();_.t(f,FTh)&&_.Tf("DELEGATION_CONTEXT")&&(R.delegation_context=JSON.stringify(_.Tf("DELEGATION_CONTEXT")));u=null;for(var O in f)if(lB(O,"Endpoint")||lB(O,"Command")){u=O;break}if(!u){var c=Error("di");Object.assign(c,{params:f});
_.bUt(c,"WARNING");return new _.ah(function(l,K){K(c)})}O={name:u};
var h;(u=(h=_.t(f,_.AH))==null?void 0:h.signal)&&(O.signal=u);(h=_.oS(window.location.href))&&h.internalcountrycode&&(O.internalcountrycode=h.internalcountrycode);h="/service_ajax";_.E("debug_forward_web_query_parameters")&&(h=_.BeP(h,window.location.search));h=_.S0(h,O);f.clickTrackingParams&&_.VP(h,{itct:f.clickTrackingParams});return this.postData(h,R)};_.j9k=new _.Vi("GFEEDBACK_TOKEN");var DQF;var JYI;var z2F;var TsC;var V6=function(){var f=_.U.apply(this,arguments)||this;f.compact=!1;return f};
_.y(V6,_.U);V6.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
V6.prototype.computeHasIcon_=function(f){return!!f};
V6.prototype.isSignInIcon_=function(f){return f=="yt-icons:prompted_sign_in"};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.Q9I.YtConditionalRendererBehavior),_.S("design:type",Object)],V6.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],V6.prototype,"data",void 0);
_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",Object)],V6.prototype,"icon_",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.S("design:type",Boolean)],V6.prototype,"hasIcon_",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.S("design:type",Boolean)],V6.prototype,"signInIcon_",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],V6.prototype,"compact",void 0);
V6=_.B([_.DO({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],V6);
_.G(V6,"yt-player-error-message-renderer",function(){if(TsC===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;z2F===void 0&&(z2F=document.createElement("template"));var O=z2F;u.call(R,O.content.cloneNode(!0),f.content.firstChild);TsC=f}f=TsC;return f},{mode:2});var HPI;var IPC;var YJ=function(){return _.U.apply(this,arguments)||this};
_.y(YJ,_.U);YJ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YJ.prototype.computeIcon_=function(f){return f?"yt-icons:"+f.iconType.toLowerCase():"error_outline"};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],YJ.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",Object)],YJ.prototype,"icon_",void 0);YJ=_.B([_.DO({is:"yt-player-kav-renderer",disableElementRegistration:!0})],YJ);
_.G(YJ,"yt-player-kav-renderer",function(){if(IPC===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;HPI===void 0&&(HPI=document.createElement("template"));var O=HPI;u.call(R,O.content.cloneNode(!0),f.content.firstChild);IPC=f}f=IPC;return f},{mode:2});_.ii(_.nf(function(f){var R=_.sW(),u=_.Z(_.qK(0,void 0,"gCmSbf")),O=u.next().value,c=u.next().value;u=_.Z(_.qK(null,void 0,"Rj9zMe"));var h=u.next().value,l=u.next().value;_.bt(function(){$8B(R.value,c,l);R.value.scrollIntoView()});
u=gB7.bind(null,f.data,O);ic("resize",function(){var K=h();if(O()===1&&K!==null){var q;(q=window.grecaptcha)==null||q.reset(K)}});
return _.a("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.a("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.a("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var K,q;return(K=f.data().accessibility)==null?void 0:(q=K.accessibilityData)==null?void 0:q.label}),_.a(_.YO,{text:u,
className:_.KL("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.a("div",{el:R,class:"ytwPlayerCaptchaViewModelGridItem"})))},"he"),"yt-player-captcha-view-model",{props:{data:_.v7}});var sTq=!1;_.M9I=_.nf(function(f){var R=f.data;return _.a("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.a(_.Q,{cond:function(){return R().icon},
then:function(u){return _.a("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.a(_.gR,{data:u,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.a(_.Q,{cond:function(){return R().title},
then:function(u){return _.a("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.a(_.YO,{text:u}))}}),_.a(_.Q,{cond:function(){return R().description},
then:function(u){return _.a("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.a(_.YO,{text:u}))}}),_.a(_.y5,{data:function(){return R().primaryButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.a(_.y5,{data:function(){return R().secondaryButton}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ie");
_.M9I.idomCompat=!0;var PTf=_.nf(function(f){var R=f.data;_.sY();return _.a("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.a("div",{class:"player-interstitial-renderer-wiz__scrim"},_.a(_.y5,{data:function(){return R().content}},{interstitialViewModel:_.M9I})))},"je");
PTf.idomCompat=!0;_.ii(PTf,"yt-player-interstitial-renderer",{props:{data:_.SG}});var vw=function(){var f=_.U.apply(this,arguments)||this;f.noBackground=!1;f.compact=!1;f.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return f};
_.y(vw,_.U);vw.prototype.configureRendererStamper=function(){return{data:{id:"container",mapping:{playerErrorMessageRenderer:{component:"yt-player-error-message-renderer",properties:{compact:"[[compact]]"}},playerCaptchaViewModel:"yt-player-captcha-view-model",playerInterstitialRenderer:"yt-player-interstitial-renderer",playerKavRenderer:"yt-player-kav-renderer",enforcementMessageViewModel:"ytd-enforcement-message-view-model"}}}};
vw.prototype.onUpdatePlayerErrorMessageCommand_=function(f){if(_.t(f,qQA)){var R;if(f=(R=_.t(f,qQA))==null?void 0:R.newPlayerErrorMessageRenderer)this.data=f}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],vw.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vw.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],vw.prototype,"status",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vw.prototype,"noBackground",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vw.prototype,"compact",void 0);vw=_.B([_.DO({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],vw);
var UQt=_.Ox()(vw,"yt-playability-error-supported-renderers",function(){if(JYI===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;DQF===void 0&&(DQF=document.createElement("template"));var O=DQF;u.call(R,O.content.cloneNode(!0),f.content.firstChild);JYI=f}f=JYI;return f},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var nB7=void 0,Yg2=void 0;var r$B=new qkH;var e2f=function(f){this.store=f;this.vkh=new _.F1E},XFh=function(f,R,u){var O,c;
if(!(c=((O=R.playabilityStatus)==null?void 0:O.status)!=="OK")){f=f.store;var h;c=R.offlineState&&((h=R.videoDetails)==null?0:h.videoId)?_.E("enable_pl_r_c_cd")?bu2(f.getState().entities,R.videoDetails.videoId):!!fl2(f.getState().entities,R.videoDetails.videoId):!1}if(c)return!0;c=cGl(R);if(c===1){if(_.E("ab_v_vid_sig")){var l,K=(l=R.videoDetails)==null?void 0:l.videoId;if(!K||!u||K!==u){var q;R=new _.ts("282054944_vid",{nxB:u,ivd:(q=R.videoDetails)==null?void 0:q.videoId});_.TL(R)}}return!0}z7t=
0;var F,w;q=(K=R.auxiliaryUi)==null?void 0:(F=K.messageRenderers)==null?void 0:(w=F.bkaEnforcementMessageViewModel)==null?void 0:w.displayType;if(c!==3&&(q==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||q==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;q={reason:_.fg(_.Fa("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.E("ks_something_wrong_learn_more")?L7n("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.fg(_.Fa("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:_.fg("282054944")};GmA(R,{playerErrorMessageRenderer:q});return!1},hSD=function(f,R){if(VGn(R)){_.AN(1,!0);
var u=(u=VGn(R))&&_.VC5()?u:void 0;u?(GmA(R,{enforcementMessageViewModel:u}),f.vkh.increment("IN_PLAYER"),_.AN(5)):(f.vkh.increment("SKIP_DISPLAY"),_.AN(2))}},GmA=function(f,R){f.playabilityStatus=Object.assign({},f.playabilityStatus,{status:"ERROR",
errorScreen:R});f.videoDetails=void 0};
e2f.prototype.handleResponse=function(f,R){if(f.playabilityStatus){var u,O,c,h=(R==null?void 0:(u=R.innerTubeRequest)==null?void 0:u.videoId)||(R==null?void 0:(O=R.innerTubeRequest)==null?void 0:(c=O.playerRequest)==null?void 0:c.videoId);XFh(this,f,h)&&hSD(this,f)}};
e2f[nW]=[lk];var O$X=new _.Vi("ADBLOCK_DETECTION_SERVICE_TOKEN");var vB=function(f){this.qyp=f};
vB.prototype.bindInnertubeChallengeFetcher=function(f){this.qyp.bicf(f)};
vB.prototype.registerChallengeFetchedCallback=function(f){this.qyp.bcr(f)};
vB.prototype.getLatestChallengeResponse=function(){return this.qyp.blc()};var SDl;_.iI=function(f,R,u){var O=this;this.network=f;this.options=R;this.networkStatusManager=u;this.o4=null;if(R.useBotguardEverywhere){var c=new _.lj;this.o4=c.promise;_.Oe.ytAtRC&&_.mQ(_.JA,function(){var h,l;return _.k(function(K){if(K.nextAddress==1){if(!_.Oe.ytAtRC)return K.return();h=BsC(null);return _.A(K,O.lJ(h),2)}l=K.yieldResult;_.Oe.ytAtRC&&_.Oe.ytAtRC(JSON.stringify(l));_.KG(K)})});
kN2().then(function(h){var l,K,q,F;return _.k(function(w){if(w.nextAddress==1)return h.bindInnertubeChallengeFetcher(function(m){return O.lJ(BsC(m))}),_.A(w,DGP(),2);
l=w.yieldResult;K=h.getLatestChallengeResponse();q=K.challenge;if(!q)throw Error("ei");F={challenge:q,cA:YR(q),us:l,bgChallenge:new n9};c.resolve(F);h.registerChallengeFetchedCallback(function(m){m=m.challenge;if(!m)throw Error("fi");m={challenge:m,cA:YR(m),us:l,bgChallenge:new n9};O.o4=Promise.resolve(m)});
_.KG(w)})})}else R.preload&&o6E(this,new Promise(function(h){_.dJ(_.JA,function(){h(xQE(O))},0)}))};
SDl=function(f){var R={preload:!0,useBotguardEverywhere:_.E("attmusi")},u=!1;if(typeof R==="boolean")var O={preload:R};else typeof R==="undefined"?O={preload:!0}:(O=R,u=!!R.bGr);R=u?void 0:new _.$M;_.iI.instance=new _.iI(f,O,R);return _.iI.instance};
_.iI.prototype.tOX=function(){var f=this;return _.k(function(R){return R.nextAddress==1?_.A(R,Promise.race([f.o4,null]),2):R.return(!!R.yieldResult)})};
_.iI.prototype.uZq=function(f,R,u){var O=this,c,h,l;return _.k(function(K){O.o4===null&&o6E(O,xQE(O));c=!1;h={};l=function(){var q,F,w;return _.k(function(m){switch(m.nextAddress){case 1:return _.A(m,O.o4,2);case 2:q=m.yieldResult;h.challenge=q.challenge;if(!q.us){"c1a"in q.cA&&(h.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");m.jumpTo(3);break}F=Object.assign({},{c:q.challenge,e:f},R);_.cl(m,4);c=!0;if(_.E("attbs")&&!_.E("attmusi")){w=_.AmC(q.us,{d5:F});m.jumpTo(6);break}return _.A(m,q.us.snapshot({d5:F}),
7);case 7:w=m.yieldResult;case 6:w?h.webResponse=w:h.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Bf(m,3);break;case 4:_.ku(m),h.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(f==="ENGAGEMENT_TYPE_PLAYBACK"){var W=q.cA,C={};if(W.c6a){var d=Number(_.Tf("DCLKSTAT",0));C.reportingStatus=String(Number(W.c)^(isNaN(d)?0:d))}W.c6b&&(C.broadSpectrumDetectionResult=String(Number(W.c)^Number(_.Tf("CATSTAT",0))));h.adblockReporting=C}return m.return(h)}})};
return K.return(Promise.race([l(),$Qf(u,function(){var q=Object.assign({},h);c&&(q.error="ATTESTATION_ERROR_VM_TIMEOUT");return q})]))})};
var BsC=function(f){var R={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};f&&(R.interpreterHash=f);return R},xQE=function(f,R){R=R===void 0?0:R;
var u,O,c,h,l,K,q,F,w,m,W,C;return _.k(function(d){switch(d.nextAddress){case 1:u=BsC(Fof().yK3);if(_.E("att_fet_ks"))return _.cl(d,7),_.A(d,f.lJ(u),9);_.cl(d,4);return _.A(d,g6Y(f,u),6);case 6:l=d.yieldResult;c=l.kMP;h=l.blX;O=l;_.Bf(d,3);break;case 4:return _.ku(d),_.Ih(Error("gi`"+R)),s9k(f,864E5),d.return({challenge:"",cA:{},us:void 0,bgChallenge:void 0});case 9:O=d.yieldResult;if(!O)throw Error("hi");if(!O.challenge)throw Error("ii");c=O.challenge;h=YR(c);if("c1a"in h&&(!O.bgChallenge||!O.bgChallenge.program))throw Error("ji");
_.Bf(d,3);break;case 7:K=_.ku(d);_.Ih(K);R++;if(R>=5)return _.Ih(Error("gi`"+R)),s9k(f,864E5),d.return({challenge:"",cA:{},us:void 0,bgChallenge:void 0});q=1E3*Math.pow(2,R-1)+Math.random()*1E3;return d.return(new Promise(function(p){_.dJ(_.JA,function(){p(xQE(f,R))},q)}));
case 3:F=lJ5(h);s9k(f,F*1E3);w=void 0;if(!("c1a"in h&&O.bgChallenge)){d.jumpTo(10);break}m=Z3n(O.bgChallenge);_.cl(d,11);return _.A(d,muk(Fof(),m),13);case 13:_.Bf(d,12);break;case 11:return W=_.ku(d),_.Ih(W),d.return({challenge:c,cA:h,us:w,bgChallenge:m});case 12:return _.cl(d,14),w=new _.jD({challenge:m,yd:{fB:"aGIf"}}),_.A(d,w.pXF,16);case 16:_.Bf(d,10);break;case 14:C=_.ku(d),_.Ih(C),w=void 0;case 10:return d.return({challenge:c,cA:h,us:w,bgChallenge:m})}})};
_.iI.prototype.lJ=function(f){var R=this,u;return _.k(function(O){u=R.networkStatusManager;if(!u||u.isNetworkAvailable())return O.return(R.network.lJ(f));_.TT("att_pna",void 0,"attestation_challenge_fetch");return O.return(new Promise(function(c){u.listenOnce("publicytnetworkstatus-online",function(){R.network.lJ(f).then(c)})}))})};
var n6i=function(f){if(!f)throw Error("hi");if(!f.challenge)throw Error("ii");var R=f.challenge,u=YR(R);if("c1a"in u&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("ji");return Object.assign({},f,{kMP:R,blX:u})},g6Y=function(f,R){var u,O,c,h,l;
return _.k(function(K){switch(K.nextAddress){case 1:u=void 0,O=0,c={};case 2:if(!(O<5)){K.jumpTo(4);break}if(!(O>0)){K.jumpTo(5);break}c.coi=1E3*Math.pow(2,O-1)+Math.random()*1E3;return _.A(K,new Promise(function(q){return function(F){_.dJ(_.JA,function(){F(void 0)},q.coi)}}(c)),5);
case 5:return _.cl(K,7),_.A(K,f.lJ(R),9);case 9:return h=K.yieldResult,K.return(n6i(h));case 7:u=l=_.ku(K),l instanceof Error&&_.Ih(l);case 8:O++;c={coi:void 0};K.jumpTo(2);break;case 4:throw u;}})},o6E=function(f,R){f.o4=R},V9f=function(f){var R,u,O;
return _.k(function(c){if(c.nextAddress==1)return _.A(c,Promise.race([f.o4,null]),2);R=c.yieldResult;var h=xQE(f);f.o4=h;(u=R)==null||(O=u.us)==null||O.dispose();_.KG(c)})},s9k=function(f,R){var u=Date.now()+R,O=function(){var c;
return _.k(function(h){c=u-Date.now();return c<1E3?_.A(h,V9f(f),0):(_.dJ(_.JA,O,Math.min(c,6E4)),h.jumpTo(0))})};
O()},$Qf=function(f,R){return new Promise(function(u){_.dJ(_.JA,function(){u(R())},f)})};var YDG=function(){};
YDG.prototype.processContext=function(f){var R=_.iI.instance;if(!R)return _.BY();var u=FVt(f);return u?new G9(R.uZq(u,AGn(f),500).then(function(O){var c;(f==null?0:(c=f.innerTubeRequest)==null?0:c.context)||(f.innerTubeRequest.context={});c=f.innerTubeRequest.context;c.request||(c.request={});c.request.attestationResponseData=O})):_.BY()};var v6l=function(f){this.innertubeTransportService=f};
v6l.prototype.lJ=function(f){_.TT("att_fsr",void 0,"attestation_challenge_fetch");return _.Dn(this.innertubeTransportService,f,_.Ve(_.KuA)).then(function(R){_.TT("att_frr",void 0,"attestation_challenge_fetch");return R})};_.iPl=function(f){this.innertubeTransportService=f};var rYH=new _.Vi("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var fEl=function(){},uDf=function(f,R,u,O,c){var h=_.Tf("YPC_MB_URL");
_.sJn(h).then(function(){RNI(h,f,R,u,O,c)})},RNI=function(f,R,u,O,c,h){try{var l=payments.business.integration,K=payments.business.integration.Style.create().withMaterialDesignStyle(),q=l.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.E("enable_window_constrained_buy_flow_dialog")&&(q=q.usingPopupStyle("windowConstrained"));h&&(q=q.usingCloseCallback(h));var F=u?u:_.Tf("YPC_GB_LANGUAGE"),w=_.Tf("SESSION_INDEX");l.bootstrap.fromPaymentsUrl(f);l.bootstrap.asMashupMode(q).usingGaiaIndex(w).usingLocale(F).usingStyle(K).usingDefaultActivityStatusChangeHandler().inStandaloneContext(l.standaloneContextAuthId.forGaia()).purchaseManager(R,function(m){O&&O(m)}).load(void 0,c)}catch(m){throw c&&c(m),_.TL(m),m;
}};var O7k=new _.Vi("PURCHASE_MANAGER_TOKEN");var cIA=function(){var f=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return f.videos},
getContinuationsPresent:function(){return f.continuationsPresent},
setVideos:function(R){f.videos=R},
getRecommendedVideos:function(){return f.recommendedVideos},
setRecommendedVideos:function(R){f.recommendedVideos=R}}};
cIA.prototype.addVideos=function(f){f&&(this.videos=f.filter(function(R){return!!_.mJq(R)}).map(function(R){var u=_.mJq(R);
a:{var O;if(R.playlistVideoRenderer&&((O=R.playlistVideoRenderer)==null?0:O.voteSortTiebreaker))var c=R.playlistVideoRenderer.voteSortTiebreaker;else{if(_.t(R,rh)){var h;if(O=(c=_.t(R,rh))==null?void 0:(h=c.playlistItemData)==null?void 0:h.voteSortTiebreaker){c=O;break a}}c=""}}return{itemId:u,videoId:_.EXn(R),voteCount:_.t37(R),voteSortTiebreaker:c}}),this.continuationsPresent=!!_.t(f[f.length-1],_.OX))};
var XNf=function(f,R){return f.videos.findIndex(function(u){return u.itemId===R})},hNC=function(f,R){return f.recommendedVideos.findIndex(function(u){return u.itemId===R})},Z7Y=function(f){f={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:f}}}}};_.vh().resolve(_.rv).resolveCommand(f)};var lEI=function(){cIA.apply(this,arguments)};
_.y(lEI,cIA);
var i_I=function(f,R,u,O){if(!f.parentElem)throw Error("oi");var c=XNf(f,R);c===-1&&(c=hNC(f,R),c=c!==-1?c+f.videos.length:-1);if(c===-1)throw Error("pi");var h=c>=f.videos.length?f.recommendedVideos[c-f.videos.length]:f.videos[c];h.voteCount=u;h.voteSortTiebreaker=Date.now().toString();c>=f.videos.length?f.recommendedVideos.splice(c-f.videos.length,1):f.videos.splice(c,1);var l=f.videos;for(var K=0,q=l.length-1;K<=q;){var F=Math.floor((K+q)/2);if(l[F].voteCount<h.voteCount)q=F-1;else if(l[F].voteCount>h.voteCount)K=
F+1;else{a:{var w=h.voteSortTiebreaker;var m=l[F].voteSortTiebreaker;if(w.length!==m.length)w=w.length>m.length;else{for(var W=0;W<w.length;W++){var C=w.charCodeAt(W),d=m.charCodeAt(W);if(C>d){w=!0;break a}if(C<d)break}w=!1}}w?q=F-1:K=F+1}}l=K;if(l===-1)throw Error("qi");f.videos.splice(l,0,h);c!==l&&kQE(f,c,l,R,u,O)},kQE=function(f,R,u,O,c,h){var l,K=(l=f.parentElem)==null?void 0:l.children,q=Math.min(R,u),F=Math.max(R,u);
if(K)for(l=q;l<=F;l++)K[l].style.viewTransitionName="item-"+String(l);document.startViewTransition(function(){if(f.parentElem){var w=f.parentElem.children;if(!(!w||R<0||R>=w.length||u<0||u>=w.length)){var m=w[R];if(m){m.remove();f.showRefreshPill=u>=f.videos.length-1&&f.continuationsPresent;if(!f.showRefreshPill){w=w[u]||null;var W;(W=f.parentElem)==null||W.insertBefore(m,w)}_.ul(f.parentElem,"yt-update-video-data-voting-animation",{toIdx:u,itemId:O,newVoteCount:c,voteStatus:h,hideItem:f.showRefreshPill})}}}}).finished.then(function(){if(K)for(var w=
q;w<=F;w++)K[w].style.viewTransitionName="";
if(f.showRefreshPill)Z7Y(_.Fa("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var m;if(m=w=(m=f.parentElem)==null?void 0:m.children[u])m=w.getBoundingClientRect(),w=m.bottom,m=!(m.top>=0&&w<=f.clientHeight);m&&(m=_.wA(R>u?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(R-u)),Z7Y(m))}})};var AIF=function(f,R){var u=this;f?this.innertubeTransportServicePromise=Promise.resolve(f):R&&(this.innertubeTransportServicePromise=R(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Pw(3E3,function(O){return KHl(u,O)},0);
this.validateMiniAppVideoIdRateLimiter=new Pw(3E3,function(O){return qsY(u,O)},1)},goi=function(f,R){f.JSC$15015_miniAppId=R;
f.reportMiniAppValueRateLimiter=new Pw(3E3,function(u){return KHl(f,u)},0);
f.validateMiniAppVideoIdRateLimiter=new Pw(3E3,function(u){return qsY(f,u)},1)},noH=function(f,R){var u;
return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.reportMiniAppValueRateLimiter.call(R),2);u=O.yieldResult;return O.return([u,R])})},KHl=function(f,R){var u,O,c,h,l,K,q;
return _.k(function(F){switch(F.nextAddress){case 1:return _.A(F,f.innertubeTransportServicePromise,2);case 2:return u=F.yieldResult,O=_.Ve(Wfl),c=Date.now(),h={externalPostId:f.JSC$15015_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(c/1E3),nanos:Math.round(c%1E3*1E6)},intValue:""+R}},_.cl(F,3),_.A(F,_.Dn(u,h,O),5);case 5:l=F.yieldResult;_.Bf(F,4);break;case 3:throw K=_.ku(F),K;case 4:if(l){if("error"in l&&l.error)throw l.error;if(l.errorMetadata)throw Error("ri`"+
l.errorMetadata.status);if(q=l.userStatResult)return F.return(q);throw Error("si");}throw Error("ti");}})},Y_H=function(f){var R,u,O,c,h;
_.k(function(l){switch(l.nextAddress){case 1:return _.A(l,f.innertubeTransportServicePromise,2);case 2:return R=l.yieldResult,u=_.Ve(Wfl),O={externalPostId:f.JSC$15015_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.cl(l,3),_.A(l,_.Dn(R,O,u),5);case 5:c=l.yieldResult;_.Bf(l,4);break;case 3:throw h=_.ku(l),h;case 4:if(c==null)throw Error("ti");if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("ri`"+c.errorMetadata.status);_.KG(l)}})};
AIF.prototype.flush=function(){var f=this;return _.k(function(R){return R.nextAddress==1?_.A(R,f.reportMiniAppValueRateLimiter.flush(),2):_.A(R,f.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var VRA=function(f,R){return _.k(function(u){return u.nextAddress==1?_.A(u,f.validateMiniAppVideoIdRateLimiter.call(R),2):u.return(u.yieldResult)})},qsY=function(f,R){var u,O,c,h,l,K;
return _.k(function(q){switch(q.nextAddress){case 1:return _.A(q,f.innertubeTransportServicePromise,2);case 2:return u=q.yieldResult,O=_.Ve(KfF),c={videoId:R},_.cl(q,3),_.A(q,_.Dn(u,c,O),5);case 5:h=q.yieldResult;_.Bf(q,4);break;case 3:throw l=_.ku(q),l;case 4:if(h){if("error"in h&&h.error)throw h.error;if(h.errorMetadata)throw Error("ri`"+h.errorMetadata.status);if(K=h.playabilityStatus)return q.return(K.status);throw Error("ui");}throw Error("ti");}})};
AIF[nW]=[_.Y8(_.JN),_.Y8(xDG)];var aEE=function(){this.clientData=new Map};
aEE.prototype.getData=function(f){return this.clientData.get(f)};var FHE=function(f){this.store=f};
FHE.prototype.handleResponse=function(f){(f=_.t(f.frameworkUpdates,xG))&&_.FX(f,this.store)};
FHE[nW]=[_.zM];var wNC=new _.Vi("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var mPC={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[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 Q_k=new _.Vi("ICON_SET_TOKEN"),WHl=new _.Vi("ICON_URL_PROVIDER_TOKEN"),E0i=new _.Vi("PREFETCH_ICONS_TOKEN"),t1Y=new _.Vi("ICON_MAP_FN_TOKEN");var rg={},CyG=(rg.ACCESS_TIME="clock",rg.ACCOUNT_BOX="person_account",rg.ACCOUNT_BOX_CAIRO="person_account_cairo",rg.ACCOUNT_CIRCLE="person_circle",rg.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",rg.ACCOUNT_LINKED="account_link_success",rg.ACCOUNT_UNLINKED="account_link",rg.ADD_FRIEND="people",rg.ADD_MODERATOR="shield_add",rg.ADD_TO_LIBRARY=RG("add"),rg.ADD_TO_PLAYLIST="add",rg.ADD_TO_QUEUE_TAIL="list_queue",rg.ADD_TO_REMOTE_QUEUE="list_music",rg.ADD_TO_WATCH_LATER="clock",rg.ADD_VIDEO_LINK="film_strip_add",
rg.ALERT_WARN_RED="alert_triangle",rg.ARROW_BACK="arrow_left",rg.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",rg.ARROW_DROP_DOWN="chevron_down",rg.ARROW_DROP_UP="chevron_up",rg.ARROW_FORWARD="arrow_right",rg.AUDIOTRACK="audio",rg.AUTO_AWESOME="sparkle",rg.AVATAR_ANONYMOUS="person_circle",rg.AVATAR_LOGGED_OUT="person_circle",rg.BACK="arrow_left",rg.BAR_CHART="bar_graph",rg.BLOCK="slash_circle_left",rg.BLOCK_USER="slash_circle_left",rg.BOOKMARK_BORDER="bookmark",rg.BREAKING_NEWS_ALT_1="article_alert",
rg.BROADCAST_CAIRO="podcast_cairo",rg.BUG_REPORT="bug",rg.CAMERA_ALT="camera",rg.CAMPAIGN="megaphone",rg.CANCEL="x_circle",rg.CAPTIONS="closed_caption",rg.CAST_OUTLINE="chromecast",rg.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",rg.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",rg.CHAT="message_bubble_left",rg.CHAT_BUBBLE="message_bubble_empty",rg.CHAT_SPARK="spark_message_bubble_left",rg.CHECK_BOX_OUTLINE_BLANK="box_empty",rg.CHECK_CIRCLE_OUTLINE="check_circle",rg.CHECK_CIRCLE_THICK="check_circle",rg.CLARIFY=
"article_clarify",rg.CLOSED_CAPTION_SELECTED="closed_caption",rg.CLOSE="x_mark",rg.CLOUD_UPLOAD="cloud_arrow_up",rg.COLLAPSE="chevron_up",rg.COLLAPSE_CAIRO="chevron_up_cairo",rg.COLLECTION="layers",rg.COLOR_LENS="palette",rg.COMMENT="message_bubble_right",rg.CONSENT_SHIELD="person_shield",rg.CONTENT_CUT="scissors",rg.CONTENT_CUT_CAIRO="scissors_cairo",rg.COURSE=_.E("web_enable_course_icon_update")?"creator_academy":"lightbulb",rg.COURSE_CAIRO=_.E("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",rg.CREATION_LIVE="radar_live",rg.CREATION_POST="box_pencil",rg.CREATION_UPLOAD="my_videos",rg.CREATION_UPLOAD_RED="upload",rg.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",rg.CREATOR_STUDIO="youtube_studio",rg.DASHBOARD="grid_asymmetrical",rg.DELETE="trash_can",rg.DELETE_SWEEP="trash_can",rg.DESKTOP="laptop",rg.DISLIKE="thumb_down",rg.DISLIKE_SELECTED="thumb_down",rg.DISMISSAL="x_mark",rg.DISMISS_QUEUE="list_remove",rg.DONE_ALL="check_double",rg.DOWN_ARROW="arrow_down",rg.DO_NOT_DISTURB=
"slash_circle_left",rg.DRAFT="paper_corner_folded",rg.DRAG_HANDLE="bars_2",rg.EDIT="pencil",rg.EMOJI="face_very_happy",rg.EMOJI_FLAGS="flag",rg.EMOJI_OBJECTS="lightbulb",rg.EMOJI_PEOPLE="face_very_happy",rg.EMOJI_RECENT="clock",rg.EMPTY_HEART="heart",rg.EMPTY_LIKE="thumb_up",rg.ERROR_BLACK="alert_circle",rg.ERROR_OUTLINE="alert_circle",rg.EXIT_APP="arrow_in",rg.EXIT_TO_APP="arrow_in",rg.EXPAND="chevron_down",rg.EXPAND_ALL="chevron_expand",rg.EXPAND_CAIRO="chevron_down_cairo",rg.EXPAND_LESS="chevron_up",
rg.EXPAND_MORE="chevron_down",rg.EXPLORE="compass",rg.EXPLORE_DESTINATION="compass",rg.EXTERNAL_LINK="open_new",rg.FAB_UPLOAD="upload",rg.FACE_HAPPY_OUTLINE="face_happy",rg.FACT_CHECK="article_check",rg.FASHION_LOGO="fashion",rg.FASHION_LOGO_CAIRO="fashion_cairo",rg.FAVORITE="heart",rg.FEEDBACK="message_bubble_alert",rg.FEEDBACK_CAIRO="message_bubble_alert_cairo",rg.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",rg.FILL_ARROW_SOLID_UP_16="arrow_solid_up",rg.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
rg.FILTER="menu_filter",rg.FIRST_PAGE="chevron_first",rg.FLAG="flag",rg.FULL_HEART="heart",rg.GAME_CONSOLE_DPAD="game_console_dpad",rg.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",rg.GAMING_LOGO="gaming",rg.GAMING_LOGO_CAIRO="gaming_cairo",rg.GO_TO_PAGE="arrow_right",rg.GROUPS="people_group",rg.HAPPY="face_happy",rg.HEALTH_AND_SAFETY="shield_plus",rg.HELP="question_circle",rg.HELP_CAIRO="question_circle_cairo",rg.HELP_OUTLINE="question_circle",rg.HIDE="slash_circle_left",rg.IMAGE="image",
rg.INFINITY_ICON="infinity",rg.INFO="info_circle",rg.INFO_OUTLINE="info_circle",rg.INSERT_CHART_OUTLINED="bar_graph_box_vertical",rg.INSERT_PHOTO="image",rg.KEEP="pin",rg.KEEP_OFF="pin_off",rg.KEYBOARD="keyboard",rg.KEYBOARD_ARROW_DOWN="chevron_down",rg.KEYBOARD_ARROW_UP="chevron_up",rg.KIDS_BLOCK="slash_circle_left",rg.LANGUAGE="globe",rg.LAST_PAGE="chevron_last",rg.LAUNCH="open_new",rg.LEARNING="lightbulb",rg.LEARNING_CAIRO="lightbulb_cairo",rg.LIBRARY_ADD=RG("library_add"),rg.LIBRARY_OUTLINE="library",
rg.LIBRARY_REMOVE=RG(),rg.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",rg.LIKES_PLAYLIST="thumb_up",rg.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",rg.LIKE="thumb_up",rg.LIKE_SELECTED="thumb_up",rg.LIVE="radar_live",rg.LIVE_CAIRO="radar_live_cairo",rg.LIVE_UNLISTED="link",rg.LOCATION_ON="location_point",rg.LOCATION_PIN="location_point",rg.LOOP="arrow_repeat",rg.LOOP_ACTIVE="arrow_repeat",rg.LOOP_ONE="arrow_repeat_1",rg.LOOP_ONE_ACTIVE="arrow_repeat_1",rg.MEH="face_meh",rg.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
rg.MESSAGE="message_bubble_left",rg.MICROPHONE_ON="mic",rg.MIX="youtube_mix",rg.MONETIZATION_ON="dollar_sign_circle",rg.MONEY_FILL="dollar_sign_container",rg.MONEY_FILL_JPY="yen_sign_container",rg.MONEY_HEART="dollar_sign_heart",rg.MORE_HORIZ="overflow_horizontal",rg.MORE_VERT="overflow_vertical",rg.MUSIC="audio",rg.MUSIC_CAIRO="audio_cairo",rg.MUSIC_NOTE_SYMBOL="music",rg.MUSIC_SHUFFLE="arrow_shuffle",rg.MY_CHANNEL="person_circle",rg.MY_LOCATION="location_point",rg.NEWS_STORY="news",rg.NEXT="chevron_right",
rg.NOTIFICATIONS="bell",rg.NOTIFICATIONS_ACTIVE="bell_on",rg.NOTIFICATIONS_CAIRO="bell_cairo",rg.NOTIFICATIONS_DONE_CHECKMARK="check",rg.NOTIFICATIONS_INBOX="bell",rg.NOTIFICATIONS_NONE="bell",rg.NOTIFICATIONS_OFF="bell_off",rg.NOT_INTERESTED="slash_circle_left",rg.OFFICIAL_ARTIST_BADGE="audio",rg.OFFLINE_CLOUD="cloud_off",rg.OFFLINE_DOWNLOAD="download",rg.OFFLINE_DOWNLOAD_CAIRO="download_cairo",rg.OFFLINE_PAUSE="pause",rg.OPEN_IN_NEW="open_new",rg.OUTLINE_ADJUST="adjust",rg.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",rg.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",rg.OUTLINE_BAG="bag",rg.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",rg.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",rg.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",rg.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",rg.PAID="dollar_sign",rg.PAUSE_OUTLINED="pause",rg.PAYMENT="credit_card",rg.PERSON_RADAR_FILLED="person_radar",rg.PHONE_DOWNLOAD="mobile_download",rg.PLAYABLES_LOGO="tic_tac_toe",rg.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
rg.PLAYLISTS="list_play_arrow",rg.PLAYLISTS_CAIRO="list_play_arrow_cairo",rg.PLAYLIST_ADD=RG("list_add"),rg.PLAYLIST_ADD_CHECK=RG("list_check"),rg.PLAYLIST_PLAY="list_play_arrow",rg.PLAY_ALL="play_arrow",rg.PLAY_CIRCLE="play_arrow_circle",rg.PLAY_OUTLINED="play_arrow_circle",rg.PRIVACY_INFO="shield",rg.PRIVACY_PRIVATE="lock",rg.PRIVACY_PUBLIC="earth",rg.PRIVACY_UNLISTED="link",rg.PROMOTE="megaphone",rg.PURCHASES="price_tag",rg.PURCHASE_SUPER_CHAT="super_chat",rg.PURCHASE_SUPER_STICKER="super_sticker",
rg.QUESTION_ANSWER="message_bubble_question",rg.QUEUE_PLAY_LAST="list_queue_last",rg.QUEUE_PLAY_NEXT="list_play_arrow",rg.REMIX_FILLED="youtube_shorts_remix",rg.REMOVE="bar_circle",rg.REMOVE_CIRCLE="bar_circle",rg.REMOVE_CIRCLE_OUTLINE="bar_circle",rg.REMOVE_DONE="check_double_off",rg.REMOVE_FROM_HISTORY="bar_circle",rg.REMOVE_FROM_PLAYLIST="bar_circle",rg.REMOVE_MODERATOR="shield_off",rg.REPLAY="arrow_circle",rg.REPLAY_10="skip_back_10",rg.REPORT_PROBLEM="alert_triangle",rg.SAD="face_sad",rg.SAVE_PLAYLIST=
RG("library_add"),rg.SCHEDULE="clock",rg.SCHOOL="creator_academy",rg.SCREEN_FULLSCREEN="screen_full",rg.SEARCH_HISTORY="arrow_time",rg.SELL="price_tag",rg.SETTINGS="gear",rg.SETTINGS_CAIRO="gear_cairo",rg.SETTINGS_LIGHT="gear",rg.SETTINGS_MATERIAL="gear",rg.SHARE_ARROW="share",rg.SHIELD_WITH_AVATAR="person_shield",rg.SHOPPING_BAG="bag",rg.SHOPPING_BAG_CAIRO="bag_cairo",rg.SHOPPING_CART="cart",rg.SHORTS_COMMENT="youtube_shorts_message_bubble_right",rg.SHORTS_DISLIKE="youtube_shorts_thumb_down",rg.SHORTS_LIKE=
"youtube_shorts_thumb_up",rg.SHORTS_SHARE="youtube_shorts_share",rg.SHUFFLE="arrow_shuffle",rg.SLOW_MODE_OFF="message_bubble_left",rg.SOCIAL="people",rg.SORT="menu_sort",rg.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",rg.SPEED_1X="1x",rg.SPEED_1_POINT_2X="1_point_2x",rg.SPEED_1_POINT_5X="1_point_5x",rg.SPEED_1_POINT_8X="1_point_8x",rg.SPEED_2X="2x",rg.SPEED_POINT_2X="point_2x",rg.SPEED_POINT_8X="point_8x",rg.SPONSORSHIP_STAR=_.E("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",rg.STAFF_PICK=
"spotlight",rg.START_DVR="add",rg.STAR_BORDER="star",rg.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",rg.STICKER_EMOTICON="face_happy",rg.STOP_DVR="stop",rg.SUBSCRIBE="youtube_logo_icon",rg.SUBSCRIBE_PLUS="add_cairo",rg.SUBSCRIPTION_MANAGER="gear",rg.SUPERVISOR_ACCOUNT="people",rg.SUPER_CHAT_FOR_GOOD="hands_heart",rg.SWAP_HORIZ="arrow_swap_horizontal",rg.SWITCH_ACCOUNTS="person_account",rg.TAB_ACCOUNT="person",rg.TAB_ACTIVITY="bell",rg.TAB_BOOKMARK="bookmark",rg.TAB_EXPLORE="compass",rg.TAB_HOME=
"home",rg.TAB_HOME_CAIRO="home_cairo",rg.TAB_INBOX="mail",rg.TAB_LIKED="thumb_up",rg.TAB_MUSIC_PREMIUM="youtube_music",rg.TAB_SHORTS="youtube_shorts",rg.TAB_SHORTS_CAIRO="youtube_shorts_cairo",rg.TAB_SUBSCRIPTIONS="subscriptions",rg.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",rg.TAB_TRENDING="fire",rg.TIMER="stopwatch",rg.TRAILER="youtube_originals",rg.TRENDING="fire",rg.TRENDING_CAIRO="fire_cairo",rg.TRENDING_UP="rating_up",rg.TROPHY="trophy",rg.TROPHY_CELEBRATIONS="fireworks",rg.TUNE="adjust",
rg.UNBLOCK_USER="bar_circle",rg.UNLIMITED="youtube_logo_icon",rg.UNPLUGGED_LIVE_GUIDE="radar_live",rg.UNPLUGGED_SPORTS="eye_off",rg.UPLOADS="library",rg.UP_ARROW="arrow_up",rg.VERTICAL_ALIGN_BOTTOM="download",rg.VERY_HAPPY="face_very_happy",rg.VERY_SAD="face_very_sad",rg.VIDEOGAME_ASSET="gaming",rg.VIDEOS="play_arrow_circle",rg.VIDEO_CALL="video_camera_add",rg.VIDEO_LIBRARY_WHITE="library",rg.VIDEO_YOUTUBE="youtube_logo_icon",rg.VIEW_LIST="list_view",rg.VIEW_LIST_CAIRO="list_view_cairo",rg.VISIBILITY=
"eye",rg.VISIBILITY_OFF="eye_off",rg.VOLUME_MUTE="volume_off",rg.VOLUME_UP="volume_on",rg.WALLPAPER="image",rg.WARNING="alert_triangle",rg.WATCH_HISTORY="arrow_time",rg.WATCH_HISTORY_CAIRO="arrow_time_cairo",rg.WATCH_LATER="clock",rg.WATCH_LATER_CAIRO="clock_cairo",rg.WATCH_RELATED_MIX="youtube_mix",rg.WHAT_TO_WATCH="home",rg.YOUTUBE_MUSIC_MONOCHROME="youtube_music",rg.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",rg.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",rg.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",rg.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",rg.YT_OUTLINE_MUSIC_24="music",rg);var fH={},yIH=(fH.ACCESS_TIME="clock",fH.ACCOUNT_BOX="person_square",fH.ACCOUNT_BOX_CAIRO="person_square",fH.ACCOUNT_CIRCLE="person_circle",fH.ACCOUNT_CIRCLE_CAIRO="person_circle",fH.ACCOUNT_UNLINKED="account_link",fH.ADD_CIRCLE="add_circle",fH.ADD_FRIEND="person_child",fH.ADD_TO_LIBRARY="bookmark",fH.ADD_TO_PLAYLIST="add",fH.ADD_TO_QUEUE_TAIL="queue",fH.ADD_TO_REMOTE_QUEUE="playlist_audio",fH.ADD_TO_WATCH_LATER="clock",fH.ADD_VIDEO_LINK="film_strip_add",fH.ADMIN_PANEL_SETTINGS="gear",fH.ALERT_WARN_RED=
"alert_triangle",fH.ALIGN_LEFT="text_align_left",fH.ARROWS_ALERT="arrow_split_alert",fH.ARROW_BACK="arrow_left",fH.ARROW_CIRCLE="arrow_counterclockwise",fH.ARROW_CIRCLE_PLAY="replay",fH.ARROW_CIRCLE_RIGHT="arrow_clockwise",fH.ARROW_DIAGONAL="arrow_up_left",fH.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",fH.ARROW_DROP_DOWN="triangle_down",fH.ARROW_DROP_UP="triangle_up",fH.ARROW_FORWARD="arrow_right",fH.ARROW_PAUSE="pause_history",fH.ARROW_UNDO="undo",fH.ARTICLE="text_page",fH.ARTICLE_ALERT="text_page_alert",
fH.ARTICLE_CHECK="text_page_check",fH.ARTICLE_CLARIFY="text_page_info",fH.AUDIOTRACK="audio",fH.AUDIO_BADGE="audio_badge",fH.AUDIO_SURROUND="surround_sound",fH.AVATAR_ANONYMOUS="person_circle",fH.AVATAR_LOGGED_OUT="person_circle",fH.BACK="arrow_left",fH.BAR_CHART="chart_bar",fH.BAR_CIRCLE="minus_circle",fH.BAR_HORIZONTAL="minus",fH.BLOCK="circle_slash",fH.BLOCK_USER="circle_slash",fH.BOOKMARK_BORDER="bookmark",fH.BOX_OPEN_CHECK="quiz",fH.BOX_PENCIL="square_pencil",fH.BREAKING_NEWS_ALT_1="text_page_alert",
fH.BROADCAST="podcast",fH.BROADCAST_CAIRO="podcast",fH.BUG_REPORT="bug",fH.CAMERA_ALT="camera",fH.CAMPAIGN="megaphone",fH.CANCEL="x_circle",fH.CAPTIONS="closed_captions",fH.CAST_ICON="chromecast",fH.CAST_OUTLINE="chromecast",fH.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fH.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",fH.CHAT="text_bubble",fH.CHAT_BUBBLE="bubble",fH.CHECK_BOX="check_square",fH.CHECK_BOX_OUTLINE_BLANK="square",fH.CHECK_CIRCLE_FILLED="check_circle",fH.CHECK_CIRCLE_OUTLINE="check_circle",
fH.CHECK_CIRCLE_THICK="check_circle",fH.CHECK_DOUBLE="check_done",fH.CHECK_DOUBLE_OFF="check_done_slash",fH.CHEVRON_LEFT="chevron_left",fH.CHEVRON_RIGHT="chevron_right",fH.CHEVRON_RIGHT_CAIRO="chevron_right",fH.CIRCLES_OVERLAP="account_link",fH.CLAPPERBOARD_CAIRO="clapperboard",fH.CLARIFY="text_page_info",fH.CLOCK_ARROWS="clock_split",fH.CLOCK_ARROWS_ALERT="clock_split_alert",fH.CLOSED_CAPTION="closed_captions",fH.CLOSED_CAPTION_SELECTED="closed_captions",fH.CLOSE="x",fH.CLOUD_UPLOAD="cloud_arrow_up",
fH.COLLAPSE="chevron_up",fH.COLLAPSE_CAIRO="chevron_up",fH.COLLECTION="square3d_stack",fH.COLOR_LENS="paint_palette",fH.COMMENT="text_bubble",fH.CONSENT_SHIELD="person_shield",fH.CONTENT_CUT="scissors",fH.CONTENT_CUT_CAIRO="scissors",fH.COURSE="graduation_cap",fH.COURSE_CAIRO="graduation_cap",fH.CREATION_LIVE="live",fH.CREATION_POST="square_pencil",fH.CREATION_UPLOAD="video",fH.CREATION_UPLOAD_RED="upload",fH.CREATOR_ACADEMY="graduation_cap",fH.CREATOR_STUDIO="youtube_studio",fH.DARK_THEME="theme",
fH.DELETE="trash_can",fH.DELETE_SWEEP="trash_can",fH.DESKTOP="laptop",fH.DISLIKE="thumb_down",fH.DISLIKE_SELECTED="thumb_down",fH.DISMISSAL="x",fH.DISMISS_QUEUE="playlist_x",fH.DOGFOOD="pawprint",fH.DOLLAR_SIGN="dollar_sign_circle",fH.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",fH.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",fH.DOWN_ARROW="arrow_down",fH.DO_NOT_DISTURB="circle_slash",fH.DRAFT="document",fH.EARTH="globe",fH.EDIT="pencil",fH.EMOJI="face_very_happy",fH.EMOJI_FLAGS="flag",fH.EMOJI_OBJECTS=
"lightbulb",fH.EMOJI_PEOPLE="face_very_happy",fH.EMOJI_RECENT="clock",fH.EMPTY_HEART="heart",fH.EMPTY_LIKE="thumb_up",fH.ERROR_BLACK="alert_circle",fH.ERROR_OUTLINE="alert_circle",fH.ERROR_WHITE="alert_circle",fH.EXIT_APP="arrow_in",fH.EXIT_TO_APP="arrow_in",fH.EXPAND="chevron_down",fH.EXPAND_ALL="chevron_expand",fH.EXPAND_CAIRO="chevron_down",fH.EXPAND_LESS="chevron_up",fH.EXPAND_MORE="chevron_down",fH.EXPLORE="compass",fH.EXPLORE_DESTINATION="compass",fH.EXTERNAL_LINK="arrow_up_right",fH.EYE_OFF=
"eye_slash",fH.FAB_UPLOAD="upload",fH.FACE_HAPPY_OUTLINE="face_happy",fH.FACE_MEH="face_neutral",fH.FACT_CHECK="text_page_check",fH.FASHION_LOGO="fashion",fH.FASHION_LOGO_CAIRO="fashion",fH.FAVORITE="thumb_up",fH.FEEDBACK="alert_bubble",fH.FEEDBACK_CAIRO="alert_bubble",fH.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",fH.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fH.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",fH.FLAG_CAIRO="flag",fH.FLASH_OFF="flash_slash",fH.FLASH_ON="flash",fH.FULL_HEART="heart",fH.GAMING_LOGO=
"gaming",fH.GAMING_LOGO_CAIRO="gaming",fH.GO_TO_PAGE="arrow_right",fH.GROUPS="person3",fH.HAND_SWIPE_LEFT="gesture_swipe_left",fH.HAND_SWIPE_RIGHT="gesture_swipe_right",fH.HAPPY="face_happy",fH.HEALTH_AND_SAFETY="shield_health",fH.HEART_BOX="heart_cube",fH.HELP="help_circle",fH.HELP_CAIRO="help_circle",fH.HELP_OUTLINE="help_circle",fH.HIDE="circle_slash",fH.INCOGNITO_CAIRO="incognito",fH.INFINITY_ICON="infinity",fH.INFO="info_circle",fH.INFO_OUTLINE="info_circle",fH.INSERT_CHART_OUTLINED="chart_bar_square",
fH.INSERT_PHOTO="image",fH.KEEP="pin",fH.KEEP_OFF="pin_slash",fH.KEYBOARD="keyboard",fH.KEYBOARD_ARROW_DOWN="chevron_down",fH.KEYBOARD_ARROW_UP="chevron_up",fH.KIDS_BLOCK="circle_slash",fH.LANGUAGE="globe",fH.LAUNCH="arrow_up_right",fH.LEARNING="lightbulb",fH.LEARNING_CAIRO="lightbulb",fH.LIBRARY_ADD="bookmark",fH.LIBRARY_IMAGE="image_stack",fH.LIBRARY_MUSIC="audio_square_stack",fH.LIBRARY_OUTLINE="play_square_stack",fH.LIBRARY_REMOVE="bookmark",fH.LIBRARY_SAVED="check_square_stack",fH.LIKES_PLAYLIST=
"thumb_up",fH.LIKES_PLAYLIST_CAIRO="thumb_up",fH.LIKE="thumb_up",fH.LIKE_SELECTED="thumb_up",fH.LIST_QUEUE="queue",fH.LIVE_CAIRO="live",fH.LIVE_UNLISTED="link",fH.LOCATION_ON="location_pin",fH.LOCATION_PIN="location_pin",fH.LOCATION_POINT="location_pin",fH.LOOP="repeat",fH.LOOP_ACTIVE="repeat",fH.LOOP_ONE="repeat1",fH.LOOP_ONE_ACTIVE="repeat1",fH.MEET="google_meet",fH.MEH="face_neutral",fH.MEMBERSHIPS="memberships",fH.MEMBERS_ONLY_MODE_OFF="text_bubble",fH.MENU_FILTER="filter",fH.MESSAGE="text_bubble",
fH.MESSAGE_BUBBLE_GEAR="bubble_gear",fH.MESSAGE_BUBBLE_LEFT="text_bubble",fH.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",fH.MESSAGE_BUBBLE_OVERLAP="bubble_stack",fH.MESSAGE_BUBBLE_QUESTION="help_bubble",fH.MICROPHONE_ON="mic",fH.MONETIZATION_ON="dollar_sign_circle",fH.MONEY_FILL="dollar_sign_rectangle",fH.MONEY_FILL_JPY="yen_sign_rectangle",fH.MONEY_HAND="dollar_sign_circle_hand",fH.MONEY_HEART="dollar_sign_heart",fH.MOON_Z="sleep_timer",fH.MORE_HORIZ="overflow_horizontal",fH.MORE_VERT="overflow_vertical",
fH.MUSIC="audio",fH.MUSIC_CAIRO="audio",fH.MUSIC_EXPLICIT_BADGE="explicit",fH.MUSIC_NEW_RELEASE="audio_badge",fH.MUSIC_NOTE_SYMBOL="audio",fH.MUSIC_SCISSORS="audio_scissors",fH.MUSIC_SHUFFLE="shuffle",fH.MY_CHANNEL="person_circle",fH.MY_LOCATION="location_pin",fH.MY_VIDEOS="video",fH.MY_VIDEOS_CAIRO="video",fH.NEWS_CAIRO="news",fH.NEWS_STORY="news",fH.NEXT="chevron_right",fH.NOTE_ADD="bubble_pencil",fH.NOTIFICATIONS="bell",fH.NOTIFICATIONS_ACTIVE="bell_waves",fH.NOTIFICATIONS_CAIRO="bell",fH.NOTIFICATIONS_DONE_CHECKMARK=
"check",fH.NOTIFICATIONS_INBOX="bell",fH.NOTIFICATIONS_NONE="bell",fH.NOTIFICATIONS_OFF="bell_slash",fH.NOT_INTERESTED="circle_slash",fH.OFFICIAL_ARTIST_BADGE="audio",fH.OFFLINE_CLOUD="cloud_slash",fH.OFFLINE_DOWNLOAD="download",fH.OFFLINE_DOWNLOAD_CAIRO="download",fH.OFFLINE_PAUSE="pause",fH.OPEN_IN_NEW="arrow_up_right",fH.OUTLINE_ADJUST="adjust",fH.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",fH.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",fH.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",fH.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",fH.OUTLINE_BAG="bag",fH.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",fH.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fH.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fH.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",fH.PAID="dollar_sign_circle",fH.PAUSE_OUTLINED="pause",fH.PAYMENT="credit_card",fH.PEOPLE="person_child",fH.PEOPLE_2="person2_rectangle",fH.PEOPLE_GROUP="person3",fH.PEOPLE_NOTE="bubble_asterisk",fH.PERSON_2="person2",fH.PERSON_ACCOUNT="person_square_stack",fH.PERSON_MINUS=
"person_x",fH.PERSON_MUSIC="person_audio",fH.PERSON_RADAR="person_waves",fH.PERSON_RADAR_FILLED="person_waves",fH.PERSON_SETTING="person_gear",fH.PHONE="phone",fH.PHONE_DOWNLOAD="mobile_arrow_down",fH.PICTURE_IN_PICTURE="picture_in_picture",fH.PLAYABLES_LOGO="playables",fH.PLAYABLES_LOGO_CAIRO="playables",fH.PLAYLISTS="playlist",fH.PLAYLISTS_CAIRO="playlist",fH.PLAYLIST_ADD_CHECK="bookmark",fH.PLAY_ALL="play",fH.PLAY_ARROW="play",fH.PLAY_ARROW_CIRCLE="play_circle",fH.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
fH.PLAY_CIRCLE="play_circle",fH.PLAY_OUTLINED="play_circle",fH.PODCAST_ADD="podcast_add",fH.PODCAST_CHECK="podcast_check",fH.PRIVACY_INFO="shield_x",fH.PRIVACY_PRIVATE="lock",fH.PRIVACY_PUBLIC="globe",fH.PRIVACY_UNLISTED="link",fH.PROMOTE="megaphone",fH.PURCHASES="price_tag",fH.PURCHASE_SUPER_CHAT="super_chat",fH.PURCHASE_SUPER_STICKER="super_sticker",fH.QUESTION_ANSWER="help_bubble",fH.QUESTION_CIRCLE="help_circle",fH.QUEUE_PLAY_LAST="queue_last",fH.QUEUE_PLAY_NEXT="playlist",fH.QUOTATION_MARK="quote",
fH.RADAR_LIVE="live",fH.REMOVE="minus_circle",fH.REMOVE_CIRCLE="minus_circle",fH.REMOVE_CIRCLE_OUTLINE="minus_circle",fH.REMOVE_FROM_HISTORY="minus_circle",fH.REMOVE_FROM_PLAYLIST="minus_circle",fH.REPLAY="arrow_counterclockwise",fH.REPLAY_10="skip10_back",fH.REPLAY_ARROW="replay",fH.REPORT_PROBLEM="alert_triangle",fH.RSS_OFF="rss_slash",fH.SAD="face_sad",fH.SAVE_PLAYLIST="bookmark",fH.SCHEDULE="clock",fH.SCHOOL="graduation_cap",fH.SCREEN_DEFAULT="player_default",fH.SCREEN_FULLSCREEN="player_full_enter",
fH.SCREEN_LIGHT="ambient_mode",fH.SCREEN_SWITCH="player_switch",fH.SEARCH_CAIRO="search",fH.SEARCH_HISTORY="history",fH.SELL="price_tag",fH.SETTINGS="gear",fH.SETTINGS_CAIRO="gear",fH.SETTINGS_LIGHT="gear",fH.SETTINGS_MATERIAL="gear",fH.SETTINGS_REMOTE="remote_waves",fH.SHARE="share",fH.SHARE_ARROW="share",fH.SHARE_CAIRO="share",fH.SHIELD="shield_x",fH.SHIELD_OFF="shield_slash",fH.SHIELD_WITH_AVATAR="person_shield",fH.SHOPPING_BAG="bag",fH.SHOPPING_BAG_CAIRO="bag",fH.SHOPPING_CART="cart",fH.SHORTS_COMMENT=
"text_bubble",fH.SHORTS_DISLIKE="thumb_down",fH.SHORTS_LIKE="thumb_up",fH.SHORTS_SHARE="share",fH.SKIP_FORWARD_30="skip30_forward",fH.SLASH_CIRCLE_RIGHT="circle_slash",fH.SLOW_MODE_OFF="text_bubble",fH.SOCIAL="person_child",fH.SPARKLE="sparkles",fH.SPARK_IMAGE="image_spark",fH.SPARK_RADAR="spark_waves",fH.SPARK_VIDEO="video_spark",fH.SPEAKER_GROUP="speaker_stack",fH.SPEAKER_OFF="speaker_slash",fH.SPEED_1X="n1x",fH.SPEED_1_POINT_2X="n1point2x",fH.SPEED_1_POINT_5X="n1point5x",fH.SPEED_1_POINT_8X="n1point8x",
fH.SPEED_2X="n2x",fH.SPONSORSHIP_STAR="memberships",fH.SPORTS="basketball",fH.SPOTLIGHT="spotlight",fH.STAFF_PICK="spotlight",fH.START_DVR="add",fH.STAR_BORDER="star",fH.STAR_HALF="star_half_filled",fH.STAR_SHOOTING="hype",fH.STICKER="sticker",fH.STICKER_EMOTICON="face_happy",fH.STOP_DVR="stop",fH.SUBSCRIBE="youtube",fH.SUBSCRIBE_PLUS="add",fH.SUBSCRIPTION_MANAGER="gear",fH.SUPERSTAR="super_star",fH.SUPERVISOR_ACCOUNT="person_child",fH.SWAP_HORIZ="arrow_swap_horizontal",fH.SWITCH_ACCOUNTS="person_square_stack",
fH.TAB_ACCOUNT="person",fH.TAB_ACTIVITY="bell",fH.TAB_BOOKMARK="bookmark",fH.TAB_EXPLORE="compass",fH.TAB_HOME="home",fH.TAB_HOME_CAIRO="home",fH.TAB_INBOX="mail",fH.TAB_LIKED="thumb_up",fH.TAB_MUSIC_PREMIUM="youtube_music",fH.TAB_SHORTS="shorts",fH.TAB_SHORTS_CAIRO="shorts",fH.TAB_SUBSCRIPTIONS="subscriptions",fH.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",fH.TAB_TRENDING="trending",fH.TARGET="target",fH.TARGET_ADD="target_add",fH.TEMPLATE_ADD="template_add",fH.TEXT="font",fH.TIMER="stopwatch",fH.TRENDING_CAIRO=
"trending",fH.TRENDING_UP="arrow_trend_up",fH.TROPHY_CAIRO="trophy",fH.TROPHY_CELEBRATIONS="fireworks",fH.TROPHY_STAR="star_trophy",fH.TUNE="adjust",fH.UNBLOCK_USER="minus_circle",fH.UNFAVORITE="thumb_down",fH.UNLIMITED="youtube",fH.UNPLUGGED_LIVE_GUIDE="live",fH.UNPLUGGED_SPORTS="eye_slash",fH.UPLOADS="play_square_stack",fH.UP_ARROW="arrow_up",fH.VERTICAL_ALIGN_BOTTOM="download",fH.VERY_HAPPY="face_very_happy",fH.VERY_SAD="face_very_sad",fH.VIDEOS="play_circle",fH.VIDEO_CALL="video_camera_add",fH.VIDEO_LIBRARY_WHITE=
"play_square_stack",fH.VIDEO_QUALITY_4K="n4k",fH.VIDEO_QUALITY_8K="n8k",fH.VIDEO_YOUTUBE="youtube",fH.VIEW_LIST_CAIRO="view_list",fH.VIEW_MODULE="view_column3_row2",fH.VISIBILITY="eye",fH.VISIBILITY_OFF="eye_slash",fH.VOLUME_DOWN="volume_min",fH.VOLUME_MUTE="volume_mute",fH.VOLUME_OFF="volume_mute",fH.VOLUME_STABLE="stable_volume",fH.VOLUME_UP="volume_max",fH.WALLPAPER="image",fH.WARNING="alert_triangle",fH.WATCH_HISTORY="history",fH.WATCH_HISTORY_CAIRO="history",fH.WATCH_LATER="clock",fH.WATCH_LATER_CAIRO=
"clock",fH.WATCH_RELATED_MIX="mix",fH.WHAT_TO_WATCH="home",fH.YOUTUBE_LINKED_TV="tv_mobile",fH.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fH.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",fH.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",fH.YOUTUBE_SHORTS_ARROW_UP="arrow_up",fH.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",fH.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",fH.YOUTUBE_SHORTS_OUTLINE_24="shorts",fH);var dPf={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,
24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,
1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],
library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],
live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,
3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,
1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,
3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,
2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],
[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],
[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],
speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,
1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,
1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,
4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,
6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],
youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],
[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var NCC={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var LHH={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},Rv=function(f){this.iconUrlProvider=f};
Rv.prototype.resolveIcon=function(f,R){var u=LHH[f.iconName.toUpperCase()];u&&(f.iconName=u);var O=f.iconName;O=O.replace(/-/g,"_");f=Object.assign({},f,{iconName:this.mapIconTypeToStandardName(O,!!u)||O.toLowerCase()});if(_.E("enable_web_delhi_icons")||u){var c;return yG7(NCC,f,((c=this.iconUrlProvider)==null?void 0:c.getYtStandardUrl)||LVn,R)}var h;return yG7(dPf,f,((h=this.iconUrlProvider)==null?void 0:h.getYtStandardUrl)||N$e,R)};
Rv.prototype.mapIconTypeToStandardName=function(f,R){return _.E("enable_web_delhi_icons")||R?yIH[f.toUpperCase()]:CyG[f.toUpperCase()]};
Rv[nW]=[_.Y8(WHl)];var b7t=new Set(["offline_pause","pause","play_all","play_arrow","youtube_music"]),pNC=function(f){this.urlProvider=this.iconUrlProvider=f};
_.y(pNC,Rv);
pNC.prototype.resolveIcon=function(f,R){f.iconName==="youtube_logo"&&(f.iconName="yt-logo-updated");if(f.iconName==="youtube_premium_logo"||f.iconName==="youtube_red_logo")f.iconName="yt-logo-red-updated";var u=Object.assign({},f);f.iconName==="menu"&&(_.E("enable_web_delhi_icons")||(u.iconName="bars_3"),u.iconStyle="youtube_outline");f.iconName==="mail"&&f.iconSetName==="socialNetworksRound"&&(u.iconName="email");f.iconName==="more"&&(u.iconName="overflow_horizontal");f.iconName==="fullscreen"&&(u.iconName=
"screen_full");f.iconName==="premium_standalone"&&(u.iconName="premium_standalone_cairo");_.E("enable_connect_icon_update_web")&&f.iconName==="account_linked"&&(u.iconName="circles_overlap_check",u.iconStyle="youtube_fill");_.E("enable_connect_icon_update_web")&&f.iconName==="account_unlinked"&&(u.iconName="circles_overlap",u.iconStyle="youtube_outline");b7t.has(f.iconName)&&(u.iconStyle="youtube_fill");f=Object.assign({},u,{iconName:(Rv.prototype.mapIconTypeToStandardName.call(this,u.iconName)||
u.iconName).toLowerCase()});var O;return(f=yG7(mPC,f,((O=this.urlProvider)==null?void 0:O.getUrl)||b3l,R))?f:Rv.prototype.resolveIcon.call(this,u,R)};
pNC[nW]=[_.Y8(WHl)];_.j_Y=1;var u8=function(){};
_.y(u8,TK);u8.prototype.resolveCommand=function(f){var R,u;return _.k(function(O){R=_.t(f,i9f);if(!R)return O.return();u=Number(R.enableDelayedPacfLoggingTvMs);if(isNaN(u)){var c=Xh();X$C(c,R,0)}else X$C(Xh(),R,u);_.KG(O)})};_.ON=function(){};
_.y(_.ON,TK);
_.ON.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F;return _.k(function(w){O=_.t(f,rFC);h=(c=R.form)==null?void 0:c.element;K=(l=h)==null?void 0:l.closest("ytd-enforcement-message-view-model");if(!O||!K)return w.return();u.allowAdsAction||(q=O.fundingChoiceInstructionPageUrl,u.allowAdsAction=new j0f(window,_.z2(q)));var m=u.allowAdsAction;m.wallElement=K;m.allowAdsPopup.style.setProperty("display","flex","important");var W=m.scrollManager;W.originalBodyOverflow=W.JSC$8004_domHelper.JSC$7334_document_.body.style.overflow;W.JSC$8004_domHelper.JSC$7334_document_.body.style.overflow=
"hidden";m.wallElement.style.setProperty("display","none","important");BnC(m.accessibilityManager,m.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((F=u.allowAdsAction.allowAdsPopup)&&F instanceof HTMLElement)for(m=_.Z(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),W=m.next();!W.done;W=m.next()){var C=_.Z(W.value);W=C.next().value;C=C.next().value;F.style.setProperty(W,C)}_.KG(w)})};
_.ON.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var cu=function(){};
_.y(cu,TK);cu.prototype.resolveCommand=function(f){var R;return _.k(function(u){R=_.t(f,KJf);if(!R)return u.return();NiP(f);_.KG(u)})};var hP=function(f){this.JSC$15055_commandHandler=f};
_.y(hP,TK);
hP.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1){u=_.t(f,M4l);if((O=u)==null||!O.text||!navigator.clipboard)return w.return();_.cl(w,2);return _.A(w,navigator.clipboard.writeText(u.text),4)}if(w.nextAddress!=2){if(!u.successActions||u.successActions.length===0)return w.return();c=_.Z(u.successActions);for(h=c.next();!h.done;h=c.next())l=h.value,R.JSC$15055_commandHandler.resolveCommand(l);return _.Bf(w,0)}_.ku(w);if(!u.failureActions||u.failureActions.length===
0)return w.return();K=_.Z(u.failureActions);for(q=K.next();!q.done;q=K.next())F=q.value,R.JSC$15055_commandHandler.resolveCommand(F);_.KG(w)})};
hP[nW]=[_.rv];var Z4=function(f){this.JSC$15059_commandHandler=f};
_.y(Z4,TK);
Z4.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W;return _.k(function(C){switch(C.nextAddress){case 1:O=_.t(f,QUG);if(!O)return C.return();_.cl(C,2);if(!O.imageBytes&&!O.imageUrl)throw Error("vi");if(!O.imageUrl){if(O.imageBytes){h=O.imageBytes;l=h.replace(/-/g,"+").replace(/_/g,"/");var d=jJ0(l);c=_.Cj(d)}C.jumpTo(4);break}return _.A(C,fetch(O.imageUrl),5);case 5:return K=C.yieldResult,_.A(C,K.blob(),6);case 6:q=C.yieldResult,c=_.Cj(q);case 4:m=(F=R)==null?void 0:(w=F.form)==
null?void 0:w.element;W=document.createElement("a");Lj(W,c);m.appendChild(W);W.download="";W.click();m.removeChild(W);URL.revokeObjectURL(_.F3(c));O.successCommand&&u.JSC$15059_commandHandler.resolveCommand(O.successCommand);_.Bf(C,0);break;case 2:_.ku(C),O.errorCommand&&u.JSC$15059_commandHandler.resolveCommand(O.errorCommand),_.KG(C)}})};
Z4[nW]=[_.rv];var l8=function(f){this.store=f};
_.y(l8,TK);l8.prototype.resolveCommand=function(f){var R=this,u,O,c;return _.k(function(h){O=(u=_.t(f,_.VTk))==null?void 0:u.entityBatchUpdate;if(!O)return h.jumpTo(0);c=Object.assign({},O,{mutations:[].concat(_.yq(O.mutations||[]))});return _.A(h,_.FX(c,R.store),0)})};var DPk=function(f){this.JSC$15066_commandHandler=f;this.feedbackDialogMap=new Map};
DPk.prototype.openDialog=function(f,R){(f=this.feedbackDialogMap.get(f))&&this.JSC$15066_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:f}},R)};
DPk[nW]=[_.rv];var kU=new _.Vi("FEEDBACK_CONTROLLER_TOKEN");var KH=new _.Vi("APP_STORE_TOKEN");var qV=function(f,R){this.store=f;this.controller=R};
_.y(qV,TK);qV.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g;return _.k(function(x){if(x.nextAddress==1){O=_.t(f,_.DS);if(h=(c=O)==null?void 0:c.contentId)for(K=_.Z(((l=O)==null?void 0:l.actions)||[]),q=K.next();!q.done;q=K.next())F=q.value,JII(u,F,h);W=(w=R)==null?void 0:(m=w.form)==null?void 0:m.element;return _.A(x,_.hH(W,[f]).catch(function(){}),2)}C=x.yieldResult;
((d=C)==null?0:(p=d.data)==null?0:(J=p.feedbackResponses)==null?0:J.length)&&(P=(M=C.data.feedbackResponses[0])==null?void 0:M.followUpDialog)&&h&&(g=u.controller)!=null&&g.feedbackDialogMap.set(h,P);_.KG(x)})};
var JII=function(f,R,u){var O=_.t(R,_.kE);if(O){O=_.Z(O.commands||[]);for(var c=O.next();!c.done;c=O.next())JII(f,c.value,u)}_.t(R,_.WY)&&f.store.dispatch(_.aA("commandEntity",IgD(u),{key:u,command:R}));_.t(R,YYH)&&f.store.dispatch(_.aA("commandEntity",IgD(u),{key:u,command:R}))};
qV[nW]=[KH,kU];var AP=function(f){this.controller=f};
_.y(AP,TK);AP.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l;return _.k(function(K){O=_.t(f,_.GL);h=(c=O)==null?void 0:c.targetId;if(((l=O)==null?void 0:l.signal)!=="TELL_US_WHY"||!h)return K.return();u.controller.openDialog(h,R);_.KG(K)})};
AP[nW]=[kU];var av=function(f){this.store=f};
_.y(av,TK);av.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F;return _.k(function(w){O=_.t(f,B8X);h=(c=O)==null?void 0:c.contentId;q=(l=R)==null?void 0:(K=l.form)==null?void 0:K.element;F=_.hH(q,[f]);h&&u.undo(h);return _.A(w,F,0)})};
av.prototype.undo=function(f){this.store.dispatch(_.aA("commandEntity",IgD(f),{key:f,command:void 0}))};
av[nW]=[KH];var FR=function(f){this.JSC$15081_commandHandler=f};
_.y(FR,TK);FR.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F;return _.k(function(w){u=_.t(f,q2k);O=u.flowStateKey;c=u.validationFailureCommand;h=u.submitValidFormCommand;l=Sw(_.fS,[O||""]);K=_.t(l,ajF);((q=K)==null?0:q.isValid)&&h&&R.JSC$15081_commandHandler.resolveCommand(h);((F=K)==null?0:F.isValid)||!c||R.JSC$15081_commandHandler.resolveCommand(c);_.KG(w)})};
FR[nW]=[_.rv];var wd=function(f){this.innertubeTransportService=f};
_.y(wd,TK);wd.prototype.resolveCommand=function(f,R){var u=this,O;return _.k(function(c){return _.A(c,_.e6(u.innertubeTransportService,f,(O=R)==null?void 0:O.form).then(function(h){var l,K;R==null||(l=R.commandController)==null||(K=l.onSuccess)==null||K.call(l,f,h)},function(h){var l,K;
R==null||(l=R.commandController)==null||(K=l.onServerError)==null||K.call(l,f,h)}),0)})};
wd[nW]=[_.JN];var mU=function(){};
_.y(mU,TK);mU.prototype.resolveCommand=function(f){var R,u,O,c;return _.k(function(h){if(R=_.t(f,_.CxF)){if(u=R.gtmId)O=_.Tf("GL",""),_.Ck(u,O);(c=R.gtmData)&&_.y3(c)}_.KG(h)})};var QI=function(f,R){this.innertubeTransportService=f;this.JSC$15092_actionRouter=R};
_.y(QI,TK);QI.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){u=_.t(f,EjG);if(!u)return c.return();O=u.command;if(!O)return c.return();R.JSC$15092_actionRouter.triggerAction("yt-insert-rich-section-action",u);return _.A(c,_.e6(R.innertubeTransportService,O,{disableCache:!0}),0)})};
QI[nW]=[_.JN,gS];JGB.bind(null,Hp);var zNI=JGB.bind(null,y3H);T$q.bind(null,Hp);var TCH=T$q.bind(null,y3H);IJt.bind(null,Hp);var H7A=IJt.bind(null,y3H);var Wu=function(){};
_.y(Wu,TK);
Wu.prototype.resolveCommand=function(f){var R,u,O,c,h,l,K,q,F,w;return _.k(function(m){R=_.t(f,Vgt);if(!R)return m.return();O=((u=R.operations)==null?void 0:u.operations)||[];c=_.Z(O);for(h=c.next();!h.done;h=c.next())if(l=h.value,l.insertItemSectionContent){var W=l.insertItemSectionContent,C=W.contents||[];W.insertByPositionInSection?zNI(W.insertByPositionInSection.sectionTargetId,C,W.insertByPositionInSection.position):W.insertByRelativePositionInSection&&W.insertByRelativePositionInSection.sectionTargetId&&W.insertByRelativePositionInSection.itemTargetId&&
TCH(W.insertByRelativePositionInSection.sectionTargetId,W.insertByRelativePositionInSection.itemTargetId,C,W.insertByRelativePositionInSection.relativePosition)}else l.replaceSection?(W=l.replaceSection,C={},W.replaceByTargetId?C=W.replaceByTargetId:W.replaceByGroupId&&(C={targetId:W.replaceByGroupId.groupId,newContent:W.replaceByGroupId.newContent,undoKey:""}),C.newContent&&LgE(C.targetId,{continuationItems:[C.newContent]})):l.removeItem?(W=l.removeItem,W.removeByTargetId&&W.sectionTargetId&&H7A(W.sectionTargetId,
W.removeByTargetId.targetIds||[])):l.removeSection&&(l.removeSection.removeByTargetId?(K=void 0,IEF(((K=l.removeSection)==null?void 0:K.removeByTargetId.targetIds)||[])):l.removeSection.removeByGroupId&&(q=void 0,IEF(((q=l.removeSection)==null?void 0:q.removeByGroupId.groupIds)||[])));w=((F=R.operations)==null?void 0:F.scrollConfig)||{};M1I(w);_.KG(m)})};
var IEF=function(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next())LgE(R.value,{continuationItems:[]})},M1I=function(f){if(f.scrollToItem){var R=f.scrollToItem.item||{},u=R.itemTargetId;
R=R.sectionTargetId;if(u&&R){var O=document.querySelector("[data-target-id="+R+"]"),c=O==null?void 0:O.querySelector("[data-target-id="+u+"]");O&&c&&setTimeout(function(){var h=c.offsetTop-O.offsetTop,l;if(((l=f.scrollToItem)==null?void 0:l.scrollPosition)==="SCROLL_POSITION_CENTER")h-=O.offsetHeight/2,h+=c.offsetHeight/2;else{var K;((K=f.scrollToItem)==null?void 0:K.scrollPosition)==="SCROLL_POSITION_END"&&(h-=O.offsetHeight,h+=c.offsetHeight)}O.scroll({top:h,behavior:"smooth"})},100)}}};var EN=new _.Vi("CLIENT_NAME_TOKEN");var Pyk=new _.Vi("DEFAULT_STORE_EXPIRATION_TOKEN");var cw0=new _.Vi("CLIENT_LOCATION_SERVICE_TOKEN");var tP=function(f,R,u){this.clientName=f||_.Tf("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=R||_.pn.getInstance();this.JSC$15120_commandHandler=u||_.KU.instance};
_.y(tP,TK);tP.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){O=(u=_.t(f,coG))==null?void 0:u.onComplete;R.clientLocationService.clearLocationPlayabilityToken(R.clientName);O&&R.JSC$15120_commandHandler.resolveCommand(O);_.KG(c)})};
tP[nW]=[EN,cw0,_.rv];var CH=function(f){this.innertubeTransportService=f};
_.y(CH,TK);CH.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l;return _.k(function(K){h=(O=R)==null?void 0:(c=O.form)==null?void 0:c.element;return _.A(K,_.e6(u.innertubeTransportService,f,(l=R)==null?void 0:l.form).then(function(q){Td2(h,new CustomEvent("yt-service-request-completed"),{data:q},_.Tf("openPopupConfig"))}),0)})};
CH[nW]=[_.JN];var yI=function(){};
_.y(yI,TK);yI.prototype.resolveCommand=function(f){var R,u;return _.k(function(O){R=_.t(f,Qgt);u=document.querySelector("mini-app-container-view-model");if(!R||!u)return O.return();R.isPlaying?u.dispatchEvent(new Event("play")):u.dispatchEvent(new Event("pause"));_.KG(O)})};var dd=function(){};
_.y(dd,TK);dd.prototype.resolveCommand=function(f){var R,u,O,c,h,l,K;return _.k(function(q){R=_.t(f,wYG);if((u=R)==null||!u.paramKeys)return q.return();O=R.paramKeys;c=_.oj(window.location.href);h=_.Z(O);for(l=h.next();!l.done;l=h.next())K=l.value,c.JSC$8036_queryData_.remove(K);window.history.replaceState(window.history.state,document.title,c.toString());_.KG(q)})};var UPG=function(){this.dropdownMap=new Map};_.eNC=new _.Vi("DROPDOWN_CONTROLLER_TOKEN");var NV=function(f){this.controller=f};
_.y(NV,TK);NV.prototype.resolveCommand=function(f){var R=this,u,O,c,h;return _.k(function(l){u=_.t(f,VvC);if(!u)return l.return();O=u;c=O.dropdownId;h=O.selectedOptionIndex;if(c===void 0||h===void 0)return l.return();var K=R.controller.dropdownMap.get(c);K&&K(h);_.KG(l)})};
NV[nW]=[_.eNC];var LH=function(f){this.controller=f};
_.y(LH,TK);LH.prototype.resolveCommand=function(f){var R=this,u;return _.k(function(O){return(u=_.t(f,AoC))?_.A(O,R.controller.closeDialog(),0):O.return()})};
LH[nW]=[_.N$];var b8=function(f){this.controller=f};
_.y(b8,TK);b8.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){u=_.t(f,nIY);if(!u)return c.return();var h,l=u.panelIdentifier||((h=u.identifier)==null?void 0:h.tag);if(!l)throw Error("wi");return(O=l)?_.A(c,R.controller.hidePanel(O),0):c.jumpTo(0)})};
b8[nW]=[_.yT];var pH=function(f,R){this.innertubeTransportService=f;this.controller=R};
_.y(pH,TK);pH.prototype.resolveCommand=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return u=_.t(f,VDF),(O=u)!=null&&O.panelId?_.A(l,R.controller.getReloadContinuation(u.panelId),2):l.return();if(l.nextAddress!=3)return(c=l.yieldResult)?_.A(l,_.e6(R.innertubeTransportService,f,{continuation:c}),3):l.return();h=l.yieldResult;return _.A(l,R.controller.updatePanel(u.panelId,h.content,!1),0)})};
pH[nW]=[_.JN,_.yT];var jc=function(f,R,u){this.innertubeTransportService=f;this.JSC$15156_screenManager=R;this.JSC$15156_commandHandler=u};
_.y(jc,TK);
jc.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1){u=_.t(f,_.eok);if(!u)return q.return();if(u.commands)for(O=_.Z(u.commands),c=O.next();!c.done;c=O.next())h=c.value,R.JSC$15156_commandHandler.resolveCommand(h,{disableClickTracking:!0});l=_.t4(f.clickTrackingParams);_.O1(R.JSC$15156_screenManager,21760,l,{layer:7,parentLayer:0});return _.A(q,_.e6(R.innertubeTransportService,f),2)}K=q.yieldResult;if(!K)return q.return();R.JSC$15156_screenManager.graftServerVe(K.trackingParams,l,
7);_.KG(q)})};
jc[nW]=[_.JN,_.Cq,_.rv];var D4=new _.Vi("PANEL_LOADING_STRATEGY_TOKEN");var JP=function(f,R){this.controller=f;this.panelLoadingStrategy=R};
_.y(JP,TK);
JP.prototype.resolveCommand=function(f,R){var u=this,O,c,h;return _.k(function(l){O=_.t(f,znC);if((c=O)==null||!c.panelLoadingStrategy)return l.return();h=function(K){var q,F,w,m,W,C,d,p,J;return _.k(function(M){F=_.t((q=K.dialogViewModel)==null?void 0:q.header,YTY);w={viewModel:K.dialogViewModel};m={};if(d=_.E("web_enable_dialog_header_label")?(W=F)==null?void 0:(C=W.headline)==null?void 0:C.content:void 0)m.ariaLabel=d;O.dismissOnBackgroundTap===!1&&(m.isModal=!0);return K.dialogViewModel?_.A(M,
u.controller.openDialog(w,(p=R)==null?void 0:(J=p.form)==null?void 0:J.element,m),0):M.return()})};
return _.A(l,u.panelLoadingStrategy.execute({command:f,data:O.panelLoadingStrategy,renderFn:h,createScreenConfig:{layer:4}}),0)})};
JP[nW]=[_.N$,D4];var zb=function(f,R,u){this.innertubeTransportService=f;this.controller=R;this.JSC$15176_screenManager=u};
_.y(zb,TK);
zb.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W,C,d;return _.k(function(p){switch(p.nextAddress){case 1:O=_.t(f,_.jg);if(!O)return p.return();var J,M=O.panelIdentifier||((J=O.identifier)==null?void 0:J.tag);if(!M)throw Error("wi");c=M;return _.A(p,u.controller.isVisible(c,!0),2);case 2:if((h=p.yieldResult)&&O.blockIfPanelOpen)return p.return();q=(K=(l=u.controller).getPanelContent)==null?void 0:K.call(l,c);if(!(J=q))if(O){var P;J=((P=O.globalConfiguration)==null?void 0:P.initialState)||
O.engagementPanel;if(P=!J)P=!!(O==null?0:(M=O.engagementPanelPresentationConfigs)==null?0:M.engagementPanelPopupPresentationConfig);P&&(J=_.M3B(O.panelIdentifier,O.identifier))}else J=void 0;F=J;w=O.engagementPanelPresentationConfigs;m=O.engagementPanelExtras;return _.A(p,u.controller.showPanel(c,F,w,m,(W=R)==null?void 0:(C=W.form)==null?void 0:C.element),3);case 3:if(!O.globalConfiguration){p.jumpTo(0);break}_.O1(u.JSC$15176_screenManager,32633);return _.A(p,_.e6(u.innertubeTransportService,f),5);
case 5:return d=p.yieldResult,u.JSC$15176_screenManager.graftServerVe(d.trackingParams),_.A(p,u.controller.updatePanel(c,d.content,!0,m,void 0,d.updatePanelContinuationData),0)}})};
zb[nW]=[_.JN,_.yT,_.Cq];var Tb=function(f,R){this.controller=f;this.panelLoadingStrategy=R};
_.y(Tb,TK);Tb.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q;return _.k(function(F){O=_.t(f,_.Fk);if((c=O)==null||!c.panelLoadingStrategy)return F.return();K=GQI(u.controller,(h=R)==null?void 0:(l=h.form)==null?void 0:l.element);q=function(w){return _.k(function(m){return w.sheetViewModel?_.A(m,u.controller.openSheet({viewModel:w.sheetViewModel},K),0):m.return()})};
return _.A(F,u.panelLoadingStrategy.execute({command:f,data:O.panelLoadingStrategy,renderFn:q,createScreenConfig:{layer:0}}),0)})};
Tb[nW]=[_.dp,D4];var Hu=function(f,R){this.controller=f;this.JSC$15184_commandHandler=R};
_.y(Hu,TK);Hu.prototype.resolveCommand=function(f,R){var u=this,O,c,h;return _.k(function(l){if(l.nextAddress==1){O=_.t(f,roH);var K=_.t(O.showCommand,_.jg),q,F,w=(F=K==null?void 0:K.panelIdentifier)!=null?F:K==null?void 0:(q=K.identifier)==null?void 0:q.tag;if(!w)throw Error("xi");c=w;return _.A(l,u.controller.isVisible(c),2)}return(h=l.yieldResult)?_.A(l,u.controller.hidePanel(c),0):_.A(l,u.JSC$15184_commandHandler.resolveCommand(O.showCommand,R),0)})};
Hu[nW]=[_.yT,_.rv];var Iv=function(f,R,u){this.innertubeTransportService=f;this.controller=R;this.JSC$15187_screenManager=u};
_.y(Iv,TK);
Iv.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD;return _.k(function(mP){switch(mP.nextAddress){case 1:return O=u=_.t(f,f2A),c=O.targetPanelIdentifier,h=O.contentSourcePanelIdentifier,l=O.globalConfiguration,((K=c)==null?0:K.tag)&&((q=h)==null?0:q.tag)?l?_.A(mP,R.controller.showPanel(c.tag,_.M3B(c.tag,c),void 0,void 0,void 0),5):_.A(mP,(W=(m=R.controller).getPanel)==null?void 0:W.call(m,h.tag),4):mP.return();case 4:C=mP.yieldResult;F=(d=C)==null?void 0:
(J=(p=d).getPanelContent)==null?void 0:J.call(p);mP.jumpTo(3);break;case 5:return _.A(mP,_.e6(R.innertubeTransportService,f),6);case 6:M=mP.yieldResult,((P=M)==null?0:P.trackingParams)&&R.JSC$15187_screenManager.graftServerVe(M.trackingParams),F=(g=M)==null?void 0:g.content,w=(x=M)==null?void 0:x.updatePanelContinuationData;case 3:if(V=(fh=F)==null?void 0:fh.engagementPanelSectionListRenderer)return _.A(mP,R.controller.showPanel(c.tag,void 0,void 0,void 0,void 0,{content:V.content,secondaryHeaderContent:(ZD=
V.header)!=null?ZD:{},targetId:V.targetId},w),0);mP.jumpTo(0)}})};
Iv[nW]=[_.JN,_.yT,_.Cq];var MV=function(f,R){this.JSC$15195_commandHandler=f;this.store=R};
_.y(MV,TK);MV.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l;return _.k(function(K){if(K.nextAddress==1)return(u=_.t(f,KqH))?_.A(K,_.cJ(),2):K.return();O=K.yieldResult;if(!O)return K.return();e17(O,R.store,(c=u)==null?void 0:c.languageCode);h=O.isSubtitlesOn()?_.Fa("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.Fa("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");l=_.vW(h);R.JSC$15195_commandHandler.resolveCommand(l);_.KG(K)})};
MV[nW]=[_.rv,lk];var Pu=function(f,R){this.shortsPlayerPromise=f;this.JSC$15199_commandHandler=R};
_.y(Pu,TK);
Pu.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1)return(u=_.t(f,bWG))?_.A(w,R.shortsPlayerPromise,2):w.return();O=w.yieldResult;var m=GNn(O);m!=null&&m.length||(O.loadModule("captions"),m=GNn(O));c=m;if((h=c)==null||!h.length)return l=_.Fa("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.vW(l),R.JSC$15199_commandHandler.resolveCommand(K),w.return();O.toggleSubtitles();q=O.isSubtitlesOn()?_.Fa("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Fa("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");F=_.vW(q);R.JSC$15199_commandHandler.resolveCommand(F);_.KG(w)})};
Pu[nW]=[_.aZf,_.rv];var UN=function(f){this.JSC$15202_playerPromise=f};
_.y(UN,TK);UN.prototype.resolveCommand=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return(u=_.t(f,vII))?_.A(l,R.JSC$15202_playerPromise,2):l.return();O=l.yieldResult;c=O.getVideoData().video_id;u.videoId===c&&(h=Number(u.offsetFromVideoStartMilliseconds),h>=0&&O.seekTo(h/1E3));_.KG(l)})};
UN[nW]=[_.fr];var BCk=_.l$("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),ec=function(f){this.store=f};
_.y(ec,TK);
var o0f=function(f){var R,u,O,c;return _.k(function(h){if(h.nextAddress==1)return R=_.Tf("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,u=_.Tf("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,O=R||u,f.mainAppPlayer=new $i(O),_.A(h,f.mainAppPlayer.api,2);c=h.yieldResult;c.addEventListener("onStateChange",f.JSC$15206_playerStateChangeListener.bind(f));document.addEventListener("yt-page-data-updated",f.pauseOnNavigation.bind(f));window.addEventListener("state-navigatestart",
f.pauseOnNavigation.bind(f));_.KG(h)})};
ec.prototype.JSC$15206_playerStateChangeListener=function(f){switch(f){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"}xPC(this)};
var xPC=function(f){f.store.dispatch(_.aA("sfvAudioItemCurrentlyPlayingEntity",BCk,{key:BCk,externalVideoId:f.externalVideoId,sfvAudioItemPlaybackState:f.playbackState,nowPlayingEntityValue:f.nowPlayingEntityValue}))};
ec.prototype.pauseOnNavigation=function(){var f=this,R,u,O,c;return _.k(function(h){if(h.nextAddress==1){if(!f.mainAppPlayer){var l=new _.ts("Error: mainAppPlayer is unavailable",f.mainAppPlayer);_.TL(l);return h.return()}return _.A(h,f.mainAppPlayer.api,2)}R=h.yieldResult;O=(u=R)==null?void 0:u.getPlayerState();O!==1||(c=R)!=null&&c.pauseVideo();_.KG(h)})};
ec.prototype.playVideo=function(f,R,u){var O=this,c,h;return _.k(function(l){if(l.nextAddress==1)return _.A(l,(c=O.mainAppPlayer)==null?void 0:c.api,2);h=l.yieldResult;if(!O.mainAppPlayer||!h){var K=new _.ts("Error: mainAppPlayer is unavailable",O.mainAppPlayer);_.TL(K);return l.return()}return _.A(l,O.mainAppPlayer.loadVideoWithPlayerVars({videoId:O.externalVideoId,audio_only:"1",start:f/1E3,end:f/1E3+R,player_params:u}),0)})};
ec.prototype.pauseVideo=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1){if(!f.mainAppPlayer){var c=new _.ts("Error: mainAppPlayer is unavailable",f.mainAppPlayer);_.TL(c);return O.return()}return _.A(O,f.mainAppPlayer.api,2)}R=O.yieldResult;(u=R)==null||u.pauseVideo();_.KG(O)})};
ec.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x;return _.k(function(fh){if(fh.nextAddress==1)return u=_.t(f,yVC),c=(O=u)==null?void 0:O.nowPlayingEntityValue,l=(h=u)==null?void 0:h.externalVideoId,m=Number((w=(K=u)==null?void 0:(q=K.defaultStartPoints)==null?void 0:(F=q[0])==null?void 0:F.offsetMs)!=null?w:"0"),M=Number((J=(W=u)==null?void 0:(C=W.defaultStartPoints)==null?void 0:(d=C[0])==null?void 0:(p=d.duration)==null?void 0:p.seconds)!=null?J:"15"),x=(g=
(P=u)==null?void 0:P.playerParams)!=null?g:"",c&&l?R.mainAppPlayer?fh.jumpTo(2):_.A(fh,o0f(R),2):fh.return();if(fh.nextAddress!=6){if(R.nowPlayingEntityValue&&c===R.nowPlayingEntityValue)return R.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.A(fh,R.pauseVideo(),0):_.A(fh,R.playVideo(m,M,x),0);R.externalVideoId=l;R.nowPlayingEntityValue=c;R.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.A(fh,R.playVideo(m,M,x),6)}xPC(R);return fh.jumpTo(0)})};
ec[nW]=[lk];var Gb=function(f){this.JSC$15223_commandHandler=f};
_.y(Gb,TK);Gb.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1)return(O=_.t(f,qFt))?_.A(q,_.cJ(),2):q.return();c=q.yieldResult;if(!c)return q.return();(h=SRh(c))?u.JSC$15223_commandHandler.resolveCommand(h,R):(l=_.Fa("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.vW(l),u.JSC$15223_commandHandler.resolveCommand(K));_.KG(q)})};
Gb[nW]=[_.rv];var Bu=function(f){this.JSC$15226_playerPromise=f};
_.y(Bu,TK);Bu.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l;return _.k(function(K){if(K.nextAddress==1){u=_.t(f,idC);if(!u)return K.return();O=u.overlayRenderer;return O?(c=_.t(O,KZE))?_.A(K,R.JSC$15226_playerPromise,3):K.jumpTo(0):K.return()}h=K.yieldResult;h.renderChapterSeekingAnimation(1,_.$Z(c.text),(l=c.icon)==null?void 0:l.iconType);_.KG(K)})};
Bu[nW]=[_.fr];var ov=function(f){this.store=f};
_.y(ov,TK);
ov.prototype.resolveCommand=function(f){var R=this,u,O,c;return _.k(function(h){if(h.nextAddress==1){u=_.t(f,aYf);if(!u)return h.return();O="";(c=R.store.getState().collabInviteLink)&&u.id===c.playlistId?O=c.inviteLinkURL:u.shortUrl&&(O=u.shortUrl);return O?_.A(h,navigator.clipboard.writeText(O),3):h.jumpTo(0)}var l={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Fa("COPY_LINK_SUCCESS_TOAST")}}}}};_.vh().resolve(_.rv).resolveCommand(l);_.KG(h)})};
ov[nW]=[KH];var xU=function(f,R){this.innertubeTransportService=f;this.JSC$15236_commandHandler=R};
_.y(xU,TK);xU.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W;return _.k(function(C){if(C.nextAddress==1)return(O=_.t(f,_.IY))?_.A(C,_.e6(u.innertubeTransportService,f,(c=R)==null?void 0:c.form),2):C.return();(h=C.yieldResult)&&h.errorMetadata&&(l=h,K=_.vW(l.error.message),u.JSC$15236_commandHandler.resolveCommand(K));q=h;if((F=q)==null?0:F.actions)for(w=_.Z(q.actions),m=w.next();!m.done;m=w.next())W=m.value,u.JSC$15236_commandHandler.resolveCommand(W);_.KG(C)})};
xU[nW]=[_.JN,_.rv];var Sc=function(){};
_.y(Sc,TK);Sc.prototype.resolveCommand=function(f){var R;return _.k(function(u){R=_.t(f,cMk);if(!R)return u.return();(new a7C(R)).show();_.KG(u)})};_.$U=new _.Vi("PLAYLIST_EDIT_CONTROLLER_TOKEN");var gd=function(f,R,u,O){this.store=f;this.innertubeTransportService=R;this.controller=u;this.JSC$15244_commandHandler=O};
_.y(gd,TK);
gd.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD,mP,NX,jt,Jn,zq;return _.k(function(St){if(St.nextAddress==1){O=_.t(f,_.ji);if(!O)return St.return();if(O.clientActions){c=_.Z(O.clientActions);for(h=c.next();!h.done;h=c.next())l=h.value,u.JSC$15244_commandHandler.resolveCommand(l);var Gq,LC=R==null?void 0:(Gq=R.form)==null?void 0:Gq.element;LC&&_.ul(LC,"yt-dismissible-item-action",O.clientActions)}return _.A(St,_.e6(u.innertubeTransportService,f,(K=R)==
null?void 0:K.form),2)}if(q=St.yieldResult)q.errorMetadata?(F=q,w=_.vW(F.error.message),u.JSC$15244_commandHandler.resolveCommand(w),"error"in q&&((m=R)==null?0:(W=m.commandController)==null?0:W.onServerError)&&((C=R)==null||(d=C.commandController)==null||d.onServerError(f,q))):(p=R)==null||(J=p.commandController)==null||(P=(M=J).onSuccess)==null||P.call(M,f,q);g=q;((x=g)==null?0:x.collaborationInviteLink)&&O.playlistId&&(_.E("web_enable_invite_collaborators_link")||_.E("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
u.store.dispatch(_.OP({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:O.playlistId,inviteLinkUrl:g.collaborationInviteLink}}));((fh=g)==null?0:fh.redirectEndpoint)&&u.JSC$15244_commandHandler.resolveCommand(g.redirectEndpoint);((V=g)==null?0:(ZD=V.newHeader)==null?0:ZD.playlistHeaderRenderer)?SsG(u.controller,g.newHeader.playlistHeaderRenderer):((mP=g)==null?0:(NX=mP.newHeader)==null?0:NX.musicEditablePlaylistDetailHeaderRenderer)&&SsG(u.controller,g.newHeader.musicEditablePlaylistDetailHeaderRenderer);
u.controller.playlistVideoListElement&&((jt=g)==null?0:(Jn=jt.playlistEditResults)==null?0:(zq=Jn[0])==null?0:zq.playlistEditVideoAddedResultData)&&((LC=u.controller.playlistVideoListElement)==null||LC.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:g.playlistEditResults[0].playlistEditVideoAddedResultData})));_.KG(St)})};
gd[nW]=[KH,_.JN,_.$U,_.rv];var sN=function(f,R){this.controller=f;this.JSC$15254_commandHandler=R};
_.y(sN,TK);sN.prototype.resolveCommand=function(f,R){var u=this,O,c,h;return _.k(function(l){O=_.t(f,FOC);u.controller.showRefreshPill&&((c=O)==null?0:c.command)&&(u.JSC$15254_commandHandler.resolveCommand((h=O)==null?void 0:h.command,R),u.controller.showRefreshPill=!1);_.KG(l)})};
sN[nW]=[_.fM,_.rv];var nH=function(f,R){this.store=f;this.JSC$15258_commandHandler=R||_.KU.instance};
_.y(nH,TK);nH.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W;return _.k(function(C){O=_.t(f,pot);c=u.store.getState().radioButtonGroup;if((h=O)==null?0:h.command)u.JSC$15258_commandHandler.resolveCommand((l=O)==null?void 0:l.command,R);else if(((K=O)==null?void 0:K.formId)===c.currentFormId)for(q=Object.values(c.commandsMap),F=_.Z(q),w=F.next();!w.done;w=F.next()){m=w.value;W=_.H7(m);if(!W)return C.return();u.JSC$15258_commandHandler.resolveCommand(W,R)}_.KG(C)})};
nH[nW]=[KH];var VI=new _.Vi("USER_PREFS");var YU=function(f){this.JSC$15262_prefCookie=f};
_.y(YU,TK);YU.prototype.resolveCommand=function(f){var R=this,u;return _.k(function(O){(u=_.t(f,YXF))&&typeof u.useListView==="boolean"&&(_.W_(0,155,u.useListView),R.JSC$15262_prefCookie.save());_.KG(O)})};
YU[nW]=[VI];var vu=function(f){this.JSC$15266_prefCookie=f};
_.y(vu,TK);vu.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l;return _.k(function(K){u=_.t(f,hvH);if((O=u)==null||!O.gl)return K.return();c=u.gl;h={persist_gl:"1",gl:c};R.JSC$15266_prefCookie.set("gl",c);R.JSC$15266_prefCookie.save();l=yfC(h);_.G$(l);_.KG(K)})};
vu[nW]=[VI];var i8=function(f){this.JSC$15270_prefCookie=f};
_.y(i8,TK);i8.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){u=_.t(f,mHk);if(!u)return c.return();O=!1;u.flagNum&&typeof u.value==="boolean"?(_.W_(0,u.flagNum,u.value),O=!0):u.key&&typeof u.stringValue==="string"&&(R.JSC$15270_prefCookie.set(u.key,u.stringValue),O=!0);O&&R.JSC$15270_prefCookie.save();_.KG(c)})};
i8[nW]=[VI];var rd=new _.Vi("PREF_STORAGE_PROMISE_TOKEN");var fz=function(f){this.JSC$15274_prefStoragePromise=f};
_.y(fz,TK);fz.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1)return(u=_.t(f,WOF))?_.A(c,R.JSC$15274_prefStoragePromise,2):c.return();O=c.yieldResult;return O===void 0||u.key===void 0||u.value===void 0?c.return():_.A(c,O.set(u.key,u.value),0)})};
fz[nW]=[rd];var $PH=function(f){this.innertubeTransportService=f};
_.y($PH,TK);$PH.prototype.resolveCommand=function(f,R){var u=this,O,c;return _.k(function(h){(O=_.t(f,_.gwY))&&O&&O.isFirstRequest&&(_.DW("search_overview_answer"),_.JH("so_rq",void 0,"search_overview_answer"));return _.A(h,_.e6(u.innertubeTransportService,f,(c=R)==null?void 0:c.form),0)})};
$PH[nW]=[_.JN];var g0i=function(){};
_.y(g0i,TK);
g0i.prototype.resolveCommand=function(f){var R,u,O,c,h,l,K,q,F;return _.k(function(w){R=_.t(f,YFY);if((u=R)==null?0:u.sectionIdentifier){if(R.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(c=(O=document.getElementsByTagName(R.sectionIdentifier))==null?void 0:O.item(0))c.scrollIntoView({behavior:"smooth"}),(h=Pjt(c))&&h.focus({preventScroll:!0});return w.return()}l=document.querySelector("[section-identifier="+R.sectionIdentifier+"]");K=document.querySelector("[section-identifier="+R.referenceSectionIdentifier+
"]");if(!l)return w.return();q=R.verticalScrollOffsetDp?R.verticalScrollOffsetDp:0;K&&(q-=K.offsetTop);window.scrollTo({top:l.offsetTop+q,behavior:"smooth"});(F=Pjt(l))&&F.focus({preventScroll:!0})}_.KG(w)})};var RB=function(){};
_.y(RB,TK);
RB.prototype.resolveCommand=function(f){var R,u,O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1){R=_.t(f,WJl);if(!R||!R.imageBytes||!navigator.clipboard)return q.return();if(R.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.TL(Error("yi")),q.return();_.cl(q,2);O=(u=R)==null?void 0:u.imageBytes;c=O.replace(/-/g,"+").replace(/_/g,"/");h=jJ0(c);l={};K=[new ClipboardItem((l[h.type]=h,l))];return _.A(q,navigator.clipboard.write(K),4)}if(q.nextAddress!=2)return _.Bf(q,0);
_.ku(q);_.KG(q)})};var u2=function(f,R){this.innertubeTransportService=f;this.JSC$15289_commandHandler=R};
_.y(u2,TK);u2.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1)return(O=_.t(f,EHi))?_.A(q,_.e6(u.innertubeTransportService,f,(c=R)==null?void 0:c.form),2):q.return();(h=q.yieldResult)&&h.errorMetadata&&O.onFailureCommand&&u.JSC$15289_commandHandler.resolveCommand(O.onFailureCommand);l=h;((K=l)==null?0:K.shareCommand)&&u.JSC$15289_commandHandler.resolveCommand(l.shareCommand,R);_.KG(q)})};
u2[nW]=[_.JN,_.rv];var OS=function(){};
_.y(OS,TK);OS.prototype.resolveCommand=function(f){var R,u;return _.k(function(O){R=_.t(f,AMf);if(!R||!navigator.share)return O.return();u={url:R.url};try{return O.return(navigator.share(u))}catch(c){}_.KG(O)})};var cv=function(){};
_.y(cv,TK);cv.prototype.resolveCommand=function(){return _.k(function(f){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.KG(f)})};var XI=function(f){this.JSC$15299_navigationConfirmationService=f};
_.y(XI,TK);XI.prototype.resolveCommand=function(){var f=this;return _.k(function(R){f.JSC$15299_navigationConfirmationService.cancelPendingNavigation();_.KG(R)})};
XI[nW]=[a3];var hc=function(f){this.JSC$15302_screenManager=f};
_.y(hc,TK);hc.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F;return _.k(function(w){c=(O=R.form)==null?void 0:O.event;l=(h=R.form)==null?void 0:h.element;if(!c)throw new _.ts("Event not passed in when resolving command");K=_.Z(c.composedPath());for(q=K.next();!q.done;q=K.next())if(F=q.value,F.tagName==="YT-COPY-LINK-RENDERER")return F.copyUrlToClipboard(),l&&_.MI(u.JSC$15302_screenManager,l),w.return();_.KG(w)})};
hc[nW]=[_.Cq];var ZT=function(){this.JSC$15306_miniAppClientDataProvider=_.vh().resolve(_.Hw)};
_.y(ZT,TK);ZT.prototype.resolveCommand=function(){var f=this,R,u;return _.k(function(O){if(f.JSC$15306_miniAppClientDataProvider.clientData.has("video_id")){var c=f.JSC$15306_miniAppClientDataProvider,h=c.clientData.get("video_id");h&&c.clientData.delete("video_id");R="https://youtube.com/watch?v="+h;u=mo(R);if(u===void 0)throw Error("zi`"+R);_.zd(window,u)}_.KG(O)})};var l2=function(){};
_.y(l2,TK);l2.prototype.resolveCommand=function(){return _.k(function(f){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.KG(f)})};var kF=function(){};
_.y(kF,TK);kF.prototype.resolveCommand=function(){var f;return _.k(function(R){if(R.nextAddress==1)return _.A(R,_.hoq(window.document.documentElement),2);(f=document.querySelector("mini-app-container-view-model iframe"))&&f.focus();_.KG(R)})};var Kz=function(f){this.JSC$15313_navigationConfirmationService=f};
_.y(Kz,TK);
Kz.prototype.resolveCommand=function(){var f=this;return _.k(function(R){var u=f.JSC$15313_navigationConfirmationService,O=_.vh().resolve(_.mf),c;if(((c=u.navigateParams)==null?void 0:c.data)!==void 0){var h;_.hZH(O,u.navigateParams.endpoint,u.navigateParams.data,(h=u.navigateParams.navigationType)!=null?h:1,u.navigateParams.tempData,u.navigateParams.isMiniplayer,void 0,!0);u.navigateParams=void 0;u.customConfirmationCommand=void 0}else u.navigateParams&&(O.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);_.KG(R)})};
Kz[nW]=[a3];var qw=function(){};
_.y(qw,TK);qw.prototype.resolveCommand=function(){return _.k(function(f){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.KG(f)})};var Ac=function(f){this.JSC$15318_prefStorage=f};
_.y(Ac,TK);Ac.prototype.resolveCommand=function(){var f=this,R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.A(O,f.JSC$15318_prefStorage,2);case 2:return(R=O.yieldResult)?_.A(O,R.set("sfvle",!1),3):O.return();case 3:return _.A(O,R.set("sfvles",!0),4);case 4:u=_.Qu(),_.W_(0,203,!1),_.W_(0,204,!0),u.save(),_.KG(O)}})};
Ac[nW]=[rd];var aB=function(f){this.JSC$15321_prefStorage=f};
_.y(aB,TK);aB.prototype.resolveCommand=function(){var f=this,R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.A(O,f.JSC$15321_prefStorage,2);case 2:return(R=O.yieldResult)?_.A(O,R.set("sfvle",!0),3):O.return();case 3:return _.A(O,R.set("sfvles",!0),4);case 4:u=_.Qu(),_.W_(0,203,!0),_.W_(0,204,!0),u.save(),_.KG(O)}})};
aB[nW]=[rd];var s_C=new _.Vi("SNACKBAR_CONTROLLER_TOKEN");var FI=function(f){this.controller=f};
_.y(FI,TK);FI.prototype.resolveCommand=function(f){var R=this,u,O,c;return _.k(function(h){u=_.t(f,TmH);if(!u)return h.return();O=_.t(u.content,$jG);if(!O)return h.return();var l=R.controller,K=O,q=(c=u.animationStyle)!=null?c:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(l.showSnackbarFn)l.showSnackbarFn({snackbarViewModel:K,animationStyle:q,durationMs:u.durationSeconds*1E3});else throw Error("hj");_.KG(h)})};
FI[nW]=[s_C];var wX=function(){};
_.y(wX,TK);wX.prototype.resolveCommand=function(f){var R;return _.k(function(u){R=_.t(f,QtI);if(!R||typeof R.key!=="string"||typeof R.value!=="string")return u.return();window.localStorage.setItem(R.key,R.value);_.KG(u)})};var mT=function(f){this.store=f};
_.y(mT,TK);mT.prototype.resolveCommand=function(f){var R=this,u;return _.k(function(O){u=_.t(f,Gil);if(!u||!u.stepId||!u.token)return O.return();R.store.dispatch(wXF({stepId:u.stepId,token:u.token,isSelected:!1}));_.KG(O)})};
mT[nW]=[KH];var QZ=function(f,R,u){this.innertubeTransportService=f;this.store=R;this.JSC$15337_screenManager=u};
_.y(QZ,TK);
QZ.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh,V,ZD,mP;return _.k(function(NX){u=_.t(f,tgi);if(!u||(O=u.stepIds)==null||!O.length)return NX.return();c=R.store.getState().talkToRecs;h=[];l=[];K=_.Z(u.stepIds);for(q=K.next();!q.done;q=K.next())for(F=q.value,w=void 0,(m=(w=c.stepStates[F])==null?void 0:w.userQuery)&&l.push({userQuery:m.userQuery,userQueryToken:m.token}),W=void 0,C=(W=c.stepStates[F])==null?void 0:W.selectionStates,d=_.Z(Object.entries(C)),p=
d.next();!p.done;p=d.next())J=p.value,M=_.Z(J),P=M.next().value,g=M.next().value,x=P,fh=g,fh.isSelected&&h.push(x);V={selectedChipTokens:h,userQueries:l,submittedStepIds:u.stepIds};ZD={browseTalk2recsFormData:V};u.browseEndpoint?(mP=f,_.jQ(mP,_.wY,u.browseEndpoint)):u.command&&(mP=u.command);return mP?_.A(NX,_.e6(R.innertubeTransportService,mP,{formData:ZD,disableCache:!0}).then(function(jt){(jt==null?0:jt.trackingParams)&&R.JSC$15337_screenManager.graftServerVe(jt==null?void 0:jt.trackingParams)}),
0):NX.return()})};
QZ[nW]=[_.JN,KH,_.Cq];var Wv=function(f){this.store=f};
_.y(Wv,TK);Wv.prototype.resolveCommand=function(f){var R=this,u;return _.k(function(O){u=_.t(f,ePX);if(!u||!u.stepId||!u.token)return O.return();R.store.dispatch(wXF({stepId:u.stepId,token:u.token,isSelected:!0}));_.KG(O)})};
Wv[nW]=[KH];var ES=function(f){this.store=f};
_.y(ES,TK);ES.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K;return _.k(function(q){O=_.t(f,Ckf);if(!O||!O.stepId||!O.userQueryToken)return q.return();K=(l=(c=R)==null?void 0:(h=c.form)==null?void 0:h.userQuery)!=null?l:"";u.store.dispatch(_.OP({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:O.stepId,userQueryToken:O.userQueryToken,userQuery:K}}));_.KG(q)})};
ES[nW]=[KH];_.n0f=new _.Vi("TIMELY_ACTIONS_CONTROLLER_TOKEN");var tc=function(f){this.controller=f};
_.y(tc,TK);tc.prototype.resolveCommand=function(f){var R=this,u,O,c,h;return _.k(function(l){u=_.t(f,sfC);if(!u)return l.return();O=u;c=O.id;h=O.isVisible;if(c===void 0||h===void 0)return l.return();var K;(K=R.controller.timelyActionsMap.get(c))==null||K(c,h);_.KG(l)})};
tc[nW]=[_.n0f];var V1Y=function(){this.timelyActionsMap=new Map};var Cz=function(f){this.JSC$15364_commandHandler=f};
_.y(Cz,TK);Cz.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l;return _.k(function(K){u=_.t(f,_.QE);if(!u)return K.return();h=(O=u.item)==null?void 0:(c=O.notificationTextRenderer)==null?void 0:c.successResponseText;if(!h)return K.return();l=_.YZ(h);R.JSC$15364_commandHandler.resolveCommand(l);_.KG(K)})};
Cz[nW]=[_.rv];var yZ=function(f,R){this.innertubeTransportService=f;this.JSC$15369_playerApiPromise=R};
_.y(yZ,TK);
yZ.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w;return _.k(function(m){if(m.nextAddress==1)return _.A(m,R.JSC$15369_playerApiPromise,2);u=m.yieldResult;O=u.getOption("captions","track");c=Object.assign({},_.t(f,_.evC));(l=(h=u.getVideoData())==null?void 0:h.video_id)?c.externalVideoId=l:_.UC(Error("Ai"));if((K=O)==null?0:K.languageCode)c.languageCode=O.languageCode;if((q=O)==null?0:q.kind)c.kind=O.kind;if((F=O)==null?0:F.name)c.name=O.name;w=Object.assign({},f,{getTranscriptEndpoint:c});return _.A(m,
_.e6(R.innertubeTransportService,w),0)})};
yZ[nW]=[_.JN,_.fr];var dX=function(){};
_.y(dX,TK);dX.prototype.resolveCommand=function(f){var R,u,O,c,h,l,K,q;return _.k(function(F){R=_.t(f,b6G);if((u=R)==null||!u.paramKeyValuePairs)return F.return();O=window.location.href;c=_.Z(R.paramKeyValuePairs);for(h=c.next();!h.done;h=c.next())l=h.value,l.key&&l.value&&(K={},O=_.x8(O,(K[l.key]=l.value,K)));q=_.vh().resolve(_.Ke);_.kc(q,O);_.KG(F)})};var Nw=function(f,R){this.JSC$15376_commandHandler=f;this.innertubeTransportService=R};
_.y(Nw,TK);
Nw.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g;return _.k(function(x){switch(x.nextAddress){case 1:return(h=(O=R)==null?void 0:(c=O.form)==null?void 0:c.element)&&_.om(h),l=_.Qu().get("hl"),K="",_.cl(x,2),_.A(x,nX7(l),4);case 4:K=x.yieldResult;_.Bf(x,3);break;case 2:return _.ku(x),h&&_.xR(h),_.TL(Error("Ci"),"ERROR"),x.return();case 3:q=_.t(f,WZF);if(!q)return h&&_.xR(h),x.return();(m=(F=q.commerceActionConfig)==null?void 0:(w=F.commandLifeCycleConfig)==null?
void 0:w.onStartCommand)&&u.JSC$15376_commandHandler.resolveCommand(m);return _.A(x,_.e6(u.innertubeTransportService,f,{client_data:{paymentsClientToken:{token:K}}}),5);case 5:(W=x.yieldResult)?(h&&_.xR(h),((J=W)==null?0:J.command)&&u.JSC$15376_commandHandler.resolveCommand(W.command),(g=(M=q.commerceActionConfig)==null?void 0:(P=M.commandLifeCycleConfig)==null?void 0:P.onSuccessCommand)&&u.JSC$15376_commandHandler.resolveCommand(g)):(h&&_.xR(h),_.TL(Error("Di")),(p=(C=q.commerceActionConfig)==null?
void 0:(d=C.commandLifeCycleConfig)==null?void 0:d.onFailureCommand)&&u.JSC$15376_commandHandler.resolveCommand(p)),_.KG(x)}})};
Nw[nW]=[_.rv,_.JN];var Lz=function(f,R,u){this.store=f;this.JSC$15392_commandHandler=R;this.innertubeTransportService=u};
_.y(Lz,TK);
Lz.prototype.resolveCommand=function(f,R){var u=this,O,c,h,l,K,q,F,w,m;return _.k(function(W){O=_.t(f,EhF);c=O.googlePaymentPayload;O.onStartCommand&&u.JSC$15392_commandHandler.resolveCommand(O.onStartCommand);h=c.encryptedPurchaseParams;l=c.ypcLogWalletAnalyticDataEndpoint;K=O.serializedTransactionFlowLoggingParams;q=c.serializedPaymentsClientParams;F=O.ypcCujContext;m=vX2(u.innertubeTransportService,(w=R)==null?void 0:w.form,h,l,K,q,F);return W.return(m.then(function(C){V32(R==null?void 0:R.form,
!1);var d=u.store,p=u.JSC$15392_commandHandler,J=C.integratorData;J==null||J===""||C.error!=null?(String(C.error)==="-1"&&O.onDismissCommand?p.resolveCommand(O.onDismissCommand):String(C.error)!=="-1"&&O.onFailureCommand&&p.resolveCommand(O.onFailureCommand),String(C.error)!=="-1"&&String(C.error)!=="132"&&_.TL(Error("Ei"),"ERROR")):(O.googlePaymentEntityKey&&d.dispatch(_.aA("commerceAcquisitionClientPayloadEntity",O.googlePaymentEntityKey,{key:O.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:J,
fundsGuaranteeCallbackClientData:C.integratorClientCallbackData}}})),O.onSuccessCommand&&p.resolveCommand(O.onSuccessCommand));_.ll()},function(C){V32(R==null?void 0:R.form,!1);
_.TL(C,"ERROR");O.onFailureCommand&&u.JSC$15392_commandHandler.resolveCommand(O.onFailureCommand)}))})};
Lz[nW]=[lk,_.rv,_.JN];var b2=function(f,R){this.JSC$15396_commandHandler=f;this.purchaseManager=R};
_.y(b2,TK);
b2.prototype.resolveCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w;return _.k(function(m){u=_.t(f,til);((O=u)==null?0:(c=O.commandLifeCycleConfig)==null?0:c.onStartCommand)&&R.JSC$15396_commandHandler.resolveCommand(u.commandLifeCycleConfig.onStartCommand);if(!((h=u)==null?0:(l=h.googlePaymentPurchaseManagerPayload)==null?0:l.securePayloadBytes))return _.TL(Error("Fi"),"ERROR"),m.return();K=G4l(_.Fi(u.googlePaymentPurchaseManagerPayload.securePayloadBytes));q=_.Qu().get("hl");F=_.BM();uDf(K.serialize(),
q,function(W){F.resolve(W)},function(W){F.reject(W)},F.resolve);
w=F.promise;return m.return(w.then(function(W){if(W)if(W==null?0:W.errorCode){_.TL(Error("Gi`"+W.errorCode),"ERROR");var C,d;((C=u)==null?0:(d=C.commandLifeCycleConfig)==null?0:d.onFailureCommand)&&R.JSC$15396_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}else if(W==null?0:W.isCancelled){var p,J;((p=u)==null?0:(J=p.commandLifeCycleConfig)==null?0:J.onCancelCommand)&&R.JSC$15396_commandHandler.resolveCommand(u.commandLifeCycleConfig.onCancelCommand)}else{var M,P;((M=u)==
null?0:(P=M.commandLifeCycleConfig)==null?0:P.onSuccessCommand)&&R.JSC$15396_commandHandler.resolveCommand(u.commandLifeCycleConfig.onSuccessCommand)}},function(W){_.TL(W,"ERROR");
var C,d;((C=u)==null?0:(d=C.commandLifeCycleConfig)==null?0:d.onFailureCommand)&&R.JSC$15396_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}))})};
b2[nW]=[_.rv,O7k];var YsF=function(f,R){this.JSC$15404_commandHandler=f;this.commandAllowlistOverride=R;var u;this.commandAllowlist=(u=this.commandAllowlistOverride)!=null?u:oX};
YsF.prototype.handleResponse=function(f,R,u){var O,c=R==null?void 0:(O=R.config)==null?void 0:O.command;if(!c||this.commandAllowlist.some(function(h){return!!_.t(c,h)})){R=void 0;
u!==void 0&&(R={form:{element:u}});f.onResponseReceivedCommand&&this.JSC$15404_commandHandler.resolveCommand(f.onResponseReceivedCommand,R);f.onResponseReceivedAction&&this.JSC$15404_commandHandler.resolveCommand(f.onResponseReceivedAction,R);f.onResponseReceivedEndpoint&&this.JSC$15404_commandHandler.resolveCommand(f.onResponseReceivedEndpoint,R);f.command&&this.JSC$15404_commandHandler.resolveCommand(f.command,R);if(f.onResponseReceivedCommands)for(u=_.Z(f.onResponseReceivedCommands),O=u.next();!O.done;O=
u.next())this.JSC$15404_commandHandler.resolveCommand(O.value,R);if(f.onResponseReceivedActions)for(u=_.Z(f.onResponseReceivedActions),O=u.next();!O.done;O=u.next())this.JSC$15404_commandHandler.resolveCommand(O.value,R);if(f.onResponseReceivedEndpoints)for(u=_.Z(f.onResponseReceivedEndpoints),O=u.next();!O.done;O=u.next())this.JSC$15404_commandHandler.resolveCommand(O.value,R);if(f.actions)for(f=_.Z(f.actions),u=f.next();!u.done;u=f.next())this.JSC$15404_commandHandler.resolveCommand(u.value,R)}};
YsF[nW]=[_.rv,_.Y8(tJP)];var v0k=new _.Vi("INNERTUBE_TOKEN_SERVICE");var i7k=new _.Vi("SCHEDULER_TOKEN");var rIk=function(f){this.scheduler=f;f={};this.tokenMap=(f.app={},f.user={},f)};
rIk.prototype.handleResponse=function(f,R){if(!R)throw Error("Hi");var u;if(f=(u=f.responseContext)==null?void 0:u.innertubeTokenJar){if(f.appTokens){var O,c,h;u=(O=R.innerTubeRequest.context)==null?void 0:(c=O.request)==null?void 0:(h=c.innertubeTokenJar)==null?void 0:h.appTokens;f3E(this,f.appTokens,this.tokenMap.app,u)}if(f.userTokens){var l,K,q;R=(l=R.innerTubeRequest.context)==null?void 0:(K=l.request)==null?void 0:(q=K.innertubeTokenJar)==null?void 0:q.userTokens;f3E(this,f.userTokens,this.tokenMap.user,
R)}}};
rIk.prototype.processContext=function(f){f.request||(f.request={});var R=Object.keys(this.tokenMap.app).length,u=Object.keys(this.tokenMap.user).length;if(R||u)f.request.innertubeTokenJar={},R&&(f.request.innertubeTokenJar.appTokens=[].concat(_.yq(Object.values(this.tokenMap.app).flat()))),u&&(f.request.innertubeTokenJar.userTokens=[].concat(_.yq(Object.values(this.tokenMap.user).flat())))};
var f3E=function(f,R,u,O){R=_.Z(R);for(var c=R.next(),h={};!c.done;h={token$jscomp$137:void 0},c=R.next()){h.token$jscomp$137=c.value;if(h.token$jscomp$137.type===void 0)throw new _.ts("InnerTube token has no type",h.token$jscomp$137);if(h.token$jscomp$137.clearTokens)u[h.token$jscomp$137.type]=[];else if(h.token$jscomp$137.value!==void 0){u[h.token$jscomp$137.type]||(u[h.token$jscomp$137.type]=[]);if(O!==void 0&&O.length){c=_.Z(O);for(var l=c.next(),K={};!l.done;K={requestToken:void 0},l=c.next())K.requestToken=
l.value,l=u[h.token$jscomp$137.type].findIndex(function(q){return function(F){return F===q.requestToken||(0,_.dq.equals)(F,q.requestToken)}}(K)),l>-1&&u[h.token$jscomp$137.type].splice(l,1)}u[h.token$jscomp$137.type].push(h.token$jscomp$137);
h.token$jscomp$137.maxAgeSeconds&&Number(h.token$jscomp$137.maxAgeSeconds)>0&&f.scheduler.addLowPriorityJob(function(q){return function(){var F=u[q.token$jscomp$137.type].indexOf(q.token$jscomp$137);F>-1&&u[q.token$jscomp$137.type].splice(F,1)}}(h),Number(h.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.ts("InnerTube token has no value",h.token$jscomp$137);
}};
rIk[nW]=[i7k];var RQY=new _.Vi("LOCAL_INNERTUBE_ROUTER_TOKEN"),uQi=new _.Vi("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var pz=function(f){this.serviceMap=f};
pz.prototype.shouldPreferLocalResponse=function(f,R){return(f=Osf(this,f))?f.shouldPreferLocalResponse(R):!1};
pz.prototype.localInnertubeResponse=function(f,R){var u=this,O;return _.k(function(c){return(O=Osf(u,f))?c.return(O.localInnertubeResponse(R)):c.return(Promise.reject(Error("Ii")))})};
pz.prototype.canProvideFallbackResponse=function(f,R){return(f=Osf(this,f))?f.canProvideFallbackResponse(R):!1};
pz.prototype.localFallbackInnertubeResponse=function(f,R){var u=this,O;return _.k(function(c){return(O=Osf(u,f))?c.return(O.localFallbackInnertubeResponse(R)):c.return(Promise.reject(Error("Ii")))})};
var Osf=function(f,R){R=_.Kt(R);return R?(f=f.serviceMap[R])?f:null:null};
pz[nW]=[uQi];var td=function(){};
td.prototype.shouldPreferLocalResponse=function(){return!1};
td.prototype.localInnertubeResponse=function(){return _.k(function(f){return f.return(Promise.reject(Error("Ji")))})};
td.prototype.canProvideFallbackResponse=function(){return!0};
td.prototype.localFallbackInnertubeResponse=function(){var f,R,u;return _.k(function(O){f=dh("CLOSE_POPUP");R={openPopupAction:rG5()};u={actions:[f,R]};return O.return(u)})};var DzD=function(f,R){this.JSC$15454_upliftPromise=f;this.store=R};
_.X=DzD.prototype;_.X.shouldPreferLocalResponse=function(f){var R=f.videoId,u;if(u=R)u=bu2(this.store.getState().entities,f.videoId);return u&&pmn(this.store.getState().entities,R)?R0X(this.store.getState().entities,f.playlistId):!1};
_.X.localInnertubeResponse=function(f){var R=this,u;return _.k(function(O){return(u=R.getPlayerResponse(f))?O.return(Promise.resolve(u)):O.return(Promise.reject(Error("Ki")))})};
_.X.canProvideFallbackResponse=function(f){return!!f.videoId};
_.X.localFallbackInnertubeResponse=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.JSC$15454_upliftPromise,2);u=R.getPlayerResponse(f);var c;u?c=O.return(Promise.resolve(u)):c=Cg(R.store.getState().entities,f.videoId)?O.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.fg(_.Fa("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:bXh()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
O.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.fg(_.Fa("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:L7n()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return c})};
_.X.getPlayerResponse=function(f){return fl2(this.store.getState().entities,f.videoId)};var EX=function(f,R){this.localPlayerService=f;this.localWatchNextService=R};
EX.prototype.shouldPreferLocalResponse=function(f){var R=f.playerRequest;f=f.watchNextRequest;return!!(R&&this.localPlayerService.shouldPreferLocalResponse(R)&&f&&this.localWatchNextService.shouldPreferLocalResponse(f))};
EX.prototype.localInnertubeResponse=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1){u=f.playerRequest;O=f.watchNextRequest;if(!u||!O)throw new _.ts("Missing streaming request",f);return _.A(l,R.localPlayerService.localInnertubeResponse(u),2)}if(l.nextAddress!=3)return c=l.yieldResult,_.A(l,R.localWatchNextService.localInnertubeResponse(O),3);h=l.yieldResult;return l.return({playerResponse:c,watchNextResponse:h})})};
EX.prototype.canProvideFallbackResponse=function(f){var R=f.playerRequest;f=f.watchNextRequest;return!!(R&&this.localPlayerService.canProvideFallbackResponse(R)&&f&&this.localWatchNextService.canProvideFallbackResponse(f))};
EX.prototype.localFallbackInnertubeResponse=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return u=f.playerRequest,O=f.watchNextRequest,u&&O?_.A(l,R.localPlayerService.localFallbackInnertubeResponse(u),2):l.return(Promise.reject(new _.ts("Missing streaming request",f)));if(l.nextAddress!=3)return c=l.yieldResult,_.A(l,R.localWatchNextService.localFallbackInnertubeResponse(O),3);h=l.yieldResult;return l.return({playerResponse:c,watchNextResponse:h})})};var mz=function(f){this.JSC$15464_persistentStorePromiseAccessor=f};
mz.prototype.shouldPreferLocalResponse=function(){return!1};
mz.prototype.localInnertubeResponse=function(){return _.k(function(f){return f.return(Promise.reject(Error("Li")))})};
mz.prototype.canProvideFallbackResponse=function(){return!0};
mz.prototype.localFallbackInnertubeResponse=function(){var f=this,R,u;return _.k(function(O){return O.nextAddress==1?_.A(O,f.JSC$15464_persistentStorePromiseAccessor(),2):O.nextAddress!=3?(R=O.yieldResult)?_.A(O,R.get("service:guide:fallback"),3):O.return(Promise.reject(Error("Mi"))):(u=O.yieldResult)&&_.hd(u)?O.return(uL5(_.hd(u))):O.return(Promise.reject(Error("Ni")))})};var CS=function(){};
CS.prototype.shouldPreferLocalResponse=function(){return!1};
CS.prototype.localInnertubeResponse=function(){return _.k(function(f){return f.return(Promise.reject(Error("Oi")))})};
CS.prototype.canProvideFallbackResponse=function(){return!0};
CS.prototype.localFallbackInnertubeResponse=function(){var f,R,u;return _.k(function(O){f=dh("CLOSE_POPUP");R={openPopupAction:rG5()};u={actions:[f,R]};return O.return(u)})};var wI=function(){this.urlMap=cpC;this.fallbackCommand=_.Ai};
wI.prototype.shouldPreferLocalResponse=function(f){return(f=f.url)?!!X8C(this,f):!1};
wI.prototype.localInnertubeResponse=function(f){var R=this,u;return _.k(function(O){return(u=f.url)?O.return(hQf(f,X8C(R,u))):O.return(Promise.reject(Error("Pi")))})};
wI.prototype.canProvideFallbackResponse=function(){return!0};
wI.prototype.localFallbackInnertubeResponse=function(f){var R=this,u,O,c,h,l,K,q;return _.k(function(F){u=f.url;if(!u)return F.return(hQf(f,R.fallbackCommand));if(O=X8C(R,u))return F.return(hQf(f,O));c=void 0;h=_.Kt(u);h==="/watch"&&(l=_.GP(u,"v"))&&(q=(K=_.GP(u,"list"))!=null?K:void 0,c=_.rA(l,q));c||(c=R.fallbackCommand);return F.return(hQf(f,c))})};
var X8C=function(f,R){if(R)return f.urlMap[_.G4(R)]},hQf=function(f,R){R&&f.parentTrackingParams&&(R.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:f.parentTrackingParams}},R.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:R})};var Qk=function(f,R,u){this.JSC$15474_upliftPromise=f;this.store=R;this.JSC$15474_persistentStorePromiseAccessor=u};
Qk.prototype.shouldPreferLocalResponse=function(){return!1};
Qk.prototype.localInnertubeResponse=function(){return _.k(function(f){return f.return(Promise.reject(Error("Qi")))})};
Qk.prototype.canProvideFallbackResponse=function(){return!0};
Qk.prototype.localFallbackInnertubeResponse=function(){var f=this;return _.k(function(R){return R.return(ZsH(f))})};
var ZsH=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,Xx(f.JSC$15474_upliftPromise,f.store),2);R=O.yieldResult;u={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[fon(R)]}}}};return O.return(l3C(f,u))})},l3C=function(f,R){var u,O;
return _.k(function(c){if(c.nextAddress==1)return _.A(c,f.JSC$15474_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return u=c.yieldResult,_.A(c,ZS(u),3);O=c.yieldResult;return c.return({responseContext:{},contents:R,topbar:O})})};var aG=function(f,R,u){this.JSC$15481_upliftPromise=f;this.store=R;this.JSC$15481_persistentStorePromiseAccessor=u};
aG.prototype.shouldPreferLocalResponse=function(f){var R=f.videoId;return R&&bu2(this.store.getState().entities,R)&&pmn(this.store.getState().entities,R)?R0X(this.store.getState().entities,f.playlistId):!1};
aG.prototype.localInnertubeResponse=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1)return(u=f.videoId)?_.A(c,R.JSC$15481_upliftPromise,2):c.return(Promise.reject(Error("Ri")));if(c.nextAddress!=3)return _.A(c,k6E(R,f,u),3);O=c.yieldResult;return c.return(KdC(R,O,u))})};
aG.prototype.canProvideFallbackResponse=function(f){return f.videoId?!0:!1};
aG.prototype.localFallbackInnertubeResponse=function(f){var R=this,u,O,c,h;return _.k(function(l){switch(l.nextAddress){case 1:return(u=f.videoId)?_.A(l,R.JSC$15481_upliftPromise,2):l.return(Promise.reject(Error("Ri")));case 2:return _.A(l,k6E(R,f,u),3);case 3:O=l.yieldResult;if(Cg(R.store.getState().entities,u)){l.jumpTo(4);break}return _.A(l,Xx(R.JSC$15481_upliftPromise,R.store),5);case 5:return c=l.yieldResult,l.return(qnf(O,c));case 4:return bu2(R.store.getState().entities,u)&&pmn(R.store.getState().entities,
u)?l.return(KdC(R,O,u)):(h={title:_.fg(_.Fa("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:bXh()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},l.return(qnf(O,h)))}})};
var k6E=function(f,R,u){var O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1)return O=R.playlistId,c=_.rA(u,O),_.A(q,f.JSC$15481_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return h=q.yieldResult,_.A(q,ZS(h),3);l=q.yieldResult;K={responseContext:{},currentVideoEndpoint:c,topbar:l};return q.return(K)})},KdC=function(f,R,u){if(f=Cg(f.store.getState().entities,u)){var O;
u=f.videoEntity;var c,h={title:RL(u.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.u$((O=u.localizedStrings)==null?void 0:O.viewCount),viewCount:_.u$((c=u.localizedStrings)==null?void 0:c.viewCount)}}};u.publishedTimestampMillis&&(h.dateText=_.u$(ohq(new Date(Number(u.publishedTimestampMillis)))));O={videoPrimaryInfoRenderer:h};c=f.videoEntity;f=f.channelEntity;f={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:RL(_.Fa("SHOW_MORE",void 0,"Show more")),
showLessText:RL(_.Fa("SHOW_LESS",void 0,"Show less")),description:c.formattedDescription,owner:{videoOwnerRenderer:{title:RL(f.title),thumbnail:f.avatar}}}};R.contents={twoColumnWatchNextResults:{results:{results:{contents:[O,f]}}}}}return R},qnf=function(f,R){f.contents={singleColumnWatchNextResults:{results:{results:{contents:[fon(R)]}}}};
return f};var W9=function(f,R,u){this.JSC$15486_upliftPromise=f;this.store=R;this.JSC$15486_persistentStorePromiseAccessor=u};
W9.prototype.shouldPreferLocalResponse=function(){return!1};
W9.prototype.localInnertubeResponse=function(){return _.k(function(f){return f.return(Promise.reject(Error("Si")))})};
W9.prototype.canProvideFallbackResponse=function(){return!0};
W9.prototype.localFallbackInnertubeResponse=function(){var f=this,R,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return _.A(h,f.JSC$15486_persistentStorePromiseAccessor(),2);case 2:return R=h.yieldResult,_.A(h,ZS(R),3);case 3:return u=h.yieldResult,O={responseContext:{},topbar:u},_.A(h,f.JSC$15486_upliftPromise,4);case 4:return _.A(h,Xx(f.JSC$15486_upliftPromise,f.store),5);case 5:return c=h.yieldResult,O.watchStatus={backgroundPromoRenderer:c},h.return(O)}})};var ApA=new _.Vi("ENDPOINT_MAP");var a3E=function(){var f=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return f.sequenceMap}}},h_f=function(f,R,u){var O,c=(O=R.config)==null?void 0:O.sequenceStrategy;
if(!c)return u();f.sequenceMap.has(c.sequenceKey)||f.sequenceMap.set(c.sequenceKey,[]);f=f.sequenceMap.get(c.sequenceKey);switch(c.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return FdG(f,R,u);case "REQUEST_SEQUENCE_TYPE_REPLACE":return w8k(f,R,u);default:throw new _.ts("Request could not be sequenced",R);}},FdG=function(f,R,u){var O,c,h;
return _.k(function(l){f.length>0?(c=f[f.length-1],O=c.responsePromise.then(function(){return u()})):O=u();
h={request:R,responsePromise:O};f.push(h);mRH(f,h);return l.return(h.responsePromise)})},w8k=function(f,R,u){u=u();
if(f.length>0)for(var O=_.Z(f),c=O.next();!c.done;c=O.next())c.value.responsePromise=u;var h={request:R,responsePromise:u};f.push(h);mRH(f,h);return Promise.resolve().then(function(){return f.indexOf(h)>0?h.responsePromise.then(function(l){return Object.assign({},l,{sequenceMetaData:{skipProcessing:!0}})}):h.responsePromise})},mRH=function(f,R){R.responsePromise.then(function(){var u=f.indexOf(R);
u>-1&&f.splice(u,1)})};var QiC=new _.Vi("REQUEST_SEQUENCING");var jJ=function(){};
_.y(jJ,Oq);jJ.prototype.getApiPaths=function(){return[]};
jJ.prototype.getExtension=function(f){return _.t(f,oRC)};
jJ.prototype.JSC$10994_buildRequest=function(f,R){f.recaptchaToken=R.recaptchaToken};
jJ.prototype.getApiUrl=function(){return"/das_captcha"};var DT=function(){};
_.y(DT,Oq);DT.prototype.getApiPaths=function(){return QCt};
DT.prototype.getExtension=function(f){return _.t(f,w9A)};
DT.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.createBackstagePostParams&&(f.createBackstagePostParams=R.createBackstagePostParams);u.comment_text&&(f.commentText=u.comment_text);if(u.attached_video_id)f.videoAttachment={videoId:u.attached_video_id};else if(u.image_poll_options)f.pollAttachmentData={options:u.image_poll_options};else if(u.poll_options)f.pollAttachment={choices:u.poll_options};else if(u.quiz_options)f.quizAttachmentData={options:u.quiz_options};else if(u.image_blob_id)f.imageAttachment=
{encryptedBlobId:u.image_blob_id},u.source_video_id&&(f.imageAttachment.sourceExternalVideoId=u.source_video_id),u.image_preview_coordinates&&(f.imageAttachment.previewCoordinates=JSON.parse(u.image_preview_coordinates));else if(u.images_data)f.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 O,c,h,l,K;f.clipAttachment={externalVideoId:(h=u.clip_external_video_id)!=null?h:"",offsetMs:(l=(O=u.clip_offset_ms)==
null?void 0:O.toString())!=null?l:"",durationMs:(K=(c=u.clip_duration_ms)==null?void 0:c.toString())!=null?K:""}}else u.shared_post_id&&(f.sharedPostAttachment={postId:u.shared_post_id});u.tagged_video_id&&(f.postCreationData={taggedVideoId:u.tagged_video_id});u.access_restrictions&&(typeof u.access_restrictions==="number"&&(R=u.access_restrictions,f.accessRestrictions={restriction:R!==1&&R===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof u.access_restrictions==="string"&&
(f.accessRestrictionsParams=u.access_restrictions));u.scheduled_publish_time_sec&&(f.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString())};var Jc=function(){};
_.y(Jc,Oq);Jc.prototype.getApiPaths=function(){return NtF};
Jc.prototype.getExtension=function(f){return _.t(f,tHi)};
Jc.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.decorateMessageParams&&(f.params=R.decorateMessageParams);u.text&&(f.text=u.text)};var zj=function(){};
_.y(zj,Oq);zj.prototype.getApiPaths=function(){return gaC};
zj.prototype.getExtension=function(f){return _.t(f,mSt)};
zj.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;u.video_id&&(f.videoId=u.video_id)};var Tj=function(){};
_.y(Tj,Oq);Tj.prototype.getApiPaths=function(){return iif};
Tj.prototype.getExtension=function(f){return _.t(f,_.AH)};
Tj.prototype.JSC$10994_buildRequest=function(f,R,u){u.suggestions_query&&(f.input=u.suggestions_query)};var Hv=function(){};
_.y(Hv,Oq);Hv.prototype.getApiPaths=function(){return JCi};
Hv.prototype.getExtension=function(f){return _.t(f,QGG)};
Hv.prototype.JSC$10994_buildRequest=function(f,R,u){u.comment_text!==void 0&&(f.commentText=u.comment_text);u.scheduled_publish_time_sec&&(f.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString());f.updateBackstagePostParams=R.updateBackstagePostParams};var IB=function(){};
_.y(IB,Oq);IB.prototype.getApiPaths=function(){return iX};
IB.prototype.getExtension=function(f){return _.t(f,_.Tw)};
IB.prototype.JSC$10994_buildRequest=function(f,R,u){u.formData&&(f.formData=u.formData);R.token?f.continuation=R.token:R.continuationTokenKey&&(u=_.sP().getState(),R=_.kZ(u.entities,"continuationTokenEntity",R.continuationTokenKey))&&(f.continuation=String(R.continuationToken))};
var Wdf=function(){};
_.y(Wdf,Oq);_.X=Wdf.prototype;_.X.getApiPaths=function(){return iX};
_.X.getExtension=function(f){return _.t(f,_.wY)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11001_getStoreKey=function(f){if((f=this.getExtension(f))&&f.browseId){var R={browseId:f.browseId};f.browseEndpointContextSupportedConfigs&&(R.browseEndpointContextSupportedConfigs=JSON.stringify(f.browseEndpointContextSupportedConfigs));f.params&&(R.params=f.params);f.query&&(R.query=f.query);return _.Sd("browse",R)}};
_.X.JSC$10994_buildRequest=function(f,R,u){R.browseId&&(f.browseId=R.browseId);R.params&&(f.params=R.params);R.query&&(f.query=R.query);u.formData?f.formData=u.formData:R.formData&&(f.formData=R.formData);R.browseId==="FEsubscriptions"&&_.Qu().getFlag(155)&&(f.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");R.browseId==="SPaccount_playback"&&(u=_.Qu(),f.formData||(f.formData={}),f.formData.accountSettingsFormData={flagCaptionsDefaultOff:u.getFlag(65),flagAutoCaptionsDefaultOn:u.getFlag(66),
flagDisableInlinePreview:u.getFlag(186),flagAudioDescriptionDefaultOn:u.getFlag(198)});if(R.browseId==="FEwhat_to_watch"){u=_.Qu();var O=u.getFlag(196);u.getFlag(197)&&(f.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:O}}})}R.browseId==="FEwhat_to_watch"&&(R=_.Qu().getFlag(186),f.inlineSettingStatus=R?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.X.getRequestConfig=function(f,R){R=R===void 0?{}:R;var u={};if(f=this.JSC$11001_getStoreKey(f,R))u.storeStrategy={storeKey:f,disableCache:R.disableCache};_.E("web_log_browse_ticks_ks")||(u.requestTick="br_s",u.responseTick="br_r");return u};var Mw=function(){};
_.y(Mw,Oq);Mw.prototype.getApiPaths=function(){return q1Y};
Mw.prototype.getExtension=function(f){return _.t(f,MTf)};
Mw.prototype.JSC$10994_buildRequest=function(f,R,u){f.legacyYoutubeChannelUsername=u.legacyYouTubeChannelUsername||"";f.legacyYoutubeChannelPassword=u.legacyYouTubeChannelPassword||""};var Pv=function(){};
_.y(Pv,Oq);Pv.prototype.getApiPaths=function(){return tGC};
Pv.prototype.getExtension=function(f){return _.t(f,Lzt)};
Pv.prototype.JSC$10994_buildRequest=function(f,R,u){u.recaptcha_response_token&&(f.recaptchaResponseToken=u.recaptcha_response_token);u.channel_id&&(f.channelId=u.channel_id)};var US=function(){};
_.y(US,Oq);US.prototype.getApiPaths=function(){return z7Y};
US.prototype.getExtension=function(f){return _.t(f,zKI)};
US.prototype.JSC$10994_buildRequest=function(f,R,u){R.externalChannelId&&(f.externalChannelId=R.externalChannelId);u.handle&&(f.handleUpdate={handle:u.handle},R.handleEditSource&&(f.handleUpdate.handleEditSource=R.handleEditSource))};var eJ=function(){};
_.y(eJ,Oq);eJ.prototype.getApiPaths=function(){return MGl};
eJ.prototype.getExtension=function(f){return _.t(f,gjk)};
eJ.prototype.JSC$10994_buildRequest=function(f,R,u){R.request&&(f.channelId=R.request.channelId);var O;if(u==null?0:(O=u.uploadDefaults)==null?0:O.emojiReactionSet)f.uploadDefaultsRequest||(f.uploadDefaultsRequest={}),f.uploadDefaultsRequest.emojiReactionSet=u.uploadDefaults.emojiReactionSet};var Gj=function(){};
_.y(Gj,Oq);Gj.prototype.getApiPaths=function(){return e7I};
Gj.prototype.getExtension=function(f){return _.t(f,bSl)};
Gj.prototype.JSC$10994_buildRequest=function(f,R,u){R.externalChannelId&&(f.externalChannelId=R.externalChannelId);R.channelHandleEntityKey&&(f.channelHandleEntityKey=R.channelHandleEntityKey);R.handleEditSource&&(f.handleEditSource=R.handleEditSource);u.handle?f.handle=u.handle:u.name&&(f.name=u.name)};var Bv=function(){};
_.y(Bv,Oq);Bv.prototype.getApiPaths=function(){return FuF};
Bv.prototype.getExtension=function(f){return _.t(f,cLt)};
Bv.prototype.JSC$10994_buildRequest=function(f,R){R.actions?f.actions=R.actions:R.action&&(f.actions=[R.action])};var oB=function(){};
_.y(oB,Oq);oB.prototype.getApiPaths=function(){return w1l};
oB.prototype.getExtension=function(f){return _.t(f,_.Tw)};
oB.prototype.JSC$10994_buildRequest=function(f,R){R.token&&(f.continuation=R.token)};var xF=function(){};
_.y(xF,Oq);xF.prototype.getApiPaths=function(){return S1F};
xF.prototype.getExtension=function(f){return _.t(f,_.Tw)};
xF.prototype.JSC$10994_buildRequest=function(f,R){f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";R.token&&(f.fetchCommentsParams={continuation:R.token})};var SJ=function(){};
_.y(SJ,Oq);SJ.prototype.getApiPaths=function(){return toG};
SJ.prototype.getExtension=function(f){return _.t(f,OuH)};
SJ.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.createReplyParams&&(f.createReplyParams=R.createReplyParams);R.commentText&&(f.commentText=_.$Z(R.commentText));u.comment_text&&(f.commentText=u.comment_text);u.image_blob_id&&(f.imageAttachment={encryptedBlobId:u.image_blob_id});u.botguard_response&&(f.botguardResponse=u.botguard_response)};
_.Vy.Object.defineProperties(SJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $F=function(){};
_.y($F,Oq);$F.prototype.getApiPaths=function(){return C5H};
$F.prototype.getExtension=function(f){return _.t(f,_.uUt)};
$F.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.createCommentParams&&(f.createCommentParams=R.createCommentParams);R.commentText&&(f.commentText=_.$Z(R.commentText));R.videoPositionMention&&(f.videoPositionMention=R.videoPositionMention);R.sources&&(f.sources=R.sources);u.comment_text&&(f.commentText=u.comment_text);u.attached_video_id?f.videoAttachment={videoId:u.attached_video_id}:u.poll_options?f.pollAttachment={choices:u.poll_options}:u.image_blob_id?f.imageAttachment=
{encryptedBlobId:u.image_blob_id}:u.shared_post_id&&(f.sharedPostAttachment={postId:u.shared_post_id});u.access_restrictions&&typeof u.access_restrictions==="number"&&(R=u.access_restrictions,f.accessRestrictions={restriction:R!==1&&R===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});u.botguard_response&&(f.botguardResponse=u.botguard_response)};
_.Vy.Object.defineProperties($F.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gX=function(){};
_.y(gX,Oq);gX.prototype.getApiPaths=function(){return Tjk};
gX.prototype.getExtension=function(f){return _.t(f,hnY)};
gX.prototype.JSC$10994_buildRequest=function(f,R,u){R.commentText&&(f.replyText=_.$Z(R.commentText));u.comment_text&&(f.replyText=u.comment_text);f.updateReplyParams=R.updateReplyParams};
_.Vy.Object.defineProperties(gX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sS=function(){};
_.y(sS,Oq);sS.prototype.getApiPaths=function(){return Hkk};
sS.prototype.getExtension=function(f){return _.t(f,XmC)};
sS.prototype.JSC$10994_buildRequest=function(f,R,u){R.commentText&&(f.commentText=_.$Z(R.commentText));u.comment_text&&(f.commentText=u.comment_text);f.updateCommentParams=R.updateCommentParams};
_.Vy.Object.defineProperties(sS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nz=function(){};
_.y(nz,Oq);nz.prototype.getApiPaths=function(){return IXk};
nz.prototype.getExtension=function(f){return _.t(f,ojE)};
nz.prototype.JSC$10994_buildRequest=function(f,R){R.settings&&(f.settings=R.settings)};var VZ=function(){};
_.y(VZ,Oq);VZ.prototype.getApiPaths=function(){return P5f};
VZ.prototype.getExtension=function(f){return _.t(f,p9f)};
VZ.prototype.JSC$10994_buildRequest=function(f,R){R.channelCreationToken&&(f.channelCreationToken=R.channelCreationToken);R.source&&(f.source=R.source)};var YF=function(){};
_.y(YF,Oq);YF.prototype.getApiPaths=function(){return EaC};
YF.prototype.getExtension=function(f){return _.t(f,JdI)};
YF.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;if(u.name&&(u.given_name||u.family_name))f=new _.ts("channel creation cannot set both GAIA and YouTube names",R),_.TL(f);else{if(R.zeroStepChannelCreationParams){if(!u.comment_text){f=new _.ts("zero_step_create_comment_params but no zero_step_texts",R);_.TL(f);return}f.zeroStepChannelCreationParams=R.zeroStepChannelCreationParams;f.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(f.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
u.comment_text,u.botguard_response&&(f.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=u.botguard_response))}f.channelCreationToken=R.channelCreationToken;u.given_name&&(f.givenName=u.given_name);u.family_name&&(f.familyName=u.family_name);R.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(f.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)f.overrideChannelCreationParams={},u.name&&(f.overrideChannelCreationParams.name=u.name),u.handle&&(f.overrideChannelCreationParams.handle=u.handle),u.avatar_url&&(f.overrideChannelCreationParams.avatarUrl=u.avatar_url),u.encryptedBlobId&&(f.overrideChannelCreationParams.blobEncryptionId=u.encryptedBlobId),u.enableIdentityForAllChannelCreationDialog&&(u.encryptedBlobId?f.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
u.isDefaultProfilePhoto!==void 0&&(f.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&&(f.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&&(f.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=u.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),u.obakeImageSource&&(f.overrideChannelCreationParams.obakeImageSourceType=u.obakeImageSource))}};var vv=function(){};
_.y(vv,Oq);vv.prototype.getApiPaths=function(f){return(f=this.getExtension(f))&&f.status==="DISLIKE"?jCi:f&&f.status==="INDIFFERENT"?wTf:OkY};
vv.prototype.getExtension=function(f){return _.t(f,_.GB)};
vv.prototype.JSC$10994_buildRequest=function(f,R){R.target&&(f.target=R.target);if(R=this.getParams(R))f.params=R};
vv.prototype.getParams=function(f){switch(f==null?void 0:f.status){case "DISLIKE":return f.dislikeParams;case "INDIFFERENT":return f.removeLikeParams;default:return f==null?void 0:f.likeParams}};var i2=function(){};
_.y(i2,Oq);i2.prototype.getApiPaths=function(){return Lff};
i2.prototype.getExtension=function(f){return _.t(f,ALk)};
i2.prototype.JSC$10994_buildRequest=function(f,R){R.settingItemId&&(f.settingItemId=R.settingItemId);R.stringValue!=null&&R.stringValue!==void 0?f.newValue={stringValue:R.stringValue}:R.intValue?f.newValue={intValue:R.intValue}:R.boolValue!==null&&R.boolValue!==void 0?f.newValue={boolValue:R.boolValue}:(f=new _.ts("Unknown value type for SetSettingEndpoint.",R),_.TL(f))};var rX=function(){};
_.y(rX,Oq);rX.prototype.getApiPaths=function(){return pTi};
rX.prototype.getExtension=function(f){return _.t(f,DjC)||void 0};
rX.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.channelIds&&(f.channelIds=R.channelIds);R.siloName&&(f.siloName=R.siloName);R.params&&(f.params=R.params);u.botguardResponse&&(f.botguardResponse=u.botguardResponse);u.feature&&(f.clientFeature=u.feature)};
_.Vy.Object.defineProperties(rX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fD=function(){};
_.y(fD,Oq);fD.prototype.getApiPaths=function(){return D7t};
fD.prototype.getExtension=function(f){return _.t(f,aVF)||void 0};
fD.prototype.JSC$10994_buildRequest=function(f,R){R.channelIds&&(f.channelIds=R.channelIds);R.siloName&&(f.siloName=R.siloName);R.params&&(f.params=R.params)};
_.Vy.Object.defineProperties(fD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RZ=function(f){this.shareClientParamsProvider=f};
_.y(RZ,Oq);RZ.prototype.getApiPaths=function(){return naA};
RZ.prototype.getExtension=function(f){return _.t(f,U2t)||_.t(f,_.eok)||_.t(f,Pzl)};
RZ.prototype.JSC$10994_buildRequest=function(f,R){R.serializedShareEntity&&(f.serializedSharedEntity=R.serializedShareEntity);if(R.clientParamIdentifier){var u;if((u=this.shareClientParamsProvider)==null?0:u.clientParams.has(R.clientParamIdentifier)){u=this.shareClientParamsProvider;R=R.clientParamIdentifier;var O=u.clientParams.get(R);O&&u.clientParams.delete(R);f.clientParams=O}}};
RZ[nW]=[PmY];var uo=function(){};
_.y(uo,Oq);uo.prototype.getApiPaths=function(){return lnC};
uo.prototype.getExtension=function(f){return _.t(f,gTk)};
uo.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var Ow=function(){};
_.y(Ow,Oq);Ow.prototype.getApiPaths=function(){return DkG};
Ow.prototype.getExtension=function(f){return _.t(f,xHF)};
Ow.prototype.JSC$10994_buildRequest=function(f,R){R.dismissal&&(f.items=[R.dismissal])};
_.Vy.Object.defineProperties(Ow.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var c4=function(){};
_.y(c4,Oq);c4.prototype.getApiPaths=function(){return R7Y};
c4.prototype.getExtension=function(f){return _.t(f,_.DS)||void 0};
c4.prototype.JSC$10994_buildRequest=function(f,R,u){f.feedbackTokens=[];R.feedbackToken&&f.feedbackTokens.push(R.feedbackToken);if(R=R.cpn||u.cpn)f.feedbackContext={cpn:R};f.isFeedbackTokenUnencrypted=!!u.is_feedback_token_unencrypted;f.shouldMerge=!1;u.extra_feedback_tokens&&(f.shouldMerge=!0,f.feedbackTokens=f.feedbackTokens.concat(u.extra_feedback_tokens))};
_.Vy.Object.defineProperties(c4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Aa=function(){};
_.y(Aa,Oq);Aa.prototype.getApiPaths=function(){return R7Y};
Aa.prototype.getExtension=function(f){return _.t(f,_.AH)};
Aa.prototype.JSC$10994_buildRequest=function(f,R,u){u.feedback_tokens&&(f.feedbackTokens=u.feedback_tokens,f.shouldMerge=!0)};
_.Vy.Object.defineProperties(Aa.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aZ=function(){};
_.y(aZ,Oq);aZ.prototype.getApiPaths=function(){return R7Y};
aZ.prototype.getExtension=function(f){return _.t(f,B8X)};
aZ.prototype.JSC$10994_buildRequest=function(f,R){R.undoToken&&(f.feedbackTokens=[R.undoToken]);R.isUndoTokenUnencrypted&&(f.isFeedbackTokenUnencrypted=R.isUndoTokenUnencrypted)};
_.Vy.Object.defineProperties(aZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fp=function(){};
_.y(Fp,Oq);Fp.prototype.getApiPaths=function(){return GMC};
Fp.prototype.getExtension=function(f){return _.t(f,GRk)};
Fp.prototype.JSC$10994_buildRequest=function(f,R){R.nextEndpoint&&_.t(R.nextEndpoint,_.oh)?f.nextEndpoint={urlEndpoint:_.t(R.nextEndpoint,_.oh)}:R.nextEndpoint&&_.t(R.nextEndpoint,_.$7)&&(f.nextEndpoint={watchEndpoint:_.t(R.nextEndpoint,_.$7)});R.setRacy&&(f.setRacy=R.setRacy);R.setControvercy&&(f.setControvercy=R.setControvercy)};var wE=function(f){this.JSC$15667_storeWithEntities=f};
_.y(wE,Oq);wE.prototype.getApiPaths=function(){return zTA};
wE.prototype.getExtension=function(f){return _.t(f,KCk)};
wE.prototype.JSC$10994_buildRequest=function(f,R){R.flowId&&(f.flowId=R.flowId);R.targetId&&(f.targetId=R.targetId);R.continuation&&(f.continuation=R.continuation);var u=R.flowStateEntityKey;if(R.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&u&&this.JSC$15667_storeWithEntities){var O;if(R=(O=this.JSC$15667_storeWithEntities.getState())==null?void 0:O.entities)if(O=_.XX(u).entityType,O=_.kZ(R,O,u))f.flowState=O,f.flowStateEntityKey=u}};
_.Vy.Object.defineProperties(wE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
wE[nW]=[lk];var EYk=function(){};
_.y(EYk,Oq);_.X=EYk.prototype;_.X.getApiPaths=function(){return fXC};
_.X.JSC$11001_getStoreKey=function(){return _.Sd("guide")};
_.X.getRequestConfig=function(){var f=this.JSC$11001_getStoreKey(),R;f&&(R={storeStrategy:{storeKey:f}});return R};
_.X.isNavigationCommand=function(){return!0};
_.X.getExtension=function(f){return _.t(f,_.AH)};
_.X.JSC$10994_buildRequest=function(f){f.fetchLiveState=!0};var mW=function(){};
_.y(mW,Oq);mW.prototype.getApiPaths=function(){return AiH};
mW.prototype.getExtension=function(f){return _.t(f,rOi)};
mW.prototype.JSC$10994_buildRequest=function(){};var QN=function(){};
_.y(QN,Oq);QN.prototype.getApiPaths=function(){return ant};
QN.prototype.getExtension=function(f){return _.t(f,fVF)};
QN.prototype.JSC$10994_buildRequest=function(){};var W4=function(){};
_.y(W4,Oq);W4.prototype.getApiPaths=function(){return Zif};
W4.prototype.getExtension=function(f){return _.t(f,_.Tw)};
W4.prototype.JSC$10994_buildRequest=function(f,R){R.token&&(f.continuation=R.token);var u,O;f==null||(u=f.context)==null||(O=u.user)==null||delete O.onBehalfOfUser};
W4.prototype.getRequestConfig=function(f){var R={},u;if(((u=this.getExtension(f))==null?void 0:u.sessionIndex)!==void 0){var O;R={authStrategy:{sessionIndex:(O=this.getExtension(f))==null?void 0:O.sessionIndex}}}return R};var Ew=function(){};
_.y(Ew,Oq);Ew.prototype.JSC$10994_getRequest=function(f){var R=this.getExtension(f),u=f="";if(R==null?0:R.popup)f="true";if(R==null?0:R.disableSignout)u="true";R={};return{input:"/getAccountSwitcherEndpoint",requestShell:x7("/getAccountSwitcherEndpoint","GET",(R["X-YouTube-Delegation-Context"]=_.Tf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),R["X-YouTube-Account-Switcher-Popup"]=f,R["X-YouTube-Account-Switcher-Disable-Signout"]=u,R)),innerTubeRequest:{}}};
Ew.prototype.getApiPaths=function(){return[]};
Ew.prototype.getExtension=function(f){return _.t(f,_.mw7)};
Ew.prototype.JSC$10994_buildRequest=function(){};var ta=function(){};
_.y(ta,Oq);ta.prototype.JSC$10994_getRequest=function(f){var R="/cross_account_channel_transfer";(f=this.getExtension(f))&&(R=WFP(R,{target_session:f.targetSessionIndex,source_rapt:f.sourceRapt,rapt:f.targetRapt}));return{input:R,requestShell:x7(R,"GET"),innerTubeRequest:{}}};
ta.prototype.getApiPaths=function(){return[]};
ta.prototype.getExtension=function(f){return _.t(f,nRC)};
ta.prototype.JSC$10994_buildRequest=function(){};var CD=function(){};
_.y(CD,Oq);CD.prototype.getApiPaths=function(){return Ttf};
CD.prototype.isNavigationCommand=function(){return!0};
CD.prototype.getExtension=function(f){return _.t(f,_.AH)};
CD.prototype.JSC$10994_buildRequest=function(f){var R=_.Qu().get("gsml","");R&&(f.safetyModeLockerObfuscatedGaiaId=R);f.userInterfaceTheme=_.NL(!0);_.Ln()?f.deviceTheme="DEVICE_THEME_SELECTED":_.F9t()?f.deviceTheme="DEVICE_THEME_SUPPORTED":f.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var yN=function(){};
_.y(yN,Oq);yN.prototype.getApiPaths=function(){return Zif};
yN.prototype.getExtension=function(f){return _.t(f,Vnt)};
yN.prototype.JSC$10994_buildRequest=function(f,R){if(R&&R.requestType&&(f.requestType=R.requestType,R.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||R.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var u=R.nextUrl;u&&(_.t2n(u)||nQ(u))&&(f.nextNavendpoint={urlEndpoint:{url:u}})}R&&R.channelSwitcherQuery&&(f.channelSwitcherQuery=R.channelSwitcherQuery);R&&R.triggerChannelCreation&&(f.triggerChannelCreation=R.triggerChannelCreation);var O;if(R==null?0:(O=R.contentOwnerConfig)==
null?0:O.externalContentOwnerId)f.contentOwnerConfig=R.contentOwnerConfig;f.callCircumstance=R&&R.requestType&&R.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var c,h;R=f==null?void 0:(c=f.context)==null?void 0:(h=c.user)==null?void 0:h.onBehalfOfUser;if(R!==void 0){f.obfuscatedSelectedGaiaId=R;var l,K;f==null||(l=f.context)==null||(K=l.user)==null||delete K.onBehalfOfUser}var q,F;if(c=f==null?void 0:(q=f.context)==null?void 0:(F=q.user)==null?
void 0:F.serializedDelegationContext)f.selectedSerializedDelegationContext=c};var dE=function(){};
_.y(dE,Oq);dE.prototype.getApiPaths=function(){return sCi};
dE.prototype.getExtension=function(f){return _.t(f,SYE)};
dE.prototype.JSC$10994_buildRequest=function(f,R){R.profileOwnerExternalChannelId&&(f.profileOwnerExternalChannelId=R.profileOwnerExternalChannelId);R.profileCardContext&&(f.profileCardContext=R.profileCardContext)};var Nh=function(){};
_.y(Nh,Oq);Nh.prototype.getApiPaths=function(){return kCf};
Nh.prototype.getExtension=function(f){return _.t(f,Gtt)};
Nh.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var LD=function(){};
_.y(LD,Oq);LD.prototype.getApiPaths=function(){return WuG};
LD.prototype.getExtension=function(f){return _.t(f,_.fCE)};
LD.prototype.JSC$10994_buildRequest=function(f,R){if(R=R.createBroadcastRequest)f.useMasks=R.useMasks,f.broadcastType=R.broadcastType,f.broadcastSource=R.broadcastSource,f.broadcastMetadata=R.broadcastMetadata,f.broadcastMetadataMask=R.broadcastMetadataMask,f.videoMetadata=R.videoMetadata,f.videoMetadataMask=R.videoMetadataMask,f.liveChatSettingsUpdate=R.liveChatSettingsUpdate,f.liveChatSettingsUpdateMask=R.liveChatSettingsUpdateMask,f.cloneVideoId=R.cloneVideoId,f.cloneWithOverrides=R.cloneWithOverrides,
f.targetEntity=R.targetEntity,f.scheduledRedirectMetadata=R.scheduledRedirectMetadata};var bo=function(){};
_.y(bo,Oq);bo.prototype.getApiPaths=function(){return yiC};
bo.prototype.getExtension=function(f){return _.t(f,rkA)};
bo.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.params&&(f.params=R.params);u.questionText&&(f.questionText=u.questionText);u.optionText&&u.optionText.length>0&&(f.optionText=u.optionText)};var pD=function(){};
_.y(pD,Oq);pD.prototype.getApiPaths=function(){return Luk};
pD.prototype.getExtension=function(f){return _.t(f,vzf)};
pD.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var jq=function(){};
_.y(jq,Oq);jq.prototype.getApiPaths=function(){return eTi};
jq.prototype.getExtension=function(f){return _.t(f,sgE)};
jq.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var DQ=function(){};
_.y(DQ,Oq);DQ.prototype.getApiPaths=function(){return Btt};
DQ.prototype.getExtension=function(f){return _.t(f,nzI)};
DQ.prototype.JSC$10994_buildRequest=function(f,R,u){R.params&&(f.params=R.params);R.continuation&&(f.continuation=R.continuation);u.currentPlayerState&&u.currentPlayerState.playerOffsetMs&&(f.currentPlayerState={playerOffsetMs:u.currentPlayerState.playerOffsetMs.toString()})};var Ja=function(){};
_.y(Ja,Oq);Ja.prototype.getApiPaths=function(){return oaC};
Ja.prototype.getExtension=function(f){return _.t(f,gzF)};
Ja.prototype.JSC$10994_buildRequest=function(f,R,u){R.params&&(f.params=R.params);u.continuation&&(f.continuation=u.continuation);"hidden"in u&&(f.webClientInfo={isDocumentHidden:u.hidden});u.isInvalidationTimeoutRequest&&(f.isInvalidationTimeoutRequest=u.isInvalidationTimeoutRequest);u.invalidationPayload&&(R=$UF(_.Fi(VM(u.invalidationPayload))),f.invalidationPayloadLastPublishAtUsec=jT(R,2));u.reloadActionPanel&&(f.reloadActionPanel=u.reloadActionPanel);u.fullReload&&(f.fullReload=u.fullReload);
u.currentPlayerState&&(f.currentPlayerState=u.currentPlayerState)};var z7=function(){};
_.y(z7,Oq);z7.prototype.getApiPaths=function(){return cCl};
z7.prototype.getExtension=function(f){return _.t(f,ipH)};
z7.prototype.JSC$10994_buildRequest=function(f,R){f.params=R.params};var T7=function(){};
_.y(T7,Oq);T7.prototype.getApiPaths=function(){return GCC};
T7.prototype.getExtension=function(f){return _.t(f,uSC)};
T7.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var H4=function(){};
_.y(H4,Oq);H4.prototype.getApiPaths=function(){return xkC};
H4.prototype.getExtension=function(f){return _.t(f,O5C)};
H4.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var IZ=function(){};
_.y(IZ,Oq);IZ.prototype.getApiPaths=function(){return XTC};
IZ.prototype.getExtension=function(f){return _.t(f,fqE)};
IZ.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var Mh=function(){};
_.y(Mh,Oq);Mh.prototype.getApiPaths=function(){return ZkI};
Mh.prototype.getExtension=function(f){return _.t(f,RIF)};
Mh.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var P4=function(){};
_.y(P4,Oq);P4.prototype.getApiPaths=function(){return m7k};
P4.prototype.getExtension=function(f){return _.t(f,x2E)};
P4.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var Uw=function(){};
_.y(Uw,Oq);Uw.prototype.getApiPaths=function(){return d7f};
Uw.prototype.getExtension=function(f){return _.t(f,_.uzf)};
Uw.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.params&&(f.params=R.params);u.client_message_id&&(f.clientMessageId=u.client_message_id);u.recaptcha_token&&(f.recaptchaToken=u.recaptcha_token);u.rich_message&&u.rich_message.text_segments?(R=u.rich_message.text_segments.map(function(O){var c={};O.text&&(c.text=O.text);O.emoji_id&&(c.emojiId=O.emoji_id);return c}),f.richMessage={textSegments:R}):u.message&&(f.message=u.message);
u.currentPlayerState&&(f.currentPlayerState=u.currentPlayerState)};var eq=function(){};
_.y(eq,Oq);eq.prototype.getApiPaths=function(){return NjC};
eq.prototype.getExtension=function(f){return _.t(f,Odk)};
eq.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var G7=function(){};
_.y(G7,Oq);G7.prototype.getApiPaths=function(){return jrC};
G7.prototype.getExtension=function(f){return _.t(f,Xbi)};
G7.prototype.JSC$10994_buildRequest=function(f,R,u){R.isUserInitiated&&(f.isUserInitiated=R.isUserInitiated);R.initiationSource&&(f.initiationSource=R.initiationSource);u.locationInfo&&(f.context.client.locationInfo=u.locationInfo)};var B4=function(){};
_.y(B4,Oq);B4.prototype.getApiPaths=function(){return h7C};
B4.prototype.getExtension=function(f){return _.t(f,Rol)};
B4.prototype.JSC$10994_buildRequest=function(f,R,u){R.metadataUpdateRequest&&(R=R.metadataUpdateRequest,f.encryptedVideoId=R.encryptedVideoId,R.liveChat&&(R=R.liveChat,f.liveChat||(f.liveChat={}),R.performAsExternalChannelId&&(f.liveChat.performAsExternalChannelId=R.performAsExternalChannelId),R.source&&(f.liveChat.source=R.source)));var O;if(u==null?0:(O=u.liveChat)==null?0:O.liveChatSettings)f.liveChat||(f.liveChat={}),u=u.liveChat.liveChatSettings,f.liveChat.newLiveChatSettings=u,f.liveChat.newLiveChatSettingsMask||
(f.liveChat.newLiveChatSettingsMask={}),u.emojiReactionSet&&(f.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var oZ=function(){};
_.y(oZ,Oq);oZ.prototype.getApiPaths=function(){return U7l};
oZ.prototype.getExtension=function(f){return _.t(f,_.FJE)};
oZ.prototype.JSC$10994_buildRequest=function(f,R,u){u.continuation?f.continuation=u.continuation:R.videoId&&(f.videoId=R.videoId);u.clientParams&&(f.clientParams=u.clientParams)};var x1=function(){};
_.y(x1,Oq);x1.prototype.getApiPaths=function(){return S1F};
x1.prototype.getExtension=function(f){return _.t(f,_.pN)};
x1.prototype.JSC$10994_buildRequest=function(f,R){f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";f.fetchCommentsParams={};R.videoId&&(f.fetchCommentsParams.encryptedVideoId=R.videoId);R.postId&&(f.fetchCommentsParams.postId=R.postId);R.externalChannelId&&(f.fetchCommentsParams.externalChannelId=R.externalChannelId);R.linkedCommentId&&(f.fetchCommentsParams.linkedCommentId=R.linkedCommentId);(0,_.dq.isEmpty)(f.fetchCommentsParams)&&delete f.fetchCommentsParams};var Sq=function(){};
_.y(Sq,Oq);Sq.prototype.getApiPaths=function(){return iX};
Sq.prototype.JSC$10994_buildRequest=function(f){f.browseId="FEnotifications_inbox"};
Sq.prototype.getExtension=function(f){return _.t(f,_.AH)};var $1=function(){};
_.y($1,Oq);$1.prototype.getApiPaths=function(){return S1F};
$1.prototype.JSC$10994_buildRequest=function(f,R){R.signal==="GET_NOTIFICATIONS_MENU"&&(f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");R.ctoken&&(f.ctoken=R.ctoken)};
var tOG=function(){};
_.y(tOG,$1);tOG.prototype.getExtension=function(f){return _.t(f,_.AH)};
var C7F=function(){};
_.y(C7F,$1);C7F.prototype.getExtension=function(f){return _.t(f,PHA)};var gE=function(){};
_.y(gE,Oq);gE.prototype.getApiPaths=function(){return vaC};
gE.prototype.getExtension=function(f){return _.t(f,_.AH)};
gE.prototype.JSC$10994_buildRequest=function(){};var sw=function(){};
_.y(sw,Oq);sw.prototype.getApiPaths=function(){return lXH};
sw.prototype.getExtension=function(f){return _.t(f,khl)||void 0};
sw.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params);R.secondaryParams&&(f.secondaryParams=R.secondaryParams)};var nD=function(){};
_.y(nD,Oq);nD.prototype.getApiPaths=function(){return kMF};
nD.prototype.getExtension=function(f){return _.t(f,Bwk)};
nD.prototype.JSC$10994_buildRequest=function(f,R){R.undo&&(f.undo=R.undo);R.serializedOptOut&&(f.serializedOptOut=R.serializedOptOut);R.serializedRecordInteractionsRequest&&(f.serializedRecordInteractionsRequest=R.serializedRecordInteractionsRequest)};var VN=function(){};
_.y(VN,Oq);VN.prototype.getApiPaths=function(){return ACY};
VN.prototype.getExtension=function(f){return _.t(f,ovC)};
VN.prototype.JSC$10994_buildRequest=function(f,R){R.serializedInteractionsRequest&&(f.serializedRecordNotificationInteractionsRequest=R.serializedInteractionsRequest)};var Y1=function(){};
_.y(Y1,Oq);Y1.prototype.getApiPaths=function(){return aJe};
Y1.prototype.getExtension=function(f){return _.t(f,NXn)};
Y1.prototype.JSC$10994_buildRequest=function(f,R,u){R=R===void 0?{}:R;u=u===void 0?{}:u;R.videoId?f.videoId=R.videoId:R.playlistId&&(f.playlistId=R.playlistId);var O,c=(O=R.offlineWebClientEligibility)!=null?O:u.offlineWebClientEligibility;c&&(f.offlineWebClientEligibility=c);var h;if(O=(h=R.preferredFormatType)!=null?h:u.preferredFormatType)f.preferredFormatType=O;var l;if(h=(l=R.lastOfflineQualitySettingsSavedMs)!=null?l:u.lastOfflineQualitySettingsSavedMs)f.lastOfflineQualitySettingsSavedMs=h;
R.params&&(f.params=R.params)};var v4=function(){};
_.y(v4,Oq);v4.prototype.getApiPaths=function(){return $h};
v4.prototype.getExtension=function(f){return _.t(f,_.Tw)};
v4.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.token&&(f.continuation=R.token);u.formData&&(f.formData=u.formData)};var io=function(){};
_.y(io,Oq);io.prototype.getApiPaths=function(){return $h};
io.prototype.getExtension=function(f){return _.t(f,VDF)};
io.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;f.continuation=u.continuation};var rE=function(){};
_.y(rE,Oq);rE.prototype.getApiPaths=function(){return $h};
rE.prototype.getExtension=function(f){return _.t(f,_.jg)};
rE.prototype.JSC$10994_buildRequest=function(f,R){var u,O=R.panelIdentifier||((u=R.identifier)==null?void 0:u.tag);O&&(f.panelId=O);var c;if((c=R.globalConfiguration)==null?0:c.params){var h;f.params=(h=R.globalConfiguration)==null?void 0:h.params}};
_.Vy.Object.defineProperties(rE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fx=function(){};
_.y(fx,Oq);fx.prototype.getApiPaths=function(){return $h};
fx.prototype.getExtension=function(f){return _.t(f,znC)};
fx.prototype.JSC$10994_buildRequest=function(f,R){R.panelLoadingStrategy&&h00(f,R.panelLoadingStrategy)};var Re=function(){};
_.y(Re,Oq);Re.prototype.getApiPaths=function(){return $h};
Re.prototype.getExtension=function(f){return _.t(f,r_A)};
Re.prototype.JSC$10994_buildRequest=function(f,R){R.loadingStrategy&&h00(f,R.loadingStrategy)};var u6=function(){};
_.y(u6,Oq);u6.prototype.getApiPaths=function(){return $h};
u6.prototype.getExtension=function(f){return _.t(f,_.Fk)};
u6.prototype.JSC$10994_buildRequest=function(f,R){R.panelLoadingStrategy&&h00(f,R.panelLoadingStrategy)};var O9=function(){};
_.y(O9,Oq);O9.prototype.getApiPaths=function(){return $h};
O9.prototype.getExtension=function(f){return _.t(f,f2A)};
O9.prototype.JSC$10994_buildRequest=function(f,R){var u,O=(u=R.contentSourcePanelIdentifier)==null?void 0:u.tag;O&&(f.panelId=O);var c;if((c=R.globalConfiguration)==null?0:c.params){var h;f.params=(h=R.globalConfiguration)==null?void 0:h.params}};var cH=function(){};
_.y(cH,Oq);cH.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
cH.prototype.getExtension=function(f){return _.t(f,RUf)};
cH.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var XB=function(){};
_.y(XB,Oq);XB.prototype.getApiPaths=function(){return PUf};
XB.prototype.getExtension=function(f){return _.t(f,cVH)};
XB.prototype.JSC$10994_buildRequest=function(f,R){R.externalChannelId&&(f.externalChannelId=R.externalChannelId);R.superChatAction&&(f.superChatAction=R.superChatAction);R.superStickersAction&&(f.superStickersAction=R.superStickersAction)};var h6=function(){};
_.y(h6,Oq);h6.prototype.getApiPaths=function(){return HiE};
h6.prototype.getExtension=function(f){return _.t(f,iJk)||_.t(f,bzh)};
h6.prototype.JSC$10994_buildRequest=function(f,R){R.videoIds?f.videoIds=R.videoIds:R.videoId&&(f.videoIds=[R.videoId]);R.playlistId&&(f.playlistId=R.playlistId);R.params&&(f.params=R.params);f.excludeWatchLater=!1};var ZG=function(){};
_.y(ZG,Oq);ZG.prototype.getApiPaths=function(){return dkC};
ZG.prototype.getExtension=function(f){return _.t(f,_.IY)};
ZG.prototype.JSC$10994_buildRequest=function(f,R,u){u.create_playlist_title?f.title=u.create_playlist_title:R.title&&(f.title=R.title);if(u.create_playlist_privacy_status&&typeof u.create_playlist_privacy_status==="number"){a:{var O=u.create_playlist_privacy_status;if(O!==0){if(O===1){O="PUBLIC";break a}if(O===2){O="UNLISTED";break a}}O="PRIVATE"}f.privacyStatus=O}else R.privacyStatus&&(f.privacyStatus=R.privacyStatus);u.create_playlist_description&&(f.description=u.create_playlist_description);R.videoIds&&
(f.videoIds=R.videoIds);R.params&&(f.params=R.params);R.sourcePlaylistId&&(f.sourcePlaylistId=R.sourcePlaylistId)};var l6=function(){};
_.y(l6,Oq);l6.prototype.getApiPaths=function(){return biY};
l6.prototype.getExtension=function(f){return _.t(f,ZuC)};
l6.prototype.JSC$10994_buildRequest=function(f,R){f.playlistId=R.playlistId};var kW=function(){};
_.y(kW,Oq);kW.prototype.getApiPaths=function(){return $kI};
kW.prototype.getExtension=function(f){return _.t(f,ICi)};
kW.prototype.JSC$10994_buildRequest=function(f,R){R.playlistId&&(f.playlistId=R.playlistId);R.params&&(f.params=R.params)};var Kx=function(){};
_.y(Kx,Oq);Kx.prototype.getApiPaths=function(){return qqG};
Kx.prototype.getExtension=function(f){return _.t(f,_.ji)||void 0};
Kx.prototype.JSC$10994_buildRequest=function(f,R){R.actions&&(f.actions=R.actions);R.params&&(f.params=R.params);R.playlistId&&(f.playlistId=R.playlistId)};var qb=function(){};
_.y(qb,Oq);_.X=qb.prototype;_.X.getApiPaths=function(){return aXk};
_.X.getExtension=function(f){return _.t(f,_.Ey)};
_.X.JSC$10994_buildRequest=function(f,R){R.videoId&&(f.playerRequest={videoId:R.videoId},R.playerParams&&(f.playerRequest.params=R.playerParams),R.racyCheckOk&&(f.playerRequest.racyCheckOk=!!R.racyCheckOk),R.contentCheckOk&&(f.playerRequest.contentCheckOk=!!R.contentCheckOk));R.params&&(f.params=R.params);R.inputType&&(f.inputType=R.inputType);f.disablePlayerResponse=!0};
_.X.getRequestConfig=function(f){var R;(f=this.JSC$11001_getStoreKey(f))&&(R={storeStrategy:{storeKey:f}});_.E("web_log_reels_ticks")&&(R=R||{},R.requestTick="r_wrs",R.responseTick="r_wrr");return R};
_.X.JSC$11001_getStoreKey=function(f){f=this.getExtension(f);if(_.E("shorts_controller_retrieve_seedless_sequence_v2")){if((f==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Sd("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.E("web_prefetch_riw_for_next_video")||_.E("web_shorts_prefetch_service_enabled"))&&f!=null&&f.videoId){var R={videoId:f.videoId};f.params&&(R.params=f.params);return _.Sd("reel_item_watch",R)}};var A6=function(){};
_.y(A6,Oq);_.X=A6.prototype;_.X.getApiPaths=function(){return Ffk};
_.X.getExtension=function(f){return _.t(f,_.Ey)};
_.X.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;f.sequenceParams=R.sequenceParams;var O;((O=u)==null?0:O.contentPlaybackContext)&&_.E("web_shorts_prefetch_service_enabled")&&(f.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
_.X.JSC$11001_getStoreKey=function(f){if(_.E("shorts_controller_retrieve_seedless_sequence_v2")&&(f=this.getExtension(f),f==null?0:f.sequenceParams))return _.Sd("reel_watch_sequence",{sequenceParams:f.sequenceParams})};
_.X.getRequestConfig=function(f){f=this.JSC$11001_getStoreKey(f);var R;f&&(R={storeStrategy:{storeKey:f}});_.E("reel_watch_sequence_request_log_ticks")&&(R=R||{},R.requestTick="r_wsrs",R.responseTick="r_wsrr",R.processorTick="r_wsrp");return R};
var ae=function(){};
_.y(ae,Oq);ae.prototype.getApiPaths=function(){return Ffk};
ae.prototype.getExtension=function(f){return _.t(f,_.Tw)};
ae.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.token&&(f.continuation=R.token);var O;((O=u)==null?0:O.contentPlaybackContext)&&_.E("web_shorts_prefetch_service_enabled")&&(f.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
ae.prototype.getRequestConfig=function(f){f=this.JSC$11001_getStoreKey(f);var R;f&&(R={storeStrategy:{storeKey:f}});_.E("reel_watch_sequence_request_log_ticks")&&(R=R||{},R.requestTick="r_wsrs",R.responseTick="r_wsrr",R.processorTick="r_wsrp");return R};var FB=function(){};
_.y(FB,Oq);FB.prototype.getApiPaths=function(){return JiG};
FB.prototype.getExtension=function(f){return _.t(f,_.kDt)};
FB.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.flagAction&&(f.action=R.flagAction);R.flagRequestType&&(f.flagRequestType=R.flagRequestType);R.additionalDetailCheckboxChecked&&(f.additionalDetailCheckboxChecked=R.additionalDetailCheckboxChecked);R.legalCheckboxChecked&&(f.legalCheckboxChecked=R.legalCheckboxChecked);R={};u.flag_issue_type!==void 0&&(R.issue=u.flag_issue_type);u.flag_affiliation!==void 0&&(R.affiliation=u.flag_affiliation);u.flag_full_name&&(R.fullName=u.flag_full_name);
Object.keys(R).length&&(f.legalReportDetails=R);if(u.flag_description||u.text)f.userComments=u.flag_description||u.text;R={};u.minutes!==void 0&&u.seconds!==void 0&&(R.minutes=u.minutes,R.seconds=u.seconds);u.vss_id&&(R.vssId=u.vss_id);Object.keys(R).length&&(f.videoReportDetails=R);R={};u.video_ids&&(R.videoIds=u.video_ids);u.impersonated_channel_url&&(R.impersonatedChannelUrl=u.impersonated_channel_url);Object.keys(R).length&&(f.channelAbuseReportDetails=R)};
_.Vy.Object.defineProperties(FB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var w1=function(){};
_.y(w1,Oq);w1.prototype.getApiPaths=function(){return UkH};
w1.prototype.getExtension=function(f){return _.t(f,Pwf)};
w1.prototype.JSC$10994_buildRequest=function(f,R){R.blockedForKidsContent&&(f.blockedForKidsContent=R.blockedForKidsContent)};var mE=function(){};
_.y(mE,Oq);mE.prototype.getApiPaths=function(){return Qri};
mE.prototype.getExtension=function(f){return _.t(f,LTq)};
mE.prototype.JSC$10994_buildRequest=function(f,R,u){f.params=R.params;u.impersonated_channel_url&&(f.impersonatedChannelUrl=u.impersonated_channel_url)};var Qa=function(){};
_.y(Qa,Oq);Qa.prototype.getApiPaths=function(){return usl};
Qa.prototype.getExtension=function(f){return _.t(f,_.UUI)};
Qa.prototype.JSC$10994_buildRequest=function(f,R){R.items&&(f.items=R.items);R.kidGaiaId&&(f.kidGaiaId=R.kidGaiaId)};var WH=function(){};
_.y(WH,Oq);WH.prototype.getApiPaths=function(){return MoF};
WH.prototype.getExtension=function(f){return _.t(f,_.gwY)};
WH.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params);R.targetId&&(f.targetId=R.targetId)};var E9=function(){};
_.y(E9,Oq);E9.prototype.getApiPaths=function(){return CUC};
E9.prototype.getExtension=function(f){return _.t(f,UHF)};
E9.prototype.JSC$10994_buildRequest=function(f,R){R.externalVideoId&&(f.externalVideoId=R.externalVideoId);R.query&&(f.query=R.query);R.sourceTimelines&&(f.sourceTimelines=R.sourceTimelines)};var t6=function(){};
_.y(t6,Oq);t6.prototype.getApiPaths=function(){return yCi};
t6.prototype.getExtension=function(f){return _.t(f,_.Tw)||void 0};
t6.prototype.JSC$10994_buildRequest=function(f,R){R.token&&(f.continuation=R.token)};
_.ypI=function(){};
_.y(_.ypI,Oq);_.X=_.ypI.prototype;_.X.getApiPaths=function(){return yCi};
_.X.getExtension=function(f){return _.t(f,_.m6)||void 0};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11001_getStoreKey=function(f,R){R=R===void 0?{}:R;if(!R.disableCache&&(f=this.getExtension(f))&&f.query)return R={query:f.query},f.params&&(R.params=f.params),_.Sd("search",R)};
_.X.JSC$10994_buildRequest=function(f,R,u){R.query&&(f.query=R.query);R.params&&(f.params=R.params);if(!_.E("web_forward_suggest_stats_killswitch")){var O=_.t(R,psH);O&&(f.suggestStats=O)}var c;!_.E("kevlar_searchbox_stats_killswitch")&&((c=u.tempData)==null?0:c.gs_l)&&!_.t(R,psH)&&(f.webSearchboxStatsUrl="/search?oq="+(u.tempData.oq||"")+"&gs_l="+u.tempData.gs_l);var h;if((h=u.tempData)==null?0:h.entityMid)R=f.suggestionSearchParams||{},R.entityMid=u.tempData.entityMid,f.suggestionSearchParams=R};
_.X.getRequestConfig=function(f,R){R=R===void 0?{}:R;f=this.JSC$11001_getStoreKey(f,R);var u;f&&(u={storeStrategy:{storeKey:f}});_.E("web_log_search_ticks_ks")||(u=u||{},u.requestTick="sr_s",u.responseTick="sr_r");return u};var Cx=function(){};
_.y(Cx,Oq);Cx.prototype.getApiPaths=function(){return Vol};
Cx.prototype.getExtension=function(f){return _.t(f,EHi)};
Cx.prototype.JSC$10994_buildRequest=function(f,R){R.serializedGetSharingProviderDataParams&&(f.serializedGetSharingProviderDataParams=R.serializedGetSharingProviderDataParams)};var ya=function(){};
_.y(ya,Oq);ya.prototype.getApiPaths=function(){return Y1Y};
ya.prototype.getExtension=function(f){return _.t(f,ckA)};
ya.prototype.JSC$10994_buildRequest=function(f,R){R.endpoint&&(f.endpoint=R.endpoint);R.action&&(f.action=R.action)};var d1=function(){};
_.y(d1,Oq);d1.prototype.getApiPaths=function(){return p1t};
d1.prototype.getExtension=function(f){return _.t(f,lVE)};
d1.prototype.JSC$10994_buildRequest=function(f,R){f.videoId=R.videoId;R.scheduledRedirectMetadataSourceVideoId&&(f.scheduledRedirectMetadata={sourceVideoId:R.scheduledRedirectMetadataSourceVideoId})};var Nb=function(){};
_.y(Nb,Oq);Nb.prototype.getApiPaths=function(){return bkf};
Nb.prototype.getExtension=function(f){return _.t(f,_.flA)};
Nb.prototype.JSC$10994_buildRequest=function(f,R){f.params=R.params;f.correctionText=R.correctionText};var Lx=function(){};
_.y(Lx,Oq);Lx.prototype.getApiPaths=function(){return qR7};
Lx.prototype.getExtension=function(f){return _.t(f,_.evC)};
Lx.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params);f.searchQuery=R.searchQuery;f.languageCode=R.languageCode;f.kind=R.kind;f.name=R.name;f.externalVideoId=R.externalVideoId};var b6=function(){};
_.y(b6,Oq);b6.prototype.getApiPaths=function(){return odG};
b6.prototype.getExtension=function(f){return _.t(f,FZk)};
b6.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.params=R.params)};var px=function(f){this.JSC$15942_storeWithEntities=f};
_.y(px,Oq);px.prototype.getApiPaths=function(){return mki};
px.prototype.getExtension=function(f){return _.t(f,mik)||_.t(f,WZF)};
px.prototype.JSC$10994_buildRequest=function(f,R,u){u.client_data&&(f.clientData=u.client_data);if(R.commerceActionConfig){var O=R.commerceActionConfig;R=O.actionId;O=O.commerceActionParams;R&&(f.actionId=R);O&&(f.commerceActionParams=O)}else{var c=R.actionId,h=R.commerceActionParams;u=R.entityKeys;c&&(f.actionId=c);h&&(f.commerceActionParams=h);var l;R=(O=this.JSC$15942_storeWithEntities)==null?void 0:(l=O.getState())==null?void 0:l.entities;if(u&&R){O=[];l=_.Z(u);for(u=l.next();!u.done;u=l.next())if(c=
u.value,u=_.XX(c).entityType,c=_.kZ(R,u,c))h={},O.push((h[u]=c,h));f.entityMutationPayloads=O}}};
px.prototype.getRequestConfig=function(f){var R,u=(R=_.t(f,mik))==null?void 0:R.requestSequenceType;if(u&&f.clickTrackingParams&&u!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:f.clickTrackingParams,sequenceType:u}}};
px[nW]=[lk];var jK=function(){};
_.y(jK,Oq);jK.prototype.getApiPaths=function(){return x7C};
jK.prototype.getExtension=function(f){return _.t(f,_.Pxl)};
jK.prototype.JSC$10994_buildRequest=function(f,R){R.feedbackData&&(f.feedbackData=R.feedbackData);R.params&&(f.itemParams=R.params)};
_.Vy.Object.defineProperties(jK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DG=function(){};
_.y(DG,Oq);DG.prototype.getApiPaths=function(){return SqF};
DG.prototype.getExtension=function(f){return _.t(f,UiE)};
DG.prototype.JSC$10994_buildRequest=function(f,R,u){u.payments_payload&&(f.paymentsPayload=u.payments_payload);u.offer_params&&(f.offerParams=u.offer_params);R.transactionParams&&(f.transactionParams=R.transactionParams)};var J6=function(){};
_.y(J6,Oq);J6.prototype.getApiPaths=function(){return $7t};
J6.prototype.getExtension=function(f){return _.t(f,_.eOH)};
J6.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.buybucketParams&&(f.buybucketData={params:R.buybucketParams},R.stickerParams?f.buybucketData.stickerParams=R.stickerParams:(u.rich_chat_message?f.buybucketData.richChatMessage=u.rich_chat_message:u.chat_message_text&&(f.buybucketData.chatMessageText=u.chat_message_text),u.purchase_price_micros&&(f.buybucketData.purchasePriceMicros=u.purchase_price_micros.toString())));R.donationAmountMicros&&(f.tipAmountMicros=R.donationAmountMicros,
R.tipParams&&(f.tipParams=R.tipParams));R.offerParams&&(f.offerParams=R.offerParams);R.productData&&(f.productData=R.productData);R.transactionParams&&(f.transactionParams=R.transactionParams)};var zv=function(){};
_.y(zv,Oq);zv.prototype.getApiPaths=function(){return gdC};
zv.prototype.getExtension=function(f){return _.t(f,ohI)};
zv.prototype.JSC$10994_buildRequest=function(f,R){R.updateFopParams&&(f.updateFopParams=R.updateFopParams)};var Tv=function(){};
_.y(Tv,Oq);Tv.prototype.getApiPaths=function(){return srC};
Tv.prototype.getExtension=function(f){return _.t(f,_.OY)};
Tv.prototype.JSC$10994_buildRequest=function(f,R){R.couponCode&&(f.couponCode=R.couponCode);R.params&&(f.itemParams=R.params)};var HH=function(){};
_.y(HH,Oq);HH.prototype.getApiPaths=function(){return ndF};
HH.prototype.getExtension=function(f){return _.t(f,_.QYF)};
HH.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;R.params&&(f.params=R.params);u.ctk&&(f.clientToken=u.ctk)};var Ie=function(f){this.JSC$15977_storeWithEntities=f};
_.y(Ie,Oq);Ie.prototype.getApiPaths=function(){return VGi};
Ie.prototype.getExtension=function(f){return _.t(f,_.PY)};
Ie.prototype.JSC$10994_buildRequest=function(f,R,u){u.purchase_price_micros&&(f.productData={pdgData:{purchasePriceMicros:u.purchase_price_micros.toString()}},u.rich_chat_message&&(f.productData.pdgData.richChatMessage=u.rich_chat_message),u.currency_code&&(f.productData.pdgData.currencyCode=u.currency_code));R.transactionParams&&(f.transactionParams=R.transactionParams);R.clientLocationContext&&(f.clientLocationContext=R.clientLocationContext);u.payments_payload&&(f.paymentsPayload=u.payments_payload);
u.funds_guarantee_callback_client_data&&(f.fundsGuaranteeCallbackClientData=u.funds_guarantee_callback_client_data);var O,c;u=(O=this.JSC$15977_storeWithEntities)==null?void 0:(c=O.getState())==null?void 0:c.entities;if(R.entityKeys&&u){O=[];R=_.Z(R.entityKeys);for(c=R.next();!c.done;c=R.next()){var h=c.value;c=_.XX(h).entityType;if(h=_.kZ(u,c,h)){var l={};O.push((l[c]=h,l))}}f.entityMutationPayloads=O}};
Ie[nW]=[lk];var Mb=function(){};
_.y(Mb,Oq);Mb.prototype.getApiPaths=function(){return YqA};
Mb.prototype.getExtension=function(f){return _.t(f,G9E)};
Mb.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;u.backend_analytics&&(f.serializedBackendAnalyticsEvent=u.backend_analytics);R.offerParams&&(f.offerParams=R.offerParams)};var PH=function(){};
_.y(PH,Oq);PH.prototype.getApiPaths=function(){return srC};
PH.prototype.getExtension=function(f){return _.t(f,cRq)};
PH.prototype.JSC$10994_buildRequest=function(f,R){R.params&&(f.itemParams=R.params)};var U9=function(){};
_.y(U9,Oq);U9.prototype.getApiPaths=function(){return vdI};
U9.prototype.getExtension=function(f){return _.t(f,_.diY)};
U9.prototype.JSC$10994_buildRequest=function(f,R,u){u.resume_time_ms&&(f.resumeTimeMs=u.resume_time_ms);R.pauseParams&&(f.pauseParams=R.pauseParams)};var eK=function(){};
_.y(eK,Oq);eK.prototype.getApiPaths=function(){return ikG};
eK.prototype.getExtension=function(f){return _.t(f,_.BSk)};
eK.prototype.JSC$10994_buildRequest=function(f,R,u){u=u===void 0?{}:u;u.c&&(f.redeemCode=u.c);u.rd&&(f.riskData=u.rd);u.ctk&&(f.clientToken=u.ctk)};var Gv=function(){};
_.y(Gv,Oq);Gv.prototype.getApiPaths=function(){return rCl};
Gv.prototype.getExtension=function(f){return _.t(f,_.NSF)};
Gv.prototype.JSC$10994_buildRequest=function(f,R){R.resumeParams&&(f.resumeParams=R.resumeParams)};var BH=function(f,R){this.clientName=f;this.defaultExpirationDelayMs=R};
BH.prototype.put=function(f,R){var u=this,O;return _.k(function(c){O=Object.assign({},R.data);O.key=f;O.clientName=u.clientName;O.expireTimestampMs===void 0&&(O.expireTimestampMs=(Math.round((0,_.iZ)())+u.defaultExpirationDelayMs).toString());return c.return(u.putInternal(f,O))})};
BH[nW]=[EN,Pyk];var dRA=function(){BH.apply(this,arguments);this.JSC$16007_responseStore=new Map};
_.y(dRA,BH);_.X=dRA.prototype;_.X.get=function(f){var R=this;return _.k(function(u){return u.return(ZA(R,f))})};
_.X.putInternal=function(f,R){var u=this,O,c,h;return _.k(function(l){O=u.defaultExpirationDelayMs;R.expireTimestampMs&&(O=Number(R.expireTimestampMs)-Math.round((0,_.iZ)()),c=_.RV("mweb_override_response_store_expiration_ms"),c>0&&c<O&&(O=c));h=setTimeout(function(){u.remove(f)},O);
u.JSC$16007_responseStore.set(f,{entryData:R,timer:h});_.KG(l)})};
_.X.remove=function(f){var R=this;return _.k(function(u){NOC(R,f);_.KG(u)})};
_.X.removeAll=function(){var f=this;return _.k(function(R){f.JSC$16007_responseStore.forEach(function(u){clearTimeout(u.timer)});
f.JSC$16007_responseStore.clear();_.KG(R)})};
_.X.has=function(f){return!!this.JSC$16007_responseStore.get(f)};
_.X.getKeys=function(){return this.JSC$16007_responseStore.keys()};
var ZA=function(f,R){if(f=f.JSC$16007_responseStore.get(R))return new _.hU(f.entryData)},NOC=function(f,R){var u=f.JSC$16007_responseStore.get(R);
u&&(clearTimeout(u.timer),f.JSC$16007_responseStore.delete(R))};var ZVn;var Ksq=function(f,R,u){BH.call(this,f,R);this.token=u};
_.y(Ksq,BH);_.X=Ksq.prototype;_.X.get=function(f){var R=this,u,O;return _.k(function(c){return c.nextAddress==1?_.A(c,kr0(R.token),2):c.nextAddress!=3?(u=c.yieldResult,_.A(c,u.get("ResponseStore",[f,R.clientName]),3)):(O=c.yieldResult)?c.return(new _.hU(O)):c.return(void 0)})};
_.X.putInternal=function(f,R){var u=this,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,kr0(u.token),2);O=c.yieldResult;return _.A(c,O.put("ResponseStore",R),0)})};
_.X.remove=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,kr0(R.token),2);u=O.yieldResult;return O.return(u.delete("ResponseStore",[f,R.clientName]))})};
_.X.removeAll=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,kr0(f.token),2);R=u.yieldResult;return _.A(u,BUH(R,IDBKeyRange.only(f.clientName)),0)})};
_.X.has=function(){throw Error("Ti");};_.oe=new _.Vi("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Ldf=function(f){var R;this.stateTagsData=(R=f.responseContext)==null?void 0:R.stateTags},bsC=function(f){var R;
return((R=f.stateTagsData)==null?void 0:R.stateTagsModified)||[]};var p8E;p8E=function(f){this.JSC$16020_responseStore=f};
_.Ga=function(f,R,u){if(!_.E("state_tags_killswitch")){var O=new Ldf(R);if(bsC(O).length>0){var c=f.JSC$16020_responseStore.getKeys();c=_.Z(c);for(var h=c.next();!h.done;h=c.next()){h=h.value;var l=ZA(f.JSC$16020_responseStore,h);if(l){var K=_.hd(l);a:{var q=void 0;l=bsC(O);K=((q=(new Ldf(K)).stateTagsData)==null?void 0:q.relevantStateTags)||[];q=_.Z(K);for(K=q.next();!K.done;K=q.next())if(K=K.value,K.stateTag!=null&&l.includes(K.stateTag)&&K.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){l=
!0;break a}l=!1}l&&NOC(f.JSC$16020_responseStore,h)}}}}var F;O=(F=R.responseContext)==null?void 0:F.maxAgeSeconds;_.E("web_prefetch_riw_for_next_video")&&!O&&R.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(O=3600);u&&O&&Number(O)>0&&(R=uA(R,O),f.JSC$16020_responseStore.put(u,new _.hU(R)))};
p8E.prototype.handleResponse=function(f,R){if(!R)throw Error("Ui");var u,O;R=(u=R.config)==null?void 0:(O=u.storeStrategy)==null?void 0:O.storeKey;_.Ga(this,f,R)};
p8E[nW]=[_.XC];_.fbe=new _.Vi("STORE_RESPONSE_PROCESSOR_TOKEN");var jiY=function(f){this.JSC$16023_responseStore=f};
jiY.prototype.handleResponse=function(f,R){if(R.input.match(_.Ve(Ffk))){var u;if(f==null?0:(u=f.entries)==null?0:u.length)for(f=_.Z(f.entries),R=f.next();!R.done;R=f.next()){u=R.value.command;var O=void 0;R=(O=_.t(u,_.Ey))==null?void 0:O.unserializedPrefetchData;if(!u||!R)break;O=(new qb).JSC$11001_getStoreKey(u);var c=_.t(R,D_E),h=void 0,l=void 0,K=void 0,q=_.RV("web_shorts_prefetch_service_ttl_seconds")>0?_.RV("web_shorts_prefetch_service_ttl_seconds"):Number((K=(h=c)==null?void 0:(l=h.responseContext)==
null?void 0:l.maxAgeSeconds)!=null?K:3600);O&&q>0&&(c=uA(c,q),this.JSC$16023_responseStore.put(O,new _.hU(c)));u=(new lU).JSC$11001_getStoreKey(u);R=_.t(R,a2C);h=c=O=void 0;l=_.RV("web_shorts_prefetch_service_ttl_seconds")>0?_.RV("web_shorts_prefetch_service_ttl_seconds"):Number((h=(O=R)==null?void 0:(c=O.responseContext)==null?void 0:c.maxAgeSeconds)!=null?h:3600);u&&l>0&&(R=uA(R,l),this.JSC$16023_responseStore.put(u,new _.hU(R)))}}};
jiY[nW]=[_.XC];var DRG=function(f){this.innertubeTransportService=f};
DRG[nW]=[_.JN];var JpY=new _.Vi("SUBMIT_API_SERVICE_TOKEN");var xW=function(){this.scheduler=_.LS()},zQl;
xW.prototype.pause=function(){throw Error("Vi");};
xW.prototype.resume=function(){throw Error("Vi");};
xW.prototype.queue=function(f){var R=this,u=_.BM(),O=_.dJ(this.scheduler,function(){try{var c;if(_.KU.instance)var h=_.KU.instance;else{var l=new _.ts("Error: Unexpected uninitialized CommandHandler.");_.TL(l);h=void 0}(c=h)==null||c.resolveCommand(f.command);u.resolve()}catch(K){u.reject(K)}});
u.promise.thenCatch(function(c){c instanceof _.BB&&R.scheduler.cancelJob(O)});
return u.promise};
xW.prototype.queueAll=function(f){var R=new Map;f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,R.set(u.id,this.queue(u));return R};var Hsi=function(f,R){var u=this;this.taskModel=f;this.onTaskCancelledCallback=R;this.resolver=_.BM();f=f.proto.prefetchConfig;if(!f)throw Error("Wi");if(!f.prefetchAction)throw Error("Xi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(O){O instanceof _.BB&&(TOE(u,u.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),u.onTaskCancelledCallback(u.taskModel.id,u.jobId),u.tick("pcc"));
throw O;});
this.timerName=this.taskModel.id;_.DW(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},I3H=function(f){switch(f.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},TOE=function(f,R){_.ja({prefetchInfo:{cancellationReason:R}},f.timerName)};
Hsi.prototype.tick=function(f){_.JH(f,void 0,this.timerName)};var $W=function(){var f=this;this.scheduler=_.LS();this.maxInflightTasks=_.RV("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.RV("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new k$I;this.onTaskCancelled=function(R,u){u&&f.scheduler.cancelJob(u);MOt(f,R);SK(f,3)}},P7E=function(){$W.instance||($W.instance=new $W);
return $W.instance};
$W.prototype.pause=function(){this.prefetchCoordinatorState=0};
$W.prototype.resume=function(){SK(this,0)};
$W.prototype.queue=function(f){f=URG(this,f);SK(this,1);return f};
$W.prototype.queueAll=function(f){var R=new Map;f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,R.set(u.id,URG(this,u));SK(this,1);return R};
var URG=function(f,R){var u=f.allPrefetchTasks.get(R.id);if(u)return u.cancellablePromise;try{var O=new Hsi(R,f.onTaskCancelled)}catch(h){return _.NO(h)}u=O;u.tick("pcq");var c={prefetchInfo:{taskId:u.taskModel.id,isPrefetch:!0,fetchAction:u.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:u.taskModel.command.clickTrackingParams}};u.taskModel.csn&&(c.clientScreenNonce=u.taskModel.csn);_.ja(c,u.timerName);f.allPrefetchTasks.set(R.id,O);f.drainingHeap.insert(-I3H(O),O);return O.cancellablePromise},
SK=function(f,R){f.prefetchCoordinatorState===R&&(f.prefetchCoordinatorState=2,eQA(f))},eQA=function(f){for(var R={};f.prefetchCoordinatorState!==0;R={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(f.inflightPrefetchTasks.size>=f.maxInflightTasks){f.prefetchCoordinatorState=3;break}R.prefetchTask$jscomp$1=f.drainingHeap.remove();if(!R.prefetchTask$jscomp$1){f.prefetchCoordinatorState=1;break}R.taskId$jscomp$3=R.prefetchTask$jscomp$1.taskModel.id;if(f.allPrefetchTasks.has(R.taskId$jscomp$3)){var u=-1;f.coordinatorTimeoutMs>0&&(u=_.dJ(f.scheduler,function(O){return function(){g1(f,O.taskId$jscomp$3,Error("Yi"))}}(R),f.coordinatorTimeoutMs));
f.inflightPrefetchTasks.set(R.taskId$jscomp$3,u);if(!f.JSC$16041_commandHandler){if(!_.KU.instance){g1(f,R.taskId$jscomp$3,Error("Zi"));continue}f.JSC$16041_commandHandler=_.KU.instance}a:switch(R.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":u=1;break a;default:u=0}R.prefetchTask$jscomp$1.jobId=f.scheduler.addJob(function(O){return function(){O.prefetchTask$jscomp$1.tick("pcr");try{f.JSC$16041_commandHandler.resolveCommand(O.prefetchTask$jscomp$1.taskModel.command)||
g1(f,O.taskId$jscomp$3,Error("$i"))}catch(c){g1(f,O.taskId$jscomp$3,c)}}}(R),u,0)}}},G6C=function(f,R){(R=MOt(f,R))!=null&&(R.resolver.resolve(),R.tick("pce"));
SK(f,3)},g1=function(f,R,u){(R=MOt(f,R,u))!=null&&(R.resolver.reject(u),R.tick("pcc"),TOE(R,"CANCELLATION_REASON_ERROR"),Math.random()<=_.RV("prefetch_coordinator_error_logging_sampling_rate")&&(u=new _.ts("Prefetch Command failed.",R.taskModel.id,u.message),_.TL(u)));
SK(f,3)},MOt=function(f,R,u){var O=f.allPrefetchTasks.get(R);
O?((u=f.inflightPrefetchTasks.get(R))&&u!==-1&&f.scheduler.cancelJob(u),f.inflightPrefetchTasks.delete(R),f.allPrefetchTasks.delete(R)):_.Ih(new _.ts("Unexpected missing prefetch task when deleting task.",R,u==null?void 0:u.message));return O};var BOH=function(f,R,u,O,c){this.id=f;this.triggerOn=R;this.cancelOn=u;this.command=O;this.proto=c};
_.Vy.Object.defineProperties(BOH.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var oYF=function(){this.JSC$16046_prefetchCoordinator=P7E();zQl||(zQl=new xW);this.defaultCoordinator=zQl},xRl;
oYF.getInstance=function(){xRl||(xRl=new oYF);return xRl};
oYF.prototype.get=function(f){switch(f){case 0:return this.JSC$16046_prefetchCoordinator;default:return this.defaultCoordinator}};var s9=function(){this.coordinatorSupplier=oYF.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},gYG=function(f){var R=_.z4()||void 0,u=Object.keys(SnA)[0];
if(u){var O=f.taskIdByTriggerId.get(u);if(O!=null){f.taskIdByTriggerId.delete(u);u=[];O=_.Z(O);for(var c=O.next();!c.done;c=O.next())if(c=f.tasks.get(c.value))R!=="UNDEFINED_CSN"&&(c.csn=R),u.push(c);u=aot(u);R=[];u=_.Z(u);for(O=u.next();!O.done;O=u.next()){c=_.Z(O.value);O=c.next().value;c=c.next().value;O=f.coordinatorSupplier.get(O).queueAll(c);O=_.Z(O);var h=O.next();for(c={};!h.done;c={taskId$jscomp$9:void 0},h=O.next()){var l=_.Z(h.value);h=l.next().value;l=l.next().value;c.taskId$jscomp$9=
h;h=l;R.push(c.taskId$jscomp$9);f.queuedPromisesByTask.set(c.taskId$jscomp$9,_.to(h,function(K){return function(){$Rf(f,K.taskId$jscomp$9)}}(c)))}}}}else _.Ih(new _.ts("Unexpected malformed TriggerEvent."))};
s9.prototype.trigger=function(f,R){var u=this,O=this.tasks.get(f);if(!O||this.queuedPromisesByTask.has(f))return!1;siH(this,f,O.triggerOn);R!=="UNDEFINED_CSN"&&(O.csn=R);R=this.coordinatorSupplier.get(O.taskType).queue(O);this.queuedPromisesByTask.set(f,_.to(R,function(){$Rf(u,f)}));
return!0};
s9.prototype.cancel=function(f){var R=this.queuedPromisesByTask.get(f);if(R)R.cancel();else return $Rf(this,f)};
var $Rf=function(f,R){f.queuedPromisesByTask.delete(R);var u=f.tasks.get(R);if(!u)return!1;f.tasks.delete(R);siH(f,R,u.triggerOn);(u=A27(u.cancelOn))&&(f=f.taskIdByCancelId.get(u))&&f.delete(R);return!0},siH=function(f,R,u){(u=Object.keys(u)[0])&&(f=f.taskIdByTriggerId.get(u))&&f.delete(R)};var SnA={taskRegistered:{}},nx=function(){s9.instance||(s9.instance=new s9);this.JSC$16055_taskManager=s9.instance};
_.y(nx,TK);
nx.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){u=_.t(f,JLE);if((O=u)==null||!O.tasks){var h=new _.ts("RegisterTasksCommand is missing tasks.");_.TL(h);return c.return()}h=R.JSC$16055_taskManager;for(var l=_.Z(u.tasks),K=l.next();!K.done;K=l.next())if(K=K.value,K=K.id&&K.triggerOn&&K.cancelOn&&K.command?new BOH(K.id,K.triggerOn,K.cancelOn,K.command,K):void 0,K){var q=Object.keys(K.triggerOn)[0];if(q){var F=A27(K.cancelOn);F?(h.tasks.set(K.id,K),h.taskIdByTriggerId.has(q)||h.taskIdByTriggerId.set(q,
new Set),h.taskIdByTriggerId.get(q).add(K.id),h.taskIdByCancelId.has(F)||h.taskIdByCancelId.set(F,new Set),h.taskIdByCancelId.get(F).add(K.id)):_.Ih(new _.ts("Unexpected malformed cancelOn field."))}else _.Ih(new _.ts("Unexpected malformed triggerOn field."))}else _.Ih(new _.ts("Unexpected malformed Task proto."));gYG(R.JSC$16055_taskManager);_.KG(c)})};var nYk={},VOH=(nYk.rendered={priority:0,callback:function(){var f={};f.numCpu=navigator.hardwareConcurrency;var R={};R.ramGb=_.Oe.navigator.deviceMemory;var u={staticContext:{}};R.ramGb&&Fsn(R.ramGb)&&(u.staticContext.memoryTotalKbytes=(R.ramGb*1048576).toString());f.numCpu&&Fsn(f.numCpu)&&(u.staticContext.cpuCores=f.numCpu);if(_.E("web_enable_adaptive_appl_signal")){f={};R=_.H_("rses_dpj");var O=_.H_("rsef_dpj");R&&R>0&&O&&O>0&&(R=Math.ceil(O-R),R>0&&(f.loadLatency=R));f.loadLatency&&Fsn(f.loadLatency)&&
(u.appL=f.loadLatency.toString())}_.Jr("applicationStarted",u)}},nYk);var YnF=new _.Vi("WINDOW_ON_ERROR"),vYA=new _.Vi("ERROR_WEIGHT_MAPS"),isG=new _.Vi("INIT_ERROR");var rpC={},frk=(rpC.initialized={priority:10,callback:function(f){f.injector.resolve(isG)()}},rpC);var RHf=function(){},ugF=function(){var f=_.Ph("meta_logger_impl");
f||(f=new RHf,_.V4("meta_logger_impl",f));return f},OZA=function(){ugF().csiSubscriptionKey=aHt("meta_logging_csi_event",function(f){var R=f.timerName;
if(f=f.timelineData){_.DW(R,{startTime:f.startTime},R);f.infos&&_.ja(f.infos,R);for(var u=_.Z(Object.keys(f.ticks)),O=u.next();!O.done;O=u.next())O=O.value,_.JH(O,f.ticks[O],R)}})};
RHf.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&mq5(this.csiSubscriptionKey)};var cJG={},X6F=(cJG.initialized={priority:10,callback:function(){OZA()}},cJG);var hHl=function(f,R){this.innertubeClientName=f;this.JSC$16071_prefCookie=R};
hHl.prototype.record=function(){if(_.E("web_li_record_binary_eval_tick")){var f=_.H_("rsef_dpj");var R=_.H_("rses_dpj");f=f!==void 0&&R!==void 0?Math.round(f-R):void 0;if(f!==void 0&&f>0){R=_.Xs(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var u=this.poolSize;if(!(R.valuesSeen>=1E9)){if(R.valuesSample.length<u)R.valuesSample.push(f);else{var O=Math.floor(Math.random()*(R.valuesSeen+1));O<u&&(R.valuesSample[O]=f)}R.valuesSeen+=1}_.cT(this.storagePrefix+"-"+this.innertubeClientName,
R,2592E3);f=R.valuesSample;R=wyn(f);f=f.length<5?void 0:R<400?1:R<1700?2:3;f!==void 0&&(this.JSC$16071_prefCookie.set(this.cookiePrefix+this.innertubeClientName,f),this.JSC$16071_prefCookie.save())}}else _.hC(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16071_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16071_prefCookie.save()};
hHl[nW]=[EN,VI];var ZZH=function(){hHl.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.y(ZZH,hHl);var lrC=new _.Vi("PAGE_LOAD_TIME_TOKEN");var k1f=new _.Vi("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Va=function(f,R){this.JSC$16092_storeWithEntities=f;this.JSC$16092_commandHandler=R;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Va.prototype.start=function(){this.JSC$16092_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Va.prototype.observeDownloadingEntities=function(){var f=_.CLX(this.JSC$16092_storeWithEntities.getState().entities).map(function(O){return yLD(O)});
if(f.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var R={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:pE7()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.fg(_.Fa("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16092_commandHandler.resolveCommand(R)}this.downloadingEntities=f}else if(this.downloadingEntities.length){var u=tvn(this.JSC$16092_storeWithEntities.getState().entities).map(function(O){return yLD(O)});
this.downloadingEntities.filter(function(O){return u.includes(O)}).length&&(f={openPopupAction:i30()},this.JSC$16092_commandHandler.resolveCommand(f));
this.downloadingEntities=[]}};
Va[nW]=[lk,_.rv];var KAt;_.YW=function(f,R,u,O,c,h,l,K){this.JSC$16095_playerApiPromise=f;this.JSC$16095_commandHandler=R;this.JSC$16095_screenManager=u;this.offlineWebClientEligibility=O;this.JSC$16095_prefStorage=c;this.JSC$16095_actionRouter=h;this.entityTypeMap=l;this.JSC$16095_persistentStorePromiseAccessor=K;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
KAt=function(){var f=_.vh().resolve(_.YW),R;_.k(function(u){if(u.nextAddress==1)return f.downloadFailureListenerBound?u.return():_.A(u,f.JSC$16095_playerApiPromise,2);R=u.yieldResult;R.addEventListener("onOfflineOperationFailure",function(O){if(O.failureReason&&O.entityKey&&O.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(O.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var c=_.XX(O.entityKey).entityId;c&&f.JSC$16095_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
c)}else if(_.E("kevlar_woffle")){c=f.JSC$16095_commandHandler;var h=c.resolveCommand;O=O.failureReason;var l=_.Fa("TRANSFER_FAILED",void 0,"Download failed");O==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(l=_.Fa("STORAGE_FULL",void 0,"Storage full"));h.call(c,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.fg(l),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
f.downloadFailureListenerBound=!0;_.KG(u)})};
_.YW.prototype.deleteVideo=function(f,R){var u=this,O,c,h;return _.k(function(l){if(l.nextAddress==1)return _.A(l,u.JSC$16095_playerApiPromise,2);O=l.yieldResult;h={offlineLoggingData:{offlineDeleteReason:(c=R)!=null?c:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.A(l,O.queueOfflineAction(f,u.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",h),0)})};
_.YW.prototype.pauseVideoDownload=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.JSC$16095_playerApiPromise,2);u=O.yieldResult;u.pauseVideoDownload(f);_.KG(O)})};
_.YW.prototype.resumeVideoDownload=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.JSC$16095_playerApiPromise,2);u=O.yieldResult;return _.A(O,u.resumeVideoDownload(f),0)})};
_.YW[nW]=[_.fr,_.rv,_.Cq,k1f,rd,gS,cEH,ZX];var qaY=new _.Vi("DOWNLOAD_STATE_STORE_TOKEN");var AJf=function(f,R){this.JSC$16114_persistentStorePromiseAccessor=f;this.store=R;this.upliftCompletionResolver=new _.lj},w6C=function(){var f=_.vh().resolve(arf),R;
_.k(function(u){switch(u.nextAddress){case 1:if(f.upliftImplPromise)return u.return(f.upliftImplPromise);_.cl(u,2);f.upliftImplPromise=FAE(f);return _.A(u,f.upliftImplPromise,4);case 4:f.upliftCompletionResolver.resolve();_.Bf(u,3);break;case 2:throw R=_.ku(u),f.upliftCompletionResolver.reject(R),R;case 3:return u.return(f.upliftImplPromise)}})},FAE=function(f){var R,u,O;
return _.k(function(c){switch(c.nextAddress){case 1:return _.Hh("LOGGED_IN")?_.A(c,f.JSC$16114_persistentStorePromiseAccessor(),2):c.return();case 2:R=c.yieldResult;if(!R)return _.JH("vdeur"),c.return();_.JH("vdeus");_.cl(c,3);return _.A(c,mlt(R),5);case 5:u=c.yieldResult;f.store.dispatch(hnt(u));R.observe(function(h){Zuh(f.store,h)});
_.Bf(c,4);break;case 3:throw O=_.ku(c),_.JH("vdeur"),O;case 4:_.JH("vdeuc"),_.KG(c)}})},mlt=function(f){var R;
return _.k(function(u){if(u.nextAddress==1)return _.A(u,y2q(f),2);R=u.yieldResult;return u.return(R.reduce(function(O,c){if(!c.data||!c.key||!c.entityType)return O;O[c.entityType]||(O[c.entityType]={});O[c.entityType][c.key]=c.data;return O},{}))})};
AJf[nW]=[ZX,_.zM];var arf;arf=new _.Vi("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.vH=new _.Vi("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var i6=function(f,R){this.JSC$16117_persistentStorePromiseAccessor=f;this.transportService=R};
i6.prototype.refresh=function(){var f=this,R,u,O,c;return _.k(function(h){if(h.nextAddress==1)return _.Hh("LOGGED_IN")?_.A(h,f.JSC$16117_persistentStorePromiseAccessor(),2):h.return();if(h.nextAddress!=3)return(R=h.yieldResult)?_.A(h,c2t(R),3):h.return();if((u=h.yieldResult)&&!(Number(u.data.refreshTimestampMs||0)<(0,_.iZ)()))return h.return();O={browseId:"SPaccount_downloads"};c=_.Ve(iX);_.Dn(f.transportService,O,c).then(function(l){var K;if(R&&(l==null?void 0:(K=l.responseContext)==null?void 0:
K.maxAgeSeconds)!==0){var q;K=(l==null?void 0:(q=l.responseContext)==null?void 0:q.maxAgeSeconds)||604800;q=String(Math.floor((0,_.iZ)())+K*1E3);R.put("service:downloads_settings:fallback",new _.hU({innertubeResponse:l,refreshTimestampMs:q}))}});
_.KG(h)})};
i6[nW]=[_.oe,_.JN];var r1=function(f,R){this.JSC$16121_playerPromise=f;this.store=R;this.started=!1};
r1.prototype.start=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return f.started?u.return():_.A(u,f.JSC$16121_playerPromise,2);R=u.yieldResult;R.addEventListener("onOrchestrationBecameLeader",f.updateIsLeader.bind(f,!0));R.addEventListener("onOrchestrationLostLeader",f.updateIsLeader.bind(f,!1));if(R.isOrchestrationLeader)f.updateIsLeader(R.isOrchestrationLeader());else{var O=new _.ts("Function isOrchestrationLeader is undefined",{"player.isReady":R.isReady(),"player.playVideo":R.playVideo?
"defined":"undefined"});_.TL(O);f.updateIsLeader(!1)}f.started=!0;_.KG(u)})};
r1.prototype.updateIsLeader=function(f){this.store.dispatch(_.OP({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:f}}))};
r1[nW]=[_.fr,_.zM];var QxF=function(f,R){this.networkStatusManager=f;this.JSC$16124_prefStoragePromise=R;this.redirectsToPreload=["https://youtube.com"]},WAI=function(){var f=_.vh().resolve(QxF),R,u,O,c,h,l;
_.k(function(K){switch(K.nextAddress){case 1:return _.A(K,f.JSC$16124_prefStoragePromise,2);case 2:R=K.yieldResult;if(!(u=R)){K.jumpTo(3);break}return _.A(K,R.get("yt-redirect-prefetch-id"),4);case 4:u=K.yieldResult;case 3:if(u||!f.networkStatusManager.isNetworkAvailable())return K.return();O={cache:"reload",redirect:"manual"};c=_.Z(f.redirectsToPreload);h=c.next();case 5:if(h.done){if(!R){K.jumpTo(0);break}return _.A(K,R.set("yt-redirect-prefetch-id",!0,86400),0)}l=h.value;_.cl(K,8);return _.A(K,
_.Oe.fetch(l,O),10);case 10:_.Bf(K,6);break;case 8:_.ku(K);case 6:h=c.next(),K.jumpTo(5)}})};var fw=function(f){f?(this.container=f,this.containerWasInjected=!0):this.containerWasInjected=!1};
fw.prototype.openDialog=function(f,R,u){var O=this,c;return _.k(function(h){(c=O.container)==null||c.openDialog(f,R,u);_.KG(h)})};
fw.prototype.closeDialog=function(){var f=this,R;return _.k(function(u){(R=f.container)==null||R.closeDialog();_.KG(u)})};
fw.prototype.isDialogOpen=function(){var f=this,R,u;return _.k(function(O){return O.return((u=(R=f.container)==null?void 0:R.isDialogOpen())!=null?u:!1)})};
fw[nW]=[_.Y8(p4f)];_.EtA=new _.Vi("POPUP_CONTROLLER_TOKEN");var tuk=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
tuk.prototype.registerPanel=function(f,R){if(f){this.panelMap.set(f,R);var u=this.pendingPanelResolvers.get(f);u&&(u.resolve(R),this.pendingPanelResolvers.delete(f))}};
tuk.prototype.getPanel=function(f){var R=this,u;return _.k(function(O){return(u=R.panelMap.get(f))?O.return(u):O.return(C1G(R,f))})};
var C1G=function(f,R){var u,O;return _.k(function(c){if(u=f.pendingPanelResolvers.get(R))return c.return(u.promise);O=new _.lj;f.pendingPanelResolvers.set(R,O);return c.return(O.promise)})},yJl=function(f){tuk.call(this);
var R=this;this.popupController=f;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return R.panelMap.size}}};
_.y(yJl,tuk);_.X=yJl.prototype;_.X.getReloadContinuation=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.getPanel(f),2);u=O.yieldResult;return O.return(u.getReloadContinuation())})};
_.X.showPanel=function(f,R,u,O,c,h,l){var K=this,q,F,w,m;return _.k(function(W){if(W.nextAddress==1){l&&K.updatePanelContinuationDatas.set(f,l);if((q=u)==null?0:(F=q.engagementPanelPopupPresentationConfig)==null?0:F.popupType){w=u.engagementPanelPopupPresentationConfig.popupType;c===void 0&&(c=document.body);var C=W.return,d=K.popupController,p=d.openPopup;a:switch(w){case "PANEL_POPUP_TYPE_DIALOG":var J="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":J="DROPDOWN";break a;default:throw Error("bj`"+
w);}return C.call(W,p.call(d,f,R,J,c))}return _.A(W,K.getPanel(f),2)}m=W.yieldResult;(R||h)&&m.updatePanel(R,!1,O,h);m.showPanel(O);_.KG(W)})};
_.X.hidePanel=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,R.getPanel(f),2);u=O.yieldResult;u.hidePanel();R.popupController.closePopup(f);_.KG(O)})};
_.X.isVisible=function(f,R){var u=this,O;return _.k(function(c){if(c.nextAddress==1)return R&&!u.panelMap.has(f)?c.return(!1):_.A(c,u.getPanel(f),2);O=c.yieldResult;return c.return(O.isVisible())})};
_.X.updatePanel=function(f,R,u,O,c,h){u=u===void 0?!1:u;var l=this,K;return _.k(function(q){if(q.nextAddress==1){if(!R&&!c)return q.return();h&&l.updatePanelContinuationDatas.set(f,h);return _.A(q,l.getPanel(f),2)}K=q.yieldResult;K.updatePanel(R,u,O,c);_.KG(q)})};
_.X.registerPanelContent=function(f,R){f&&this.panelContentMap.set(f,R)};
_.X.getPanelContent=function(f){return this.panelContentMap.get(f)};
_.X.getUpdatePanelContinuationData=function(f){return this.updatePanelContinuationDatas.get(f)};
yJl[nW]=[_.EtA];var Rc=function(f,R){this.innertubeTransportService=f;this.JSC$16140_screenManager=R},dlG=function(f){var R;
return!((R=f.panelLoadingStrategy)==null||!R.requestTemplate)};
Rc.prototype.makeRequest=function(f){var R=this,u,O;return _.k(function(c){switch(c.nextAddress){case 1:if(!dlG(R)){c.jumpTo(2);break}_.cl(c,3);return _.A(c,_.e6(R.innertubeTransportService,f),5);case 5:return u=c.yieldResult,u?c.return(u.content):(_.TL(Error("cj")),c.return(void 0));case 3:O=_.ku(c),_.TL(O);case 2:return c.return(void 0)}})};
Rc.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Rc.prototype.execute=function(f){var R=this,u,O,c,h,l,K,q,F,w,m;return _.k(function(W){if(W.nextAddress==1){u=f;O=u.data;c=u.fallbackVe;h=u.parentVe;l=u.createScreenConfig;K=u.renderFn;q=u.command;R.panelLoadingStrategy=O;var C,d,p=((C=R.panelLoadingStrategy)==null?0:C.screenVe)?(d=R.panelLoadingStrategy)==null?void 0:d.screenVe:c;p&&_.O1(R.JSC$16140_screenManager,p,h,l);return(F=R.getContent())?_.A(W,K(F),2):W.jumpTo(2)}return W.nextAddress!=4?dlG(R)?_.A(W,R.makeRequest(q),4):W.return():(m=w=W.yieldResult)?
_.A(W,K(m),0):W.return()})};
Rc[nW]=[_.JN,_.Cq];var uM=function(){};
uM.prototype.getContainer=function(){return _.iE()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
uM.prototype.openSheet=function(f,R){var u=this,O,c,h,l,K,q;return _.k(function(F){switch(F.nextAddress){case 1:return O={stack:[],error:void 0,hasError:!1},_.cl(F,2,3),c=Y$,_.A(F,u.isSheetOpen(),5);case 5:h=F.yieldResult;c8P(O,bQX(c));if(h&&!_.E("delay_sheet_open_killswitch")){if(R&&u.currentTarget===R)return(l=u.getContainer())==null||l.closeSheet(),F.return();u.pendingData={data:f,target:GQI(u,R)};return F.return()}f.viewModel&&(f={viewModel:f.viewModel});(K=u.getContainer())==null||K.openSheet(f,
R);u.currentTarget=R;case 3:_.hu(F);lF2(O);_.lC(F,0);break;case 2:q=_.ku(F),O.error=q,O.hasError=!0,F.jumpTo(3)}})};
uM.prototype.closeSheet=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,(R=f.getContainer())==null?void 0:R.closeSheet(),2);if(u.nextAddress!=4)return f.currentTarget=void 0,!f.pendingData||_.E("delay_sheet_open_killswitch")?u.jumpTo(0):_.A(u,f.openSheet(f.pendingData.data,f.pendingData.target),4);f.pendingData=void 0;_.KG(u)})};
uM.prototype.isSheetOpen=function(){var f=this,R,u;return _.k(function(O){return O.return((u=(R=f.getContainer())==null?void 0:R.isSheetOpen())!=null?u:!1)})};
var GQI=function(f,R){if(!_.E("web_parent_target_for_sheets"))return R;var u,O;return(O=(u=f.getContainer())==null?void 0:u.getParentTarget(R))!=null?O:R};var kj=window.documentPictureInPicture;var Ioq=_.Sg(["dark"]),MxP=_.Sg(["system-icons"]),PnD=_.Sg(["typography"]),U67=_.Sg(["lang"]),e07=_.Sg(["style"]),J2e=_.Sg(["dir"]),z0X=_.Sg(["rounded-container"]),TDD=_.Sg(["style"]),BD2=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Oo=function(f){this.JSC$16152_clientRoot=f;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Oo.prototype.openWindow=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1)return window.documentPictureInPicture&&_.Tq()&&!R.currentPipWindow?_.A(c,(u=kj?kj:null)==null?void 0:u.requestWindow(f),2):c.return(!1);if(c.nextAddress!=3){O=c.yieldResult;if(!O)return c.return(!1);O.addEventListener("pagehide",function(){Nkl(R)});
O.addEventListener("resize",R.handlePipWindowResize);R.pipWindowResizeDelay=new _.iq(function(){R.currentPipWindow&&_.OJ(R.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.K8(R.currentPipWindow.innerWidth,R.currentPipWindow.innerHeight)])},O);
GrD(O);x6e(O);return _.A(c,D6B(O),3)}if(!bVX())return c.return(!1);R.currentPipWindow=O;R.JSC$16152_eventForwarder=opt(O,R.JSC$16152_clientRoot);R.pipWindowResizeDelay.start();return c.return(!0)})};
Oo.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Nkl=function(f){if(f.currentPipWindow){var R,u;(R=kj?kj:null)==null||(u=R.window)==null||u.close();f.currentPipWindow.removeEventListener("resize",f.handlePipWindowResize);var O;(O=f.pipWindowResizeDelay)==null||O.dispose();f.pipWindowResizeDelay=void 0;var c;(c=f.JSC$16152_eventForwarder)==null||c.stop();f.JSC$16152_eventForwarder=void 0;R=_.Z(f.onCloseCallbacks);for(u=R.next();!u.done;u=R.next())u=u.value,u();f.onCloseCallbacks=[];f.currentPipWindow=null}};
Oo.prototype.getWindow=function(){return this.currentPipWindow};
var LAG=function(f,R){var u;(u=f.onCloseCallbacks)==null||u.push(R)};
Oo.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Tq()};
_.Vy.Object.defineProperties(Oo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Oo[nW]=[VJt];var bZE=new _.Vi("PICTURE_IN_PICTURE_CONTROLLER");var SMP=function(f,R){this.lengthY=this.lengthX=0;this.lengthX=R.x-f.x;this.lengthY=R.y-f.y};var p6F=function(){},SsG=function(f,R){var u;
(u=f.headerElement)==null||u.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:R}))};var jxl=function(){};
jxl.prototype.openPopup=function(f,R,u,O){var c=this,h;return _.k(function(l){if(!c.container)return l.return();h={openPopupAction:{popup:R,popupType:u,uniqueId:f}};return l.return(c.container.handleOpenPopupAction(h,O))})};
jxl.prototype.closePopup=function(f){this.container&&this.container.closePopup(f)};var DlY=function(){this.openTunnels=new Map},Aa5=function(f,R,u){if(YMB(u)){var O=_.GP(u,"gclid");
u={handleEvent:function(K){R&&!R.closed&&typeof R.postMessage==="function"&&K&&K.origin&&K.source===R&&K.data&&K.data.action==="gcl_setup"&&R.postMessage(Object.assign({},{action:"gcl_transfer"},O&&{gclid:O},{gadSource:2}),K.origin)}};
for(var c=_.Z(f.openTunnels),h=c.next();!h.done;h=c.next()){var l=_.Z(h.value);h=l.next().value;l=l.next().value;if(h.closed)try{window.removeEventListener("message",l),f.openTunnels.delete(h)}catch(K){_.TL(K)}}R&&f.openTunnels.size<15&&(f.openTunnels.set(R,u),window.addEventListener("message",u))}};var JJk=function(){this.clientParams=new Map},sNG=function(f){for(var R=_.Z(f.clientParams.keys()),u=R.next();!u.done;u=R.next())u=u.value,u.startsWith("yt-mini-app-share")&&f.clientParams.delete(u)};var zHf=function(f,R){_.d9.call(this);var u=this;this.shortsController=f;this.storeWithShorts=R;f=_.aC(this.storeWithShorts,_.LSD,function(O){if(O){var c,h=(c=u.shortsController.getRoot())==null?void 0:c.getPlayer(),l;(c=(l=u.shortsController.alternativePlayerContainerElement)==null?void 0:l.getPlayerContainer())&&(h==null||h.appendTo(c))}else{var K;l=(K=u.shortsController.alternativePlayerContainerElement)==null?void 0:K.getPlayerContainer().querySelector("#player");c=u.shortsController.activeIndex;
(K=(h=u.shortsController.getRoot())==null?void 0:h.querySelector('ytd-reel-video-renderer[id="'+c+'"] #player-container'))&&(l==null||l.appendTo(K,void 0,!0))}});
this.addOnDisposeCallback(f)};
_.y(zHf,_.d9);var cS=function(f,R,u,O,c){var h=this;this.storeWithShorts=f;this.ephemeralResponseStore=R;this.store=u;this.innertubeTransportService=O;this.innertubeTransportLoader=c;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.JS(_.AF);this.isShortsPipActive=_.JS(_.am);this.nextReelVe=_.dx(56921);this.prevReelVe=_.dx(56922);this.backButtonVe=_.dx(22156);this.TEST_ONLY={getActiveModules:function(){return h.activeModules}}},kUf,KhC,TkE;
cS.prototype.initOrDisposeActiveModules=function(f){f?this.activeModules.push(new zHf(this,this.storeWithShorts)):(_.vK(this.activeModules),this.activeModules.length=0)};
cS.prototype.getRoot=function(){return this.rootElement};
cS.prototype.setActiveIndex=function(f){this.activeIndex=f};
_.OYA=function(f,R){var u,O,c,h,l,K,q;return _.k(function(F){switch(F.nextAddress){case 1:return u=new qb,(O=u.JSC$11001_getStoreKey(R))&&f.ephemeralResponseStore.has(O)?_.A(F,f.ephemeralResponseStore.get(O),7):_.A(F,TkE(f,R),4);case 4:c=F.yieldResult;if(!O){F.jumpTo(3);break}h=uA(c,3600);return _.A(F,f.ephemeralResponseStore.put(O,new _.hU(h)),3);case 7:c=(l=F.yieldResult)==null?void 0:_.hd(l);case 3:return((K=c)==null?0:K.replacementEndpoint)&&(q=_.t(c.replacementEndpoint,_.Ey))&&c.sequenceContinuation&&
(q.sequenceParams=c.sequenceContinuation),F.return(c)}})};
kUf=function(f,R){R=(new A6).JSC$11001_getStoreKey(R);return!!R&&f.ephemeralResponseStore.has(R)};
KhC=function(f,R,u){var O,c,h,l,K;_.k(function(q){if(q.nextAddress==1){O=new A6;c=O.JSC$11001_getStoreKey(R);if(!c)return q.return();if(u.reelWatchSequenceResponse)return h=uA(u.reelWatchSequenceResponse,3600),f.ephemeralResponseStore.put(c,new _.hU(h)),q.jumpTo(0);if(!f.ephemeralResponseStore.has(c))return q.jumpTo(0);K=u;return _.A(q,f.ephemeralResponseStore.get(c),4)}K.reelWatchSequenceResponse=(l=q.yieldResult)==null?void 0:_.hd(l);_.KG(q)})};
TkE=function(f,R){var u=u===void 0?{}:u;var O,c,h;return _.k(function(l){switch(l.nextAddress){case 1:if(f.innertubeTransportService){O=f.innertubeTransportService;l.jumpTo(2);break}if(!f.innertubeTransportLoader){_.IS(Error("ej"));l.jumpTo(2);break}return _.A(l,f.innertubeTransportLoader(),4);case 4:O=l.yieldResult;case 2:return _.A(l,(c=O)==null?void 0:_.e6(c,R,u),5);case 5:return h=l.yieldResult,l.return(h)}})};
_.Vy.Object.defineProperties(cS.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
cS[nW]=[ncA,_.XC,lk,_.Y8(_.JN),_.Y8(xDG)];_.HZi=new _.Vi("STORAGE_MANAGER_TOKEN");var ujB=new Set(["EVENT_SPAN_TYPE_TOUCHMOVE","EVENT_SPAN_TYPE_SCROLL"]);var IrI=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Muk;
IrI.prototype.enqueue=function(f,R){R===1?this.currentPersistentToast=f:this.queue.push(f);this.openToast()};
IrI.prototype.openToast=function(){var f;(f=this.currentToast)!=null&&f.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.P1f=new _.Vi("TOAST_MANAGER_TOKEN");var Ulk;_.eHi=_.nf(function(f){return _.a("basic-content-view-model",{class:_.KL("ytBasicContentViewModelHost",_.g_(f.className))},_.a(_.Q,{cond:function(){return f.data().headline},
then:function(R){return _.a("div",{class:"ytBasicContentViewModelHeadline"},_.a(_.YO,{text:R}))}}),_.a(_.EC,{each:function(){return f.data().paragraphs||[]},
keyBy:"INDEX"},function(R){return _.a("div",{class:"ytBasicContentViewModelParagraph"},_.a(_.Q,{cond:function(){var u=R();return!!(u.header||u.customHeader||u.headline)},
then:function(){return _.a(Ulk,{paragraph:R})}}),_.a(_.Q,{cond:function(){return R().asset||R().text},
then:function(){return _.a("div",{class:"ytBasicContentViewModelParagraphContent"},_.a(_.Q,{cond:function(){return R().asset},
then:function(u){return _.a("div",{class:"ytBasicContentViewModelParagraphAsset"},_.a(_.y5,{data:u},{contentPreviewImageViewModel:_.iS}))}}),_.a(_.Q,{cond:function(){return R().text},
then:function(u){return _.a("div",{class:"ytBasicContentViewModelParagraphText"},_.a(_.YO,{text:u}))}}))}}))}))},"ke");
Ulk=_.nf(function(f){var R=f.paragraph;return _.a(_.RS,null,_.a(_.Q,{cond:function(){return R().headline},
then:function(u){return _.a(_.YO,{text:u,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.a(_.y5,{data:function(){return R().header||R().customHeader}},{sectionHeaderViewModel:function(u){return _.a(_.c3,{data:u.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"le");var BkE=_.nf(function(f){var R=_.sW(),u=_.Ff(function(O){if(!_.GS(_.eP(O),R.value,["A".toString(),"BUTTON".toString()])){var c;(c=f.expandedCallback)==null||c.call(f,!1)}});
return _.a("yt-expandable-metadata-header-view-model",{el:R,class:"ytExpandableMetadataHeaderViewModelHost"},_.a(_.Q,{cond:function(){return f.expanded()},
then:function(){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":u},_.a("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.a(_.Q,{cond:function(){return f.data().expandedTitleImage},
then:function(O){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.a(_.gR,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:O}))}}),_.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.a(_.YO,{text:function(){return f.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.a(_.YO,{text:function(){return f.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.a(_.YO,{text:function(){return f.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.a("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.a(_.y5,{data:function(){return f.data().infoButton}},{buttonViewModel:_.TS}),_.a(_.y5,{data:function(){return f.data().collapseButton}},{buttonViewModel:function(O){return _.a(_.TS,{data:O.data,
onClick:function(){var c;(c=f.expandedCallback)==null||c.call(f,!1)}})}})))},
else:function(){return _.a(G1l,Object.assign({},f))}}))},"me"),otC=_.nf(function(f){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.a(_.Q,{cond:function(){return f.data().collapsedLabelImage},
then:function(R){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.a(_.gR,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:R,alt:""}))}}),_.a(_.YO,{text:function(){return f.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ne"),G1l=_.nf(function(f){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Ff(function(){var R;return void((R=f.expandedCallback)==null?void 0:R.call(f,!0))})},_.a("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.a(_.Q,{cond:function(){return f.data().collapsedImage},
then:function(R){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.a(_.gR,{width:16,height:16,data:R,alt:""}))}}),_.a(_.Q,{cond:function(){return f.data().showLeadingCollapsedLabel},
then:function(){return _.a(otC,Object.assign({},f))}}),_.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.a(_.YO,{text:function(){return f.data().collapsedTitle}}))),_.a("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.a(_.Q,{cond:function(){return!f.data().showLeadingCollapsedLabel},
then:function(){return _.a(otC,Object.assign({},f))}}),_.a(_.y5,{data:function(){return f.data().infoButton}},{buttonViewModel:_.TS}),_.a(_.y5,{data:function(){return f.data().expandButton}},{buttonViewModel:function(R){return _.a(_.TS,{data:R.data,
onClick:function(){var u;(u=f.expandedCallback)==null||u.call(f,!0)}})}})))},"oe");_.xlF=_.nf(function(f){var R=_.Z(_.m8(function(){return f.data().initiallyExpanded})),u=R.next().value,O=R.next().value,c,h=(c=_.vh().resolve(_.Y8(_.oF)))==null?void 0:c(),l=function(){var K=f.data().colorData;
if(K)return h?K==null?void 0:K.darkColorPalette:K==null?void 0:K.lightColorPalette};
return _.a("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Qm({"background-color":function(){var K=l();return(K==null?0:K.section2Color)?_.ML(K.section2Color):""}})},_.a(_.y5,{data:function(){return f.data().header}},{expandableMetadataHeaderViewModel:function(K){return _.a(BkE,{data:K.data,
expanded:function(){return!!u()},
expandedCallback:function(q){O(q)}})}}),_.a(_.Q,{cond:function(){return u()},
then:function(){return _.a("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.a(_.y5,{data:function(){return f.data().expandedContent}},{horizontalShelfViewModel:function(K){return _.a(_.jL,{data:K.data,
includeMargin:!0,forceNarrowLayout:!0,palette:l})},
videoSummaryContentViewModel:function(K){return _.a(NMY,{data:K.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(K){return _.a(_.RE,{data:K.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(K){return _.a(_.eHi,{data:K.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.a(_.y5,{data:function(){return f.data().expandedBottomButtons}},{buttonViewModel:function(K){return _.a("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.a(_.TS,{data:K.data}))}}))}}))},"pe");var SaF=_.nf(function(f){var R=f.text;var u=f.marqueeSpacing;var O=f.scrollDelay;var c=f.scrollDuration;var h=f.enableMarqueeScroll;f=f.large;var l=_.Z(_.qK(!1,void 0,"kfNqfd")),K=l.next().value,q=l.next().value,F=_.Z(_.qK(0,void 0,"bYgZbf"));l=F.next().value;var w=F.next().value,m=_.sW();F=_.sW();var W=_.sW(),C=_.vh().resolve(_.SQ);_.pc(function(){if(h()){var J=W.value.getBoundingClientRect().width,M=m.value.getBoundingClientRect().width;if(J>M){var P=(C==="ltr"?-1:1)*(J+(u?u():16));Promise.resolve().then(function(){q(!0);
w(P)})}}});
var d={},p={};return _.a("marquee-scroll",{class:_.KL("ytMarqueeScrollHost",(d.ytMarqueeScrollHostLarge=f,d)),el:m},_.a("div",{id:"marquee-scroll-inner-container",class:_.KL("ytMarqueeScrollInnerContainer",(p.ytMarqueeScrollAnimationEnabled=function(){return K()},p)),
el:F,style:_.Qm({gap:u?(0,_.Nr)(u):"16px","animation-duration":c?aoY(c):"16s","animation-delay":O?aoY(O):"3s","--marquee-translate":(0,_.Nr)(l)})},_.a("span",{el:W,dir:"auto"},_.a(_.YO,{text:R,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.a(_.Q,{cond:K,then:function(){return _.a("span",{"aria-hidden":"true",dir:"auto"},_.a(_.YO,{text:R,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"qe");_.$lA=_.nf(function(f){var R=f.data;var u=f.overlayDensity;f=_.Ff(function(){R().onTapCommand&&_.Ux(R().onTapCommand);return!1});
var O=_.fiB(),c={};return _.a("reel-sound-metadata-view-model",{class:_.KL("ytReelSoundMetadataViewModelHost",(c.ytReelSoundMetadataViewModelHostLarge=function(){return(u==null?void 0:u())===1},c)),
"on:click":f,tabindex:0,role:"button","on:keydown":O},_.a("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.a(_.Q,{cond:function(){return R().musicIcon},
then:function(h){return _.a(_.gR,{data:h,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.a("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.a(SaF,{text:function(){return R().soundMetadata},
enableMarqueeScroll:function(){return!!R().enableMarqueeScroll},
large:function(){return(u==null?void 0:u())===1}}))))},"re");var gtA,sxH,X9,vtk,rJI,YaY,unl,Rl9;gtA=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];sxH=_.RV("wil_icon_max_concurrent_fetches",Infinity);
X9=function(f,R,u){var O=this;this.iconSet=f;this.appDirection=R;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Oe.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.E("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.E("wil_icon_network_first");this.renderWhenIdle=_.E("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.E("wil_icon_load_immediately");this.isPurging=!1;f=function(){O.cacheStorageAvailable&&(O.cacheStorageAsync=_.Oe.caches.open("yt-icons").then(function(h){return O.cacheStorageSync=h}).catch(function(){O.cacheStorageAvailable=!1}))};
u=(u==null?void 0:u())||{};u=_.Z(Object.entries(u));for(R=u.next();!R.done;R=u.next()){var c=_.Z(R.value);R=c.next().value;c=c.next().value;c=aS(c);ntC(c);this.iconCache[R]=c.cloneNode(!0)}this.isPurging=VuI(this);this.isPurging instanceof Promise?this.isPurging.then(f):f()};
_.eCt=function(f,R){var u=f.resolveIcon(R);return u?f.renderingMode===1?YaY(f,u,f.renderingMode):(R=f.iconCache[u.url])?(R=R.cloneNode(!0),vtk(f,R),YaY(f,u,f.renderingMode,R)):_.iZf(f,u).then(function(O){var c=O?0:1;vtk(f,O);return YaY(f,u,c,O)}):(_.H5(new _.ts("Icon not found",{iconShape:R})),function(){})};
vtk=function(f,R){if(R){f.counter+=1;f="_yt"+f.counter;R=[R].concat(_.yq(R.getElementsByTagName("*")));R=_.Z(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,u.tagName==="style"&&u.textContent)u.textContent=rJI(u.textContent,f,!0);else for(var O=_.Z(u.attributes),c=O.next();!c.done;c=O.next()){c=c.value;c.name==="id"&&(c.value+=f);["mask","fill","clip-path"].includes(c.name)&&(c.value=rJI(c.value,f));if(c.name==="style"){var h=u.style;try{h.cssText=rJI(h.cssText,f,!0)}catch(w){var l=void 0,K=
void 0,q=void 0,F=void 0;hz({error:((l=w)==null?void 0:(q=(K=l).toString)==null?void 0:q.call(K))||"",el:u.outerHTML,style:!!h,cssText:(F=h)==null?void 0:F.cssText})}}c.name==="xlink:href"&&(c.value=c.value.replace(/#(.*)/,"#$1"+f))}}};
rJI=function(f,R,u){var O=/url\(["']?#(.*?)["']?\)/;(u===void 0?0:u)&&(O=/url\(["']?#(.*?)["']?\)/g);return f.replace(O,"url(#$1"+R+")")};
YaY=function(f,R,u,O){return function(c,h){var l=Object.assign({},{iconColor:"currentcolor",iconWidth:R.size+"px",iconHeight:R.size+"px",iconDisplay:"block"},h);h=_.mD("DIV");var K=l.iconColor,q=l.iconFilter;l="width: "+l.iconWidth+"; height: "+l.iconHeight+"; display: "+l.iconDisplay+";";q&&(l+=" filter: "+q+";");u===0&&(l+=" fill: "+K+";");u===1&&(q=R.url,l+=" -webkit-mask: url("+q+") no-repeat center / cover; mask: url("+(q+") no-repeat center / cover; background-color: ")+K);R.allowMirroring&&
f.appDirection==="rtl"&&(l+=" transform: scale(-1, 1); transform-origin: center center;");h.setAttribute("style",l);u===0&&O&&h.appendChild(O);c.appendChild(h)}};
_.iZf=function(f,R){var u,O,c;return _.k(function(h){u=function(l){return pj(l)};
O=R.url;if(!fDh(O))throw Error("fj");c=Rl9(f,O);return h.return(c.then(function(l){return l.clone().text()}).then(function(l){var K=u(l);
l=R.size;var q=_.mD("DIV");_.ey(q,K);K=_.Q1(q.firstElementChild!==void 0?q.firstElementChild:_.zlH(q.firstChild,!0));l=ntC(K,l);f.iconCache[O]=l.cloneNode(!0);delete f.responsePromises[O];return l}).catch(function(){}))})};
unl=function(f){var R,u=(R=f.requestAninmationFrameResolver)==null?void 0:R.promise;u||(f.requestAninmationFrameResolver=new _.lj,u=f.requestAninmationFrameResolver.promise,_.Oe.requestAnimationFrame(function(){var O;(O=f.requestAninmationFrameResolver)==null||O.resolve();f.requestAninmationFrameResolver=null}));
return u};
Rl9=function(f,R){var u,O;return _.k(function(c){if(c.nextAddress==1)return f.waitForAnimationFrame?_.A(c,unl(f),2):c.jumpTo(2);u=f.responsePromises[R];u||(O=function(){var h,l,K;return _.k(function(q){switch(q.nextAddress){case 1:if(!f.cacheStorageAvailable){h=void 0;q.jumpTo(2);break}if(l=f.cacheStorageSync){q.jumpTo(3);break}return _.A(q,f.cacheStorageAsync,4);case 4:l=q.yieldResult;case 3:h=l;case 2:return K=h,f.isNetworkFirstStrategy?q.return(f.fetchAndUpdateCache(R,K).catch(f.getCacheStorageResponse.bind(f,
R,K))):q.return(f.getCacheStorageResponse(R,K).catch(f.fetchAndUpdateCache.bind(f,R,K)))}})},u=f.renderWhenIdle?new Promise(function(h,l){_.dJ(_.JA,function(){O().then(h).catch(l)},10)}):O(),f.responsePromises[R]=u);
return c.return(u.catch(function(h){delete f.responsePromises[R];hz({error:(h==null?0:h.toString)?h.toString():"",url:R});throw h;}))})};
X9.prototype.fetchAndUpdateCache=function(f,R){var u=this;return _.k(function(O){return O.return(OhN(u,f).then(function(c){cnm(u,f,c,R);return c}))})};
var OhN=function(f,R){var u;return _.k(function(O){if(f.numFetches<sxH)return f.numFetches+=1,O.return(X0m(f,R).finally(function(){--f.numFetches;if(Object.keys(f.queuedResponseResolvers).length){var c=Object.keys(f.queuedResponseResolvers)[0],h=f.queuedResponseResolvers[c];delete f.queuedResponseResolvers[c];h.resolve(OhN(f,c))}}));
u=new _.lj;f.queuedResponseResolvers[R]=u;return O.return(u.promise)})},X0m=function(f,R,u){u=u===void 0?2:u;
var O;return _.k(function(c){O={credentials:"same-origin",priority:"low"};return c.return(_.Oe.fetch(R,O).then(function(h){return h.ok?h:Promise.reject(Error("gj`"+h.status+"`"+h.statusText))}).catch(function(h){if(u>0)return X0m(f,R,u-1);
throw h;}))})},cnm=function(f,R,u,O){_.k(function(c){return O?c.return(new Promise(function(h){_.dJ(_.JA,function(){var l,K;
return _.k(function(q){switch(q.nextAddress){case 1:if(!f.isNetworkFirstStrategy){l=void 0;q.jumpTo(2);break}return _.A(q,O.match(R).catch(function(){}),3);
case 3:l=q.yieldResult;case 2:if(K=l){q.jumpTo(4);break}return _.A(q,O.put(R,u.clone()).catch(function(F){hz({error:(F==null?0:F.toString)?F.toString():"",url:R})}),4);
case 4:h(),_.KG(q)}})},50)})):c.return()})};
X9.prototype.getCacheStorageResponse=function(f,R){return _.k(function(u){return R?u.return(R.match(f).then(function(O){return O&&O.ok?O:Promise.reject()})):u.return(Promise.reject())})};
var ntC=function(f,R){R===void 0||f.getAttribute("viewBox")||f.setAttribute("viewBox","0 0 "+R+" "+R);f.setAttribute("focusable","false");f.setAttribute("aria-hidden","true");try{f.style.pointerEvents="none",f.style.display="inherit",f.style.width="100%",f.style.height="100%"}catch(c){var u;hz({error:((u=c)==null?0:u.toString)?c.toString():""});try{f.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(h){var O;hz({error:((O=h)==null?0:O.toString)?h.toString():
""})}}return f},fDh=function(f){for(var R=_.Z(gtA),u=R.next();!u.done;u=R.next())if(f.startsWith(u.value)&&f.endsWith(".svg"))return!0;
return!1};
X9.prototype.resolveIcon=function(f){return this.iconSet.resolveIcon(f)};
var hz=function(f){_.Ih(new _.ts("Error in IconManager",f))},VuI=function(f){if(_.E("wil_icons_cache_purge_killswitch"))return!1;
try{var R=_.Oe.localStorage}catch(h){return!1}if(!R||!f.cacheStorageAvailable)return!1;var u=function(h){try{var l;(l=R)==null||l.setItem("yt-icons-last-purged",h.toString())}catch(q){var K;hz({error:((K=q)==null?0:K.toString)?q.toString():""})}},O=Number(R.getItem("yt-icons-last-purged"));
if(!O)return O=new Date,O=O.setDate(O.getDate()-Math.floor(Math.random()*90+1)),u(O),!1;if(function(h,l){h=new Date(h);l=new Date(l);return l.getMonth()-h.getMonth()+12*(l.getFullYear()-h.getFullYear())}(O,Date.now())<3)return!1;
try{return _.Oe.caches.delete("yt-icons").then(function(h){h&&u(Date.now());return h}).catch(function(){return!1}).finally(function(){f.isPurging=!1})}catch(h){var c;
hz({error:((c=h)==null?0:c.toString)?h.toString():""});return!1}};
X9[nW]=[Q_k,_.SQ,_.Y8(t1Y)];_.Z6=function(f,R){this.iconManager=f;this.iconsToFetch=R};
_.Z6[nW]=[_.kr,_.Y8(E0i)];var hl9=function(){};var Zhm=function(f,R,u){this.requestKey=f;this.ho9=R;this.uXR=u;this.p6m=function(){return new XMLHttpRequest};
this.txz=void 0;this.oW7=[]};
Zhm.prototype.getLatestChallengeResponse=function(){return this.uXR};
var Dui=function(f,R,u){var O,c,h,l;return _.k(function(K){if(K.nextAddress==1){_.DW("attestation_challenge_fetch");_.JH("att_fs",void 0,"attestation_challenge_fetch");if(!f.txz)throw new _.yc(9,"Missing fetcher");return _.A(K,f.txz(R,u),2)}O=K.yieldResult;h=(c=O)==null?void 0:c.bgChallenge;if(!h)throw new _.yc(15,"Missing field");f.uXR=O;f.oW7.forEach(function(q){q(O)});
l=Z3n(h);_.JH("att_fc",void 0,"attestation_challenge_fetch");f22("attestation_challenge_fetch");return K.return(l)})},rmF=function(f,R){var u,O,c,h,l;
return _.k(function(K){switch(K.nextAddress){case 1:u=new ZN(100,3E5,.25,2),O=void 0;case 2:if(!(u.currBackoffCount_<10)){K.jumpTo(4);break}_.cl(K,5);if(!(u.currBackoffCount_>0)){K.jumpTo(7);break}return _.A(K,ObD(u.getValue()),7);case 7:return _.A(K,lDK(f,R),9);case 9:return c=K.yieldResult,K.return(c);case 5:h=_.ku(K);h instanceof _.yc?O=h:(l=h instanceof Error?h.message:"Unknown",O=new _.yc(9,l));GXY(u);K.jumpTo(2);break;case 4:if(O)throw O;throw new _.yc(9,"Unknown error");}})},lDK=function(f,
R){R=Woi(E3C(new Qaf,R),f.requestKey);
var u=new _.lj,O=f.p6m();O.open("POST",f.ho9);O.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");O.setRequestHeader("Content-Type","application/json+protobuf");O.onload=function(){if(_.Teq(O)){var c=j5t(O.responseText);u.resolve(c)}else u.reject(new _.yc(_.k$(_.hs(O)),O.statusText))};
O.onerror=function(){u.reject(new _.yc(_.k$(_.hs(O)),O.statusText))};
O.send(R.serialize());return u.promise};var KPh=function(f){this.networkStatusManager=f;this.isDownloaded=Xyt===void 0?function(){return!1}:Xyt;
this.isReady=!1;this.eyS=kqz(this)},kqz=function(f){var R;
return _.k(function(u){if(u.nextAddress==1)return _.A(u,DGP(),2);if(u.nextAddress!=3)return R=u.yieldResult,_.A(u,VYf(R),3);f.yQ=u.yieldResult;XAl(f.yQ).then(function(){f.isReady=!0});
return u.return(f.yQ)})},qea=function(f,R,u){f.yQ?(f=f.yQ.vN({d5:u,
reH:!0,jkL:!0}),R.serviceIntegrityDimensions={poToken:f}):_.TL(Error("ij"))};
KPh.prototype.processContext=function(f){var R=this;if(!f.input.match(_.Ve(KfF)))return _.BY();var u=f.innerTubeRequest,O=u.videoId;return!O||this.isDownloaded(u)||this.networkStatusManager&&!this.yQ&&!this.networkStatusManager.isNetworkAvailable()?_.BY():this.yQ?this.isReady?(qea(this,u,O),_.BY()):new G9(XAl(this.yQ).then(function(){qea(R,u,O)})):new G9(this.eyS.then(function(c){return _.k(function(h){if(h.nextAddress==1)return _.A(h,XAl(c),2);
qea(R,u,O);_.KG(h)})}))};var AnS=new _.Vi("WEB_PO_CONTEXT_PROCESSOR");var aDl=function(f,R){var u=this;this.wR7=0;var O;this.dgv=(O=R==null?void 0:R.dgv)!=null?O:window;this.networkStatusManagerPromise=R==null?void 0:R.networkStatusManagerPromise;var c;this.requestKey=(c=R==null?void 0:R.requestKey)!=null?c:_.uZ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var h;this.dSE=(h=R==null?void 0:R.dSE)!=null?h:function(q){return new Dq(q)};
var l;O=(l=R==null?void 0:R.lmx)!=null?l:function(q,F,w){return new Zhm(q,F,w)};
this.bgChallenge=Z3n(f.bgChallenge);this.ttlSeconds=lJ5(YR(f.challenge||""));this.pL=O(this.requestKey,_.E("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Oe.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",f);cQn(this.pL);var K;this.gd3=(K=R==null?void 0:R.gd3)!=null?K:function(q){_.y0(u.dgv.document,"visibilitychange",function(){u.dgv.document.visibilityState===
"visible"&&q()})}},w0X=function(f){if(!f.us){var R={maxAttempts:5,
feR:f.ttlSeconds*1E3};hP2(f.dgv);f.us=f.dSE({pL:f.pL,yd:{disable:_.E("html5_web_po_disable_remote_logging"),fB:"aGIf",o29:pCq("html5_web_po_experiment_ids"),nPI:_.E("wpo_dis_lfdms")?0:1E3,z4:_.E("wpo_gel_strz")?function(O){var c=klI.get(O);c||(c=new lAC(O),c=new AK(c),klI.set(O,c));return c}:void 0},
pk3:R,s1P:f.bgChallenge,kwr:Zbn});f.wR7=Date.now();NQf(f.us,function(){f.wR7=Date.now()});
HR7(f.us,function(){return _.k(function(O){return O.return(FPt(f))})});
var u=f.h0X.bind(f);f.networkStatusManagerPromise&&f.ttlSeconds>0&&f.networkStatusManagerPromise.then(function(O){O.listen("publicytnetworkstatus-online",u)});
f.gd3(u)}};
aDl.prototype.h0X=function(){if(Date.now()>this.wR7+this.ttlSeconds*1E3){var f;(f=this.us)==null||duf(f)}};
var FPt=function(f){if(f.qtR)return f.qtR;if(!f.us)throw Error("jj");f.qtR=new Hb({us:f.us,pL:f.pL,t8L:!0,onError:Zbn});return f.qtR},kie=function(f,R){f=new aDl(f,R);
w0X(f);FPt(f)};var lM=function(f,R){this.store=f;this.queue=[];this.supportsFocus=_.E("web_ephemeral_actions_focus");R==null||R.addEventListener("yt-navigate-start",this.reset.bind(this))};
lM.prototype.enqueue=function(f){var R=f.command,u=f.durationMs,O=f.elementToFocus;var c=f.label;var h=f.elementToFocus;f.command?c=_.Fa("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:c,shortcut:_.Fa("SHIFT_PLUS_ENTER")}):h&&this.supportsFocus&&(f=c+". "+_.Fa("SHIFT_PLUS_ENTER")+" for more information.",c=_.Fa("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:c,shortcut:_.Fa("SHIFT_PLUS_ENTER")},f));u={announcement:c,durationMs:u!=null?u:this.supportsFocus?8E3:void 0};R?u.command=R:O&&this.supportsFocus&&(O.classList.add("ephemeral-action-focusable-element"),
u.selector=O.tagName+".ephemeral-action-focusable-element");this.queue.push(u);mXX(this)};
lM.prototype.activate=function(f){var R=_.Epl(this.store.getState());if(R){if(R==null?0:R.command)_.IF(R.command),this.store.dispatch(hgl(null));(R==null?0:R.selector)&&this.supportsFocus&&(R=document.querySelector(R.selector),_.ry7(R));f.preventDefault()}};
var mXX=function(f){if(!_.Epl(f.store.getState())&&f.queue.length){var R=f.queue.shift();R&&(f.previousAnnouncement===R.announcement&&(R.announcement+="\u00a0"),f.store.dispatch(hgl(R)),f.previousAnnouncement=R.announcement,f.timeoutId=setTimeout(function(){if(R.selector&&f.supportsFocus){var u;(u=document.querySelector(R.selector))==null||u.classList.remove("ephemeral-action-focusable-element")}f.store.dispatch(hgl(null));mXX(f)},R.durationMs))}};
lM.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(hgl(null));this.queue.length=0;this.timeoutId=void 0};
lM[nW]=[_.zM,_.mf];_.kL=new _.Vi("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Q7m=new _.Vi("AUTH_SERVICE_TOKEN");var AQn=_.Sg(["about:blank"]),qjn;var WPw=new _.Vi("API_IFRAME_TOKEN"),E5l=new _.Vi("FETCH_FN_TOKEN"),tth=new _.Vi("PARSE_FN_TOKEN"),CB2=new _.Vi("WINDOW_REQUEST_TOKEN");var Juf;Juf=new _.Vi("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.ynN=new _.Vi("MISC_UI_SHARED_FLAGS_TOKEN");var dXz=function(){};
dXz.prototype.getFlag=function(f){if(f.configType!==2)throw Error("kj");return N72(f)};
var N72=function(f){switch(f.flagType){case "bool":return _.E(f.flagName);case "int":return _.VA(_.RV(f.flagName));case "double":return _.RV(f.flagName);case "string":return _.uZ(f.flagName);case "int32_list":return pCq(f.flagName);case "int64_list":return pCq(f.flagName).map(function(R){return _.VA(R)});
case "string_list":return _.Xt(f.flagName);default:throw Error("lj");}};var Kw=function(f,R,u){R=R===void 0?{}:R;p5.call(this,u===void 0?"uninitialized":u);this.env=f;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}];R.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=R.shouldWaitOnAsyncImmediate)};
_.y(Kw,p5);Kw.prototype.init=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return R.processPluginOptions.shouldWaitOnAsyncImmediate?_.A(O,f(R.env),2):(f(R.env),O.jumpTo(2));if(O.nextAddress!=4)return R.jobSet?_.A(O,R.jobSet.completedResolver.promise,4):O.jumpTo(4);u=_.TC();u.parkOrScheduleJob(function(){R.transition("rendering")},10,"ci");
_.KG(O)})};
Kw.prototype.initialRender=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return R.processPluginOptions.shouldWaitOnAsyncImmediate?_.A(O,f(R.env),2):(f(R.env),O.jumpTo(2));if(O.nextAddress!=4)return R.jobSet?_.A(O,R.jobSet.completedResolver.promise,4):O.jumpTo(4);u=_.TC();u.parkOrScheduleJob(function(){R.transition("rendered")},10,"cr");
_.KG(O)})};
Kw.prototype.afterRenderImmediate=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return R.processPluginOptions.shouldWaitOnAsyncImmediate?_.A(O,f(R.env),2):(f(R.env),O.jumpTo(2));if(O.nextAddress!=4)return R.jobSet?_.A(O,R.jobSet.completedResolver.promise,4):O.jumpTo(4);u=_.TC();u.parkOrScheduleJob(function(){R.transition("after-render-deferred")},10,"carml");
_.KG(O)})};
Kw.prototype.afterRenderDeferred=function(f){var R=this;return _.k(function(u){f(R.env);_.KG(u)})};var LPt={},bhe=(LPt.rendered={priority:0,callback:function(f){ZBA(f.injector.resolve(NB))}},LPt);var p0X=!1,CD7=0,QQn=null,te0=null;var j7S=new _.Vi("NETWORK_SLI_TOKEN");var DXm=function(f,R,u,O){this.networkSli=f;this.fetchFn=R;this.parseFn=u;this.requestFn=O};
DXm.prototype.fetch=function(f,R,u){var O=this,c,h,l;return _.k(function(K){c=Jn2(O,f,R);l=(h=O.fetchFn)!=null?h:fetch;return K.return(l(c).then(function(q){return O.handleResponse(q,u)}).catch(function(q){_.Ih(q);
if((u==null?0:u.expectJsonStrict)&&q instanceof ar&&q.errorType===1)return Promise.reject(q)}))})};
var X3l=function(f,R,u,O){var c,h,l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:return c=Jn2(f,R,u),_.cl(w,2),_.A(w,fetch(c),4);case 4:h=w.yieldResult;_.Bf(w,3);break;case 2:throw _.ku(w),new ar(2,"Failed to parse streaming response",c.url);case 3:if(!h.redirected&&!h.ok)throw(l=f.networkSli)==null||l.failure(),new _.ts("Streaming fetch request not ok",c.url);if(!h.body)throw new _.ts("No response body in streaming response",c.url);K=h.body.pipeThrough(new TextDecoderStream).getReader();
q=new _.fu;F={};return w.return(zlN(f,K,q,Xvl,F,O))}})},Jn2=function(f,R,u){if(f.networkSli){var O=_.Kt(_.Y7(R,"key"))||"/UNKNOWN_PATH";
f.networkSli.start(O)}O=u;_.E("wug_networking_gzip_request")&&(O=Bzn(u));var c;return new ((c=f.requestFn)!=null?c:window.Request)(R,O)},zlN=function(f,R,u,O,c,h){var l,K,q,F,w,m,W,C,d;
return _.k(function(p){if(p.nextAddress==1)return _.A(p,R.read(),2);l=p.yieldResult;K=l.value;if(q=l.done)return(F=f.networkSli)==null||F.success(),p.return(c);try{w=u.parse(K)}catch(J){throw new ar(1,"Failed to parse streaming response",K);}if(w!=null)for(m=_.Z(w),W=m.next();!W.done;W=m.next())C=W.value,O(c,C),d=void 0,(d=h)==null||d(c,C);return p.return(zlN(f,R,u,O,c,h))})};
DXm.prototype.handleResponse=function(f,R){var u,O=(u=this.parseFn)!=null?u:JSON.parse;u=f.text().then(function(c){if((R==null?0:R.jspbResponseCtor)&&f.ok)return OE7(R.jspbResponseCtor,c);c=c.replace(")]}'","");if((R==null?0:R.expectJsonStrict)&&c)try{var h=O(c)}catch(K){throw new ar(1,"JSON parsing failed after fetch");}var l;return(l=h)!=null?l:O(c)});
f.redirected||f.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),u=u.then(function(c){_.Ih(new _.ts("Error: API fetch failed",f.status,f.url,c));return Object.assign({},c,{errorMetadata:{status:f.status}})}));
return u};
DXm[nW]=[_.Y8(j7S),_.Y8(E5l),_.Y8(tth),_.Y8(CB2)];var T7X=new _.Vi("NETWORK_MANAGER_TOKEN");var Hhh=[1,2,4,8,16,30],Mte=function(f){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=f.maxTimeMs;this.maxFrameCount=f.maxFrameCount===void 0?Math.ceil(60*f.maxTimeMs/1E3):f.maxFrameCount;f=_.Z(Hhh);for(var R=f.next();!R.done;R=f.next())this.brokenFrameSummarizers.push(new ID5(R.value/60*1E3))},PB2=function(f){var R=f.frameCountInternal>=f.maxFrameCount;
return f.elapsedTimeMs>=f.maxTimeMs||R},UXt=function(f){for(var R=[],u=_.Z(f.brokenFrameSummarizers),O=u.next();!O.done;O=u.next())O=O.value,O=O.brokenFrameCount!==0?{severityMs:Math.round(O.targetFrameTimeMs),
eventCount:O.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(O.averageDurationBetweenEventsMs)}:void 0,O&&R.push(O);return{summaries:R,monitoringDurationMs:Math.round(f.elapsedTimeMs)}};
_.Vy.Object.defineProperties(Mte.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 ID5=function(f){this.targetFrameTimeMs=f;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Vy.Object.defineProperties(ID5.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var elS=function(){};
elS.prototype.start=function(f,R){var u=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var O=new Mte({maxTimeMs:f});this.monitor=O;this.lastSummaryInternal=void 0;this.metadataToLog=R;return new Promise(function(c){var h=function(l){if(l===void 0)u.stop(),c(void 0);else if(u.monitor!==O)l=Object.assign({},UXt(O),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),c(l);else{var K=u.monitor;if(!PB2(K)){K.frameCountInternal++;if(K.prevTime===void 0)K.startTime=
l;else for(var q=l-K.prevTime,F=_.Z(K.brokenFrameSummarizers),w=F.next();!w.done;w=F.next()){w=w.value;var m=w.currTimeMs;w.currTimeMs+=q;q>w.targetFrameTimeMs+2&&(w.brokenFrameCount++,w.timeOfFirstBrokenFrameMs===void 0&&(w.timeOfFirstBrokenFrameMs=m),w.timeOfLastBrokenFrameMs=m)}K.prevTime=l}PB2(u.monitor)?c(u.stop()):_.JA.addJob(h,5,0)}};
_.JA.addJob(h,5,0)})};
elS.prototype.stop=function(f){if(!this.monitor)return this.lastSummaryInternal;var R=Object.assign({},UXt(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(R.monitoringDurationMs){f=f!=null?f:this.metadataToLog;var u={droppedFramesSummary:R,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};f&&(u[f.type]=f.data);_.Jr("manualSmoothnessMeasurement",u)}this.monitor=void 0;this.lastSummaryInternal=R;this.metadataToLog=void 0;return R};_.Gqz=new _.Vi("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var B7X;B7X=function(f){this.JSC$16277_expiringStorage=new dU(f)};
_.o5h=function(f){if(_.yQD()&&(f=_.ms0(_.Wf()+"::"+f)))return new B7X(f)};
B7X.prototype.set=function(f,R,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$16277_expiringStorage.set(f,R,u)};
B7X.prototype.get=function(f){return this.JSC$16277_expiringStorage.get(f)};
B7X.prototype.remove=function(f){this.JSC$16277_expiringStorage.remove(f)};var xXw=new _.Vi("SESSION_STORAGE");_.q3=function(){};
_.q3.getInstance=function(){var f=_.Ph("ytglobal.storage_");f||(f=new _.q3,_.V4("ytglobal.storage_",f));return f};
_.q3.prototype.estimate=function(){var f,R,u;return _.k(function(O){f=navigator;return((R=f.storage)==null?0:R.estimate)?O.return(f.storage.estimate()):((u=f.webkitTemporaryStorage)==null?0:u.queryUsageAndQuota)?O.return(dzn()):O.return()})};
_.V4("ytglobal.storageClass_",_.q3);var See=!1;var $Xe=_.Sg(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),g55=_.Sg(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var cpC={"/":_.Ai,"/?feature=ytca":_.Ai,"/feed/downloads":_.d0q};var Fx=function(f,R,u){this.JSC$16290_upliftPromise=f;this.store=R;this.JSC$16290_persistentStorePromiseAccessor=u};
Fx.prototype.shouldPreferLocalResponse=function(f){return f.browseId==="FEdownloads"||f.browseId==="FEsmart_downloads"&&_.E("kevlar_modern_downloads_page")?!0:!1};
Fx.prototype.localInnertubeResponse=function(f){var R=this;return _.k(function(u){return f.browseId==="FEdownloads"?_.E("kevlar_modern_downloads_page")?u.return(s7N(R)):u.return(n5S(R)):f.browseId==="FEsmart_downloads"&&_.E("kevlar_modern_downloads_page")?u.return(Vta(R)):u.return(Promise.reject(Error("nj")))})};
Fx.prototype.canProvideFallbackResponse=function(){return!0};
Fx.prototype.localFallbackInnertubeResponse=function(f){var R=this,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return _.A(h,R.JSC$16290_persistentStorePromiseAccessor(),2);case 2:u=h.yieldResult;if(f.browseId!=="SPaccount_downloads"||!u){h.jumpTo(3);break}return _.A(h,c2t(u),4);case 4:if(O=h.yieldResult)return h.return(_.hd(O));case 3:return f.browseId==="FEwhat_to_watch"?h.return(Ye9(R)):(c=_.E("web_offline_continuation_automatic_retry")||_.E("web_offline_continuation_retry_button"))&&
f.continuation?h.return(v5a(R)):h.return(ihw(R))}})};
var Ye9=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$16290_upliftPromise,2);R=_.rLe(f.store.getState().entities);return R.length?u.return(rnh(f,R)):u.return(ihw(f))})},n5S=function(f){var R,u;
return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$16290_upliftPromise,2);if(O.nextAddress!=3)return R=fkh([{offlineItemSectionRenderer:{}}]),_.A(O,RFz(f,R),3);u=O.yieldResult;u.onResponseReceivedActions=[dh("REFRESH_DOWNLOADS")];return O.return(u)})},s7N=function(f){var R,u,O,c,h,l,K,q,F,w,m,W,C;
return _.k(function(d){if(d.nextAddress==1)return _.A(d,f.JSC$16290_upliftPromise,2);if(d.nextAddress!=3)return R=f.store.getState(),u=R.entities,O=_.Nq(u),c=_.Lg(u),h=_.DiB(R),l=_.jYD(R),K=_.Jt2(R),q=_.ONt(u),F=_.EP(O),w=_.b$(u),m={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.HX5(O,c,q,h,l,F,w,K),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W=_.Fa("DOWNLOADS",void 0,"Downloads"),_.A(d,uiS(f,m,W),3);C=d.yieldResult;
C.onResponseReceivedActions=[dh("REFRESH_DOWNLOADS")];return d.return(C)})},Vta=function(f){var R,u,O,c,h,l,K,q,F;
return _.k(function(w){if(w.nextAddress==1)return _.A(w,f.JSC$16290_upliftPromise,2);if(w.nextAddress!=3)return R=f.store.getState(),u=R.entities,O=_.Nq(u),c=_.EP(O),h=_.b$(u),l={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Ms7(O),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},K=_.Fa("SMART_DOWNLOADS",void 0,"Smart downloads"),q=z$P(c,h),_.A(w,uiS(f,l,K,q),3);F=w.yieldResult;F.onResponseReceivedActions=[dh("REFRESH_DOWNLOADS")];
return w.return(F)})},ihw=function(f){var R,u;
return _.k(function(O){if(O.nextAddress==1)return _.A(O,Xx(f.JSC$16290_upliftPromise,f.store),2);R=O.yieldResult;u=fkh([fon(R)]);return O.return(RFz(f,u))})},v5a=function(f){var R,u,O,c;
return _.k(function(h){if(h.nextAddress==1)return R={},u=f.store.getState().continuation.continuationCommand,_.jQ(R,_.Tw,u),_.A(h,Xx(f.JSC$16290_upliftPromise,f.store,R,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);O=h.yieldResult;c={};_.jQ(c,_.sGf,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:O}}}],targetId:"browse-feedFEwhat_to_watch"});return h.return({responseContext:{},onResponseReceivedActions:[c]})})},fkh=function(f){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:f}}}}]}}},rnh=function(f,R){var u,O;
return _.k(function(c){var h={contents:Nm(R)};u=h&&h.contents?h:{};_.E("kevlar_modern_downloads_page")&&(u=Object.assign({},_.PJl(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));O={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:u}}}]}};return c.return(RFz(f,O))})},RFz=function(f,R){var u,O;
return _.k(function(c){if(c.nextAddress==1)return _.A(c,f.JSC$16290_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return u=c.yieldResult,_.A(c,ZS(u),3);O=c.yieldResult;return c.return({responseContext:{},contents:R,topbar:O})})},uiS=function(f,R,u,O){var c,h;
return _.k(function(l){if(l.nextAddress==1)return _.A(l,f.JSC$16290_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return c=l.yieldResult,_.A(l,ZS(c),3);h=l.yieldResult;var K=l.return;var q=O;q=q===void 0?"":q;q={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:u}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Fa("SETTINGS",void 0,"Settings"),accessibilityText:_.Fa("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:il("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:q}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:u};
return K.call(l,{responseContext:{},contents:R,topbar:h,header:{pageHeaderRenderer:q}})})};var OCz=function(){this.moduleRegistry={};this.fetchCount=0};
OCz.prototype.isFetching=function(){return this.fetchCount>0};
var P9=function(f,R){f.moduleRegistry[R.toString()]={asyncId:R,isFetching:!1};return f};
OCz.prototype.JSC$16301_loadModules=function(){for(var f=this,R=new Map,u=[],O=_.Z(_.yK.apply(0,arguments)),c=O.next();!c.done;c=O.next()){c=c.value;var h=this.moduleRegistry[c];h?h.resolver?R.set(c,h.resolver):(h.resolver=new _.lj,R.set(c,h.resolver),u.push(h.asyncId),h.isFetching=!0):(h=new _.lj,R.set(c,h),h.resolve(void 0))}u.length&&(this.fetchCount+=1,_.to(_.fk.getMultipleAsync.apply(_.fk,_.yq(u)).then(function(l){for(var K=0;K<u.length;K++){var q=l[K],F=f.moduleRegistry[u[K].toString()];F.isFetching=
!1;F.resolver.resolve(q)}}).catch(function(l){for(var K=_.Z(u),q=K.next();!q.done;q=K.next()){q=q.value;
var F=f.moduleRegistry[q.toString()];F.resolver=void 0;F.isFetching=!1;R.get(q.toString()).reject(l)}}),function(){--f.fetchCount}));
return Promise.all([].concat(_.yq(R.values())).map(function(l){return l.promise}))};_.UX=new _.Vi("MODULE_REGISTRY_TOKEN");var cfw={},XGl=(cfw.rendered={priority:0,callback:function(f){a:{var R=void 0;try{var u;b:{if(_.Rgt()){var O=_.wc7(_.Wf()+"::pom");if(O){var c=new Eq(O);break b}}c=void 0}var h=(u=c)==null?void 0:u.get("role_text");if(!h)break a;R={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:h}]}}}}}}catch(q){}R&&f.injector.resolve(_.rv).resolveCommand(R)}try{var l=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(l){var K=JSON.parse(l);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
K&&f.injector.resolve(_.rv).resolveCommand(K)}}catch(q){}}},cfw);var hFS,ZCh={},lkm=(ZCh.initialized={priority:10,callback:function(){hFS=dI()}},ZCh.rendering={callback:function(f){var R;
return _.k(function(u){if(u.nextAddress==1)return _.A(u,hFS,2);R=u.yieldResult;if(!R.endpoint)throw Error("pj`"+_.Oe.location.href);pS(f,R);_.KG(u)})}},ZCh);var kIm={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.yq(_.E("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(f){var R=f.stack;if(R.includes("chrome://")||R.includes("chrome-extension://")||f.message.includes("chrome-extension://")||R.includes("moz-extension://")||R.includes("local.adguard.org")||R.includes("auctioneer3.50million.club")||R.includes("youtubedownloader")||R.includes("youtube_home_page")||R.includes("is_youtube_video_no_longer_available")||
R.includes("switchScreenSizeHack")||R.includes("yt_main_big_banner.js")||R.includes("YouTubeCenter.js")||R.includes("/mytube.js")||R.includes("JSON.parseWrapper")||R.includes("/inj_js/common.js")||R.includes("firebug-lite")||R.includes(".repl.co/")||R.includes("linkfix")||R.includes("playAfterAd")||f.message.includes("Access is denied for this document")&&R.includes("<anonymous>")||f.fileName==="user-script"||f.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
R.includes("<anonymous>"))return!0;if(R.includes("https://www.youtube.com"))return!1;f=R.split("\n");if(!f.length)return!1;if(f.length<=3&&R.includes("s.onloadeddata"))return!0;R=0;for(var u=_.Z(f),O=u.next();!O.done;O=u.next())O=O.value,(O.includes("https://")||O.includes("http://"))&&R++;return R/f.length>.95},
weight:0},{callback:function(f){return f.message==="Unknown Error"&&f.name.indexOf("NS_")===0},
weight:100},{callback:function(f){if(!_.O0)return!1;var R=f.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||f.message.includes("available to complete this operation"),u=f.stack.includes("webcomponents")&&f.message==="Object doesn't support this action";f=f.message.includes("object that does not implement interface Element");return R||u||f},
weight:0},{callback:function(f){return f.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(f){return f.message==="Operation is not supported"&&(f.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(f){return f.stack.includes("eval code (eval (code:1:1)")||f.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(f){return f.message.includes("Permission denied")&&f.stack.includes("this.domHandler")?!0:f.name.includes("TypeError")&&f.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(f){if(!f.stack)return!1;var R=f.stack.trim().split("\n");R.length&&R[0].endsWith("Error: "+f.message)&&R.shift();R.length&&R[R.length-1].includes("at window.onerror (")&&R.pop();if(!R.length)return!0;if(f.message==="Script error.")return R[0].includes("www.youtube.com")||R.length>=2&&R[0].startsWith("at new")&&R[1].startsWith("at window.onerror");if(f.message==="Unexpected token")return!0;f=_.Z(R);for(R=f.next();!R.done;R=f.next())if(R=R.value,!(R.includes("<anonymous>")||
R.startsWith("load@")||R.startsWith("global code@")||R.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(f){return f.message==="Cannot read property 'experiments'"&&f.stack.includes("/s/player/")},
weight:500},{callback:function(f){return f.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(f){return f.stack.includes("/embed.js")?(f.params&&f.params&&(f.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.E("use_error_suppression"))var f=_.Tf("SUPPRESS_CLIENT_ERRORS",!1);else{if(f=_.lH)f=/Chrome\/(\d+)/.exec(_.Q2()),f=(f?parseFloat(f[1]):NaN)>=66;f=!(f||_.ZY&&_.hM(65)||_.IV&&_.hM(12.1)||sb&&_.hM(79))}return f},
weight:500}]};var Kl9={},qEK=(Kl9.initialized={priority:10,callback:function(f){f.injector.addProvider({provide:VJt,useValue:f.root});f.injector.addProvider({provide:YnF,useValue:A4B});f.injector.addProvider({provide:vYA,useValue:kIm});var R={};f.injector.addProvider((R.provide=isG,R.useFactory=function(u,O){return function(){WsP(u,O)}},R[nW]=[YnF,
vYA],R));f.injector.addProvider({provide:q$,useClass:q$})}},Kl9);var Af2={},akN=(Af2.initialized={priority:3,callback:function(){var f;if(f=lve()){f=f.replace("/",".");var R=_.Qu();R.set("tz",f);R.save();f=!0}else f=!1;f||(f=_.Qu(),f.set("utco",-Math.floor((new Date).getTimezoneOffset())),f.save())}},Af2);var FlK={},wGe=(FlK.initialized={priority:10,callback:function(f){f.injector.resolve(q$).start();f=_.BL();var R=_.Hh("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Hh("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Hh("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Hh("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.qS(_.zIX(),{mainAppWeb:Object.assign({},f,{pageType:R})});_.qS(HdB(),{mainAppWeb:Object.assign({},f,{pageType:R})});
_.qS(Iq2(),{mainAppWeb:f});_.qS(MD2(),{mainAppWeb:f});Exf(function(){_.Ad(Iq2(),"FAILURE");_.Ad(MD2(),"FAILURE")});
PDX();UzB();$Ah()}},FlK);var mtK={},QkX=(mtK.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.JH("dl"),_.TC().processSignal("pcl");else{var f=function(){_.JH("dl");_.TC().processSignal("pcl");window.removeEventListener("load",f)};
window.addEventListener("load",f)}}},mtK);var Wlm={},ECK=(Wlm.rendering={priority:0,callback:function(){var f=_.TC();f.parkOrScheduleJob(function(){f.processSignal("eocs")},10,"eor",5E3)}},Wlm);var tY9=function(){};
_.y(tY9,TK);
tY9.prototype.resolveCommand=function(f,R){var u,O,c,h,l,K,q,F;return _.k(function(w){c=(u=_.t(f,_.J_C))==null?void 0:(O=u.dialog)==null?void 0:O.commentReplyDialogRenderer;if(!c)throw new _.ts("No dialog in createCommentReplyDialogEndpoint");l=(h=R.form)==null?void 0:h.event;if(!l)throw new _.ts("Event not passed in when resolving command");K=_.Z(l.composedPath());for(q=K.next();!q.done;q=K.next())if(F=q.value,F.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||F.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return F.showReplyDialog(c),w.return();
_.KG(w)})};var Az=function(f){this.pageRequestService=f;this.JSC$16316_prefetchCoordinator=P7E()};
_.y(Az,TK);Az.prototype.resolveCommand=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1){u=_.t(f,KNC);if((O=u)==null||!O.taskId)throw Error("qj");c=u.taskId;_.cl(l,2);return _.A(l,_.ZYk(R.pageRequestService,f,{},"").then(function(K){if(!K)throw Error("rj");},function(K){throw Error("sj`"+K);
}),4)}if(l.nextAddress!=2)return G6C(R.JSC$16316_prefetchCoordinator,c),_.Bf(l,0);
h=_.ku(l);g1(R.JSC$16316_prefetchCoordinator,c,h);_.KG(l)})};
Az[nW]=[yk];var ac=function(f){this.innertubeTransportService=f};
_.y(ac,TK);ac.prototype.resolveCommand=function(f){var R=this,u,O;return _.k(function(c){u=_.t(f,ALk);if(u.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||u.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")O=u.boolValue?2:1,_.sd.getInstance().setState(O,!0,!0);return _.A(c,_.e6(R.innertubeTransportService,f),0)})};
ac[nW]=[_.JN];var F9={},Cfe=(F9.addToPlaylistEndpoint=v_(CH),F9.addToToastAction=v_(Cz),F9.adsControlFlowOpportunityReceivedCommand=v_(u8),F9.captionLanguageSelectActionCommand=v_(MV),F9.captionPickerEndpoint=v_(Pu),F9.changeMiniAppPlayStateCommand=v_(yI),F9.changeTimelyActionVisibilityCommand=v_(tc),F9.channelCreationFormEndpoint=v_(wd),F9.clearLocationCommand=v_(tP),F9.clearUrlParamCommand=v_(dd),F9.copyLinkCommand=v_(ov),F9.copyTextEndpoint=v_(hP),F9.createCommentReplyDialogEndpoint=U_B(tY9),F9.createPlaylistServiceEndpoint=
v_(xU),F9.dismissDialogEndpoint=v_(LH),F9.entityUpdateCommand=v_(l8),F9.feedbackEndpoint=v_(qV),F9.getAnswerCommand=v_($PH),F9.getPaymentsClientTokenCommand=v_(Nw),F9.getTranscriptEndpoint=v_(yZ),F9.googlePaymentBillingCommand=v_(Lz),F9.googlePaymentPurchaseManagerCommand=v_(b2),F9.hideEngagementPanelEndpoint=v_(b8),F9.insertRichSectionCommand=v_(QI),F9.listMutationCommand=v_(Wu),F9.logGtmCommand=v_(mU),F9.notifyDropdownOptionSelectedCommand=v_(NV),F9.openAdAllowlistInstructionCommand=v_(_.ON),F9.openOnePickAddVideoModalCommand=
v_(Sc),F9.persistSubscriptionsDisplayPreferencesCommand=v_(YU),F9.pingingEndpoint=v_(cu),F9.playlistEditEndpoint=v_(gd),F9.playlistVotingRefreshPopupCommand=v_(sN),F9.refreshPanelEndpoint=v_(pH),F9.saveImageToDeviceEndpoint=v_(Z4),F9.scrollToSectionEndpoint=U_B(g0i),F9.seekToVideoTimestampCommand=v_(UN),F9.selectCountryCommand=v_(vu),F9.setCookieCommand=v_(i8),F9.setLocalStorageCommand=v_(wX),F9.setPrefStorageEntryCommand=v_(fz),F9.setSettingEndpoint=v_(ac),F9.sfvAudioItemPlaybackCommand=v_(ec),F9.shareImageCommand=
v_(RB),F9.sharingProviderDataCommand=v_(u2),F9.showCaptionLanguageSelectActionCommand=v_(Gb),F9.showDialogCommand=v_(JP),F9.showEngagementPanelEndpoint=v_(zb),F9.showSheetCommand=v_(Tb),F9.showSnackbarCommand=v_(FI),F9.showTransientPlayerScrimOverlayCommand=v_(Bu),F9.submitFormWithValidationFlowCommand=v_(FR),F9.talkToRecsDeselectCommand=v_(mT),F9.talkToRecsNextCommand=v_(QZ),F9.talkToRecsSelectCommand=v_(Wv),F9.talkToRecsUpdateTextCommand=v_(ES),F9.toggleEngagementPanelCommand=v_(Hu),F9.undoFeedbackEndpoint=
v_(av),F9.updateEngagementPanelContentCommand=v_(Iv),F9.updateUrlParamCommand=v_(dX),F9.verifyCommand=v_(wd),F9.webNativeShareCommand=v_(OS),F9.webSubmitFormCommand=v_(nH),F9.ACK_PLAYABLES_3P_DATA_CONSENT=v_(cv),F9.CANCEL_NAVIGATION=v_(XI),F9.COPY_SHARE_URL=v_(hc),F9.MINI_APP_EXIT_DIALOG_SEEN=v_(l2),F9.MINI_APP_OPEN_URL=v_(ZT),F9.REQUEST_MINI_APP_FULLSCREEN=v_(kF),F9.RESUME_NAVIGATION=v_(Kz),F9.SHARE_PLAYABLE_WITH_HIGH_SCORE=v_(qw),F9.TELL_US_WHY=v_(AP),F9);
_.E("web_enable_prefetching_videos_on_home")&&(Cfe.prefetchWatchCommand=v_(Az),Cfe.registerTasksCommand=v_(nx));_.E("enable_share_panel_navigation_logging_fix_on_web")&&(Cfe.shareEntityServiceEndpoint=v_(jc));var F9Y=Object.assign({},Cfe);var yfm={},dte=(yfm.initialized={priority:10,callback:xz7},yfm);var NHw={},Llm=(NHw.initialized={callback:function(f){var R={},u={};izP().install((R.document_disposed={callback:function(){_.E("finalize_all_timelines")?RUn():pv();W5D("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.k77();var O=f.injector.resolve(q$);O.intervalId!==void 0&&(O.intervalId&&_.JA.cancelJob(O.intervalId),O.intervalId=void 0,--O.currentPartitionIndex,O=P2C(O),O>0&&rtY({mainAppWeb:_.BL(),survivalSli:{partitionMinute:O,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));SdH(Ud);ei!=null&&
ei.flush();Oy&&Oy.snapshotAndFlush();O=_.Z(klI.values());for(var c=O.next();!c.done;c=O.next())c.value.snapshotAndFlush()}},R),(u.flush_logs={callback:function(){_.zL()}},u))}},NHw);var bCa={},pGe=(bCa.rendered={priority:0,callback:function(){var f=new k_f;f.increment("STARTED");if(_.Tf("LOGGED_IN")&&_.Tf("SERVER_VERSION")!=="test"&&_.Tf("SERVER_VERSION")!=="dev"&&!nt5()&&!sx7()){f.increment("EXECUTING");var R=document.createElement("iframe");R.style.display="none";_.E_t(R,2,_.EO("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(R);f.increment("DONE")}}},bCa);var jk5={},Dtw=(jk5.rendered={callback:function(){P7E().resume()}},jk5);var JfX={acknowledgeChannelTouStrikeCommand:tN(uo),addToPlaylistServiceEndpoint:tN(h6),addToPlaylistEndpoint:tN(h6),addUpcomingEventReminderEndpoint:tN(Nh),browseEndpoint:tN(Wdf),channelCreationFormEndpoint:tN(VZ),channelCreationServiceEndpoint:tN(YF),claimLegacyYoutubeChannelEndpoint:tN(Mw),clearSearchHistoryEndpoint:tN(mW),clearWatchHistoryEndpoint:tN(QN),commerceActionCommand:Cn(px),createBackstagePostEndpoint:tN(DT),createBroadcastCommand:tN(LD),createCommentEndpoint:tN($F),createCommentReplyEndpoint:tN(SJ),
createLiveChatPollEndpoint:tN(bo),createPlaylistServiceEndpoint:tN(ZG),crossAccountChannelTransferEndpoint:tN(ta),deleteLiveChatMessageCommand:tN(pD),deletePlaylistEndpoint:tN(l6),deleteVideoEndpoint:tN(d1),dismissalEndpoint:tN(Ow),feedbackEndpoint:tN(c4),flagEndpoint:tN(FB),getAccountSwitcherEndpoint:tN(Ew),verifyCommand:tN(jJ),getAccountsListInnertubeEndpoint:tN(yN),getCommentsFromInboxCommand:tN(x1),getDownloadActionCommand:tN(Y1),getFlowCommand:Cn(wE),getKidsBlocklistPickerCommand:tN(w1),getNotificationMenuEndpoint:tN(C7F),
getPaymentInstrumentsParamsCommand:tN(HH),getPaymentsClientTokenCommand:Cn(px),getPdgBuyFlowCommand:tN(cH),getReportFormEndpoint:tN(mE),getSearchInVideoCommand:tN(E9),getAnswerCommand:tN(WH),getSurveyCommand:tN(ya),getTranscriptEndpoint:tN(Lx),getPostVideoPreviewEndpoint:tN(zj),decorateMessageEndpoint:tN(Jc),likeEndpoint:tN(vv),liveChatActionEndpoint:tN(z7),liveChatEndpoint:tN(Ja),liveChatItemContextMenuEndpoint:tN(jq),liveChatPurchaseMessageEndpoint:tN(T7),liveChatReplayEndpoint:tN(DQ),manageLiveChatUserEndpoint:tN(IZ),
metadataUpdateCommand:tN(B4),moderateLiveChatEndpoint:tN(Mh),modifyChannelNotificationPreferenceEndpoint:tN(sw),notificationOptOutEndpoint:tN(nD),openSuperStickerBuyFlowCommand:tN(H4),performCommentActionEndpoint:tN(Bv),playlistEditEndpoint:tN(Kx),playlistEditorEndpoint:tN(kW),profileCardCommand:tN(dE),recordNotificationInteractionsEndpoint:tN(VN),reelWatchEndpoint:tN(qb),refreshPanelEndpoint:tN(io),removeUpcomingEventReminderEndpoint:tN(P4),resolveLocationCommand:tN(G7),revealBusinessEmailCommand:tN(Pv),
searchEndpoint:tN(_.ypI),sendLiveChatMessageEndpoint:tN(Uw),sendLiveChatVoteEndpoint:tN(eq),setSettingEndpoint:tN(i2),shareEntityServiceEndpoint:Cn(RZ),sharingProviderDataCommand:tN(Cx),showEngagementPanelEndpoint:tN(rE),showMoreDrawerCommand:tN(Re),showSheetCommand:tN(u6),showDialogCommand:tN(fx),subscribeEndpoint:tN(rX),transcriptSubmitCaptionCorrectionCommand:tN(Nb),undoFeedbackEndpoint:tN(aZ),unsubscribeEndpoint:tN(fD),updateBackstagePostEndpoint:tN(Hv),updateCommentEndpoint:tN(sS),updateCommentReplyEndpoint:tN(gX),
updateCommentsSettingsEndpoint:tN(nz),updateCreatorChannelInnertubeCommand:tN(eJ),updateKidsBlacklistEndpoint:tN(Qa),updateEngagementPanelContentCommand:tN(O9),updatePdgFeatureEnablementCommand:tN(XB),updatedMetadataEndpoint:tN(oZ),validateChannelHandleCommand:tN(Gj),updateChannelPageSettingsEndpoint:tN(US),verifyAgeEndpoint:tN(Fp),watchEndpoint:Cn(lU),whitelistEditEndpoint:tN(b6),ypcCancelRecurrenceEndpoint:tN(jK),ypcCompleteTransactionEndpoint:tN(DG),ypcFixInstrumentEndpoint:tN(zv),ypcGetCartEndpoint:tN(J6),
ypcGetOffersEndpoint:tN(Tv),ypcHandleTransactionEndpoint:Cn(Ie),ypcLogWalletAnalyticDataEndpoint:tN(Mb),ypcOffersEndpoint:tN(PH),ypcPauseSubscriptionCommand:tN(U9),ypcRedeemCodeEndpoint:tN(eK),ypcResumeSubscriptionCommand:tN(Gv),ypcUpdateFopEndpoint:tN(zv)},wK={},zF9=(wK.GET_ACCOUNT_MENU=tN(CD),wK.GET_NOTIFICATIONS_MENU=tN(tOG),wK.GET_NOTIFICATIONS_INBOX=tN(Sq),wK.GET_UNSEEN_NOTIFICATION_COUNT=tN(gE),wK.GET_USER_MENTION_SUGGESTIONS=tN(Tj),wK.LOAD_GUIDE=tN(EYk),wK.SUBMIT_FEEDBACK=tN(Aa),wK),mK={},
THe=(mK.CONTINUATION_REQUEST_TYPE_BROWSE=tN(IB),mK.CONTINUATION_REQUEST_TYPE_SEARCH=tN(t6),mK.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=tN(Kk),mK.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=tN(W4),mK.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=tN(xF),mK.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=tN(oB),mK.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=tN(ae),mK.CONTINUATION_REQUEST_TYPE_GET_PANEL=tN(v4),mK),HCm={player:Cn(lU),watchNext:tN(kd)},Ikm={player:Cn(lU),reelItemWatch:tN(qb),reelWatchSequence:tN(A6)},
MYz={watchEndpoint:Cn(q7)},Pfm={commandEndpointMap:JfX,signalEndpointMap:zF9,continuationEndpointMap:THe,watchEndpointMap:HCm,reelWatchEndpointMap:Ikm,streamingEndpointMap:MYz};var Utz,eFl,GIw,BH5={disableAllTransitions:(eFl=(Utz=window).matchMedia)==null?void 0:(GIw=eFl.call(Utz,"(prefers-reduced-motion: reduce)"))==null?void 0:GIw.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var oCm=new _.Vi("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.Q7=new _.Vi("VIEW_TRANSITION_MANAGER_TOKEN");var xtz=function(f){this.config=f;this.transitionTasksMap=new Map;f=_.Z(f.transitionConfigs);for(var R=f.next();!R.done;R=f.next())R=_.Z(R.value).next().value,this.transitionTasksMap.set(R,[])};
xtz[nW]=[oCm];var Sjt={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 g42=["videoPrimaryInfoRenderer","title"],sQl=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var SEh;SEh=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.$tz=_.nf(function(f){f=_.sU(f,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var R=f.data,u=f.playlistData,O=f.expanded,c=f.onExpandClick,h=f.isReadyToResume,l=function(){var w;return!((w=u())==null||!w.contents)},K=function(){var w=u();
return w&&w.totalVideos&&w.currentIndex!==void 0?w.currentIndex+1+" / "+w.totalVideos:""};
f=_.Ff(function(){_.WS(_.vh().resolve(_.MS));return!1});
var q=_.Ff(function(){l()&&c&&c()}),F={};
return _.a("ytd-miniplayer-info-bar",{class:_.KL("ytdMiniplayerInfoBarHost",(F.ytdMiniplayerInfoBarHasPlaylistData=l,F)),"on:click":q},_.a("div",{class:"ytdMiniplayerInfoBarContent"},_.a("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":f},_.a(_.YO,{text:function(){var w=R();var m=u();if(m==null?0:m.contents){var W;w=(W=_.riq(m))==null?void 0:W.title}else w=w==null?void 0:w.miniplayerTitle;return Vee(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.a("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.a(_.Q,{cond:h,then:function(){return _.a(n1G,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:SEh})}}),_.a("h1",null,_.a(_.YO,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var w=R();var m=u();w=h()?{simpleText:_.Fa("CONTINUE_WATCHING",void 0,"Continue watching")}:(m==null?0:m.contents)?m.titleText:w==null?void 0:w.miniplayerSubtitle;return Vee(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.a(_.Q,{cond:function(){return!!K()&&!h()},
then:function(){return _.a("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.a("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.a("span",null,K))}}))),_.a(_.Q,{cond:l,
then:function(){return _.a("div",{class:"ytdMiniplayerInfoBarExpand"},_.a(iA,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(w){c&&(c(),w.stopPropagation())}}},
iconName:function(){return O()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"se");var gC9;gC9=_.nf(function(f){return _.a("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.a(iA,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:f.onTap}},
iconName:"yt-icons:close"}))},"te");
_.skh=_.nf(function(f){f=_.sU(f,{playabilityStatus:void 0,isDisabled:!1});var R=f.size,u=f.playabilityStatus,O=f.isDisabled,c=_.sW();f=_.Z(_.qK(void 0,void 0,"bJr0Se"));var h=f.next().value,l=f.next().value;f=_.JS(_.am);var K=!1,q=function(){return R().height<=0};
_.pc(function(){var W=R(),C=q(),d=h();d&&!C&&d.setInternalSize(W.width,W.height)});
_.NW(function(){var W,C,d;return _.k(function(p){if(p.nextAddress==1){W=_.vh().resolve(_.MS);C=W.getPlayerElement();if(!W.isMiniplayerActive()||!C||!c.value)return p.return();C.appendTo(c.value);return _.A(p,C.getPlayerPromise(),2)}d=p.yieldResult;d.setSizeStyle(!1,!0);l(d);_.KG(p)})});
_.jN(function(){F()});
_.pc(function(){var W=h();if(W)if(O()){var C=W.getPlayerState();(K=C===-1||C===1||C===3)&&W.pauseVideo()}else F()});
var F=function(){if(K){K=!1;var W;(W=h())==null||W.playVideo()}},w=_.Ff(function(){_.WS(_.vh().resolve(_.MS))}),m={};
return _.a("ytd-miniplayer-player-container",{class:_.KL("ytdMiniplayerPlayerContainerHost",(m.ytdMiniplayerPlayerContainerHidden=q,m.ytdMiniplayerPlayerContainerHostShortsPip=f,m)),style:_.Qm({width:function(){return R().width+"px"},
height:function(){return R().height+"px"}})},_.a("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:c}),_.a(_.Q,{cond:function(){return!!u()&&!_.sHn(u())},
then:function(){return _.a(UQt,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var W;return((W=u())==null?void 0:W.errorScreen)||null},
status:function(){var W;return((W=u())==null?void 0:W.status)||null}})}}),_.a(_.Q,{cond:O,
then:function(){return _.a("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":w},_.a(gC9,{onTap:function(){_.vh().resolve(_.MS).close()}}))}}))},"ue");_.nCh=_.nf(function(f){var R=f.toastData;var u=_.sW();f=_.Z(_.m8(function(){return!!R()}));
var O=f.next().value,c=f.next().value;f=_.Z(_.qK(!1,void 0,"xkrBze"));var h=f.next().value,l=f.next().value,K=function(){var w;return _.$Z((w=R())==null?void 0:w.data.title)};
_.bt(function(){_.Mj.requestAvailability();R()&&c(!1)});
var q,F;_.pc(function(){O()&&(_.ul(u.value,"iron-announce",{text:R().label+" "+K()}),q&&_.JA.cancelJob(q),q=_.JA.addLowPriorityJob(function(){l(!0)},2500))});
_.pc(function(){h()&&(F&&_.JA.cancelJob(F),F=_.JA.addLowPriorityJob(function(){c(!1);l(!1)},300))});
f={};return _.a("ytd-miniplayer-toast",{el:u,class:_.KL("ytdMiniplayerToastHost",(f.ytdMiniplayerToastOpening=function(){return O()},f.ytdMiniplayerToastClosing=function(){return h()},f))},_.a(_.Q,{cond:function(){var w;
return(w=R())==null?void 0:w.data},
then:function(w){return _.a(Rsf,{className:"ytdMiniplayerToastThumbnail",data:w,width:78})}}),_.a("div",{class:"ytdMiniplayerToastInfo"},_.a("div",{class:"ytdMiniplayerToastLabel"},function(){var w;
return(w=R())==null?void 0:w.label}),_.a("div",{class:"ytdMiniplayerToastTitle"},K)))},"ve");var XDX;var kcn=new Set,ltq=null;var q30=null;var YES=_.nf(function(f){var R=f.progressState;var u=f.multiMarkersPlayerBarRenderer;var O=f.progressBarWidth;var c=function(){return wDX(u())},h=function(){return WRB(R())},l=function(){return O()*(R().playedTime/R().videoDuration)};
return _.a("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.a(_.EC,{each:c},function(K,q){return _.a(VYK,{modifiedProps:h,chapters:c,index:q,playedProgressWidth:l,backgroundGradientPosition:function(){var F=h(),w=c(),m=q(),W=l();return(F.playedTime-H9(_.t(w[m],Ta)))/F.playedTime*W}})}))},"we"),VYK=_.nf(function(f){var R=f.modifiedProps;
var u=f.chapters;var O=f.index;var c=f.playedProgressWidth;var h=f.backgroundGradientPosition;f={};f=_.KL("ytChapteredProgressBarChapteredPlayerBarChapter",(f.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return l().isScrubbing},f.ytChapteredProgressBarHoveredMacroMarker=function(){return l().scrubberHovering},f.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return l().videoPosition==="seen"},f));
var l=function(){return Egq(R(),u(),O())},K=function(){var q=R();
var F=u(),w=O();if(Egq(q,F,w).videoPosition!=="active")q=0;else{var m=H9(_.t(F[w],Ta));q=(q.playedTime-m)/((H9(_.t(F[w+1],Ta))||q.videoDuration)-m)}return q};
return _.a("div",{class:f,style:_.Qm({width:function(){var q=R(),F=u(),w=O(),m=_.t(F[w],Ta);F=_.t(F[w+1],Ta);return(F?H9(F)-H9(m):q.videoDuration-H9(m))/q.videoDuration*100+"%"},
"background-color":function(){a:{var q=l();switch(q.videoPosition){case "pending":q=q.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":q=q.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:q=""}}return q},
"background-size":function(){return(tB7(l())?c():"")+"px"},
"background-position-x":function(){return(tB7(l())?h():"")+"px"}})},_.a("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var q=R(),F=u(),w=O();if(Egq(q,F,w).videoPosition==="seen")var m=0;else m=H9(_.t(F[w],Ta)),F=H9(_.t(F[w+1],Ta))||q.videoDuration,q=q.videoDuration*q.percentLoaded,m=F<=q?1:m>=q?0:(q-m)/(F-m);return"width: "+m*100+"%"}}),_.a("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Qm({width:function(){return K()*100+"%"},
"background-size":function(){return(tB7(l(),K())?c():"")+"px"},
"background-position-x":function(){return(tB7(l(),K())?h():"")+"px"}})}))},"xe");var vC2=function(f,R){R=R===void 0?p2A:R;var u,O=[],c,h=!1;return function(){var l=_.yK.apply(0,arguments);if(h&&u===this&&R(l,O))return c;c=f.apply(this,l);h=!0;u=this;O=l;return c}}(function(f){var R=f.heatMarkers,u=f.minHeightDp===void 0?0:f.minHeightDp,O=f.maxHeightDp===void 0?60:f.maxHeightDp;
var c=c===void 0?!1:c;var h=1E3/R.length;f=[];f.push({x:0,y:100});for(var l=0;l<R.length;l++){var K=void 0,q=((K=_.t(R[l],k9f))==null?void 0:K.heatMarkerIntensityScoreNormalized)||0;K=(l+.5)*h;q=100-_.Jd(q*100,u/321*100,O/321*100);l!==0||c||f.push({x:0,y:q});f.push({x:K,y:q});l===R.length-1&&f.push({x:1E3,y:q})}f.push({x:1E3,y:100});R="";for(u=0;u<f.length;u++)c=f[u],u===0?c="M "+c.x.toFixed(1)+","+c.y.toFixed(1):(O=$6n(f[u-1],f[u-2],c),h=$6n(c,f[u-1],f[u+1],!0),c=" C "+(O.x.toFixed(1)+","+O.y.toFixed(1)+
" "+h.x.toFixed(1)+","+h.y.toFixed(1)+" "+c.x.toFixed(1)+","+c.y.toFixed(1))),R+=c;return R});var iCN=_.nf(function(f){var R=f.progressBarProps;var u=f.config;var O={};f=_.KL("ytHeatSeekerHost",(O.ytHeatSeekerHighContrast=f.highContrast,O));var c=function(){return ft0(u().chapterData)};
return _.a("yt-progress-bar-heatseeker",{class:f,style:function(){var h;return"height: 320px; display: "+(R().isDragging&&((h=c())==null?0:h.heatMarkers)?"block":"none")}},_.a(_.Q,{cond:c,
then:function(h){return _.a(_.Q,{cond:function(){return h().heatMarkers},
then:function(){return _.a("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.a("path",{d:function(){return vC2(h())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"ye");var rfK=_.nf(function(f){var R=f.progressBarProps;var u=f.config;f={};f=_.KL("ytProgressBarLineProgressBarLine",(f.ytProgressBarLineProgressBarLineRounded=function(){return u().rounded},f.ytProgressBarLineProgressBarLineBottomInset=function(){return u().position===2},f));
return _.a("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.a("div",{class:f},_.a("div",{class:"ytProgressBarLineProgressBarBackground"}),_.a("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+R().percentLoaded*100+"%"}}),_.a("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var O=R();return"width: "+(O.videoDuration?_.Jd(O.hoveredTime/O.videoDuration,0,1):0)*100+"%"}}),_.a("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+v4B(R())*100+"%"}})))},"ze");
rfK.idomCompat=!0;var feX=_.nf(function(f){var R=f.progressBarProps;var u=f.playheadData;var O=f.interpolateDotPosition;var c=f.hidePlayhead;f={};var h=_.KL("ytProgressBarPlayheadProgressBarPlayheadDot",(f.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return R().isDragging},f.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!R().isDragging&&c()},f));
return _.a("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Qm({"margin-left":function(){return ibt(R())*100+"%"},
transform:function(){return"translateX(-"+(O()?ibt(R())*12:6)+"px)"}})},_.a(_.Q,{cond:function(){var l;
return(l=_.g_(u)())==null?void 0:l.playheadImage},
then:function(l){var K={};return _.a("div",{class:_.KL("ytProgressBarPlayheadProgressBarPlayheadCustom",(K.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return R().isDragging},K.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!R().isDragging&&c()},K)),
style:_.Qm({"transform-origin":function(){return(O()?ibt(R())*20:10)+"px center"}})},_.a(_.gR,{data:l,
alt:"","aria-hidden":"true"}))},
else:function(){return _.a("div",{class:h,style:_.Qm({"transform-origin":function(){return(O()?ibt(R())*12:6)+"px center"}})})}}))},"Ae");
feX.idomCompat=!0;var Eo=function(f,R,u,O,c,h){this.getProgressBarRect=f;this.updateProgressBarRect=R;this.getFilmstripYPosition=u;this.setFineScrubbingDraggedTime=O;this.updateFilmStripDraggedYDistance=c;this.resetFilmStripYOffset=h;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.vJ(this.onThrottledSeek,100,this)},Rzh=function(f,R,u){return function(O){f.handleClick(O,R(),u())}},c9z=function(f,R){return function(u){u5m(f,
u,Omm(u),R())}},Xtl=function(f,R){return function(u){u5m(f,u,{x:u.clientX,
y:u.clientY},R())}},Zm5=function(f,R,u){return function(O){var c=R(),h=u();
hzS(f,O,Omm(O),c,h,!0);if(h.onTouchMove)h.onTouchMove(c)}},kXt=function(f,R,u){return function(O){le2(f,O,R(),u())}},K2l=function(f,R){return function(){f.handleMouseLeave(R())}},qh2=function(f,R,u){return function(){var O=R(),c=u();
tz(f,O,c);if(c.onTouchEnd)c.onTouchEnd(O)}},A92=function(f,R,u){return function(){var O=R(),c=u();
tz(f,O,c);if(c.onTouchEnd)c.onTouchEnd(O)}},ae5=function(f,R,u){return function(){tz(f,R(),u())}},F2t=function(f){return function(R){if(R.keyCode===39||R.keyCode===38){var u,O;
(u=f())==null||(O=u.playerApi)==null||O.seekBy(5,void 0,void 0,72)}else if(R.keyCode===37||R.keyCode===40){var c,h;(c=f())==null||(h=c.playerApi)==null||h.seekBy(-5,void 0,void 0,71)}}},wtX=function(f,R,u){return function(O){!u().disableScrubbing&&f.startPosition&&le2(f,O,R(),u())}},mal=function(f,R,u){return function(){if(!u().disableScrubbing)if(f.startPosition){var O=R(),c=u();
tz(f,R(),u());if(c.onTouchEnd)c.onTouchEnd(O)}else R().setState({isDragging:!1})}},Omm=function(f){f=f.touches[0];
return{x:f.clientX,y:f.clientY}},le2=function(f,R,u,O){if(R.buttons!==1){if(R.movementX||R.movementY)R.preventDefault(),R.stopPropagation(),f=Qwa(f,u,R.clientX),u.setState({isHovering:!0,
hoveredTime:f*u.videoDuration})}else W2h(u),hzS(f,R,{x:R.clientX,y:R.clientY},u,O,!1)};
Eo.prototype.handleMouseLeave=function(f){W2h(f)};
var W2h=function(f){f.isHovering&&f.setState({isHovering:!1,hoveredTime:0})},u5m=function(f,R,u,O){f.startPosition||(f.startPosition=u,f.updateProgressBarRect(),f.controlsWereVisibleBeforeDragging=O.controlsVisible,R.stopPropagation(),_.E("medium_progress_bar_modification")||R.preventDefault())},hzS=function(f,R,u,O,c,h){if(f.startPosition)if(h&&c.isInlinePlayback&&f.startPosition&&!f.hasDraggedTheMinimumDistance&&Math.abs(u.y-f.startPosition.y)>Math.abs(u.x-f.startPosition.x))tz(f,O,c);
else if(R.preventDefault(),R.stopPropagation(),O.videoDuration&&(f.startPosition&&!f.hasDraggedTheMinimumDistance&&(f.hasDraggedTheMinimumDistance=Math.abs(u.x-f.startPosition.x)>=1),c.enableFineScrubbing&&(f.startPosition&&(f.isDraggedForFineScrubbing=-(u.y-f.startPosition.y)>=60),!f.startPosition||u.y>=f.startPosition.y||(O.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:CGq(O.draggedTime,O,c.chapterData)}),f.setFineScrubbingDraggedTime(O.draggedTime),f.updateFilmStripDraggedYDistance(f.startPosition.y,
u.y,O))),f.hasDraggedTheMinimumDistance)){R=Qwa(f,O,u.x);if(f.isDraggedForFineScrubbing){var l;(l=O.playerApi)==null||l.pauseVideo();O.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:O.draggedTime,filmStripXDistance:CGq(R*O.videoDuration,O,c.chapterData)})}c.enableFineScrubbing&&(!c.enableFineScrubbing||f.getFilmstripYPosition(O)<68)||O.setState({draggedTime:R*O.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:f.controlsWereVisibleBeforeDragging});var K;(K=
c.cancelAutohideControlsFn)==null||K.call(c)}},tz=function(f,R,u){var O=u.enableFineScrubbing&&R.fineScrubbingActiveState!=="off";
if(R.isDragging||O){O={isDragging:!1,playedTime:R.draggedTime,controlsVisible:f.controlsWereVisibleBeforeDragging};u.enableFineScrubbing&&R.fineScrubbingActiveState!=="on"&&(f.resetFilmStripYOffset(),O.fineScrubbingActiveState="off");var c=c===void 0?q30:c;var h=_.z4(0);h&&c&&_.$E(h,c,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(R.playedTime*1E3),endMediaTimeMs:Math.round(R.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});R.setState(O);
f.seekThrottle.fire(R.draggedTime,R,7);_.E("mweb_new_progress_bar_play_on_seek")&&f.resumeVideo(R);u.unmuteOnSeek&&(u=R.playerApi,R.volumeMuted&&(u==null||u.unMute()))}else R.setState({controlsVisible:!R.controlsVisible}),(h=u.triggerAutohideControlsAfterDelayFn)==null||h.call(u);f.startPosition=null;f.hasDraggedTheMinimumDistance=!1;f.isDraggedForFineScrubbing=!1;f.controlsWereVisibleBeforeDragging=!1};
Eo.prototype.handleClick=function(f,R,u){this.updateProgressBarRect();f.stopPropagation();f=Qwa(this,R,f.clientX)*R.videoDuration;R.setState({playedTime:f});if(R.playerState!==2){var O;(O=u.triggerAutohideControlsAfterDelayFn)==null||O.call(u)}this.seekThrottle.fire(f,R,7)};
var Qwa=function(f,R,u){f=f.getProgressBarRect(R);return _.Jd(0,(u-f.left)/f.width,1)};
Eo.prototype.resumeVideo=function(f){if(f.draggedTime<f.videoDuration){var R;(R=f.playerApi)==null||R.playVideo()}};
Eo.prototype.onThrottledSeek=function(f,R,u){if(R=R.playerApi){var O;if((O=R.getVideoData())==null?0:O.isLive)O=this.getProgressState(R),f+=(O==null?void 0:O.seekableStart)||0;R.seekTo(f,void 0,void 0,void 0,u)}};
Eo.prototype.getProgressState=function(f){var R=f==null?void 0:f.getPresentingPlayerType();return f==null?void 0:f.getProgressState(R)};var CKl,tle,y9m,NNh,EmK,L2z,bm5,ptm,jwS;CKl=_.nf(function(f){var R=f.progressBarProps;var u=f.config;var O=f.progressBarWidthPx;var c=f.chapterData;var h=bon(R,function(){return u().isShortsPage}),l=function(){return!R().isHovering&&!u().isShortsPage};
f={};var K=_.KL("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(f.ytPlayerStoryboardHostMwebShorts=function(){return u().isShortsPage&&!1},f));
return _.a("yt-player-storyboard",null,_.a(_.Q,{cond:function(){return R().isDragging||R().isHovering},
then:function(){return _.a(_.Q,{cond:h,then:function(q){return _.a(_.Q,{cond:l,then:function(){return _.a("div",{class:K,"aria-hidden":"true"},_.a(EmK,{props:R,config:u,isBigboard:!0,chapterData:c}))},
else:function(){return _.a(tle,{props:R,frame:q,config:u,progressBarWidthPx:O,chapterData:c})}})}})}}))},"Be");
_.dam=_.nf(function(f){var R=f.progressBarProps;var u=bon(R,f.isShortsPage);return _.a("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.a(_.Q,{cond:function(){return R().isDragging||R().isHovering},
then:function(){return _.a(_.Q,{cond:u,then:function(O){return _.a(y9m,{frame:O,props:R,isBigboard:!0})}})}}))},"Ce");
tle=_.nf(function(f){var R=f.props;var u=f.frame;var O=f.config;var c=f.progressBarWidthPx;f=f.chapterData;var h={};h=_.KL("ytPlayerStoryboardHost",(h.ytPlayerStoryboardHostMwebShorts=function(){return O().isShortsPage&&!1},h.ytPlayerStoryboardHostInlinePlayer=function(){return O().isInlinePlayer},h.ytPlayerStoryboardHostFadeIn=function(){return O().useFadeInAnimation},h));
return _.a("div",{class:h,"aria-hidden":"true",style:function(){var l=R(),K=ybe(u()),q=c();l=dnP(l)/l.videoDuration;var F=q*l,w=K/2+6;K=q-(K/2+6);return"left: "+(F<=w?w/q*100:F>=K?K/q*100:l*100)+"%"}},_.a(_.Q,{cond:function(){var l=R();
return!(O().isShortsPage&&l.videoDuration<15)},
then:function(){return _.a(y9m,{frame:u,props:R,isBigboard:!1})}}),_.a(EmK,{props:R,
config:O,isBigboard:!1,chapterData:f}))},"De");
y9m=_.nf(function(f){var R=f.frame;var u=f.props;var O=f.isBigboard;var c=function(){var K,q;return(q=(K=u().playerApi)==null?void 0:K.getVideoContentRect())!=null?q:{width:0,height:0}},h=function(){return ybe(R())},l=function(){var K=R();
return K?K.height/K.rows:0};
f={};f=_.KL((f.ytPlayerStoryboardBigboardImageWrapper=O,f.ytPlayerStoryboardStoryboardImageWrapper=function(){return!O()},f));
return _.a("div",{class:f,style:function(){return"width: "+(O()?c().width:h())+"px; height: "+(O()?c().height:l())+"px;"}},_.a(NNh,{frame:R,
storyboardWidth:h,storyboardHeight:l,storyboardScale:function(){return(O()?c().width:h())/h()}}))},"Ee");
NNh=_.nf(function(f){var R=f.frame;var u=f.storyboardWidth;var O=f.storyboardHeight;var c=f.storyboardScale;var h=function(){var l=R().row,K=R().column,q=u(),F=O(),w=c();return{left:-K*q*w,top:-l*F*w}};
return _.a("img",{src:function(){return R().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+h().left+"px; top: "+h().top+"px; width: "+R().width*c()+"px; height: "+R().height*c()+"px;"}})},"Fe");
EmK=_.nf(function(f){var R=f.props;var u=f.config;var O=f.isBigboard;var c=f.chapterData;f={};f=_.KL("ytPlayerStoryboardMetadata",(f.ytPlayerStoryboardMetadataBigboard=O,f));return _.a("div",{class:f},_.a(_.Q,{cond:O,then:function(){return _.a(_.RS,null,_.a(L2z,{props:R,config:u}),_.a(_.Q,{cond:function(){a:{var h=R();var l=u(),K=c(),q;if((l==null?0:l.activeChapter)&&((q=_.t(l==null?void 0:l.activeChapter,Ta))==null?0:q.title))h=!0;else{l=_.Z(R6B(K));for(l=l.next();!l.done;l=l.next()){h=(l=_.t(l.value,
qdk))&&N6e(h,l);break a}h=!1}}return h},
then:function(){return _.a(bm5,{props:R,config:u,isBigboard:!0,chapterData:c})}}))},
else:function(){return _.a(_.RS,null,_.a(bm5,{props:R,config:u,isBigboard:!0,chapterData:c}),_.a(L2z,{props:R,config:u}))}}))},"Ge");
L2z=_.nf(function(f){var R=f.props;var u=f.config;f={};f=_.KL("ytPlayerStoryboardTimestamp",(f.ytPlayerStoryboardTimestampShorts=function(){return u().isShortsPage},f.ytPlayerStoryboardTimestampIsHovering=function(){return R().isHovering||u().isShortsPage&&!0},f));
return _.a("div",{class:f},_.a(_.RS,null,function(){return _.LR5(dnP(R()))}))},"He");
bm5=_.nf(function(f){var R=f.props;var u=f.config;var O=f.isBigboard;var c=f.chapterData;f={};O=_.KL("ytPlayerStoryboardTitle",(f.ytPlayerStoryboardTitleBigboard=O,f));return _.a("div",{class:O},_.a(_.Q,{cond:function(){return!u().isShortsPage},
then:function(){return _.a(ptm,{props:R,activeChapter:function(){return u().activeChapter},
chapterData:c})}}))},"Ie");
ptm=_.nf(function(f){var R=f.props;var u=f.activeChapter;var O=f.chapterData;return _.a(_.RS,null,_.a(_.EC,{each:function(){return R6B(O())},
keyBy:"INDEX"},function(c){return _.a(_.RS,null,_.a(_.Q,{cond:function(){return _.t(c(),qdk)&&N6e(R(),_.t(c(),qdk))},
then:function(){return _.a(jwS,{timedMarker:function(){return _.t(c(),qdk)}})}}))}),_.a(_.Q,{cond:function(){var c;
return u()&&((c=_.t(u(),Ta))==null?void 0:c.title)},
then:function(c){return _.a(_.YO,{text:c,noPreWrap:!0})}}))},"Je");
jwS=_.nf(function(f){var R=f.timedMarker;return _.a(_.RS,null,_.a("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.a(_.WM,{icon:function(){return R().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.a(_.YO,{text:function(){return R().label},
noPreWrap:!0}))},"Ke");_.DaN=_.nf(function(f){var R=f.progressBarProps;var u=f.playheadData;var O=f.config;f=_.sW();var c=_.sW(),h=_.sW(),l=_.Z(_.qK({width:0,left:0},void 0,"NcXsUb")),K=l.next().value,q=l.next().value,F=function(){h.value&&q(h.value.getBoundingClientRect())},w=function(){K().width<=0&&F();
return K()};
ic("resize",F);var m=new Eo(w,function(){},function(){return 0},function(){},function(){},function(){}),W=function(){return R()};
l=_.Z(_.qK(!1,void 0,"ZsF6Xc"));var C=l.next().value,d=l.next().value;l=_.Ff(function(){d(!0);O().position===2?setTimeout(function(){F()},100):F()});
var p=_.Ff(function(){d(!1);K2l(m,W)()}),J=_.Ff(function(Gq){O().doSeekOnClick&&Rzh(m,W,O)(Gq);
return!1}),M=_.Ff(function(Gq){c9z(m,W)(Gq);
return!1}),P=_.Ff(function(Gq){Xtl(m,W)(Gq);
return!1}),g=_.Ff(function(Gq){Zm5(m,W,O)(Gq);
return!1}),x=_.Ff(function(Gq){kXt(m,W,O)(Gq);
return!1}),fh=_.Ff(function(){qh2(m,W,O)();
return!1}),V=_.Ff(function(){A92(m,W,O)();
return!1}),ZD=_.Ff(function(){ae5(m,W,O)();
return!1}),mP=_.Ff(function(Gq){F2t(W)(Gq);
return!1});
ic("mousemove",wtX(m,W,O));ic("mouseup",mal(m,W,O));_.bt(function(){AbP(c.value);d(!1);F();mal(m,W,O)()});
var NX={};NX=_.KL("ytPlayerProgressBarHost",function(){return O().className},(NX.ytPlayerProgressBarHostReadOnly=function(){return O().disableScrubbing},NX.ytPlayerProgressBarHostHidden=function(){return O().hideProgressBar&&!C()},NX.ytPlayerProgressBarHostLowerPlayer=function(){return O().position===0},NX.ytPlayerProgressBarHostBottomEdge=function(){return O().position===1},NX.ytPlayerProgressBarHostBottomInset=function(){return O().position===2},NX.ytPlayerProgressBarHostCustom=function(){return O().position===
3},NX));
var jt={},Jn=_.KL("ytPlayerProgressBarBackground",(jt.ytPlayerProgressBarBackgroundHide=function(){return O().position===2&&!C()&&!R().isDragging},jt));
jt={};jt=_.KL("ytPlayerProgressBarDragContainer",(jt.ytPlayerProgressBarDragContainerBottomEdge=function(){return O().position===1},jt));
var zq={};zq=_.KL("ytPlayerProgressBarProgressBar",(zq.ytPlayerProgressBarProgressBarInset=function(){return O().position===2},zq.ytPlayerProgressBarProgressBarInsetMinimized=function(){return O().position===2&&!C()&&!R().isDragging},zq));
var St=function(){return Math.floor(v4B(R())*100)};
return _.a("yt-progress-bar",{el:f,class:NX},_.a(_.Q,{cond:function(){return O().position===2},
then:function(){return _.a("div",{class:Jn})}}),_.a("div",{el:c,
"on:click":J,"on:touchstart":M,"on:touchmove":g,"on:mouseenter":l,"on:mousedown":P,"on:mouseleave":p,"on:mousemove":x,"on:mouseup":V,"on:touchend":fh,"on:touchcancel":ZD,"on:keydown":mP,class:jt,role:"slider","aria-valuenow":St,"aria-valuetext":function(){return St()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return R().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Fa("SEEK_SLIDER")},_.a("div",{el:h,class:zq},_.a(iCN,{progressBarProps:R,config:O,highContrast:function(){return!!O().isInlinePlayback}}),_.a(_.Q,{cond:function(){return O().chapterData&&uEe(O().chapterData)},
then:function(){return _.a(YES,{progressState:R,multiMarkersPlayerBarRenderer:function(){return O().chapterData},
progressBarWidth:function(){return K().width}})},
else:function(){return _.a(rfK,{progressBarProps:R,config:O})}}),_.a(feX,{progressBarProps:R,
playheadData:u,interpolateDotPosition:function(){return O().position!==2},
hidePlayhead:function(){return O().playheadDotBehavior===1&&!C()}}))),_.a(CKl,{progressBarProps:R,
config:function(){return{activeChapter:Qql(R(),O().chapterData),getProgressBarWidthPx:function(){return w().width},
isShortsPage:!!O().isShortsPage,isInlinePlayer:!!O().isInlinePlayback,useFadeInAnimation:!!O().isInlinePlayback}},
progressBarWidthPx:function(){return K().width},
chapterData:function(){return O().chapterData}}))},"Le");
_.DaN.idomCompat=!0;Object.assign({},_.Oo7(),{setState:function(){},
domMeasurements:{},appApi:_.Yj0(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var J9X;
_.zz9=_.nf(function(){var f,R=(f=_.IG(pD2().playerApi))!=null?f:void 0;f=_.Z(_.qK(!1,void 0,"HLFBmb"));var u=f.next().value,O=f.next().value;f=_.Z(_.qK(!1,void 0,"lHH9bc"));var c=f.next().value,h=f.next().value;f=_.Z(_.qK(!1,void 0,"zsY7yd"));var l=f.next().value,K=f.next().value;f=_.Z(_.qK(!1,void 0,"KeHQgc"));var q=f.next().value,F=f.next().value;f=_.Z(_.qK(0,void 0,"gLLCj"));var w=f.next().value,m=f.next().value;f=_.Z(_.qK(0,void 0,"s3RYkf"));var W=f.next().value,C=f.next().value;f=_.Z(_.qK(!1,void 0,
"Dn608e"));var d=f.next().value,p=f.next().value;f=_.Z(_.qK(0,void 0,"AnkH1b"));var J=f.next().value,M=f.next().value;f=_.Z(_.qK(0,void 0,"QYNL0b"));var P=f.next().value,g=f.next().value;f=_.Z(_.qK("",void 0,"Yzw45d"));var x=f.next().value,fh=f.next().value;f=_.Z(_.qK(-1,void 0,"iiVI0c"));var V=f.next().value,ZD=f.next().value,mP=_.Qt(function(){var NX={controlsVisible:u(),isOverlayHidden:c(),shouldWaitToHideControls:l(),isDragging:q(),isHovering:d(),videoDuration:J(),playedTime:P(),videoId:x(),draggedTime:W(),
hoveredTime:w(),playerState:V()};return Object.assign({},_.Oo7(),NX,{domMeasurements:{},setState:function(jt){jt.controlsVisible!==void 0&&O(jt.controlsVisible);jt.isOverlayHidden!==void 0&&h(jt.isOverlayHidden);jt.shouldWaitToHideControls!==void 0&&K(jt.shouldWaitToHideControls);jt.isDragging!==void 0&&F(jt.isDragging);jt.isHovering!==void 0&&p(jt.isHovering);jt.draggedTime!==void 0&&C(jt.draggedTime);jt.hoveredTime!==void 0&&m(jt.hoveredTime);jt.videoDuration!==void 0&&M(jt.videoDuration);jt.playedTime!==
void 0&&g(jt.playedTime);jt.videoId!==void 0&&fh(jt.videoId);jt.playerState!==void 0&&ZD(jt.playerState)},
appApi:_.Yj0(),playerApi:R})},void 0,"ZW7y9");
_.NW(function(){R==null||R.addEventListener("onVideoProgress",Zon(mP));R==null||R.addEventListener("onVideoDataChange",h6B(mP));R==null||R.addEventListener("onStateChange",cb0(mP))});
_.jN(function(){if(R==null?0:R.isReady())R==null||R.removeEventListener("onVideoProgress",Zon(mP)),R==null||R.removeEventListener("onVideoDataChange",h6B(mP)),R==null||R.removeEventListener("onStateChange",cb0(mP))});
return _.a("desktop-shorts-player-controls",null,_.a(J9X,{playerControlsProps:mP}))},"Me");
J9X=_.nf(function(f){var R=f.playerControlsProps;return _.a("div",{class:"desktopShortsPlayerControlsWizHost"},_.a(_.DaN,{progressBarProps:R,config:function(){return{isShortsPage:!0,hideProgressBar:R().videoDuration<30&&R().playerState!==2&&!R().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Ne");_.RI(_.T6D);_.TNw=_.nf(function(f){var R=f.data;return _.a("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.a(_.cd,{command:function(){return R().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.a(_.Q,{cond:function(){return R().iconName},
then:function(u){return _.a(_.WM,{icon:u})}}),_.a("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return R().text}),_.a(_.Q,{cond:function(){return R().showEndChevron},
then:function(){return _.a(_.WM,{icon:"CHEVRON_RIGHT"})}})))},"Oe");var Hm2=_.nf(function(f){var R=f.data;var u=f.overlayDensity;f={};return _.a("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.a(_.y5,{data:function(){return R().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(O){var c=O.data;
return _.a(_.LY,{data:function(){return(u==null?void 0:u())===1?Object.assign({},c(),{avatar:{avatarViewModel:Object.assign({},_.t(c().avatar,_.SP),{avatarImageSize:"AVATAR_SIZE_48"})}}):c()}})}}),_.a(_.y5,{data:function(){return R().avatarStackViewModel}},{avatarStackViewModel:function(O){return _.a(_.bS,{data:O.data})}}),_.a(_.YO,{className:_.KL("ytReelChannelBarViewModelChannelName",(f.ytReelChannelBarViewModelChannelNameLarge=function(){return(u==null?void 0:u())===1},f)),
text:function(){return R().channelName},
linkInheritColor:!0,userInput:!0}),_.a("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.a(_.y5,{data:function(){return R().subscribeButtonViewModel}},{subscribeButtonViewModel:function(O){var c=O.data;
return _.a(_.Le,{data:function(){return(u==null?void 0:u())===1?Object.assign({},c(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},c().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):c()},
isOverlay:!1})},
buttonViewModel:_.TS})),_.a("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.a(_.y5,{data:function(){var O,c;return(c=_.t((O=R())==null?void 0:O.sponsorButtonViewModel,jzG))==null?void 0:c.sponsorButton}},{buttonViewModel:function(O){return _.a(_.TS,{data:O.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Pe");var Ieh=_.nf(function(f){var R={};return _.a("yt-reel-multi-format-link-view-model",{class:_.KL("ytReelMultiFormatLinkViewModelHost",(R.ytReelMultiFormatLinkViewModelHostTall=!0,R.ytReelMultiFormatLinkViewModelHostLarge=function(){var u;return((u=f.overlayDensity)==null?void 0:u.call(f))===1},R))},_.a(_.cd,{ariaLabel:function(){return f.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.H7(f.data().command)},
dangerousStopPropagation:!1},_.a("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.a(_.Q,{cond:function(){return f.data().icon},
then:function(u){return _.a(_.gR,{data:u,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.a(_.YO,{text:function(){return f.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Qe");
Ieh.idomCompat=!0;var Ml5=_.nf(function(f){var R=f.data;var u=f.overlayDensity;var O=_.sW();f=_.Z(_.qK(!1,void 0,"xDqzhe"));var c=f.next().value,h=f.next().value;f=_.Z(_.qK(!1,void 0,"LI9CFd"));var l=f.next().value,K=f.next().value,q=function(){return R().isMultiLineSa},F=_.Ax(b1q,function(){var g,x;
return(x=(g=R().toggleableContent)==null?void 0:g.entityKey)!=null?x:""}),w=function(){var g,x,fh;
return(fh=R().toggleableContent)!=null&&fh.entityKey?(x=(g=F())==null?void 0:g.value)!=null?x:!1:!1},m=function(){var g,x,fh,V,ZD,mP,NX,jt,Jn,zq,St;
return R().toggleableContent?w()?(g=R().toggleableContent)==null?void 0:g.toggledData:(x=R().toggleableContent)==null?void 0:x.untoggledData:{primaryText:(jt=(fh=R().defaultContent)==null?void 0:fh.primaryText)!=null?jt:R().text,secondaryText:(V=R().defaultContent)==null?void 0:V.secondaryText,onTapCommand:(Jn=(ZD=R().defaultContent)==null?void 0:ZD.onTapCommand)!=null?Jn:R().onTapCommand,icon:(zq=(mP=R().defaultContent)==null?void 0:mP.icon)!=null?zq:R().icon,image:(St=(NX=R().defaultContent)==null?
void 0:NX.image)!=null?St:R().image}},W=function(){return q()?R().trailingTapTarget:void 0};
f=function(g,x){return function(){return c()?x:g}};
var C={leadingSection:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};f={};f=_.KL((f.ytShortsSuggestedActionViewModelStaticHost=function(){return!q()},f.ytShortsSuggestedActionViewModelDynamicHost=q,f.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return q()&&l()},f.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return q()&&!l()},f));
_.bt(function(){if(q()){var g=0,x;if((x=R().animationParams)==null?0:x.shouldExpand){var fh,V;g=((V=(fh=R().animationParams)==null?void 0:fh.expansionDelaySecs)!=null?V:0)*1E3}var ZD,mP=((ZD=R().animationParams)==null?0:ZD.shouldExpand)?setTimeout(function(){h(!0)},g):void 0,NX,jt;
g=((NX=R().animationParams)==null?0:NX.visibilityDelaySecs)?((jt=R().animationParams)==null?NaN:jt.visibilityDelaySecs)*1E3:0;var Jn=setTimeout(function(){K(!0)},g);
_.jN(function(){mP&&clearTimeout(mP);clearTimeout(Jn)})}});
var d=function(g){_.Ux(g,Object.assign({},{form:{element:O.value}}))},p=_.Ff(function(){var g,x=(g=m())==null?void 0:g.onTapCommand;
x&&d(x)}),J=_.Ff(function(){var g,x;
if(g=(x=W())==null?void 0:x.onTapCommand)return d(g),!1}),M=_.Qm({"vertical-align":"bottom",
"border-radius":function(){var g;return q()?((g=R().defaultContent)==null?0:g.isCircleImage)?"50%":"4px":"0px"},
width:function(){var g,x,fh;return q()&&((g=R().defaultContent)==null?0:g.imageSize)?((fh=(x=R().defaultContent)==null?void 0:x.imageSize)!=null?fh:24)+"px":null},
height:function(){var g,x,fh;return q()&&((g=R().defaultContent)==null?0:g.imageSize)?((fh=(x=R().defaultContent)==null?void 0:x.imageSize)!=null?fh:24)+"px":null}}),P={};
return _.a("yt-shorts-suggested-action-view-model",{class:f,el:O},_.a("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.a("button",{class:_.KL(function(){return q()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var g;
return(g=R().useFullRoundedBorder)!=null&&g?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!W()&&q()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":q()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var g;
return(g=R().disableFixedHeight)!=null&&g?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(P.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(u==null?void 0:u())===1},P)),
"on:click":p},_.a(_.CL,{model:{color:4}}),_.a("div",{class:_.KL(function(){return q()?C.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.a(_.Q,{cond:function(){var g;
return(g=m())==null?void 0:g.image},
then:function(g){return _.a(_.gR,{data:g,alt:"",className:function(){return q()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:M})}}),_.a(_.Q,{cond:function(){var g,x;
return(g=m())==null?void 0:(x=g.icon)==null?void 0:x.iconType},
then:function(g){return _.a(_.WM,{icon:g,active:w,className:function(){return q()?c()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.a("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.a(_.Q,{cond:function(){var g;
return(g=m())==null?void 0:g.primaryText},
then:function(g){return _.a("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.a(_.YO,{text:g}))}}),_.a(_.Q,{cond:function(){var g;
return(g=m())==null?void 0:g.secondaryText},
then:function(g){return _.a("div",{class:C.secondaryText},_.a(_.YO,{text:g}))}}))),_.a(_.Q,{cond:W,
then:function(g){return _.a("div",{class:C.trailingSection,"aria-label":function(){var x;return(x=g().a11yLabel)!=null?x:""},
"on:click":J,role:"button",tabindex:0},_.a(_.CL,{model:{color:4}}),_.a(_.WM,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Re");var PKm=_.nf(function(f){var R=f.data;var u=f.overlayDensity;var O=_.sW();f=_.Ff(function(l){if(_.GS(_.eP(l),O.value,["A".toString()]))return!1;(l=R().truncatedTextOnTapCommand)&&_.Ux(l);return!1});
var c={},h={};return _.a("yt-shorts-video-title-view-model",{el:O,class:_.KL("ytShortsVideoTitleViewModelHost",(c.ytShortsVideoTitleViewModelHostClickable=function(){return!!R().truncatedTextOnTapCommand},c)),
"on:click":f},_.a("h2",{class:_.KL("ytShortsVideoTitleViewModelShortsVideoTitle",(h.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(u==null?void 0:u())===1},h))},_.a(_.YO,{text:function(){return R().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Se");_.Ua5=_.nf(function(f){var R=f.data;var u=f.overlayDensity;return _.a("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.a(_.y5,{data:function(){return R().metadataItems}},{badgeViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(_.vP,{data:O.data}))},
playerDisclosureViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(_.TNw,{data:O.data}))},
shortsSuggestedActionViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(Ml5,{data:O.data,overlayDensity:u}))},
reelChannelBarViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(Hm2,{data:O.data,overlayDensity:u}))},
reelMultiFormatLinkViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(Ieh,{data:O.data,overlayDensity:u}))},
shortsVideoTitleViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(PKm,{data:O.data,overlayDensity:u}))},
reelSoundMetadataViewModel:function(O){return _.a("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.a(_.$lA,{data:O.data,overlayDensity:u}))}}))},"Te");var ezh=_.nf(function(f){var R=_.sU(f,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),u=R.size,O=R.onTap,c=R.disabled,h=R.tooltipText;return _.a("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.a(iA,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:u(),disabled:c(),tooltipText:h(),onTap:O}},
iconName:f.iconType}))},"Ue"),GXl=_.nf(function(f){function R(w){w.stopPropagation();
w.code==="ArrowUp"?(w.preventDefault(),PGB(K.value)):w.code==="ArrowDown"?(w.preventDefault(),Unn(K.value)):w.code==="KeyM"?ItX():(w.code==="KeyK"||w.code==="Space")&&MBe(q())}
var u=_.sU(f,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});f=u.previousButtonDisabled;var O=u.nextButtonDisabled,c=u.data,h=u.playabilityStatus,l=u.previewThumbnail,K=_.sW(),q=_.JS(_.miD),F;_.NW(function(){(F=_.jF(K.value))&&F.addEventListener("keydown",R)});
_.jN(function(){var w;(w=F)==null||w.removeEventListener("keydown",R)});
u=function(){var w,m,W;return(w=c())==null?void 0:(m=w.reelPlayerOverlayRenderer)==null?void 0:(W=m.likeButton)==null?void 0:W.likeButtonRenderer};
return _.a("ytd-shorts-miniplayer-overlay",{el:K,class:"ytdShortsMiniplayerOverlayHost"},_.a("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Qm({"background-image":function(){var w=l();return w?'url("'+_.fL(w.thumbnails)+'")':""}})}),_.a("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.a("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.a(ezh,{iconType:function(){var w=q();
return w===2||w===-1||w===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){MBe(q())},
tooltipText:function(){var w=q();return w===1||w===3?_.Fa("PLAYER_LABEL_PAUSE"):_.Fa("PLAYER_LABEL_PLAY")}}),_.a(_.T6D,null)),_.a("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.a(ezh,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:f,onTap:function(){PGB(K.value)},
tooltipText:_.Fa("PREVIOUS_VIDEO_LABEL")}),_.a(ezh,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:O,onTap:function(){Unn(K.value)},
tooltipText:_.Fa("NEXT_VIDEO_LABEL")}),_.E("web_shorts_pip_like_button")?_.a("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.a(mQl,{buttonTooltipPosition:"left",data:u,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.a("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.a(_.Q,{cond:function(){var w,m;return _.t((w=c())==null?void 0:(m=w.reelPlayerOverlayRenderer)==null?void 0:m.metapanel,
_.N5k)},
then:function(w){return _.a("div",{class:_.KL("ytdShortsMiniplayerOverlayInteractive")},_.a(_.Ua5,{data:w}))}})),_.a("div",{class:_.KL("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var w;return!((w=c())==null||!w.adsOverlay)||h()&&!gpe(h())}},_.a("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.a(_.zz9,null)))),_.a(_.Q,{cond:function(){var w=c(),m,W;
w=_.t(w==null?void 0:(m=w.adsOverlay)==null?void 0:(W=m.fulfillmentContent)==null?void 0:W.fulfilledLayout,OSE);return _.t(w==null?void 0:w.renderingContent,lSf)},
then:function(w){return _.a("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.a(CRf,{data:w}))}}))},"Ve");var e6X=_.nf(function(){var f=_.Z(_.qK(new _.K8(NaN,NaN),void 0,"HSMFk")),R=f.next().value,u=f.next().value;f=_.Z(_.qK(!1,void 0,"uaAxwf"));var O=f.next().value,c=f.next().value,h=_.Z(_.qK(!1,void 0,"nVSwef"));f=h.next().value;var l=h.next().value,K=_.vh().resolve(_.MS).miniplayerPropSignalMap[0],q=K.data,F=K.shortsData,w=K.nextButtonDisabled,m=K.shortsPreviewThumbnail,W=K.previousButtonDisabled,C=K.externalPlaylistData;h=K.toastData;var d=K.playabilityStatus,p=K.isDisabled,J=K.playerVe,M=K.closeVe;
K=_.JS(_.am);_.gJ("yt-pip-window-resized",function(fh){u(fh)});
_.gJ("yt-activate-pip-miniplayer",function(){return _.k(function(fh){l(!0);_.KG(fh)})});
var P=function(){var fh;return!((fh=C())==null||!fh.contents)&&O()},g=function(){var fh=R(),V=!!q(),ZD=P();
fh=fh.clone();V&&(fh.height-=76);ZD&&(fh.height-=285);return fh},x=function(){c(!O())};
_.pc(function(){var fh=J(),V=_.z4(11),ZD=_.Jj(11);V&&ZD&&fh&&(_.ea(V,ZD,fh),ZD=M())&&(_.GT(V,fh,[ZD]),_.op(V,[ZD]))});
return _.a("ytd-pip-container",{class:"ytdPipContainerHost"},_.a(_.Q,{cond:f,then:function(){return _.a(_.skh,{isDisabled:p,playabilityStatus:d,size:g})}}),_.a(_.Q,{cond:q,
then:function(){return _.a(_.$tz,{data:q,expanded:O,onExpandClick:x,playlistData:C})}}),_.a(_.Q,{cond:P,
then:function(){return _.a("div",{class:"ytdPipContainerPlaylistPanel"},_.a(_.FXC,{data:C,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.a(_.Q,{cond:K,
then:function(){return _.a(GXl,{data:F,nextButtonDisabled:w,previousButtonDisabled:W,playabilityStatus:d,previewThumbnail:m})}}),_.a("div",{class:"ytdPipContainerToast"},_.a(_.nCh,{toastData:h})))},"We");var Cw=function(f,R){var u=this;this.pipController=f;this.JSC$16460_clientRoot=R;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=$z5();this.watchPipEnabled=_.E("web_watch_pip");this.shortsPipEnabled=_.E("web_shorts_pip");this.JSC$16460_watchWhileEnabled=_.E("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;_.aC(_.sP(),_.Atl,function(O){u.isSingleOptionSurveyActive=O});
this.JSC$16460_onPlayerPlayVideo=this.JSC$16460_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);_.SV(_.xN.getInstance(),this.miniplayerServiceActionMap,this.JSC$16460_clientRoot);f.pictureInPictureSupported()&&_.Jr("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},izl,Yha,gmm,vm9,imN,fJY;
Cw.prototype.handleMediaSessionPipActivation=function(){var f=this,R;return _.k(function(u){_.qk().mediaSessionPipActivation=!0;R=_.vh().resolve(_.sz);return R.isOnWatch()&&f.watchPipEnabled?(_.qk().watchPipActivation=!0,_.BNX(f,R.data),u.jumpTo(0)):R.isOnShorts()&&f.shortsPipEnabled?(_.qk().shortsPipActivation=!0,_.omz(f),u.jumpTo(0)):f.isMiniplayerActive()&&f.watchPipEnabled&&!f.watchWhileMode?_.A(u,xa9(f),0):u.jumpTo(0)})};
var xa9=function(f){var R,u,O,c;return _.k(function(h){if(h.nextAddress==1)return R=!f.miniplayerToPipMode,u=f.playerElement,O=f.miniplayerData,c=f.watchResponse,_.A(h,f.deactivate(),2);if(h.nextAddress!=3)return R?(_.qk().mediaSessionPipActivation=!0,_.qk().watchPipActivation=!0):_.qk().miniplayerButtonActivation=!0,_.A(h,f.activate(u,O,c),3);f.miniplayerToPipMode=R;_.KG(h)})};
Cw.prototype.onDownloadedVideoDeleted=function(f){var R,u=_.t((R=this.miniplayerData)==null?void 0:R.watchEndpoint,_.$7),O,c;u&&((O=this.watchResponse)==null?void 0:(c=O.playerResponse)==null?void 0:c.offlineState)!==void 0&&(R=u.videoId)&&f&&R===f&&this.close()};
Cw.prototype.onShowMiniplayerCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w,m,W,C,d;return _.k(function(p){switch(p.nextAddress){case 1:return u=_.t(f,FqF),c=(O=u)==null?void 0:O.miniplayerCommand,h=_.t(c,_.$7),c&&h&&!R.active?_.A(p,_.ti.getInstance(),2):p.return();case 2:return l=p.yieldResult,_.A(p,(K=l)==null?void 0:K.get("yt-miniplayer-shown-video-id"),3);case 3:q=p.yieldResult;F=h.videoId;if(!F||q===F)return p.return();w=_.vh().resolve(_.sz);if(w.isOnWatch())return _.Ih(Error("Bj")),p.return();
m={channelItem:{externalId:btoa(F)}};R.readyToResumeVe=_.dx(121253,void 0,void 0,m);_.qk().showMiniplayerCommandActivation=!0;return _.A(p,_.R1G(R,c,!0),4);case 4:return R.active?(_.y7(R,{readyToResumeVe:R.readyToResumeVe,continueWatching:!0,premiumBranding:!((W=u)==null||!W.showPremiumBranding)}),_.E("ytd_miniplayer_to_wiz")&&_.y7(R,{isReadyToResume:!0}),R.isReadyToResume=!0):_.y7(R,{continueWatching:!0,premiumBranding:!((C=u)==null||!C.showPremiumBranding)}),_.A(p,(d=l)==null?void 0:d.set("yt-miniplayer-shown-video-id",
h.videoId),5);case 5:R.readyToResumeVe=void 0,_.KG(p)}})};
Cw.prototype.init=function(f){this.miniplayerEl?_.Ih(new _.ts("MiniplayerService already initialized.")):this.miniplayerEl=f};
Cw.prototype.isInitialized=function(){var f=!!this.miniplayerEl;f||_.Ih(new _.ts("MiniplayerService used before initialized."));return f};
_.BNX=function(f,R){if(f.isInitialized()){var u=_.n4h(R.response,R.playerResponse),O=_.vh().resolve(_.sz).getPlayerFromWatch();_.qk().currentEndpoint=u.watchEndpoint||null;f.activate(O,u,R)}};
_.omz=function(f){if(f.isInitialized()){var R=_.vh().resolve(_.sz).getPlayerFromShorts();f.activate(R)}};
izl=function(f,R){var u;(u=!f.isInitialized())||(u=_.vh().resolve(_.sz).isOnWatch()&&f.watchPipMode,u=!(f.isMiniplayerActive()&&(_.qk().userActivation||_.qk().lockupActivation||u)));if(u)return!1;Shl(f,R)?_.WS(f):fJY(f,R);return f.watchPipMode?!_.vh().resolve(_.sz).isOnWatch():!0};
Cw.prototype.isMiniplayerActive=function(){return this.active};
var Shl=function(f,R){var u;R=(u=_.t(R,_.$7))==null?void 0:u.videoId;var O,c;f=(c=_.t((O=f.miniplayerData)==null?void 0:O.watchEndpoint,_.$7))==null?void 0:c.videoId;return R!=null&&R===f};
Cw.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.ul(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.OJ(this.miniplayerEl,"yt-navigate-home-action"))};
_.R1G=function(f,R,u,O){u=u===void 0?!1:u;var c,h,l;return _.k(function(K){switch(K.nextAddress){case 1:if(f.active){K.jumpTo(2);break}c=_.vh().resolve(_.sz);if(l=(h=f.playerElement)!=null?h:c.getPlayerFromWatch()){K.jumpTo(3);break}return _.A(K,_.vh().resolve(_.fr),4);case 4:l=c.getPlayerFromWatch();case 3:if(!l){_.Ih(Error("Dj"));K.jumpTo(2);break}return _.A(K,f.activate(l,O),2);case 2:return f.active?_.A(K,fJY(f,R,u),0):K.return()}})};
Cw.prototype.activate=function(f,R,u){var O=this,c,h,l,K,q,F,w,m,W;return _.k(function(C){switch(C.nextAddress){case 1:if(!O.isInitialized())return C.return();if(!f)return _.Ih(Error("Dj")),C.return();if(_.dAi()||O.isMiniplayerActive())var d=!0;else d=_.qk().watchPipActivation||_.qk().watchWhileActivation,_.vh().resolve(_.sz).isOnWatch()&&!d?(_.Ih(new _.ts("miniplayer activated on watch page")),d=!0):d=_.qk().watchWhileActivation?O.userDeactivatedWatchWhile||!!document.pictureInPictureElement||bVX():
!1;if(d)return yef(),C.return();c=_.qk().mediaSessionPipActivation;h=_.qk().shortsPipActivation;l=_.qk().watchPipActivation;q=(K=_.qk().watchWhileActivation)||l;F=l||h;if(!O.pictureInPictureEnabled()||!F){C.jumpTo(2);break}return _.A(C,$aN(O,c),3);case 3:if(!C.yieldResult)return _.Ih(Error("Cj")),yef(),C.return();case 2:return O.setActive(!0),O.watchResponse=u,O.playerElement=f,O.updateMiniplayerData(R),_.A(C,gmm(O,f),4);case 4:if(!O.active)return _.Ih(new _.ts("miniplayer deactivated during activation")),
O.removePlayerListeners(),C.return();d=_.vh().resolve(_.Ji);d.addEventListener("yt-navigate",_.ks(O,O.onPlaylistNavigate));d.addEventListener("yt-playlist-data-updated",_.ks(O,O.JSC$16460_onPlaylistDataUpdated));O.JSC$16460_onPlaylistDataUpdated();yef();O.JSC$16460_watchWhileEnabled&&_.swa(O,K);O.pictureInPictureEnabled()&&O.shortsPipEnabled&&(O.shortsPipMode=h,_.sP().dispatch(kHH(O.shortsPipMode)));O.pictureInPictureEnabled()&&O.watchPipEnabled&&(O.watchPipMode=l,_.jHn(O.handleMediaSessionPipActivation));
O.player&&(w=O.player.getPlayerState(),m=w===1,_.sP().dispatch(W_k(w)),_.c_(O.miniplayerEl,"yt-miniplayer-play-state-changed",[m]),_.qk().isVideoPlaying=m);_.c_(O.miniplayerEl,"yt-miniplayer-endpoint-changed");nm5(O);_.Vll(O);return O.shortsPipMode||O.watchPipMode?_.A(C,_.Xa(O.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.E("ytd_miniplayer_to_wiz")?_.A(C,_.Xa(O.miniplayerEl,"yt-activate-miniplayer",[q]),6):_.A(C,_.Xa(O.miniplayerEl,"yt-activate-miniplayer-action",[f,q]),6);case 6:if(O.watchResponse&&
!_.E("miniplayer_copy_screen_on_activation_killswitch")){d=O.getScreenLayer();var p=_.z4(0),J=mZq(0);p&&J&&(_.Hc(p,J,d),d===0&&Fql(void 0,0))}Yha(O);vm9(O,!0);(W=O.getPlayerElement())==null||W.focusOnPlayer();_.KG(C)}})};
Cw.prototype.updateMiniplayerData=function(f){this.miniplayerData=f;_.y7(this,{data:f})};
_.Vll=function(f){var R,u,O=((R=f.miniplayerData)==null?void 0:(u=R.miniplayerRenderer)==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";R=f.watchWhileMode||f.watchPipMode?O&&!_.vh().resolve(_.sz).isOnWatch():O;_.y7(f,{isDisabled:R});var c,h;u=_.t((c=f.miniplayerData)==null?void 0:(h=c.miniplayerRenderer)==null?void 0:h.minimizedEndpoint,_.dS);R&&u&&_.vh().resolve(_.dp).openSheet({openPopupActionCommand:{openPopupAction:u}},f.miniplayerEl)};
Yha=function(f){if(f.watchResponse&&!imN(f)){var R,u=(R=f.watchResponse.playerResponse)==null?void 0:R.trackingParams;u&&(_.y7(f,{expandVe:_.dx(35989),closeVe:_.dx(34699),readyToResumeCloseVe:_.dx(131070),repositionVe:_.dx(226204),resizeVe:_.dx(226205)}),_.y7(f,{playerVe:_.t4(u)}))}};
gmm=function(f,R){return _.k(function(u){if(u.nextAddress==1)return R.preparePlayer(),_.A(u,R.getPlayerPromise(),2);f.player=u.yieldResult;f.player&&(f.player.addEventListener("onPlayVideo",f.JSC$16460_onPlayerPlayVideo),f.player.addEventListener("onCloseMiniplayer",f.onPlayerCloseMiniplayer),f.player.addEventListener("onExpandMiniplayer",f.onPlayerExpandMiniplayer),f.player.addEventListener("onStateChange",f.onPlayerStateChange));_.KG(u)})};
_.X=Cw.prototype;_.X.JSC$16460_onPlayerPlayVideo=function(f){var R=f.sessionData&&"autonav"in f.sessionData,u;f.sessionData&&f.sessionData.itct&&(u=f.sessionData.itct);var O=f.watchEndpoint;R=O&&R?_.MJX(O,u):_.rA(f.videoId,f.listId||void 0,u);f.sessionData&&_.VP(_.t(R.commandMetadata,_.vc).url,f.sessionData);fJY(this,R)};
_.X.onPlayerExpandMiniplayer=function(){_.WS(this)};
_.X.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.X.onPlayerStateChange=function(){if(this.player){var f=this.player.getPlayerState(),R=f===1;_.sP().dispatch(W_k(f));_.sP().dispatch(_.tXY(f));_.c_(this.miniplayerEl,"yt-miniplayer-play-state-changed",[R]);_.qk().isVideoPlaying=R;if(f===0){R=!_.sd.getInstance().isAutoplaySetExplicitly();var u,O,c,h,l,K,q=(u=this.watchResponse.response)==null?void 0:(O=u.contents)==null?void 0:(c=O.twoColumnWatchNextResults)==null?void 0:(h=c.autoplay)==null?void 0:(l=h.autoplay)==null?void 0:(K=l.autoplayExplicitChoiceDialogRenderer)==
null?void 0:K.confirmDialogRenderer;R&&q&&this.player.setAutonavState(1)}f===0&&this.watchWhileMode&&this.deactivate()}};
_.X.onPlaylistNavigate=function(f,R){var u=this,O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1){if(!_.t(R.endpoint,_.$7))return w.return();_.qk().currentEndpoint=R.endpoint;_.c_(u.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.vh().resolve(_.sz).isOnWatch()&&(u.watchWhileMode||u.watchPipMode))return w.return();f.stopPropagation();(h=(c=_.t((O=R.endpoint)==null?void 0:O.commandMetadata,_.vc))==null?void 0:c.url)&&R.tempData&&!_.dq.isEmpty(R.tempData)&&_.VP(h,R.tempData);l={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};K=new yUI(function(){return u.getPlayerElement()},l,{layer:u.getScreenLayer()});
q=function(m){K.processChunk({endpoint:R.endpoint,data:m})};
r92(u);u.miniplayerFetchRequest=fp9(u,R.endpoint,q);_.cl(w,2);return _.A(w,u.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return F=w.yieldResult,Re5(u,F),_.Bf(w,0);_.ku(w);_.KG(w)})};
_.X.JSC$16460_onPlaylistDataUpdated=function(){var f=_.vh().resolve(_.Ji).getPlaylistData();this.hasPlaylistData=!!f;_.y7(this,{externalPlaylistData:f||{}})};
_.X.close=function(f){if(this.isInitialized())if(f){if(!((this.watchWhileMode||this.watchPipMode)&&_.vh().resolve(_.sz).isOnWatch()||this.shortsPipMode)){var R;(R=this.getPlayerElement())==null||R.stop()}this.deactivate()}else _.Mk().closeMiniplayer(this.miniplayerEl)};
_.X.deactivate=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1){if(!R.isInitialized()||!R.active)return l.return();R.setActive(!1);r92(R);(u=!!f&&Shl(R,f))&&R.isSingleOptionSurveyActive&&_.OJ(R.miniplayerEl,"yt-show-watch-page-survey",[R.isSingleOptionSurveyActive]);return _.A(l,uqm(R),2)}if(l.nextAddress!=3){vm9(R,!1);R.isReadyToResume=!1;R.watchResponse=void 0;R.updateMiniplayerData(void 0);R.shortsPipMode&&(R.shortsPipMode=!1,_.sP().dispatch(kHH(R.shortsPipMode)),Nkl(R.pipController),
(O=R.player)==null||O.setInternalSize(NaN,NaN));R.watchPipMode&&(R.watchPipMode=!1,Nkl(R.pipController));(c=R.watchWhileMode)&&_.swa(R,!1);R.removePlayerListeners();var K=_.vh().resolve(_.Ji);K.removeEventListener("yt-navigate",_.ks(R,R.onPlaylistNavigate));K.removeEventListener("yt-playlist-data-updated",_.ks(R,R.JSC$16460_onPlaylistDataUpdated));_.qk().currentEndpoint=null;_.c_(R.miniplayerEl,"yt-miniplayer-endpoint-changed");R.playerElement=null;yef();return R.shortsPipMode||R.watchPipMode?l.jumpTo(3):
_.A(l,_.Xa(R.miniplayerEl,_.E("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[u,c]),3)}(h=R.player)==null||h.setInternalSize(NaN,NaN);R.player=null;_.KG(l)})};
var uqm=function(f){var R;return _.k(function(u){R=_.vh().resolve(_.sz);return f.shortsPipMode?_.A(u,R.movePlayerToShorts(f.playerElement),0):_.A(u,R.movePlayerToWatch(f.playerElement),0)})};
Cw.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16460_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Cw.prototype.setActive=function(f){this.active=f;this.isSingleOptionSurveyActive?_.OJ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.OJ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.sP().dispatch(_.OP({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.swa=function(f,R){f.watchWhileMode=R;_.y7(f,{watchWhile:R})};
vm9=function(f,R){if(!imN(f))if(f.shortsPipMode||f.watchPipMode){var u;(u=f.player)==null||u.setDocumentPictureInPicture(R)}else{var O;(O=f.player)==null||O.setMinimized(R)}};
imN=function(f){return f.watchWhileMode&&_.E("kevlar_watch_while_counterfactual")};
_.WS=function(f){var R;return _.k(function(u){switch(u.nextAddress){case 1:if(!f.isInitialized())return u.return();_.cl(u,2);return _.A(u,f.miniplayerFetchRequest,4);case 4:_.Bf(u,3);break;case 2:_.ku(u);case 3:f.watchResponse&&f.miniplayerData&&f.miniplayerData.watchEndpoint?(R={url:f.watchResponse.url,endpoint:f.miniplayerData.watchEndpoint,data:f.watchResponse,miniplayer:!0},_.ul(f.miniplayerEl,"yt-navigate-cache",R)):f.miniplayerData&&f.miniplayerData.watchEndpoint&&_.ul(f.miniplayerEl,"yt-navigate",
{endpoint:f.miniplayerData.watchEndpoint}),_.KG(u)}})};
fJY=function(f,R,u){var O,c,h,l;return _.k(function(K){if(K.nextAddress==1){if(Shl(f,R))return K.return();_.qk().currentEndpoint=R;_.c_(f.miniplayerEl,"yt-miniplayer-endpoint-changed");_.c_(f.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.qk().isVideoPlaying=!1;O={clientParams:{miniplayer:!0,autoSaveToQueue:!u}};c=new yUI(function(){return f.getPlayerElement()},O,{layer:f.getScreenLayer(),
parentLayer:0},void 0,f.readyToResumeVe);h=function(q){var F,w,m=Object.assign({},(F=q.playerResponse)==null?void 0:(w=F.playerConfig)==null?void 0:w.playbackStartConfig,{startPaused:!0}),W;u&&((W=q.playerResponse)==null?0:W.playerConfig)&&(q.playerResponse.playerConfig.playbackStartConfig=m);c.processChunk({endpoint:R,data:q})};
r92(f);f.miniplayerFetchRequest=fp9(f,R,h);_.cl(K,2);return _.A(K,f.miniplayerFetchRequest,4)}if(K.nextAddress!=2)return l=K.yieldResult,Re5(f,l),_.Bf(K,0);_.ku(K);_.KG(K)})};
Cw.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var r92=function(f){f.miniplayerFetchRequest&&(f.miniplayerFetchRequest.cancel&&f.miniplayerFetchRequest.cancel("Active request obsolete"),f.miniplayerFetchRequest=null)},fp9=function(f,R,u){var O=_.Fs.instance,c,h=(c=_.t(R.commandMetadata,_.vc))==null?void 0:c.url,l;
c=!h||_.E("disable_miniplayer_tempdata")?{}:(l=OWh(h))!=null?l:{};return eg(O,R,c,window.location.href,"watch",function(K,q){u(q)},function(K){return K!==f.miniplayerFetchRequest})},Re5=function(f,R){var u;
_.k(function(O){if(!R)return O.return();f.watchResponse=R;Yha(f);nm5(f);u=_.n4h(R.response,R.playerResponse);if(f.isMiniplayerActive()){R.response&&(f.playerElement.watchNextData=R.response);var c=_.dq.getValueByKeys.apply(_.dq,[R].concat(_.yq(T3i)));_.dq.getValueByKeys.apply(_.dq,[R].concat(_.yq(UDC)))&&c&&_.vh().resolve(_.Ji).setAutoplayRenderer(c);if(c)if(_.E("kevlar_is_pupi_enabled")){var h,l,K,q,F,w=((h=R.response)==null?0:(l=h.playerOverlays)==null?0:(K=l.playerOverlayRenderer)==null?0:(q=K.autonavToggle)==
null?0:(F=q.autoplaySwitchButtonRenderer)==null?0:F.enabled)?2:1;_.sd.getInstance().setState(w,!1,!1)}else h=m2X()?2:1,(w=f.player)==null||w.setAutonavState(h);f.updateMiniplayerData(u);_.Vll(f)}_.KG(O)})},nm5=function(f){var R,u,O=(R=f.watchResponse)==null?void 0:(u=R.playerResponse)==null?void 0:u.playabilityStatus,c;
R=O==null?void 0:(c=O.miniplayer)==null?void 0:c.miniplayerRenderer;(R==null?void 0:R.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&R.minimizedEndpoint&&_.hH(f.miniplayerEl,[R.minimizedEndpoint]);_.y7(f,{miniplayerRenderer:R,playabilityStatus:O})};
Cw.prototype.openToast=function(f,R){_.y7(this,{toastData:{data:f,label:R}})};
_.y7=function(f,R){var u=f.miniplayerEl,O;for(O in R)u[O]=R[O];(0,f.miniplayerPropSignalMap[1])(R)};
Cw.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var f;return this.playerElement?this.playerElement:(f=_.b(this.miniplayerEl).querySelector("#player-container"))==null?void 0:f.firstElementChild};
Cw.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var $aN=function(f,R){R=R===void 0?!1:R;var u,O,c,h,l,K,q;return _.k(function(F){if(F.nextAddress==1){u=navigator.userActivation.isActive||R;if(!u||!f.pictureInPictureSupported())return F.return(!1);O=OEN(f);c=O.width;h=O.height;return _.A(F,f.pipController.openWindow({width:c,height:h}),2)}l=F.yieldResult;K=f.pipController.getWindow();if(!K||!l)return F.return(!1);K.document.body.style.overflow="hidden";q=Gc7(K);LAG(f.pipController,function(){cTm(f);q()});
return F.return(!0)})},OEN=function(f){var R=_.qk().shortsPipActivation,u,O;
f=R?.5625:(O=(u=f.player)==null?void 0:u.getVideoAspectRatio())!=null?O:16/9;u=Math.min(window.innerWidth,window.innerHeight)/2;R=R?0:76;return f>1?new _.K8(u,R+u/f):new _.K8(u*f,R+u)},cTm=function(f){var R;
_.k(function(u){R=_.vh().resolve(_.sz);return R.isOnWatch()&&f.watchPipMode||R.isOnShorts()&&f.shortsPipMode?_.A(u,f.deactivate(),0):f.miniplayerToPipMode?_.A(u,xa9(f),0):f.watchPipMode?_.A(u,_.WS(f),0):u.jumpTo(0)})};
Cw.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Vy.Object.defineProperties(Cw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Cw[nW]=[bZE,VJt];var Xrw="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(" "),
hew="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(" "),ZEe="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
lpm="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var kz9=null;var KvK={},qvw=(KvK.initialized={priority:10,callback:function(f){var R=_.vh();R.addProvider({provide:Juf,useClass:dXz});R.addProvider({provide:_.ynN,useFactory:function(){return new zwF}});
R.addProvider({provide:EN,useValue:_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});R.addProvider({provide:Pyk,useValue:5184E6});R.addProvider({provide:i7k,useValue:_.LS()});R.addProvider({provide:lrC,useClass:XVk});R.addProvider({provide:IE,useClass:IE});R.addProvider({provide:_.fr,useFactory:function(){return q7I.promise}});
R.addProvider({provide:_.aZf,useFactory:function(){return _.AEt.promise}});
R.addProvider({provide:TE5,useValue:function(){var K;return((K=_.Vm())==null?void 0:K.getPlayer())||null}});
var u={};R.addProvider((u.provide=_.oe,u.useFactory=function(K,q){return function(){return qMl(K,q)}},u[nW]=[EN,
Pyk],u));u={};R.addProvider((u.provide=_.XC,u.useClass=dRA,u[nW]=[EN,Pyk],u));u={};R.addProvider((u.provide=_.fbe,u.useClass=p8E,u[nW]=[_.XC],u));R.addProvider({provide:KH,useFactory:_.sP});R.addProvider({provide:lk,useFactory:_.sP});R.addProvider({provide:qaY,useFactory:_.sP});R.addProvider({provide:ncA,useFactory:_.sP});R.addProvider({provide:_.zM,useFactory:_.sP});R.addProvider({provide:ZX,useValue:_.Ah});R.addProvider({provide:Q7m,useClass:ta7});R.addProvider({provide:wNC,useClass:FHE});R.addProvider({provide:px,
useClass:px});R.addProvider({provide:lU,useClass:lU});R.addProvider({provide:kd,useClass:kd});R.addProvider({provide:q7,useClass:q7});R.addProvider({provide:Ie,useClass:Ie});R.addProvider({provide:wE,useClass:wE});R.addProvider({provide:RZ,useClass:RZ});R.addProvider({provide:ApA,useValue:Pfm});R.addProvider({provide:_.Cq,useFactory:_.wR});R.addProvider({provide:VI,useFactory:_.Qu});u={};R.addProvider((u.provide=HbP,u.useFactory=function(K){return function(q){var F=F===void 0?{}:F;var w,m,W=(m=_.t((w=
q.endpoint)==null?void 0:w.commandMetadata,_.vc))==null?void 0:m.rootVe;if(W){var C,d;if(w=q.previousCsn||((d=_.t((C=q.endpoint)==null?void 0:C.commandMetadata,SQF))==null?void 0:d.parentCsn)){var p=p===void 0?{}:p;if(w!==_.z4(p.layer)||W!==mZq(p.layer))CV0(w,p.cttAuthInfo,p.layer||0),Fql(w,p.layer||0),C=p.layer||0,_.zf(wbP(C===void 0?0:C),W);F.parentCsn=w}q.endpoint&&w?Zql(K,q.endpoint,F):_.O1(K,W,void 0,F);var J;((J=q.response)==null?0:J.trackingParams)&&K.graftServerVe(q.response.trackingParams);
var M;((M=q.playerResponse)==null?0:M.trackingParams)&&K.graftServerVe(q.playerResponse.trackingParams);var P;((P=q.reelWatchSequenceResponse)==null?0:P.trackingParams)&&K.graftServerVe(q.reelWatchSequenceResponse.trackingParams)}}},u[nW]=[_.Cq],u));
u={};R.addProvider((u.provide=arf,u.useClass=AJf,u[nW]=[ZX,_.zM],u));u={};R.addProvider((u.provide=r1,u.useClass=r1,u[nW]=[_.fr,_.zM],u));u={};R.addProvider((u.provide=Va,u.useClass=Va,u[nW]=[lk,_.rv],u));R.addProvider({provide:_.EtA,useClass:jxl});u={};R.addProvider((u.provide=_.yT,u.useClass=yJl,u[nW]=[_.EtA],u));R.addProvider({provide:_.dp,useClass:uM});R.addProvider({provide:s_C,useClass:hl9});R.addProvider({provide:_.N$,useClass:fw});u={};R.addProvider((u.provide=_.$U,u.useClass=p6F,u[nW]=[_.$U],
u));R.addProvider({provide:_.fM,useClass:lEI});R.addProvider({provide:wd,useClass:wd});R.addProvider({provide:CH,useClass:CH});R.addProvider({provide:D4,useClass:Rc});u={};R.addProvider((u.provide=Tb,u.useClass=Tb,u[nW]=[_.dp,D4],u));_.E("web_enable_feedback_endpoint_resolver")&&(u={},R.addProvider((u.provide=qV,u.useClass=qV,u[nW]=[KH,kU],u)),R.addProvider({provide:kU,useClass:DPk}));_.E("web_enable_feedback_endpoint_resolver_batch_2")&&(u={},R.addProvider((u.provide=av,u.useClass=av,u[nW]=[KH],
u)),u={},R.addProvider((u.provide=AP,u.useClass=AP,u[nW]=[kU],u)));u={};R.addProvider((u.provide=JP,u.useClass=JP,u[nW]=[_.N$,D4],u));u={};R.addProvider((u.provide=LH,u.useClass=LH,u[nW]=[_.N$],u));u={};R.addProvider((u.provide=zb,u.useClass=zb,u[nW]=[_.JN,_.yT],u));u={};R.addProvider((u.provide=jc,u.useClass=jc,u[nW]=[_.JN,_.Cq],u));R.addProvider({provide:RB,useClass:RB});u={};R.addProvider((u.provide=nH,u.useClass=nH,u[nW]=[KH],u));R.addProvider({provide:FI,useClass:FI});u={};R.addProvider((u.provide=
mT,u.useClass=mT,u[nW]=[KH],u));u={};R.addProvider((u.provide=QZ,u.useClass=QZ,u[nW]=[_.JN,KH],u));u={};R.addProvider((u.provide=Wv,u.useClass=Wv,u[nW]=[KH],u));u={};R.addProvider((u.provide=ES,u.useClass=ES,u[nW]=[KH],u));u={};R.addProvider((u.provide=b8,u.useClass=b8,u[nW]=[_.yT],u));u={};R.addProvider((u.provide=hc,u.useClass=hc,u[nW]=[_.Cq],u));u={};R.addProvider((u.provide=Ac,u.useClass=Ac,u[nW]=[rd],u));u={};R.addProvider((u.provide=aB,u.useClass=aB,u[nW]=[rd],u));R.addProvider({provide:kF,
useClass:kF});R.addProvider({provide:Kz,useClass:Kz});R.addProvider({provide:XI,useClass:XI});u={};R.addProvider((u.provide=Hu,u.useClass=Hu,u[nW]=[_.yT,_.rv],u));R.addProvider({provide:Wu,useClass:Wu});u={};R.addProvider((u.provide=pH,u.useClass=pH,u[nW]=[_.JN,_.yT],u));R.addProvider({provide:yI,useClass:yI});u={};R.addProvider((u.provide=gd,u.useClass=gd,u[nW]=[KH,_.JN,_.$U],u));u={};R.addProvider((u.provide=xU,u.useClass=xU,u[nW]=[_.JN,_.rv],u));R.addProvider({provide:PMA,useValue:pZe});R.addProvider({provide:oLk,
useValue:ubn});R.addProvider({provide:Sc,useClass:Sc});u={};R.addProvider((u.provide=ov,u.useClass=ov,u[nW]=[KH],u));u={};R.addProvider((u.provide=sN,u.useClass=sN,u[nW]=[_.fM,_.rv],u));u={};R.addProvider((u.provide=FR,u.useClass=FR,u[nW]=[_.rv],u));R.addProvider({provide:l8,useFactory:function(){return new l8(_.sP())}});
R.addProvider({provide:cw0,useFactory:_.pn.getInstance});u={};R.addProvider((u.provide=tP,u.useClass=tP,u[nW]=[EN,cw0,_.rv],u));R.addProvider({provide:mU,useClass:mU});R.addProvider({provide:u8,useClass:u8});R.addProvider({provide:cu,useClass:cu});R.addProvider({provide:_.ON,useClass:_.ON});R.addProvider({provide:yZ,useClass:yZ});u={};R.addProvider((u.provide=ec,u.useClass=ec,u[nW]=[lk],u));u={};R.addProvider((u.provide=Gb,u.useClass=Gb,u[nW]=[_.rv],u));_.E("web_enable_prefetching_videos_on_home")&&
(R.addProvider({provide:nx,useClass:nx}),R.addProvider({provide:Az,useClass:Az}));u={};R.addProvider((u.provide=Cz,u.useClass=Cz,u[nW]=[_.rv],u));R.addProvider({provide:hP,useClass:hP});u={};R.addProvider((u.provide=u2,u.useClass=u2,u[nW]=[_.JN,_.rv],u));u={};R.addProvider((u.provide=Z4,u.useClass=Z4,u[nW]=[_.rv],u));R.addProvider({provide:ac,useClass:ac});R.addProvider({provide:Pu,useClass:Pu});u={};R.addProvider((u.provide=MV,u.useClass=MV,u[nW]=[lk,_.rv],u));u={};R.addProvider((u.provide=Lz,u.useClass=
Lz,u[nW]=[lk,_.rv,_.JN],u));u={};R.addProvider((u.provide=b2,u.useClass=b2,u[nW]=[_.rv],u));u={};R.addProvider((u.provide=Nw,u.useClass=Nw,u[nW]=[_.rv,_.JN],u));u={};R.addProvider((u.provide=Bu,u.useClass=Bu,u[nW]=[_.fr],u));u={};R.addProvider((u.provide=UN,u.useClass=UN,u[nW]=[_.fr],u));R.addProvider({provide:i8,useClass:i8});R.addProvider({provide:fz,useClass:fz});R.addProvider({provide:wX,useClass:wX});R.addProvider({provide:OS,useClass:OS});R.addProvider({provide:vu,useClass:vu});R.addProvider({provide:dd,
useClass:dd});R.addProvider({provide:YU,useClass:YU});_.E("kevlar_enable_mss_lazy_load")&&R.addProvider({provide:_.UX,useClass:OCz});R.addProvider({provide:_.AC,useClass:cS});R.addProvider({provide:gS,useFactory:function(){return _.xN.getInstance()}});
R.addProvider({provide:k1f,useFactory:Lsn});R.addProvider({provide:rd,useFactory:function(){return _.ti.getInstance()}});
R.addProvider({provide:cEH,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});u={};R.addProvider((u.provide=_.YW,u.useClass=_.YW,u[nW]=[_.fr,_.rv,_.Cq,k1f,rd,gS,cEH,ZX],u));R.addProvider({provide:_.Ke,useClass:TXF});R.addProvider({provide:_.eNC,useClass:UPG});u={};R.addProvider((u.provide=NV,u.useClass=NV,u[nW]=[_.eNC],u));u={};R.addProvider((u.provide=_.vH,u.useFactory=function(K){return K.upliftCompletionResolver.promise},u[nW]=[arf],u));
u=_.Hh("IS_SHELL_LOAD")?"aa":"eocs";var O=_.Hh("IS_SHELL_LOAD")?3:2;_.TC().parkOrScheduleJob(function(){w6C()},O,u);
_.TC().parkOrScheduleJob(function(){_.vh().resolve(r1).start()},2,"eocs");
_.TC().parkOrScheduleJob(function(){KAt()},2,"eocs");
_.TC().parkOrScheduleJob(function(){_.vh().resolve(Va).start()},2,"eocs");
_.E("kevlar_debug_data_app_registration_ks")||cah();R.addProvider({provide:_.LL,useValue:new t9i(f.root)});R.addProvider({provide:B5,useValue:new eqD});R.addProvider({provide:_.j9k,useValue:new bPl(f.root)});R.addProvider({provide:_.DM,useValue:new pgk});R.addProvider({provide:_.mf,useClass:FC});R.addProvider({provide:bZE,useClass:Oo});_.E("kevlar_network_sli_killswitch")||R.addProvider({provide:j7S,useValue:sWI});R.addProvider({provide:WPw,useFactory:ah5});_.E("web_bind_fetch")&&(u={},R.addProvider((u.provide=
E5l,u.useFactory=F5n,u[nW]=[_.Y8(WPw)],u)));_.E("web_bind_parse")&&(u={},R.addProvider((u.provide=tth,u.useFactory=wAX,u[nW]=[_.Y8(WPw)],u)));_.E("web_bind_window_request")&&(u={},R.addProvider((u.provide=CB2,u.useFactory=mzq,u[nW]=[_.Y8(WPw)],u)));u={};R.addProvider((u.provide=uQi,u.useFactory=JQD,u[nW]=[_.vH,KH,_.oe],u));u={};R.addProvider((u.provide=RQY,u.useClass=pz,u[nW]=[uQi],u));R.addProvider({provide:QiC,useClass:a3E});R.addProvider({provide:v0k,useClass:rIk});u=[].concat(_.yq(oX));_.E("web_continuation_response_processing")&&
u.push(_.Tw);u.push(mik);_.E("enable_share_panel_navigation_logging_fix_on_web")&&u.push(_.eok);R.addProvider({provide:tJP,useValue:u});R.addProvider({provide:Z$n,useClass:YsF});R.addProvider({provide:T7X,useClass:DXm});u={};R.addProvider((u.provide=O$X,u.useClass=e2f,u[nW]=[lk],u));_.JA.addLowPriorityJob(function(){i_q()});
u={};R.addProvider((u.provide=vcl,u.useFactory=function(K){return function(q){var F,w=(F=_.t(q.commandMetadata,_.vc))==null?void 0:F.url;if(!w)throw new _.ts("No URL for PBJ Command",q);w=WFP(w,{pbj:"1"});F=Pqn(w,{})||{};F=Object.assign({},F,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Tf("STS").toString()});q=_.As({command:JSON.stringify(q),session_token:_.Tf("XSRF_TOKEN")});return K.fetch(w,{method:"POST",headers:F,body:q})}},u[nW]=[T7X],u));
u=[];u.push(R.resolve(v0k));O={};O=(O.client_location=_.pn.getInstance(),O.consistency=_.W90(),O.entities=R.resolve(wNC),O.response_received_commands=R.resolve(Z$n),O.store=R.resolve(_.fbe),O.tokens=R.resolve(v0k),O);if(_.E("web_shorts_prefetch_service_enabled")){var c=new jiY(R.resolve(_.XC));O.shorts_prefetch=c}O.adblock_detection=R.resolve(O$X);R.addProvider({provide:_.$M,useClass:_.$M});c=R.resolve(ApA);var h=[];if(_.E("PremiumClientSharedConfig__enable_att_context_processor")||_.E("enable_att_for_transcript_request_on_web_client"))R.addProvider({provide:rYH,
useClass:YDG}),h.push(R.resolve(rYH));if(_.E("owl_pl_await")){var l={};R.addProvider((l.provide=AnS,l.useFactory=function(K){return new KPh(K)},l[nW]=[_.$M],l));
h.push(R.resolve(AnS))}R_F(c,R.resolve(T7X),R.resolve(Q7m),O,R.resolve(_.XC),u,h,R.resolve(RQY),R.resolve(QiC));R.addProvider({provide:_.JN,useValue:_.PM.instance});_.E("start_client_gcf")&&R.addProvider({provide:NB,useValue:cAY()});R.addProvider({provide:QxF,useFactory:function(){return new QxF(_.vh().resolve(_.$M),_.ti.getInstance())}});
_.TC().parkOrScheduleJob(function(){WAI()},1,"eocs");
u={};R.addProvider((u.provide=i6,u.useClass=i6,u[nW]=[_.oe,_.JN],u));R.addProvider({provide:_.HZi,useFactory:_.q3.getInstance});_.TC().parkOrScheduleJob(function(){_.vh().resolve(i6).refresh()},0,"eocs");
iet(Pfm.watchEndpointMap||{},c.reelWatchEndpointMap||{},f.injector.resolve(_.JN));R.addProvider({provide:yk,useValue:_.Fs.instance});_.E("kevlar_signal_collection_killswitch")||(u={},R.addProvider((u.provide=ZZH,u.useClass=ZZH,u[nW]=[EN,VI],u)),_.TC().parkOrScheduleJob(function(){_.vh().resolve(ZZH).record()},1,"eocs"));
_.E("web_debug_handler_registration_killswitch")||_.TC().parkOrScheduleJob(function(){up5("DOWNLOAD_PES",NDP);_.E("offline_client_state_export_ks")||up5("OFFLINE_CLIENT_STATE",CnX)},0,"eocs");
_.E("kevlar_prevent_polymer_dynamic_font_load")&&_.TC().parkOrScheduleJob(function(){var K=[_.R0($Xe),_.R0(g55)];K=_.Z(K);for(var q=K.next();!q.done;q=K.next()){q=q.value;var F=document.createElement("link");_.oa(F,q,"stylesheet");document.head.appendChild(F)}},1,"eocs");
u=f.injector.resolve(_.JN);_.iPl.instance=new _.iPl(u);KV2(SDl(new v6l(u)));u={};f.injector.addProvider((u.provide=rJ,u.useFactory=function(K){(K=K==null?void 0:K.getCurrentPage())?K=K.visibilityObserver:(kz9||(kz9=N2P()),K=kz9);return K},u[nW]=[_.Y8(_.sz)],u.skipCache=!0,u));
R.addProvider({provide:_.MS,useClass:Cw});R.addProvider({provide:a3,useClass:Gjk});f.injector.addProvider({provide:$FC,useValue:E6f});R.addProvider({provide:CMf,useValue:pal});R.addProvider({provide:_.oF,useValue:ekh});f=R.addProvider;Muk||(Muk=new IrI);f.call(R,{provide:_.P1f,useValue:Muk});R.addProvider({provide:_.SQ,useValue:_.Tf("HTML_DIR")==="rtl"?"rtl":"ltr"});R.addProvider({provide:Q_k,useClass:pNC});R.addProvider({provide:_.kr,useClass:X9});_.vh().addProvider({provide:E0i,useValue:_.E("enable_web_delhi_icons")?
hew.concat(lpm):Xrw.concat(ZEe)});R.addProvider({provide:_.Z6,useClass:_.Z6});R.addProvider({provide:_.Gqz,useValue:new elS});R.addProvider({provide:QNk,useClass:AIF});R.addProvider({provide:cv,useClass:cv});R.addProvider({provide:ZT,useClass:ZT});f={};R.addProvider((f.provide=Iv,f.useClass=Iv,f[nW]=[_.JN,_.yT],f));R.addProvider({provide:dX,useClass:dX});R.addProvider({provide:PmY,useClass:JJk});R.addProvider({provide:qw,useClass:qw});R.addProvider({provide:m8C,useValue:RkG});R.addProvider({provide:_.Hw,
useClass:aEE});_.E("enable_payments_purchase_manager")&&R.addProvider({provide:O7k,useClass:fEl});R.addProvider({provide:xXw,useFactory:function(){return function(K){return _.o5h(K)}}});
R.addProvider({provide:_.n0f,useClass:V1Y});f={};R.addProvider((f.provide=tc,f.useClass=tc,f[nW]=[_.n0f],f));R.addProvider({provide:l2,useClass:l2});R.addProvider({provide:zPY,useValue:ZPA});R.addProvider({provide:Yok,useValue:_.xlF});R.addProvider({provide:aQP,useClass:DlY});R.addProvider({provide:oCm,useValue:BH5});f={};R.addProvider((f.provide=_.Q7,f.useClass=xtz,f[nW]=[oCm],f));_.E("web_ephemeral_actions")&&(f={},R.addProvider((f.provide=_.kL,f.useClass=lM,f[nW]=[_.zM,_.mf],f)));if(_.E("web_explore_hub_on_hover")||
_.E("web_client_explore_hub_on_hover"))f={},R.addProvider((f.provide=QI,f.useClass=QI,f[nW]=[_.JN,gS],f));R.addProvider({provide:UNn,useValue:JBh});f={};R.addProvider((f.provide=JpY,f.useClass=DRG,f[nW]=[_.JN],f))}},KvK);var ATt={},apK=(ATt.initialized={priority:10,callback:function(){if(!p0X){$L7();W5D("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.lZ(_.mx(W5D,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.E("log_heartbeat_with_lifecycles")){var f={};nI.instance||(nI.instance=new nI);nI.instance.install((f.document_visible={callback:E4q,priority:10},f.document_hidden={callback:E4q,priority:10},f))}else _.f0(document,"visibilitychange",E4q);p0X=!0}(f=_.z4())&&f!=="UNDEFINED_CSN"&&Aoh(f)}},ATt);var FvK={},wr2=(FvK.initialized={callback:function(f){var R=_.dx(232091),u=f.injector.resolve(_.Cq);_.c1(u,R);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?B6n()&&_.hi(u,R):(f=f.injector.resolve(xXw)("refresh_detector"))&&(f.get("first_tab_load")?_.hi(u,R):f.set("first_tab_load","1"))}},FvK);var mel={},Q8K=(mel.initialized={priority:10,callback:VB2},mel);var WvN={},E_l=(WvN.initialized={priority:0,callback:function(){var f=new luk,R="other";_.lH?R="chrome":_.ZY?R="firefox":_.IV?R="safari":sb&&(R="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(u){f.increment(_.Q4(),u,R)}).catch(function(){f.increment(_.Q4(),!1,R)}):f.increment(_.Q4(),!1,R)}},WvN);var t5a={},CrX=(t5a.rendering={priority:8,callback:Y37},t5a);var yTm={},deK=(yTm.rendering={priority:10,callback:kyt},yTm.rendered={callback:lbP},yTm),Nl5={},Lvz=(Nl5.rendering={callback:kyt},Nl5.rendered={callback:lbP},Nl5);var bEe=!1,prl={},j8m=(prl.initialized={priority:10,callback:function(){bEe||(Ccn({didPatch:function(f){f.el&&CMB(f.el,f.props)},
didUnmount:function(f){ELn(f.el)}}),bEe=!0)}},prl);var DeX=/^\/shorts\/?$/;_.zf("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.E("kevlar_enable_mss")){_.R87(new xBi);var JTK=!0,zeK,dK;JTK=JTK===void 0?!1:JTK;zeK=zeK===void 0?!1:zeK;dK=dK===void 0?{}:dK;var Tl9=dK.cssRowKey||"",HES=dK.combinedSignature||"";!Tl9&&window&&window._F_cssRowKey&&(Tl9=window._F_cssRowKey,!HES&&window._F_combinedSignature&&(HES=window._F_combinedSignature));if(Tl9&&typeof window._F_installCss!=="function")throw Error("td");var Ipw=dK.loaderClass||_.Iz,N3=Bvh("base-js"),M5a,Pr9=xWX("",N3);M5a=_.lh(Pr9);var Lw=new Ipw(M5a,Tl9,HES,JTK,zeK),UeS=
dK.useCors||N3&&N3.hasAttribute("crossorigin"),eew=dK.corsMode||N3&&N3.getAttribute("crossorigin");UeS&&(Lw.useCors_=UeS);eew&&(Lw.corsMode_=eew);dK.urlMaxLength&&(Lw.urlMaxLength=dK.urlMaxLength);dK.fetchPriority&&(Lw.fetchPriority=dK.fetchPriority);var Gz5=JK();Gz5.JSC$8058_loader_=Lw;Gz5.setBatchModeEnabled(!0)}
(function(){var f=document.querySelector("ytd-app");if(!f)throw Error("Ej");f=new Kw({root:f,injector:_.vh()});f.install(apK);var R={};f.install((R.initialized={priority:10,callback:wXl},R));_.E("wp_lat_b")&&(R={},f.install((R.initialized={priority:10,callback:function(){K5t()}},R)));
R={};f.install((R.rendered={priority:0,callback:AEX},R));R={};f.install((R.rendered={priority:0,callback:function(){_.JA.addLowPriorityJob(function(){_.j_Y>1&&(XXn(),K_5())},4E4)}},R));
f.install(QkX);f.install(wr2);f.install(j8m);See||(See=!0,Object.assign(u4,{handleError:N80,enableComponentStacksInErrorMessages:!1,enableLazyTsx:_.E("mweb_enable_wiz_lazy_tsx")||_.E("kevlar_enable_wiz_lazy_tsx")}),Jre=u0C,ENB=L5P,MVn=iyX,TJq=r8h,_.E("ytwiz_enable_debug_component_props")&&oNX());f.install(Llm);f.install(qEK);f.install(wGe);f.install(frk);f.install(X6F);f.install(dte);f.install(qvw);_.E("kevlar_enable_mss_lazy_load")&&f.install(Q8K);f.install(akN);f.install(E_l);if(!_.Hh("IS_SHELL_LOAD")||
_.E("kevlar_fetch_initial_data_promise_client")||_.E("sw_nav_preload_pbj")){var u=_.Kt(window.location.href);R=u&&u==="/watch";u=u&&u.match(DeX);R?f.install(Lvz):u?f.install(CrX):f.install(deK)}else f.install(lkm);f.install(ECK);_.E("web_enable_prefetching_videos_on_home")&&f.install(Dtw);_.E("start_client_gcf")&&f.install(bhe);f.install(VOH);(new k_f).increment("INSTALLED");f.install(pGe);f.install(XGl);f.transition("initialized");RPn()})();
_.ZM=[[["YzgzeTRlaDRna2luZCNibW8=","anpxa252YWx1ZSMzMTZkbWV4"],"Ym9saTl3a2thQURfUExBQ0VNRU5UX0tJTkRfRU5EI2F6Mw=="]];_.hN=["YWxsYmFja3MjcW0zNTRiNXRnemw5Z2xvYmFsQw==","OXR5azd1ODNmb25BYm5vcm1hbGl0eURldGVjdGVkI2tybw==","cCNxdjdmOWNqeTAzbnRvbkFkU2tp","I3pkMGR4MTVpOGFvMHJhd19wbGF5ZXJfcmVzcG9uc2U=","bmZpZyNxc2EwbW45eGN1YTZhZFBsYWNlbWVudENv"];_.eo="YWxsYmFja3MjcW0zNTRiNXRnemw5Z2xvYmFsQw== OXR5azd1ODNmb25BYm5vcm1hbGl0eURldGVjdGVkI2tybw== cCNxdjdmOWNqeTAzbnRvbkFkU2tp I3pkMGR4MTVpOGFvMHJhd19wbGF5ZXJfcmVzcG9uc2U= bHRpcGxlX3NraXBzX2tzI3QzcmZmMWg0b2xwN3dlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== ZiM0Nmo2OWR0NDVyejZhYl9zYV9l bmZpZyNxc2EwbW45eGN1YTZhZFBsYWNlbWVudENv".split(" ");
_._ModuleManager_initialize=function(f,R){if(!_.pR){if(!_.DN)return;_.R87(_.DN())}_.pR.setAllModuleInfoString(f,R)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.D6=function(f,R,u,O,c){var h={};R&&(h[R]=u);O?h.errorType=O:c&&(h.errorReason=c);_.Jr(f,h);_.zL()};
_.Jz=function(f){var R=_.TC();return _.$Dk(R,f,1)};
_.NM({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 f=this.query;f&&(this.full||f[0]==="("||(f="("+f+")"),this._mq=window.matchMedia(f),this._add(),this.queryHandler(this._mq))},
queryHandler:function(f){this._setQueryMatches(f.matches)}});var Yvm;var v_e;var iEw=function(){};
_.X=iEw.prototype;_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._focusedChanged=function(){};
_.X._createRipple=function(){};
_.X.registered=function(){};
_.X._invalidChanged=function(){};
_.X.hasValidator=function(){};
_.X.validate=function(){};
_.X._getValidity=function(){};
_.X._requiredChanged=function(){};
_.X._valueChanged=function(){};
_.X._checkedChanged=function(){};
_.X._buttonStateChanged=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
iEw=_.NM({is:"tp-yt-paper-radio-button",_template:function(){if(v_e!==void 0)return v_e;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;Yvm===void 0&&(Yvm=document.createElement("template"));var O=Yvm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return v_e=f},
behaviors:[_.pMf],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(){_.su(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var f=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),R=Math.floor(3*f);R%2!==f%2&&R++;this.updateStyles({"--paper-radio-button-ink-size":R+"px"})}})}});var rTS;var f0z;_.NM({_template:function(){if(f0z!==void 0)return f0z;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;rTS===void 0&&(rTS=document.createElement("template"));var O=rTS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return f0z=f},
is:"tp-yt-paper-radio-group",behaviors:[_.osf],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(f){var R=this._valueToItem(f);if(!R||!R.hasAttribute("disabled")){if(this.selected){R=this._valueToItem(this.selected);if(this.selected==f)if(this.allowEmptySelection)f="";else{R&&(R.checked=!0);return}R&&
(R.checked=!1)}_.GJ.select.apply(this,[f]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(f){this._focusPrevious();f.preventDefault();this._activateFocusedItem()},
_onDownKey:function(f){this._focusNext();f.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(f){_.B_k._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(f){_.B_k._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.GJ._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Nj._resetTabindices.apply(this,arguments);this.items.forEach(function(f){f.removeAttribute("aria-selected")},this)}});var R9m;_.j6("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var zF=function(){return _.U.apply(this,arguments)||this};
_.y(zF,_.U);_.X=zF.prototype;_.X.computeHasPrimaryIcon=function(f){return!(!f.icon&&!f.thumbnail)};
_.X.computeHasSecondary=function(f){return!(!f.secondaryIcon&&!f.secondaryNotificationText)};
_.X.computeHideSecondaryString=function(f){return!_.E("disable_hide_empty_secondary_string")&&!f.secondaryNotificationText};
_.X.computeCompactLinkStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeHasFitHeight=function(f){return f==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.X.isActiveEndpoint=function(f){return(f=this.get("commandMetadata.webCommandMetadata.url",f))?_.Kt(window.location.href)!=="/account_transfer_channel"&&_.Kt(window.location.href)!=="/gaia_link"&&_.Kt(window.location.href)!=="/channel_switcher"||f!=="/account"?_.Kt(window.location.href)===f:!0:!1};
_.X.onTap=function(){var f;((f=this.data)==null?0:f.serviceEndpoint)&&_.hH(this.hostElement,[this.data.serviceEndpoint])};
zF.prototype.onTap=zF.prototype.onTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zF.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.S("design:type",Boolean)],zF.prototype,"active",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.S("design:type",String)],zF.prototype,"compactLinkStyle",void 0);
_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",Object)],zF.prototype,"icon",void 0);_.B([_.I({computed:"computeIcon_(data.secondaryIcon)"}),_.S("design:type",Object)],zF.prototype,"secondaryIcon",void 0);_.B([_.I({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],zF.prototype,"hasSecondary",void 0);_.B([_.I({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],zF.prototype,"hideSecondaryString",void 0);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zF.prototype,"onTap",null);zF=_.B([_.e({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],zF);
_.G(zF,"ytd-compact-link-renderer",function(){if(R9m!==void 0)return R9m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return R9m=f},{mode:1});var u3K;_.j6("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var TF=function(){var f=_.U.apply(this,arguments)||this;f.role="link";f.tabindex="0";f.actionMap=_.E("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 f};
_.y(TF,_.U);_.X=TF.prototype;_.X.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.NL()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.X.getCurrentTheme=function(){return _.Ln()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.NL()};
_.X.onThemeSelected=function(f,R){var u=f||R?f:_.dY(),O=(u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.wdD(_.Kt(window.location.href));_.W_(0,165,f);_.W_(0,174,R);this.prefs.save();O&&_.OJ(this.hostElement,"yt-dark-mode-toggled-action",[u]);_.OJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.onTap=function(){this.data.serviceEndpoint&&_.hH(this.hostElement,[this.data.serviceEndpoint])};
_.X.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.X.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.X.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
TF.prototype.onTap=TF.prototype.onTap;TF.prototype.dataChanged=TF.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],TF.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.Sv),_.S("design:type",Object)],TF.prototype,"paperItemBehaviors",void 0);_.B([_.I(),_.S("design:type",Object)],TF.prototype,"data",void 0);_.B([_.I({value:function(){return _.Qu()}}),
_.S("design:type",_.vs)],TF.prototype,"prefs",void 0);_.B([_.I(),_.S("design:type",Object)],TF.prototype,"label",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],TF.prototype,"role",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],TF.prototype,"tabindex",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TF.prototype,"dataChanged",null);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TF.prototype,"onTap",null);TF=_.B([_.e({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],TF);
_.G(TF,"ytd-toggle-theme-compact-link-renderer",function(){if(u3K!==void 0)return u3K;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return u3K=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.sK=function(f){return function(R,u){var O=f||u.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(R,u,{get:function(){var c;return this.$?this.$[O]:(c=_.Al(this))==null?void 0:c.querySelector("#"+O)},
enumerable:!0,configurable:!0})}};_.n4=function(f){f=f===void 0?!1:f;_.d9.call(this);this.pubSub_=new _.aV(f);_.qG(this,this.pubSub_)};
_.f6(_.n4,_.d9);_.n4.prototype.subscribe=function(f,R,u){return this.isDisposed()?0:this.pubSub_.subscribe(f,R,u)};
_.n4.prototype.unsubscribe=function(f,R,u){return this.isDisposed()?!1:this.pubSub_.unsubscribe(f,R,u)};
_.n4.prototype.unsubscribeByKey=function(f){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(f)};
_.n4.prototype.publish=function(f,R){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var eWh=function(){_.D6("ypcRedeemFlowStarted")},Ab=function(f){_.D6("ypcRedeemFlowFailed",void 0,void 0,void 0,f)},Gje=function(f,R,u){R&&u&&(f.videos.forEach(function(O){O.videoId===R&&(O.itemId=u)}),f.recommendedVideos.forEach(function(O){O.videoId===R&&(O.itemId=u)}))};var BXm;var oFt;/*

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
*/
_.NM({_template:function(){if(oFt!==void 0)return oFt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;BXm===void 0&&(BXm=document.createElement("template"));var O=BXm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return oFt=f},
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(f,R){var u=this._resolveSrc(f);u!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",f===""||R?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 f=this.$.sizedImgDiv.style,R=this.$.placeholder.style;f.backgroundSize=R.backgroundSize=this.sizing;f.backgroundPosition=R.backgroundPosition=this.sizing?this.position:"";f.backgroundRepeat=R.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(f){f=_.cC(f,this.$.baseURIAnchor.href);f.length>=2&&f[0]==="/"&&f[1]!=="/"&&(f=(location.origin||location.protocol+"//"+location.host)+f);return f}});var xwm;var SS5;_.NM({_template:function(){if(SS5!==void 0)return SS5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;xwm===void 0&&(xwm=document.createElement("template"));var O=xwm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return SS5=f},
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(f){return f?"false":"true"},
_headingChanged:function(f){var R=this.getAttribute("heading"),u=this.getAttribute("aria-label");typeof u==="string"&&u!==R||this.setAttribute("aria-label",f)},
_computeHeadingClass:function(f){return f?" over-image":""},
_computeAnimated:function(f){return f}});var $wS=new _.Y("addRendererToItemSectionAction");var gFe;var aq=function(){return _.U.apply(this,arguments)||this};
_.y(aq,_.U);aq.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aq.prototype,"rendererBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],aq.prototype,"dismissibleItemBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],aq.prototype,"rendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aq.prototype,"data",void 0);aq=_.B([_.e({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],aq);
_.G(aq,"ytd-comment-history-entry-renderer",function(){if(gFe!==void 0)return gFe;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return gFe=f},{mode:1});var sBK;_.j6("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.j6("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var FE=function(){return _.U.apply(this,arguments)||this};
_.y(FE,_.U);_.X=FE.prototype;_.X.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.onKeyUp=function(f){if(f.keyCode===13)this.onTap()};
_.X.onTap=function(){this.data.recordClickEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var f=this.data.navigationEndpoint;f&&_.t(f,_.pN)&&_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})};
_.X.readChanged=function(){var f;_.c2(this.hostElement,"unread",!((f=this.data)==null?0:f.read))};
_.X.dataChanged=function(){this.data&&_.c2(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.X.computeThumbnailSize=function(){var f;return((f=this.data)==null?0:f.highPriorityNotification)?32:48};
_.X.getEndpointURL=function(f){return f&&!_.t(f,_.pN)?this.componentBehavior.computeHref_(f):null};
_.X.getEndpointData=function(f){return f&&!_.t(f,_.pN)?f:null};
FE.prototype.computeThumbnailSize=FE.prototype.computeThumbnailSize;FE.prototype.dataChanged=FE.prototype.dataChanged;FE.prototype.readChanged=FE.prototype.readChanged;FE.prototype.onKeyUp=FE.prototype.onKeyUp;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],FE.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FE.prototype,"data",void 0);_.B([_.I({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.S("design:type",Number)],FE.prototype,"thumbnailSize",void 0);_.B([_.Kf("keyup"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],FE.prototype,"onKeyUp",null);
_.B([_.qM("data.read"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FE.prototype,"readChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FE.prototype,"dataChanged",null);_.B([_.qM("data.highPriorityNotification"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FE.prototype,"computeThumbnailSize",null);
FE=_.B([_.e({is:"ytd-notification-renderer",disableElementRegistration:!0})],FE);
_.G(FE,"ytd-notification-renderer",function(){if(sBK!==void 0)return sBK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return sBK=f},{mode:1});var nF2;var w6=function(){return _.U.apply(this,arguments)||this};
_.y(w6,_.U);w6.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"}}}};
w6.prototype.computeActionButtonClass=function(f){return!f.actionButtons||f.actionButtons.length<=1?"single-button":f.description?"vertical-buttons":"horizontal-buttons"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],w6.prototype,"data",void 0);w6=_.B([_.e({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],w6);
_.G(w6,"ytd-playlist-show-metadata-renderer",function(){if(nF2!==void 0)return nF2;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return nF2=f},{mode:1});var VJa;_.j6("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var mR=function(){return _.U.apply(this,arguments)||this};
_.y(mR,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mR.prototype,"data",void 0);mR=_.B([_.e({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],mR);
_.G(mR,"ytd-purchase-item-renderer",function(){if(VJa!==void 0)return VJa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return VJa=f},{mode:1});var YSX;var vFz={};vFz.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(f){if(f)return f.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(f){if(f==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.j6("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var QB=function(){return _.U.apply(this,arguments)||this};
_.y(QB,_.U);QB.prototype.onYtNavigate=function(f){var R=this.openPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);R&&(f.stopPropagation(),this.openPopupBehavior.openPopup(R))};
QB.prototype.onYtNavigate=QB.prototype.onYtNavigate;_.B([_.z(vFz.YtSimpleTextSectionBehavior),_.S("design:type",Object)],QB.prototype,"ytSimpleTextSectionBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],QB.prototype,"openPopupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],QB.prototype,"data",void 0);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],QB.prototype,"onYtNavigate",null);QB=_.B([_.e({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],QB);
_.G(QB,"ytd-simple-text-section-renderer",function(){if(YSX!==void 0)return YSX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return YSX=f},{mode:1});var iz2;_.j6("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var WD=function(){return _.U.apply(this,arguments)||this};
_.y(WD,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WD.prototype,"data",void 0);WD=_.B([_.e({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],WD);
_.G(WD,"ytd-unlimited-page-feature-info-renderer",function(){if(iz2!==void 0)return iz2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return iz2=f},{mode:1});var rcm;var fQ5;var E3=function(){return _.U.apply(this,arguments)||this};
_.y(E3,_.U);E3.prototype.dataChanged=function(){if(this.data){var f=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);f&&(f=_.rR(f,screen.width),this.hostElement.style.backgroundImage="url("+f+")")}};
E3.prototype.dataChanged=E3.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],E3.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],E3.prototype,"dataChanged",null);E3=_.B([_.e({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],E3);
_.G(E3,"ytd-post-redemption-section-renderer",function(){if(fQ5!==void 0)return fQ5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return fQ5=f},{mode:1});var RZ5;var tb=function(){return _.U.apply(this,arguments)||this};
_.y(tb,_.U);tb.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tb.prototype,"data",void 0);tb=_.B([_.e({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],tb);
_.G(tb,"ytd-ypc-post-redemption-renderer",function(){if(RZ5!==void 0)return RZ5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return RZ5=f},{mode:1});_.j6("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Co=function(){var f=_.U.apply(this,arguments)||this;f.MIN_CODE_LENGTH=12;f.MAX_CODE_LENGTH=24;return f};
_.y(Co,_.U);_.X=Co.prototype;_.X.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.X.created=function(){this.riskService=new _.$Jn;this.loadPaymentThenable=_.sJn(_.Tf("YPC_MB_URL"))};
_.X.ready=function(){var f=this;this.code.addEventListener("keypress",function(R){f.onCodeInputKeypress(R)})};
_.X.dataChanged=function(){var f=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(R){R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,u.type==="attributes"&&u.attributeName==="dark"&&f.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.X.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var f=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+f+")")}};
_.X.computeRedeemButton=function(f){(f=this.get("redeemButton.buttonRenderer",f))&&(f=Object.assign({},f,{serviceEndpoint:void 0}));return f};
_.X.onRedeemButtonTap=function(f){f.stopPropagation();eWh();this.redeemCode()};
_.X.redeemCode=function(){var f=this;this.isLoading=!0;var R=this.riskService.init();_.EF([R,this.loadPaymentThenable]).then(function(){var u=f.data.redeemButton.buttonRenderer.serviceEndpoint,O=_.gXt(),c=payments.business.integration.ClientTokenFactory.createClientToken(_.t(u,_.BSk).countryCode,O);O={c:f.code.value.trim(),rd:window.btoa(O),ctk:c};u&&_.vh().resolve(_.rv).resolveCommand(u,{form:Object.assign({},O,{element:f.hostElement})})},function(){f.showGenericError();
Ab("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.IS(Error("Sl"))})};
_.X.onYtServiceRequestCompleted=function(f){f.stopPropagation();this.isLoading=!1;var R,u;this.errorMessage=(R=f.detail)==null?void 0:(u=R.data)==null?void 0:u.errorMessage;var O,c;this.postRedemptionRenderer=(O=f.detail)==null?void 0:(c=O.data)==null?void 0:c.renderer;var h,l;if(f=(h=f.detail)==null?void 0:(l=h.data)==null?void 0:l.redirectEndpoint)this.isLoading=!0,_.ul(this.hostElement,"yt-navigate",{endpoint:f});this.errorMessage?Ab("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
f)&&_.D6("ypcRedeemFlowSucceeded")};
_.X.onYtServiceRequestError=function(f){f.stopPropagation();this.isLoading=!1;if(f=this.get("detail.error.message",f))this.errorMessage=_.S8(f);Ab("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.X.onInvokeInstrumentManagerActionCompleted=function(f){f.stopPropagation();this.redeemCode()};
_.X.onInvokeInstrumentManagerActionError=function(f){f.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",f)){case "instrumentManagerLoadError":this.showGenericError();Ab("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Ab("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.D6("ypcRedeemFlowCancelled")}};
_.X.onInput=function(){var f=this;_.UU(this,"onInput",function(){var R=f.code.value.trim();f.redeemButtonDisabled=R.length<f.MIN_CODE_LENGTH||R.length>f.MAX_CODE_LENGTH},200)};
_.X.onCodeInputKeypress=function(f){f.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(eWh(),this.redeemCode())};
_.X.computeImageUrl=function(f){return f?_.rR(f.thumbnails,600):null};
_.X.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Co.prototype.onInvokeInstrumentManagerActionError=Co.prototype.onInvokeInstrumentManagerActionError;Co.prototype.onInvokeInstrumentManagerActionCompleted=Co.prototype.onInvokeInstrumentManagerActionCompleted;Co.prototype.onYtServiceRequestError=Co.prototype.onYtServiceRequestError;Co.prototype.onYtServiceRequestCompleted=Co.prototype.onYtServiceRequestCompleted;Co.prototype.dataChanged=Co.prototype.dataChanged;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Co.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Co.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Boolean)],Co.prototype,"redeemButtonDisabled",void 0);
_.B([_.I(),_.S("design:type",Object)],Co.prototype,"errorMessage",void 0);_.B([_.I(),_.S("design:type",Object)],Co.prototype,"postRedemptionRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],Co.prototype,"observer",void 0);_.B([_.a4("#code"),_.S("design:type",HTMLInputElement)],Co.prototype,"code",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Co.prototype,"dataChanged",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Co.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Co.prototype,"onYtServiceRequestError",null);
_.B([_.Kf("yt-invoke-instrument-manager-action-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Co.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.B([_.Kf("yt-invoke-instrument-manager-action-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Co.prototype,"onInvokeInstrumentManagerActionError",null);Co=_.B([_.e({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Co);
_.G(Co,"ytd-redeem-code-renderer",function(){if(rcm!==void 0)return rcm;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return rcm=f},{mode:1});var upm;_.j6("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var yB=function(){var f=_.U.apply(this,arguments)||this;f.businessEmailDisplayState="HIDE_SECTION";return f};
_.y(yB,_.U);_.X=yB.prototype;_.X.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}}}}}};
_.X.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"};
_.X.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.X.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Um("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.X.onYtServiceRequestCompleted=function(f){var R;if((R=f.detail.data)==null?0:R.businessEmail)this.businessEmail=f.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=f.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=f.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.X.computeEmailHref=function(f){return"mailto:"+f};
_.X.computeSafeUrl=function(f){if(f)return _.EO(f)};
_.X.onBusinessEmailCaptchaSubmit=function(){var f;(f=this.data)!=null&&f.onBusinessEmailRevealClickCommand&&(f=this.JSC$19072_captchaTextarea.value)&&(f={recaptcha_response_token:f,channel_id:this.data.channelId},_.vh().resolve(_.rv).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},f,{element:this.hostElement})}))};
_.X.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Vy.Object.defineProperties(yB.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 f,R;return!((f=this.data)==null||!f.primaryLinks)&&!((R=this.data)==null?0:R.links)&&this.data.primaryLinks.every(function(u){return u.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.primaryLinks)&&!((R=this.data)==null?0:R.links)&&!this.shouldShowNewLinks}}});
yB.prototype.onYtServiceRequestCompleted=yB.prototype.onYtServiceRequestCompleted;yB.prototype.dataChanged=yB.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],yB.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.a4("#g-recaptcha-response"),_.S("design:type",HTMLTextAreaElement)],yB.prototype,"JSC$19072_captchaTextarea",void 0);_.B([_.I(),_.S("design:type",Object)],yB.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],yB.prototype,"businessEmailDisplayState",void 0);_.B([_.I(),_.S("design:type",String)],yB.prototype,"businessEmail",void 0);_.B([_.I(),_.S("design:type",String)],yB.prototype,"businessEmailErrorMessage",void 0);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yB.prototype,"hideDetailsSection",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yB.prototype,"dataChanged",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yB.prototype,"shouldShowNewLinks",null);_.B([_.T("data","shouldShowLinks"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yB.prototype,"shouldShowLegacyLinks",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],yB.prototype,"onYtServiceRequestCompleted",null);yB=_.B([_.e({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],yB);
_.G(yB,"ytd-channel-about-metadata-renderer",function(){if(upm!==void 0)return upm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return upm=f},{mode:1});var ODK;_.j6("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var d6=function(){return _.U.apply(this,arguments)||this};
_.y(d6,_.U);d6.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],d6.prototype,"data",void 0);d6=_.B([_.e({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],d6);
_.G(d6,"ytd-channel-featured-content-renderer",function(){if(ODK!==void 0)return ODK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ODK=f},{mode:1});var cam;_.j6("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Nn=function(){var f=_.U.apply(this,arguments)||this;f.roundContainer=!0;f.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return f};
_.y(Nn,_.U);_.X=Nn.prototype;_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.X.dataChanged=function(){this.imageWidth=this.imageHeight=24;var f=this.data;f.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!f.style&&f.image&&f.image.thumbnails.length&&(f=f.image.thumbnails[0],this.imageWidth=f.width||0,this.imageHeight=f.height||0)};
_.X.computeSource=function(f){return f.secondarySource?_.$Z(f.secondarySource):_.$Z(f.source)};
_.X.computeClarifyStyle=function(f){return f?f.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.X.isLargeStyle=function(f){return f==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.X.computeBackgroundStyle=function(f){return f?f.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.X.computeHasActionButton=function(f){return!!f.actionButton};
_.X.computeHasBottomSection=function(f){return!!f.ctaHasBottomSection};
_.X.computeIsSourceMissing=function(f){return f.ctaHasBottomSection===!1?!0:f&&this.computeSource(f)?!1:!0};
_.X.computeSecondaryEndpoint=function(f){return f.secondaryEndpoint||f.endpoint};
Nn.prototype.dataChanged=Nn.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Nn.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],Nn.prototype,"imageWidth",void 0);_.B([_.I(),_.S("design:type",Number)],Nn.prototype,"imageHeight",void 0);
_.B([_.I({computed:"computeSecondaryEndpoint(data)"}),_.S("design:type",Object)],Nn.prototype,"secondaryEndpoint",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.S("design:type",Boolean)],Nn.prototype,"hasActionButton",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.S("design:type",Boolean)],Nn.prototype,"hasBottomSection",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.S("design:type",Boolean)],Nn.prototype,"missingSource",void 0);_.B([_.I({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],Nn.prototype,"icon",void 0);_.B([_.I({computed:"computeIcon_(data.secondaryIcon)"}),_.S("design:type",String)],Nn.prototype,"secondaryIcon",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.S("design:type",String)],Nn.prototype,"clarifyStyle",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.S("design:type",String)],Nn.prototype,"backgroundStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nn.prototype,"roundContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Nn.prototype,"amsterdamEnabled",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nn.prototype,"dataChanged",null);
Nn=_.B([_.e({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Nn);
_.G(Nn,"ytd-clarification-renderer",function(){if(cam!==void 0)return cam;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return cam=f},{mode:1});var X4t;var hZN;var Lo=function(){var f=_.U.apply(this,arguments)||this;f.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return f};
_.y(Lo,_.U);_.X=Lo.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.X.computeIcon=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.X.computeUseContacts=function(f){return!!f.contacts&&f.contacts.length>0};
_.X.computePhoneContact=function(f){var R,u;return(R=f.contacts)==null?void 0:(u=R.find(function(O){var c;return(O==null?void 0:(c=O.icon)==null?void 0:c.iconType)==="PHONE"}))==null?void 0:u.actionText};
_.X.computeSmsContact=function(f){var R,u;return(R=f.contacts)==null?void 0:(u=R.find(function(O){var c;return(O==null?void 0:(c=O.icon)==null?void 0:c.iconType)==="SMS"}))==null?void 0:u.actionText};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Lo.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Lo.prototype,"amsterdamEnabled",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.S("design:type",Boolean)],Lo.prototype,"useContacts",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.S("design:type",String)],Lo.prototype,"phoneContact",void 0);Lo=_.B([_.e({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Lo);
_.G(Lo,"ytd-single-action-emergency-support-renderer",function(){if(hZN!==void 0)return hZN;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return hZN=f},{mode:1});_.j6("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var bG=function(){var f=_.U.apply(this,arguments)||this;f.roundedContainer=!0;f.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return f};
_.y(bG,_.U);bG.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bG.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bG.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],bG.prototype,"amsterdamEnabled",void 0);
bG=_.B([_.e({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],bG);
_.G(bG,"ytd-emergency-onebox-renderer",function(){if(X4t!==void 0)return X4t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return X4t=f},{mode:1});var ZDz;_.j6("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var po=function(){return _.U.apply(this,arguments)||this};
_.y(po,_.U);po.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],po.prototype,"data",void 0);po=_.B([_.e({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],po);
_.G(po,"ytd-exploratory-results-renderer",function(){if(ZDz!==void 0)return ZDz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ZDz=f},{mode:1});var lQ5;_.j6("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var jB=function(){var f=_.U.apply(this,arguments)||this;f.messageData=null;return f};
_.y(jB,_.U);_.X=jB.prototype;_.X.onServiceRequestCompleted=function(f,R){f=R.actions||[];R=0;for(var u=f.length;R<u;R++){var O=f[R],c=void 0,h=void 0;if((c=_.t(O,_.WY))==null?0:(h=c.item)==null?0:h.messageRenderer)this.messageData=_.t(O,_.WY).item.messageRenderer}};
_.X.dataChanged=function(){var f=this.data;this.hostElement.hidden=!1;_.c2(this.hostElement,"is-channel",f&&!f.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.X.computeThumbnailWidth=function(f){return f?126:56};
_.X.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.X.onSubmitTap=function(){var f=this.data,R=this.selectedResponseIndex;f!==void 0&&R!==void 0&&(f=f.responses[R],f.responseData&&_.vh().resolve(_.rv).resolveCommand(f.responseData,{form:{element:this.hostElement}}))};
_.X.onDismissTap=function(){this.hostElement.hidden=!0;var f=this.data;f!==void 0&&f.dismissalEndpoint&&_.vh().resolve(_.rv).resolveCommand(f.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.updateSelectedResponseIndexFromBinding=function(f){this.selectedResponseIndex=f.detail.value};
jB.prototype.onSelectedResponseIndexChange=jB.prototype.onSelectedResponseIndexChange;jB.prototype.dataChanged=jB.prototype.dataChanged;jB.prototype.onServiceRequestCompleted=jB.prototype.onServiceRequestCompleted;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jB.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],jB.prototype,"messageData",void 0);
_.B([_.I(),_.S("design:type",Number)],jB.prototype,"selectedResponseIndex",void 0);_.B([_.a4("#submit-button"),_.S("design:type",HTMLButtonElement)],jB.prototype,"submitButton",void 0);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],jB.prototype,"onServiceRequestCompleted",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jB.prototype,"dataChanged",null);
_.B([_.qM("selectedResponseIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jB.prototype,"onSelectedResponseIndexChange",null);jB=_.B([_.e({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],jB);
_.G(jB,"ytd-feedback-elicitation-single-question-renderer",function(){if(lQ5!==void 0)return lQ5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return lQ5=f},{mode:1});var k7N;var Dt=function(){return _.U.apply(this,arguments)||this};
_.y(Dt,_.U);Dt.prototype.computeThumbnailWidth=function(f){return f?602:428};
Dt.prototype.updateWideFromBinding=function(f){this.wide=f.detail.value};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Dt.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Dt.prototype,"wide",void 0);Dt=_.B([_.e({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Dt);
_.G(Dt,"ytd-newspaper-hero-video-renderer",function(){if(k7N!==void 0)return k7N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return k7N=f},{mode:1});var KWl;var Jb=function(){return _.U.apply(this,arguments)||this};
_.y(Jb,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Jb.prototype,"rendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Jb.prototype,"data",void 0);Jb=_.B([_.e({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Jb);
_.G(Jb,"ytd-newspaper-mini-video-renderer",function(){if(KWl!==void 0)return KWl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KWl=f},{mode:1});var qwm;_.j6("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var zc=function(){return _.U.apply(this,arguments)||this};
_.y(zc,_.U);zc.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"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zc.prototype,"data",void 0);zc=_.B([_.e({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],zc);
_.G(zc,"ytd-newspaper-renderer",function(){if(qwm!==void 0)return qwm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qwm=f},{mode:1});var Aam;_.j6("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Tc=function(){var f=_.U.apply(this,arguments)||this;f.isSegment=!1;f.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};f.nextContinuation={continuationType:"playlistVideoListContinuation"};return f};
_.y(Tc,_.U);_.X=Tc.prototype;_.X.attached=function(){_.vh();var f;(f=_.vh().resolve(_.Y8(_.$U)))!=null&&(f.playlistVideoListElement=this.hostElement)};
_.X.detached=function(){var f;(f=_.vh().resolve(_.Y8(_.$U)))!=null&&(f.playlistVideoListElement=void 0);f=_.vh().resolve(_.Y8(_.fM));_.E("web_enable_voting_animation")&&f&&(f.parentElem=void 0,f.videos=[],f.continuationsPresent=!1,f.showRefreshPill=!1)};
_.X.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"}}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.X.dataChanged=function(){var f=_.vh().resolve(_.Y8(_.fM));if(_.E("web_enable_voting_animation")&&this.data&&f){var R=_.b(this.hostElement).querySelector("#contents");R&&(f.parentElem=R);f.addVideos(this.data.contents)}_.qSE(this.ytReorderableBehavior)};
_.X.onRendererstamperFinished=function(){this.canReorder&&_.AcG(this.ytReorderableBehavior,_.b(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.X.onPlaylistReloading=function(){this.isReloading=!0};
_.X.onUpdateSetVideoId=function(f){if(f.detail&&this.data&&this.data.contents){var R=f.detail;f=this.data.contents.findIndex(function(c){var h;return((h=c.playlistVideoRenderer)==null?void 0:h.videoId)===R.videoId});
if(!(f<0)&&R.setVideoId&&(this.set("data.contents."+f+".playlistVideoRenderer.setVideoId",R.setVideoId),_.E("web_enable_voting_animation"))){var u;if(f=_.t((u=this.data.contents[f].playlistVideoRenderer)==null?void 0:u.engagementBar,_.QJe)){var O;(O=f.actions)==null||O.forEach(function(c){if(c=_.t(c,_.WV7))c.itemId=R.setVideoId})}(u=_.vh().resolve(_.Y8(_.fM)))&&Gje(u,R.videoId,R.setVideoId)}}};
_.X.computeContentsClass=function(f){return f?"reloading":""};
_.X.computeIsSortable=function(f,R){return f&&R>0&&!this.isSegment&&!_.E("shorts_in_playlists_web")};
_.X.computeIsEditable=function(f){return f};
_.X.computeCanReorder=function(f){return f};
_.X.handlePlaylistRemoveVideosAction=function(f){if(this.get("playlistRemoveVideosAction.setVideoIds",f)&&this.data&&this.data.contents){f=_.t(f,_.vjE).setVideoIds;for(var R=this.data.contents.length-1;R>=0;){var u=this.data.contents[R].playlistVideoRenderer;u&&u.setVideoId&&f.includes(u.setVideoId)&&this.splice("data.contents",R,1);R--}_.OJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.X.updateIndices=function(){if(this.data&&this.data.contents)for(var f=0;f<this.data.contents.length;f++)this.set("data.contents."+f+".playlistVideoRenderer.index",_.S8(String(f+1)))};
_.X.handleDrop=function(f){f=f.currDragItem;var R=_.x5(f.parentNode.childNodes,f),u=this.data.contents.splice(Number(_.$Z(f.data.index))-1,1)[0];this.data.contents.splice(R,0,u);R=R?this.get("contents."+(R-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();f=this.buildReorderServiceEndpoint(f.data.setVideoId,R);this.ytComponentBehavior.resolveCommand(f)};
_.X.buildReorderServiceEndpoint=function(f,R){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",f),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",R),this.data.onReorderEndpoint):null};
_.X.handleUpdatePlaylistAction=function(f){var R;(f=_.t((R=_.t(f,_.iSf))==null?void 0:R.updatedRenderer,_.wqf))&&this.canReorder!==f.canReorder&&this.set("data.canReorder",f.canReorder);f&&f.contents&&(this.set("data.contents",f.contents),this.isReloading=!1);f&&f.continuations&&this.set("data.continuations",f.continuations)};
_.X.handleAddRendererToItemSectionAction=function(f){var R,u=(R=_.t(f,$wS))==null?void 0:R.renderer,O;u&&((O=_.t(f,$wS))==null?void 0:O.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,u),f=_.vh().resolve(_.Y8(_.fM)),_.E("web_enable_voting_animation")&&f&&(u&&(R=_.mJq(u))&&f.recommendedVideos.push({itemId:R,videoId:_.EXn(u),voteCount:_.t37(u),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.X.isVotingEnabledOnPlaylist=function(f){if(!f)return!1;f=_.Z(f);for(f=f.next();!f.done;f=f.next()){var R=void 0;return!!_.t((R=f.value.playlistVideoRenderer)==null?void 0:R.engagementBar,_.QJe)}return!1};
_.X.onAppendContinuationItemsActionFinished=function(){var f;this.isVotingEnabledOnPlaylist((f=this.data)==null?void 0:f.contents)&&(this.updateIndices(),f=_.vh().resolve(_.Y8(_.fM)),_.E("web_enable_voting_animation")&&f&&this.data&&f.addVideos(this.data.contents))};
_.X.updateVideoData=function(f){if(f.detail&&this.data&&this.data.contents){var R=f.detail;f=R.toIdx;var u=R.itemId,O=R.newVoteCount,c=R.voteStatus;R=R.hideItem;var h,l,K=(h=this.data)==null?void 0:(l=h.contents)==null?void 0:l.findIndex(function(m){return _.mJq(m)===u});
if(!(K<0)){h=this.data.contents[K];var q;if((q=h.playlistVideoRenderer)==null?0:q.voteCount)h.playlistVideoRenderer.voteCount=O;var F;if(q=_.t((F=h.playlistVideoRenderer)==null?void 0:F.engagementBar,_.QJe)){var w;(w=q.actions)==null||w.forEach(function(m){(m=_.t(m,_.WV7))&&m.initialState&&(m.initialState.votes=O,m.initialState.status=c)})}this.data.contents.splice(K,1);
R||this.data.contents.splice(f,0,h);this.updateIndices()}}};
Tc.prototype.updateVideoData=Tc.prototype.updateVideoData;Tc.prototype.onAppendContinuationItemsActionFinished=Tc.prototype.onAppendContinuationItemsActionFinished;Tc.prototype.onUpdateSetVideoId=Tc.prototype.onUpdateSetVideoId;Tc.prototype.onPlaylistReloading=Tc.prototype.onPlaylistReloading;Tc.prototype.onRendererstamperFinished=Tc.prototype.onRendererstamperFinished;Tc.prototype.dataChanged=Tc.prototype.dataChanged;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Tc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.UH.YtNextContinuationBehavior),_.S("design:type",Object)],Tc.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.z(_.aTC),_.S("design:type",Object)],Tc.prototype,"ytReorderableBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],Tc.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Tc.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Tc.prototype,"isReloading",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tc.prototype,"isSegment",void 0);_.B([_.I({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.S("design:type",Boolean)],Tc.prototype,"isSortable",void 0);_.B([_.I({computed:"computeIsEditable(data.isEditable)"}),_.S("design:type",Boolean)],Tc.prototype,"isEditable",void 0);_.B([_.I({computed:"computeCanReorder(data.canReorder)"}),_.S("design:type",Boolean)],Tc.prototype,"canReorder",void 0);
_.B([_.I({value:101}),_.S("design:type",Number)],Tc.prototype,"scrollMargin",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tc.prototype,"dataChanged",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tc.prototype,"onRendererstamperFinished",null);
_.B([_.Kf("yt-playlist-reloading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tc.prototype,"onPlaylistReloading",null);_.B([_.Kf("yt-update-set-video-id"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Tc.prototype,"onUpdateSetVideoId",null);
_.B([_.Kf("yt-append-continuation-items-action-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tc.prototype,"onAppendContinuationItemsActionFinished",null);_.B([_.Kf("yt-update-video-data-voting-animation"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Tc.prototype,"updateVideoData",null);Tc=_.B([_.e({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Tc);
_.G(Tc,"ytd-playlist-video-list-renderer",function(){if(Aam!==void 0)return Aam;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Aam=f},{mode:_.c7("kevlar_poly_si_batch_j047")?1:2});var aQ2;var HD=function(){return _.U.apply(this,arguments)||this};
_.y(HD,_.U);HD.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"}}}}};
HD.prototype.onTextWrapperTap=function(f){var R=this.data&&this.data.navigationEndpoint;R&&!_.$G(_.$S(f),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.ul(this.hostElement,"yt-navigate",{endpoint:R})};
HD.prototype.dataChanged=function(){var f=this.get("data.offerButton.buttonRenderer.serviceEndpoint");f&&f.commandMetadata&&_.t(f.commandMetadata,_.Ni)&&_.t(f.commandMetadata,_.Ni).fireAutomatically&&_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})};
HD.prototype.dataChanged=HD.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.BX),_.S("design:type",Object)],HD.prototype,"ytdLockupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],HD.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],HD.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],HD.prototype,"biggerThumbsStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],HD.prototype,"leftAligned",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HD.prototype,"dataChanged",null);HD=_.B([_.e({disableElementRegistration:!0,is:"ytd-movie-renderer"})],HD);
_.G(HD,"ytd-movie-renderer",function(){if(aQ2!==void 0)return aQ2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return aQ2=f},{mode:1});var FWt;var Iq=function(){var f=_.U.apply(this,arguments)||this;f.rounded=!0;f.pageAttachedTo=void 0;f.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return f};
_.y(Iq,_.U);Iq.prototype.attached=function(){this.pageAttachedTo=_.vh().resolve(_.sz).getCurrentPage();_.ul(this.hostElement,"yt-player-attached",this.player)};
Iq.prototype.detached=function(){var f;if((f=this.pageAttachedTo)==null?0:f.hostElement)_.ul(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Iq.prototype.dataChanged=function(){var f;if((f=this.data)==null?0:f.videoId)f={video_id:this.data.videoId,autoplay:!0},!_.E("miniplayer_stop_channel_video_autoplay_killswitch")&&_.vh().resolve(_.MS).isMiniplayerActive()&&(f.pause_at_start=!0,f.autoplay=!1),this.player.loadVideoWithPlayerVars(f)};
Iq.prototype.handleSignalActionPausePlayer=function(){_.YG().pause()};
Iq.prototype.dataChanged=Iq.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],Iq.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Iq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Iq.prototype,"rounded",void 0);_.B([_.a4("#player"),_.S("design:type",Object)],Iq.prototype,"player",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Iq.prototype,"dataChanged",null);Iq=_.B([_.e({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Iq);
_.G(Iq,"ytd-channel-video-player-renderer",function(){if(FWt!==void 0)return FWt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FWt=f},{mode:1});var w4N;var mhh;var QZ5;var Mn=function(){var f=_.U.apply(this,arguments)||this;f.playing=!1;f.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.cG(f);f.active=!1;return f};
_.y(Mn,_.U);_.X=Mn.prototype;_.X.detached=function(){this.stop()};
_.X.play=function(){var f=this,R,u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return f.active=!0,R=f.get("data.inlinePlaybackEndpoint.watchEndpoint"),u=R.videoId||f.data.videoId,O=R.startTimeSeconds||0,c=R.playerParams||null,_.E("kevlar_player_update_killswitch")?_.A(l,f.playerEl.update({args:{video_id:u,startSeconds:O,player_params:c}}),2):(f.playerEl.loadVideoWithPlayerVars({video_id:u,startSeconds:O,player_params:c,autoplay:!0}),l.jumpTo(2));if(l.nextAddress!=4)return _.A(l,f.playerEl.getPlayerPromise(),
4);h=l.yieldResult;h.unloadModule("annotations_module");h.addEventListener("onStateChange",function(K){f.onPlayerStateChange(K)});
_.KG(l)})};
_.X.onPlayerStateChange=function(f){if(this.active)switch(this.playing=f===1,f){case 1:_.ul(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.ul(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.X.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.X.resize=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.playerEl.getPlayerPromise(),2);R=u.yieldResult;R.setSize(NaN,NaN);_.KG(u)})};
_.B([_.I(),_.S("design:type",Object)],Mn.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Mn.prototype,"playing",void 0);_.B([_.I(),_.S("design:type",Object)],Mn.prototype,"playerId",void 0);_.B([_.a4("#player"),_.S("design:type",Object)],Mn.prototype,"playerEl",void 0);Mn=_.B([_.e({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Mn);
_.G(Mn,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(QZ5!==void 0)return QZ5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return QZ5=f},{mode:1});var WWN;var E1S;var PD=function(){var f=_.U.apply(this,arguments)||this;f.width=0;return f};
_.y(PD,_.U);_.X=PD.prototype;_.X.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ks(this,this.onEnded));this.mp4El.addEventListener("error",_.ks(this,this.onError))};
_.X.detached=function(){this.videoEl.removeEventListener("ended",_.ks(this,this.onEnded));this.mp4El.removeEventListener("error",_.ks(this,this.onError))};
_.X.play=function(){var f=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var R=this.videoEl.play();R?R.then(function(){f.handleVideoStartPlaying()}).catch(function(){_.ul(f.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.ul(this.hostElement,"yt-video-thumbnail-not-playing")};
_.X.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.X.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.X.dataChanged=function(){var f;if((f=this.data)==null?0:f.thumbnailPlaceholder)f=_.rR(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+f+")";this.stop();this.autoplay&&this.play()};
_.X.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.X.onEnded=function(){this.stop();_.ul(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.X.onError=function(){_.ul(this.hostElement,"yt-video-thumbnail-error")};
_.X.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.X.getVideoThumbnail=function(f){if(f&&f.length)return f[0]};
PD.prototype.dataChanged=PD.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],PD.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],PD.prototype,"animatePlaceholderOnEntrance",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],PD.prototype,"autoplay",void 0);_.B([_.I({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.S("design:type",Object)],PD.prototype,"videoThumbnail",void 0);
_.B([_.I(),_.S("design:type",Boolean)],PD.prototype,"loop",void 0);_.B([_.I(),_.S("design:type",Boolean)],PD.prototype,"isVideoPlaying",void 0);_.B([_.I(),_.S("design:type",Object)],PD.prototype,"width",void 0);_.B([_.a4("#mp4"),_.S("design:type",HTMLElement)],PD.prototype,"mp4El",void 0);_.B([_.a4("#placeholder"),_.S("design:type",HTMLElement)],PD.prototype,"placeholderEl",void 0);_.B([_.a4("#video"),_.S("design:type",HTMLVideoElement)],PD.prototype,"videoEl",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PD.prototype,"dataChanged",null);PD=_.B([_.DO({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],PD);
_.G(PD,"yt-video-as-thumbnail-details",function(){if(E1S===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;WWN===void 0&&(WWN=document.createElement("template"));var O=WWN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);E1S=f}f=E1S;return f},{mode:2});var U3=function(){var f=_.U.apply(this,arguments)||this;f.disableGridStateAware=!1;f.animationEnabled=_.E("enable_web_ketchup_hero_animation");f.transitioningOut=!1;f.narrow=!1;f.narrower=!1;f.isCarouselInFeed=!1;f.videoTimeoutJobId=0;f.panelTimeoutJobId=0;f.panelTimeoutJobStartMs=0;f.actionMap={"yt-window-resized":"onWindowResized"};return f};
_.y(U3,_.U);_.X=U3.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.X.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.X.attached=function(){this.onWindowResized()};
_.X.detached=function(){this.clearTimeouts()};
_.X.onWindowResized=function(){this.updateSize()};
_.X.computePanelLayout=function(f){return f&&f.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.X.playVideo=function(){var f;this.video&&((f=this.data)==null?0:f.videoThumbnail)&&this.video.play();var R;this.player&&((R=this.data)==null?0:R.inlinePlaybackRenderer)&&this.player.play()};
_.X.stopVideo=function(){var f;this.video&&((f=this.data)==null?0:f.videoThumbnail)&&this.video.stop();var R;this.player&&((R=this.data)==null?0:R.inlinePlaybackRenderer)&&this.player.stop()};
_.X.transitionOut=function(){var f=this;this.transitioningOut=!0;return new Promise(function(R){var u=function(){_.b(f.hostElement).querySelector("#action-button").removeEventListener("animationend",u);_.JA.cancelJob(O);R();f.transitioningOut=!1};
var O=_.dJ(_.JA,u,1E3);_.b(f.hostElement).querySelector("#action-button").addEventListener("animationend",u);f.player&&(f.player.playing=!1)})};
_.X.computeMetadataOrder=function(f){return f&&f.metadataOrder&&f.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?f.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.X.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.X.computeAvatarSize=function(f){return f&&f.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.X.onContentClick=function(f){if(!_.$G(_.$S(f),this.hostElement,["A".toString(),"BUTTON".toString()])){var R;if((R=this.data)==null?0:R.navigationEndpoint){var u;this.componentBehavior.resolveCommand((u=this.data)==null?void 0:u.navigationEndpoint)}}};
_.X.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.X.setBackgroundImage=function(f){if(f=this.getBackgroundImageUrl(f))_.b(this.hostElement).querySelector("#hero").style.backgroundImage="url("+f+")"};
_.X.setScrimLayer=function(f){var R=this.getScrimLayerColorStops(f);f=((f==null?void 0:f.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(f=180);_.Tf("HTML_DIR")==="rtl"&&(f=-f);R&&(_.b(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+f+"deg, "+R+")")};
_.X.isNarrower=function(){return this.hostElement.clientWidth<U3.NARROW_VERSION_SIZE};
_.X.getScrimLayerColorStops=function(){var f,R=(f=this.data)==null?void 0:f.scrimColorValues;if(!R)return null;if(R.length===1)return f=_.ML(R[0]),f+" 0%, "+f+" 100%";if(R.length===3){var u=[0,72,98];return R.map(function(O,c){return _.ML(O)+" "+u[c]+"%"}).join(",")}return null};
_.X.getBackgroundImageUrl=function(f){return f&&f.largeFormFactorBackgroundThumbnail?_.rR((f.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||f.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.X.onPlaying=function(){this.startVideoTimeout()};
_.X.onEnded=function(){this.rotate()};
_.X.startPanelTimeout=function(){var f=this;if(!this.panelTimeoutJobId){var R=this.get("data.minPanelDisplayDurationMs");R&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.dJ(_.JA,function(){f.rotate()},R))}};
_.X.startVideoTimeout=function(){var f=this;if(!this.videoTimeoutJobId){_.JA.cancelJob(this.panelTimeoutJobId);var R=Date.now()-this.panelTimeoutJobStartMs;R=Math.max(0,this.get("data.minPanelDisplayDurationMs")-R);R=Math.max(this.get("data.minVideoPlayDurationMs")||0,R);this.videoTimeoutJobId=_.dJ(_.JA,function(){f.rotate()},R)}};
_.X.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.JA.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.JA.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.X.rotate=function(){this.clearTimeouts();_.ul(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Vy.Object.defineProperties(U3.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.b(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.b(this.hostElement).querySelector("#video")}}});
_.Vy.Object.defineProperties(U3,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
U3.prototype.onEnded=U3.prototype.onEnded;U3.prototype.onPlaying=U3.prototype.onPlaying;U3.prototype.dataChanged=U3.prototype.dataChanged;_.B([_.z(_.MD),_.S("design:type",Object)],U3.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],U3.prototype,"componentBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],U3.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.z(_.sqY),_.S("design:type",Object)],U3.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],U3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"disableGridStateAware",void 0);_.B([_.I(),_.S("design:type",Object)],U3.prototype,"data",void 0);_.B([_.I({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.S("design:type",String)],U3.prototype,"panelLayout",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"animationEnabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"transitioningOut",void 0);
_.B([_.I({computed:"computeMetadataOrder(data)"}),_.S("design:type",Boolean)],U3.prototype,"metadataOrder",void 0);_.B([_.I({computed:"computeByline(data)"}),_.S("design:type",Object)],U3.prototype,"byline",void 0);_.B([_.I({computed:"computeAvatarSize(data)"}),_.S("design:type",Number)],U3.prototype,"avatarSize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"narrow",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"narrower",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"layoutStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],U3.prototype,"isCarouselInFeed",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U3.prototype,"dataChanged",null);_.B([_.Kf("yt-default-promo-panel-renderer-playing"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U3.prototype,"onPlaying",null);
_.B([_.Kf("yt-default-promo-panel-renderer-ended"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U3.prototype,"onEnded",null);U3=_.B([_.e({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],U3);
_.G(U3,"ytd-default-promo-panel-renderer",function(){if(mhh!==void 0)return mhh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return mhh=f},{mode:1});_.j6("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var eB=function(){var f=_.U.apply(this,arguments)||this;f.narrower=!1;f.dotMenuVisible=!1;f.paginationThumbnailsVisible=!1;f.active=!0;f.disableGridStateAware=!1;f.actionMap={"yt-window-resized":"onWindowResized"};return f};
_.y(eB,_.U);_.X=eB.prototype;_.X.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]]"}}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.ks(this,this.onPageTypeChange));this.currentPageSubtype=_.a1(location.pathname);this.onWindowResized()};
_.X.detached=function(){this.jobId&&_.JA.cancelJob(this.jobId);this.updateSizeJobId&&_.JA.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.ks(this,this.onPageTypeChange))};
_.X.onPageTypeChange=function(f){this.active=f.detail.newPageSubtype===this.currentPageSubtype};
_.X.onWindowResized=function(){this.updateSize()};
_.X.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.X.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.X.setCarouselItem=function(f){f>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.JA.cancelJob(this.jobId);var R=this.getCurrentPanelElement();R&&R.stopVideo();this.currentItemIndex=f%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(R||(R=this.getCurrentPanelElement()),R.playVideo()):this.startRotationJob()};
_.X.scrollThumbnails=function(f){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var R=this.getCurrentPaginationElement();if(R){var u=_.b(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?u.style.transform="translateX(0)":(R=R.offsetWidth+8,u.style.transform="translateX(-"+R*(f-Math.ceil(Math.floor(this.overlay.offsetWidth/R)/2)+1)+"px)")}}};
_.X.onDataChanged=function(){var f=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Cr(_.JA,function(){f.getCurrentPanelElement().updateSize();f.updateSize()}))};
_.X.getCurrentPanelElement=function(){return _.b(_.b(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.X.getCurrentPaginationElement=function(){return _.b(_.b(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.X.getNavigationClass=function(f,R){return f===R?"selected":""};
_.X.getNavigationDurationStyle=function(f){return"animation-duration:"+(this.get("data.carouselItems."+f+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.X.onNavigationTap=function(f){var R=this,u=f.model.index;u!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){R.setCarouselItem(u)}),this.autorotateActive=!1)};
_.X.onVideoThumbnailEnded=function(){var f=this;if(this.shouldRotate()){var R=this.getCurrentPaginationElement();R&&(R.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){R.classList.remove("finished");f.setNextCarouselItem()}))}};
_.X.onVideoThumbnailError=function(){this.startRotationJob()};
_.X.onVideoNotPlaying=function(){this.startRotationJob()};
_.X.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.X.startRotationJob=function(){var f=this;_.JA.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.JA.addLowPriorityJob(function(){f.getCurrentPanelElement().transitionOut().then(function(){f.setNextCarouselItem()})},this.rotationTimeout))};
_.X.computeDotMenuVisible=function(f,R){return!!f&&!!f.carouselItems&&f.carouselItems.length>1&&!f.paginationThumbnails||!!R};
_.X.computePaginationThumbnailsVisible=function(f,R){var u,O;return((O=f==null?void 0:(u=f.paginationThumbnails)==null?void 0:u.length)!=null?O:0)>1&&!R};
_.X.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.X.computePaginatorAlignment=function(f){return(f==null?void 0:f.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.X.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.X.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.X.isNarrower=function(f){return(f!=null?f:0)<U3.NARROW_VERSION_SIZE};
eB.prototype.activeChanged=eB.prototype.activeChanged;eB.prototype.onVideoNotPlaying=eB.prototype.onVideoNotPlaying;eB.prototype.onVideoThumbnailError=eB.prototype.onVideoThumbnailError;eB.prototype.onVideoThumbnailEnded=eB.prototype.onVideoThumbnailEnded;eB.prototype.onDataChanged=eB.prototype.onDataChanged;_.B([_.z(_.MD),_.S("design:type",Object)],eB.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],eB.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],eB.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],eB.prototype,"currentItem",void 0);
_.B([_.I(),_.S("design:type",Number)],eB.prototype,"currentItemIndex",void 0);_.B([_.I(),_.S("design:type",Number)],eB.prototype,"rotationTimeout",void 0);_.B([_.I(),_.S("design:type",Number)],eB.prototype,"loopCount",void 0);_.B([_.I({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.S("design:type",String)],eB.prototype,"paginatorAlignment",void 0);_.B([_.I(),_.S("design:type",Number)],eB.prototype,"jobId",void 0);
_.B([_.I(),_.S("design:type",Number)],eB.prototype,"updateSizeJobId",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],eB.prototype,"isCarouselInFeed",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eB.prototype,"narrower",void 0);_.B([_.I({computed:"computeDotMenuVisible(data, narrower)"}),_.S("design:type",Object)],eB.prototype,"dotMenuVisible",void 0);
_.B([_.I({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.S("design:type",Object)],eB.prototype,"paginationThumbnailsVisible",void 0);_.B([_.I({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.S("design:type",String)],eB.prototype,"layoutType",void 0);_.B([_.I({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],eB.prototype,"autorotateActive",void 0);_.B([_.I(),_.S("design:type",Object)],eB.prototype,"active",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eB.prototype,"disableGridStateAware",void 0);_.B([_.a4("#overlay"),_.S("design:type",HTMLElement)],eB.prototype,"overlay",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eB.prototype,"onDataChanged",null);
_.B([_.Kf("yt-video-thumbnail-ended"),_.Kf("yt-default-promo-panel-renderer-rotate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eB.prototype,"onVideoThumbnailEnded",null);_.B([_.Kf("yt-video-thumbnail-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eB.prototype,"onVideoThumbnailError",null);
_.B([_.Kf("yt-video-thumbnail-not-playing"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eB.prototype,"onVideoNotPlaying",null);_.B([_.QR("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eB.prototype,"activeChanged",null);eB=_.B([_.e({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],eB);
_.G(eB,"ytd-carousel-item-renderer",function(){if(w4N!==void 0)return w4N;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return w4N=f},{mode:2});var tqm;var Co9;var yaS;var dht;var Gc=function(){var f=_.U.apply(this,arguments)||this;f.originalQuery=null;f.originalEndpoint=null;return f};
_.y(Gc,_.U);Gc.prototype.computeShowOriginalQueryWithoutEndpoint_=function(f,R){return!(!f||R)};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Gc.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gc.prototype,"correctedText",void 0);_.B([_.I(),_.S("design:type",Object)],Gc.prototype,"correctedQuery",void 0);_.B([_.I(),_.S("design:type",Object)],Gc.prototype,"correctedEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],Gc.prototype,"originalText",void 0);_.B([_.I(),_.S("design:type",Object)],Gc.prototype,"originalQuery",void 0);
_.B([_.I(),_.S("design:type",Object)],Gc.prototype,"originalEndpoint",void 0);_.B([_.I({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.S("design:type",Boolean)],Gc.prototype,"showOriginalQueryWithoutEndpoint",void 0);Gc=_.B([_.DO({is:"yt-search-query-correction",disableElementRegistration:!0})],Gc);
_.G(Gc,"yt-search-query-correction",function(){if(dht===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;yaS===void 0&&(yaS=document.createElement("template"));var O=yaS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);dht=f}f=dht;return f},{mode:2});_.j6("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var BD=function(){return _.U.apply(this,arguments)||this};
_.y(BD,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],BD.prototype,"data",void 0);BD=_.B([_.DO({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],BD);
_.G(BD,"yt-did-you-mean-renderer",function(){if(Co9===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;tqm===void 0&&(tqm=document.createElement("template"));var O=tqm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Co9=f}f=Co9;return f},{mode:2});var NEN;var LWm;_.j6("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var oq=function(){return _.U.apply(this,arguments)||this};
_.y(oq,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oq.prototype,"data",void 0);oq=_.B([_.DO({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],oq);
_.G(oq,"yt-including-results-for-renderer",function(){if(LWm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;NEN===void 0&&(NEN=document.createElement("template"));var O=NEN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);LWm=f}f=LWm;return f},{mode:2});var bDw;var p49;_.j6("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var xg=function(){return _.U.apply(this,arguments)||this};
_.y(xg,_.U);xg.prototype.computeExtraClasses_=function(f,R){var u="";f&&(u+=" "+f.toLowerCase().replace(/_/g,"-"));R&&(u+=" "+R.toLowerCase().replace(/_/g,"-"));return u};
xg.prototype.computeUrlImg_=function(){var f=this.data;f.image&&(_.b(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.rR(f.image.thumbnails,Number.MAX_VALUE)+")")};
xg.prototype.computeUrlImg_=xg.prototype.computeUrlImg_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xg.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xg.prototype,"computeUrlImg_",null);xg=_.B([_.DO({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],xg);
_.G(xg,"yt-music-pass-feature-info-renderer",function(){if(p49===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;bDw===void 0&&(bDw=document.createElement("template"));var O=bDw;u.call(R,O.content.cloneNode(!0),f.content.firstChild);p49=f}f=p49;return f},{mode:2});var jZS;var DhK;_.j6("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var SB=function(){return _.U.apply(this,arguments)||this};
_.y(SB,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SB.prototype,"data",void 0);SB=_.B([_.DO({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],SB);
_.G(SB,"yt-no-results-found-showing-results-for-renderer",function(){if(DhK===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;jZS===void 0&&(jZS=document.createElement("template"));var O=jZS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);DhK=f}f=DhK;return f},{mode:2});var Ja9;var zZS;_.j6("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var $g=function(){return _.U.apply(this,arguments)||this};
_.y($g,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$g.prototype,"data",void 0);$g=_.B([_.DO({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],$g);
_.G($g,"yt-results-without-quotes-renderer",function(){if(zZS===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Ja9===void 0&&(Ja9=document.createElement("template"));var O=Ja9;u.call(R,O.content.cloneNode(!0),f.content.firstChild);zZS=f}f=zZS;return f},{mode:2});var TEm;var HD5;_.j6("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var g6=function(){return _.U.apply(this,arguments)||this};
_.y(g6,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],g6.prototype,"data",void 0);g6=_.B([_.DO({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],g6);
_.G(g6,"yt-search-no-results-renderer",function(){if(HD5===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;TEm===void 0&&(TEm=document.createElement("template"));var O=TEm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);HD5=f}f=HD5;return f},{mode:2});var IQe;var Mqz;_.j6("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var s3=function(){return _.U.apply(this,arguments)||this};
_.y(s3,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],s3.prototype,"data",void 0);s3=_.B([_.DO({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],s3);
_.G(s3,"yt-showing-results-for-renderer",function(){if(Mqz===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;IQe===void 0&&(IQe=document.createElement("template"));var O=IQe;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Mqz=f}f=Mqz;return f},{mode:2});var Po5;var UhS;var eZm;var G7l;var no=function(){var f=_.U.apply(this,arguments)||this;f.answerExpanded=!1;return f};
_.y(no,_.U);no.prototype.toggleAnswer_=function(f){var R=_.gY(f);R&&R.classList.contains("yt-simple-endpoint")||(f.preventDefault(),f.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
no.prototype.toggleAnswer_=no.prototype.toggleAnswer_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],no.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],no.prototype,"answerExpanded",void 0);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],no.prototype,"toggleAnswer_",null);
no=_.B([_.DO({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],no);
_.G(no,"yt-generic-faq-question-renderer",function(){if(G7l===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;eZm===void 0&&(eZm=document.createElement("template"));var O=eZm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);G7l=f}f=G7l;return f},{mode:2});_.j6("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var VB=function(){return _.U.apply(this,arguments)||this};
_.y(VB,_.U);VB.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],VB.prototype,"data",void 0);VB=_.B([_.DO({is:"yt-faq-section-renderer",disableElementRegistration:!0})],VB);
_.G(VB,"yt-faq-section-renderer",function(){if(UhS===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Po5===void 0&&(Po5=document.createElement("template"));var O=Po5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);UhS=f}f=UhS;return f},{mode:2});var BEX;var o1S;_.j6("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Yg=function(){return _.U.apply(this,arguments)||this};
_.y(Yg,_.U);
Yg.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Yg.prototype,"data",void 0);Yg=_.B([_.DO({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Yg);
_.G(Yg,"yt-offer-item-expanded-renderer",function(){if(o1S===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;BEX===void 0&&(BEX=document.createElement("template"));var O=BEX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);o1S=f}f=o1S;return f},{mode:2});var xhX;var Sw5;_.j6("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var vD=function(){return _.U.apply(this,arguments)||this};
_.y(vD,_.U);
vD.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"}}}}};
vD.prototype.computeFullWidthMode=function(f){return!(!f||!f.fullWidthMode)};
vD.prototype.computeBorderlessMode=function(f){return!(!f||!f.borderlessMode)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vD.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.S("design:type",Boolean)],vD.prototype,"fullWidthMode",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.S("design:type",Boolean)],vD.prototype,"borderlessMode",void 0);vD=_.B([_.DO({is:"yt-offer-item-renderer",disableElementRegistration:!0})],vD);
_.G(vD,"yt-offer-item-renderer",function(){if(Sw5===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;xhX===void 0&&(xhX=document.createElement("template"));var O=xhX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Sw5=f}f=Sw5;return f},{mode:2});var $h5;var g1e;_.j6("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var iG=function(){return _.U.apply(this,arguments)||this};
_.y(iG,_.U);iG.prototype.computeAriaLevel_=function(f){return this.getLevelID_(f)};
iG.prototype.getLevelID_=function(f){return(f=f.match(/[0-9]+$/))&&f.length==1?f[0]:"1"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],iG.prototype,"data",void 0);_.B([_.I({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.S("design:type",String)],iG.prototype,"ariaLevel",void 0);_.B([_.I({value:"heading",reflectToAttribute:!0}),_.S("design:type",String)],iG.prototype,"role",void 0);
_.B([_.I({value:-1,reflectToAttribute:!0}),_.S("design:type",Number)],iG.prototype,"tabindex",void 0);iG=_.B([_.DO({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],iG);
_.G(iG,"yt-subscription-product-header-renderer",function(){if(g1e===void 0){var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;$h5===void 0&&($h5=document.createElement("template"));var O=$h5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);g1e=f}f=g1e;return f},{mode:2});var sZK;var n1t;_.j6("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var r6=function(){return _.U.apply(this,arguments)||this};
_.y(r6,_.U);r6.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:_.DB("menuRenderer"),events:!0}}};
r6.prototype.onStampFinished_=function(){_.b(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
r6.prototype.onStampFinished_=r6.prototype.onStampFinished_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],r6.prototype,"data",void 0);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r6.prototype,"onStampFinished_",null);
r6=_.B([_.DO({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],r6);
_.G(r6,"yt-subscription-product-renderer",function(){if(n1t===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;sZK===void 0&&(sZK=document.createElement("template"));var O=sZK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);n1t=f}f=n1t;return f},{mode:2});var Vqz;var Ywa;_.j6("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var f$=function(){return _.U.apply(this,arguments)||this};
_.y(f$,_.U);f$.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
f$.prototype.imageScrimColorValuesChanged_=function(){var f,R=(f=this.data)==null?void 0:f.imageScrimColorValues;_.b(this.hostElement).querySelector("#scrim").style.backgroundColor=R?_.ML(R[0]):"transparent"};
f$.prototype.imageScrimColorValuesChanged_=f$.prototype.imageScrimColorValuesChanged_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],f$.prototype,"data",void 0);
_.B([_.qM("data.imageScrimColorValues"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f$.prototype,"imageScrimColorValuesChanged_",null);f$=_.B([_.DO({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],f$);
_.G(f$,"yt-subscription-product-upsell-offer-renderer",function(){if(Ywa===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Vqz===void 0&&(Vqz=document.createElement("template"));var O=Vqz;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Ywa=f}f=Ywa;return f},{mode:2});var v12;var iD2;var ral;var fG2;var R3X;var uB9;var RN=function(){return _.U.apply(this,arguments)||this};
_.y(RN,_.U);RN.prototype.onYtServiceRequestError_=function(f){_.f9(this.hostElement,f.detail.error.message)};
RN.prototype.onYtServiceRequestError_=RN.prototype.onYtServiceRequestError_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],RN.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],RN.prototype,"collapsible",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],RN.prototype,"isManageRed",void 0);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],RN.prototype,"onYtServiceRequestError_",null);RN=_.B([_.DO({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],RN);
_.G(RN,"yt-single-ypc-offer-renderer",function(){if(uB9===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;R3X===void 0&&(R3X=document.createElement("template"));var O=R3X;u.call(R,O.content.cloneNode(!0),f.content.firstChild);uB9=f}f=uB9;return f},{mode:2});var um=function(){return _.U.apply(this,arguments)||this};
_.y(um,_.U);um.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],um.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],um.prototype,"isManageRed",void 0);um=_.B([_.DO({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],um);
_.G(um,"yt-single-ypc-offer-list-renderer",function(){if(fG2===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;ral===void 0&&(ral=document.createElement("template"));var O=ral;u.call(R,O.content.cloneNode(!0),f.content.firstChild);fG2=f}f=fG2;return f},{mode:2});var OxX;var c6t;_.j6("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var O_=function(){return _.U.apply(this,arguments)||this};
_.y(O_,_.U);O_.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],O_.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],O_.prototype,"isManageRed",void 0);O_=_.B([_.DO({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],O_);
_.G(O_,"yt-ypc-offers-list-renderer",function(){if(c6t===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;OxX===void 0&&(OxX=document.createElement("template"));var O=OxX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);c6t=f}f=c6t;return f},{mode:2});_.j6("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var cF=function(){return _.U.apply(this,arguments)||this};
_.y(cF,_.U);
cF.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cF.prototype,"data",void 0);cF=_.B([_.DO({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],cF);
_.G(cF,"yt-unlimited-manage-subscription-page-renderer",function(){if(iD2===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;v12===void 0&&(v12=document.createElement("template"));var O=v12;u.call(R,O.content.cloneNode(!0),f.content.firstChild);iD2=f}f=iD2;return f},{mode:2});var XHh;var h3S;var XF=function(){return _.U.apply(this,arguments)||this};
_.y(XF,_.U);_.X=XF.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.X.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.onKeypress_=function(f){f.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.X.handleHeaderTap_=function(f){f.preventDefault();f.stopPropagation();this.expandOffers_()};
_.X.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.X.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
XF.prototype.dataChanged_=XF.prototype.dataChanged_;_.B([_.z(_.mJ),_.S("design:type",Object)],XF.prototype,"ironA11yKeysBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],XF.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],XF.prototype,"offersVisible_",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XF.prototype,"dataChanged_",null);XF=_.B([_.DO({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],XF);
_.G(XF,"yt-collapsible-ypc-offer-renderer",function(){if(h3S===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;XHh===void 0&&(XHh=document.createElement("template"));var O=XHh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);h3S=f}f=h3S;return f},{mode:2});var ZxS;var lGh;_.j6("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var hw=function(){return _.U.apply(this,arguments)||this};
_.y(hw,_.U);_.X=hw.prototype;_.X.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.X.dataChanged_=function(){if(this.data.backgroundImage){var f=_.rR(this.data.backgroundImage.thumbnails,screen.width),R=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=R?"linear-gradient(180deg, "+R+"), url("+f+")":"url("+f+")";this.data.gtmId&&_.Ck(this.data.gtmId,_.Tf("GL",""))}};
_.X.onYtServiceRequestError_=function(f){_.f9(this.hostElement,f.detail.error.message)};
_.X.getScrimLayerColorStops_=function(){var f,R,u=(f=this.data.unlimitedHeaderV2Data)==null?void 0:(R=f.unlimitedHeaderV2Data)==null?void 0:R.scrimLayerColors;if(!u)return null;var O=100/u.length;return u.map(function(c,h){h*=O;return _.ML(c)+" "+h+"%"}).join(",")};
_.X.computeLogoWithPadding=function(f){var R,u,O;return(f=(R=f.unlimitedLogoImage)==null?void 0:(u=R.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&f%31===0?!0:!1};
hw.prototype.onYtServiceRequestError_=hw.prototype.onYtServiceRequestError_;hw.prototype.dataChanged_=hw.prototype.dataChanged_;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.B([_.I({computed:"computeLogoWithPadding(data)"}),_.S("design:type",Boolean)],hw.prototype,"logoWithPadding",void 0);
_.B([_.I(),_.S("design:type",Object)],hw.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hw.prototype,"dataChanged_",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hw.prototype,"onYtServiceRequestError_",null);hw=_.B([_.DO({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],hw);
_.G(hw,"yt-unlimited-page-header-renderer",function(){if(lGh===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;ZxS===void 0&&(ZxS=document.createElement("template"));var O=ZxS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);lGh=f}f=lGh;return f},{mode:2});var kvz;var KE5;_.j6("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Zb=function(){return _.U.apply(this,arguments)||this};
_.y(Zb,_.U);Zb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zb.prototype,"data",void 0);Zb=_.B([_.DO({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Zb);
_.G(Zb,"yt-unlimited-user-notification-renderer",function(){if(KE5===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;kvz===void 0&&(kvz=document.createElement("template"));var O=kvz;u.call(R,O.content.cloneNode(!0),f.content.firstChild);KE5=f}f=KE5;return f},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.CtS=_.nf(function(f){var R=_.sU(f,{numberOfChips:5}).numberOfChips;return _.a("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.a(_.EC,{each:function(){return Array(R==null?void 0:R())}},function(){return _.a("div",{class:"ytGhostChipShelfChip"})}))},"ig");_.y15=_.nf(function(f){var R=_.ZR(),u=_.vh().resolve(_.SQ);_.NW(function(){requestAnimationFrame(function(){var c;(c=R.lottieEl)==null||c.addEventListener("DOMLoaded",function(){var h;(h=f.onLottieLoaded)==null||h.call(f)})})});
var O={};return _.a("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var c;return((c=f.data)==null?void 0:c.call(f).targetId)||""}},_.a(_.qI,{className:_.KL((O.ytChatLoadingViewModelRtl=u==="rtl",O)),
animationName:"YOUCHAT_LOADER",data:function(){var c;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((c=f.data)==null?void 0:c.call(f).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:R}))},"jg");
}catch(e){_._DumpException(e)}
try{
var xua,SOm,$u5,g3l,sa9,n3m,Vyl,YL,vS,v39,ijw,rmz,Rwa,k_9,iM,lue,cuK,ZGt,hwh,Xlh,OGK,K1l,qkN,Au2,aul,rK,F1h,wlz,mcN,CCz,tWh,Eum,Q5N,W19,yu9,dcm,Nn9,L1X,pla,zwz,Iuw,MWh,PCm,ewm,Bnm,xcX,Skm,$cK,guw,nue,VWK,Yk2,vuz,iGS,rua,fwS,uHz,hfw,XKm,O8z,Z8e,c5t,lwt,A5K,qf2,kx5,KyN,RR,aw2,Fy5,mg5,EDS,Ly9,b8X,pKN,j0K,Dgw,J5X,zf9,Tqt,H8N,IwK,P_9,Ugm,ef9,YOK,y5m;
_.nw=function(f){var R=new _.ts("Error accessing DB");return _.DAD().then(function(u){return new Promise(function(O,c){try{var h=u.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(f);h.onsuccess=function(){var l=h.result;O(l?l.value:null)};
h.onerror=function(){R.params={key:f,source:"onerror"};c(R)}}catch(l){R.params={key:f,
thrownError:String(l)},c(R)}})},function(){return null})};
_.o3X=function(f,R){var u=_.met(R);u!=="javascript:"&&u!=="data:"&&f.setAttribute("href",R)};
xua=function(f,R){return _.kZ(f.entities,"flowStateEntity",R)};
SOm=function(f){return(f=f.getOption("captions","track"))?!!f.displayName:!1};
$u5=function(f,R){R=R.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(R==null||!R.length)return f;var u=R.filter(function(l){return l});
R=f.filter(function(l){return l.languageCode.startsWith("en")});
u=_.Z(u);for(var O=u.next();!O.done;O=u.next())if(O=O.value,R.length){var c=R[0],h=Object.assign({},c);c.languageCode!==O.languageCode&&(h.displayName=c.languageName+" >> "+O.languageName,h.translationLanguage=O,f.push(h))}return f};
g3l=function(f){var R,u=(R=f.getOption("captions","tracklist",{includeAsr:!0}))!=null?R:[];return u=$u5(u,f)};
sa9=function(f){return _.et(f,function(R){return R.languageCode==="en"})};
n3m=function(f){var R=V7;if(SOm(f))f.setOption("captions","stickyLoading",{}),f.setOption("captions","track",{});else{var u=_.et(g3l(f),function(O){return O.displayName===R});
f.setOption("captions","track",u)}};
Vyl=function(f){if(!f)return 0;var R=f.getPresentingPlayerType(),u=f.getVideoData();return u&&u.isLive?(f=f.getProgressState(R),f.seekableEnd-f.seekableStart):f.getDuration(R)};
YL=function(f,R){_.za(R,f,function(){return YOK[R]},function(u){YOK[R]=u;
if(!_.E("mweb_player_ve_show_ks")){var O=_.z4(0);O&&u&&_.B_(O,u)}})};
vS=function(f){(f=YOK[f])&&_.hi(_.wR(),f)};
v39=function(f,R){for(var u=_.Z(Object.keys(f)),O=u.next();!O.done;O=u.next())if(O=O.value,f[O]!==R[O])return!1;return!0};
ijw=function(){return document.getElementById("player-control-overlay")};
rmz=function(f){f!==-1&&!_.E("player_controls_log_creation_killswitch")&&ijw()&&(_.JH("pcu_cs",f),_.JH("pcu_ce"))};
Rwa=function(f){return _.a("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(f.subscribeButton?[f.subscribeButton,f.channelAccess]:[f.channelAccess]).map(function(R){return _.a("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.a("div",{class:"yt-profile-identity-info-view-model-wiz--button"},fum(R)))}))};
_.uVN=function(f){var R=f.data;f=f.hideDivider;var u={};u=(u["yt-profile-identity-info-view-model-wiz__frame"]=!0,u["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!R.channelBanner,u);u={class:_.AS(u)};var O,c={imageBannerViewModel:{image:(O=R.channelBanner)==null?void 0:O.image,style:"IMAGE_BANNER_STYLE_INSET"}};O=_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},R.channelBanner?_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
fum(c,{imageBannerViewModel:{isPositionRelative:!0}})):null);c=_.a("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},fum(R.avatar));var h;var l=_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},R.channelDisplayName),R.verifiedOrOacBadge?_.a("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.a(_.gR,{data:{thumbnails:[{url:(h=R.verifiedOrOacBadge)==null?void 0:h.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);h=_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},l,fum(R.threeDotMenu));l=_.a("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.a("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.a("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},R.channelHandle),R.channelPronouns&&R.channelHandle?_.a("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.a("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},R.channelPronouns)),_.a("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.a("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},R.leftOfBulletInfo),R.leftOfBulletInfo&&R.rightOfBulletInfo?_.a("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.a("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},R.rightOfBulletInfo)));h=_.a("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},h,l);return _.a("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.a("div",u,O,_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},c,h),R.channelDescription?_.a("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},R.channelDescription):
null,Rwa(R),f?null:_.a("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
k_9=function(f,R){var u=_.g_(f,{}),O=OGK("top",R),c=OGK("bottom",R),h=OGK("left",R),l=OGK("right",R);return _.Qm({top:function(){return iM(u().position,O)},
bottom:function(){return iM(u().position,c)},
left:function(){return iM(u().position,h)},
right:function(){return iM(u().position,l)},
position:function(){return iM(u().positionType,cuK)},
height:function(){return iM(u().height,rK)},
width:function(){return iM(u().width,rK)},
"min-width":function(){return iM(u().minWidth,rK)},
"min-height":function(){return iM(u().minHeight,rK)},
"max-width":function(){return iM(u().maxWidth,rK)},
"max-height":function(){return iM(u().maxHeight,rK)},
"aspect-ratio":function(){return iM(u().aspectRatio,String)},
"margin-top":function(){return iM(u().margin,O)},
"margin-bottom":function(){return iM(u().margin,c)},
"margin-left":function(){return iM(u().margin,h)},
"margin-right":function(){return iM(u().margin,l)},
"padding-top":function(){return iM(u().padding,O)},
"padding-bottom":function(){return iM(u().padding,c)},
"padding-left":function(){return iM(u().padding,h)},
"padding-right":function(){return iM(u().padding,l)},
"flex-direction":function(){return iM(u().flexDirection,Xlh)},
"justify-content":function(){return iM(u().justifyContent,hwh)},
"align-items":function(){return iM(u().alignItems,ZGt)},
"flex-grow":function(){return iM(u().flexGrow,String)},
"flex-shrink":function(){return iM(u().flexShrink,String)},
"flex-basis":function(){return iM(u().flexBasis,rK)},
"align-self":function(){return iM(u().alignSelf,ZGt)},
"flex-wrap":function(){return iM(u().flexWrap,lue)},
"align-content":function(){return iM(u().alignContent,ZGt)}})};
iM=function(f,R){return f!==void 0?R(f):void 0};
lue=function(f){switch(f){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
cuK=function(f){switch(f){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
ZGt=function(f){switch(f){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"}};
hwh=function(f){switch(f){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"}};
Xlh=function(f){switch(f){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"}};
OGK=function(f,R){var u=R==="rtl";switch(f){case "top":var O=K1l;break;case "bottom":O=qkN;break;case "left":O=Au2;break;default:O=aul}return function(c){return iM(O(c,u),rK)}};
K1l=function(f){var R=f.top;var u=f.vertical;f=f.all;var O;return(O=R!=null?R:u)!=null?O:f};
qkN=function(f){var R=f.bottom;var u=f.vertical;f=f.all;var O;return(O=R!=null?R:u)!=null?O:f};
Au2=function(f,R){var u=f.left;var O=f.end;var c=f.start;var h=f.horizontal;f=f.all;var l,K;return(K=(l=u!=null?u:R?O:c)!=null?l:h)!=null?K:f};
aul=function(f,R){var u=f.right;var O=f.end;var c=f.start;var h=f.horizontal;f=f.all;var l,K;return(K=(l=u!=null?u:R?c:O)!=null?l:h)!=null?K:f};
rK=function(f){var R=f.value;switch(f.unit){case "YPC_DIMENSION_UNIT_POINT":return R+"px";case "YPC_DIMENSION_UNIT_FRACTION":return R+"%";default:return""+R}};
F1h=function(f){switch(f){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"}};
wlz=function(f){var R=f!=null?f:{};f=R.fontRole;var u=R.fontSize;R=R.fontWeight;if(f!==null&&u!==null)switch(f){case "YPC_FONT_ROLE_DISPLAY":switch(u){case "YPC_FONT_SIZE_L":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(u){case "YPC_FONT_SIZE_L":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return R===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(u){case "YPC_FONT_SIZE_XL":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
mcN=function(f,R){return _.kZ(f.entities,"pdpStateEntity",R)};
CCz=function(f,R,u){function O(F){return Object.values(F).map(function(w){var m=w.productId;w=w.pricingOptionIndex;return Q5N(c(m).pricingOptions,w).pricingOptionId})}
function c(F){return K().get(F)}
function h(F){F=O(F);u(F)}
var l=W19([f,R],function(F,w){var m=F==null?void 0:F.selectedPricingOptions;F={};var W=!0;if(m&&w.length)for(var C=_.Z(w),d=C.next();!d.done;d=C.next()){d=d.value;var p=Eum(d.pricingOptions,function(J){a:{J=J.pricingOptionId;for(var M=_.Z(m),P=M.next();!P.done;P=M.next())if(P.value===J){J=!0;break a}J=!1}return J});
p>=0&&(W=!1,F[d.groupId]={productId:d.productId,pricingOptionIndex:p})}W&&w.length&&(F[w[0].groupId]={productId:w[0].productId,pricingOptionIndex:0});return F}),K=W19([R],function(F){return new Map(F.map(function(w){return[w.productId,
w]}))}),q=W19([R],function(F){var w=new Map;
F=_.Z(F);for(var m=F.next();!m.done;m=F.next()){var W=m.value;m=W.groupId;var C=W.productId;W=_.Z(tWh(W.pricingOptions));for(var d=W.next();!d.done;d=W.next()){var p=_.Z(d.value);d=p.next().value;p=p.next().value;w.set(p.pricingOptionId,{groupId:m,productId:C,index:d,pricingOption:p})}}return w});
return{getProductById:c,isProductSelected:function(F){var w=c(F);if(!w)return!1;var m;return((m=l()[w.groupId])==null?void 0:m.productId)===F},
getSelectedPricingOptions:function(){return Object.values(l()).map(function(F){var w=F.productId;F=F.pricingOptionIndex;return Q5N(c(w).pricingOptions,F)})},
getSelectedProductByGroupId:function(F){var w;return(F=(w=l()[F])==null?void 0:w.productId)?c(F):void 0},
onProductSelected:function(F){var w=c(F);if(w){var m=l(),W;if(((W=m[w.groupId])==null?void 0:W.productId)!==F){var C,d;W=(d=(C=m[w.groupId])==null?void 0:C.pricingOptionIndex)!=null?d:0;C=0;for(d=w.pricingOptions[Symbol.iterator]();!d.next().done;)++C;C<=W&&(W=0);C={};h(Object.assign({},m,(C[w.groupId]={productId:F,pricingOptionIndex:W},C)))}}},
onPricingOptionSelected:function(F){var w=q().get(F);if(w){F=w.groupId;var m=w.productId;w=w.index;var W=l(),C,d;if(((C=W[F])==null?void 0:C.productId)!==m||((d=W[F])==null?void 0:d.pricingOptionIndex)!==w){var p,J;C=(J=(p=W[F])==null?void 0:p.pricingGroupAttributes)!=null?J:[];p={};h(Object.assign({},W,(p[F]={productId:m,pricingOptionIndex:w,pricingGroupAttributes:C},p)))}}},
onClearGroupSelected:function(F){var w=l();w[F]&&(w=Object.fromEntries(Object.entries(w).filter(function(m){return _.Z(m).next().value!==F})),h(w))}}};
tWh=function(f){return function u(){var O,c,h,l,K;return _.vp2(u,function(q){switch(q.nextAddress){case 1:_.Zu(q,2),O=0,c=_.Z(f),h=c.next();case 4:if(h.done){q.jumpTo(2);break}l=h.value;K=_.iV5;return _.A(q,[O++,l],7);case 7:K(q.yieldResult);h=c.next();q.jumpTo(4);break;case 2:_.hu(q),_.lC(q,0)}})}()};
Eum=function(f,R){f=_.Z(tWh(f));for(var u=f.next();!u.done;u=f.next()){var O=_.Z(u.value);u=O.next().value;O=O.next().value;if(R(O))return u}return-1};
Q5N=function(f,R){f=_.Z(tWh(f));for(var u=f.next();!u.done;u=f.next()){var O=_.Z(u.value);u=O.next().value;O=O.next().value;if(u===R)return O}};
W19=function(f,R){var u,O;return function(){for(var c=f.map(function(l){return l()}),h=0;h<c.length;h++)if(!u||c[h]!==u[h]){u=c;
O=R.apply(null,_.yq(c));break}return O}};
yu9=function(f){var R;return!!(f.productId&&f.groupId&&((R=f.pricingOptions)==null?0:R.length)&&f.pricingOptions.every(function(u){return u.pricingOptionId}))};
dcm=function(f,R,u){return CCz(f,W19([R],function(O){return O.filter(yu9)}),u)};
Nn9=function(f,R){return R.length===0?[f]:[f.slice(0,R[0]),f.slice(R[0])].filter(function(u){return u.length>0})};
L1X=function(f){switch(f){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""}};
pla=function(f,R,u,O){O=Object.assign({},O);_.jQ(O,bGw,{selectedOptionId:f,primaryButtonOverride:u});_.xs().dispatch(_.aA("flowStateEntity",R,O))};
_.JuK=function(){if(!j5a){var f=_.Z(_.qK(new Map,void 0,"UJImUe"));j5a=f.next().value;Dce=f.next().value}return j5a};
zwz=function(f){if(f)return _.JuK()().get(f)};
_.Tna=function(f,R){if(f&&R){var u=_.JuK();u().set(f,R);f=u();Dce(new Map(f))}};
_.HGm=function(f){return{onSubmit:function(){var R;(R=zwz(f()))==null||R.onSubmit()},
isValid:function(){var R=zwz(f());return R?R.isValid():!0},
isSubmitting:function(){var R,u;return!!((R=zwz(f()))==null?0:(u=R.isSubmitting)==null?0:u.call(R))}}};
Iuw=function(f,R){return _.kZ(f.entities,"contextNoteFeedEntityPayload",R)};
MWh=function(f){f.style.height="auto";f.style.height=f.scrollHeight+"px"};
PCm=function(f){return[f.syncStep,f.asyncStep].filter(function(R){return R!==void 0})};
ewm=function(f){var R,u,O;if(f=(R=f.structuredContextNoteFormSchema)==null?void 0:(u=R.fieldSchemas)==null?void 0:(O=u.noteBody)==null?void 0:O.validationSchema)for(R=_.Z(PCm(f)),u=R.next();!u.done;u=R.next()){u=u.value.rules;if(!u)break;u=_.Z(u);for(u=u.next();!u.done;u=u.next())return _.t(u.value,_.Uc9)}};
Bnm=function(f){if(f){f=_.Z(PCm(f));for(var R=f.next();!R.done;R=f.next()){R=R.value.rules;if(!R)break;R=_.Z(R);for(R=R.next();!R.done;R=R.next())return _.t(R.value,G_N)}}};
xcX=function(f){if(f){f=_.Z(PCm(f));for(var R=f.next();!R.done;R=f.next()){R=R.value.rules;if(!R)break;R=_.Z(R);for(R=R.next();!R.done;R=R.next())return _.t(R.value,oum)}}};
Skm=function(f){f=/^https?:\/\//.test(f)?f:"http://"+f;try{var R=_.oj(f)}catch(u){return!1}if(R.toString()!==f)return!1;f=R.JSC$8036_domain_.split(".");return f.length>1&&f.every(function(u){return!!u})};
$cK=function(f,R,u,O){var c;O=(c=O.structuredContextNoteData)==null?void 0:c.createCommentEndpoint;if(c=_.t(O,_.uUt))return c.commentText=_.S8(f),c.videoPositionMention=R,c.sources=u,O};
guw=function(f){return f==null?void 0:f.stringValue};
nue=function(f,R,u){f=f.map(function(O,c){return{listItemViewModel:{title:O.title,subtitle:O.subtitle,leadingImage:O.leadingImage,trailingImage:c===R?s5l:void 0,rendererContext:{commandContext:{onTap:O.onTap}}}}});
return Object.assign({},u&&{header:{panelHeaderViewModel:{title:u}}},{content:{listViewModel:{listItems:f}}})};
VWK=function(f,R){if(f&&R)switch(R){case "SELECTION_TYPE_BOOL":return f.boolValue;case "SELECTION_TYPE_INT":return f.intValue;case "SELECTION_TYPE_STRING":return f.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return f.privacyStatusValue}};
Yk2=function(f){var R;f=(R=f.options)==null?void 0:R.findIndex(function(u){return u.isSelected});
return f===void 0?-1:f};
vuz=function(f,R,u){var O=function(){return f().label},c={},h=_.KL("ytDropdownViewModelLabel",(c.ytDropdownViewModelLabelError=R,c));
return _.a(_.Q,{cond:function(){return f().label&&!(u()===-1&&f().label&&!f().placeholderText)},
then:function(){return _.a("div",{class:h},_.a(_.YO,{text:O}))}})};
iGS=function(f,R){var u={};u=_.KL("ytDropdownViewModelTitle",(u.ytDropdownViewModelTitlePlaceholder=function(){return R()===-1},u));
return _.a("div",{class:u},_.a(_.YO,{text:function(){var O=f();var c=R();if(c===-1)O=O.placeholderText?O.placeholderText:O.label;else{var h,l;O=(h=O.options)==null?void 0:(l=h[c])==null?void 0:l.title}return O}}))};
rua=function(f,R){var u=function(){return f().hint};
return _.a(_.RS,null,_.a(_.Q,{cond:function(){return u()&&!R()},
then:function(){return _.a("div",{class:_.KL("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.a(_.YO,{text:u,className:"ytDropdownViewModelSupportText"}))}}),_.a(_.Q,{cond:R,
then:function(){return _.a("div",{id:"dropdown-view-model-error",role:"alert",class:_.KL("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.a(_.WM,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.a(_.YO,{text:R,className:"ytDropdownViewModelSupportText"}))}}))};
fwS=function(f,R){var u=_.vh().resolve(_.eNC);_.bt(function(){var O=f().id;O&&u!=null&&u.dropdownMap.set(O,R)})};
uHz=function(f){f=_.t(f.scheduleButton,Rfw);f=_.t(f==null?void 0:f.primaryButton,_.dW);f=_.t(f==null?void 0:f.onTap,_.TW);var R,u,O=((u=_.t(f,_.kE))==null?void 0:u.commands)||[f];u=_.Z(O);for(f=u.next();!f.done&&!(R=_.t(f.value,_.fCE));f=u.next());var c;R=(c=R)==null?void 0:c.createBroadcastRequest;if(!R)throw Error("Gj");return R};
hfw=function(f,R,u){u=u===void 0?{}:u;var O,c;return _.k(function(h){if(O=O8z(R))return h.return(O);(c=c5t(f,R,u))&&XKm(R,c);return h.return(c)})};
XKm=function(f,R){var u=Z8e(f);u&&R.then(function(O){_.vh().resolve(_.XC).put(u,new _.hU({innertubeResponse:O}))})};
O8z=function(f){if(f=Z8e(f)){var R=_.vh().resolve(_.XC);if(R.has(f))return R.get(f).then(function(u){return u==null?void 0:_.hd(u)})}return null};
Z8e=function(f){var R=_.t(f.endpoint,_.$7);if(R!=null&&R.videoId)return R={videoId:R.videoId},_.E("web_imp_player_mute_params")&&(R.mutedAtStart=f.startPlaybackInMutedState),_.Sd("inline_playback",R)};
c5t=function(f,R,u){f=_.e6(f,R.endpoint,lwt(R,u)).then(function(O){return O});
return Promise.resolve(f)};
lwt=function(f,R){R=_.E("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!f.startPlaybackInMutedState},R):Object.assign({},{vis:5,autonav:"1"},R);var u;R={contentPlaybackContext:_.yC(R,(u=_.t(f.endpoint.commandMetadata,_.vc))==null?void 0:u.url,window.location.href)};_.E("web_imp_player_mute_params")&&(R.overrideMutedAtStart=!f.startPlaybackInMutedState);return R};
A5K=function(f,R){var u=window.MutationObserver;u&&(f4=new u(function(O,c){O=_.Z(O);for(var h=O.next();!h.done;h=O.next()){h=h.value;var l;if(l=h.type==="childList"&&h.target)a:{l=f;h=kx5(h.target);l=kx5(l);for(var K=null,q=0;q<h.length;q++)if(l.includes(h[q])){if(q===0){l=!1;break a}K=h[q];break}K?(h=KyN(h,K),l=KyN(l,K),l=h<l):l=!1}if(l){R();c.disconnect();break}}}),(u=qf2())&&f4.observe(u,{childList:!0,
subtree:!0}))};
qf2=function(){var f=document.getElementsByTagName("ytd-rich-grid-renderer");if(f.length>0)return f[0];f=document.getElementsByTagName("ytd-section-list-renderer");return f.length>0?f[0]:null};
kx5=function(f){for(var R=[];f;)R.push(f),f=f.parentElement;return R};
KyN=function(f,R){var u=Array.from(R.children);R=f.indexOf(R);return R>0?u.indexOf(f[R-1]):-1};
RR=function(f,R,u){u=u===void 0?{}:u;return _.Fa(f,u,R)};
aw2=function(f){switch(f){case "MUSIC":return!0;default:return!1}};
Fy5=function(f){return f==null?void 0:f.filter(function(R){return R.premiereTrailerBadgeRenderer})};
mg5=function(f){var R,u=f==null?void 0:(R=f.find(function(m){return m.thumbnailOverlayTimeStatusRenderer}))==null?void 0:R.thumbnailOverlayTimeStatusRenderer,O,c;
if((u==null?0:(O=u.icon)==null?0:O.iconType)&&aw2(u==null?void 0:(c=u.icon)==null?void 0:c.iconType)){var h;return{icon:u==null?void 0:(h=u.icon)==null?void 0:h.iconType}}var l,K;var q=(f=(l=f==null?void 0:(q=f.find(function(m){return m.thumbnailBottomOverlayViewModel}))==null?void 0:q.thumbnailBottomOverlayViewModel)==null?void 0:(K=l.badges)==null?void 0:K.find(function(m){var W,C;
return((W=_.t(m,wKS))==null?void 0:(C=W.inlinePlaybackBadgeData)==null?void 0:C.replicateAsTimestamp)===!0}))?_.t(f,wKS):void 0;
if(q==null?0:q.icon){var F,w;if((q=(F=_.K3t(q==null?void 0:q.icon))==null?void 0:(w=F.clientResource)==null?void 0:w.imageName)&&aw2(q))return{icon:q}}return{}};
EDS=function(f,R){var u="",O="";switch(f){case -1:case 0:u=R?"VOLUME_OFF":"VOLUME_OFF_FILLED";O=Q02;break;case 1:u=R?"VOLUME_UP_OUTLINE":"VOLUME_UP";O=WyS;break;default:_.km(f)}return{iconName:u,ariaLabel:O}};
Ly9=function(f,R){var u=tFK,O=_.Z(_.qK(C_e(new y5m(function(){},u,R)),void 0,"PAnyd")),c=O.next().value,h=O.next().value,l=new y5m(function(K){h(K)},u,R);
_.pc(function(){Promise.resolve().then(function(){var K,q=(K=f())!=null?K:{};l.playerControlsData=q;_.E("player_controls_skip_double_signal_old")&&(l.lastSeenPlayerApi=_.IG(q.playerApi));_.E("player_controls_skip_double_signal_old")||(l.lastSeenPlayerApi=_.IG(q.playerApi));dgh(l)});
_.jN(function(){Nqw(l)})});
_.jN(function(){Nqw(l)});
return function(){return c()}};
b8X=function(f){return function(R){var u=f(),O={playerState:R};if(R===1){var c;(c=u.playerApi)==null||c.loadModule("captions")}if(R===0){var h;(h=u.playerApi)==null||h.unloadModule("captions")}(R!==-1||_.E("web_imp_controls_set_player_state_killswitch"))&&u.setState(O)}};
pKN=function(f){return function(R){f().setState({playbackRate:R})}};
j0K=function(f){return function(R){var u=f(),O=u.playerApi,c=O==null?void 0:O.getVideoData(),h=(c==null?void 0:c.isLive)||!1;c=c==null?void 0:c.video_id;h={videoDuration:Vyl(O||void 0),isLive:h,videoId:c};h.videoId!==u.videoId&&(h=Object.assign({},_.Oo7(O),h));if(R==null?0:R.playertype)h.playerType=R.playertype;if(O){h.captionsAvailable=!!O.getOptions("captions");R=h;var l;c=(l=O.getStoryboardLevel(O.getNumberOfStoryboardLevels()-1))==null?void 0:l.intervalMs;R.storyboardInterval=c?c/1E3:void 0;h.captionsAvailable&&
(h.captionsEnabled=SOm(O))}h.volumeMuted=!(O==null||!O.isMuted());u.setState(h)}};
Dgw=function(f){return function(R){var u=f(),O=u.playerApi;if(O){var c=O.getPresentingPlayerType();R={playedTime:R||0,percentLoaded:O.getVideoLoadedFraction(),playerType:c};u.playerState===0&&(R.playedTime=u.videoDuration);u.isLive&&(c=O.getProgressState(c),R.playedTime-=c.seekableStart,R.videoDuration=Vyl(O));if(u.playerType===1)O=!1;else{var h;if((h=u.uxConfig)==null?0:h.showCuedOverlay){var l;O=!((l=u.playerApi)==null?0:l.getPlayerStateObject(u.playerType).isDomPaused)}else O=!0}O&&delete R.playedTime;
u.setState(R)}}};
J5X=function(f){return function(){var R=f(),u,O,c,h={volume:(c=(u=R.playerApi)==null?void 0:u.getVolume())!=null?c:0,volumeMuted:!((O=R.playerApi)==null||!O.isMuted())};R.setState(h)}};
zf9=function(f){return function(){var R=f(),u=R.playerApi;if(u){var O={captionsAvailable:!!u.getOptions("captions")};O.captionsAvailable&&(O.captionsEnabled=SOm(u));R.setState(O)}}};
Tqt=function(f){return function(){var R=f();if(R.playerApi&&!(R.volumeMuted||R.controlsVisible&&R.isProbablyAScreenreaderUser)){R.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var u;(u=document.querySelector(".player-control-play-pause-icon"))==null||u.focus()}}};
H8N=function(f){return{appApi:Object.assign({},_.Yj0(),{showCaptionsToggleToast:function(R){var u,O;(O=(u=f()).showCaptionsToggleToast)==null||O.call(u,R)},
openInMiniplayer:function(){var R,u;(u=(R=f()).openInMiniplayer)==null||u.call(R)}})}};
IwK=function(f,R){var u,O,c;return!!(f==null?0:(u=f.playerResponse)==null?0:(O=u.playerConfig)==null?0:(c=O.inlinePlaybackConfig)==null?0:c.showScrubbingControls)&&!(R==null?0:R.hideScrubbingControls)};
_.MFK=function(f){var R=!f.miniplayerIsActive;return[5,2,0].includes(f.miniplayerPlaybackState)||R};
P_9={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Ugm=function(f,R){var u,O,c,h,l;_.k(function(K){if(!R.length)return K.return([]);u=[];O=_.Z(R);for(c=O.next();!c.done;c=O.next())h=c.value,(l=f.resolveIcon(h))&&!f.iconCache[l.url]&&u.push(_.iZf(f,l).then(function(){}).catch(function(){}));
return K.return(Promise.all(u))})};
ef9=function(f,R){var u=[];R=(new Set(R)).values();R=_.Z(R);for(var O=R.next();!O.done;O=R.next()){O=O.value;for(var c=_.Z(Object.values(P_9)),h=c.next();!h.done;h=c.next())u.push({iconName:O,iconStyle:h.value})}Ugm(f.iconManager,u)};
_.Gxm=function(f,R,u){var O=u!=null?u:f.iconsToFetch;O!=null&&O.length?R!==void 0&&R>=0?_.dJ(_.JA,function(){ef9(f,O)},R):ef9(f,O):Promise.resolve()};
YOK={};
y5m=function(f,R,u){var O=this;this.renderFn=f;this.listeners=R;this.context=u;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var c;this.lastSeenPlayerApi=_.IG((c=this.playerControlsData)==null?void 0:c.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Oo7(),void 0);_.E("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){C_e(O).setState({playerState:-1});O.resetRecentlyNavigatedJobId&&_.JA.cancelJob(O.resetRecentlyNavigatedJobId);O.recentlyNavigated=
!0;O.resetRecentlyNavigatedJobId=_.JA.addJob(function(){O.recentlyNavigated=!1},8,1E4)})};
y5m.prototype.setState=function(f){if(!_.E("mweb_player_skip_no_op_state_changes")||!v39(f,this.state))if(this.state=Object.assign({},this.state,f),!_.E("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)f=-1,_.E("player_controls_log_creation_killswitch")||ijw()||(f=(0,_.iZ)()),_.JH("pcu_s"),_.JH("pcu_se"),_.JH("pcu_rs"),this.renderFn(C_e(this)),_.JH("pcu_re"),rmz(f),_.JA.addJob(function(){_.JH("pcu_ap")},8)};
var C_e=function(f){var R;var u=_.IG((R=f.playerControlsData)==null?void 0:R.playerApi);return Object.assign({},f.state,{setState:f.boundSetState,domMeasurements:{progressBarLineRect:f.progressBarLineRect},playerApi:u,appApi:f.context.appApi,playerContainer:f.context.playerContainer,playerControlContainer:f.context.playerControlContainer,uxConfig:f.context.uxConfig})},dgh=function(f){f.listeners.forEach(function(R){f.eventListenerCleanupFunctions.push(R.register(function(){return C_e(f)},function(){return f.getData()}))})},
Nqw=function(f){f.eventListenerCleanupFunctions.forEach(function(R){R()});
f.eventListenerCleanupFunctions.length=0};
y5m.prototype.getData=function(){return this.playerControlsData};
var uF=new _.Y("abuseReportFlowState");var BqN=new _.Y("feedbackFormFlowState");var oDX=new _.Y("inputBoxViewModel");var xgt=new _.Y("flowNextStepCommand");var SfS=new _.Y("flowPrevStepCommand");var $gw=new _.Y("updateFlowCommand");_.gDK=new _.Y("flowStepRenderer");_.Uc9=new _.Y("lengthValidationRule");var G_N=new _.Y("regexValidationRule");var oum=new _.Y("selectedValidationRule");var s0N=new _.Y("talkToRecsViewModel");var nDS=new _.Y("creatorGoalSetUpFlowDropdownItemViewModel");var VF2=new _.Y("creatorGoalSetUpFlowDropdownViewModel");var wKS=new _.Y("thumbnailBadgeViewModel");_.Yf9=new _.Y("radioButtonGroupViewModel");var Rfw=new _.Y("panelFooterViewModel");var vDe=new _.Y("ypcCancelRecurrenceCommand");var i8l=new _.Y("cancellationFlowState");var bGw=new _.Y("premiumPurchaseFlowState");var r5K=new _.Y("surveyAnswerCardRenderer");var fNm=new _.Y("showMoreButtonRenderer");var RdX;var u$N,ORl=function(){if(u$N!==void 0)return u$N;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;RdX===void 0&&(RdX=document.createElement("template"));var O=RdX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return u$N=f};var OK=function(){var f=_.U.apply(this,arguments)||this;f.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";f.goalDescription="";f.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";f.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";f.startButtonId="start-button";f.exampleButtonId="example-button";return f};
_.y(OK,_.U);_.X=OK.prototype;_.X.getGoalDropdownItems=function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.purchaseTargetDropdown,VF2))==null?void 0:R.dropdownItems};
_.X.getTimerDropdownItems=function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.timerDropdown,VF2))==null?void 0:R.dropdownItems};
_.X.getColorDropdownItems=function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.colorDropdown,VF2))==null?void 0:R.dropdownItems};
_.X.getDropdownItemText=function(f){var R;return(R=_.t(f,nDS))==null?void 0:R.itemLabel};
_.X.getDropdownItemValue=function(f){f=_.t(f,nDS);return(f==null?void 0:f.timeLimit)||(f==null?void 0:f.purchaseTarget)||(f==null?void 0:f.eligiblePurchaseType)};
_.X.updateFlowState=function(f){_.OJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:f}])};
_.X.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.X.updateGoalValue=function(f){this.goal=f.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.X.onTextValueChanged=function(f){this.goalDescription=f.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.X.updateTimerValue=function(f){this.timer=f.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.X.updateTierValue=function(f){this.tier=f.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.X.getButtonViewModel=function(f){f=(f==null?void 0:f.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var R,u=_.t((R=this.data)==null?void 0:R.startGoalButton,_.dW);return Object.assign({},u,{state:f})};
_.Vy.Object.defineProperties(OK,{template:{configurable:!0,enumerable:!0,get:function(){return ORl()}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],OK.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],OK.prototype,"goal",void 0);_.B([_.I(),_.S("design:type",Object)],OK.prototype,"goalDescription",void 0);_.B([_.I(),_.S("design:type",Object)],OK.prototype,"timer",void 0);_.B([_.I(),_.S("design:type",Object)],OK.prototype,"tier",void 0);
_.B([_.I(),_.S("design:type",Object)],OK.prototype,"startButtonId",void 0);_.B([_.I(),_.S("design:type",Object)],OK.prototype,"exampleButtonId",void 0);OK=_.B([_.DO({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],OK);_.G(OK,"yt-creator-goal-set-up-flow-view-model",function(){return ORl()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var cKz;var Xi9;var hde;var cx=function(){return _.U.apply(this,arguments)||this};
_.y(cx,_.U);_.B([_.I(),_.S("design:type",Object)],cx.prototype,"data",void 0);cx=_.B([_.DO({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],cx);
_.G(cx,"yt-survey-answer-card-renderer",function(){if(hde===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Xi9===void 0&&(Xi9=document.createElement("template"));var O=Xi9;u.call(R,O.content.cloneNode(!0),f.content.firstChild);hde=f}f=hde;return f},{mode:2});var ZRK;var lNK;var Xd=function(){return _.U.apply(this,arguments)||this};
_.y(Xd,_.U);_.X=Xd.prototype;_.X.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.X.selectedItemChanged=function(f){_.OJ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[f.feedbackToken||""]}])};
_.X.surveyAnswerCardRendererClicked=function(f){if(f.target&&_.t(f.model.item,r5K)){var R=f.target;f=_.t(f.model.item,r5K);f.onTapCommand?_.ZW(R,[f.onTapCommand],R):this.data.onTapCommand&&_.ZW(R,[this.data.onTapCommand],R);this.selectedItemChanged(f)}};
_.X.checkIsCancellationStyle=function(f){return f==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.X.updateSelectedItemFromBinding=function(f){this.selectedItem=f.detail.value};
Xd.prototype.onSelectedItemChanged=Xd.prototype.onSelectedItemChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Xd.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Xd.prototype,"selectedItem",void 0);_.B([_.I({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Xd.prototype,"isCancellationStyle",void 0);
_.B([_.qM("selectedItem"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xd.prototype,"onSelectedItemChanged",null);Xd=_.B([_.DO({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Xd);
_.G(Xd,"yt-survey-flow-step-renderer",function(){if(lNK===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ZRK===void 0&&(ZRK=document.createElement("template"));var O=ZRK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);lNK=f}f=lNK;return f},{mode:2});var hD=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return f};
_.y(hD,_.U);hD.prototype.handleSurveyFlowStepOptionChanged=function(f){this.ytdReduxBehavior.dispatch(_.OP({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:f}));_.OJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:f}}])};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],hD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],hD.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hD.prototype,"data",void 0);hD=_.B([_.e({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],hD);
_.G(hD,"ytd-survey-flow-step-renderer",function(){if(cKz!==void 0)return cKz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return cKz=f},{mode:1});var fum;fum=_.WJ({avatarViewModel:_.NC,buttonViewModel:_.TS,subscribeButtonViewModel:_.Le,imageBannerViewModel:_.Obk});_.kPN=_.aX(_.uVN);_.RI(_.uVN);var KDe;var Zi=function(){return _.U.apply(this,arguments)||this};
_.y(Zi,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Zi.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zi.prototype,"data",void 0);Zi=_.B([_.e({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Zi);
_.G(Zi,"ytd-channel-history-renderer",function(){if(KDe!==void 0)return KDe;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KDe=f},{mode:1});var q8w;var lF=function(){return _.U.apply(this,arguments)||this};
_.y(lF,_.U);_.B([_.I(),_.S("design:type",Object)],lF.prototype,"data",void 0);lF=_.B([_.e({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],lF);
_.G(lF,"ytd-feature-enablement-info-renderer",function(){if(q8w!==void 0)return q8w;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return q8w=f},{mode:1});var AKN;var aNt;var k2=function(){var f=_.U.apply(this,arguments)||this;f.textBoxMaxLength=_.E("enable_tvod_campaign_code_integration")?15:12;return f};
_.y(k2,_.U);_.X=k2.prototype;_.X.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.X.onSubmit=function(){var f=this.data.serviceEndpoint,R=_.t(f,_.OY);R&&f&&(R.couponCode=this.userInput,_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}}))};
_.X.validate=function(){var f=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=f&&!this.data.errorMessage;this.showErrorMessage=f&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.E("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.X.computeStyle=function(f){return f};
_.X.computeShowValidationBelowInput=function(f){return f!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.X.updateUserInputFromBinding=function(f){this.userInput=f.currentTarget.value};
_.X.updateShowErrorMessageFromBinding=function(f){this.showErrorMessage=f.detail.value};
_.Vy.Object.defineProperties(k2.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
k2.prototype.dataChanged=k2.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],k2.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],k2.prototype,"userInput",void 0);_.B([_.I(),_.S("design:type",Boolean)],k2.prototype,"disableApplyButton",void 0);_.B([_.I(),_.S("design:type",Boolean)],k2.prototype,"hideApplyButton",void 0);
_.B([_.I(),_.S("design:type",Boolean)],k2.prototype,"hideErrorMessage",void 0);_.B([_.I(),_.S("design:type",Boolean)],k2.prototype,"showTick",void 0);_.B([_.I(),_.S("design:type",Boolean)],k2.prototype,"showErrorMessage",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],k2.prototype,"couponStyle",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.S("design:type",Boolean)],k2.prototype,"showValidationBelowInput",void 0);_.B([_.I(),_.S("design:type",Object)],k2.prototype,"textBoxMaxLength",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k2.prototype,"dataChanged",null);
_.B([_.T("showTick","showErrorMessage","userInput"),_.S("design:type",String),_.S("design:paramtypes",[])],k2.prototype,"validationState",null);k2=_.B([_.e({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],k2);
_.G(k2,"ytd-ypc-coupon-renderer",function(){if(aNt!==void 0)return aNt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return aNt=f},{mode:1});var K4=function(){return _.U.apply(this,arguments)||this};
_.y(K4,_.U);K4.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"}}}};
K4.prototype.computeStyle=function(f){return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],K4.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],K4.prototype,"buttonStyle",void 0);K4=_.B([_.e({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],K4);
_.G(K4,"ytd-flow-bottom-bar-renderer",function(){if(AKN!==void 0)return AKN;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return AKN=f},{mode:1});var FDX;var wim;var mGt;var q9=function(){return _.U.apply(this,arguments)||this};
_.y(q9,_.U);q9.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
q9.prototype.focus=function(f){this.title&&_.Vb(this.title,f)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],q9.prototype,"data",void 0);_.B([_.a4("#title"),_.S("design:type",HTMLElement)],q9.prototype,"title",void 0);q9=_.B([_.e({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],q9);
_.G(q9,"ytd-flow-top-bar-renderer",function(){if(mGt!==void 0)return mGt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return mGt=f},{mode:1});var Qjt;var WDw;var E$z;var AD=function(){return _.U.apply(this,arguments)||this};
_.y(AD,_.U);AD.prototype.freeTextValueChanged=function(){_.OJ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
AD.prototype.updateFreeTextValueFromBinding=function(f){this.freeTextValue=f.detail.value};
_.Vy.Object.defineProperties(AD.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(R=(f=this.data)==null?void 0:f.responseMaxLength)!=null?R:500,O;return((O=this.freeTextValue)!=null?O:"").length>=u?"maxed-out":""}}});
AD.prototype.freeTextValueChanged=AD.prototype.freeTextValueChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AD.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],AD.prototype,"freeTextValue",void 0);_.B([_.a4("#user-input"),_.S("design:type",HTMLTextAreaElement)],AD.prototype,"input",void 0);
_.B([_.T("freeTextValue"),_.S("design:type",Object),_.S("design:paramtypes",[])],AD.prototype,"characterLimitClass",null);_.B([_.qM("freeTextValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AD.prototype,"freeTextValueChanged",null);AD=_.B([_.DO({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],AD);
_.G(AD,"yt-free-text-input-flow-step-renderer",function(){if(E$z===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;WDw===void 0&&(WDw=document.createElement("template"));var O=WDw;u.call(R,O.content.cloneNode(!0),f.content.firstChild);E$z=f}f=E$z;return f},{mode:2});var aR=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return f};
_.y(aR,_.U);aR.prototype.handleFreeTextFlowStepInputChanged=function(f){_.OJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:f}}])};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],aR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],aR.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aR.prototype,"data",void 0);aR=_.B([_.e({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],aR);
_.G(aR,"ytd-free-text-input-flow-step-renderer",function(){if(Qjt!==void 0)return Qjt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Qjt=f},{mode:1});var trw;var C3N;var Fd=function(){return _.U.apply(this,arguments)||this};
_.y(Fd,_.U);_.B([_.I(),_.S("design:type",Object)],Fd.prototype,"data",void 0);Fd=_.B([_.e({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Fd);
_.G(Fd,"ytd-metadata-line-renderer",function(){if(C3N!==void 0)return C3N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return C3N=f},{mode:1});var wM=function(){return _.U.apply(this,arguments)||this};
_.y(wM,_.U);wM.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wM.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],wM.prototype,"isMasthead",void 0);wM=_.B([_.e({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],wM);
_.G(wM,"ytd-media-product-renderer",function(){if(trw!==void 0)return trw;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return trw=f},{mode:1});var yKw;var mL=function(){return _.U.apply(this,arguments)||this};
_.y(mL,_.U);mL.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
mL.prototype.onBillboardImageLoaded=function(){_.ul(this.hostElement,"yt-refit")};
mL.prototype.onBillboardImageLoaded=mL.prototype.onBillboardImageLoaded;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mL.prototype,"data",void 0);_.B([_.a4("#billboardImage"),_.S("design:type",Object)],mL.prototype,"billboardImage",void 0);_.B([_.Kf("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mL.prototype,"onBillboardImageLoaded",null);
mL=_.B([_.e({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],mL);
_.G(mL,"ytd-billboard-masthead-renderer",function(){if(yKw!==void 0)return yKw;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return yKw=f},{mode:1});var dGm;var Qs=function(){var f=_.U.apply(this,arguments)||this;f.smallSize=!1;return f};
_.y(Qs,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Qs.prototype,"ytComponentBehaviorType",void 0);_.B([_.I(),_.S("design:type",Object)],Qs.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Qs.prototype,"smallSize",void 0);Qs=_.B([_.e({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Qs);
_.G(Qs,"ytd-bullet-formatted-string",function(){if(dGm!==void 0)return dGm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return dGm=f},{mode:1});var N9w;var Wx=function(){return _.U.apply(this,arguments)||this};
_.y(Wx,_.U);Wx.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Wx.prototype,"data",void 0);Wx=_.B([_.e({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Wx);
_.G(Wx,"ytd-offer-detail-renderer",function(){if(N9w!==void 0)return N9w;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return N9w=f},{mode:1});var LDt;var EK=function(){return _.U.apply(this,arguments)||this};
_.y(EK,_.U);EK.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],EK.prototype,"data",void 0);EK=_.B([_.e({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],EK);
_.G(EK,"ytd-offer-detail-step-renderer",function(){if(LDt!==void 0)return LDt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return LDt=f},{mode:1});var bRh;var tD=function(){var f=_.U.apply(this,arguments)||this;f.isInOfferModule=!1;return f};
_.y(tD,_.U);_.X=tD.prototype;_.X.computeHasEndpoint=function(){var f;return!((f=this.data)==null||!f.onClickCommand)};
_.X.dataChanged=function(){var f;if((f=this.data)==null?0:f.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")};
_.X.detached=function(){var f;if((f=this.data)==null?0:f.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.X.handleClickEvent=function(){var f;if((f=this.data)==null?0:f.onClickCommand){var R;this.componentBehavior.resolveCommand((R=this.data)==null?void 0:R.onClickCommand)}};
_.X.onContentKeyDown=function(f){f.key==="Enter"?this.handleClickEvent(f):f.key===" "&&f.preventDefault()};
_.X.onContentKeyUp=function(f){f.key===" "&&this.handleClickEvent(f)};
tD.prototype.dataChanged=tD.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],tD.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tD.prototype,"data",void 0);_.B([_.I({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],tD.prototype,"hasEndpoint",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tD.prototype,"isInOfferModule",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tD.prototype,"dataChanged",null);tD=_.B([_.e({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],tD);
_.G(tD,"ytd-channel-masthead-renderer",function(){if(bRh!==void 0)return bRh;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return bRh=f},{mode:1});var pit;var C4=function(){var f=_.U.apply(this,arguments)||this;f.thumbnailObjectFit="CONTAIN";f.thumbnailObjectPosition="LEFT";f.isExpanded=!1;return f};
_.y(C4,_.U);_.X=C4.prototype;_.X.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.X.dataChanged=function(){this.resetStates()};
_.X.computeisTapOnOfferInfoContainerEnabled=function(){var f;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.X.onExpandBtnClick=function(){var f,R=_.t((f=this.data)==null?void 0:f.showMoreButtonRenderer,fNm);R&&_.Zn(_.wR(),R.trackingParams);this.isExpanded=!this.isExpanded};
_.X.onOfferInfoClick=function(f){this.isTapOnOfferInfoContainerEnabled&&(_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.gx(_.$S(f)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.X.onBottomBarClick=function(){this.executeTapCommand()};
_.X.executeTapCommand=function(){var f,R=(f=this.data)==null?void 0:f.tapCommand;R&&this.ytComponentBehavior.resolveCommand(R)};
_.X.resetStates=function(){this.isExpanded=!1};
_.Vy.Object.defineProperties(C4.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var f=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),R,u,O;return((R=this.data)==null?void 0:R.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&f&&!!((u=this.data)==null?0:(O=u.benefits)==null?0:O.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((R=_.t((f=this.data)==null?void 0:f.showMoreButtonRenderer,fNm))==null?void 0:R.showMoreButtonTitle)||((u=this.data)==null?void 0:u.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((R=_.t((f=this.data)==null?void 0:f.showMoreButtonRenderer,fNm))==null?void 0:R.showLessButtonTitle)||((u=this.data)==null?void 0:u.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var f;return(f=this.showLessButtonTitle)!=null?f:""}var R;return(R=this.showMoreButtonTitle)!=null?R:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((R=this.data)==null?0:R.footerTitle)||((u=this.data)==null?0:u.footerSubtitle))}}});
C4.prototype.dataChanged=C4.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],C4.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",String)],C4.prototype,"thumbnailObjectFit",void 0);
_.B([_.I(),_.S("design:type",String)],C4.prototype,"thumbnailObjectPosition",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.S("design:type",Boolean)],C4.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.B([_.I(),_.S("design:type",Object)],C4.prototype,"isExpanded",void 0);_.B([_.I(),_.S("design:type",Object)],C4.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.footerIcon)"}),_.S("design:type",String)],C4.prototype,"icon",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C4.prototype,"dataChanged",null);_.B([_.T("data.thumbnail"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],C4.prototype,"hasThumbnail",null);_.B([_.T("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],C4.prototype,"enableExpandButton",null);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],C4.prototype,"enableOfferContentIcon",null);_.B([_.T("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.S("design:type",Object),_.S("design:paramtypes",[])],C4.prototype,"showMoreButtonTitle",null);_.B([_.T("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.S("design:type",Object),_.S("design:paramtypes",[])],C4.prototype,"showLessButtonTitle",null);
_.B([_.T("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.S("design:type",String),_.S("design:paramtypes",[])],C4.prototype,"expandedBtnText",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],C4.prototype,"enableBottomBar",null);C4=_.B([_.e({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],C4);
_.G(C4,"ytd-offer-card-renderer",function(){if(pit!==void 0)return pit;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pit=f},{mode:1});var jjK;var ys=function(){return _.U.apply(this,arguments)||this};
_.y(ys,_.U);ys.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"}}}};
ys.prototype.onClick=function(f){if(!_.$G(f.composedPath()||[],this.hostElement,["A".toString()])){var R,u;if((f=(u=_.t((R=this.data)==null?void 0:R.actionButton,_.z9))==null?void 0:u.command)&&!this.ytComponentBehavior.resolveCommand(f)){var O;(O=_.wR())==null||O.clickCommand(f);_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})}}};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ys.prototype,"data",void 0);ys=_.B([_.e({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],ys);
_.G(ys,"ytd-offer-content-renderer",function(){if(jjK!==void 0)return jjK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return jjK=f},{mode:1});var DG2;var dM=function(){return _.U.apply(this,arguments)||this};
_.y(dM,_.U);dM.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Vy.Object.defineProperties(dM.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.title)||!((R=this.data)==null||!R.description)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dM.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],dM.prototype,"hasHeaderData",null);dM=_.B([_.e({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],dM);
_.G(dM,"ytd-offer-section-renderer",function(){if(DG2!==void 0)return DG2;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return DG2=f},{mode:1});var JKS;var N9=function(){return _.U.apply(this,arguments)||this};
_.y(N9,_.U);
N9.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],N9.prototype,"data",void 0);N9=_.B([_.e({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],N9);
_.G(N9,"ytd-offer-selection-step-renderer",function(){if(JKS!==void 0)return JKS;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return JKS=f},{mode:1});var zdl;var L4=function(){return _.U.apply(this,arguments)||this};
_.y(L4,_.U);L4.prototype.computeStyle=function(f){return f};
L4.prototype.computeImageWidth=function(f){return f==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.B([_.I({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.S("design:type",String)],L4.prototype,"containerStyle",void 0);_.B([_.I({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.S("design:type",String)],L4.prototype,"imageWidth",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],L4.prototype,"data",void 0);
L4=_.B([_.e({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],L4);
_.G(L4,"ytd-confirmation-masthead-renderer",function(){if(zdl!==void 0)return zdl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zdl=f},{mode:1});var T9h;var bF=function(){return _.U.apply(this,arguments)||this};
_.y(bF,_.U);bF.prototype.computeStyle=function(f){return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bF.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.S("design:type",String)],bF.prototype,"containerStyle",void 0);bF=_.B([_.e({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],bF);
_.G(bF,"ytd-purchase-complete-detail-renderer",function(){if(T9h!==void 0)return T9h;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return T9h=f},{mode:1});var HRN;var p4=function(){var f=_.U.apply(this,arguments)||this;f.scriptsAppended=!1;return f};
_.y(p4,_.U);p4.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"}}}};
p4.prototype.onDataChanged=function(){var f=this.get("data.gtmId");f&&(_.Ck(f,_.Tf("GL","")),this.setupConversionTracking())};
p4.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var f=document.createElement("noscript");f.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(f);this.scriptsAppended=!0}};
p4.prototype.onDataChanged=p4.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],p4.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],p4.prototype,"scriptsAppended",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],p4.prototype,"onDataChanged",null);p4=_.B([_.e({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],p4);
_.G(p4,"ytd-purchase-complete-step-renderer",function(){if(HRN!==void 0)return HRN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return HRN=f},{mode:1});var IN2;var j_=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(j_,_.U);j_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],j_.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],j_.prototype,"darkerDarkTheme",void 0);j_=_.B([_.e({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],j_);
_.G(j_,"ytd-ypc-transaction-error-message-renderer",function(){if(IN2!==void 0)return IN2;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return IN2=f},{mode:1});var Mra;var P3e;var Di=function(){var f=_.U.apply(this,arguments)||this;f.handlePhoneVerificationSuccess=function(R){if(f.isValidPhoneVerificationCompletionMessageEvent(R)){var u;((u=f.data)==null?0:u.nextStepCommand)&&f.ytComponentBehavior.resolveCommand(f.data.nextStepCommand)}};
return f};
_.y(Di,_.U);Di.prototype.isValidPhoneVerificationCompletionMessageEvent=function(f){if(f.data!=="yt-phone-verification-complete")return!1;f=_.gv(f.origin);return f!==null&&f.includes("youtube.com")};
Di.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Di.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Di.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Di.prototype,"data",void 0);Di=_.B([_.DO({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Di);
_.G(Di,"yt-feature-enablement-soft-entry-renderer",function(){if(P3e===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Mra===void 0&&(Mra=document.createElement("template"));var O=Mra;u.call(R,O.content.cloneNode(!0),f.content.firstChild);P3e=f}f=P3e;return f},{mode:1});var UGw;var ed2;var GPz;var B9X;var JD=function(){return _.U.apply(this,arguments)||this};
_.y(JD,_.U);_.B([_.I(),_.S("design:type",Object)],JD.prototype,"data",void 0);JD=_.B([_.DO({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],JD);
_.G(JD,"yt-benefits-item-renderer",function(){if(B9X===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;GPz===void 0&&(GPz=document.createElement("template"));var O=GPz;u.call(R,O.content.cloneNode(!0),f.content.firstChild);B9X=f}f=B9X;return f},{mode:2});var o$l;var xGS;var z3=function(){return _.U.apply(this,arguments)||this};
_.y(z3,_.U);z3.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
z3.prototype.computeisWithoutPadding=function(){var f;return((f=this.data)==null?void 0:f.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],z3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.S("design:type",Boolean)],z3.prototype,"isWithoutPadding",void 0);z3=_.B([_.DO({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],z3);
_.G(z3,"yt-benefits-section-renderer",function(){if(xGS===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;o$l===void 0&&(o$l=document.createElement("template"));var O=o$l;u.call(R,O.content.cloneNode(!0),f.content.firstChild);xGS=f}f=xGS;return f},{mode:2});var T3=function(){return _.U.apply(this,arguments)||this};
_.y(T3,_.U);T3.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
T3.prototype.computeisUsingLargeWidth=function(){var f;return((f=this.data)==null?void 0:f.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],T3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.S("design:type",Boolean)],T3.prototype,"isUsingLargeWidth",void 0);T3=_.B([_.DO({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],T3);
_.G(T3,"yt-benefits-flow-step-renderer",function(){if(ed2===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;UGw===void 0&&(UGw=document.createElement("template"));var O=UGw;u.call(R,O.content.cloneNode(!0),f.content.firstChild);ed2=f}f=ed2;return f},{mode:2});var S8a;var $Ge;var Hx=function(){return _.U.apply(this,arguments)||this};
_.y(Hx,_.U);Hx.prototype.checkIsUsingLargeWidth=function(){var f;return((f=this.data)==null?void 0:f.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.B([_.I(),_.S("design:type",Object)],Hx.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.B([_.I({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.S("design:type",Boolean)],Hx.prototype,"isUsingLargeWidth",void 0);Hx=_.B([_.DO({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Hx);
_.G(Hx,"yt-confirmation-flow-step-renderer",function(){if($Ge===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;S8a===void 0&&(S8a=document.createElement("template"));var O=S8a;u.call(R,O.content.cloneNode(!0),f.content.firstChild);$Ge=f}f=$Ge;return f},{mode:2});var g$2;var sj2;var IR=function(){return _.U.apply(this,arguments)||this};
_.y(IR,_.U);_.B([_.I(),_.S("design:type",Object)],IR.prototype,"data",void 0);IR=_.B([_.DO({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],IR);
_.G(IR,"yt-info-flow-step-renderer",function(){if(sj2===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;g$2===void 0&&(g$2=document.createElement("template"));var O=g$2;u.call(R,O.content.cloneNode(!0),f.content.firstChild);sj2=f}f=sj2;return f},{mode:2});var n$z;var Vr2;var M9=function(){return _.U.apply(this,arguments)||this};
_.y(M9,_.U);_.B([_.I(),_.S("design:type",Object)],M9.prototype,"data",void 0);M9=_.B([_.DO({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],M9);
_.G(M9,"yt-info-list-flow-step-renderer",function(){if(Vr2===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;n$z===void 0&&(n$z=document.createElement("template"));var O=n$z;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Vr2=f}f=Vr2;return f},{mode:2});var Y8m=_.nf(function(f){var R=f.data;return _.a("styled-text-view-model",{class:_.KL("ytStyledTextViewModelHost",function(){return wlz(R().fontAttributes)},function(){return F1h(R().color)})},_.a(_.YO,{text:function(){return R().text},
ariaLabel:function(){var u,O,c;return(c=(u=R().accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?c:""}}))},"Xe");
Y8m.idomCompat=!0;var v$5=_.nf(function(f){var R=function(){var c,h,l,K;return(K=(l=(c=f.alt)==null?void 0:c.call(f))!=null?l:(h=f.data().accessibilityData)==null?void 0:h.label)!=null?K:""},u=function(){return f.data().imageWidth},O=function(){return f.data().imageHeight};
return _.a("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.a(_.Q,{cond:function(){var c=f.data();if(c){var h,l,K;var q=((h=_.vh().resolve(_.Y8(_.oF)))==null?0:h())?(l=c.imageDark)!=null?l:c.imageLight:(K=c.imageLight)!=null?K:c.imageDark}else q=void 0;return q},
then:function(c){return _.a(_.gR,Object.assign({},f,{data:c,alt:R,targetWidth:u,targetHeight:O,preserveHeight:!0,preserveWidth:!0}))}}))},"Ye");
v$5.idomCompat=!0;var Px=_.nf(function(f){var R=f.data;f=_.g_(function(){return R().slots},[]);
var u=_.g_(function(){return R().layoutProperties},{}),O=_.vh().resolve(_.SQ);
return _.a("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:k_9(u,O)},_.a(_.EC,{each:f,keyBy:"INDEX"},function(c){return _.a("div",{class:"ytContainerLayoutViewModelSlot",style:k_9(function(){return c().layoutProperties},O)},_.a(_.y5,{data:function(){return c().contents}},{containerLayoutViewModel:Px,
badgeViewModel:_.vP,buttonViewModel:_.TS,styledTextViewModel:Y8m,contentPreviewImageViewModel:function(h){return _.a(_.iS,{data:h.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(h){return _.a(v$5,{data:h.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ze");
Px.idomCompat=!0;var iRt=_.nf(function(f){var R=f.data;var u=f.stateFns;var O=function(){var F=R(),w=F.productId;return!(!F.clearGroupId&&!w)},c=function(){var F=R(),w=F.clearGroupId;
return(F=F.productId)?u().isProductSelected(F):w?u().getSelectedProductByGroupId(w)==null:!1},h=function(){var F=R(),w=F.clearGroupId;
if(F=F.productId)u().onProductSelected(F);else if(w)u().onClearGroupSelected(w)},l=function(){var F=R(),w=F.clearGroupId;
if(F=F.productId){var m;return"group:"+(((m=u().getProductById(F))==null?void 0:m.groupId)||"")}return w?"group:"+w:""},K=_.g_(function(){return R().header},[]),q=_.g_(function(){return R().body},[]);
return _.a("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.a(_.Q,{cond:function(){return K().length>0||O()},
then:function(){return _.a("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.a("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.a(_.y5,{data:K},{containerLayoutViewModel:function(F){return _.a("div",{class:"ytPdpCardSectionViewModelContentItem"},_.a(Px,{data:F.data}))},
styledTextViewModel:function(F){return _.a("div",{class:"ytPdpCardSectionViewModelContentItem"},_.a(Y8m,{data:F.data}))}})),_.a(_.Q,{cond:O,
then:function(){return _.a("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.a(_.LM,{checked:c,name:l,onChange:h}))}}))}}),_.a(_.Q,{cond:function(){return q().length>0},
then:function(){return _.a("div",null,_.a(_.y5,{data:q},{containerLayoutViewModel:function(F){return _.a("div",{class:"ytPdpCardSectionViewModelContentItem"},_.a(Px,{data:F.data}))}}))}}))},"$e");
iRt.idomCompat=!0;var rKN=_.nf(function(f){var R=f.data;var u=f.stateFns;return _.a("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.a(_.Q,{cond:function(){return R().banner},
then:function(O){return _.a("div",{class:"ytPdpCardViewModelBanner"},_.a(_.YO,{text:O}))}}),_.a(_.y5,{data:function(){return R().sections}},{pdpCardSectionViewModel:function(O){O=O.data;
var c={};return _.a("div",{class:_.KL("ytPdpCardViewModelSectionContainer",(c.ytPdpCardViewModelShowDividers=function(){return R().showDividers},c))},_.a(iRt,{data:O,
stateFns:u}))}}))},"af");
rKN.idomCompat=!0;var f12=_.nf(function(f){var R=f.data;var u=f.isOverlay;f={};return _.a("pdp-masthead-view-model",{class:_.KL("ytPdpMastheadViewModelHost",(f.ytPdpMastheadViewModelIsOverlay=u,f))},_.a(_.y5,{data:function(){return R().image}},{contentPreviewImageViewModel:_.iS,
themedImageViewModel:function(O){return _.a(v$5,{data:O.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.a(_.Q,{cond:function(){return R().title},
then:function(O){return _.a("h1",{class:"ytPdpMastheadViewModelHeading"},_.a(_.YO,{text:O,isOverlay:u}))}}),_.a(_.EC,{each:function(){var O;
return(O=R().finePrint)!=null?O:[]}},function(O){return _.a("div",{class:"ytPdpMastheadViewModelFinePrint"},_.a(_.YO,{text:O,
isOverlay:u}))}))},"bf");
f12.idomCompat=!0;var RmS=_.nf(function(f){var R=f.data;var u=f.stateFns;return _.a("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.a(_.EC,{each:function(){var O=u().getSelectedPricingOptions().map(function(h){return h.pricingOptionId}),c=u().getSelectedProductByGroupId(R().groupId);
return c?c.pricingOptions.map(function(h){return{pricingOption:h,isSelected:O.includes(h.pricingOptionId)}}):(_.H5(Error("Fj`"+R().groupId)),[])},
keyBy:"INDEX"},function(O){return _.a("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.a("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.a(_.y5,{data:function(){return O().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Px})),_.a("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.a(_.LM,{checked:function(){return O().isSelected},
onClick:function(){u().onPricingOptionSelected(O().pricingOption.pricingOptionId);var c=O().pricingOption.onSelectPricingOption;if(c=_.H7(c)){var h;(h=_.vh().resolve(_.rv))==null||h.resolveCommand(c)}}})))}))},"cf");
RmS.idomCompat=!0;var uT9=_.nf(function(f){var R=f.data;var u=f.stateFns;return _.a("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.a(_.y5,{data:function(){var O,c;return(c=(O=u().getSelectedPricingOptions()[0])==null?void 0:O.primaryButton)!=null?c:R().emptyStateButton}},{buttonViewModel:_.TS}))},"df");
uT9.idomCompat=!0;var OcX=_.nf(function(f){var R=f.stateFns;return _.a("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.a(_.y5,{data:function(){return R().getSelectedPricingOptions().flatMap(function(u){return u.summaryLines}).filter(function(u){return!!u})}},{containerLayoutViewModel:function(u){return _.a("div",{class:"ytPdpSummaryViewModelLineItem"},_.a(Px,{data:u.data}))}}))},"ef");
OcX.idomCompat=!0;var cyt=_.nf(function(f){function R(J){var M=l();_.$s(_.bA("pdpStateEntity",M,{key:M,selectedPricingOptions:J}))}
var u=f.data;var O=f.internalScrolling;var c=f.stateFnsForTesting;var h=_.g_(function(){return u().allProducts},[]),l=_.g_(function(){return u().pdpStateEntityKey},""),K=_.Ax(mcN,l),q=_.Qt(function(){_.Jy(!0);
var J;return(J=c==null?void 0:c())!=null?J:dcm(K,h,R)},void 0,"POBqwe"),F=_.g_(function(){return u().body},[]),w=_.g_(function(){return u().columnBreakHints},[]),m=function(){return u().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},W=function(){return m()||u().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},C=_.Qt(function(){var J=_.V5(u().background),M;
if(J==null?0:(M=J.sources)==null?0:M.length){var P=P===void 0?!0:P;J=_.ax2(void 0,J.sources,void 0,P,P?1E3:void 0,P?void 0:1E3)}else J=null;return J},void 0,"BkCmEd");
f=_.Qm({"--pdp-view-model-background":function(){return C()?"url("+C()+")":void 0}});
var d={};O=_.KL("ytPdpViewModelHost",(d.ytPdpViewModelHasBackground=function(){return W()||!!C()},d.ytPdpViewModelHasDarkBackground=W,d.ytPdpViewModelHasScrim=m,d.ytPdpViewModelInternalScrolling=_.g_(O,!1),d));
var p=function(J){var M={};return _.KL("ytPdpViewModelItem",(M.ytPdpViewModelFullBleed=function(){return _.gWh(J())==="dividerViewModel"||_.gWh(J())==="sectionHeaderViewModel"},M.ytPdpViewModelNoVerticalPadding=function(){return _.gWh(J())==="sectionHeaderViewModel"},M))};
_.bt(function(){var J=u().onStartCommand;if(J&&(J=_.H7(J))){var M;(M=_.vh().resolve(_.rv))==null||M.resolveCommand(J)}});
return _.a("pdp-view-model",{class:O,style:f},_.a("div",{class:"ytPdpViewModelColumnContainer"},_.a(_.EC,{each:function(){return Nn9(F(),w())},
keyBy:"INDEX"},function(J){return _.a("div",{class:"ytPdpViewModelColumn"},_.a(_.y5,{data:J},{containerLayoutViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(Px,{data:M}))},
dividerViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(_.qMF,{data:M}))},
pdpCardViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(rKN,{data:M,
stateFns:q}))},
pdpMastheadViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(f12,{data:M,
isOverlay:W}))},
pdpPricingOptionSelectorViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(RmS,{data:M,
stateFns:q}))},
pdpPrimaryButtonViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(uT9,{data:M,
stateFns:q}))},
pdpSummaryViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(OcX,{data:M,
stateFns:q}))},
sectionHeaderViewModel:function(M,P){M=M.data;return _.a("div",{class:p(function(){return J()[P()]})},_.a(_.c3,{data:M}))}}))})))},"ff");
cyt.idomCompat=!0;_.ii(cyt,"pdp-view-model",{props:{data:_.SG,stateFnsForTesting:_.v7,internalScrolling:_.v7}});var XQK=_.nf(function(f){var R=f.data;var u=f.className;var O=_.Ax(_.fS,function(){return R().flowStateEntityKey});
return _.a("ytm-premium-purchase-button-renderer",{class:_.KL("yt-premium-purchase-button-renderer",u)},_.a(_.y5,{data:function(){var c;return(c=_.t(O(),bGw))==null?void 0:c.primaryButtonOverride}},{buttonRenderer:function(c){return _.a(_.BP,{data:c.data,
className:u})},
buttonViewModel:function(c){return _.a(_.TS,{data:c.data,className:u})}}))},"gf");
XQK.idomCompat=!0;var hm2=_.nf(function(f){var R=f.data;var u=function(){return L1X(R().style)},O=_.KL("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u),c=_.KL("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u);
return _.a("yt-flow-bottom-bar-renderer",{class:_.KL("yt-flow-bottom-bar-renderer",f.className,u)},_.a(_.y5,{data:function(){return R().secondaryButton}},{buttonRenderer:function(h){return _.a(_.BP,{data:h.data,
className:c})},
buttonViewModel:function(h){return _.a(_.TS,{data:h.data,className:c})},
premiumPurchaseButtonRenderer:function(h){return _.a(XQK,{data:h.data,className:c})}}),_.a(_.y5,{data:function(){return R().primaryButton}},{buttonRenderer:function(h){return _.a(_.BP,{data:h.data,
className:O})},
buttonViewModel:function(h){return _.a(_.TS,{data:h.data,className:O})},
premiumPurchaseButtonRenderer:function(h){return _.a(XQK,{data:h.data,className:O})}}))},"hf");
hm2.idomCompat=!0;_.ii(hm2,"yt-flow-bottom-bar-renderer",{props:{data:_.SG,className:_.SG}});var ZcN=_.nf(function(f){return _.a("yt-offer-summary-renderer",{class:_.KL(f.className,"ytOfferSummaryRendererHost")},_.a("div",{class:"ytOfferSummaryRendererTextContainer"},_.a("div",{class:"ytOfferSummaryRendererEyebrowText"},_.a(_.YO,{text:function(){return f.data().eyebrowText}})),_.a("div",{class:"ytOfferSummaryRendererTitle"},_.a(_.YO,{text:function(){return f.data().title}})),_.a("div",{class:"ytOfferSummaryRendererSubtitle"},_.a(_.YO,{text:function(){return f.data().subtitle}})),_.a("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.a(_.EC,{each:function(){var R;
return(R=f.data().featureListData)!=null?R:[]}},function(R){var u;
return _.a("div",{class:"ytOfferSummaryRendererFeatureList"},_.a(_.WM,{icon:(u=R.icon)==null?void 0:u.iconType,className:R.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.a("div",{class:"ytOfferSummaryRendererFeatureListText"},_.a(_.YO,{text:R.text})))})),_.a("div",{class:"ytOfferSummaryRendererDescription"},_.a(_.YO,{text:function(){return f.data().description}}))))},"jf");_.ii(_.nf(function(f){var R={};R=_.KL("ytOfferSummaryFlowStepRendererHost",(R.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=f.shouldDisableHeaderTopMargin,R));return _.a("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:R},_.a("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.a("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.a(_.YO,{text:function(){return f.data().header}})),_.a("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.a(_.YO,{text:function(){return f.data().subtitle}}))),_.a("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.a(_.y5,{data:function(){return f.data().offerSummary}},{offerSummaryRenderer:function(u){return _.a(ZcN,{data:u.data,
className:f.flowClassName})}})))},"kf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.v7,
flowClassName:_.v7,flowStateEntityKey:_.v7,shouldDisableHeaderTopMargin:_.v7}});var l1m=_.nf(function(f){var R=f.data;var u=f.className;var O=f.flowStateEntityKey;var c=f.selectionStepStyle;f=_.Ff(function(q){var F=R(),w=O==null?void 0:O();q.target&&(q.stopPropagation(),q=w||"",w=_.fS(_.xs().getState(),q),F=Object.assign({},w,{premiumPurchaseFlowState:{selectedOptionId:F.optionId,primaryButtonOverride:F.primaryButtonOverride}}),_.xs().dispatch(_.aA("flowStateEntity",q,F)));return!1});
var h=function(){return(O==null?void 0:O())||""},l=_.Ax(_.fS,h);
_.bt(function(){var q=R(),F=h(),w=l();q.defaultSelected&&F!==""&&q.primaryButtonOverride&&pla(q.optionId||"",F,q.primaryButtonOverride,w)});
var K={};return _.a("ytm-option-item-renderer",{"on:click":f,class:_.KL(u,"ytm-option-item-renderer",(K["ytm-option-item-renderer--lp2-style"]=function(){return(c==null?void 0:c())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},K))},_.a("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.a("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var q=R(),F=h(),w=l();w=_.t(w,bGw);return(w?(w==null?void 0:w.selectedOptionId)||"":q.defaultSelected&&F!==""?(q==null?void 0:q.optionId)||"":"")===R().optionId},
name:("input"+_.j4(_.dV)).toString()})),_.a("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.a(_.Q,{cond:function(){return R().eyebrowText},
then:function(){return _.a("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.a(_.YO,{text:function(){return R().eyebrowText}}))}}),_.a("div",{class:"ytm-option-item-renderer__option-item-title"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.a(_.YO,{text:function(){return R().subtitle}})),_.a("div",{class:"ytm-option-item-renderer__option-item-description"},_.a(_.YO,{text:function(){return R().description}}))))},
"lf");var koN=_.nf(function(f){var R=f.data;var u=f.flowClassName;var O=f.flowStateEntityKey;var c=f.selectionStepStyle;return _.a("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.a("div",{class:"yt-option-section-renderer__option-section-header-section"},_.a("div",{class:"yt-option-section-renderer__option-section-header"},_.a(_.YO,{text:function(){return R().title}}),_.a(_.y5,{data:function(){return R().titleBadge}},{badgeViewModel:function(h){return _.a(_.vP,
{data:h.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(){return _.a("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.a(_.YO,{text:function(){return R().subtitle}}))}}),_.a(_.Q,{cond:function(){return R().featureListData},
then:function(h){return _.a("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.a(_.EC,{each:h},function(l){var K;return _.a("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.a(_.WM,{icon:(K=l.icon)==null?void 0:K.iconType,className:l.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.a("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.a(_.YO,{text:l.text})))}))}}),_.a(_.Q,{cond:function(){return R().secondaryTitle},
then:function(){return _.a("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.a(_.YO,{text:function(){return R().secondaryTitle}}))}}),_.a(_.EC,{each:function(){return R().sectionDisclaimers||[]}},function(h){return _.a("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.a(_.YO,{text:h}))})),_.a(_.y5,{data:function(){return R().optionItems}},{optionItemRenderer:function(h){return _.a("div",{class:"yt-option-section-renderer__option-item"},_.a(l1m,{data:h.data,
className:u,flowStateEntityKey:O,selectionStepStyle:c}))}}),_.a(_.Q,{cond:function(){return R().offerText},
then:function(){return _.a("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.a(_.YO,{text:function(){return R().offerText}}))}}))},"mf");
koN.idomCompat=!0;var KMh=_.nf(function(f){var R=f.data;var u=f.flowClassName;var O=f.flowStateEntityKey;f=f.isDesktop;var c=function(){var F;return(F=R().flowStateEntityKey)!=null?F:O==null?void 0:O()},h=function(){return(c==null?void 0:c())||""},l=function(){return R().style},K=_.Ax(_.fS,h);
_.bt(function(){var F=R(),w=h(),m=K();!_.t(m,bGw)&&F.noPreselect&&w!==""&&F.defaultButtonOverride&&pla("default",w,F.defaultButtonOverride,m)});
var q={};return _.a("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.KL("ytm-option-selection-flow-step-renderer",(q["ytm-option-selection-flow-step-renderer--desktop"]=f,q["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return R().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},q))},_.a("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"},
_.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.a(_.YO,{text:function(){return R().header}})),_.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.a(_.YO,{text:function(){return R().subtitle}}))),_.a(_.y5,{data:function(){return R().optionItems||[]}},{optionItemRenderer:function(F){return _.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.a(l1m,{data:F.data,
className:u,flowStateEntityKey:c,selectionStepStyle:l}))},
optionSectionRenderer:function(F){return _.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.a(koN,{data:F.data,flowClassName:u,flowStateEntityKey:c,selectionStepStyle:l}))}}))},"nf");
KMh.idomCompat=!0;_.ii(KMh,"yt-option-selection-flow-step-renderer",{props:{data:_.SG,flowClassName:_.SG,flowStateEntityKey:_.SG,isDesktop:_.SG}});var j5a,Dce;_.UK=_.nf(function(f){var R=_.sU(f,{type:1,disablePadding:!1,disablePrimaryButton:!1}),u=R.data,O=R.type;f=R.disablePadding;var c=R.disablePrimaryButton,h=R.onClickPrimaryButton,l=function(){return u().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},K=function(){return{disabled:c(),
state:c()?"disabled":"active"}},q=function(){return u().leadingLabel||u().trailingLabel};
R={};return _.a("yt-panel-footer-view-model",{class:_.KL("yt-panel-footer-view-model-wiz",(R["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return u().shouldHideDivider},R["yt-panel-footer-view-model-wiz--disable-padding"]=f,R))},_.a(_.Q,{cond:q,
then:function(){var F={},w={};return _.a("div",{class:_.KL("yt-panel-footer-view-model-wiz__text-row",(F["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var m=u();return!(!m.leadingLabel&&!m.trailingLabel||!m.primaryButton&&!m.secondaryButton)},F))},_.a(_.YO,{text:function(){return u().leadingLabel},
className:_.KL((w["yt-panel-footer-view-model-wiz--text-padding"]=q,w))}),_.a(_.YO,{text:function(){return u().trailingLabel}}))}}),_.a(_.Q,{cond:l,
then:function(){var F={};return _.a("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.a("div",{class:_.KL("yt-panel-footer-view-model-wiz__primary-button",(F["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return u().secondaryButton},F))},_.a(_.y5,{data:function(){return u().primaryButton}},{buttonViewModel:function(w){return _.a(_.TS,{data:w.data,
buttonOverrides:K,onClick:h})}})),_.a(_.y5,{data:function(){return u().secondaryButton}},{buttonViewModel:_.TS}))}}),_.a(_.Q,{cond:function(){return!l()},
then:function(){var F={},w={},m={};return _.a("div",{class:_.KL("yt-panel-footer-view-model-wiz__button-row",(F["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===O()},F))},_.a("div",{class:_.KL("yt-panel-footer-view-model-wiz__button-row--left-button",(w["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===O()},w["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!u().secondaryButton||0===O()},w["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===O()},w))},_.a(_.y5,{data:function(){return u().secondaryButton}},{buttonViewModel:_.TS})),_.a("div",{class:_.KL("yt-panel-footer-view-model-wiz__primary-button",(m["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===O()||1===O()},m["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===O()},m))},_.a(_.y5,{data:function(){return u().primaryButton}},{buttonViewModel:function(W){return _.a(_.TS,{data:W.data,
buttonOverrides:K,onClick:h})}})))}}))},"of");
_.UK.idomCompat=!0;_.q$m=_.nf(function(f){f=_.sU(f,{disablePadding:!1});var R=f.data,u=f.disablePadding;f=_.HGm(function(){return R().formId});
var O=f.onSubmit,c=f.isValid,h=f.isSubmitting;return _.a("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.a(_.y5,{data:function(){return R().panelFooter}},{panelFooterViewModel:function(l){return _.a(_.UK,{data:l.data,
onClickPrimaryButton:function(){O()},
disablePrimaryButton:function(){return!c()||h()},
disablePadding:u})}}))},"pf");_.ii(_.q$m,"yt-form-footer-view-model",{props:{data:_.SG,disablePadding:_.SG}});_.ii(_.nf(function(f){return _.a("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.a(_.Q,{cond:function(){var R;return(R=f.data())==null?void 0:R.image},
then:function(R){return _.a(_.gR,{data:R,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.a(_.YO,{text:function(){var R;
return(R=f.data())==null?void 0:R.title}})),_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.a(_.YO,{text:function(){var R;
return(R=f.data())==null?void 0:R.subtitle}})),_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.a(_.y5,{data:function(){var R;
return(R=f.data())==null?void 0:R.viewTipsButton}},{buttonViewModel:_.TS}))))},"qf"),"yt-contributor-zero-state-view-model",{props:{data:_.SG}});var Ayt=_.nf(function(f){var R=_.Ax(Iuw,_.g_(function(){var u;return(u=f.data())==null?void 0:u.noteFeedEntityKey},""));
return _.a("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.a(_.Q,{cond:function(){var u,O;return(u=f.data())==null?void 0:(O=u.noteData)==null?void 0:O.isPinned},
then:function(){return _.a(_.WM,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.a(_.YO,{text:function(){var u,O;
return(u=f.data())==null?void 0:(O=u.noteData)==null?void 0:O.headerText}}),_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.a(_.YO,{text:function(){var u,O;
return(u=f.data())==null?void 0:(O=u.noteData)==null?void 0:O.delimiter}})),_.a(_.YO,{text:function(){var u,O;
return(u=R())==null?void 0:(O=u.contributorNote)==null?void 0:O.publishedTimeText}})),_.a(_.y5,{data:function(){var u,O,c,h=(u=f.data())==null?void 0:u.noteData;
u=(O=R())==null?void 0:(c=O.contributorNote)==null?void 0:c.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:h.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:h.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:h.deleteDialogTitle}]},dialogMessages:[{runs:[{text:h.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:h.deleteActionText}]},command:{performCommentActionEndpoint:{action:u}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:h.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.a("div",{class:"ytNoteViewModelNoteContent"},_.a(_.YO,{text:function(){var u,O;
return(u=R())==null?void 0:(O=u.contributorNote)==null?void 0:O.text}})))},"rf");
Ayt.idomCompat=!0;_.ii(Ayt,"yt-note-view-model",{props:{data:_.SG}});var e_=_.nf(function(f){var R=_.sU(f,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),u=R.label,O=R.text,c=R.placeholder,h=R.hint;f=R.rows;var l=R.overflowStyle,K=R.outline,q=R.disabled,F=R.disableNewLines,w=R.characterLimit,m=R.validation,W=R.onInput,C=_.sW();R=_.Z(_.m8(function(){return O()}));
var d=R.next().value,p=R.next().value;R=_.Z(_.qK(!1,void 0,"fXvinf"));var J=R.next().value,M=R.next().value,P=function(){M(!0)},g=function(){M(!1)};
_.bt(function(){var St=C.value,Gq=l(),LC=d();Gq==="expand-vertically"&&LC&&MWh(St);C.value.addEventListener("focusin",P);C.value.addEventListener("focusout",g)});
_.jN(function(){C.value.removeEventListener("focusin",P);C.value.removeEventListener("focusout",g)});
var x=function(){var St;return(St=m())==null?void 0:St.validate(d())},fh=function(){return w()&&!x()&&d().length>w().maxChars},V=function(){return!!x()||fh()};
R=_.Ff(function(St){if(!St.currentTarget)return!1;St=St.currentTarget;p(St.value);l()==="expand-vertically"&&MWh(St);W==null||W(St.value);return!0});
var ZD=_.Ff(function(St){F()&&St.key==="Enter"&&St.preventDefault();return!1}),mP=_.Ff(function(){C.value.focus()}),NX=function(){return c()||u()},jt={},Jn={},zq={};
return _.a("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.a("div",{class:_.KL("ytStandardsTextareaShapeTextareaContainer",(jt.ytStandardsTextareaShapeTextareaContainerOutline=K,jt.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=q,jt.ytStandardsTextareaShapeTextareaContainerOutlineError=V,jt)),"on:click":mP},_.a("label",{class:_.KL("ytStandardsTextareaShapeLabel",(Jn.ytStandardsTextareaShapeLabelFocused=J,Jn.ytStandardsTextareaShapeLabelDisabled=q,Jn.ytStandardsTextareaShapeLabelError=
function(){return V()&&!q()},Jn.ytStandardsTextareaShapeLabelHidden=function(){return!J()&&!d()&&!!NX()},Jn))},u),_.a("div",{class:_.KL("ytStandardsTextareaShapePlaceholder",(zq.ytStandardsTextareaShapePlaceholderVisible=function(){return!J()&&!d()},zq)),
"aria-hidden":"true"},NX),_.a("textarea",{el:C,class:"ytStandardsTextareaShapeTextarea",rows:f,disabled:q,placeholder:NX,"on:input":R,"on:keydown":ZD},d)),_.a(_.Q,{cond:function(){return h()&&!V()},
then:function(){var St={};return _.a("div",{class:_.KL("ytStandardsTextareaShapeHint",(St.ytStandardsTextareaShapeHintDisabled=q,St))},_.a("div",{class:"ytStandardsTextareaShapeHintHintMessage"},h))}}),_.a(_.Q,{cond:x,
then:function(){return _.a(a1l,{disabled:q},_.a("div",{class:"ytStandardsTextareaShapeErrorMessage"},x))}}),_.a(_.Q,{cond:w,
then:function(St){return _.a(_.Q,{cond:fh,then:function(){return _.a(a1l,{disabled:q},_.a("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return St().errorMessage}),_.a("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return d().length+"/"+St().maxChars}))}})}}))},"sf");
e_.idomCompat={callbacks:{onInput:!0}};var a1l=_.nf(function(f){var R={};return _.a("div",{class:_.KL("ytStandardsTextareaShapeError",(R.ytStandardsTextareaShapeErrorDisabled=f.disabled,R)),role:"alert"},_.a(_.WM,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),f.children)},"tf");_.FMh=_.nf(function(f){var R=f.data;return _.a("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.a(e_,{text:f.text,label:function(){var u;return(u=R().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=R().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=R().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=R().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=R().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:f.disabled,disableNewLines:function(){var u;return(u=R().displayProperties)==null?void 0:u.disableNewLines},
onInput:f.onInput,characterLimit:f.characterLimit,validation:f.validation,rows:function(){var u;return(u=R().displayProperties)==null?void 0:u.rows}}))},"uf");_.wQN=_.nf(function(f){var R=f.data;return _.a("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.a(e_,{text:f.text,label:function(){var u;return(u=R().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=R().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=R().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=R().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=R().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var u;return(u=R().displayProperties)==null?void 0:u.disableNewLines},
onInput:f.onInput,characterLimit:f.characterLimit,validation:f.validation,rows:function(){var u;return(u=R().displayProperties)==null?void 0:u.rows}}))},"vf");var mKz=_.nf(function(f){var R=_.Z(_.m8(function(){var NX,jt;return((NX=f.data().structuredContextNoteFormSchema)==null?0:(jt=NX.initialValues)==null?0:jt.noteBody)?f.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),u=R.next().value,O=R.next().value;
R=_.Z(_.m8(function(){f.data();return!1}));
var c=R.next().value,h=R.next().value;R=_.Z(_.m8(function(){f.data();return!1}));
var l=R.next().value,K=R.next().value;R=_.Z(_.m8(function(){var NX,jt;return((NX=f.data().structuredContextNoteFormSchema)==null?0:(jt=NX.initialValues)==null?0:jt.timestamp)?f.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var q=R.next().value,F=R.next().value;R=_.Z(_.m8(function(){f.data();return!1}));
var w=R.next().value,m=R.next().value;R=_.Z(_.m8(function(){var NX,jt;return((NX=f.data().structuredContextNoteFormSchema)==null?0:(jt=NX.initialValues)==null?0:jt.sources)?[f.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var W=R.next().value,C=R.next().value;R=_.Z(_.m8(function(){f.data();return!1}));
var d=R.next().value,p=R.next().value;R=_.Z(_.m8(function(){return!1}));
var J=R.next().value,M=R.next().value;_.bt(function(){var NX;_.Tna((NX=f.data().structuredContextNoteFormSchema)==null?void 0:NX.id,{isSubmitting:J,onSubmit:function(){M(!0);var jt=$cK(u(),q(),W(),f.data()),Jn=_.vh().resolve(_.rv);jt&&Jn&&Jn.resolveCommand(jt,{commandController:{onSuccess:function(){M(!1)}}})},
isValid:function(){return c()&&!l()&&!w()&&!d()}})});
var P=function(NX){if(NX!==void 0&&(O(NX),!c()&&NX.length>0&&h(!0),c())){var jt=ewm(f.data());if(jt){var Jn=jt.minLength;jt=jt.maxLength;Jn&&NX.length<Jn?K(!0):jt&&NX.length>jt?K(!0):K(!1)}}},g=function(NX){if(NX!==void 0){F(NX);
if(NX.length>0){var jt,Jn,zq,St,Gq=Bnm((jt=f.data())==null?void 0:(Jn=jt.structuredContextNoteFormSchema)==null?void 0:(zq=Jn.fieldSchemas)==null?void 0:(St=zq.timestamp)==null?void 0:St.validationSchema);if(Gq&&(jt=Gq.regex)&&!(new RegExp(jt)).test(NX)){m(!0);return}}m(!1)}},x=function(NX){if(NX!==void 0){var jt=NX.split(/[ \n]/).map(function(Jn){return Jn.trim()});
C(jt);if(NX.length>0)for(NX=_.Z(jt),jt=NX.next();!jt.done;jt=NX.next())if(!Skm(jt.value)){p(!0);return}p(!1)}},fh=function(){return{validate:function(NX){if(c()){var jt=ewm(f.data());
if(jt){var Jn=jt.minLength;jt=jt.translations;if(Jn&&NX.length<Jn)return jt==null?void 0:jt.minLengthErrorMessage}}}}},V=function(){var NX=ewm(f.data()),jt=NX==null?void 0:NX.maxLength,Jn;
NX=NX==null?void 0:(Jn=NX.translations)==null?void 0:Jn.maxLengthErrorMessage;if(jt&&NX)return{maxChars:jt,errorMessage:NX}},ZD=function(){return{validate:function(NX){if(NX){var jt,Jn,zq,St,Gq=Bnm((jt=f.data())==null?void 0:(Jn=jt.structuredContextNoteFormSchema)==null?void 0:(zq=Jn.fieldSchemas)==null?void 0:(St=zq.timestamp)==null?void 0:St.validationSchema);
if(Gq&&(jt=Gq.regex,Gq=Gq.translations,jt&&!(new RegExp(jt)).test(NX)))return Gq==null?void 0:Gq.regexErrorMessage}}}},mP=function(){return{validate:function(NX){if(NX){var jt,Jn,zq,St,Gq=xcX((jt=f.data())==null?void 0:(Jn=jt.structuredContextNoteFormSchema)==null?void 0:(zq=Jn.fieldSchemas)==null?void 0:(St=zq.sources)==null?void 0:St.validationSchema);
if(Gq&&(jt=Gq.translations,jt==null?0:jt.selectedErrorMessage))for(NX=NX.split(/[ \n]/).map(function(LC){return LC.trim()}),NX=_.Z(NX),Jn=NX.next();!Jn.done;Jn=NX.next())if(!Skm(Jn.value))return NX=void 0,(NX=jt)==null?void 0:NX.selectedErrorMessage}}}};
return _.a("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.a("div",{class:"ytStructuredContextNoteViewModelTextField"},_.a(_.y5,{data:function(){var NX;return(NX=f.data())==null?void 0:NX.noteContents}},{textFormFieldViewModel:function(NX){return _.a(_.wQN,{data:NX.data,
onInput:P,validation:fh,characterLimit:V})},
textFieldViewModel:function(NX){return _.a(_.FMh,{data:NX.data,onInput:P,validation:fh,characterLimit:V})}})),_.a("div",{class:"ytStructuredContextNoteViewModelTextField"},_.a(_.y5,{data:function(){var NX;
return(NX=f.data())==null?void 0:NX.noteTimestamp}},{textFormFieldViewModel:function(NX){return _.a(_.wQN,{data:NX.data,
onInput:g,validation:ZD})},
textFieldViewModel:function(NX){return _.a(_.FMh,{data:NX.data,onInput:g,validation:ZD})}})),_.a("div",{class:"ytStructuredContextNoteViewModelTextField"},_.a(_.y5,{data:function(){var NX;
return(NX=f.data())==null?void 0:NX.noteSources}},{textFormFieldViewModel:function(NX){return _.a(_.wQN,{data:NX.data,
onInput:x,validation:mP})},
textFieldViewModel:function(NX){return _.a(_.FMh,{data:NX.data,onInput:x,validation:mP})}})))},"wf");
mKz.idomCompat=!0;_.ii(mKz,"yt-structured-context-note-view-model",{props:{data:_.SG}});var Qs2=_.nf(function(f){var R=_.Z(_.m8(function(){var h;if((h=f.controlled)==null?0:h.call(f))return[];var l;return(((l=f.data())==null?void 0:l.chips)||[]).map(function(K){K=_.t(K,_.Mi);if(K==null?0:K.selected)return guw(K.chipValue)}).filter(function(K){return K!==void 0})})),u=R.next().value,O=R.next().value,c=function(h){var l=guw(h.chipValue);
if(l!==void 0){var K;if((K=f.controlled)==null?0:K.call(f))return void f.controlled().onTap(l);h=u().includes(l)?[].concat(_.yq(u().filter(function(F){return F!==l}))):[].concat(_.yq(u()),[l]);
O(h);var q;if((q=f.uncontrolled)==null?0:q.call(f))f.uncontrolled().onUpdate(h)}};
return _.a("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.a(_.EC,{each:function(){return f.data().chips||[]}},function(h){return _.a("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.a(_.krG,{data:function(){return _.t(h,_.Mi)},
selected:function(){var l;if(l=_.t(h,_.Mi)){var K=guw(l.chipValue);if(K!==void 0){var q;l=((q=f.controlled)==null?0:q.call(f))?f.controlled().selectedValues.includes(K):u().includes(K)}else l=void 0}else l=!1;return l},
callback:c}))}))},"xf");var WMt=_.nf(function(f){var R=f.data;var u=function(){var K;return((K=R())==null?void 0:K.flowStateKey)||""},O=_.Ax(_.fS,u),c=function(){var K;
return(K=_.t(O(),BqN))==null?void 0:K.chips},h=function(K){if(K!==void 0){var q=c()||[];
q=q.find(function(F){return F===K})?q.filter(function(F){return F!==K}):[].concat(_.yq(q),[K]);
q=Object.assign({},O(),{feedbackFormFlowState:Object.assign({},_.t(O(),BqN),{chips:q})});_.$s(_.aA("flowStateEntity",u(),q))}},l=function(){var K;
return _.t((K=R())==null?void 0:K.inputBox,oDX)};
f=_.mC(function(K){var q=l();q=!(q==null?0:q.maxChars)||K.length<=q.maxChars;K=Object.assign({},O(),{feedbackFormFlowState:Object.assign({},_.t(O(),BqN),{detail:K}),abuseReportFlowState:Object.assign({},_.t(O(),uF),{navigationEnabled:q})});_.$s(_.aA("flowStateEntity",u(),K))},150);
return _.a("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.a("div",{class:"ytFeedbackFormViewModelChips"},_.a(_.y5,{data:function(){var K;return(K=R())==null?void 0:K.chipSelection}},{chipSelectionFormFieldViewModel:function(K){return _.a(Qs2,{data:K.data,
controlled:function(){return{selectedValues:c()||[],onTap:h}}})}})),_.a("div",{class:"ytFeedbackFormViewModelInputBox"},_.a(e_,{text:function(){var K;
return(K=_.t(O(),BqN))==null?void 0:K.detail},
placeholder:function(){var K;return((K=l())==null?void 0:K.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var K=l();if(K&&K.maxChars)return{maxChars:K.maxChars,errorMessage:K.maxCharsExceededErrorMessage||""}},
onInput:f})),_.a("div",{class:"ytFeedbackFormViewModelFooterText"},_.a(_.YO,{text:function(){return R().footerText}})))},"yf");
WMt.idomCompat=!0;_.ii(WMt,"yt-feedback-form-view-model",{props:{data:_.SG}});var Enm=_.nf(function(f){var R=f.data;var u=function(){return R().flowStateKey||""},O=_.Ax(xua,u),c=function(){return _.t(O(),uF)},h=function(){if(_.E("enable_gff_accessibility_fix")){var l=!0,K;
if((K=c())==null?0:K.navigationEnabled){var q;_.Ux((q=c())==null?void 0:q.navigationCommand);l=!1}K=Object.assign({},O(),{abuseReportFlowState:Object.assign({},c(),{isReportFormDirty:l})});_.$s(_.aA("flowStateEntity",u(),K))}else _.Ux((l=c())==null?void 0:l.navigationCommand)};
return _.a("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.a("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.a(_.y5,{data:function(){return R().cancelButton}},{buttonViewModel:function(l){return _.a(_.TS,{data:l.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}}),_.a(_.y5,{data:function(){var l;
if(R().navButton){var K=Object;var q=K.assign,F=_.t(R().navButton,_.dW),w=((l=c())==null?0:l.navigationEnabled)||_.E("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",m,W;l=_.t((m=c())==null?void 0:m.navigationCommand,_.TW);m=(W=_.t(l,_.oh))==null?void 0:W.url;K={buttonViewModel:q.call(K,{},F,{state:w,iconName:m?"OPEN_IN_NEW":""})}}else K=void 0;return K}},{buttonViewModel:function(l){return _.a(_.TS,{data:l.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}})))},"zf");
Enm.idomCompat=!0;_.ii(Enm,"yt-report-form-bottom-bar-view-model",{props:{data:_.SG}});var tNS=_.nf(function(f){var R=f.nextStep;return _.a("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.a("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.a(_.WM,{icon:function(){return R().iconName||""}})),_.a("div",null,_.a(_.YO,{text:function(){return R().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Af"),C4h=_.nf(function(f){var R=f.data;
var u,O=(u=_.vh().resolve(_.Y8(_.oF)))==null?void 0:u(),c=_.Ax(_.fS,function(){return R().flowStateKey||""});
return _.a("yt-report-form-confirmation-page-view-model",{class:function(){var h;return((h=_.t(c(),uF))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.a("div",{class:function(){var h;
return((h=_.t(c(),uF))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.a(_.gR,{data:function(){return O&&R().imageDark?R().imageDark:R().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.a("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.a("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return R().confirmationHeader}),_.a("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.a(_.YO,{text:function(){return R().confirmationText}})),_.a("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.a(_.YO,{text:function(){return R().lawEnforcementText}})),
_.a("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return R().whatToExpectHeader}),_.a(_.Q,{cond:function(){return R().nextSteps},
then:function(h){return _.a("div",null,_.a(_.EC,{each:h},function(l){return _.a(tNS,{nextStep:l})}))}}),_.a(_.Q,{cond:function(){return R().legalReportText},
then:function(h){return _.a("div",null,_.a(_.YO,{text:h,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Bf");
C4h.idomCompat=!0;_.ii(C4h,"yt-report-form-confirmation-page-view-model",{props:{data:_.SG}});var yyK=_.nf(function(f){var R=f.data;var u=function(){var h;return((h=_.t(R().inputBox,oDX))==null?void 0:h.maxChars)||500},O=function(){return R().flowStateKey||""},c=_.Ax(_.fS,O);
f=_.mC(function(h){h=Object.assign({},c(),{flowFormState:{isValid:h.length<=u()},abuseReportFlowState:{userComments:h,navigationEnabled:!(h.length>u()),isReportFormDirty:!0}});_.xs().dispatch(_.bA("flowStateEntity",O(),h))},150);
_.bt(function(){var h=Object.assign({},c(),{flowFormState:{isValid:!0}});_.xs().dispatch(_.bA("flowStateEntity",O(),h))});
return _.a("yt-report-form-details-page-view-model",{class:function(){var h;return((h=_.t(c(),uF))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.a("h1",{class:function(){var h;
return((h=_.t(c(),uF))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return R().detailsPageHeader}),_.a("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.a(_.YO,{text:function(){return R().bodyText}})),_.a("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.a(e_,{label:function(){var h;
return((h=_.t(R().inputBox,oDX))==null?void 0:h.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var h;return{errorMessage:((h=_.t(R().inputBox,oDX))==null?void 0:h.maxCharsExceededErrorMessage)||"",maxChars:u()}},
onInput:f})))},"Cf");
yyK.idomCompat=!0;_.ii(yyK,"yt-report-form-details-page-view-model",{props:{data:_.SG}});var dKX=_.nf(function(f){var R=f.data;var u=f.selectedKey;var O=f.onSelected;var c=f.groupName;var h=function(){return R().text},l=function(){return R().attributedText},K=function(){return R().subtext},q=function(){return R().attributedSubtext},F=_.a("div",{class:"ytRadioButtonItemViewModelLabel"},_.a(_.Q,{cond:h,
then:function(){return _.a("div",null,h)}}),_.a(_.Q,{cond:l,
then:function(){return _.a(_.YO,{text:l})}}),_.a(_.Q,{cond:K,
then:function(){return _.a("div",{class:"ytRadioButtonItemViewModelSubText"},K)}}),_.a(_.Q,{cond:q,
then:function(){return _.a("div",{class:"ytRadioButtonItemViewModelSubText"},_.a(_.YO,{text:q}))}})),w=function(){if(l()){var W;
return(W=l())==null?void 0:W.content}return h()},m=function(){if(q()){var W;
return(W=q())==null?void 0:W.content}return K()};
f={};return _.a("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.a(_.LM,{name:c,checked:function(){return!(u==null||!u()||R().key!==(u==null?void 0:u()))},
onChange:function(W){O==null||O(W.target,R(),c==null?void 0:c())},
labelRenderable:function(){return F},
ariaLabel:function(){return m()?w()+", "+m():w()},
className:_.KL((f.ytRadioButtonItemViewModelSubTitle=function(){return!!R().subtext},f))}))},"Df");_.NPm=_.nf(function(f){var R=f.data;var u=f.onSelected;var O=f.selectedKey;var c=f.groupName;return _.a("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.a("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.a(_.y5,{data:function(){return R().radioButtons}},{radioButtonItemViewModel:function(h){return _.a(dKX,{data:h.data,
onSelected:u,selectedKey:O,groupName:function(){return(c==null?void 0:c())||R().key}})}})))},"Ef");var LMh=_.nf(function(f){var R=f.data;var u=_.n0(),O=function(){return R().flowStateKey||""},c=_.Ax(_.fS,O),h=function(){return _.t(c(),uF)};
_.pc(function(){var l,K;if(((l=h())==null?0:l.isReportFormDirty)&&((K=h())==null||!K.navigationEnabled)&&_.E("enable_gff_accessibility_fix")){var q;if(((q=h())==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var F;(F=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||F.scrollIntoView()}else{var w;(w=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||w.scrollIntoView()}}});
return _.a("yt-report-form-reason-select-page-view-model",{class:function(){var l;return((l=h())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.a("h1",{class:function(){var l;
return((l=h())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return R().pageHeader}),_.a("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.a(_.YO,{text:function(){return R().bodyText}})),_.a("div",{class:function(){var l;
return((l=h())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.a(_.Q,{cond:function(){var l,K;
return((l=h())==null?void 0:l.isReportFormDirty)&&!((K=h())==null?0:K.navigationEnabled)&&_.E("enable_gff_accessibility_fix")},
then:function(){return _.a("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:u},_.a(_.WM,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.a("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return R().emptyReasonSelectErrorMessage}))}}),_.a(_.NPm,{data:function(){return _.t(R().radioButtonGroup,_.Yf9)},
onSelected:function(l,K){l=Object.assign({},c(),{abuseReportFlowState:Object.assign({},h(),{reasonKey:K.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:K.command})});_.$s(_.aA("flowStateEntity",O(),l))},
selectedKey:function(){var l;return(l=h())==null?void 0:l.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ff");
LMh.idomCompat=!0;_.ii(LMh,"yt-report-form-reason-select-page-view-model",{props:{data:_.SG}});var bc2=_.nf(function(f){var R=f.data;var u,O=(u=_.vh().resolve(_.Y8(_.oF)))==null?void 0:u();return _.a("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.a("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.a(_.gR,{data:function(){return O&&R().imageDark?R().imageDark:R().image},
alt:""})),_.a("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.a("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return R().header}),_.a(_.YO,{text:function(){return R().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Gf");
bc2.idomCompat=!0;_.ii(bc2,"yt-report-form-sign-in-page-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=function(){var F;return(F=R().textInputPlaceholder)==null?void 0:F.content},O=function(F){F=F.target.value.trim();
var w=R().onUpdateText;w&&_.Ux(w,{form:{userQuery:F}});R().userQuery=F},c=_.mC(function(F){O(F)},150),h=_.Ff(function(F){c(F);
return!1}),l=_.Ff(function(F){F.key==="Enter"&&(O(F),(F=R().onNextStepCommand)&&_.Ux(F,{}));
return!1}),K=_.sW(),q=function(){if(_.E("web_hide_explore_hub_until_user_navigates_back_to_home")){var F,w,m;
(m=(w=(F=K.value)==null?void 0:F.closest("ytd-flow-step-renderer"))==null?void 0:w.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||m.click()}};
return _.a("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:K},_.a("div",{class:"ytwTalkToRecsTopCornerButton"},_.a(_.y5,{data:function(){return R().topCornerButton}},{buttonViewModel:_.TS})),_.a("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.a("div",{class:"ytwTalkToRecsTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"ytwTalkToRecsSubtitle"},_.a(_.YO,{text:function(){return R().subtitle}})),_.a("div",{class:"ytwTalkToRecsChipsShelf"},_.a(_.y5,{data:function(){return R().answersShelf}},
{chipsShelfViewModel:function(F){return _.a(_.Wsl,{data:F.data,
callback:q})}})),_.a(_.Q,{cond:function(){return R().showOpenTextInput&&!_.E("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.a("div",{class:"ytwTalkToRecsUserInputBox"},_.a("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:u,value:function(){return R().userQuery},
"on:input":h,"on:keyup":l}))}})))},"Hf"),"yt-talk-to-recs-view-model",{props:{data:_.SG}});var s5l={sources:[{clientResource:{imageName:"CHECK"}}]};_.pQS=_.nf(function(f){var R=_.sW();f=_.sU(f,{error:void 0});var u=f.data,O=f.error,c=f.onSelected;f=_.Z(_.m8(function(){return Yk2(u())}));
var h=f.next().value,l=f.next().value;fwS(u,function(m){l(m);var W,C,d=VWK((W=u().options)==null?void 0:(C=W[m])==null?void 0:C.value,u().type);c==null||c(d);R.value.focus()});
f=_.Ff(function(){if(!u().disabled){var m=u(),W=h(),C=R.value;m.options&&(m=nue(m.options,W,m.label),_.vh().resolve(_.dp).openSheet({viewModel:m},C))}});
var K=_.RbB(),q=function(){return!!O()},F=function(){return!!u().disabled},w={};
w=_.KL("ytDropdownViewModelDropdownContainer",(w.ytDropdownViewModelDropdownContainerErrorBorder=q,w.ytDropdownViewModelDropdownContainerDisabled=F,w));return _.a("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.a("div",{class:w,"on:click":f,el:R,role:"combobox",tabindex:0,"on:keydown":K,"aria-invalid":q,"aria-disabled":F,"aria-describedby":function(){return q()?"dropdown-view-model-error":void 0}},_.a("div",{class:"ytDropdownViewModelText"},vuz(u,q,h),iGS(u,h)),_.a("div",{class:"ytDropdownViewModelChevronDown"},
_.a(_.WM,{icon:"CHEVRON_DOWN"}))),rua(u,O))},"If");_.ii(_.nf(function(f){var R=f.data;var u=function(c){var h=uHz(R());h.videoMetadata||(h.videoMetadata={});h.videoMetadata.sponsorshipsMetadata||(h.videoMetadata.sponsorshipsMetadata={});h.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(c)},O=function(c){var h=uHz(R());
h.scheduledRedirectMetadata||(h.scheduledRedirectMetadata={});h.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(c)};
return _.a("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.a("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.a("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.a(_.YO,{text:function(){return R().title}}),_.a(_.WM,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.a(_.YO,{text:function(){return R().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.a(_.y5,{data:function(){return R().tierChoices}},{dropdownViewModel:function(c){return _.a("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.a(_.pQS,{data:c.data,
onSelected:u}))}}),_.a(_.y5,{data:function(){return R().startTimeChoices}},{dropdownViewModel:function(c){return _.a("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.a(_.pQS,{data:c.data,
onSelected:O}))}}),_.a(_.YO,{text:function(){return R().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.a("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.a(_.y5,{data:function(){return R().scheduleButton}},{panelFooterViewModel:_.UK})))},"Jf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;f=f.className===void 0?"":f.className;var u=_.Ax(xua,function(){return R().flowStateEntityKey||""}),O={};
O=_.KL("ytFlowBottomBarViewModelFlowBottomBarButtons",(O.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},O));
var c={},h=_.KL("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",O,(c.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},c.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},c));
c={};var l=_.KL("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",O,(c.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},c.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},c));
O={};O=_.KL("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(O.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},O.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},O.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
O));
return _.a("yt-flow-bottom-bar-view-model",{class:_.KL("ytFlowBottomBarViewModelHost",f)},_.a(_.Q,{cond:function(){var K;return(K=R())==null?void 0:K.textSection},
then:function(K){return _.a("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.a(_.YO,{text:K}))}}),_.a("div",{class:O},_.a(_.y5,{data:function(){return R().secondaryButton}},{buttonViewModel:function(K){return _.a(_.TS,{data:K.data,
className:l})}}),_.a(_.y5,{data:function(){return R().primaryButton}},{buttonViewModel:function(K){return _.a(_.TS,{data:K.data,
className:h,buttonOverrides:function(){var q;return{disabled:!((q=u())==null||!q.primaryButtonDisabled)}}})}})))},"Kf"),"yt-flow-bottom-bar-view-model",{props:{data:_.SG,
className:_.v7}});var jst="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),G3=function(){var f=_.U.apply(this,arguments)||this;f.enableScrollingFix=!0;f.bottomBar=!1;f.hideBottomBar=!1;f.fitContent=!1;return f};
_.y(G3,_.U);_.X=G3.prototype;_.X.ready=function(){_.E("enable_pdp_icon_prefetch")&&_.Gxm(_.vh().resolve(_.Z6),0,jst)};
_.X.focus=function(f){this.topBar?_.Vb(this.topBar,f):this.paperDialog.focus(f)};
_.X.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16816_scroller&&(this.JSC$16816_scroller.dialogElement=this.paperDialog,this.JSC$16816_scroller.attached&&typeof this.JSC$16816_scroller.attached==="function"&&this.JSC$16816_scroller.attached())};
_.X.onDataChanged=function(){var f;this.fitContent=!((f=this.data)==null||!f.fitContent);var R;this.bottomBar=!((R=this.data)==null||!R.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.X.onProgressChanged=function(){var f,R,u=((R=(f=this.data)==null?void 0:f.progress)!=null?R:0)*100;this.progressElement.style.width=u+"%"};
_.X.isProgressHidden=function(){var f;return!((f=this.data)==null?0:f.progress)};
_.X.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(f){return _.E("enable_wiz_next_lp2_msof")&&f&&!f.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Vy.Object.defineProperties(G3.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var f;return _.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.t((f=this.data)==null?void 0:f.content,s0N)}}});
G3.prototype.onProgressChanged=G3.prototype.onProgressChanged;G3.prototype.onDataChanged=G3.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],G3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],G3.prototype,"enableScrollingFix",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],G3.prototype,"bottomBar",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],G3.prototype,"hideBottomBar",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],G3.prototype,"containsExploreHub",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],G3.prototype,"fitContent",void 0);_.B([_.a4("#progress"),_.S("design:type",HTMLElement)],G3.prototype,"progressElement",void 0);
_.B([_.a4("#scroller"),_.S("design:type",Object)],G3.prototype,"JSC$16816_scroller",void 0);_.B([_.a4("ytd-flow-top-bar-renderer"),_.S("design:type",HTMLElement)],G3.prototype,"topBar",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G3.prototype,"onDataChanged",null);_.B([_.qM("data.progress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G3.prototype,"onProgressChanged",null);
G3=_.B([_.e({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],G3);
_.G(G3,"ytd-flow-step-renderer",function(){if(wim!==void 0)return wim;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wim=f},{mode:1});var DKS=function(f){this.resolveCommand=f;this.steps={}},Jya=function(f,R){R=_.Z(R||[]);
for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=Object.values(u)[0],c=void 0;if((c=O)==null?0:c.stepId)f.steps[O.stepId]=u}},Hcm=function(f,R){var u,O,c,h,l;
return _.k(function(K){if((u=f.state)==null||!u.currentStepId)return K.return(void 0);O=zmN(f);if(!O)return K.return(TPl(f));if(c=_.t(O,_.gDK)){var q;((q=c.screenLoggingData)==null?0:q.screenVeType)&&_.O1(_.wR(),c.screenLoggingData.screenVeType);((h=c)==null?0:h.onStepStartCommand)&&f.resolveCommand((l=c)==null?void 0:l.onStepStartCommand,{})}if(c&&R){q=c;var F,w,m,W;((F=R.flowLoggingData)==null?0:F.eventNamespace)&&((w=q.flowEventData)==null?0:w.eventType)&&((m=q.flowEventData)==null?0:m.eventMetadata)&&
((W=R.flowLoggingData)==null?0:W.flowType)&&(F=_.kS(R.flowLoggingData.eventNamespace,q.flowEventData.eventType,q.flowEventData.eventMetadata),_.Kn(_.qL(),F,R.flowLoggingData.flowType));R.steps&&!R.steps.includes(O)&&R.steps.push(O)}return K.return(O)})};
DKS.prototype.back=function(){var f;(f=this.state)!=null&&f.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
DKS.prototype.handleUpdateFlowCommand=function(f){f.steps&&Jya(this,f.steps);f.entityUpdateCommand&&this.resolveCommand(f.entityUpdateCommand,{});f.flowContinuationCommand&&(f=f.flowContinuationCommand)&&(this.getFlowContinuationCommand=f);this.awaitFlowContinuation&&(this.awaitFlowContinuation(zmN(this)),this.awaitFlowContinuation=void 0)};
DKS.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var TPl=function(f){return _.k(function(R){return f.getFlowContinuationCommand?R.return(new Promise(function(u){f.awaitFlowContinuation=u;f.getFlowContinuationCommand&&f.resolveCommand(f.getFlowContinuationCommand,{flow_state:f.state})})):R.return(Promise.resolve(void 0))})},zmN=function(f){var R;
if((R=f.state)!=null&&R.currentStepId)return f.steps[f.state.currentStepId]};var Bx=function(){var f=_.U.apply(this,arguments)||this;f.flowState=new DKS(function(R,u){u=u===void 0?{}:u;_.KU.instance.resolveCommand(R,{form:{form:u,element:f.hostElement}})});
f.initialState=!0;f.isLoading=!1;f.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return f};
_.y(Bx,_.U);_.X=Bx.prototype;_.X.onPopupClosed=function(f){f&&this.hostElement!==f.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.X.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.X.focus=function(f){var R=this;_.P2(function(){var u=_.b(R.hostElement).querySelector("ytd-flow-step-renderer");(u==null?0:u.topBar)?u.focus(f):R.topBar&&_.Vb(R.topBar,f)},1)};
_.X.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.X.computeTopBarHidden=function(f){var R;return!((R=_.t(f,_.gDK))==null||!R.topBarOverride)};
_.X.dataChanged=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1){((R=f.data)==null?0:R.steps)&&Jya(f.flowState,f.data.steps);if((u=f.data)==null?0:u.flowContinuationCommand){var c=f.flowState,h=f.data.flowContinuationCommand;h&&(c.getFlowContinuationCommand=h)}return _.A(O,Hcm(f.flowState,f.data),2)}f.currentFlowStep=O.yieldResult;_.KG(O)})};
_.X.flowChanged=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1){if(!f.flow)return u.return();f.flowState.state=f.flow;f.isLoading=!0;return _.A(u,Hcm(f.flowState,f.data),2)}R=u.yieldResult;if(!R||f.flow.isLoading)return u.return();f.currentFlowStep=R;f.initialState=!1;f.isLoading=!1;f.autofocusAndRefit();_.KG(u)})};
_.X.autofocusAndRefit=function(){var f=this,R=_.vh().resolve(_.Y8(_.Oc)),u=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),O=document.querySelector("yt-report-form-confirmation-page-view-model"),c=document.querySelector("yt-report-form-details-page-view-model"),h=document.querySelector("yt-report-form-reason-select-page-view-model"),l=document.querySelector("yt-contributor-zero-state-view-model"),
K=document.querySelector("yt-structured-context-note-view-model"),q=document.querySelector("yt-note-view-model");(!u&&R&&R.isKeyBoardInUse()||O||!u&&c||!u&&h||l||K||q)&&_.YM(this.hostElement);_.su(this,function(){_.ul(f.hostElement,"yt-refit")})};
_.X.handleUpdateFlowCommand=function(f){this.data&&(f=_.t(f,$gw),f.targetId===this.data.targetId&&(f.flowContinuationCommand&&(this.data.flowContinuationCommand=f.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(f),this.autofocusAndRefit()))};
_.X.handleFlowNextStepCommand=function(f){this.data&&this.flow&&this.flow.key&&(f=_.t(f,xgt),f.targetId===this.data.targetId&&(f=f.stepId||"",this.ytdReduxBehavior.dispatch(_.bA("flowStateEntity",this.flow.key,{currentStepId:f,stepIdStack:(this.flow.stepIdStack||[]).concat(f)}))))};
_.X.handleFlowPrevStepCommand=function(f){if(this.data&&this.flow&&this.flow.key&&(f=_.t(f,SfS),f.targetId===this.data.targetId)){var R=[].concat(_.yq(this.flow.stepIdStack||[]));R.length>1?(R.pop(),this.ytdReduxBehavior.dispatch(_.bA("flowStateEntity",this.flow.key,{currentStepId:R[R.length-1],stepIdStack:R}))):f.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(f.onFirstStepCommand)}};
_.X.handleYpcCancelRecurrenceCommand=function(f){if(this.data&&this.flow&&this.flow.key&&(f=_.t(f,vDe),f.targetId===this.data.targetId&&f.endpointCommand)){var R=_.t(this.flow,i8l);R&&_.t(f.endpointCommand,_.Pxl)&&(_.t(f.endpointCommand,_.Pxl).feedbackData=R.surveyFeedback);this.ytComponentBehavior.resolveCommand(f.endpointCommand)}};
_.X.handlePartialUpdateFlowStateEntity=function(f){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.bA("flowStateEntity",this.flow.key,f,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Bx.prototype.flowChanged=Bx.prototype.flowChanged;Bx.prototype.dataChanged=Bx.prototype.dataChanged;Bx.prototype.onPopupClosed=Bx.prototype.onPopupClosed;_.B([_.z(_.zH),_.S("design:type",Object)],Bx.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Bx.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Bx.prototype,"initialState",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Bx.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Object)],Bx.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],Bx.prototype,"currentFlowStep",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bx.prototype,"onPopupClosed",null);_.B([_.I({selectorArgs:["data.flowStateEntityKey"],selector:xua}),_.S("design:type",Object)],Bx.prototype,"flow",void 0);_.B([_.a4("ytd-flow-top-bar-renderer"),_.S("design:type",HTMLElement)],Bx.prototype,"topBar",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],Bx.prototype,"dataChanged",null);_.B([_.QR("flow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],Bx.prototype,"flowChanged",null);Bx=_.B([_.e({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Bx);
_.I19=_.Ox()(Bx,"ytd-flow-root-renderer",function(){if(FDX!==void 0)return FDX;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FDX=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var MNa;var f4=null;_.ii(_.nf(function(f){return _.a("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.a("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.a(_.YO,{text:function(){return f.data().text}}),_.a("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Lf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.SG}});var P4z=_.nf(function(f){var R=f.playerControlsProps;var u=f.isShortsPage;return _.a("yt-bigboard",null,_.a(_.Q,{cond:function(){return R().isDragging},
then:function(){return _.a("div",{class:"ytBigboardStoryboardHost"},_.a(_.dam,{progressBarProps:R,isShortsPage:u}))}}))},"Mf");
P4z.idomCompat=!0;_.oR={ACCOUNT_LABEL:RR("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:RR("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:RR("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:RR("AD_BADGE_HINT"),AD_BADGE_TEXT:RR("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:RR("ALL_CHANNELS_LABEL"),AMBIENT_MODE:RR("AMBIENT_MODE"),AMBIENT_MODE_OFF:RR("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:RR("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:RR("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:RR("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:RR("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:RR("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:RR("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:RR("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:RR("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:RR("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:RR("AUTOPLAY_UP_NEXT_IN"),BACK:RR("BACK"),CANCEL:RR("CANCEL"),CHANNEL_SWITCHER_LABEL:RR("CHANNEL_SWITCHER_LABEL"),CLOSE:RR("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:RR("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:RR("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:RR("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:RR("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:RR("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:RR("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:RR("COMMENT_MODAL_CONTENT"),CONFIRM_OK:RR("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:RR("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:RR("COPIED_TO_CLIPBOARD"),COPY:RR("COPY"),COPY_DEBUG_INFO:RR("COPY_DEBUG_INFO"),COPY_EMBED_CODE:RR("COPY_EMBED_CODE"),COPY_LINK_LABEL:RR("COPY_LINK_LABEL"),
COPY_VIDEO_URL:RR("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:RR("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:RR("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:RR("DELETE_FROM_DOWNLOADS"),DIALOG:RR("DIALOG"),DONE:RR("DONE"),DOWNLOAD:RR("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:RR("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:RR("FLAG_CONFIRM"),FLAG_CONTENT:RR("FLAG_CONTENT"),FLAG_LABEL:RR("FLAG_LABEL"),FLAG_TITLE:RR("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:RR("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:RR("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:RR("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:RR("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:RR("HIDE_SEARCH_FILTERS_LABEL"),HOME:RR("HOME","Home"),INVALID_RESPONSE_RECEIVED:RR("INVALID_RESPONSE_RECEIVED"),LIBRARY:RR("LIBRARY","Library"),LISTENING:RR("LISTENING"),LOADING:RR("LOADING"),LONG_PRESS_MIC_TO_SPEAK:RR("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:RR("LOOP"),MENU_DESKTOP:RR("MENU_DESKTOP"),MENU_EXIT:RR("MENU_EXIT"),
MENU_FEEDBACK:RR("MENU_FEEDBACK"),MENU_HELP:RR("MENU_HELP"),MENU_IMPRESSUM:RR("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:RR("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:RR("MENU_SETTINGS"),MENU_SIGN_IN:RR("MENU_SIGN_IN"),MENU_TITLE:RR("MENU_TITLE"),MENU_YOUR_DATA:RR("MENU_YOUR_DATA"),MORE_INFO:RR("MORE_INFO"),MORE_OPTIONS:RR("MORE_OPTIONS"),MUTE_VOLUME:RR("MUTE_VOLUME"),NEW_PLAYLIST:RR("NEW_PLAYLIST"),NEXT_VIDEO:RR("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:RR("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:RR("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:RR("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:RR("NOT_FOUND_TITLE"),NO_DOWNLOADS:RR("NO_DOWNLOADS"),NO_MIC_INPUT:RR("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:RR("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:RR("OOPS_MESSAGE"),OPEN_APP:RR("OPEN_APP"),OPEN_YOUTUBE:RR("OPEN_YOUTUBE"),PAUSE:RR("PAUSE"),PLAY:RR("PLAY"),PLAYER_CAPTION:RR("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:RR("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:RR("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:RR("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:RR("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:RR("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:RR("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:RR("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:RR("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:RR("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:RR("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:RR("PLAYER_MINIMIZE"),PLAYER_NEXT:RR("PLAYER_NEXT"),PLAYER_PAUSE:RR("PLAYER_PAUSE"),PLAYER_PLAY:RR("PLAYER_PLAY"),
PLAYER_PREVIOUS:RR("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:RR("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:RR("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:RR("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:RR("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:RR("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:RR("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:RR("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:RR("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:RR("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:RR("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:RR("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:RR("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:RR("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:RR("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:RR("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:RR("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:RR("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:RR("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:RR("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:RR("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:RR("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:RR("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:RR("PLAY_ALL"),PLEASE_FIX_ERRORS:RR("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:RR("PREVIOUS_VIDEO"),PRIVACY_POLICY:RR("PRIVACY_POLICY"),RELOAD:RR("RELOAD"),REQUIRED_LABEL:RR("REQUIRED_LABEL"),SAVE_PLAYLIST:RR("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:RR("SCRUB_SLIDE_USER_EDU"),SEARCH:RR("SEARCH","Search"),SEARCH_APPEND_LABEL:RR("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:RR("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:RR("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:RR("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:RR("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:RR("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:RR("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:RR("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:RR("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:RR("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:RR("SEEK_SLIDER"),SETTINGS_LABEL:RR("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:RR("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:RR("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:RR("SHOW_LESS"),SHOW_MORE:RR("SHOW_MORE"),SHOW_PLAYER_CONTROLS:RR("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:RR("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:RR("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:RR("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:RR("SIGN_IN_ON_WEB"),STABLE_VOLUME:RR("STABLE_VOLUME"),
STABLE_VOLUME_OFF:RR("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:RR("STABLE_VOLUME_ON"),STATS_FOR_NERDS:RR("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:RR("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:RR("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:RR("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:RR("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:RR("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:RR("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:RR("TIMESTAMP_SECONDS"),TOGGLE_OFF:RR("TOGGLE_OFF"),
TOGGLE_ON:RR("TOGGLE_ON"),TRENDING:RR("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:RR("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:RR("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:RR("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:RR("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:RR("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:RR("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:RR("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:RR("VIDEO_LINK_LABEL")};var UKK=_.nf(function(f){var R=f.playerApi;f=_.sW(function(O){YL(O,36843)});
var u=RR("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.a("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.a("button",{el:f,class:"ytPlayerControlsJumpForwardButtonButton",title:u,"aria-label":u,"on:click":_.Ff(function(){vS(36843);R&&R().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.a("span",null,_.a(_.WM,{icon:"FAST_FORWARD"}))))},"Nf");var em2=_.nf(function(f){var R=f.appApi;f=_.sW(function(O){YL(O,62946)});
var u=RR("OPEN_IN_MINIPLAYER");return _.a("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.a("button",{el:f,class:"ytMiniplayerButtonButton",title:u,"aria-label":u,"on:click":_.Ff(function(){vS(62946);var O,c;(c=(O=R()).openInMiniplayer)==null||c.call(O);return!1})},_.a(_.WM,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Of");var Goz=_.nf(function(f){var R=f.playerApi;f=_.sW(function(h){YL(h,142812)});
var u=_.Z(_.qK(!1,void 0,"I3VCyb")),O=u.next().value,c=u.next().value;u=function(){return RR("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(O()?1:2)})};
return _.a("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.a("button",{el:f,class:"ytPlaybackSpeedButtonButton",title:u,"aria-label":u,"on:click":_.Ff(function(){vS(142812);if(R){var h=R(),l=O();h.setPlaybackRate(l?1:2);c(!O())}return!1})},_.a("span",null,_.a(_.WM,{icon:function(){return O()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Pf");var BP2=_.nf(function(f){var R=f.title;var u=f.ariaLabel;var O=f.icon;var c=f.command;var h=f.veType;f=_.sW(function(l){h&&YL(l,h())});
return _.a("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.a("button",{el:f,class:"ytdThumbnailOverlayButtonButton",title:R,"aria-label":u,"on:click":_.Ff(function(){h&&vS(h());c&&_.vh().resolve(_.rv).resolveCommand(c())})},_.a(_.WM,{icon:O})))},"Qf");var onN=["en-CA","en","es-MX","fr-CA"];var xKe=_.nf(function(f){var R=_.sU(f,{isOverlay:!1}),u=R.captionIconType,O=R.onClick;f=R.ariaLabel;var c=R.ariaPressed,h=R.isOverlay;R=_.sW(function(q){YL(q,127299)});
var l=_.Ff(function(q){vS(127299);O==null||O(q);return!1}),K={};
return _.a("ytm-closed-captioning-button",{class:_.KL("ytmClosedCaptioningButtonHost",(K.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return u()===-1&&h()},K.ytmClosedCaptioningButtonIconDisabled=function(){return u()===-1&&!h()},K))},_.a("button",{el:R,
class:"ytmClosedCaptioningButtonButton",title:f,"aria-label":f,"aria-pressed":c,"on:click":l},_.a(_.WM,{icon:function(){var q="";var F=_.Qu().get("hl");F=!F||onN.includes(F)?"CLOSED_CAPTION":"SUBTITLES";var w=u();switch(w){case -1:case 0:q=F;break;case 1:q=F+"_FILLED";break;default:_.km(w)}return q}})))},"Rf");
xKe.idomCompat={callbacks:{onClick:!0}};var V7="";var S$5=_.nf(function(f){var R=f.playerControlsProps,u=f.onClickFn;f=_.Qt(function(){var h=R(),l=-1;h.captionsAvailable&&(l=h.captionsEnabled?1:0);return l},void 0,"WecR8e");
var O=_.Qt(function(){var h=R();return h.captionsAvailable?_.Fa(h.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Fa("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),c=_.Qt(function(){var h=R();
h=h.captionsAvailable?h.captionsEnabled:void 0;return h},void 0,"Q17ly");
return _.a("yt-closed-captions-toggle-button",null,_.a(xKe,{captionIconType:f,ariaLabel:O,ariaPressed:c,onClick:function(h){var l=R();if(l.captionsAvailable){var K=l.playerApi;if(K){var q=l.playerApi;if(q){var F=V7;if(F){q=q.getOption("captions","track");var w;V7=(w=q?q.displayName:null)!=null?w:F}else q.getOptions("captions")?(F=g3l(q),V7=F.length?(w=sa9(F))?w.displayName:F[0].displayName:""):V7=""}n3m(K);_.E("mweb_disable_set_state_captions_killswitch")&&l.setState({captionsEnabled:!l.captionsEnabled})}}var m,
W;(W=(m=l.appApi).showCaptionsToggleToast)==null||W.call(m,l);u==null||u(h)},
isOverlay:!0}))},"Sf");var $Km=_.nf(function(f){var R=f.data;return _.a("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.a(_.nr,{data:function(){return{type:16,text:_.wEl(R().label)}}}))},"Tf");var gnt=_.nf(function(f){var R=_.KL("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return f.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return f.size()==="small"?f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.a("animated-seek-arrows",{class:_.KL("ytPlayerControlsAnimatedSeekArrowsHost")},_.a("span",{class:R}),_.a("span",{class:R}),_.a("span",{class:R}))},"Uf");
gnt.idomCompat=!0;var ssw=_.nf(function(){var f=_.Fa("PLAYER_SECONDS",{seconds_placeholder:"30"}),R=_.Z(_.qK(!1,void 0,"Yj8msb")),u=R.next().value,O=R.next().value,c=_.Z(_.qK(!1,void 0,"r9Z50e"));R=c.next().value;var h=c.next().value;c={};var l=_.KL("jumpForwardOverlayOverlay",(c.jumpForwardOverlayOverlayHidden=R,c));_.bt(function(){var K=null,q=null,F=function(){K!==null&&_.LS().cancelJob(K);q!==null&&_.LS().cancelJob(q);h(!0);O(!0);_.Oz(_.LS(),function(){h(!1)});
K=_.Oz(_.LS(),function(){h(!0);q=_.Oz(_.LS(),function(){O(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",F);_.jN(function(){window.removeEventListener("jump-forward-clicked",F)})});
return _.a("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.a(_.Q,{cond:u,then:function(){return _.a("div",{class:l},_.a(gnt,{direction:1,size:"large"}),_.a("div",null,f))}}))},"Vf");var WyS=_.oR.MUTE_VOLUME,Q02=_.oR.UNMUTE_VOLUME,nne=_.nf(function(f){var R=f.muteIconType;var u=f.onClick;var O=f.useOutlineIcon;f=_.sW(function(h){YL(h,28662)});
var c=function(){return EDS(R(),O==null?void 0:O()).ariaLabel};
return _.a("ytm-mute-button",{class:"ytmMuteButtonHost"},_.a("button",{el:f,class:"ytmMuteButtonButton",title:c,"aria-label":c,"on:click":_.Ff(function(h){vS(28662);u==null||u(h);return!1})},_.a("span",null,_.a(_.WM,{icon:function(){return EDS(R(),O==null?void 0:O()).iconName}}))))},"Wf");var VNt=_.nf(function(f){var R=f.volumeProps;var u=f.onClickFn;var O=f.useOutlineIcon;return _.a("yt-mute-toggle-button",null,_.a(nne,{muteIconType:function(){var c=R(),h=!_.E("mweb_treat_zero_volume_as_muted_killswitch")&&c.volume===0;return c.volumeMuted||h?0:1},
onClick:function(c){var h=R().playerApi;h&&(h.isMuted()?h.unMute():h.mute(!1));u==null||u(c)},
useOutlineIcon:function(){return!(O==null||!O())}}))},"Xf");
VNt.idomCompat=!0;var Y$w=_.nf(function(f){var R=f.data;var u=_.sW();return _.a("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:u,"on:animationend":_.Ff(function(){u.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.a(_.cd,{command:function(){return R().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.a(_.Q,{cond:function(){var O;return(O=R().icon)==null?void 0:O.iconType},
then:function(){return _.a("span",null,_.a(_.WM,{icon:function(){var O;return(O=R().icon)==null?void 0:O.iconType}}))}}),_.a("div",{class:"ytmPaidContentOverlayText"},_.a(_.YO,{text:function(){return R().text}})),_.a(_.Q,{cond:function(){return R().navigationEndpoint},
then:function(){return _.a(_.WM,{icon:"CHEVRON_RIGHT"})}})))},"Yf");
Y$w.idomCompat=!0;var tFK=[].concat(_.yq([{register:function(f){var R=J5X(f),u;(u=f().playerApi)==null||u.addEventListener("onVolumeChange",R);return function(){}}},
{register:function(f){var R=zf9(f);f=f().playerApi;f==null||f.addEventListener("captionschanged",R);f==null||f.addEventListener("captionssettingschanged",R);f==null||f.addEventListener("onCaptionsTrackListChanged",R);return function(){}}},
{register:function(f){if(!_.E("mweb_screenreader_accessible_player"))return function(){};
var R=Tqt(f),u=document.querySelector("video");u==null||u.addEventListener("touchend",R);return function(){u==null||u.removeEventListener("touchend",R)}}},
{register:function(f){if(!_.E("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var R=Tqt(f),u=document.querySelector("video");u==null||u.addEventListener("focus",R);return function(){u==null||u.removeEventListener("focus",R)}}}]),[{register:function(f){var R=b8X(f),u;
(u=f().playerApi)==null||u.addEventListener("onStateChange",R);return function(){}}},
{register:function(f){var R=pKN(f),u;(u=f().playerApi)==null||u.addEventListener("onPlaybackRateChange",R);return function(){}}},
{register:function(f){var R=j0K(f),u;(u=f().playerApi)==null||u.addEventListener("onVideoDataChange",R);return function(){}}},
{register:function(f){var R=Dgw(f),u,O;(u=f())==null||(O=u.playerApi)==null||O.addEventListener("onVideoProgress",R);return function(){}}}]);var vnz=_.nf(function(f){var R=f.data;var u=function(){return _.Fa("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+R().playbackRate})};
return _.a(_.Q,{cond:function(){return R().playbackRate&&R().playbackRate!==1},
then:function(){return _.a("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.a("div",{class:"ytPlaybackRateOverlayOverlay"},_.a(gnt,{direction:1,size:"small"}),_.a("div",{class:"ytPlaybackRateOverlayLabel"},u)))}})},"Zf");var icN=_.nf(function(f){var R=f.data;return _.a("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.a(_.Q,{cond:function(){var u,O=(u=R())==null?void 0:u.playerResponse,c;return O==null?void 0:(c=O.paidContentOverlay)==null?void 0:c.paidContentOverlayRenderer},
then:function(u){return _.a(Y$w,{data:u})}}))},"ag"),ryw=_.nf(function(f){var R=f.props;
var u=f.data;var O=f.options;var c=function(){var F,w,m,W;return(F=u())==null?void 0:(w=F.playerResponse)==null?void 0:(m=w.playerConfig)==null?void 0:(W=m.inlinePlaybackConfig)==null?void 0:W.showAudioControls},h=function(){var F,w;
if(c()&&((F=O())==null?void 0:(w=F.additionalButton)==null?void 0:w.button)!==void 0){var m,W,C;F=(m=u())==null?void 0:(W=m.playerApi)==null?void 0:(C=W.getSize())==null?void 0:C.height;if(!(F===void 0||F<180)){var d,p;return(d=O())==null?void 0:(p=d.additionalButton)==null?void 0:p.button}}},l=function(){var F,w;
return(F=O())==null?void 0:(w=F.additionalButton)==null?void 0:w.thumbnailOverlayButtonRenderers},K=function(){var F,w;
return(F=O())==null?void 0:(w=F.additionalButton)==null?void 0:w.thumbnailOverlayButtonViewModels},q=function(){var F=[_.a(VNt,{volumeProps:R}),
_.a(S$5,{playerControlsProps:R})];h()===1&&F.push(_.a(UKK,{playerApi:function(){return R().playerApi}}));
h()===2&&F.push(_.a(em2,{appApi:function(){return R().appApi}}));
h()===3&&F.push(_.a(Goz,{playerApi:function(){return R().playerApi}}));
var w=l();if(h()===4&&w){w=_.Z(w);for(var m=w.next(),W={};!m.done;W={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$568:void 0},m=w.next()){m=m.value;W.tooltip$jscomp$2=m.tooltip;var C=void 0,d=void 0;W.ariaLabel$jscomp$20=((C=m.accessibility)==null?void 0:(d=C.accessibilityData)==null?void 0:d.label)||W.tooltip$jscomp$2;C=void 0;W.icon$jscomp$52=(C=m.icon)==null?void 0:C.iconType;W.command$jscomp$568=m.command;W.tooltip$jscomp$2&&W.ariaLabel$jscomp$20&&W.icon$jscomp$52&&
F.push(_.a(BP2,{title:function(p){return function(){return p.tooltip$jscomp$2}}(W),
ariaLabel:function(p){return function(){return p.ariaLabel$jscomp$20}}(W),
icon:function(p){return function(){return p.icon$jscomp$52}}(W),
command:function(p){return function(){return p.command$jscomp$568}}(W)}))}}w=K();
if(h()===4&&w)for(w=_.Z(w),m=w.next(),W={};!m.done;W={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$569:void 0},m=w.next())m=m.value,W.tooltip$jscomp$3=m.title,W.ariaLabel$jscomp$21=m.accessibilityText||W.tooltip$jscomp$3,W.icon$jscomp$53=m.iconName,W.command$jscomp$569=_.H7(m.onTap),W.tooltip$jscomp$3&&W.ariaLabel$jscomp$21&&W.icon$jscomp$53&&F.push(_.a(BP2,{title:function(p){return function(){return p.tooltip$jscomp$3}}(W),
ariaLabel:function(p){return function(){return p.ariaLabel$jscomp$21}}(W),
icon:function(p){return function(){return p.icon$jscomp$53}}(W),
command:function(p){return function(){return p.command$jscomp$569}}(W)}));
return F};
return _.a(_.Q,{cond:c,then:function(){return _.a("div",{class:"ytInlinePlayerControlsTopRightControls"},_.a(_.EC,{each:q},function(F){return _.a("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.a("div",{class:"ytInlinePlayerControlsButtonIcon"},F))}))}})},"bg"),uMt=_.nf(function(f){var R=f.props;
var u=f.data;var O=f.options;f={};f=_.KL("ytInlinePlayerControlsBottomRightControls",(f.ytInlinePlayerControlsBottomRightControlsHidden=function(){var c;return IwK(u(),O())&&((c=O())==null?void 0:c.insetProgressBar)&&(R().isHovering||R().isDragging)},f));
return _.a("div",{class:f},_.a(fKa,{data:u}),_.a(_.Q,{cond:function(){var c;return!((c=O())==null?0:c.hideTimeDisplay)},
then:function(){return _.a(R8w,{props:R,data:u})}}))},"cg"),fKa=_.nf(function(f){var R=f.data;
return _.a(_.y5,{data:function(){var u;return Fy5((u=R())==null?void 0:u.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:$Km})},"dg"),R8w=_.nf(function(f){var R=f.props;
var u=f.data;return _.a(_.Q,{cond:function(){return R().isLive},
then:function(){return _.a(OQw,null)},
else:function(){return _.a(c1w,{props:R,data:u})}})},"eg"),c1w=_.nf(function(f){var R=f.props;
var u=f.data;var O=_.Qt(function(){var c;return mg5((c=u())==null?void 0:c.thumbnailOverlays)},void 0,"kUmuA");
return _.a("div",{class:_.KL("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.oR.PLAYER_TIME_ELAPSED+" "+_.LR5(R().playedTime)}},_.a(_.nr,{data:function(){var c=_.LR5(R().videoDuration-R().playedTime);
return Object.assign({},{type:16,text:c},O())}}))},"fg"),OQw=_.nf(function(){return _.a("div",{class:_.KL("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.a(_.nr,{data:{type:17,
text:_.oR.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"gg"),Xh2=_.nf(function(f){var R=f.props;
var u=f.data;var O=f.options;return _.a(_.DaN,{progressBarProps:R,config:function(){var c,h=_.t((c=u())==null?void 0:c.multiMarkersPlayerBar,_.llH),l;c=((l=O())==null?0:l.insetProgressBar)?2:1;var K;l=(K=O())==null?void 0:K.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:c,chapterData:h,isInlinePlayback:!0,doSeekOnClick:l,playheadDotBehavior:l?1:0}}})},"hg");_.ii(_.nf(function(f){var R=f.data;var u=f.appApi;var O=f.options;var c=Ly9(R,H8N(u));f={};u={};return _.a("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.a("div",{class:_.KL("ytInlinePlayerControlsDarkenedOverlay",(f.ytInlinePlayerControlsDarkenedOverlayShow=function(){return c().isHovering},f))}),_.a(ssw,null),_.a(vnz,{data:c}),_.a(icN,{data:R}),_.a(P4z,{playerControlsProps:c,
isShortsPage:!1}),_.a("div",{class:_.KL((u.ytInlinePlayerControlsControlsHidden=function(){return c().isDragging},u))},_.a(ryw,{props:c,
data:R,options:O}),_.a(uMt,{props:c,data:R,options:O})),_.a(_.Q,{cond:function(){return IwK(R(),O())},
then:function(){return _.a(Xh2,{props:c,data:R,options:O})}}))},"$f"),"yt-inline-player-controls",{props:{data:_.SG,
appApi:_.v7,options:_.SG}});var x2=function(){var f=_.U.apply(this,arguments)||this;f.opts=null;f.playerControlsData=null;f.playerControlsAppApi={openInMiniplayer:function(){f.openInMiniplayer()}};
f.playerControlsOptions={};f.noAnimation=!1;f.playbackIntentTriggered=!1;f.positionData=null;f.hidden=!0;f.active=!1;f.playing=!1;f.videoPreviewDataIndex=0;f.JSC$16874_playerPromise=null;f.player=null;f.enableAudioControls=!1;f.hasBeenUnmuted=!1;f.captionsHaveBeenTurnedOff=!1;f.JSC$16874_playerEvents=new Map;f.videoPreviewFetchRequest=null;f.scheduledPreviewEndJobId=null;f.JSC$16874_preventProgressSaveTimer=null;f.watchEndpointStartTimeUpdaterInterval=null;f.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};f.windowOnBlurFn=function(){f.deactivate()};
return f};
_.y(x2,_.U);_.X=x2.prototype;
_.X.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.E("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.X.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16874_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16874_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16874_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16874_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ks(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ks(this,this.onScroll))};
_.X.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ks(this,this.onScroll))};
_.X.onPageTypeChange=function(){this.deactivate()};
_.X.onWindowResized=function(){this.deactivate()};
_.X.onCaptionsChanged=function(f){f=!!f.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!f);this.setCaptionSize()};
_.X.setCaptionSize=function(){var f;if(this.active&&!this.captionsHaveBeenTurnedOff&&((f=this.player)==null?0:f.getCaptionWindowContainerId())){var R;(R=this.player)==null||R.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.X.currentPageAllowed=function(){return!this.isWatchPage};
_.X.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var f=this.positionData,R=f.initialTopPosition,u=f.initialHorizontalPosition;_.ZO(this.hostElement,{"--ytd-video-preview-translate-left":f.finalHorizontalPosition-u+"px","--ytd-video-preview-translate-top":f.finalTopPosition-R+"px","--ytd-video-preview-original-top-position":R+"px","--ytd-video-preview-original-horizontal-position":u+"px",
"--ytd-video-preview-initial-scale":"scale("+f.initialScale+")","--ytd-video-preview-width":f.videoPreviewWidth+"px","--ytd-video-preview-height":f.videoPreviewHeight+"px"});return!0};
_.X.handleOpenVideoPreviewAction=function(f){var R=this,u;return _.k(function(O){if(!R.currentPageAllowed())return O.return(0);R.opts=f;return(u=R.alignVideoPreviewForAnimation(f.thumbnail))?O.return(R.activate()):O.return(0)})};
_.X.onMouseLeave=function(f){this.shouldDeactivateOnMouseLeave(f)&&this.deactivate()};
_.X.onScroll=function(){var f,R;((f=this.opts)==null?0:f.isAutoplay)&&((R=this.opts)==null?0:R.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.X.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.JA.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.X.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.X.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",x2.JSC$16873_DEFAULT_CLICK_LOCATION_BEHAVIOR,x2.JSC$16873_CLICK_LOCATION_ID_MAP)};
_.X.shouldDeactivateOnMouseLeave=function(f){f=f.relatedTarget;if(!f)return!0;var R;return(R=this.opts)!=null&&R.mediaRenderer?!_.OU(this.opts.mediaRenderer).contains(f):!0};
_.X.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.X.onPlaybackStart=function(){var f=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$16874_preventProgressSaveTimer=
_.Oz(_.JA,function(){f.resetPreventProgressSaveTimer()},1E4);
var R;if((R=this.opts)==null?0:R.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Oz(_.JA,function(){f.hasMultipleVideoPreviews()?f.startPlaybackForNextVideo():f.deactivate()},this.opts.videoPreviewDurationMs);
var u;this.player.setGlobalCrop(((u=this.opts)==null?0:u.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.X.getRoundedCornersSize=function(){var f;if((f=this.opts)==null?0:f.roundedCornersSize){var R;return(R=this.opts)==null?void 0:R.roundedCornersSize}var u;if((u=this.opts)==null?0:u.enableRounding){var O;if(((O=this.opts)==null?void 0:O.thumbnailSize)==="small")return 1;var c;if(((c=this.opts)==null?void 0:c.thumbnailSize)==="medium")return 2;var h;if(((h=this.opts)==null?void 0:h.thumbnailSize)==="large")return 3}return _.E("web_imp_inset_progress_bar")?3:0};
_.X.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.X.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.X.onMediaContainerClick=function(f){this.isShortcutClick(f)||(this.navigateToWatch(f),f.preventDefault(),f.stopPropagation())};
_.X.activate=function(){var f=this,R,u,O,c,h,l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:if(!f.currentPageAllowed())return w.return(0);u=(R=f.videoPreviewData)==null?void 0:R.inlinePlaybackEndpoint;O=_.PM.instance;if(!u||!O)return w.return(0);f.playbackIntentTriggered=!0;((c=f.opts)==null?0:c.mediaRenderer)&&((h=f.opts)==null||!h.isAutoplay)&&A5K(f.opts.mediaRenderer,function(){f.deactivate()});
_.su(f,function(){f.revealPreviewUi()});
l={};_.E("enable_unknown_lact_fix_on_html5")&&(_.vh().resolve(_.LL),l.lact=_.OW());f.videoPreviewFetchRequest=hfw(O,f.getInlinePlaybackRequestData(f.videoPreviewData),l);_.cl(w,2);return _.A(w,f.videoPreviewFetchRequest,4);case 4:K=w.yieldResult;if(((q=K)==null?void 0:(F=q.playabilityStatus)==null?void 0:F.status)==="OK")return w.return(f.handlePlayerResponse(K));throw Error("Hj");case 2:_.ku(w),f.deactivate();case 3:return w.return(1)}})};
_.X.getInlinePlaybackRequestData=function(f){var R,u=_.E("web_imp_player_mute_params")?((R=this.opts)==null?void 0:R.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:f.inlinePlaybackEndpoint,startPlaybackInMutedState:u}};
_.X.handlePlayerResponse=function(f){var R=this,u,O,c,h,l,K,q,F,w,m;return _.k(function(W){if(W.nextAddress==1){u=R.getInlinePlaybackVideoId();if(!(((O=f)==null?0:(c=O.videoDetails)==null?0:c.videoId)&&R.currentPageAllowed()&&R.playbackIntentTriggered&&R.opts&&u))return R.deactivate(),W.return(0);if(f.videoDetails.videoId!==u)return W.return(0);R.enableAudioControls=!!((h=f.playerConfig)==null?0:(l=h.inlinePlaybackConfig)==null?0:l.showAudioControls);f.trackingParams=R.getInlinePlaybackTrackingParams();
if(!R.inlinePlayer)return W.return(0);K={};if(F=_.t((q=R.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint,_.$7))K.watch_endpoint=F;if(R.videoPreviewData){var C,d=(C=_.t(R.videoPreviewData.inlinePlaybackEndpoint,_.$7))==null?void 0:C.startTimeSeconds;d!==void 0&&(f.playerConfig||(f.playerConfig={}),f.playerConfig.playbackStartConfig||(f.playerConfig.playbackStartConfig={}),f.playerConfig.playbackStartConfig.startPosition||(f.playerConfig.playbackStartConfig.startPosition={}),f.playerConfig.playbackStartConfig.startSeconds=
d,f.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(d*1E3))}R.inlinePlayer.loadVideoWithPlayerResponse(f,K);if(R.JSC$16874_playerPromise)return W.jumpTo(2);R.JSC$16874_playerPromise=R.inlinePlayer.getPlayerPromise();return _.A(W,R.JSC$16874_playerPromise,3)}W.nextAddress!=2&&(w=W.yieldResult,w.setInlinePreview(!0),w.setSizeStyle(!1,!0),R.ytPlayerListenerBehavior.listenToPlayerEvents(w,R.JSC$16874_playerEvents),R.player=w,_.ul(R.hostElement,"player-api-ready"));((m=R.opts)==
null?0:m.showPlayerControls)&&R.videoPreviewData&&R.player&&(R.playerControlsData={playerResponse:f,isInlinePlayback:!0,thumbnailOverlays:R.videoPreviewData.thumbnailOverlays,playerApi:R.player},R.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!R.unroundCornersForPlayback,additionalButton:R.getAdditionalButtonType(R.videoPreviewData.thumbnailOverlays)});return W.return(2)})};
_.X.revealPreviewUi=function(){var f=this;this.playbackIntentTriggered&&_.JF0(this,function(){f.hasThumbnailPositionChangedSinceTriggered()||(f.updateActiveState(!0),f.noAnimation=!1)})};
_.X.hasThumbnailPositionChangedSinceTriggered=function(){var f=this.positionData,R=this.getThumbnailPositionData();return(f==null?void 0:f.initialTopPosition)!==(R==null?void 0:R.initialTopPosition)||(f==null?void 0:f.initialHorizontalPosition)!==(R==null?void 0:R.initialHorizontalPosition)};
_.X.getThumbnailPositionData=function(){var f,R;if((R=this.opts)==null||!R.thumbnail)return null;R=this.opts.thumbnail;var u=((f=this.opts)==null?0:f.cropPlayerToFillThumbnailHorizontally)?!1:!0;var O=R.getBoundingClientRect();f=O.width;R=O.height;var c=O.top+window.scrollY;O=O.left+window.scrollX;var h=u?Math.ceil(f):f;u=u?Math.ceil(R):R;var l=f/h;f={initialScale:l,initialTopPosition:c-12*l,finalTopPosition:c-12-(u-R)/2,initialHorizontalPosition:O-(12+(h-f)/2),finalHorizontalPosition:O-12-(h-f)/
2,videoPreviewWidth:h,videoPreviewHeight:u};return f};
_.X.updateActiveState=function(f){this.active=f;this.ytdReduxBehavior.dispatch(_.OP({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:f}))};
_.X.stopPlayer=function(f){f=f.resetWatchEndpointStartTime===void 0?!1:f.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(f)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.JA.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.X.deactivate=function(f){f=f===void 0?{}:f;f=f.resetWatchEndpointStartTime===void 0?!1:f.resetWatchEndpointStartTime;f4&&(f4.disconnect(),f4=null);this.stopPlayer({resetWatchEndpointStartTime:f});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.X.isValidThumbnailOverlayButton=function(f,R){f=f.thumbnailOverlayButtonRenderer;var u;return!!f&&!!f.tooltip&&!((u=f.icon)==null||!u.iconType)&&R.includes(f.icon.iconType)};
_.X.isValidThumbnailOverlayButtonViewModel=function(f,R){var u;f=_.t((u=f.thumbnailOverlayButtonViewModel)==null?void 0:u.overlayButton,_.dW);return!!f&&!!f.title&&!!f.iconName&&R.includes(f.iconName)};
_.X.getAdditionalButtonType=function(f){var R=this;if(_.E("web_imp_fastforward_button"))return{button:1};if(_.E("web_imp_miniplayer_button"))return{button:2};if(_.E("web_imp_playback_speed_button"))return{button:3};var u=["BOX_STACK_3"],O=(f||[]).filter(function(h){return R.isValidThumbnailOverlayButton(h,u)}).map(function(h){return h.thumbnailOverlayButtonRenderer});
if(O.length)return{button:4,thumbnailOverlayButtonRenderers:O};var c=["BOX_STACK_3"];f=(f||[]).filter(function(h){return R.isValidThumbnailOverlayButtonViewModel(h,c)}).map(function(h){return _.t(h.thumbnailOverlayButtonViewModel.overlayButton,_.dW)});
if(f.length)return{button:4,thumbnailOverlayButtonViewModels:f}};
_.X.allowCaptions=function(){var f;return!((f=this.opts)==null?0:f.forceCaptionsOff)};
_.X.allowUnmuting=function(){var f;return this.enableAudioControls&&!((f=this.opts)==null?0:f.forceMutedVolume)};
_.X.beginStartTimeUpdater=function(){var f=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.lZ(function(){f.updateWatchEndpointStartTime()},1E3)};
_.X.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.X.resetPreventProgressSaveTimer=function(){this.JSC$16874_preventProgressSaveTimer!==null&&(_.JA.cancelJob(this.JSC$16874_preventProgressSaveTimer),this.JSC$16874_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.X.updateWatchEndpointStartTime=function(f){var R=this.videoPreviewData;if(this.player&&R!=null&&R.inlinePlaybackEndpoint&&!this.JSC$16874_preventProgressSaveTimer){f=f?0:Math.floor(this.player.getCurrentTime());var u=_.t(R.navigationEndpoint,_.$7);u&&(u.startTimeSeconds=f);if(R=_.t(R.inlinePlaybackEndpoint,_.$7))R.startTimeSeconds=f}};
_.X.isShortcutClick=function(f){return!!f&&(f.ctrlKey||f.shiftKey||f.metaKey)};
_.X.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.X.openInMiniplayer=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1){u=(R=f.videoPreviewData)==null?void 0:R.navigationEndpoint;if(!u)return O.return();_.qk().lockupActivation=!0;return _.A(O,_.R1G(_.vh().resolve(_.MS),u),2)}_.qk().userActivation=!0;_.KG(O)})};
_.X.navigateToWatch=function(f){var R,u=(R=this.videoPreviewData)==null?void 0:R.navigationEndpoint;if(u){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(u,f,!0);else{if(_.E("web_thumbnail_to_watch_transition")){var O,c;(O=this.opts)==null||(c=O.onNavigateToWatchCallback)==null||c.call(O)}_.ul(this.hostElement,"yt-navigate",{endpoint:u})}this.deactivate()}};
_.X.getInlinePlaybackVideoId=function(){var f,R;return(R=_.t((f=this.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint,_.$7))==null?void 0:R.videoId};
_.X.getInlinePlaybackTrackingParams=function(){var f,R;return(f=this.videoPreviewData)==null?void 0:(R=f.inlinePlaybackEndpoint)==null?void 0:R.clickTrackingParams};
_.X.hasMultipleVideoPreviews=function(){var f;return!!(((f=this.opts)==null?0:f.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.X.startPlaybackForNextVideo=function(){var f;(f=this.opts)!=null&&f.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())};
_.Vy.Object.defineProperties(x2.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.opts)==null?0:f.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.opts)==null||!f.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 f;if(Array.isArray((f=this.opts)==null?void 0:f.videoPreviewData)){var R;return(R=this.opts)==null?void 0:R.videoPreviewData[this.videoPreviewDataIndex]}var u;return(u=this.opts)==null?void 0:u.videoPreviewData}}});
x2.prototype.onIsAdsVideoChange=x2.prototype.onIsAdsVideoChange;x2.prototype.onInlinePreviewIsEnabledChange=x2.prototype.onInlinePreviewIsEnabledChange;x2.prototype.optsChanged=x2.prototype.optsChanged;x2.prototype.onMouseLeave=x2.prototype.onMouseLeave;x2.JSC$16873_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);x2.JSC$16873_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"}];
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],x2.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],x2.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],x2.prototype,"componentBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],x2.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.ig.YtSparklesClickLocationBehavior),_.S("design:type",Object)],x2.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],x2.prototype,"opts",void 0);_.B([_.I(),_.S("design:type",Object)],x2.prototype,"playerControlsData",void 0);
_.B([_.I(),_.S("design:type",Object)],x2.prototype,"playerControlsAppApi",void 0);_.B([_.I(),_.S("design:type",Object)],x2.prototype,"playerControlsOptions",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x2.prototype,"noAnimation",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x2.prototype,"hidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x2.prototype,"active",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x2.prototype,"playing",void 0);_.B([_.I({selector:_.wY0}),_.S("design:type",Boolean)],x2.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.I(),_.S("design:type",String)],x2.prototype,"pagePath",void 0);_.B([_.I({selector:_.ze}),_.S("design:type",Boolean)],x2.prototype,"isWatchPage",void 0);_.B([_.T("videoPreviewData"),_.S("design:type",Object),_.S("design:paramtypes",[])],x2.prototype,"thumbnailData",null);
_.B([_.T("opts","active"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x2.prototype,"hidePlayerControls",null);_.B([_.T("opts"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x2.prototype,"isAdsVideo",null);_.B([_.T("opts"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x2.prototype,"roundedCornersSmall",null);
_.B([_.T("opts"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x2.prototype,"roundedCornersMedium",null);_.B([_.T("opts"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x2.prototype,"roundedCornersLarge",null);_.B([_.T("opts"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x2.prototype,"unroundCornersForPlayback",null);
_.B([_.T("opts","videoPreviewDataIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],x2.prototype,"videoPreviewData",null);_.B([_.I(),_.S("design:type",Object)],x2.prototype,"videoPreviewDataIndex",void 0);_.B([_.a4("#inline-player"),_.S("design:type",Object)],x2.prototype,"inlinePlayer",void 0);_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],x2.prototype,"onMouseLeave",null);
_.B([_.QR("opts"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x2.prototype,"optsChanged",null);_.B([_.QR("inlinePreviewIsEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x2.prototype,"onInlinePreviewIsEnabledChange",null);_.B([_.qM("isAdsVideo"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x2.prototype,"onIsAdsVideoChange",null);
x2=_.B([_.e({is:"ytd-video-preview",disableElementRegistration:!0})],x2);
_.G(x2,"ytd-video-preview",function(){if(MNa!==void 0)return MNa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return MNa=f},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Oj9;var cmX;/*

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
*/
_.NM({_template:function(){if(cmX!==void 0)return cmX;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;Oj9===void 0&&(Oj9=document.createElement("template"));var O=Oj9;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return cmX=f},
is:"tp-yt-paper-checkbox",behaviors:[_.pMf],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.su(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var f=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),R="px",u=f.match(/[A-Za-z]+$/);u!==null&&(R=u[0]);f=parseFloat(f);u=8/3*f;R==="px"&&(u=Math.floor(u),u%2!==f%2&&u++);this.updateStyles({"--paper-checkbox-ink-size":u+
R})}})},
_computeCheckboxClass:function(f,R){var u="";f&&(u+="checked ");R&&(u+="invalid");return u},
_computeCheckmarkClass:function(f){return f?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.L8C._createRipple.call(this)}});var Xz5=new _.Y("radioButtonSurveyOptionRenderer"),h9m=new _.Y("checkboxSurveyOptionRenderer");var Zj5;var l05;var kdl=0,HS=function(){var f=_.U.call(this)||this;f.selected=!1;f.isOverlay=!1;f.inputId="toggle-option-"+kdl;kdl++;return f};
_.y(HS,_.U);HS.prototype.onTap=function(){_.ul(this.hostElement,"ytd-toggle-option-clicked")};
_.B([_.I(),_.S("design:type",String)],HS.prototype,"label",void 0);_.B([_.I(),_.S("design:type",String)],HS.prototype,"inputId",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HS.prototype,"selected",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HS.prototype,"isOverlay",void 0);HS=_.B([_.e({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.S("design:paramtypes",[])],HS);
_.G(HS,"ytd-toggle-option-renderer",function(){if(l05!==void 0)return l05;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return l05=f},{mode:1});var Ic=function(){var f=_.U.apply(this,arguments)||this;f.isToggleOption=!1;f.isOverlay=!1;return f};
_.y(Ic,_.U);Ic.prototype.onTap=function(f){f.preventDefault();this.data&&(f=!this.data.checked,this.set("data.checked",f),_.ul(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:f,value:this.data.value}))};
_.Vy.Object.defineProperties(Ic.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Ic.prototype.onTap=Ic.prototype.onTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ic.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Ic.prototype,"isToggleOption",void 0);_.B([_.I(),_.S("design:type",Object)],Ic.prototype,"isOverlay",void 0);_.B([_.T("data.responseText"),_.S("design:type",String),_.S("design:paramtypes",[])],Ic.prototype,"label",null);
_.B([_.Kf("ytd-toggle-option-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Ic.prototype,"onTap",null);Ic=_.B([_.e({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Ic);
_.G(Ic,"ytd-checkbox-survey-option-renderer",function(){if(Zj5!==void 0)return Zj5;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Zj5=f},{mode:1});var Kol;var qOa;var M3=function(){var f=_.U.apply(this,arguments)||this;f.checked=!1;f.isToggleOption=!1;return f};
_.y(M3,_.U);M3.prototype.onTap=function(){this.data&&(this.checked?_.OJ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.OJ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
M3.prototype.onTap=M3.prototype.onTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],M3.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],M3.prototype,"checked",void 0);_.B([_.I(),_.S("design:type",Object)],M3.prototype,"isToggleOption",void 0);_.B([_.Kf("ytd-toggle-option-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],M3.prototype,"onTap",null);
M3=_.B([_.e({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],M3);
_.G(M3,"ytd-radio-button-survey-option-renderer",function(){if(qOa!==void 0)return qOa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qOa=f},{mode:1});var PS=function(){var f=_.U.apply(this,arguments)||this;f.disableAnimation=!1;f.isToggleOption=!0;f.followUpSurveyCommand=null;f.selectedRatingEndpoint=null;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;f.styleOverrideAttribute=!0;f.isDarkMode=!1;f.isSubmitted=!1;f.roundedContainer=!0;f.improveShortsResponseRate=_.E("web_improve_shorts_response_rate");f.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 f};
_.y(PS,_.U);_.X=PS.prototype;
_.X.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"}}}}};
_.X.attached=function(){var f=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(u){var O;if((O=u[0])!=null&&O.isIntersecting){_.aF().reportShown(f.hostElement);var c;(c=f.intersectionObserver)==null||c.unobserve(f.hostElement)}},{rootMargin:"0px",
threshold:.6});var R;(R=this.intersectionObserver)==null||R.observe(this.hostElement)};
_.X.onDarkModeToggledAction=function(f){this.isDarkMode=f};
_.X.dataChanged=function(){var f;if(((f=this.data)==null?void 0:f.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var R;((R=this.data)==null?void 0:R.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var u,O,c,h;this.darkColorPalette=(u=this.data)==null?void 0:(O=u.inlineContent)==null?void 0:(c=O.compactVideoRenderer)==null?void 0:(h=c.thumbnail)==null?
void 0:h.darkColorPalette;var l,K,q,F;this.lightColorPalette=(l=this.data)==null?void 0:(K=l.inlineContent)==null?void 0:(q=K.compactVideoRenderer)==null?void 0:(F=q.thumbnail)==null?void 0:F.lightColorPalette;var w,m;if(((w=this.data)==null?0:(m=w.inlineContent)==null?0:m.compactVideoRenderer)&&this.isShortsStyle){var W,C,d,p;f=_.fL((W=this.data)==null?void 0:(C=W.inlineContent)==null?void 0:(d=C.compactVideoRenderer)==null?void 0:(p=d.thumbnail)==null?void 0:p.thumbnails);_.ZO(this.hostElement,
{"--yt-background-url":"url("+f+")"})}};
_.X.handleRequestCompletion=function(){this.hostElement.hidden&&_.ul(this.hostElement,"yt-dismissible-item-dismissed")};
_.X.onPopupClosed=function(f){var R;((R=f.detail)==null?void 0:R.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.OJ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.X.handleInlineSurveyRatingSelect=function(f,R){var u=this;this.selectedRatingEndpoint=f;this.followUpSurveyCommand=R;this.expanded=!!f;this.getOptionRenderers().forEach(function(O,c){u.notifyPath("followUpSurveyCommand.followUpOptions."+c+".checkboxSurveyOptionRenderer.checked");u.set("followUpSurveyCommand.followUpOptions."+c+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),f=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.OJ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[f]))};
_.X.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.OJ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var f,R=(f=this.data)==null?void 0:f.dismissalEndpoint;R&&this.ytComponentBehavior.resolveCommand(R)}};
_.X.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.OJ(this.hostElement,"yt-close-popup-action"))};
_.X.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var f=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{f=this.getOptionRenderers().filter(function(O){return O.checked});
if(f.length===0)return;f=f.map(function(O){return O.responseEndpoint})}var R=[];
f.forEach(function(O,c){c!==0&&(O=_.t(O,_.DS))&&O.feedbackToken&&R.push(O.feedbackToken)});
if(f=f[0]){var u={};R.length>0&&(u.extra_feedback_tokens=R);this.ytComponentBehavior.resolveCommand(f,{form:u})}}};
_.X.getOptionRenderers=function(){var f=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(R){f.isSingleSelect=!!_.t(R,Xz5);return f.isSingleSelect?_.t(R,Xz5):_.t(R,h9m)}):[]};
_.X.handleInlineSurveyOptionSelect=function(f){f=this.optionSelector.indexOf(f);f!==-1&&this.optionSelector.selectIndex(f)};
_.X.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.X.maybeGetBackgroundColor=function(f){return this.isDarkMode?f.section2Color:f.section3Color};
_.X.colorPaletteChanged=function(){var f=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;f=f&&this.maybeGetBackgroundColor(f);this.dismissibleEl.style.backgroundColor=!f||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.I1(f)};
_.Vy.Object.defineProperties(PS.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
PS.prototype.colorPaletteChanged=PS.prototype.colorPaletteChanged;PS.prototype.onPopupClosed=PS.prototype.onPopupClosed;PS.prototype.handleRequestCompletion=PS.prototype.handleRequestCompletion;PS.prototype.dataChanged=PS.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],PS.prototype,"actionHandlerBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],PS.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.a4("#follow-up-survey-options"),_.S("design:type",Object)],PS.prototype,"optionSelector",void 0);_.B([_.I(),_.S("design:type",Object)],PS.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],PS.prototype,"disableAnimation",void 0);_.B([_.I(),_.S("design:type",Object)],PS.prototype,"isToggleOption",void 0);_.B([_.I(),_.S("design:type",Object)],PS.prototype,"followUpSurveyCommand",void 0);_.B([_.I(),_.S("design:type",Object)],PS.prototype,"selectedRatingEndpoint",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],PS.prototype,"expanded",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PS.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PS.prototype,"isShortsStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PS.prototype,"styleOverrideAttribute",void 0);_.B([_.I(),_.S("design:type",Boolean)],PS.prototype,"isSingleSelect",void 0);_.B([_.I(),_.S("design:type",Object)],PS.prototype,"isDarkMode",void 0);
_.B([_.I(),_.S("design:type",Object)],PS.prototype,"lightColorPalette",void 0);_.B([_.I(),_.S("design:type",Object)],PS.prototype,"darkColorPalette",void 0);_.B([_.T("selectedRatingEndpoint","isShortsStyle"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],PS.prototype,"isOptionSelected",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PS.prototype,"roundedContainer",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PS.prototype,"improveShortsResponseRate",void 0);_.B([_.a4("#dismissible"),_.S("design:type",HTMLElement)],PS.prototype,"dismissibleEl",void 0);_.B([_.a4("#dismiss-button yt-icon-button"),_.S("design:type",HTMLElement)],PS.prototype,"dismissButtonEl",void 0);_.B([_.a4("#inline-survey-header yt-icon-button"),_.S("design:type",HTMLElement)],PS.prototype,"inlineHeaderDismissButtonEl",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PS.prototype,"dataChanged",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PS.prototype,"handleRequestCompletion",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],PS.prototype,"onPopupClosed",null);
_.B([_.qM("darkColorPalette","lightColorPalette","isDarkMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PS.prototype,"colorPaletteChanged",null);PS=_.B([_.e({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],PS);
_.G(PS,"ytd-inline-survey-renderer",function(){if(Kol!==void 0)return Kol;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Kol=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
var SGe,$TX,gkz;SGe=function(f){return _.E("kevlar_watch_cinematics_invisible")||f.fullscreen&&_.E("kevlar_watch_cinematics_invisible_in_fullscreen")||f.theater&&!f.fullscreen&&_.E("kevlar_watch_cinematics_invisible_in_theater")};
$TX=function(){var f=document.createElement("canvas"),R=f.getContext("2d");if(!R)throw Error("Wl");_.zD(f,{position:"absolute",width:"100%",height:"100%"});return{element:f,context:R}};
gkz=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.E("kevlar_watch_cinematics_css_blur")};
_.sK9=function(f,R,u){return Math.abs(f-R)<=(u||1E-6)};
_.nkN=function(f,R){return f==R?!0:f&&R?f.width==R.width&&f.height==R.height:!1};_.Vz2=new _.Y("notificationActionRenderer");var YGm=function(f){var R=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.lj;this.element.addEventListener("load",function(){R.loaded=!0;R.resolver.resolve(R.element)});
this.element.addEventListener("error",function(){R.failed=!0});
this.element.src=f};var vkh=function(f,R){this.image=f;this.frame=R};
vkh.prototype.drawToCanvas=function(f,R){var u=this.frame.width/this.frame.columns,O=this.frame.height/this.frame.rows,c=R.offsetX,h=R.offsetY;SGe(R)?(f.fillStyle=R.fullscreen?"#000":"#0f0f0f",f.fillRect(c,h,(R==null?void 0:R.width)||u,(R==null?void 0:R.height)||O)):f.drawImage(this.image,this.frame.column*u,this.frame.row*O,u,O,c,h,(R==null?void 0:R.width)||u,(R==null?void 0:R.height)||O)};
var il9=function(f){this.color=f};
il9.prototype.drawToCanvas=function(f,R){var u=R.offsetX,O=R.offsetY,c=R.width,h=R.height;f.fillStyle=SGe(R)?R.fullscreen?"#000":"#0f0f0f":this.color;f.fillRect(u,O,c,h)};var f7=function(f,R){_.n4.call(this);this.playerApi=R;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.K8(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();r3t(this,f);fUX(this);this.update()};
_.y(f7,_.n4);f7.prototype.addEventListeners=function(){var f=this,R=function(){f.update()},u=function(c){f.paused||(c.type==="newdata"&&(f.mosaics.clear(),RXN(f),R_(f)),fUX(f),f.update())},O=function(){f.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",R);this.playerApi.addEventListener("onVideoDataChange",u);this.playerApi.addEventListener("onStateChange",O);this.addOnDisposeCallback(function(){f.playerApi.removeEventListener("onVideoProgress",R);f.playerApi.removeEventListener("onVideoDataChange",u);f.playerApi.removeEventListener("onStateChange",O)})};
var r3t=function(f,R){f.cinematicContainerRenderer!==R&&(f.cinematicContainerRenderer=R,RXN(f),R_(f),f.colorStoreUpdateJobId=_.JA.addLowPriorityJob(function(){var u;if((u=f.cinematicContainerRenderer.colorStore)!=null&&u.sampledColors){u=Infinity;for(var O=_.Z(f.cinematicContainerRenderer.colorStore.sampledColors),c=O.next();!c.done;c=O.next()){c=c.value;var h=Number(c.key);h!==0&&h<u&&(u=h);h=_.ML(c.value);f.colorStore.set(c.key,h)}f.colorStoreTimeInterval=u}}))},RXN=function(f){f.colorStoreUpdateJobId&&
(_.JA.cancelJob(f.colorStoreUpdateJobId),f.colorStoreUpdateJobId=void 0);
f.colorStore.clear();f.currentStoryboardColor=void 0},u2t=function(f,R){var u;
return(u=f.getStoryboardFrame(R))==null?void 0:u.url};
f7.prototype.onPlayerStateChange=function(){this.update()};
f7.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var fUX=function(f){var R=f.getStoryboardFrame(0);R&&(R=new _.K8(R.width/R.columns,R.height/R.rows),_.nkN(f.currentStoryboardSize,R)||(f.currentStoryboardSize=R,f.publish("STORYBOARD_SIZE_CHANGED",f.currentStoryboardSize)))},O2m=function(f,R){f.currentStoryboardIndex=R;
f.pendingStoryboardIndex=NaN;R=f.getStoryboardFrame(f.currentStoryboardIndex);f.currentStoryboard=new vkh(f.mosaics.get(R.url).element,R);f.publish("STORYBOARD_CHANGED",f.currentStoryboard);f.lastUpdateTime=(0,_.iZ)()};
f7.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var R_=function(f){f.currentStoryboardIndex=NaN;f.pendingStoryboardIndex=NaN;f.currentStoryboard&&(f.currentStoryboard=void 0,f.publish("STORYBOARD_CHANGED",void 0));f.lastUpdateTime=NaN};
f7.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)R_(this);else{var f=this.playerApi.getPlayerState(1);if(f===-1||f===5||f===0)R_(this);else if(isNaN(this.lastUpdateTime)||!((0,_.iZ)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(f=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){f=""+Math.round(f*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var R=this.colorStore.get(f);R?R!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=R,this.currentStoryboard=new il9(R),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.iZ)()):(_.Ih(new _.ts("Could not find color for timestamp: "+f,this.cinematicContainerRenderer)),R_(this))}else R_(this);else cRX(this,f)}};
var cRX=function(f,R){var u=f.getStoryboardFrameIndex(R);if(u!==f.currentStoryboardIndex&&u!==f.pendingStoryboardIndex){R=u2t(f,u);var O=f.mosaics.get(R);O?O.loaded&&O2m(f,u):(f.pendingStoryboardIndex=u,u=new YGm(R),f.mosaics.set(R,u),u.resolver.promise.then(function(){if(!f.isDisposed()&&!f.paused&&!isNaN(f.pendingStoryboardIndex)){var c=u2t(f,f.pendingStoryboardIndex);if(c){var h;(h=f.mosaics.get(c))!=null&&h.loaded&&O2m(f,f.pendingStoryboardIndex)}else R_(f)}}))}};
f7.prototype.getStoryboardFrameIndex=function(f){var R=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(f,R)};
f7.prototype.getStoryboardFrame=function(f){var R=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,u,O;return((O=(u=this.playerApi).getStoryboardFrame)==null?void 0:O.call(u,f,R))||null};
f7.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Os=function(f,R,u,O){O=O===void 0?!1:O;_.d9.call(this);this.cinematicContainerRenderer=R;this.playerApi=u;this.theater=this.fullscreen=!1;var c;this.ambientLightThemeEnabled=!O&&!!(R==null?0:(c=R.config)==null?0:c.enableInLightTheme);this.ambientFullscreenEnabled=O&&_.E("web_cinematic_fullscreen");this.container=document.createElement("div");f.appendChild(this.container);var h;if(_.E("web_cinematic_theater_mode")||_.E("web_cinematic_fullscreen")||(R==null?0:(h=R.config)==null?0:h.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);X$m(this);f=this.ambientV2Container||this.container;this.backCanvas=$TX();this.frontCanvas=$TX();f.appendChild(this.backCanvas.element);f.appendChild(this.frontCanvas.element);this.storyboardManager=new f7(R,this.playerApi);_.qG(this,this.storyboardManager);this.addEventListeners();hXh(this)?Z2h(this,100+uy(this)*3*2,100+uy(this)*3*2):lUN(this);kE9(this,this.storyboardManager.currentStoryboard)};
_.y(Os,_.d9);var X$m=function(f){f.ambientV2Container?KSe(f):(_.zD(f.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+qtX(f)+", "+ARz(f)+")"}),gkz()&&_.zD(f.container,"filter","blur("+_.RV("cinematic_watch_css_filter_blur_strength",40)+"px)"))},KSe=function(f){if(f.ambientV2Container){var R=f.playerApi.getVideoAspectRatio();
_.zD(f.container,{"aspect-ratio":""+R,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.zD(f.ambientV2Container,{"aspect-ratio":""+R,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+qtX(f)+", "+ARz(f)+")"});gkz()&&_.zD(f.ambientV2Container,"filter","blur("+_.RV("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Os.prototype.setFullscreen=function(f,R){this.fullscreen=f;this.theater=!!R;X$m(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),f=this.storyboardManager.currentStoryboard,aUz(this),f&&FSm(this,f)};
Os.prototype.addEventListeners=function(){var f=this,R=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(c){kE9(f,c)}),u=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){lUN(f)});
this.addOnDisposeCallback(function(){f.storyboardManager.unsubscribeByKey(R);f.storyboardManager.unsubscribeByKey(u)});
if(this.ambientV2Container){var O=function(){KSe(f)};
this.playerApi.addEventListener("onVideoDataChange",O);this.addOnDisposeCallback(function(){f.playerApi.removeEventListener("onVideoDataChange",O)})}};
var lUN=function(f){if(!hXh(f)){var R=f.storyboardManager.currentStoryboardSize;isNaN(R.width)||isNaN(R.height)||Z2h(f,Number(R.width)+uy(f)*3*2,Number(R.height)+uy(f)*3*2)}},Z2h=function(f,R,u){f.backCanvas.element.width=R;
f.backCanvas.element.height=u;f.frontCanvas.element.width=R;f.frontCanvas.element.height=u},hXh=function(f){return f.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},kE9=function(f,R,u){u=u===void 0?!1:u;
var O=f.frontCanvas.element.getAnimations()[0];O?(O.pause(),f.backCanvas.context.globalAlpha=Number(getComputedStyle(f.frontCanvas.element).opacity),f.frontCanvas.element.style.opacity="0",O.finish()):f.backCanvas.context.globalAlpha=1;f.backCanvas.context.drawImage(f.frontCanvas.element,0,0,f.backCanvas.element.width,f.backCanvas.element.height);aUz(f);R&&FSm(f,R);R=R?f.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.RV("cinematic_watch_fade_out_duration",500);O=_.RV("cinematic_watch_transition_frame_rate")/
1E3;var c={};O&&(c={easing:"steps("+Math.round(R*O)+")"});(u===void 0?0:u)||f.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:R,iterations:1},c));f.frontCanvas.element.style.opacity="1"},aUz=function(f){var R=f.ambientLightThemeEnabled,u=f.ambientLightThemeEnabled||f.ambientFullscreenEnabled&&!_.E("web_cinematic_fullscreen_v2");
f.frontCanvas.context.fillStyle=f.theater&&R||f.fullscreen&&u?"#000":"#0f0f0f";gkz()||(f.frontCanvas.context.filter="blur(0)");f.frontCanvas.context.fillRect(0,0,f.frontCanvas.element.width,f.frontCanvas.element.height)},FSm=function(f,R){gkz()||(f.frontCanvas.context.filter="blur("+uy(f)+"px)");
f.frontCanvas.context.globalAlpha=_.RV("cinematic_watch_effect_opacity",.4);var u={offsetX:uy(f)*3,offsetY:uy(f)*3,theater:f.theater,fullscreen:f.fullscreen};hXh(f)&&(u.width=100,u.height=100);R.drawToCanvas(f.frontCanvas.context,u);f.frontCanvas.context.globalAlpha=1},uy=function(f){var R;
return(R=f.cinematicContainerRenderer.config.blurStrength)!=null?R:5},qtX=function(f){var R,u;
if((f.fullscreen||f.theater)&&((R=f.cinematicContainerRenderer.config)==null?0:(u=R.watchFullscreenConfig)==null?0:u.colorSourceWidthMultiplier))return f.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var O;return(O=f.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?O:f.cinematicContainerRenderer.config.colorSourceSizeMultiplier},ARz=function(f){var R,u;
if((f.fullscreen||f.theater)&&((R=f.cinematicContainerRenderer.config)==null?0:(u=R.watchFullscreenConfig)==null?0:u.colorSourceHeightMultiplier))return f.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var O;return(O=f.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?O:f.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Os.prototype.disposeInternal=function(){_.d9.prototype.disposeInternal.call(this);this.container.remove()};
Os.prototype.clear=function(){kE9(this,void 0,!0)};
Os.prototype.pause=function(){this.storyboardManager.pause()};var w$X;w$X=_.wB(function(){var f,R,u=!((R=(f=document.createElement("canvas")).getContext)==null||!R.call(f,"2d")),O;f=!((O=CSS)==null||!O.supports("filter: blur(0)"));O=!!Element.prototype.animate&&!!Element.prototype.getAnimations;R=_.E("web_cinematic_fullscreen")||_.E("web_cinematic_theater_mode")||_.E("web_cinematic_light_theme")||!1;var c;return u&&f&&O&&(!R||!((c=CSS)==null||!c.supports("aspect-ratio: 1 / 1")))});
_.cN=function(f,R){_.n4.call(this);this.container=f;this.playerApi=R;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=mow(this);this.update()};
_.y(_.cN,_.n4);_.Q29=function(f){var R=document.documentElement.hasAttribute("dark");f.isDarkModeEnabled=R;f.update()};
_.WSw=function(f,R){f.settingEnabled=R;f.update()};
_.cN.prototype.setFullscreen=function(f,R){this.fullscreen=f;this.theater=!!R;this.update()};
_.Efh=function(f,R){f.cinematicContainerRenderer=R;f.cinematicContainerRenderer&&(f.cinematicsVe=_.dx(f.isShorts()?227858:159022),_.c1(_.wR(),f.cinematicsVe),f.loggingClientData={watchCinematicContainerData:{presentationStyle:f.cinematicContainerRenderer.presentationStyle}});f.update()};
_.cN.prototype.isShorts=function(){var f,R;return((f=this.cinematicContainerRenderer)==null?void 0:(R=f.config)==null?void 0:R.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.cN.prototype.isAllowed=function(){var f;if(f=w$X()){var R,u,O;f=((u=this.cinematicContainerRenderer)==null?void 0:u.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((O=this.cinematicContainerRenderer)==null||!O.colorStore)||((R=this.cinematicContainerRenderer)==null?void 0:R.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(f)if(_.E("web_cinematics_pausing")){var c,h;f=this.isDarkModeEnabled||!!((c=this.cinematicContainerRenderer)==
null?0:(h=c.config)==null?0:h.enableInLightTheme)}else{var l,K;c=!!((l=this.cinematicContainerRenderer)==null?0:(K=l.config)==null?0:K.enableInLightTheme)&&(_.Tf("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);f=this.isDarkModeEnabled||c}if(l=f){var q,F;l=!((F=(q=this.prefersReducedMotionQuery)==null?void 0:q.matches)!=null&&F)}return l};
_.tjl=function(f){(f=f.currentCinematicEffect)!=null&&(f=f.storyboardManager,f.paused=!1,fUX(f),f.update())};
_.cN.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var mow=function(f){if(!_.E("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var R=window.matchMedia("(prefers-reduced-motion: reduce)"),u=function(){f.update()};
R.addListener(u);f.addOnDisposeCallback(function(){R.removeListener(u)});
return R}};
_.cN.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var f=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Os(this.container,f,this.playerApi,this.isDarkModeEnabled),_.qG(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var R=this.currentCinematicEffect;R.cinematicContainerRenderer!==
f&&(R.cinematicContainerRenderer=f,r3t(R.storyboardManager,f),X$m(R));f=_.Qu();_.W_(0,194,!0);f.save();f=_.z4();this.cinematicsVe&&f&&_.op(f,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(f=_.z4(),this.cinematicsVe&&f&&_.xE(f,[this.cinematicsVe],!1,this.loggingClientData),_.YD(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Vy.Object.defineProperties(_.cN.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Ekm;var tzm;_.NM({_template:function(){if(tzm!==void 0)return tzm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=
f.content,u=R.insertBefore;Ekm===void 0&&(Ekm=document.createElement("template"));var O=Ekm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return tzm=f},
is:"tp-yt-iron-pages",behaviors:[_.Lu,_.GJ],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var FKw;_.wSl=function(){if(_.E("kevlar_home_skeleton")&&!FKw){var f=document.querySelector("#home-page-skeleton");f&&(_.JH("hgcr"),_.Q1(f),FKw=!0)}};
FKw=!1;_.yl=new _.Y("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var A6S,aGe,FEt,wHw,mbz,Qea,tKz,y6t,db2,C6l,WEa,EWt,bx2,pHN;_.q9e=function(f,R,u){R=R===void 0?5:R;if(R!==0){var O=typeof f==="function"?f():document.querySelector(f);O?(u==null?0:u.enableSmartFocus)?_.ry7(O):O.focus():setTimeout(function(){_.q9e(f,R-1,u)},500)}};
A6S=function(f){return _.fZq(_.reP(f&16777215))<.5};
aGe=function(f,R,u){var O=u.minimumRowsOfVideosBetweenSections===void 0?1:u.minimumRowsOfVideosBetweenSections;return f<(u.minimumRowsOfVideosAtStart===void 0?2:u.minimumRowsOfVideosAtStart)||R!==null&&f-R<=O?!1:!0};
FEt=function(f,R){var u=0,O=0;f=_.Z(f);for(var c=f.next();!c.done;c=f.next()){var h=c.value;if(h.richItemRenderer)h.richItemRenderer.rowIndex=O,h.richItemRenderer.colIndex=u++,u===R&&(u=0,O++);else if(h.richGroupRenderer&&h.richGroupRenderer.numColumns!==void 0)h.richGroupRenderer.rowIndex=O,h.richGroupRenderer.colIndex=u,u+=h.richGroupRenderer.numColumns,u===R&&(u=0,O++);else if(h.richSectionRenderer){var l=c=void 0;if(h=_.t((c=h)==null?void 0:(l=c.richSectionRenderer)==null?void 0:l.content,_.zvC))h.rowIndex=
O++}}};
wHw=function(f,R){var u=R.contentElement;R=R.rendererToTagNameMap;if(u&&R&&R.size!==0){for(var O=new Map,c=_.Z(u.children),h=c.next();!h.done;h=c.next()){h=h.value;var l=h.tagName.toLowerCase(),K=O.get(l);K||(K=[],O.set(l,K));K.push(h)}if(O.size!==0)for(c=Math.min(f.length,u.children.length),h=new Map,l=0;l<c;l++){K=Object.keys(f[l])[0];K=R.get(K);if(!K)break;var q=h.get(K);q===void 0&&(q=0,h.set(K,q));var F=O.get(K);if(!F||q>=F.length)break;h.set(K,q+1);K=F[q];q=u.children[l];q!==K&&(_.gen=!0,_.sP5.set(K,
!0),u.insertBefore(K,q),_.sP5.delete(K),_.gen=!1)}}};
mbz=function(f,R,u,O,c,h,l){O=O===void 0?{}:O;if(!f||!f.length)return[];f=f.slice();var K=[],q=[];c=null;for(var F=0,w=function(M){q.sort(function(x,fh){return fh.skippedOnRow-x.skippedOnRow});
for(var P,g=(P=q.shift())==null?void 0:P.content;g;)!g.richSectionRenderer&&M||K.push(g),P=void 0,g=(P=q.shift())==null?void 0:P.content},m=[];f.length>0||q.length>0;){for(var W=[],C=R;C>0;){var d=void 0,p=void 0,J=(p=q[0]&&q[0].skippedOnRow<F?(d=q.shift())==null?void 0:d.content:void 0)!=null?p:f.shift();
if(!J)break;if(J.richItemRenderer)d=J.richItemRenderer.targetId,p=void 0,d&&((p=l)==null?0:p.has(d))&&m.push(l.get(d)),W.push(J),C--;else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.numColumns<=C?(W.push(J),C-=J.richGroupRenderer.numColumns):C===R&&J.richGroupRenderer.numColumns>R?(W.push({richGroupRenderer:Object.assign({},J.richGroupRenderer,{numColumns:R})}),C=0):q.push({content:J,skippedOnRow:F});else if(J.richSectionRenderer)if(aGe(F,c,O)&&C===R){K.push(J);
c=F;F++;continue}else q.push({content:J,skippedOnRow:F});else if(J.continuationItemRenderer){w(!0);K.push(J);C=0;break}if(C===0)K.push.apply(K,_.yq(W));else if(!u&&f.length===0){w(!1);K.push.apply(K,_.yq(W));C=0;break}}F++;m=_.Z(m);for(W=m.next();!W.done;W=m.next())K.push(W.value),F++;m=[]}FEt(K,R);h&&wHw(K,h);return K};
Qea=function(f){return f.talkToRecs};
tKz=function(f,R){if(R){var u=_.sP().getState().entities.flowStateEntity,O=WEa(f),c=[R];O&&O!==R&&c.push(O);var h=!0,l;if(u&&f.flowStateEntityKey&&((l=u[f.flowStateEntityKey])==null?void 0:l.primaryButtonDisabled)!==void 0){var K;h=!((K=u[f.flowStateEntityKey])==null||!K.primaryButtonDisabled)}EWt(f,O!=null?O:R,c,h)}};
y6t=function(f){return _.aC(_.sP(),function(R){return R.entities.flowStateEntity},function(R,u){if(f.flowStateEntityKey){var O,c=R==null?void 0:(O=R[f.flowStateEntityKey])==null?void 0:O.currentStepId,h;
u=u==null?void 0:(h=u[f.flowStateEntityKey])==null?void 0:h.currentStepId;h=_.sP().getState().talkToRecs;if(c&&c!==u){var l;R=(R==null?void 0:(l=R[f.flowStateEntityKey])==null?void 0:l.stepIdStack)||Object.keys(h.stepStates);l=!C6l(h==null?void 0:h.stepStates[c]);EWt(f,c,R,l)}}})};
db2=function(f){return _.aC(_.sP(),Qea,function(R){var u=WEa(f);if(u){var O=Object.keys(R.stepStates);R=!C6l(R==null?void 0:R.stepStates[u]);EWt(f,u,O,R)}})};
C6l=function(f){var R=Object.keys((f==null?void 0:f.selectionStates)||{}).reduce(function(h,l){return h||(f==null?void 0:f.selectionStates[l].isSelected)},!1),u,O,c=!!(f==null?0:(u=f.userQuery)==null?0:(O=u.userQuery)==null?0:O.trim());
return R||c};
WEa=function(f){if(f.flowStateEntityKey){var R,u,O=(R=_.sP().getState().entities.flowStateEntity)==null?void 0:(u=R[f.flowStateEntityKey])==null?void 0:u.currentStepId;if(O)return O}};
EWt=function(f,R,u,O){_.sP().dispatch(_.aA("flowStateEntity",f.flowStateEntityKey,{currentStepId:R,stepIdStack:u,key:f.flowStateEntityKey,primaryButtonDisabled:O}))};
_.N1X=function(f,R){return _.kZ(f.entities,"youchatPendingResponseEntity",R)};
_.LEN=function(f){return function(R){_.$s(_.aA("youchatPendingResponseEntity",f,{entityKey:f,isPendingResponse:R}))}};
bx2=function(f){f==null||f.addEventListener("DOMLoaded",function(){f.goToAndPlay(f.totalFrames-48,!0)})};var jeK;_.NM({_template:function(){if(jeK!==void 0)return jeK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
var R=f.content,u=R.insertBefore;pHN===void 0&&(pHN=document.createElement("template"));var O=pHN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return jeK=f},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var DbS=new _.Y("talkToRecsFlowRenderer");var J6N=new _.Y("flowRootRenderer");var z3m=new _.Y("learningJourneyQuizViewModel");var T1t=new _.Y("chipsShelfViewModel");var HxN=new _.Y("responsiveContainerConfiguration");var IGh=new _.Y("horizontalShelfViewModel");_.MKS=new _.Y("engagementPanelSectionListRenderer");var P62=new _.Y("conversationResourceViewModel");var Ub2=function(){this.horizontal=!1},e3N=function(f,R){f.horizontal=R};
Ub2.prototype.position=function(f,R,u,O){O=O===void 0?1:O;f=this.delta(f)*O+R;O=Math.max(R,u);return f>=Math.min(R,u)&&f<=O?f:u};
Ub2.prototype.axis=function(f){f=this.direction(f);return f==="up"||f==="down"?"Y":"X"};var lm=function(f,R,u){R=R===void 0?_.WT():R;this.target=f;this.manager=R;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(){}};
lm.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(_.yq(this.events)));for(var f=_.Z(this.events),R=f.next();!R.done;R=f.next())this.listen(R.value)}};
lm.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.yq(this.events)));for(var f=_.Z(this.events),R=f.next();!R.done;R=f.next())this.unlisten(R.value)}};
lm.prototype.listen=function(f){this.eventMap[f]&&this.target.addEventListener(f,this.eventMap[f])};
lm.prototype.unlisten=function(f){this.eventMap[f]&&this.target.removeEventListener(f,this.eventMap[f])};var ko=function(){Ub2.apply(this,arguments)};
_.y(ko,Ub2);ko.prototype.direction=function(f){var R=f.detail;f=R.deltaY;R=R.deltaX;return f&&!this.horizontal?f>0?"down":"up":R&&this.horizontal?R>0?"right":"left":"none"};
ko.prototype.distance=function(f){return Math.abs(this.delta(f))};
ko.prototype.delta=function(f){var R=this.direction(f),u=f.detail;f=u.deltaX;u=u.deltaY;return R==="up"||R==="down"?u||0:f||0};
ko.prototype.velocity=function(f){var R=this.direction(f),u=f.detail;f=u.velocityX;u=u.velocityY;return Math.abs(R==="up"||R==="down"?u||0:f||0)};_.K$=function(f,R,u,O,c,h){c=c===void 0?new ko:c;h=h===void 0?_.WT():h;lm.call(this,R,h,O);var l=this;this.element=f;this.target=R;this.config=u;this.input=c;this.manager=h;this.events=["panstart","panmove","panend"];this.onPanStart=function(){l.config.draggingClass&&l.element.classList.add(l.config.draggingClass);l.config.startAction&&l.config.startAction()};
this.onPanMove=function(K){var q=Gvl(l,K);if(q){l.move(K,q);q.fade&&l.fade(K,q);var F=l.input.direction(K);q.moveAction&&q.moveAction(B1m(l,K,q),F)}};
this.onPanEnd=function(K){var q,F,w,m,W,C;return _.k(function(d){if(d.nextAddress==1){l.animationRequestId&&cancelAnimationFrame(l.animationRequestId);l.animationRequestId=void 0;q=Gvl(l,K);if(!q)return d.return();F=q;w=F.triggerAction;m=F.fade;W=F.disableFinish;C=F.translateBack;var p=l.input.velocity(K),J=l.input.distance(K),M=l.threshold(q);return p>.3&&J>10||J>M?W?d.jumpTo(6):m?_.A(d,oWm(l,K),6):_.A(d,xbS(l,K,q),6):C?_.A(d,l.translateBack(K),3):d.jumpTo(3)}d.nextAddress!=3&&w&&w();l.config.draggingClass&&
l.element.classList.remove(l.config.draggingClass);l.reset();_.KG(d)})};
f=Object.keys(u.triggers);this.directions=new Set(f);e3N(this.input,this.directions.has("right")||this.directions.has("left"))};
_.y(_.K$,lm);_.K$.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Gvl=function(f,R){R=f.input.direction(R);return f.config.triggers[R]};
_.K$.prototype.move=function(f,R){var u=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var O=u.input.axis(f),c=u.input.position(f,u.config.startPosition,R.endPosition,R.moveRatio||1);u.element.style.transform="translate"+O+"("+c+"px)";u.animationRequestId=void 0}))};
var B1m=function(f,R,u){var O=u.moveRatio||1;u=Math.abs(f.config.startPosition-u.endPosition);return Math.min(f.input.distance(R)*O,u)/u};
_.K$.prototype.fade=function(f,R){var u=R.endOpacity;f=B1m(this,f,R);f>0&&(this.element.style.opacity=""+(((u||0)-1)*f+1))};
_.K$.prototype.threshold=function(f){return f.threshold?f.threshold:Math.abs(f.endPosition-this.config.startPosition)/3};
var xbS=function(f,R,u){var O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1)return O=f.input.delta(R)+f.config.startPosition,c=f.input.axis(R),h=u,l=h.endPosition,K=h.transitionEndPosition,F=(q=K)!=null?q:l,_.A(w,f.element.animate([{transform:"translate"+c+"("+O+"px)"},{transform:"translate"+c+"("+F+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.element.style.transform="translate"+c+"("+F+"px)";_.KG(w)})};
_.K$.prototype.translateBack=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1){if(!R.element.style.transform)return c.return();u=R.input.axis(f);O=R.config.startPosition;return _.A(c,R.element.animate([{transform:R.element.style.transform},{transform:"translate"+u+"("+O+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}R.element.style.transform="translate"+u+"("+O+"px)";_.KG(c)})};
var oWm=function(f,R){var u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return u=f.input.delta(R)+f.config.startPosition,O=f.input.axis(R),c=u+70,h=f.element.style.opacity===""?1:f.element.style.opacity,_.A(l,f.element.animate([{transform:"translate"+O+"("+u+"px)",opacity:h},{transform:"translate"+O+"("+c+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.element.style.transform="translate"+O+"("+c+"px)";f.element.style.opacity="0";_.KG(l)})};var qy=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;f.scrollRate=3;f.autoScrollAnimationStart=0;f.autoScrollPaused=!1;f.autoScrollRafId=0;return f};
_.y(qy,_.w_);_.X=qy.prototype;_.X.created=function(){var f=this;this.boundAutoScrollHandler=function(R){f.autoScroll(R)}};
_.X.detached=function(){this.hostElement.removeEventListener("mouseout",_.ks(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ks(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ks(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.X.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ks(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ks(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ks(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ks(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ks(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ks(this,this.endAutoScroll)),this.endAutoScroll())};
_.X.autoScroll=function(f){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=f);var R;if(R=!this.autoScrollPaused&&this.scrollTarget)R=this.scrollTarget,R=R.scrollHeight-R.scrollTop!==R.clientHeight;R&&(R=1E3/this.scrollRate,f-=this.autoScrollAnimationStart,f>R&&(this.scrollTarget.scrollTop+=Math.ceil(f/R),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.X.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.X.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
qy.prototype.autoScrollEnabledChanged=qy.prototype.autoScrollEnabledChanged;_.B([_.I(),_.S("design:type",Object)],qy.prototype,"scrollRate",void 0);_.B([_.I(),_.S("design:type",Object)],qy.prototype,"scrollTarget",void 0);_.B([_.I(),_.S("design:type",Boolean)],qy.prototype,"autoScrollEnabled",void 0);_.B([_.qM("autoScrollEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qy.prototype,"autoScrollEnabledChanged",null);qy=_.B([_.mt()],qy);_.S9X=[qy.prototype];var $bt;var Aw=function(){var f=_.U.apply(this,arguments)||this;f.buttonUpdate=_.E("web_button_rework");f.dismissButtonOverrides=_.E("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;f.forceDarkTheme=!1;f.forceLightTheme=!1;f.dynamicTextHeight=94;f.hasOverflowButton=!1;f.isInfeedModernization=!1;return f};
_.y(Aw,_.U);_.X=Aw.prototype;_.X.computeUrlImg=function(f){if(f)return _.fL(f.thumbnails)};
_.X.getLogoHeight=function(f){return this.logoWithPadding(f)?"31":"24"};
_.X.getLogoClassName=function(f){return this.logoWithPadding(f)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.X.logoWithPadding=function(f){var R,u;return(f=(R=f.thumbnails)==null?void 0:(u=R[0])==null?void 0:u.height)&&f%31===0?!0:!1};
_.X.sendImpressionEndpoints=function(f){f.impressionEndpoints&&_.hH(this.hostElement,f.impressionEndpoints)};
_.X.observeBasicPalette=function(){var f,R,u=(f=this.data)==null?void 0:(R=f.colorData)==null?void 0:R.basicColorPaletteData;u?_.be(this.hostElement,u):_.be(this.hostElement,{})};
_.X.observeDataChanged=function(){var f;this.dynamicTextHeight=((f=this.data)==null?0:f.supplementalText)?74:94;var R;this.hasSupplementalText=!((R=this.data)==null||!R.supplementalText);if(_.E("web_button_rework")){var u,O,c,h;f=(u=this.data)==null?void 0:(O=u.actionButton)==null?void 0:(c=O.buttonRenderer)==null?void 0:(h=c.colorData)==null?void 0:h.basicColorPaletteData;var l,K,q;if(!((l=this.data)==null?0:(K=l.actionButton)==null?0:(q=K.buttonRenderer)==null?0:q.style)&&f){this.computeIsInfeedModernization(this.data)||
(f.borderColor=f.foregroundTitleColor);var F,w;this.set("data.actionButton.buttonRenderer",_.dq.unsafeClone((F=this.data)==null?void 0:(w=F.actionButton)==null?void 0:w.buttonRenderer))}}};
_.X.observeDataForCounterfactual=function(){if(_.E("kevlar_banner_cf_extra_logging")){var f;((f=this.data)==null?0:f.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.X.computeSupplementalStyle=function(){var f;if((f=this.data)!=null&&f.supplementalText){var R,u,O;if((R=this.data)==null?0:(u=R.colorData)==null?0:(O=u.basicColorPaletteData)==null?0:O.foregroundActivatedColor)return f=_.I1(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+f+"; --yt-endpoint-hover-color:"+f+"; --yt-endpoint-visited-color:"+f+"; --yt-formatted-string-bold-font-weight:700;"}};
_.X.computeForcedDarkTheme=function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.actionButton)==null?void 0:(u=R.buttonRenderer)==null?void 0:u.style,c,h,l;f=A6S(((c=this.data)==null?void 0:(h=c.colorData)==null?void 0:(l=h.basicColorPaletteData)==null?void 0:l.backgroundColor)||0);return O&&f};
_.X.computeForcedLightTheme=function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.actionButton)==null?void 0:(u=R.buttonRenderer)==null?void 0:u.style,c,h,l;f=!A6S(((c=this.data)==null?void 0:(h=c.colorData)==null?void 0:(l=h.basicColorPaletteData)==null?void 0:l.backgroundColor)||0);return O&&f};
_.X.computeHasOverflowButton=function(f){return!!f.overflowButton};
_.X.computeHasTitle=function(f){return!!f.title};
_.X.computeTitleMaxFontSize=function(f){return this.computeHasOverflowButton(f)?28:64};
_.X.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.X.computeIsInfeedModernization=function(){var f,R,u,O,c=(f=this.data)==null?void 0:(R=f.actionButton)==null?void 0:(u=R.buttonRenderer)==null?void 0:(O=u.colorData)==null?void 0:O.basicColorPaletteData;return(c==null?void 0:c.backgroundColor)===452984831||(c==null?void 0:c.backgroundColor)===218103808};
Aw.prototype.observeDataForCounterfactual=Aw.prototype.observeDataForCounterfactual;Aw.prototype.observeDataChanged=Aw.prototype.observeDataChanged;Aw.prototype.observeBasicPalette=Aw.prototype.observeBasicPalette;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],Aw.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Aw.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Aw.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Aw.prototype,"buttonUpdate",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Aw.prototype,"hasSupplementalText",void 0);_.B([_.I(),_.S("design:type",Object)],Aw.prototype,"dismissButtonOverrides",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.S("design:type",Boolean)],Aw.prototype,"hasTitle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.S("design:type",Object)],Aw.prototype,"forceDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.S("design:type",Object)],Aw.prototype,"forceLightTheme",void 0);_.B([_.I(),_.S("design:type",Object)],Aw.prototype,"dynamicTextHeight",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.S("design:type",Object)],Aw.prototype,"hasOverflowButton",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.S("design:type",Object)],Aw.prototype,"isInfeedModernization",void 0);_.B([_.qM("data.colorData.basicColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Aw.prototype,"observeBasicPalette",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Aw.prototype,"observeDataChanged",null);_.B([_.qM("data.isVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Aw.prototype,"observeDataForCounterfactual",null);Aw=_.B([_.e({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Aw);
_.G(Aw,"ytd-banner-promo-renderer",function(){if($bt!==void 0)return $bt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return $bt=f},{mode:1});var gWm;var see;var nWm;var aN=function(){return _.U.apply(this,arguments)||this};
_.y(aN,_.U);_.B([_.I(),_.S("design:type",Object)],aN.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);aN=_.B([_.e({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],aN);
_.G(aN,"ytd-hashtag-grid-tile-renderer",function(){if(nWm!==void 0)return nWm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return nWm=f},{mode:1});var FF=function(){return _.U.apply(this,arguments)||this};
_.y(FF,_.U);FF.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
FF.prototype.updateRichGridTrendingHashtagsVisibility=function(){var f,R;if(((f=this.data)==null||!f.isExpanded)&&(R=this.data)!=null&&R.tiles){f=this.data.tiles.length;R=f>this.richGridItemsPerRow?this.richGridItemsPerRow+1:f;var u=Math.ceil(f/R);this.fullyVisibleRows=f%R===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
FF.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
FF.prototype.updateRichGridTrendingHashtagsVisibility=FF.prototype.updateRichGridTrendingHashtagsVisibility;_.B([_.I(),_.S("design:type",Object)],FF.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Number)],FF.prototype,"fullyVisibleRows",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],FF.prototype,"isShowMoreVisible",void 0);_.B([_.I({selector:_.DH,value:0}),_.S("design:type",Number)],FF.prototype,"richGridItemsPerRow",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],FF.prototype,"ytdReduxBehavior",void 0);_.B([_.qM("data","richGridItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FF.prototype,"updateRichGridTrendingHashtagsVisibility",null);
FF=_.B([_.e({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],FF);
_.G(FF,"ytd-hashtag-grid-shelf-renderer",function(){if(see!==void 0)return see;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return see=f},{mode:1});var VKN;var Y92;var wT=function(){var f=_.U.apply(this,arguments)||this;f.visibleVideos=[];f.hiddenVideos=[];f.modern=_.E("web_modern_buttons");f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(wT,_.U);_.X=wT.prototype;_.X.attached=function(){var f=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.onDarkModeToggledAction(f)};
_.X.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"}}}};
_.X.dataChanged=function(){var f=this;this.requestElementsPerRow();var R,u;this.currentColorPalette=this.isDarkTheme?(R=this.data)==null?void 0:R.darkColorData:(u=this.data)==null?void 0:u.lightColorData;var O;if((O=this.currentColorPalette)==null?0:O.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.su(this,function(){f.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.X.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.X.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.X.computeIsFirstFeedItem=function(f){return f};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f);this.data&&(this.currentColorPalette=f?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.X.getCurrentLogo=function(f,R){if(f)return R?f.darkLogoImage:f.lightLogoImage};
_.X.computeTitleStyle=function(f){var R;if((R=this.data)!=null&&R.title&&f&&f.textPrimary!==void 0)return"color:"+_.I1(f.textPrimary)+";"};
_.X.computeSubtitleStyle=function(f){var R;if((R=this.data)!=null&&R.subtitle&&f&&f.textSecondary!==void 0)return"color:"+_.I1(f.textSecondary)+";"};
_.X.computeDismissIconStyle=function(f){if(this.data&&this.data.dismissButton&&f&&f.textPrimary!==void 0)return"--yt-button-color:"+_.I1(f.textPrimary)+";"};
_.X.computeOverflowButtonStyle=function(f){if(this.data&&this.data.overflowButton&&f&&f.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.I1(f.textPrimary)+";--yt-spec-icon-active-other:"+_.I1(f.textPrimary)+";"};
_.X.computeBackgroundStyle=function(f){if(f&&this.data){var R="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.fL((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&(R+='background-image:url("'+u+'");')}f.backgroundColor!==void 0&&(R+="background-color:"+_.ML(f.backgroundColor)+";");return R}};
_.X.computeButton=function(){var f,R=Object.assign({},_.t((f=this.data)==null?void 0:f.showMoreButton,_.z9));if(this.modern&&R){R.style="STYLE_MONO_OUTLINE";var u;if(f=(u=this.currentColorPalette)==null?void 0:u.textPrimary)R.colorData={basicColorPaletteData:{foregroundTitleColor:f,borderColor:f}}}return R};
_.X.shouldShowBottomButton=function(f,R){return!(f==null?0:f.header)&&!(f==null||!f.primaryButton)&&R<3};
_.X.checkExpanded=function(f){this.isExpanded=f&&f.content?this.hiddenVideos.length===0:!0};
_.X.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.X.getLogoHeight=function(f){return this.logoWithPadding(f)?"26":"20"};
_.X.getLogoImageId=function(f){return this.logoWithPadding(f)?"logo-image-with-padding":"logo-image"};
_.X.computeHasSectionHeader=function(f){return!!f.header};
_.X.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var f;if((f=this.data.primaryButton)==null?0:f.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 R;((R=this.data.dismissButton)==null?0:R.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var u,O;((u=this.data)==null?0:(O=u.primaryButton)==null?0:O.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.X.setVisibleVideos=function(f){if(this.data&&this.data.content)if(this.data.content.length){var R=this.data.content.length;this.data.header?f?(this.visibleVideos=this.data.content.slice(0,Math.min(R,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.slimItemsPerRow),R)):(this.visibleVideos=this.data.content.slice(0,Math.min(R,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.elementsPerRow),R)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(R,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.elementsPerRow),R)):(this.visibleVideos=this.data.content.slice(0,Math.min(R,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.elementsPerRow-1),R))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.X.setHasMovieRenderer=function(){var f;if((f=this.data)!=null&&f.content){var R;this.hasMovieRenderer=!!_.t((R=this.data)==null?void 0:R.content[0],_.ZWl)}else this.hasMovieRenderer=!1};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
_.X.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var f=_.Z(this.hiddenMediaRenderers),R=f.next();!R.done;R=f.next())R.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(f=_.b(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&f.focus()}};
_.X.updateTitleSpec=function(){var f;(f=this.data)!=null&&f.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.X.logoWithPadding=function(f){var R,u,O;return(f=(R=this.getCurrentLogo(f,this.isDarkTheme))==null?void 0:(u=R.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&f%31===0?!0:!1};
_.X.onUpdateElementsPerRowAction=function(f,R,u){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f);u&&this.slimItemsPerRow!==u&&(this.slimItemsPerRow=u)};
wT.prototype.slimItemsPerRowChanged=wT.prototype.slimItemsPerRowChanged;wT.prototype.elementsPerRowChanged=wT.prototype.elementsPerRowChanged;wT.prototype.dataChanged=wT.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],wT.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],wT.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],wT.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wT.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],wT.prototype,"currentColorPalette",void 0);_.B([_.I(),_.S("design:type",Array)],wT.prototype,"visibleVideos",void 0);_.B([_.I(),_.S("design:type",Array)],wT.prototype,"hiddenVideos",void 0);
_.B([_.I(),_.S("design:type",Object)],wT.prototype,"primaryButton",void 0);_.B([_.I({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],wT.prototype,"elementsPerRow",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],wT.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],wT.prototype,"isExpanded",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],wT.prototype,"largeTitle",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],wT.prototype,"hasMovieRenderer",void 0);_.B([_.I(),_.S("design:type",Number)],wT.prototype,"slimItemsPerRow",void 0);_.B([_.I(),_.S("design:type",Boolean)],wT.prototype,"showLightVideoMetadata",void 0);_.B([_.I(),_.S("design:type",Boolean)],wT.prototype,"showDarkVideoMetadata",void 0);_.B([_.I(),_.S("design:type",Number)],wT.prototype,"videoMetadataColor",void 0);
_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],wT.prototype,"miniMode",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.S("design:type",Boolean)],wT.prototype,"isFirstFeedItem",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.S("design:type",Boolean)],wT.prototype,"hasSectionHeader",void 0);
_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],wT.prototype,"roundedContainer",void 0);_.B([_.F4("#visible-video-container ytd-rich-grid-media"),_.S("design:type",Array)],wT.prototype,"visibleMediaRenderers",void 0);_.B([_.F4("#hidden-video-container ytd-rich-grid-media"),_.S("design:type",Array)],wT.prototype,"hiddenMediaRenderers",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wT.prototype,"modern",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wT.prototype,"dataChanged",null);_.B([_.qM("elementsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wT.prototype,"elementsPerRowChanged",null);_.B([_.qM("slimItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wT.prototype,"slimItemsPerRowChanged",null);
wT=_.B([_.e({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],wT);
_.G(wT,"ytd-brand-video-shelf-renderer",function(){if(Y92!==void 0)return Y92;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Y92=f},{mode:1});var vWe;var mj=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(mj,_.U);_.X=mj.prototype;_.X.attached=function(){var f=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.onDarkModeToggledAction(f)};
_.X.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"}}}};
_.X.dataChanged=function(){this.requestElementsPerRow();var f,R;this.currentColorPalette=this.isDarkTheme?(f=this.data)==null?void 0:f.darkColorData:(R=this.data)==null?void 0:R.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.X.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.X.computeIsFirstFeedItem=function(f){return f};
_.X.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f);this.data&&(this.currentColorPalette=f?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(f),this.updateButtonPalette())};
_.X.shouldShowThumbnailInMetadata=function(f){return f<=1};
_.X.computeVideoMetadataColor=function(){if(this.data){var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.X.computeTitleStyle=function(f){var R;if((R=this.data)!=null&&R.title&&f&&f.textPrimary!==void 0)return"color:"+_.I1(f.textPrimary)+";"};
_.X.computeSubtitleStyle=function(f){var R;if((R=this.data)!=null&&R.subtitle&&f&&f.textSecondary!==void 0)return"color:"+_.I1(f.textSecondary)+";"};
_.X.computeOverflowButtonStyle=function(f){var R;if(this.data&&this.data.overflowButton&&(f==null?0:(R=f.dismissButtonColorData)==null?0:R.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.I1(f.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.I1(f.dismissButtonColorData.foregroundTitleColor)+";"};
_.X.computeBackgroundStyle=function(f){if(f&&this.data){var R="";f.backgroundColor!==void 0&&(R+="background-color:"+_.ML(f.backgroundColor)+";");return R}};
_.X.computeHasOverflowButton=function(f){return!!f.overflowButton};
_.X.updateButtonPalette=function(){if(this.data){var f;if((f=this.data.primaryButton)==null?0:f.buttonRenderer){var R;if((R=this.currentColorPalette)==null?0:R.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)})}}};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
_.X.updateTitleSpec=function(){var f;(f=this.data)!=null&&f.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")};
_.X.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
mj.prototype.elementsPerRowChanged=mj.prototype.elementsPerRowChanged;mj.prototype.dataChanged=mj.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],mj.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],mj.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],mj.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mj.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],mj.prototype,"currentColorPalette",void 0);_.B([_.I(),_.S("design:type",Object)],mj.prototype,"primaryButton",void 0);
_.B([_.I({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],mj.prototype,"elementsPerRow",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],mj.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],mj.prototype,"titleSize",void 0);_.B([_.I(),_.S("design:type",Number)],mj.prototype,"videoMetadataColor",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],mj.prototype,"miniMode",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.S("design:type",Boolean)],mj.prototype,"isFirstFeedItem",void 0);_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],mj.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.S("design:type",Boolean)],mj.prototype,"hasOverflowButton",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mj.prototype,"dataChanged",null);_.B([_.qM("elementsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mj.prototype,"elementsPerRowChanged",null);mj=_.B([_.e({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],mj);
_.G(mj,"ytd-brand-video-singleton-renderer",function(){if(vWe!==void 0)return vWe;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return vWe=f},{mode:_.c7("kevlar_poly_si_batch_j070")?1:2});var ixN;var r6h=_.nf(function(f){var R=f.data;return _.a(_.gR,{data:function(){return R().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(R().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 R().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"li"),RsK=_.nf(function(f){var R=f.metadataRow;
var u=f.delimiter;return _.a(_.EC,{each:function(){return R().textParts||[]},
keyBy:"INDEX"},function(O,c){return _.a(_.RS,null,_.a(_.YO,{text:O,noWrap:!0,userInput:!0}),_.a(f65,{delimiter:u,max:function(){return R().textParts.length},
index:c}))})},"mi"),f65=_.nf(function(f){var R=f.delimiter;
var u=f.max;var O=f.index;return _.a(_.Q,{cond:function(){return(R==null?void 0:R())&&u()-1>O()},
then:function(){return _.a("span",null,R)}})},"ni"),u9l=_.nf(function(f){var R=f.data;
f={};return _.a("yt-profile-page-header-information-view-model",{class:_.KL("profile-page-header-information-view-model-wiz",(f["profile-page-header-information-view-model-wiz--mobile"]=!1,f))},_.a(_.Q,{cond:function(){return R().onTap},
then:function(){return _.a(_.cd,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.H7(R().onTap)}},_.a(_.y5,{data:function(){return R().thumbnail}},{profilePageHeaderThumbnailViewModel:r6h}))},
else:function(){return _.a("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.a(_.y5,{data:function(){return R().thumbnail}},{profilePageHeaderThumbnailViewModel:r6h}))}}),_.a("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.a(_.Q,{cond:function(){return R().onTap},
then:function(){return _.a(_.y5,{data:function(){return R().title}},{profilePageHeaderTitleViewModel:function(u){var O=u.data;
return _.a(_.cd,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.H7(O().onTap)}},_.a(_.YO,{text:function(){return O().title}}))}})},
else:function(){return _.a(_.y5,{data:function(){return R().title}},{profilePageHeaderTitleViewModel:function(u){var O=u.data;
return _.a(_.YO,{text:function(){return O().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.a(_.y5,{data:function(){return R().metadata}},{profilePageHeaderMetadataViewModel:function(u){var O=u.data;
return _.a(_.Q,{cond:function(){return O().metadataRows},
then:function(c){return _.a("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.a(_.EC,{each:c,keyBy:"INDEX"},function(h,l){return _.a(_.RS,null,_.a(RsK,{metadataRow:h,delimiter:" \u2022 "}),_.a(f65,{delimiter:" \u2022 ",max:function(){return c().length},
index:l}))}))}})}})))},"oi");
u9l.idomCompat=!0;_.ii(u9l,"yt-profile-page-header-information-view-model",{props:{data:_.SG}});var Ql=function(){return _.U.apply(this,arguments)||this};
_.y(Ql,_.U);Ql.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ql.prototype,"data",void 0);Ql=_.B([_.e({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Ql);
_.G(Ql,"ytd-effect-pivot-header-view-model",function(){if(ixN!==void 0)return ixN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ixN=
f},{mode:1});var OwN;var WF=function(){return _.U.apply(this,arguments)||this};
_.y(WF,_.U);WF.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WF.prototype,"data",void 0);WF=_.B([_.e({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],WF);
_.G(WF,"ytd-source-pivot-header-renderer",function(){if(OwN!==void 0)return OwN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return OwN=f},{mode:1});_.czK=_.nf(function(f){var R=f.data;f=_.sW();_.xO(f,function(){return R().rendererContext});
var u=function(){var O;return _.oA((O=R())==null?void 0:O.rendererContext)};
return _.a("content-list-item-view-model",{el:f,class:"ytContentListItemViewModelHost",role:function(){return u()?"listitem":void 0},
tabindex:function(){return u()?0:void 0}},_.a("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.a("div",{class:"ytContentListItemViewModelImageContainer"},_.a(_.Q,{cond:function(){return R().image},
then:function(O){return _.a(_.gR,{data:O,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.a(_.y5,{data:function(){var O;
return(O=R())==null?void 0:O.avatar}},{avatarViewModel:_.NC})),_.a("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.a("div",{class:"ytContentListItemViewModelTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"ytContentListItemViewModelMetadata"},_.a(_.y5,{data:function(){return R().metadata}},{contentMetadataViewModel:function(O){return _.a(_.qKE,{data:O.data,
layout:1})}})))),_.a("div",{class:"ytContentListItemViewModelActionButton"},_.a(_.y5,{data:function(){var O;
return(O=R())==null?void 0:O.actionButton}},{buttonViewModel:_.TS,
toggleButtonViewModel:_.Lr})))},"pi");_.ii(_.nf(function(f){var R={},u={},O={},c={};return _.a("yt-card-view-model",{class:_.KL("ytCardViewModelHost",f.className,(R.ytCardViewModelOutline=function(){return f.data().cardStyle==="CARD_STYLE_OUTLINE"},R),(u.ytCardViewModelRaised=function(){return f.data().cardStyle==="CARD_STYLE_RAISED"||f.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},u),(O.ytCardViewModelTonal=function(){return f.data().cardStyle==="CARD_STYLE_TONAL"},O),(c.ytCardViewModelInverted=function(){return f.data().cardStyle===
"CARD_STYLE_INVERSE"},c))},_.a(_.y5,{data:function(){return f.data().background}},{cinematicContainerViewModel:function(h){return _.a(_.YMf,{data:h.data})}}),_.a("div",{class:"ytCardViewModelContentWrapper"},_.a(_.y5,{data:function(){return f.data().content}},{contentListItemViewModel:function(h){return _.a(_.czK,{data:h.data})}})),_.a(_.y5,{data:function(){return f.data().dismissAction}},{buttonViewModel:function(h){return _.a(_.TS,{data:h.data})}}))},"qi"),"yt-card-view-model",{props:{data:_.SG,
className:_.SG}});_.ii(_.nf(function(f){var R=function(){return _.t(f.data().flowRoot,J6N)};
_.bt(function(){var u=R(),O=function(){},c=function(){};
if(u){var h,l,K=(l=_.t((h=u.steps)==null?void 0:h[0],_.gDK))==null?void 0:l.stepId;tKz(u,K||"");O=y6t(u);c=db2(u)}_.jN(function(){O();O=function(){};
c();c=function(){}})});
return _.a("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.a(_.wxG,{contentId:function(){return f.data().contentId}},function(){return _.a("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.a(_.Q,{cond:R,
then:function(u){return _.a(_.I19,{data:u})}}))}))},"ri"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.SG}});_.ii(_.nf(function(){return _.a("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.a("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.a("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.a(_.CtS,null)),_.a(_.mTk,{data:{rows:1},isExploreHub:!0}))},"si"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.ii(_.nf(function(f){var R=f.data;var u=f.standardUnitMinWidth;f=_.sW();var O=_.Z((0,_.tzC)(R)),c=O.next().value,h=O.next().value,l=function(){var q,F=(q=c())==null?void 0:q.contents;return F==null||F.length===0},K=function(){h(Object.assign({},c(),{contents:[]}))};
_.fT(f,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var q=_.t(R().chipsShelf,T1t);if(q!=null&&q!=null&&q.autoselectChipOnVisible){var F,w,m=_.t(q==null?void 0:(F=q.contents)==null?void 0:F[(w=q.autoselectedChipIndex)!=null?w:0],_.Mi);m&&m.tapCommand&&_.Ux(m.tapCommand)}}});
return _.a("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:f},_.a(_.wxG,{contentId:function(){return R().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.a("div",null,_.a("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.a(_.y5,{data:function(){return R().header}},{sectionHeaderViewModel:function(q){return _.a(_.c3,{data:q.data,
disableHorizontalPadding:!0})}})),_.a("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.a(_.y5,{data:function(){return R().chipsShelf}},{chipsShelfViewModel:function(q){return _.a(_.Wsl,{data:q.data,
callback:K,enableSingleChipSelection:!0})}})),_.a("div",null,_.a(_.Q,{cond:l,
then:function(){return _.a("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.a(_.mTk,{data:{rows:1},isExploreHub:!0}))}}),_.a(_.y5,{data:function(){var q;
return(q=c())==null?void 0:q.contents}},{richShelfRenderer:function(q){return _.a(_.EBk,{data:q.data,
isInnerShelf:!0,standardUnitMinWidth:u})}})))}))},"ti"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.SG,
standardUnitMinWidth:_.SG}});var E_=function(){return _.U.apply(this,arguments)||this};
_.y(E_,_.U);
E_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
E_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.B([_.z(_.zH),_.S("design:type",Object)],E_.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],E_.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],E_.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Number)],E_.prototype,"standardUnitMinWidth",void 0);E_=_.B([_.e({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],E_);
_.G(E_,"ytd-rich-section-renderer",function(){if(VKN!==void 0)return VKN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return VKN=f},{mode:_.c7("kevlar_poly_si_batch_j029")?
1:2});_.ii(_.kPN,"yt-profile-identity-info-view-model",{props:{data:_.SG,hideDivider:_.SG}});_.ii(_.XAF,"yt-page-header-view-model",{props:{data:_.SG,noPadding:_.SG,enableBanner:_.SG,cinematicContainerTopbarOffset:_.SG,allowCinematicContainerOverflow:_.SG,displayAsSidebar:_.SG,displayAsPanel:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=function(){var c;return(c=R().numColumns)!=null?c:2},O=function(){return u()>1?3:2};
f={};return _.a("ytd-rich-grid-group",{class:_.KL("ytdRichGridGroupHost",(f.ytdRichGridGroupHostFirstColumn=function(){return R().colIndex===0},f)),
style:_.Qm({"--ytd-rich-grid-group-num-columns":u,"--ytd-rich-grid-items-per-group":O})},_.a("div",{class:"ytdRichGridGroupContents"},_.a(_.y5,{data:function(){var c;return(c=R().contents)==null?void 0:c.slice(0,O())}},{richItemRenderer:function(c){return _.a(_.QTi,{data:c.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ui"),"ytd-rich-grid-group",{props:{data:_.SG}});var tw=function(){var f=_.U.apply(this,arguments)||this;f.resizeOnObserverInit=!1;f.isInlinePreviewDisabled=_.E("web_disable_inline_preview");f.disableStickyFilterBar=!1;f.transparentBackgroundChipsBar=!1;f.hideChipsBar=!1;f.isWatchDefaultLayout=!0;f.continuationShowButton=!1;f.rowReducedHorizontalMargin=!1;f.useCompactList=!1;f.manualDownloadsPresent=!1;f.smartDownloadsPresent=!1;f.shouldRenderDownloadsBanner=!1;f.hasOptedIntoSmartDownloads=!1;f.elementsPerRow=4;f.typographyBump=!1;f.showGnomeContents=
!1;f.showExploreHubContents=!1;f.slimItemsPerRow=1;f.pageLoadingFromNavigation=!1;f.loggingRefactor=_.E("kevlar_rich_grid_logging_fix");f.resizeObserver=null;f.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"};f.rendererToTagNameMap=
new Map(Object.entries(f.contentMapping()).map(function(R){var u=_.Z(R);R=u.next().value;u=u.next().value;return[R,u.component]}));
f.insertedContent=new Map;return f};
_.y(tw,_.U);_.X=tw.prototype;_.X.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var f=_.Z(_.b(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),R=f.next();!R.done;R=f.next())R.value.useCompactList=this.useCompactList};
_.X.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var f=_.Z(_.b(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),R=f.next();!R.done;R=f.next())R=R.value,R.sizing=this.sizing,R.typographyBump=this.typographyBump};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.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]]"}}}};
_.X.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.ks(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.vJ(this.resizeObserved,_.RV("rich_grid_resize_delay_ms",50),this)};
_.X.detached=function(){var f;(f=this.resizeObserver)==null||f.disconnect();document.removeEventListener("yt-page-type-changed",_.ks(this,this.onPageChange))};
_.X.insertRichSection=function(f){var R=f.richItemTargetId;f=f.richSectionRendererToInsert;R&&f&&(this.insertedContent.set(R,f),this.reflowContent())};
_.X.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.X.computeIsInlinePreviewEnabled=function(f,R,u){return _.E("web_disable_inline_preview")?!1:!u&&_.MFK({miniplayerIsActive:f,miniplayerPlaybackState:R})};
_.X.computeSizing=function(){var f=_.XUP(this.data);if(f||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return f?this.useCompactList?"COMPACT":f:this.miniMode?"COMPACT":_.E("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.X.updateItemMinAndMaxWidth=function(){var f=_.RV("rich_grid_max_item_width",500);f>0&&_.ZO(this.hostElement,{"--ytd-rich-grid-item-max-width":f+"px"});var R;f=this.getRichItemMinWidth((R=this.hostElement)==null?void 0:R.clientWidth);f>0&&_.ZO(this.hostElement,{"--ytd-rich-grid-item-min-width":f+"px"})};
_.X.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.X.resizeObserved=function(){_.c_(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.X.navigateBackToHome=function(){_.E("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var f=_.vh().resolve(_.sz).isOnWatch(),R,u=((R=_.a1(location.pathname))==null?void 0:R.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(u)||f)&&this.gnomeContents&&_.E("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);f&&this.exploreHubContents&&_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.sP().dispatch(_.OP({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.X.onPageChange=function(){var f=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.E("disable_chip_select_on_nav")||_.c_(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.JA.addJob(function(){f.pageLoadingFromNavigation=!1;_.E("disable_chip_select_on_nav")&&_.E("h5_reset_cache_and_filter_before_update_masthead")&&f.resetCacheAndIsFilteredFeed();f.setMasthead();f.maybeSetBigYoodle();f.forceRefreshAndLog();f.terminateVideoPreview();_.E("web_hide_gnome_until_user_navigates_back_to_home")&&
(f.dataChanged(),_.su(f,function(){if(f.showGnomeContents){var R=Array.from(_.b(f.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(O){O=_.b(O).querySelector("ytd-rich-shelf-renderer");return!!O&&O.isGnomeShelf()});
if(R){R=R.offsetTop-f.contentsElement.offsetTop;var u=_.vh().resolve(_.sz).getCurrentPage();u&&u.getPageScrollingElement().scrollTo({top:R,behavior:"smooth"})}}}));
_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&(f.dataChanged(),_.su(f,function(){if(f.showExploreHubContents&&!_.E("web_explore_hub_no_scroll")){var R=Array.from(_.b(f.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(O){return!!O.querySelector("ytd-talk-to-recs-flow-renderer")});
if(R){R=R.offsetTop-f.contentsElement.offsetTop;var u=_.vh().resolve(_.sz).getCurrentPage();u&&u.getPageScrollingElement().scrollTo({top:R,behavior:"smooth"})}}}))},8)):((_.E("web_hide_gnome_until_user_navigates_back_to_home")||_.E("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.X.dataChanged=function(){var f=this,R=_.RV("web_rich_grid_row_margin",0);R>0&&_.ZO(this.hostElement,{"--ytd-rich-grid-row-margin":R+"px"});_.c_(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.su(this,function(){f.updateRichItemGridPositions();f.contentsElement&&_.ZO(f.hostElement,{"--ytd-rich-grid-content-offset-top":f.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.X.initResizeObserver=function(){var f=this;if(window.ResizeObserver){var R;(R=this.resizeObserver)==null||R.disconnect();var u=!1;this.resizeObserver=new ResizeObserver(function(){if(u){var O;(O=f.resizeObserver)==null||O.disconnect();var c;(c=f.throttledOnResize)==null||c.fire();requestAnimationFrame(function(){var l;(l=f.throttledOnResize)==null||l.fire();f.initResizeObserver()})}else if(u=!0,f.resizeOnObserverInit){var h;
(h=f.throttledOnResize)==null||h.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.X.contentLengthChanged=function(){if(_.E("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.c_(this.hostElement,"ytd-rich-item-index-update-action")};
_.X.updateElementsPerRow=function(){_.c_(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.OP({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.OP({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.X.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.X.onRichShelfRendererCollapse=function(f){if(this.shownItems){var R=f.detail;f=this.shownItems.findIndex(function(O){var c,h;return((h=_.t(O==null?void 0:(c=O.richSectionRenderer)==null?void 0:c.content,_.zvC))==null?void 0:h.trackingParams)===R});
var u=f+1;f<0||u>=this.contentsElement.children.length||!this.shownItems[u].richItemRenderer||this.contentsElement.children[u].scrollIntoView({behavior:"smooth",block:"start"})}};
_.X.onSoftReloadPage=function(){this.scrollUpToTop()};
_.X.handleRerenderDownloadsData=function(){_.E("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.X.handlePlaylistRemoveVideosAction=function(f){var R;if(((R=_.t(f,_.vjE))==null?0:R.setVideoIds)&&this.data&&this.data.contents){f=_.t(f,_.vjE).setVideoIds;for(R=this.data.contents.length-1;R>=0;){var u=_.t(this.data.contents[R],_.LN);(u=u&&_.t(u.content,_.Jt))&&u.setVideoId&&f.includes(u.setVideoId)&&this.splice("data.contents",R,1);R--}this.updateIndices()}};
_.X.updateIndices=function(){if(this.data&&this.data.contents)for(var f=0;f<this.data.contents.length;f++)this.set("data.contents."+f+".richItemRenderer.index",_.S8(String(f+1)))};
_.X.hasTopRowInlinePlayableVideoWithEndorsement=function(f){var R;return!((R=f.slice(0,this.getItemsPerRow()))==null||!R.some(function(u){var O;u=_.t(u==null?void 0:(O=u.richItemRenderer)==null?void 0:O.content,_.HY);var c;return(u==null?void 0:u.inlinePlaybackEndpoint)&&(u==null?void 0:(c=u.thumbnailOverlays)==null?void 0:c.some(function(h){return h.thumbnailOverlayEndorsementRenderer}))}))};
_.X.refreshGridLayoutNew=function(f,R,u,O){var c=O.postsPerRow;var h=O.slimItemsPerRow;var l=O.gameCardsPerRow;O=O.miniGameCardsPerRow;var K;if((K=this.data)==null||!K.contents||!this.containerWidth)return!1;var q;if((q=this.data.responsiveContainerConfiguration)==null?0:q.responsiveSize){var F=_.Boh(this.data.responsiveContainerConfiguration,this.containerWidth),w;K=_.sp(Object.assign({},F,{standardUnitMinWidth:(w=this.data)==null?void 0:w.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&F.isCompactList)}else K=_.sp({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(F=this.data)==null?void 0:F.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=K.typographyBump;w=!1;if(f||this.elementsPerRow!==K.numItems||this.postsPerRow!==c||this.slimItemsPerRow!==h||this.gameCardsPerRow!==
l||this.miniGameCardsPerRow!==O||this.gutter!==K.gutter)w=this.elementsPerRow!==K.numItems,this.elementsPerRow=K.numItems,this.postsPerRow=c,this.slimItemsPerRow=h,this.gameCardsPerRow=l,this.miniGameCardsPerRow=O,this.gutter=K.gutter,this.itemWidth=K.itemWidth,this.reflowContent(R),_.ZO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":K.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(u);this.ytdReduxBehavior.dispatch(_.OP({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:K.maxContainerWidth}));return w};
_.X.refreshGridLayout=function(f,R){var u,O=(u=this.hostElement)==null?void 0:u.clientWidth;this.containerWidth=this.adjustRichGridWidth(O,!0);var c;if((c=this.data)==null||!c.contents||!this.containerWidth)return f&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.E("rg_pending_reflow_ks")&&(f=!0,this.pendingForceReflow=!1);u=this.getRichItemMinWidth(O);var h=this.isShortsPanel?146:194,l=this.getMiniGameCardMinWidth(),K=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
O=u=this.calcElementsPerRow(u,K);(c=u<=3&&this.miniModeAllowed())&&(u=this.calcElementsPerRow(240,4));var q=this.calcMaxSlimElementsPerRow(u,K,this.isDefaultGrid);K=this.calcElementsPerRow(h,q);var F=this.calcElementsPerRow(this.isCompactGrid?h:154,q);h=this.calcElementsPerRow(this.isCompactGrid?h:l,q);l=!1;if(this.sizing)return this.refreshGridLayoutNew(f,R,c,{postsPerRow:O,slimItemsPerRow:K,gameCardsPerRow:F,miniGameCardsPerRow:h});if(f||this.elementsPerRow!==u||this.postsPerRow!==O||this.slimItemsPerRow!==
K||this.gameCardsPerRow!==F||this.miniGameCardsPerRow!==h)l=this.elementsPerRow!==u,this.elementsPerRow=u,this.postsPerRow=O,this.slimItemsPerRow=K,this.gameCardsPerRow=F,this.miniGameCardsPerRow=h,this.reflowContent(R),this.updateElementsPerRow(),_.ZO(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)&&_.ZO(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(c);_.c_(this.hostElement,"yt-rich-grid-layout-refreshed");return l};
_.X.getRichItemMinWidth=function(f){var R=_.RV("rich_grid_min_item_width",310);if(!_.E("kevlar_disable_min_width_override")){var u,O;R=(O=(u=this.data)==null?void 0:u.minItemWidth)!=null?O:R}return R+_.i4t(f)};
_.X.calcMaxSlimElementsPerRow=function(f,R,u){return(u===void 0?0:u)?f===1?2:f%2===0?_.E("web_shorts_2_by_3_reduce_items_per_row")&&f>=4?f/2*3-1:f/2*3:_.E("web_shorts_2_by_3_reduce_items_per_row")&&f>=3?f+1:f+2:R*2};
_.X.adjustRichGridWidth=function(f,R){var u=_.E("disable_rich_grid_guide_compensation");if(!this.isWatch&&!u){u=_.vh().resolve(_.Y8(_.PX));var O=u==null?void 0:u.guideElement;if(!(!u||u.getData()||O!=null&&O.opened||u.getMiniGuideVisible()))if(u.canFitPersistentGuide(f)&&u.getGuideExpandsAutomatically()){var c,h,l=Number((c=window.getComputedStyle(this.hostElement))==null?void 0:(h=c.getPropertyValue("--app-drawer-width"))==null?void 0:h.replace("px",""));f-=l||0}else if(u.canFitMiniGuide(f)){var K;
c=Number((l=window.getComputedStyle(this.hostElement))==null?void 0:(K=l.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:K.replace("px",""));f-=c||0}}f>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(f-=R?32:48));return f};
_.X.calcElementsPerRow=function(f,R){var u=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),O=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((u+O)/(f+O))||1,R)};
_.X.reflowContent=function(f){var R=this;if(!this.isReflowing){this.isReflowing=!0;var u,O,c=!!((u=this.data)==null?0:(O=u.contents)==null?0:O.some(function(C){return _.t(C,_.OX)}));
u=this.getItemsPerRow();var h;O=(h=this.data)==null?void 0:h.reflowOptions;f&&(_.JH("rgr_s"),_.su(this,function(){_.JH("rgr_nrf")}));
f={};(h=_.b(this.hostElement).querySelector("#contents"))&&(f={contentElement:h,rendererToTagNameMap:this.rendererToTagNameMap});h=(h=this.data.contents)?h.slice():[];var l=(_.E("web_hide_gnome_behind_feed_filter_chip")||_.E("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,K=_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,q=-1,F=-1;if(this.isHomePage&&K){for(K=0;K<h.length;K++){var w=void 0,m=void 0;_.t((w=h[K])==null?void 0:
(m=w.richSectionRenderer)==null?void 0:m.content,DbS)&&(F=K)}F>-1&&(this.exploreHubContents=h.splice(F,1))}if(this.isHomePage&&l){for(F=0;F<h.length;F++)m=w=void 0,(K=_.t((w=h[F])==null?void 0:(m=w.richSectionRenderer)==null?void 0:m.content,_.zvC))&&l&&(m=w=void 0,K=_.t((w=K)==null?void 0:(m=w.contents)==null?void 0:m[0],_.LN),w=void 0,_.t((w=K)==null?void 0:w.content,_.Hpf)&&(q=F));q>-1&&(this.gnomeContents=h.splice(q,1))}var W=mbz(h,u,c,O,this.getRichGridStyle(),f,this.insertedContent);c=function(){R.shownItems=
W;R.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(W),_.su(this,c)):c()}};
_.X.getFirstRowItems=function(f){for(var R=[],u=0;u<f.length;u++){var O=void 0,c=void 0,h=void 0,l=void 0,K=void 0,q=void 0;if(((O=f[u])==null?void 0:(c=O.richItemRenderer)==null?void 0:c.rowIndex)===0||((h=f[u])==null?void 0:(l=h.richGroupRenderer)==null?void 0:l.rowIndex)===0||((K=f[u])==null?void 0:(q=K.richSectionRenderer)==null?void 0:q.rowIndex)===0)R.push(f[u]);else break}return R};
_.X.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.X.handleChipCloudChipSelectAction=function(f,R){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.E("web_hide_gnome_behind_feed_filter_chip")&&(R?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.X.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.E("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.X.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.E("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.X.terminateVideoPreview=function(){_.c_(this.hostElement,"yt-terminate-video-preview-action")};
_.X.updateRichItemGridPositions=function(){var f={gridData:{gridColumnCount:this.elementsPerRow}},R;if((R=this.data)==null?0:R.trackingParams)this.loggingRefactor?_.wR().stateChanged(this.data.trackingParams,f):(R=_.z4())&&_.gA(R,_.t4(this.data.trackingParams),f);_.c_(this.hostElement,"ytd-rich-item-index-update-action")};
_.X.miniModeAllowed=function(){return _.E("disable_channels_mini_mode")?!1:this.isChannelPage};
_.X.getMiniGameCardMinWidth=function(){return 154};
_.X.updateMiniMode=function(f){this.miniMode=this.miniModeAllowed()&&f;this.ytdReduxBehavior.dispatch(_.OP({type:"SET_RICH_GRID_MINI_MODE",payload:f}))};
_.X.isCurrentPage=function(){return location.pathname===this.pagePath};
_.X.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var f=_.vh().resolve(_.sz).getCurrentPage();f&&f.setScrollTop(0)}};
_.X.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.X.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.X.maybeSetBigYoodle=function(){var f,R=(f=this.data)==null?void 0:f.bigYoodle;this.bigYoodleData!==R&&(this.bigYoodleData=R)};
_.X.setMasthead=function(){var f;((f=this.data)==null?0:f.masthead)?this.mastheadData=this.data.masthead:_.E("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.X.getRichGridStyle=function(){var f,R;return(R=(f=this.data)==null?void 0:f.style)!=null?R:"RICH_GRID_STYLE_UNKNOWN"};
_.X.onIsShortsGridChange=function(){var f=this.ytdReduxBehavior,R=f.dispatch,u=this.getRichGridStyle();R.call(f,_.OP({type:"SET_RICH_GRID_STYLE",payload:u}))};
_.Vy.Object.defineProperties(tw.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var f=_.vh().resolve(_.sz).getCurrentPage(),R,u,O;return(((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_audio_pivot"||_.E("web_enable_channel_pivot_panel")&&((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_channel_pivot"||_.E("web_enable_effect_pivot_panel")&&((O=this.data)==null?void 0:O.targetId)==="browse-feedFEsfv_effect_pivot")&&(f==null?void 0:f.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.E("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 f;return!((f=this.data)==null?0:f.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.vh().resolve(_.sz).getCurrentPage())==null?void 0:f.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.vh().resolve(_.sz).getCurrentPage())==null?void 0:f.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var f;return this.hideChipsBar||(((f=this.data)==null?void 0:f.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.E("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="watch-next-feed"&&!_.E("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?0:f.enableContentSpecificAspectRatio)||((R=this.data)==null?0:(u=R.responsiveContainerConfiguration)==null?0:u.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.RV("web_continuation_handler_margin",0):0}}});
tw.prototype.onIsShortsGridChange=tw.prototype.onIsShortsGridChange;tw.prototype.onReloadContinuationFinish=tw.prototype.onReloadContinuationFinish;tw.prototype.reflowContent=tw.prototype.reflowContent;tw.prototype.handleRerenderDownloadsData=tw.prototype.handleRerenderDownloadsData;tw.prototype.onRichShelfRendererCollapse=tw.prototype.onRichShelfRendererCollapse;tw.prototype.onRequestElementsPerRow=tw.prototype.onRequestElementsPerRow;tw.prototype.contentLengthChanged=tw.prototype.contentLengthChanged;
tw.prototype.dataChanged=tw.prototype.dataChanged;tw.prototype.onSizingChange=tw.prototype.onSizingChange;tw.prototype.onUseCompactListChange=tw.prototype.onUseCompactListChange;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],tw.prototype,"ironResizableBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],tw.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],tw.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],tw.prototype,"componentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],tw.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tw.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],tw.prototype,"miniMode",void 0);_.B([_.I({value:[]}),_.S("design:type",Array)],tw.prototype,"shownItems",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],tw.prototype,"isReflowing",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],tw.prototype,"isFilteredFeed",void 0);_.B([_.I({selector:_.qd7}),_.S("design:type",Boolean)],tw.prototype,"guideIsExpanded",void 0);
_.B([_.I({selectorArgs:["entitySelectorType"],selector:function(f,R){if(_.E("kevlar_modern_downloads_page")&&R&&R!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(R){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var u=f.entities;R=_.Nq(u);var O=_.Lg(u),c=_.DiB(f),h=_.jYD(f);f=_.Jt2(f);var l=_.ONt(u),K=_.EP(R);u=_.b$(u);return _.HX5(R,O,l,c,h,K,u,f);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return R=_.Nq(f.entities),_.Ms7(R);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return R=
_.rLe(f.entities),_.PJl(R);default:_.Ih(new _.ts("Error: entitySelectorType defined but not matched in selector.",f,R))}}}),
_.S("design:type",Object)],tw.prototype,"entityDrivenRichGridData",void 0);_.B([_.I(),_.S("design:type",Object)],tw.prototype,"resizeOnObserverInit",void 0);_.B([_.I(),_.S("design:type",Object)],tw.prototype,"bigYoodleData",void 0);_.B([_.I(),_.S("design:type",Object)],tw.prototype,"mastheadData",void 0);_.B([_.I(),_.S("design:type",Boolean)],tw.prototype,"isInlinePreviewDisabled",void 0);_.B([_.I(),_.S("design:type",Object)],tw.prototype,"disableStickyFilterBar",void 0);
_.B([_.I(),_.S("design:type",Object)],tw.prototype,"transparentBackgroundChipsBar",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tw.prototype,"hideChipsBar",void 0);_.B([_.I(),_.S("design:type",Object)],tw.prototype,"isWatchDefaultLayout",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tw.prototype,"continuationShowButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tw.prototype,"rowReducedHorizontalMargin",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tw.prototype,"useCompactList",void 0);_.B([_.I({selector:function(f){return _.Lg(f.entities).length>0}}),
_.S("design:type",Object)],tw.prototype,"manualDownloadsPresent",void 0);_.B([_.I({selector:function(f){return _.Nq(f.entities).length>0}}),
_.S("design:type",Object)],tw.prototype,"smartDownloadsPresent",void 0);_.B([_.I({selector:_.jYD}),_.S("design:type",Object)],tw.prototype,"shouldRenderDownloadsBanner",void 0);_.B([_.I({selector:_.DiB}),_.S("design:type",Object)],tw.prototype,"hasOptedIntoSmartDownloads",void 0);_.B([_.qM("useCompactList"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"onUseCompactListChange",null);
_.B([_.qM("sizing","typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"onSizingChange",null);_.B([_.I({selector:_.miD}),_.S("design:type",Number)],tw.prototype,"miniplayerPlaybackState",void 0);_.B([_.I({selector:_.Jh}),_.S("design:type",Boolean)],tw.prototype,"miniplayerIsActive",void 0);
_.B([_.I({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.S("design:type",Boolean)],tw.prototype,"isInlinePreviewEnabled",void 0);_.B([_.I({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.S("design:type",String)],tw.prototype,"sizing",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],tw.prototype,"elementsPerRow",void 0);
_.B([_.I(),_.S("design:type",Object)],tw.prototype,"typographyBump",void 0);_.B([_.I(),_.S("design:type",Number)],tw.prototype,"itemWidth",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],tw.prototype,"headerElement",void 0);_.B([_.a4("#contents"),_.S("design:type",HTMLElement)],tw.prototype,"contentsElement",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"dataChanged",null);
_.B([_.QR("data.contents.length"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"contentLengthChanged",null);_.B([_.Kf("yt-request-elements-per-row"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"onRequestElementsPerRow",null);
_.B([_.Kf("yt-rich-shelf-renderer-collapse"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],tw.prototype,"onRichShelfRendererCollapse",null);_.B([_.QR("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"handleRerenderDownloadsData",null);
_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],tw.prototype,"entitySelectorType",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isSub",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isWatch",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isShortsPanel",null);_.B([_.I({reflectToAttribute:!0}),_.T("isWatch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"reducedTopMargin",null);_.B([_.I({reflectToAttribute:!0}),_.T("data","isWatch","isWatchDefaultLayout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"noTopMargin",null);
_.B([_.I({reflectToAttribute:!0}),_.T("isInlinePreviewEnabled","shownItems"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"topRowEndorsement",null);_.B([_.T("data.header"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"hideHeader",null);_.B([_.Kf("yt-rich-grid-reflow"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean]),_.S("design:returntype")],tw.prototype,"reflowContent",null);
_.B([_.Kf("yt-reload-continuation-finish"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"onReloadContinuationFinish",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isSlimGrid",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isShortsGrid",null);
_.B([_.T("data","isSlimGrid","isShortsGrid"),_.I(),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"noRichItemGutterMargins",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isShortsGridSlim",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isCompactGrid",null);
_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"isDefaultGrid",null);_.B([_.T("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"hideChipsBarOnHome",null);_.B([_.T("data.targetId"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"hideChipsBarOnWatch",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tw.prototype,"onIsShortsGridChange",null);_.B([_.T("data.enableContentSpecificAspectRatio"),_.I(),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tw.prototype,"force16By9ThumbnailAspectRatio",null);_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],tw.prototype,"continuationTriggerOffset",null);tw=_.B([_.e({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],tw);
_.G(tw,"ytd-rich-grid-renderer",function(){if(gWm!==void 0)return gWm;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return gWm=f},{mode:2});var XS5=_.nf(function(f){var R=f.thumbsUp;f=f.thumbsDown;var u=_.Z(_.qK(!1,void 0,"OxPsH")),O=u.next().value,c=u.next().value;u=_.Z(_.qK(!1,void 0,"V5vWne"));var h=u.next().value,l=u.next().value;return _.a("div",{class:"ytwThumbsUpDownThumbs"},_.a(_.Lr,{data:R,onToggle:function(K){c(K);h()&&l(!1)},
buttonShapeOverrides:function(){return{toggled:O()}}}),_.a(_.Lr,{data:f,
onToggle:function(K){l(K);O()&&c(!1)},
buttonShapeOverrides:function(){return{toggled:h()}}}))},"vi");
XS5.idomCompat=!0;var ZwX=_.nf(function(f){var R=function(){return f.data().pendingStateEntityKey||""},u=_.Ax(_.N1X,R),O=function(){var c;
if(!(c=f.disabled())){var h;c=!((h=u())==null||!h.isPendingResponse)}return c};
return _.a("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.a(_.EC,{each:function(){return f.data().chipData||[]},
keyBy:"REFERENCE"},function(c){return _.a(hsh,{data:c,disabled:O,pendingStateKey:R,onError:f.onError})}))},"wi"),hsh=_.nf(function(f){var R=_.sW(),u=_.Z(_.qK(!0,void 0,"HBREAe")),O=u.next().value,c=u.next().value,h=function(){return f.data().text.content},l=_.Ff(function(K){var q,F,w,m,W,C,d,p;
return _.k(function(J){switch(J.nextAddress){case 1:K.stopPropagation();if(f.disabled())return J.return();F=String(Math.floor(((q=_.Xk())==null?void 0:q.getCurrentTime())||0)*1E3);w="youchat-"+Date.now();m=function(){_.IF(f.data().onClick||{});var M={continuationCommand:{token:f.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},P={inputComposerFormData:{clientMessageId:w,playerOffsetMs:F}};return new Promise(function(g,x){_.IF(M,{form:{formData:P},commandController:{onSuccess:function(fh,
V){g(V)},
onServerError:function(fh,V){x(V.error)}}})})};
W=_.LEN(f.pendingStateKey());W(!0);_.q9e("#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");c(!1);_.cl(J,2);return _.A(J,m(),4);case 4:_.Bf(J,3);break;case 2:C=_.ku(J),(p=(d=f).onError)==null||p.call(d,C);case 3:W(!1),_.KG(J)}})});
return _.a(_.Q,{cond:O,then:function(){return _.a("div",{class:"ytwYouChatChipsDataChipWrapper"},_.a("button",{el:R,class:"ytwYouChatChipsDataChip","data-disabled":f.disabled,"on:click":l,tabindex:0},h))}})},"xi");var l6w=_.nf(function(f){var R=f.data;return _.a("yt-conversation-resource-view-model",{class:_.KL("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.a(_.y5,{data:function(){var u,O;return((u=R().conversationResourceData)==null?void 0:(O=u.learningGuideData)==null?void 0:O.sections)||[]}},{expandableMetadataViewModel:function(u){return _.a(_.xlF,{data:u.data})}}))},"yi");
l6w.idomCompat=!0;var kFh=_.nf(function(f){var R=function(){var P;return(P=f.data().text)==null?void 0:P.content},u=function(){var P,g;
return(P=f.data().webData)==null?void 0:(g=P.textResult)==null?void 0:g.content},O=_.vh().resolve(_.SQ),c=_.ZR(),h=function(){return f.data().chatResponseStyle},l=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:f.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},K=function(){var P;
return f.data().webData||((P=f.data().text)==null?void 0:P.content)||f.data().videoResultsData||f.data().conversationResourceViewModel||f.data().quiz},q=function(){var P;
return(P=f.data().videoResultsData)==null?void 0:P.videoShelf},F=function(){var P;
return _.t(((P=f.data().videoResultsData)==null?void 0:P.videoShelf)||{},IGh)},w=function(){var P;
return(P=f.data().webData)==null?void 0:P.sourcesShelf},m=function(){var P;
return _.t(((P=f.data().webData)==null?void 0:P.sourcesShelf)||{},IGh)},W=function(){return _.t(f.data().conversationResourceViewModel||{},P62)},C=function(){return _.t(f.data().quiz||{},z3m)},d=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:f.data().thumbsDownViewModel&&f.data().thumbsUpViewModel},p=function(){return _.t(f.data().thumbsUpViewModel,_.Np)},J=function(){return _.t(f.data().thumbsDownViewModel,_.Np)};
_.NW(function(){requestAnimationFrame(function(){var P;(P=f.shouldAnimateIcon)!=null&&P.call(f)&&bx2(c.lottieEl)})});
var M={};return _.a("you-chat-item-view-model",{class:_.KL("ytwYouChatItemViewModelYouChatItemViewModel",(M.ytwYouChatItemViewModelHostNoPadding=function(){return!1},M)),
"data-target-id":function(){return f.data().id||""}},_.a(_.Q,{cond:K,
then:function(){var P={};return _.a("div",{"aria-hidden":"true"},_.a(_.qI,{className:_.KL("ytwYouChatItemViewModelIcon",(P.ytwYouChatItemViewModelRtl=O==="rtl",P.ytwYouChatItemViewModelHidden=function(){return!(f.data().hideIcon||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:K())},P)),
animationName:"YOUCHAT_ICON",data:l,animationRef:c}))}}),_.a(_.Q,{cond:K,
then:function(){var P={};return _.a("div",{class:_.KL("ytwYouChatItemViewModelHost",(P.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},P.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},P.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},P)),
role:"alert"},_.a(_.Q,{cond:R,then:function(g){return _.a(_.Jv,{text:g})}}),_.a(_.Q,{cond:u,
then:function(g){return _.a(_.Jv,{text:g})}}),_.a(_.Q,{cond:q,
then:function(){return _.a("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.a(_.jL,{data:F,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.a(_.Q,{cond:w,
then:function(){return _.a("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.a(_.jL,{data:m,hasPeek:!0,disableArrows:!1}))}}),_.a(_.Q,{cond:W,
then:function(){return _.a(l6w,{data:W})}}),_.a(_.Q,{cond:C,
then:function(){return _.a(_.BDA,{data:C})}}),_.a(_.Q,{cond:d,
then:function(){return _.a(XS5,{thumbsUp:p,thumbsDown:J})}}))}}),_.a(_.Q,{cond:function(){return f.data().chipsData},
then:function(P){return _.a(ZwX,{data:P,disabled:f.pending,onError:f.onError})}}))},"zi");
kFh.idomCompat={callbacks:{onError:!0,onSend:!0}};var KKm=_.nf(function(f){var R=function(){return f.data().choiceSelectedText};
return _.a("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.a(_.Q,{cond:R,then:function(){return _.a("div",{class:"ytYouChatUserTurnChoiceSelected"},_.a(_.YO,{text:R}))}}),_.a("div",{class:"ytYouChatUserTurnUserMessage"},function(){return f.data().text}))},"Ai");var qom=_.nf(function(f){var R=_.Z((0,_.dTf)(f.data)).next().value;return _.a("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return f.data().targetId||""}},_.a(_.y5,{data:function(){return f.data().header}},{chipBarViewModel:_.KsI}),_.a(_.y5,{data:function(){return R().contents}},{accordionViewModel:_.SMl,
alertBannerViewModel:_.QHi,chatLoadingViewModel:_.y15,chatUserTurnViewModel:KKm,learningJourneyLoaderViewModel:_.Grk,lockupViewModel:function(u){return _.a(_.RE,{data:u.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:f.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(u){return _.a(kFh,{data:u.data,pending:!1})}}))},"Bi");_.ii(_.nf(function(f){var R=_.Z((0,_.dTf)(f.data)).next().value,u=_.sW(),O=_.Z(_.qK(void 0,void 0,"rQpPgc")),c=O.next().value,h=O.next().value,l=function(){var K;return _.t((K=f.data().sectionListLayoutConfiguration)==null?void 0:K.layoutConfiguration,HxN)};
_.bt(function(){var K,q=(K=u.value)==null?void 0:K.clientWidth;if(l()){K=l();var F=K.responsiveSize;q=q<528?"CONTAINER_SIZE_NARROW":q<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var w=_.Z(K.responsiveMap||[]);for(var m=w.next();!m.done;m=w.next())if(m=m.value,m.containerSize===q){w=m.containerType;break b}w=void 0}if(w&&F){b:{if(w==="CONTAINER_TYPE_VERTICAL_LIST")if(F==="RESPONSIVE_SIZE_STANDARD"){if(q!=="CONTAINER_SIZE_NARROW"){m="50%";break b}}else{m=q==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}m=void 0}K={responsiveSize:F,containerSize:q,containerType:w,force16By9ThumbnailAspectRatio:!K.enableContentSpecificAspectRatio,contentPreviewWidth:m,fullbleed:(w==="CONTAINER_TYPE_VERTICAL_LIST"||w==="CONTAINER_TYPE_GRID")&&q==="CONTAINER_SIZE_NARROW"&&!1}}else K=void 0}else K=void 0;h(K)});
return _.a("yt-section-list-renderer",{class:_.KL("ytSectionListRendererHost",f.className),el:u,"data-target-id":function(){return f.data().targetId||""}},_.a(_.y5,{data:function(){return R().contents}},{itemSectionRenderer:function(K){return _.a(qom,{data:K.data,
containerLayoutConfig:c})}}))},"Ci"),"yt-section-list-renderer",{props:{data:_.SG,
className:_.v7}});var Az2;var a6h;var C$=function(){return _.U.apply(this,arguments)||this};
_.y(C$,_.U);_.B([_.I(),_.S("design:type",Object)],C$.prototype,"data",void 0);C$=_.B([_.DO({is:"yt-alert-renderer",disableElementRegistration:!0})],C$);
_.G(C$,"yt-alert-renderer",function(){if(a6h===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Az2===void 0&&(Az2=document.createElement("template"));var O=Az2;u.call(R,O.content.cloneNode(!0),f.content.firstChild);a6h=f}f=a6h;return f},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.$el=function(f,R){var u,O;R=R===void 0?{}:R;var c,h,l,K,q,F,w,m,W,C,d,p;return _.k(function(J){switch(J.nextAddress){case 1:c=R;h=c.shouldWrap===void 0?!0:c.shouldWrap;l=c.skipTransitionTimeoutMs===void 0?300:c.skipTransitionTimeoutMs;K=c.beforeTransition;q=c.afterTransition;if(!h||!document.startViewTransition||document.visibilityState==="hidden")return J.return(f());u=window.innerWidth;O=window.innerHeight;F=!1;(w=K)==null||w();_.cl(J,2);m=document.startViewTransition(f);W=setTimeout(function(){m.skipTransition();
F=!0},l);
return _.A(J,m.ready,4);case 4:return clearTimeout(W),_.A(J,m.finished,5);case 5:clearTimeout(W);(C=q)==null||C();_.Bf(J,0);break;case 2:d=_.ku(J),(p=q)==null||p(),d&&!F&&document.visibilityState!=="hidden"&&u===window.innerWidth&&O===window.innerHeight&&_.TL(d),_.KG(J)}})};
_.bM=function(){for(var f=Array(36),R=0,u,O=0;O<36;O++)O==8||O==13||O==18||O==23?f[O]="-":O==14?f[O]="4":(R<=2&&(R=33554432+Math.random()*16777216|0),u=R&15,R>>=4,f[O]=_.YUA[O==19?u&3|8:u]);return f.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var g_5=_.Sg(['<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>']),
s8N=_.U1t(g_5);s8N.setAttribute("style","display: none;");document.head.appendChild(s8N.content);_.pw=_.t0P(function(f){var R=_.mD("DIV");f&&(R.className=f);R.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";f=_.mD("DIV");_.Vtt(f,"200px","200px");R.appendChild(f);document.body.appendChild(R);f=R.offsetWidth-R.clientWidth;_.Q1(R);return f});var n_S;var V55;var jS=function(){var f=_.U.apply(this,arguments)||this;f.icon=null;return f};
_.y(jS,_.U);jS.prototype.dismiss=function(){_.ul(this.hostElement,"yt-live-chat-error-message-dismiss")};
jS.prototype.computeIcon=function(f){return f&&f.iconType?"yt-icons:"+f.iconType.toLowerCase():"yt-icons:close"};
_.B([_.I(),_.S("design:type",Object)],jS.prototype,"data",void 0);_.B([_.I({computed:"computeIcon(data.icon)"}),_.S("design:type",Object)],jS.prototype,"icon",void 0);jS=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],jS);
_.G(jS,"yt-live-chat-error-message-renderer",function(){if(V55===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;n_S===void 0&&(n_S=document.createElement("template"));var O=n_S;u.call(R,O.content.cloneNode(!0),f.content.firstChild);V55=f}f=V55;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var wEz,m0z,Qlh,W7l,Now,L79,bXm,pEw,jlm,by,D0N,JWa,p7,z$2,To9,HXm,Iyh,Msw,PJz,U0t,e$K,GVa,Bom,o9S,x0w,S5m,$0X,g99,slm,n9h,Vsw,Y5t,j1,v9m,iX2,rW2,uYK,OKm,c7N,XkX,hE2,ZKt,f_K,RE9,kuK,KrX,q4N,A7K,a_S,l_t,wkm;wEz=function(f,R){return _.kZ(f.entities,"timedMarkersListSyncEntity",R)};
m0z=function(f,R){return _.kZ(f.entities,"liveReactionsDataEntity",R)};
Qlh=function(f,R){f=_.kZ(f.entities,"booleanEntity",R);return!(!f||!f.value)};
W7l=function(f,R){var u=_.z4();u&&f&&_.ea(u,_.t4(f),R)};
_.E9X=function(){_.E("web_watch_log_theater_mode")&&_.x3q("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.tsz=function(f,R,u){if(!f.includes("START_TIME_PLACEHOLDER")||!f.includes("END_TIME_PLACEHOLDER"))return f;var O=new Date(0),c=new Date(0);O.setUTCMilliseconds(R);c.setUTCMilliseconds(u);return f.replace("START_TIME_PLACEHOLDER",_.Ge(O,7)).replace("END_TIME_PLACEHOLDER",_.Ge(c,7))};
_.CJ9=function(f){return f.watch.isWatchActive};
_.yWz=function(f){return _.IA(f)||_.Mp(f)||_.sc2(f)};
_.d0X=function(f){return!_.yWz(f)};
_.L7=function(f){return f.watch.watchScrollTop};
Now=function(f){return f.watch.isLiveChatCollapsed};
L79=function(f){return f.watch.openEngagementPanels};
bXm=function(f,R){return _.kZ(f.entities,"booleanEntity",R)};
pEw=function(){return function(f){_.$s(_.aA("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:f}))}};
jlm=function(f){switch(f){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}};
by=function(f,R,u){var O=_.H7(u);f&&R&&O&&f.getPlayerPromise().then(function(c){_.tqh(O)&&_.zL();(new _.QG(c)).executeCommand(O,R);_.E("continue_playback_on_desktop_companion_click")||c.pauseVideo()})};
D0N=function(f){var R=_.Vm(),u;if(u=_.Ph("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;u=(O=u())==null?void 0:O.layoutId}else u=null;by(R,u,f)};
JWa=function(f){var R=_.Vm(),u;if(u=_.Ph("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;u=(O=u())==null?void 0:O.layoutId}else u=null;by(R,u,f)};
p7=function(f,R){var u=f<0?"-":"";f=Math.abs(f);var O=Math.floor(f/3600),c=Math.floor(f)%3600,h=Math.floor(c/60);c=Math.floor(c)%60;var l="";(R===void 0?0:R)&&(l="."+Math.round((f-Math.floor(f))*10));return O>0?u+O+":"+(h<10?"0"+h:""+h)+":"+(c<10?"0"+c:""+c)+l:u+h+":"+(c<10?"0"+c:""+c)+l};
z$2=function(f){var R=f.match(/[^0-9:\.]/g);if(R&&R.length>0)return null;f=f.split(":");if(f.length===0||f.length>3)return null;R=1;for(var u=0;f.length>0;){var O=f.pop();if(O===void 0)break;var c=Number(O);if(O===""||isNaN(c))return null;u+=c*R;R*=60}return u};
To9=function(f,R,u,O){f=Math.max(u,f);R=Math.min(R,O-u);f+R>O?(u=O,f=u-R):u=f+R;return{start:f,end:u}};
HXm=function(f,R,u,O,c,h){f<u?f=u:f+c>O&&(f=O-c);R>O&&(R=O);R=Math.min(f+h,Math.max(f+c,R));return{start:f,end:R}};
Iyh=function(f,R,u,O,c,h){R>O?R=O:R-c<u&&(R=u+c);f<u&&(f=u);f=Math.min(R-c,Math.max(R-h,f));return{start:f,end:R}};
Msw=function(f){return _.E("web_transcript_cue_id_killswitch")?String(f):"ytd-transcript-renderer_"+f};
PJz=function(f){return _.E("web_transcript_cue_id_killswitch")?!0:f.startsWith("ytd-transcript-renderer")};
U0t=function(f){var R=_.Vm(),u;if(u=_.Ph("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;u=(O=u())==null?void 0:O.layoutId}else u=null;by(R,u,f)};
e$K=function(f){f.style.height="auto";f.style.height=Math.min(f.scrollHeight||20,80)+"px"};
GVa=function(f,R){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:R}}],insertByPositionInSection:{sectionTargetId:f,position:"INSERTION_POSITION_LAST"}}}]}}}};
Bom=function(f){var R=_.Vm(),u;u=(u=_.Ph("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;by(R,u,f)};
o9S=function(f){var R=_.Vm(),u;u=(u=_.Ph("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;by(R,u,f)};
x0w=function(f,R){R=R===void 0?!1:R;if(f.simpleText)f=[{text:f.simpleText}];else{var u;f=((u=f.runs)!=null?u:[]).map(function(O){return Object.assign({},O)})}if(R)for(R=_.Z(f),u=R.next();!u.done;u=R.next())u.value.bold=!0;
return f};
S5m=function(f){var R=f.startEndTimeTemplate,u=f.startTimeUtcMillis;f=f.endTimeUtcMillis;if(R&&u&&f)return _.S8(_.tsz(_.$Z(R),Number(u),Number(f)))};
$0X=function(f,R){var u,O,c=f==null?void 0:(u=f.viewCount)==null?void 0:(O=u.videoViewCountRenderer)==null?void 0:O.shortViewCount;if(!R&&c)return c;var h,l;return f==null?void 0:(h=f.viewCount)==null?void 0:(l=h.videoViewCountRenderer)==null?void 0:l.viewCount};
g99=function(f,R){var u=f==null?void 0:f.relativeDateText;return!R&&u?[u,!0]:[f==null?void 0:f.dateText,!1]};
slm=function(f,R,u,O,c){O=O===void 0?!0:O;c=c===void 0?"":c;var h=$0X(f,R),l=_.Z(g99(f,R)),K=l.next().value;l=l.next().value;R=R?f==null?void 0:f.sponsorsOnlyFirstTimeLongText:f==null?void 0:f.sponsorsOnlyFirstTimeShortText;var q=[];u&&h&&q.push(h);!u&&l||!K||q.push(K);f=[].concat(_.yq(q),[R,f==null?void 0:f.stationName,f==null?void 0:f.rating,f?S5m(f):void 0,f==null?void 0:f.upNextProgramText,f==null?void 0:f.superTitleLink]).filter(function(F){return!!F});
u={runs:[]};for(h=0;h<f.length;h++)u.runs.push.apply(u.runs,_.yq(x0w(f[h],O))),h<f.length-1&&u.runs.push({text:" "+c+" ",bold:O});return u};
n9h=function(f){if(f)return{runs:[{text:f,bold:!0}]}};
Vsw=function(f){var R,u,O,c;if(f=f==null?void 0:(R=f.contents)==null?void 0:(u=R.twoColumnWatchNextResults)==null?void 0:(O=u.results)==null?void 0:(c=O.results)==null?void 0:c.contents){var h,l;return(l=(h=f.find(function(K){return!!K.videoPrimaryInfoRenderer}))==null?void 0:h.videoPrimaryInfoRenderer)==null?void 0:l.updatedMetadataEndpoint}};
Y5t=function(f,R){var u;return(u=f.sourceConfigs)==null?void 0:u.find(function(O){return O.videoId===R})};
j1=function(f){return f==="End of video"||f==="End of playlist"};
v9m=function(f){var R,u,O,c;return(R=f.getWatchNextResponse())==null?void 0:(u=R.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(c=O.playlist)==null?void 0:c.playlist};
iX2=function(f){var R,u,O,c,h,l;return(R=v9m(f))==null?void 0:(u=R.playlistButtons)==null?void 0:(O=u.menuRenderer)==null?void 0:(c=O.topLevelButtons)==null?void 0:(h=c[0])==null?void 0:(l=h.playlistLoopButtonRenderer)==null?void 0:l.playlistLoopStateEntityKey};
rW2=function(f){var R=_.vh().resolve(_.Ji),u;return(R=(u=_.t(R.getAutoplayEndpoint(),_.$7))==null?void 0:u.playlistId)&&R===f};
uYK=function(f,R,u,O,c){function h(){_.JA.cancelJob(DE);var l=f_K(R,u/f.getPlaybackRate()),K=l.hours,q=l.minutes;l=(l.seconds*1E3||6E4)/f.getPlaybackRate();f.setVideoTimeLeft(RE9(K,q));O&&f.getPlayerState()!==0&&f.setSleepTimerTimeLeft(RE9(K,q,!0));(K>0||q>0)&&!c&&(DE=_.mQ(_.JA,h,l))}
_.JA.cancelJob(DE);DE=_.mQ(_.JA,h)};
OKm=function(f,R,u){function O(){_.JA.cancelJob(JI);var c=f_K(R,u),h=c.hours;c=c.minutes;var l=6E4/f.getPlaybackRate();if(h>0||c>0)f.setSleepTimerTimeLeft(RE9(h,c,!0)),JI=_.mQ(_.JA,O,l)}
_.JA.cancelJob(JI);JI=_.mQ(_.JA,O)};
c7N=function(f,R){var u=f.getVolume()/(R/500),O=function(c){_.JA.cancelJob(zQ);var h=Math.floor(c-u);f.setVolume(h,!1);h>0&&(zQ=_.mQ(_.JA,function(){O(h)},500))};
_.JA.cancelJob(zQ);zQ=_.mQ(_.JA,function(){O(f.getVolume())})};
XkX=function(f,R){_.JA.cancelJob(zQ);R&&f.syncVolume()};
hE2=function(){var f={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Fa("SLEEP_TIMER_DISRUPTED")}}}}};_.vh().resolve(_.rv).resolveCommand(f)};
ZKt=function(f){return(f.getDuration()-f.getProgressState().current)*1E3};
f_K=function(f,R){f=f+R-(0,_.iZ)();if(f<=0)return{hours:0,minutes:0,seconds:0};var u=new l_t(0,0,0,0,0,0,f);f=u.getHours();R=u.getMinutes();u=u.getSeconds();u!==0&&R++;R!==0&&R%60===0&&(f++,R=0);return{hours:f,minutes:R,seconds:u}};
RE9=function(f,R,u){return f>0&&R>0?u?_.Fa("TIME_LEFT_HOURS_MINUTES",{hours:f.toString(),minutes:R.toString()}):_.Fa("TIME_HOURS_MINUTES",{hours:f.toString(),minutes:R.toString()}):f>0?u?_.wA("TIME_LEFT_HOURS",f):_.wA("TIME_HOURS",f):u?_.Fa("TIME_LEFT_MINUTES",{minutes:R.toString()}):_.Fa("TIME_MINUTES",{minutes:R.toString()})};
kuK=function(f,R){if(f.timelyActions)return f.timelyActions.find(function(u){var O;return((O=_.t(u,TQ))==null?void 0:O.cueRangeId)===R})};
KrX=function(f){var R=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.OV(f);f.keyMap_.forEach(function(u,O){_.g7(R,O)||this.remove(O)},f)};
q4N=function(f,R){f.reloadContinuationItemsCommandMatcher=R};
_.HN=function(f,R){f.insertBefore(R,f.childNodes[0]||null)};
A7K=function(f){if(f>=48&&f<=57||f>=96&&f<=106||f>=65&&f<=90||_.XA&&f==0)return!0;switch(f){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 _.co;default:return!1}};
a_S=function(f){if(f.altKey&&!f.ctrlKey||f.metaKey||f.keyCode>=112&&f.keyCode<=123)return!1;if(A7K(f.keyCode))return!0;switch(f.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!_.co;default:return f.keyCode<166||f.keyCode>183}};
l_t=function(f,R,u,O,c,h,l){this.date=typeof f==="number"?new Date(f,R||0,u||1,O||0,c||0,h||0,l||0):new Date(f&&f.getTime?f.getTime():_.rI())};
_.f6(l_t,_.We);_.X=l_t.prototype;_.X.getHours=function(){return this.date.getHours()};
_.X.getMinutes=function(){return this.date.getMinutes()};
_.X.getSeconds=function(){return this.date.getSeconds()};
_.X.getMilliseconds=function(){return this.date.getMilliseconds()};
_.X.getUTCDay=function(){return this.date.getUTCDay()};
_.X.getUTCHours=function(){return this.date.getUTCHours()};
_.X.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.X.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.X.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.X.setHours=function(f){this.date.setHours(f)};
_.X.setMinutes=function(f){this.date.setMinutes(f)};
_.X.setSeconds=function(f){this.date.setSeconds(f)};
_.X.setMilliseconds=function(f){this.date.setMilliseconds(f)};
_.X.setUTCHours=function(f){this.date.setUTCHours(f)};
_.X.setUTCMinutes=function(f){this.date.setUTCMinutes(f)};
_.X.setUTCSeconds=function(f){this.date.setUTCSeconds(f)};
_.X.setUTCMilliseconds=function(f){this.date.setUTCMilliseconds(f)};
_.X.add=function(f){_.We.prototype.add.call(this,f);f.hours&&this.setUTCHours(this.date.getUTCHours()+f.hours);f.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+f.minutes);f.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+f.seconds)};
_.X.JSC$9230_toIsoString=function(f){var R=_.We.prototype.JSC$9230_toIsoString.call(this,f);return f?R+"T"+_.rZ(this.getHours(),2)+":"+_.rZ(this.getMinutes(),2)+":"+_.rZ(this.getSeconds(),2):R+"T"+_.rZ(this.getHours(),2)+_.rZ(this.getMinutes(),2)+_.rZ(this.getSeconds(),2)};
_.X.equals=function(f){return this.getTime()==f.getTime()};
_.X.toString=function(){return this.JSC$9230_toIsoString()};
_.X.clone=function(){var f=new l_t(this.date);f.firstDayOfWeek_=this.firstDayOfWeek_;f.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return f};
_.Frz=function(f){return _.OP({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:f}})};
wkm=new _.Y("imageTileRenderer");var m4t=new _.Y("adGridCardCollectionViewModel");var Qd2=new _.Y("carouselTitleViewModel");var Wr5=new _.Y("ctaCarouselItemViewModel");var Eq5=new _.Y("textFieldViewModel");_.tfa=new _.Y("engagementPanelHeaderShowNavigationButtonCommand");var CY9=new _.Y("hideEngagementPanelScrimAction");var y79=new _.Y("setActivePanelItemAction");var d45=new _.Y("showEngagementPanelScrimAction");var Nf9=new _.Y("updateEngagementPanelAction");var Lre=new _.Y("updateSearchInVideoResultsAction");var bKt=new _.Y("transcriptCueGroupRenderer");var pk5=new _.Y("transcriptCueRenderer");var jdK=new _.Y("transcriptFooterRenderer");var D49=new _.Y("engagementPanelAdSubtitleRenderer");var J7a=new _.Y("videoDescriptionFantasySectionViewModel");var zEX=new _.Y("deleteClipEngagementPanelCommand");var Tfw=new _.Y("loopCommand");var HK9=new _.Y("changeCreatorEndscreenVisibilityCommand");var I_h=new _.Y("liveChatCallForQuestionsRenderer");var Mfa=new _.Y("updateTimedMarkersSyncObserverCommand");var TQ=new _.Y("timelyActionViewModel");var PYl=new _.Y("timelyActionsOverlayViewModel");var U4K=new _.Y("repeatChapterCommand");var eEa=new _.Y("watchPlayerOverflowMenuCommand");var Gut=new _.Y("compositeVideoOverlayRenderer");var Bfm=new _.Y("sortFilterSubMenuRenderer");var oqe=new _.Y("switchListItemViewModel");var x4S=new _.Y("inputComposerViewModel");var S4w=new _.Y("transcriptEditSegmentCommand");var $4a=new _.Y("transcriptUpdateSegmentTextCommand");var gqt=new _.Y("transcriptSearchBoxRenderer");var sd9=new _.Y("transcriptSegmentListRenderer");var nqz=new _.Y("transcriptSegmentRenderer");_.Vf9=new _.Y("updateDateTextAction");var Y4w=new _.Y("updateTitleAction");var vqm=new _.Y("updateViewershipAction");var iKl=new _.Y("carouselLockupRenderer");var r75=new _.Y("expandableVideoDescriptionBodyRenderer");var fdX=new _.Y("videoDescriptionYouchatSectionViewModel");_.I_=_.RV("kevlar_watch_page_horizontal_margin",24);_.Rkt=_.RV("kevlar_watch_page_columns_top_padding",24);_.uvz=426+_.I_*2;_.MP=_.RV("kevlar_watch_two_column_width_threshold",1E3);_.O_N=_.I_*2;_.c$m=_.RV("kevlar_watch_secondary_width",402);_.Xa2=_.RV("kevlar_watch_max_player_width",1280);_.hkm=_.RV("kevlar_watch_flexy_metadata_height",136);_.Z_w=_.O_N+310+_.I_;_.ldX=_.O_N+360+_.I_;var knN={PAUSE_CHAT:18};var Kbh;var qgh;var PN=function(){return _.U.apply(this,arguments)||this};
_.y(PN,_.U);PN.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
PN.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var f=_.t(this.data.button,_.dW);f&&(f.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Vy.Object.defineProperties(PN,{template:{configurable:!0,enumerable:!0,get:function(){if(qgh===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;Kbh===void 0&&(Kbh=document.createElement("template"));var O=Kbh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);qgh=f}f=qgh;return f}}});
_.B([_.z(_.HT),_.S("design:type",Object)],PN.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({selectorArgs:["data.enabledEntityKey"],selector:Qlh,observer:"onEnabledChange"}),_.S("design:type",Boolean)],PN.prototype,"enabled",void 0);_.B([_.I(),_.S("design:type",Object)],PN.prototype,"data",void 0);PN=_.B([_.DO({is:"yt-disableable-button-view-model",noInjection:!0})],PN);var A$a;var ade;var FbX=["transVert01","transVert02","transVert03"],wa2="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Us=function(){var f=_.U.apply(this,arguments)||this;f.emojiManager=_.Hd;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};f.reactionBuckets=[];f.noEmojiIdentifier="NO_EMOJI";return f};
_.y(Us,_.U);_.X=Us.prototype;_.X.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.X.desktopFountainEmojiSizePxChanged=function(){_.ZO(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.X.createUserReactionAnimation=function(f){this.createEmojiAnimation(f,!0)};
_.X.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var f;((f=this.data)==null?0:f.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.aA("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.yq(this.emojiContainer.children)).forEach(function(R){R.remove()})};
_.X.detached=function(){this.cleanupFountain()};
_.X.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var f;this.reactionBuckets=_.dq.unsafeClone((f=this.emojiFountainData)==null?void 0:f.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.X.processEmojiBucket=function(f){var R=this;if(this.reactionBuckets&&!(f>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var u=this.reactionBuckets[f];this.generateEmojiAnimations(u);if(f<this.reactionBuckets.length-1){var O;if(u==null?0:(O=u.duration)==null?0:O.seconds)this.emojiBucketTimerId=setTimeout(function(){R.processEmojiBucket(f+1)},Number(u.duration.seconds)*1E3)}}};
_.X.generateEmojiAnimations=function(f){var R=this,u=this.getRandomEmojiIdFromBucketWithOverride(f);if(u&&u!==this.noEmojiIdentifier){var O=0;f.targetEps?(O=this.linearInterpolateBounded(1,20,100,12,f.emojiSizeIndex||0),this.createEmojiAnimation(u,!1,f.emojiAnimationMs,O),O=this.getEmojiDelayMsFromTargetEps(f.targetEps)):(this.createEmojiAnimation(u),O=this.getEmojiDelayMsFromDistribution(f.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){R.generateEmojiAnimations(f)},O)}};
_.X.getRandomEmojiIdFromBucketWithOverride=function(f){if(!(f&&f.reactionsData&&f.reactionsData.length&&f.totalReactions))return this.noEmojiIdentifier;for(var R=f.totalReactions,u=1,O=_.Z(f.reactionsData),c=O.next();!c.done;c=O.next())c=c.value,(c.reactionWeightOverride||c.reactionWeightOverride===0)&&c.reactionCount&&(R-=c.reactionCount,u-=c.reactionWeightOverride);O=!0;u<0&&(O=!1,R=f.totalReactions,u=1);if(O&&u>0&&R===0)if(u===1){c=0;for(var h=_.Z(f.reactionsData),l=h.next();!l.done;l=h.next())l=
l.value,l.reactionCount&&l.reactionCount>0&&c++;c=1/c;h=_.Z(f.reactionsData);for(l=h.next();!l.done;l=h.next())l.value.reactionWeightOverride=c}else for(c=1/(1-u),h=_.Z(f.reactionsData),l=h.next();!l.done;l=h.next())l=l.value,l.reactionWeightOverride&&(l.reactionWeightOverride*=c);c=Math.random();h=0;l=_.Z(f.reactionsData);for(var K=l.next();!K.done;K=l.next())if(K=K.value,K.reactionCount&&(h=(K.reactionWeightOverride||K.reactionWeightOverride===0)&&O?h+K.reactionWeightOverride:h+u*K.reactionCount/
R,h>c&&(K.reactionCount--,f.totalReactions--,K=this.reactionItemToEmojiString(K),K!==this.noEmojiIdentifier)))return K;return this.noEmojiIdentifier};
_.X.reactionItemToEmojiString=function(f){if(f.unicodeEmojiId)return f.unicodeEmojiId;if(f.emoteId)return f.emoteId;if(f.videoReactionType)switch(f.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.X.createEmojiAnimation=function(f,R,u,O){R=R===void 0?!1:R;this.lastEmojiRequestedForTesting=f;var c=f.startsWith("yt-icons:"),h=_.z5(this.emojiManager,f);if(h||c){var l=document.createElement("emoji");l.classList.add("yt-emoji-fountain-view-model");l.classList.add(FbX[Math.floor(Math.random()*FbX.length)]);var K=document.createElement("div");K.classList.add("yt-emoji-fountain-view-model");K.classList.add("horizontal-container");K.classList.add(wa2[Math.floor(Math.random()*wa2.length)]);R?(u=document.createElement("div"),
u.classList.add("user-reaction-bubble"),u.classList.add("yt-emoji-fountain-view-model"),K.appendChild(u)):(u&&(l.style.animationDuration=u+"ms",K.style.animationDuration=u+"ms"),O&&(l.style.width=O+"px",l.style.height=O+"px"));c?(c=document.createElement("yt-icon"),c.polymerController.icon=f,O&&(c.style.width=O+"px",c.style.height=O+"px"),f=c):f=this.emojiManager.createEmoji(h,!1);f.classList.add("yt-emoji-fountain-view-model");K.appendChild(f);l.appendChild(K);this.emojiContainer.appendChild(l);
l.addEventListener("animationend",function(){l.remove()});
var q,F;if((q=this.data)==null?0:(F=q.loggingDirectives)==null?0:F.trackingParams)R=R?_.dx(183501):_.dx(183500),W7l(this.data.loggingDirectives.trackingParams,R),_.jvl(R);setTimeout(function(){l&&l.remove()},2E3)}};
_.X.getEmojiDelayMsFromDistribution=function(f){return Math.random()*(f||1)*1E3};
_.X.getEmojiDelayMsFromTargetEps=function(f){return Math.random()*2*(1/f)*1E3};
_.X.linearInterpolateBounded=function(f,R,u,O,c){c=Math.min(Math.max(c,f),u);return(R*(u-c)+O*(c-f))/(u-f)};
Us.prototype.onEmojiFountainDataEntityUpdate=Us.prototype.onEmojiFountainDataEntityUpdate;Us.prototype.desktopFountainEmojiSizePxChanged=Us.prototype.desktopFountainEmojiSizePxChanged;Us.prototype.isActiveChanged=Us.prototype.isActiveChanged;_.B([_.I(),_.S("design:type",_.Je)],Us.prototype,"emojiManager",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],Us.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Us.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Us.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(f,R){return _.kZ(f.entities,"emojiFountainDataEntity",R)}}),
_.S("design:type",Object)],Us.prototype,"emojiFountainData",void 0);_.B([_.I(),_.S("design:type",Boolean)],Us.prototype,"isActive",void 0);_.B([_.qM("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Us.prototype,"isActiveChanged",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Us.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",String)],Us.prototype,"lastEmojiRequestedForTesting",void 0);
_.B([_.I({value:function(){return _.RV("desktop_fountain_emoji_size_px",20)}}),
_.S("design:type",Number)],Us.prototype,"desktopFountainEmojiSizePx",void 0);_.B([_.qM("desktopFountainEmojiSizePx"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Us.prototype,"desktopFountainEmojiSizePxChanged",null);_.B([_.a4("#emoji-container"),_.S("design:type",HTMLElement)],Us.prototype,"emojiContainer",void 0);
_.B([_.qM("emojiFountainData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Us.prototype,"onEmojiFountainDataEntityUpdate",null);Us=_.B([_.DO({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Us);
_.G(Us,"yt-emoji-fountain-view-model",function(){if(ade===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;A$a===void 0&&(A$a=document.createElement("template"));var O=A$a;u.call(R,O.content.cloneNode(!0),f.content.firstChild);ade=f}f=ade;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var m8m;var QT5;var e1=function(){return _.U.apply(this,arguments)||this};
_.y(e1,_.U);e1.prototype.onChoiceChanged=function(){this.data&&_.ZO(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
e1.prototype.onChoiceChanged=e1.prototype.onChoiceChanged;_.B([_.I(),_.S("design:type",Object)],e1.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],e1.prototype,"onChoiceChanged",null);e1=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],e1);
_.G(e1,"yt-live-chat-banner-poll-choice",function(){if(QT5===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;m8m===void 0&&(m8m=document.createElement("template"));var O=m8m;u.call(R,O.content.cloneNode(!0),f.content.firstChild);QT5=f}f=QT5;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Wbz;var EBw;var GQ=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_button_rework_with_live");f.small=!1;return f};
_.y(GQ,_.U);GQ.prototype.computeIsSmall=function(){var f;return((f=this.buttonOverrides)==null?void 0:f.size)==="S"};
GQ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.B([_.z(_.Ir.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],GQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.I({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",String)],GQ.prototype,"id",void 0);_.B([_.I(),_.S("design:type",Object)],GQ.prototype,"buttonOverrides",void 0);_.B([_.I(),_.S("design:type",Object)],GQ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],GQ.prototype,"modern",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.S("design:type",Object)],GQ.prototype,"small",void 0);GQ=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-button"})],GQ);
_.G(GQ,"yt-live-chat-button",function(){if(EBw===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Wbz===void 0&&(Wbz=document.createElement("template"));var O=Wbz;u.call(R,O.content.cloneNode(!0),f.content.firstChild);EBw=f}f=EBw;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var tC5;var C9K;var BN=function(){var f=_.U.apply(this,arguments)||this;f.inCollapsedBanner=!1;f.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};f.questionButtonOverrides={style:"mono",type:"filled"};return f};
_.y(BN,_.U);_.X=BN.prototype;_.X.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]]"}}}}}};
_.X.onContextMenuButtonClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
_.X.onYtRendererstamperFinished=function(){this.menuButton=_.b(this.hostElement).querySelector("#menu-button")};
_.X.dataChanged=function(){var f,R;if((R=_.t((f=this.data)==null?void 0:f.overflowMenuButton,_.z9))==null?0:R.command)this.data.contextMenuEndpoint=_.t(this.data.overflowMenuButton,_.z9).command};
_.X.onButtonClick=function(){var f,R=_.t((f=this.data)==null?void 0:f.askQuestionButton,_.z9);if(R){if(R.trackingParams&&(f=_.t4(R.trackingParams))){var u=_.z4();u&&_.Sa(u,f)}_.ul(this.hostElement,"innertube-command",R.command)}};
BN.prototype.onYtRendererstamperFinished=BN.prototype.onYtRendererstamperFinished;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],BN.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],BN.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.I({observer:"dataChanged"}),_.S("design:type",Object)],BN.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],BN.prototype,"inCollapsedBanner",void 0);_.B([_.I(),_.S("design:type",Object)],BN.prototype,"buttonOverrides",void 0);_.B([_.I(),_.S("design:type",Object)],BN.prototype,"questionButtonOverrides",void 0);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BN.prototype,"onYtRendererstamperFinished",null);
BN=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],BN);
_.G(BN,"yt-live-chat-call-for-questions-renderer",function(){if(C9K===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;tC5===void 0&&(tC5=document.createElement("template"));var O=tC5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);C9K=f}f=C9K;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var y$S={};y$S.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 f=this;window.requestAnimationFrame(function(){f.restoreFocusNode_||(f.restoreFocusNode_=document.activeElement);var R=_.h5A(f.hostElement);R.length&&R[R.length-1].focus()})},
isAttachedChanged_:function(f,R){f?this.focusChild_():R&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(f){this.hidden||_.$S(f).indexOf(this.hostElement)!==-1||(f.stopPropagation(),this.focusChild_())}};var d89;var NLm;var o_=function(){return _.U.apply(this,arguments)||this};
_.y(o_,_.U);o_.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
o_.prototype.onClick=function(f){f.target!==this.confirmButton&&f.target!==this.cancelButton&&(this.hidden=!0)};
_.B([_.a4("#confirm_button"),_.S("design:type",Object)],o_.prototype,"confirmButton",void 0);_.B([_.a4("#cancel_button"),_.S("design:type",Object)],o_.prototype,"cancelButton",void 0);_.B([_.I(),_.S("design:type",Lbh)],o_.prototype,"data",void 0);_.B([_.I({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],o_.prototype,"hidden",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(y$S.YtLiveChatDialogBehavior),_.S("design:type",Object)],o_.prototype,"ytLiveChatDialogBehavior",void 0);o_=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],o_);
var Lbh=_.G(o_,"yt-live-chat-dialog-renderer",function(){if(NLm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;d89===void 0&&(d89=document.createElement("template"));var O=d89;u.call(R,O.content.cloneNode(!0),f.content.firstChild);NLm=f}f=NLm;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var b_w;var paz,jT2=function(){if(paz!==void 0)return paz;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;b_w===void 0&&(b_w=document.createElement("template"));var O=b_w;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return paz=f};var D8m;var J$l;var x0=function(){var f=_.U.apply(this,arguments)||this;f.tooltip=null;f.data=null;f.id="";f.active=!1;f.icon="";f.disabled=!1;f.showTooltip=!1;f.useToggledActiveState=!0;f.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return f};
_.y(x0,_.U);_.X=x0.prototype;
_.X.dataChanged=function(){var f;((f=this.data)==null?0:f.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,_.hl)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var R;if((R=this.data)==null?0:R.disabled)this.disabled=!0};
_.X.computeId=function(f){return f};
_.X.computeIcon=function(f,R){if(!f)return"";if(this.useToggledActiveState)return"yt-icons:"+f.toLowerCase();var u,O;return R&&((u=this.data)==null?0:(O=u.toggledIcon)==null?0:O.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+f.toLowerCase()};
_.X.logPDGEntryPoint=function(){_.ik0(_.kS("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")};
_.X.immediatelyShowTooltip=function(){var f=_.b(this.hostElement).querySelector("#tooltip");f.animationDelay=0;f.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};f.show()};
_.X.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.X.onClick=function(f){var R;((R=this.data)==null?0:R.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(),f.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.ul(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.X.computeShowTooltip=function(f,R){return!!(f&&f.tooltip&&R)};
_.X.maybeUpdateTooltipText=function(){var f=this,R;if((R=this.data)==null?0:R.tooltip){var u=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.hl)(f.tooltip).textContent=u},250)}};
_.X.handleLiveChatActions=function(f){var R=this;f.length&&(this.id!=="creator"&&this.id!=="product-picker"||f.forEach(function(u){(u=R.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",u))&&u.durationSec===u.fullDurationSec&&R.startBubble(R.colorFromDecimal(u.startBackgroundColor))}))};
_.X.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.X.startBubble=function(f){_.ZO(this.hostElement,{"--yt-live-chat-monetization-button-glow":f});this.hostElement.setAttribute("bubble","")};
_.X.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.X.colorFromDecimal=function(f){typeof f==="string"&&(f=Number(f));return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
x0.prototype.onAnimationEnd=x0.prototype.onAnimationEnd;x0.prototype.disabledChanged=x0.prototype.disabledChanged;x0.prototype.dataChanged=x0.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],x0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.Ir.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],x0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],x0.prototype,"data",void 0);_.B([_.I({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",Object)],x0.prototype,"id",void 0);_.B([_.I({notify:!0,reflectToAttribute:!0}),_.S("design:type",Object)],x0.prototype,"active",void 0);
_.B([_.I({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.S("design:type",Object)],x0.prototype,"icon",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x0.prototype,"disabled",void 0);_.B([_.I({computed:"computeShowTooltip(data, disabled)"}),_.S("design:type",Object)],x0.prototype,"showTooltip",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x0.prototype,"useToggledActiveState",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x0.prototype,"dataChanged",null);_.B([_.qM("disabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x0.prototype,"disabledChanged",null);_.B([_.Kf("animationend"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],x0.prototype,"onAnimationEnd",null);
x0=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],x0);
_.G(x0,"yt-live-chat-icon-toggle-button-renderer",function(){if(J$l===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;D8m===void 0&&(D8m=document.createElement("template"));var O=D8m;u.call(R,O.content.cloneNode(!0),f.content.firstChild);J$l=f}f=J$l;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var zkl;var TLh;var S1=function(){return _.U.apply(this,arguments)||this};
_.y(S1,_.U);S1.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B([_.I(),_.S("design:type",Object)],S1.prototype,"data",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);S1=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],S1);
_.G(S1,"yt-live-chat-message-input-prompt-header-renderer",function(){if(TLh===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;zkl===void 0&&(zkl=document.createElement("template"));var O=zkl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);TLh=f}f=TLh;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var H_l;var Idm;var MCX;var P9l;var U8t;var ekm;var $0=function(){return _.U.apply(this,arguments)||this};
_.y($0,_.U);_.B([_.I(),_.S("design:type",Object)],$0.prototype,"data",void 0);$0=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],$0);
_.G($0,"yt-live-chat-message-subtext-renderer",function(){if(ekm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;U8t===void 0&&(U8t=document.createElement("template"));var O=U8t;u.call(R,O.content.cloneNode(!0),f.content.firstChild);ekm=f}f=ekm;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var gC=function(){var f=_.U.apply(this,arguments)||this;f.subtextOnBottom=!1;f.buttonOverrides={style:"mono",type:"tonal"};return f};
_.y(gC,_.U);gC.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gC.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],gC.prototype,"subtextOnBottom",void 0);_.B([_.I(),_.S("design:type",Object)],gC.prototype,"buttonOverrides",void 0);
gC=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],gC);
_.G(gC,"yt-live-chat-message-renderer",function(){if(P9l===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;MCX===void 0&&(MCX=document.createElement("template"));var O=MCX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);P9l=f}f=P9l;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Gnh;var BLt;var ss=function(){var f=_.U.apply(this,arguments)||this;f.isRemovable=!1;f.hasPrefilledText=!1;f.isInputDirty=!1;f.overCharacterLimit=!1;f.underCharacterLimit=!1;f.showErrorMessage=!1;return f};
_.y(ss,_.U);_.X=ss.prototype;_.X.computeId=function(){return this.data.id};
_.X.computeInputData=function(){return this.data.inputData};
_.X.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.X.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.X.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.X.getLiveChatRichMessageInput=function(){return _.b(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.X.clearInput=function(){_.b(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.X.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.X.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.X.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.X.handleTextInputCharCountChanged=function(f){f=f.detail&&f.detail.characterCount;f!==void 0&&(this.characterCount=f,f!==0&&(this.isInputDirty=!0))};
_.X.onInputFocusOut=function(){this.isInputDirty=!0};
_.X.onClickCloseButton=function(){_.ul(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
ss.prototype.handleTextInputCharCountChanged=ss.prototype.handleTextInputCharCountChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ss.prototype,"data",void 0);_.B([_.I({computed:"computeId(data.id)"}),_.S("design:type",String)],ss.prototype,"id",void 0);_.B([_.I({computed:"computeInputData(data.inputData)"}),_.S("design:type",Object)],ss.prototype,"inputData",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.S("design:type",Object)],ss.prototype,"isRemovable",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.S("design:type",Object)],ss.prototype,"hasPrefilledText",void 0);_.B([_.I({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.S("design:type",Number)],ss.prototype,"charactersRemaining",void 0);
_.B([_.I(),_.S("design:type",Number)],ss.prototype,"characterCount",void 0);_.B([_.I(),_.S("design:type",Object)],ss.prototype,"isInputDirty",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.S("design:type",Object)],ss.prototype,"overCharacterLimit",void 0);_.B([_.I({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.S("design:type",Object)],ss.prototype,"underCharacterLimit",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.S("design:type",Object)],ss.prototype,"showErrorMessage",void 0);_.B([_.Kf("yt-live-chat-text-input-field-renderer-character-count-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ss.prototype,"handleTextInputCharCountChanged",null);
ss=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],ss);
_.G(ss,"yt-live-chat-poll-editor-input",function(){if(BLt===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Gnh===void 0&&(Gnh=document.createElement("template"));var O=Gnh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);BLt=f}f=BLt;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var oBN;var x8S;var Sgm={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},n7=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_button_rework_with_live");f.closeButtonOverrides={iconPosition:"icon-only"};f.startButtonOverrides={style:"mono",type:"filled"};f.addOptionButtonOverrides={style:"mono",type:"text"};return f};
_.y(n7,_.U);_.X=n7.prototype;
_.X.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"}}}}};
_.X.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var f;_.t((f=this.data)==null?void 0:f.startButton,_.z9)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.X.computeId=function(){return this.data&&this.data.id||""};
_.X.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.X.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.X.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.X.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.X.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var f=0;f<this.pollEditorInfoWithDefaults.minPollOptions;f++)this.addPollOptionData()};
_.X.getIsValidPoll=function(){var f=this;if(!this.pollEditorInfoWithDefaults)return!1;var R=this.pollEditorInfoWithDefaults,u=R.minPollOptionChars,O=R.maxPollOptionChars,c=R.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>R.maxPollQuestionChars)return!1;R=_.b(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(R).every(function(h,l){h=h.characterCount;!h&&c[l]&&(h=f.ytRendererBehavior.getSimpleString(c[l]).length);return h!==void 0&&h>=u&&h<=O})};
_.X.isValidPollChanged=function(){var f;_.t((f=this.data)==null?void 0:f.startButton,_.z9)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.X.addPollOptionData=function(){var f=this.pollEditorInfoWithDefaults,R=f.maxPollOptionChars,u=f.optionPlaceholderText,O=f.customOptionPlaceholderText,c=f.pollOptionData;this.currentNumPollOptions>=f.maxPollOptions||(f={liveChatPollOptionInput:{inputData:{placeholder:O[this.currentNumPollOptions]||u,maxCharacterLimit:R},maxCharacterLimit:R,minCharacterLimit:f.minPollOptionChars,hasPrefilledText:!!O[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=f.minPollOptions}},c.charCountErrorText&&
(f.liveChatPollOptionInput.charCountErrorText=c.charCountErrorText),c.charsRemainingAltLabel&&(f.liveChatPollOptionInput.charsRemainingAltLabel=c.charsRemainingAltLabel),c.removeOptionAltText&&(f.liveChatPollOptionInput.removeOptionAltText=c.removeOptionAltText),this.push("pollOptionsData",f),c=Array.from(_.b(_.b(this.hostElement).querySelector("#poll-options")).children),c.forEach(function(h,l){h.polymerController.set("data.id",l)}),_.b(c[c.length-1]).querySelector("#input").focus())};
_.X.getPollOptionInputValues=function(){var f=this,R=[],u=_.b(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),O=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(u).forEach(function(c,h){var l=null;c=c.getLiveChatRichMessageInput();var K;(c==null?0:(K=c.textSegments)==null?0:K.length)?l=_.HM(c):O[h]&&(l=f.formattedStringToLiveChatRichMessageInput(O[h]));R.push(l)});
return R};
_.X.requestCreateAndStartPoll=function(f){var R=this.getPollOptionInputValues();if(!R.some(function(O){return!O})){R={optionText:R};
var u=_.b(_.b(this.hostElement).querySelector("#poll-question")).firstChild;u&&u.liveChatRichMessageInput&&(R.questionText=_.HM(u.liveChatRichMessageInput));_.hH(this.hostElement,[f,R])}};
_.X.selectedChanged=function(){if(this.selected){var f=_.b(_.b(this.hostElement).querySelector("#start-button")).firstElementChild;if(f){var R;(R=_.b(f).querySelector("#button")||_.OU(f).querySelector("button"))==null||R.focus()}}};
_.X.handleTextInputChanged=function(f){var R;((R=f.target)==null?void 0:R.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=f.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.X.handleStartButtonAction=function(f){f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),(f=f.detail.args[1])&&this.requestCreateAndStartPoll(f))};
_.X.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.X.handleServiceRequestCompleted=function(f){this.createPollRequestInFlight=!1;(f=f.detail&&f.detail.data)&&f.success&&(_.ul(this.hostElement,"picker-cancelled"),_.OJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.X.onCloseClick=function(){_.ul(this.hostElement,"picker-cancelled");_.OJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.X.handlePollEditorInputClosed=function(f){var R=this.pollOptionsData.findIndex(function(u){return u.liveChatPollOptionInput.id===f.detail.id});
this.splice("pollOptionsData",R,1);this.isValidPoll=this.getIsValidPoll()};
_.X.onPickerCancelled=function(){this.reset()};
_.X.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var f=_.b(_.b(this.hostElement).querySelector("#poll-question")).firstChild;f&&f.setLiveChatRichMessageInput(null);if(f=_.b(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){f=_.Z(Array.from(f));for(var R=f.next();!R.done;R=f.next())R.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.X.formattedStringToLiveChatRichMessageInput=function(f){return f.simpleText?{text_segments:[f.simpleText]}:{text_segments:f.runs}};
_.Vy.Object.defineProperties(n7.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(Sgm,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
n7.prototype.onPickerCancelled=n7.prototype.onPickerCancelled;n7.prototype.handlePollEditorInputClosed=n7.prototype.handlePollEditorInputClosed;n7.prototype.handleServiceRequestCompleted=n7.prototype.handleServiceRequestCompleted;n7.prototype.handleServiceRequestSent=n7.prototype.handleServiceRequestSent;n7.prototype.handleTextInputChanged=n7.prototype.handleTextInputChanged;n7.prototype.selectedChanged=n7.prototype.selectedChanged;n7.prototype.isValidPollChanged=n7.prototype.isValidPollChanged;
n7.prototype.shouldInitializePollChanged=n7.prototype.shouldInitializePollChanged;n7.prototype.dataChanged=n7.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],n7.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],n7.prototype,"modern",void 0);
_.B([_.I(),_.S("design:type",Object)],n7.prototype,"closeButtonOverrides",void 0);_.B([_.I(),_.S("design:type",Object)],n7.prototype,"startButtonOverrides",void 0);_.B([_.I(),_.S("design:type",Object)],n7.prototype,"addOptionButtonOverrides",void 0);_.B([_.I({computed:"computeId(data.id)",reflectToAttribute:!0}),_.S("design:type",String)],n7.prototype,"id",void 0);_.B([_.I({value:function(){return[]}}),
_.S("design:type",Array)],n7.prototype,"pollOptionsData",void 0);_.B([_.T("pollEditorInfoWithDefaults"),_.S("design:type",Object),_.S("design:paramtypes",[])],n7.prototype,"pollQuestionData",null);_.B([_.I({value:0}),_.S("design:type",Number)],n7.prototype,"pollQuestionCharacterCount",void 0);_.B([_.T("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.S("design:type",Object),_.S("design:paramtypes",[])],n7.prototype,"pollQuestionCharactersRemaining",null);
_.B([_.I({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.S("design:type",Boolean)],n7.prototype,"overQuestionCharacterLimit",void 0);_.B([_.T("data.pollEditorInfo"),_.S("design:type",Object),_.S("design:paramtypes",[])],n7.prototype,"pollEditorInfoWithDefaults",null);_.B([_.I({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.S("design:type",Number)],n7.prototype,"currentNumPollOptions",void 0);
_.B([_.I({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.S("design:type",Boolean)],n7.prototype,"hasMaxNumPollOptions",void 0);_.B([_.T("pollEditorInfoWithDefaults","pollOptionsData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],n7.prototype,"shouldInitializePoll",null);_.B([_.I(),_.S("design:type",Object)],n7.prototype,"isValidPoll",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],n7.prototype,"createPollRequestInFlight",void 0);_.B([_.I(),_.S("design:type",Object)],n7.prototype,"selected",void 0);_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.S("design:type",Boolean)],n7.prototype,"showQuestionErrorMessage",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"dataChanged",null);_.B([_.qM("shouldInitializePoll"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"shouldInitializePollChanged",null);_.B([_.qM("isValidPoll"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"isValidPollChanged",null);
_.B([_.qM("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"selectedChanged",null);_.B([_.Kf("yt-live-chat-text-input-field-renderer-character-count-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],n7.prototype,"handleTextInputChanged",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"handleServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],n7.prototype,"handleServiceRequestCompleted",null);
_.B([_.Kf("yt-live-chat-poll-editor-input-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],n7.prototype,"handlePollEditorInputClosed",null);_.B([_.Kf("picker-cancelled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"onPickerCancelled",null);n7=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],n7);
_.G(n7,"yt-live-chat-poll-editor-panel-renderer",function(){if(x8S===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;oBN===void 0&&(oBN=document.createElement("template"));var O=oBN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);x8S=f}f=x8S;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var $8K;var gBN;var VQ=function(){return _.U.apply(this,arguments)||this};
_.y(VQ,_.U);VQ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
VQ.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Vy.Object.defineProperties(VQ.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var f,R;return(f=this.data)==null?void 0:(R=f.title)==null?void 0:R.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var f;return _.H7((f=this.data)==null?void 0:f.onTapCommand)}}});
_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],VQ.prototype,"ytEndpointBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],VQ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],VQ.prototype,"itemId",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],VQ.prototype,"hasPromotion",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],VQ.prototype,"innertubeCommand",null);VQ=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],VQ);
_.G(VQ,"yt-live-chat-product-picker-panel-item-view-model",function(){if(gBN===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;$8K===void 0&&($8K=document.createElement("template"));var O=$8K;u.call(R,O.content.cloneNode(!0),f.content.firstChild);gBN=f}f=gBN;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var sTX;var nBw;var Y0=function(){var f=_.U.apply(this,arguments)||this;f.id="product-picker";f.selected=!1;f.closeButtonId="close-button";f.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return f};
_.y(Y0,_.U);_.X=Y0.prototype;_.X.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.X.observeSelected=function(){this.selected&&this.hostElement.focus();var f=_.b(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");f.length&&f[0].focus()};
_.X.onCloseBuyFlow=function(){_.ul(this.hostElement,"picker-cancelled")};
_.X.onCloseClick=function(){_.ul(this.hostElement,"picker-cancelled");var f;((f=this.data)==null?0:f.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.t(this.data.closeButton,_.dW))};
_.X.onCloseEngageWithAudienceEditorPanels=function(){_.ul(this.hostElement,"picker-cancelled")};
Y0.prototype.observeSelected=Y0.prototype.observeSelected;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Y0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Y0.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Y0.prototype,"id",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Y0.prototype,"selected",void 0);_.B([_.I(),_.S("design:type",Object)],Y0.prototype,"closeButtonId",void 0);_.B([_.qM("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Y0.prototype,"observeSelected",null);
Y0=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Y0);
_.G(Y0,"yt-live-chat-product-picker-panel-view-model",function(){if(nBw===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;sTX===void 0&&(sTX=document.createElement("template"));var O=sTX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);nBw=f}f=nBw;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var VCm;var YgS;var vN=function(){var f=_.U.apply(this,arguments)||this;f.iconId="";f.icon="";f.disabled=!1;f.systemIcons=_.E("kevlar_system_icons");return f};
_.y(vN,_.U);_.X=vN.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.X.computeIconId=function(f){return f&&f.icon&&f.icon.iconType?f.icon.iconType.toLowerCase():""};
_.X.computeIcon=function(f){return f&&f.icon&&f.icon.iconType?(f=f.icon.iconType.toLowerCase(),(f.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+f):""};
_.X.computeDisabled=function(f){return!!f};
_.X.computeCommand=function(f,R){return R?void 0:f};
_.X.computeTooltip=function(f,R){return R&&f?f:""};
_.X.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],vN.prototype,"ytEndpointBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vN.prototype,"data",void 0);_.B([_.I({computed:"computeIconId(data)",reflectToAttribute:!0}),_.S("design:type",Object)],vN.prototype,"iconId",void 0);
_.B([_.I({computed:"computeIcon(data)",reflectToAttribute:!0}),_.S("design:type",Object)],vN.prototype,"icon",void 0);_.B([_.I({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.S("design:type",Object)],vN.prototype,"disabled",void 0);_.B([_.I({computed:"computeCommand(data.command, disabled)"}),_.S("design:type",Object)],vN.prototype,"command",void 0);_.B([_.I({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.S("design:type",String)],vN.prototype,"tooltip",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vN.prototype,"systemIcons",void 0);vN=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],vN);
_.G(vN,"yt-live-chat-product-button-renderer",function(){if(YgS===void 0){var f=document.createElement("template");_.N(f,'\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" disabled$="[[disabled]]" 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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;VCm===void 0&&(VCm=document.createElement("template"));var O=VCm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);YgS=f}f=YgS;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vBm;var i_X;var iy=function(){var f=_.U.apply(this,arguments)||this;f.selected=!1;f.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 f};
_.y(iy,_.U);_.X=iy.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.computeId=function(f){return f.id||""};
_.X.onCloseClick=function(){_.ul(this.hostElement,"picker-cancelled")};
_.X.observeSelected=function(){this.selected&&this.hostElement.focus();var f=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");f.length&&f[0].focus()};
_.X.onCloseBuyFlow=function(){_.ul(this.hostElement,"picker-cancelled")};
_.X.onCloseEngageWithAudienceEditorPanels=function(){_.ul(this.hostElement,"picker-cancelled")};
iy.prototype.observeSelected=iy.prototype.observeSelected;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],iy.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],iy.prototype,"data",void 0);
_.B([_.I({computed:"computeId(data)",reflectToAttribute:!0}),_.S("design:type",String)],iy.prototype,"id",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iy.prototype,"selected",void 0);_.B([_.qM("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iy.prototype,"observeSelected",null);iy=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],iy);
_.G(iy,"yt-live-chat-product-picker-renderer",function(){if(i_X===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;vBm===void 0&&(vBm=document.createElement("template"));var O=vBm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);i_X=f}f=i_X;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var r$K;var fJl;var R1t;var u62;var rC=function(){return _.U.apply(this,arguments)||this};
_.y(rC,_.U);rC.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()};
rC.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
rC.prototype.created=function(){this.ids={background:_.bM(),maskOne:_.bM(),maskTwo:_.bM(),gradient:_.bM(),largeBackground:_.bM(),largeGradientOne:_.bM(),largeGradientTwo:_.bM(),largeGradientPath:_.bM()}};
rC.prototype.maybeLoadAnimationBackground=rC.prototype.maybeLoadAnimationBackground;_.B([_.I({value:!1}),_.S("design:type",Boolean)],rC.prototype,"useLargeBackground",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],rC.prototype,"useAnimationBackground",void 0);_.B([_.I({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.S("design:type",Boolean)],rC.prototype,"useRegularBackground",void 0);
_.B([_.I(),_.S("design:type",Object)],rC.prototype,"ids",void 0);_.B([_.I(),_.S("design:type",Object)],rC.prototype,"lottieAnimation",void 0);_.B([_.a4("#animation-background"),_.S("design:type",HTMLDivElement)],rC.prototype,"animationBackground",void 0);_.B([_.qM("useAnimationBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rC.prototype,"maybeLoadAnimationBackground",null);
rC=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],rC);
_.G(rC,"yt-live-interactivity-component-background",function(){if(u62===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;R1t===void 0&&(R1t=document.createElement("template"));var O=R1t;u.call(R,O.content.cloneNode(!0),f.content.firstChild);u62=f}f=u62;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var fs=function(){var f=_.U.apply(this,arguments)||this;f.characterCount=0;f.showInputErrorMessage=!1;f.startQnaRequestInFlight=!1;f.modern=_.E("web_button_rework_with_live");f.buttonOverrides={style:"mono",type:"filled"};f.closeButtonOverrides={iconPosition:"icon-only"};f.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return f};
_.y(fs,_.U);_.X=fs.prototype;
_.X.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]]"}}}}}};
_.X.onCharacterCountChanged=function(f){var R,u,O,c,h=(u=_.t(this==null?void 0:(R=this.data)==null?void 0:R.creatorCallForQuestions,I_h))==null?void 0:(O=u.inputField)==null?void 0:(c=O.liveChatTextInputFieldRenderer)==null?void 0:c.maxCharacterLimit,l,K;h!=null&&(f==null?void 0:(l=f.detail)==null?void 0:l.characterCount)!=null&&_.t(this==null?void 0:(K=this.data)==null?void 0:K.startButton,_.z9)&&(R=f.detail.characterCount>h,this.set("data.startButton.buttonRenderer.isDisabled",f.detail.characterCount===
0||R),this.showInputErrorMessage=R)};
_.X.onCloseClick=function(){_.ul(this.hostElement,"picker-cancelled");_.OJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.onPickerCancelled=function(){var f=_.b(this.hostElement).querySelector("#qna-creator-text-input-field");f&&f.setLiveChatRichMessageInput(null)};
_.X.handleOpenQnaStartPanel=function(){var f=_.b(this.hostElement).querySelector("#qna-creator-text-input-field");f&&f.focus()};
_.X.handleStartButtonAction=function(f){var R=this;if(f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),f=f.detail.args[1])){var u=_.b(this.hostElement).querySelector("#qna-creator-text-input-field"),O;(u==null?0:(O=u.liveChatRichMessageInput)==null?0:O.textSegments)&&u.liveChatRichMessageInput.textSegments.length!==0&&(O={rich_message:_.HM(u.liveChatRichMessageInput)},_.hH(this.hostElement,[f,O]).then(function(){_.ul(R.hostElement,"picker-cancelled")}))}};
_.X.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.X.handleServiceRequestCompleted=function(f){var R;f=f==null?void 0:(R=f.detail)==null?void 0:R.data;(f==null?0:f.actions)&&f.actions.length>0?this.startQnaRequestInFlight=!1:_.OJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
fs.prototype.handleServiceRequestError=fs.prototype.handleServiceRequestError;fs.prototype.handleServiceRequestCompleted=fs.prototype.handleServiceRequestCompleted;fs.prototype.handleServiceRequestSent=fs.prototype.handleServiceRequestSent;fs.prototype.onPickerCancelled=fs.prototype.onPickerCancelled;fs.prototype.onCharacterCountChanged=fs.prototype.onCharacterCountChanged;_.B([_.I(),_.S("design:type",Object)],fs.prototype,"characterCount",void 0);
_.B([_.I(),_.S("design:type",Object)],fs.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],fs.prototype,"showInputErrorMessage",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],fs.prototype,"startQnaRequestInFlight",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],fs.prototype,"modern",void 0);_.B([_.I(),_.S("design:type",Object)],fs.prototype,"buttonOverrides",void 0);
_.B([_.I(),_.S("design:type",Object)],fs.prototype,"closeButtonOverrides",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],fs.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.z(_.ID.YtLiveChatItemBehavior),_.S("design:type",_.MA)],fs.prototype,"ytLiveChatItemBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],fs.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Kf("yt-live-chat-text-input-field-renderer-character-count-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],fs.prototype,"onCharacterCountChanged",null);_.B([_.Kf("picker-cancelled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fs.prototype,"onPickerCancelled",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fs.prototype,"handleServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],fs.prototype,"handleServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],fs.prototype,"handleServiceRequestError",null);fs=_.B([_.e({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],fs);
_.G(fs,"yt-live-chat-qna-start-panel-renderer",function(){if(fJl===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;r$K===void 0&&(r$K=document.createElement("template"));var O=r$K;u.call(R,O.content.cloneNode(!0),f.content.firstChild);fJl=f}f=fJl;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var O3z;var cGz;var Ri=function(){return _.U.apply(this,arguments)||this};
_.y(Ri,_.U);Ri.prototype.dismiss=function(){_.ul(this.hostElement,"yt-live-chat-error-message-dismiss")};
Ri.prototype.edit=function(){_.ul(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.B([_.I(),_.S("design:type",Object)],Ri.prototype,"data",void 0);Ri=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Ri);
_.G(Ri,"yt-live-chat-text-actions-error-message-renderer",function(){if(cGz===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;O3z===void 0&&(O3z=document.createElement("template"));var O=O3z;u.call(R,O.content.cloneNode(!0),f.content.firstChild);cGz=f}f=cGz;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var XZK;var h1K;var Z39;var lJm;var u7=function(){var f=_.U.apply(this,arguments)||this;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.newnessDotEligible=!1;return f};
_.y(u7,_.U);u7.prototype.sendReaction=function(){var f,R,u=((f=this.data)==null?void 0:f.emojiId)||((R=this.data)==null?void 0:R.emoteId),O;u&&((O=this.data)==null?0:O.shouldTriggerAnimation)&&_.OJ(this.hostElement,"yt-create-user-reaction-animation",[u]);var c;(f=_.H7((c=this.data)==null?void 0:c.onTap))&&_.qO(f,this.hostElement);this.showNewnessDot&&_.OJ(this.hostElement,"yt-hide-newness-dot")};
u7.prototype.onClick=function(f){(!f||f.clientX||f.clientY)&&this.sendReaction()};
u7.prototype.onKeyDown=function(f){f.key!=="Enter"&&f.key!==" "||f.repeat||this.sendReaction()};
_.Vy.Object.defineProperties(u7.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var f,R;return!!(((f=this.data)==null?0:f.emojiId)||((R=this.data)==null?0:R.emoteId))}}});
_.B([_.I(),_.S("design:type",Object)],u7.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],u7.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],u7.prototype,"newnessDotEligible",void 0);_.B([_.T("data.maybeShowNewnessDot"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],u7.prototype,"showNewnessDot",null);_.B([_.T("data.emojiId","data.emoteId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],u7.prototype,"useYtImage",null);
u7=_.B([_.DO({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],u7);
_.G(u7,"yt-reaction-control-panel-button-view-model",function(){if(lJm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Z39===void 0&&(Z39=document.createElement("template"));var O=Z39;u.call(R,O.content.cloneNode(!0),f.content.firstChild);lJm=f}f=lJm;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var kNS;var KVS;var On=function(){var f=_.U.apply(this,arguments)||this;f.reactionControlPanelExpanded=!1;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.newnessDotEligible=!1;return f};
_.y(On,_.U);_.X=On.prototype;_.X.expandedButtonsChanged=function(){var f,R;_.ZO(this.hostElement,{"--expanded-buttons-height":((R=(f=this.expandedButtonsData)==null?void 0:f.length)!=null?R:0)*36+"px"})};
_.X.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}}};
_.X.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.X.onMouseLeave=function(){var f=this;this.collapseTimer=setTimeout(function(){f.reactionControlPanelExpanded=!1},500)};
_.X.onFocusIn=function(){this.onMouseEnter()};
_.X.onFocusOut=function(){this.onMouseLeave()};
_.X.onCollapsedButtonFocusIn=function(){var f=this;setTimeout(function(){var R;(R=f.expandedButtons.querySelector("button"))==null||R.focus()},100)};
_.X.onCollapsedButtonFocusOut=function(f){f.stopPropagation()};
_.Vy.Object.defineProperties(On.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var f,R;return _.dq.unsafeClone((f=this.liveReactionsData)==null?void 0:f.emojiButtonData)||((R=this.data)==null?void 0:R.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var f;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((f=this.data)==null||!f.maybeShowNewnessDot)}}});
On.prototype.expandedButtonsChanged=On.prototype.expandedButtonsChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],On.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],On.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],On.prototype,"reactionControlPanelExpanded",void 0);_.B([_.I({selectorArgs:["data.liveReactionsDataEntityKey"],selector:m0z}),_.S("design:type",Object)],On.prototype,"liveReactionsData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],On.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],On.prototype,"newnessDotEligible",void 0);
_.B([_.T("liveReactionsData","data.expandedButtons"),_.S("design:type",Object),_.S("design:paramtypes",[])],On.prototype,"expandedButtonsData",null);_.B([_.T("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.I({reflectToAttribute:!0}),_.S("design:type",Object),_.S("design:paramtypes",[])],On.prototype,"showNewnessDot",null);_.B([_.a4("#expanded-buttons"),_.S("design:type",HTMLElement)],On.prototype,"expandedButtons",void 0);
_.B([_.qM("expandedButtonsData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],On.prototype,"expandedButtonsChanged",null);On=_.B([_.DO({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],On);
_.G(On,"yt-reaction-control-panel-view-model",function(){if(KVS===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;kNS===void 0&&(kNS=document.createElement("template"));var O=kNS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);KVS=f}f=KVS;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var c8=new _.Mx("yt-live-chat"),qRN=Date.parse("2024-7-24"),XQ=function(){var f=_.U.apply(this,arguments)||this;f.emojiManager=_.Hd;f.newnessDotEligible=!1;f.newnessDotImpressionCounted=!1;f.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return f};
_.y(XQ,_.U);_.X=XQ.prototype;_.X.emojiCustomizationEnabledChanged=function(){var f;((f=this.data)==null?0:f.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((f=c8.getCreationTime("emoji-customization-count"))&&f<qRN&&c8.set("emoji-customization-count","0"),f=Number(c8.get("emoji-customization-count"))||0,f<3&&(this.newnessDotEligible=!0,c8.set("emoji-customization-count",(f+1).toString())),this.newnessDotImpressionCounted=!0)};
_.X.hideNewnessDot=function(){this.newnessDotEligible=!1;c8.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.X.handleReactionsMute=function(f){var R=_.z4(),u=_.dx(206221),O={checkboxData:{state:f?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};R&&_.Sa(R,u,O);this.reactionsMuted=f};
_.X.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.X.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}}};
_.Vy.Object.defineProperties(XQ.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var f;return(!((f=this.liveReactionsData)==null||!f.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
XQ.prototype.liveReactionsSettingChanged=XQ.prototype.liveReactionsSettingChanged;XQ.prototype.emojiCustomizationEnabledChanged=XQ.prototype.emojiCustomizationEnabledChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HT),_.S("design:type",Object)],XQ.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],XQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],XQ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",_.Je)],XQ.prototype,"emojiManager",void 0);_.B([_.I(),_.S("design:type",Object)],XQ.prototype,"newnessDotEligible",void 0);_.B([_.I(),_.S("design:type",Object)],XQ.prototype,"newnessDotImpressionCounted",void 0);
_.B([_.I({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Qlh}),_.S("design:type",Boolean)],XQ.prototype,"liveReactionsSetting",void 0);_.B([_.I({selectorArgs:["data.liveReactionsDataEntityKey"],selector:m0z}),_.S("design:type",Object)],XQ.prototype,"liveReactionsData",void 0);_.B([_.I({value:function(){var f=_.E("enable_lwe_web_mute"),R=c8.get("allow-reactions");return R===void 0?!1:!R&&f}}),
_.S("design:type",Boolean)],XQ.prototype,"reactionsMuted",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],XQ.prototype,"liveReactionsEnabled",null);_.B([_.qM("data.emojiCustomizationEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XQ.prototype,"emojiCustomizationEnabledChanged",null);
_.B([_.qM("liveReactionsEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XQ.prototype,"liveReactionsSettingChanged",null);XQ=_.B([_.DO({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],XQ);
_.G(XQ,"yt-reaction-control-panel-overlay-view-model",function(){if(h1K===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;XZK===void 0&&(XZK=document.createElement("template"));var O=XZK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);h1K=f}f=h1K;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var AG5={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(f){var R=this.$.pickers.selected;if(R){_.b(this.hostElement).removeAttribute(R+"-open");var u="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(u="#picker-buttons",R==="emoji"&&_.b(this.hostElement).querySelector("#emoji-picker-button")&&(u="#emoji-picker-button"));if(u=_.b(this.hostElement).querySelector(u).querySelector("#"+R))u.active=!1}u=f;R==f&&(u=null);R!=f&&
_.b(this.hostElement).setAttribute(f+"-open","");this.$.pickers.selected=u;_.OJ(this.hostElement,"yt-live-chat-picker-changed",[u])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var hp=function(){var f=_.U.apply(this,arguments)||this;f.numSentMessages=0;f.timeoutDurationMs=0;f.timeoutMs=0;f.lastTimeoutTimeMs=0;f.pendingMessageId="";f.hasFiredInitialFocusActions=!1;f.isBeforeFocusEnabled=!0;f.id="";f.characterCount=0;f.maxCharacterLimit=0;f.remainingCharacterCount=0;f.inputExpanded=!1;f.buttonOverrides={iconPosition:"icon-only"};f.inReplyPanel=!1;f.countdownRatio=0;f.isTooltipVisible=!1;f.tooltipTimeout=1E4;f.systemIcons=_.E("kevlar_system_icons");f.tallerEmojiPicker=_.E("live_chat_taller_emoji_picker");
f.blockSendMessageWithCountdown=!_.E("live_chat_enable_send_button_in_slow_mode");f.sendReplyMessageInFlight=!1;f.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"};f.onResize=function(){f.maybeToggleCharacterCount()};
return f};
_.y(hp,_.U);_.X=hp.prototype;
_.X.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"}}}};
_.X.attached=function(){window.addEventListener("resize",this.onResize)};
_.X.detached=function(){window.removeEventListener("resize",this.onResize)};
_.X.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.X.sendMessage=function(){var f=this,R,u,O,c;return _.k(function(h){if(f.sendDisabled)return h.return();f.isTooltipVisible&&_.OJ(f.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(f.data.sendButton&&f.data.sendButton.buttonRenderer){f.input.completeEmojis();R=f.data.sendButton.buttonRenderer.serviceEndpoint;if(!R)return h.return();O=((u=_.t(R,_.uzf))==null?void 0:u.clientIdPrefix)||"";c={client_message_id:O+String(f.numSentMessages++),rich_message:_.HM(f.input.liveChatRichMessageInput)};
f.pendingMessageId=c.client_message_id;f.inReplyPanel&&(f.sendReplyMessageInFlight=!0);_.hH(f.hostElement,[R,c]);f.input.setLiveChatRichMessageInput(null)}_.KG(h)})};
_.X.handleSendButtonAction=function(f){f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),this.sendMessage())};
_.X.onSendCompleted=function(f,R){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(f=this.get("timeoutDurationUsec",R.data))&&this.handleTimeout(Number(f)/1E3);this.errorMessage=this.get("errorMessage",R.data);this.pendingMessageId=""};
_.X.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.OJ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.X.handlePickerButtonToggle=function(f){f=f.detail.targetId;this.ytPickerBehavior.togglePicker_(f);if(f==="emoji")this.input.focus();else if(f==="qna-start-panel"){var R,u;(R=_.b(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(u=R.querySelector("#qna-creator-text-input-field"))==null||u.focus()}};
_.X.onComponentReplaced=function(f){var R,u;f.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((R=f.replacement.liveChatMessageInputRenderer)==null?0:(u=R.headerRenderer)==null?0:u.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.X.onEmojiSelect=function(f){this.input.focus();this.input.insertEmoji(f.detail)};
_.X.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.X.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.OJ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.OJ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.X.onOpenPopupAction=function(f,R){var u=this;R===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.OJ(u.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.X.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.X.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.X.focusChanged=function(){this.maybeToggleCharacterCount()};
_.X.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var f=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",f>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.X.computeId=function(){return this.data&&this.data.targetId||""};
_.X.computeSendDisabled=function(f,R,u,O){f=!!(this.blockSendMessageWithCountdown&&u||!f||R&&f>R||O);(R=_.b(this.hostElement).querySelector("#send-button"))&&R.children.length&&(R.children[0].disabled=f);return f};
_.X.handleTimeout=function(f){this.timeoutDurationMs=this.timeoutMs=f;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.X.updateTimeout=function(f){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(f-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=f,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.X.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.X.onErrorMessageEdit=function(f){this.input.setLiveChatRichMessageInput(f.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.X.errorMessageChanged=function(){var f=this;_.P2(function(){_.OJ(f.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.X.computeAuthorNameColor=function(f){var R;if(_.E("live_chat_author_name_color_usernames")&&(f==null?0:(R=f.authorName)==null?0:R.simpleText))return _.wV0(_.mYe(f.authorName.simpleText));if(_.E("live_chat_seed_color_usernames")&&(f==null?0:f.authorSeedColorArgb))return _.wV0(_.h4(f.authorSeedColorArgb));if(_.E("live_chat_colored_usernames"))return"#cc0000";var u;return _.E("live_chat_simple_color_usernames")&&(f==null?0:(u=f.authorName)==null?0:u.simpleText)&&(f==null?0:f.authorUsernameColorLight)&&
(f==null?0:f.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.h4(f.authorUsernameColorDark):_.h4(f.authorUsernameColorLight):""};
_.X.onIsTooltipVisibleChanged=function(){var f=_.b(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){f.hidden=!1;f.setAttribute("role","alert")},0):(f.hidden=!0,f.removeAttribute("role"))};
_.X.onFocusedChanged=function(f){this.inputFocused=f.detail.value};
_.Vy.Object.defineProperties(hp.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 f;return!((f=this.data)==null||!f.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:(R=f.pickers)==null?void 0:R.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return f?this.ytRendererBehavior.getSimpleString(f):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
hp.prototype.onIsTooltipVisibleChanged=hp.prototype.onIsTooltipVisibleChanged;hp.prototype.errorMessageChanged=hp.prototype.errorMessageChanged;hp.prototype.onErrorMessageEdit=hp.prototype.onErrorMessageEdit;hp.prototype.onErrorMessageDismiss=hp.prototype.onErrorMessageDismiss;hp.prototype.focusChanged=hp.prototype.focusChanged;hp.prototype.characterCountChanged=hp.prototype.characterCountChanged;hp.prototype.onEmojiSelect=hp.prototype.onEmojiSelect;hp.prototype.handlePickerButtonToggle=hp.prototype.handlePickerButtonToggle;
hp.prototype.onSendError=hp.prototype.onSendError;hp.prototype.onSendCompleted=hp.prototype.onSendCompleted;hp.prototype.sendMessage=hp.prototype.sendMessage;hp.prototype.dataChanged=hp.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],hp.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(AG5.YtPickerBehavior),_.S("design:type",Object)],hp.prototype,"ytPickerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.Ir.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],hp.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"hasFiredInitialFocusActions",void 0);
_.B([_.I(),_.S("design:type",Object)],hp.prototype,"isBeforeFocusEnabled",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"data",void 0);_.B([_.I({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",Object)],hp.prototype,"id",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"characterCount",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"maxCharacterLimit",void 0);
_.B([_.I(),_.S("design:type",Object)],hp.prototype,"remainingCharacterCount",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hp.prototype,"inputExpanded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],hp.prototype,"inputFocused",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],hp.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.B([_.I(),_.S("design:type",_.e$)],hp.prototype,"participantsManager",void 0);
_.B([_.I(),_.S("design:type",Object)],hp.prototype,"buttonOverrides",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hp.prototype,"inReplyPanel",void 0);_.B([_.T("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hp.prototype,"sendDisabled",null);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"countdownRatio",void 0);
_.B([_.T("countdownRatio"),_.S("design:type",Number),_.S("design:paramtypes",[])],hp.prototype,"countdownStrokeDashOffset",null);_.B([_.T("countdownRatio"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hp.prototype,"countdownActive",null);_.B([_.T("data.interactionMessage"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hp.prototype,"hasInteractionMessage",null);
_.B([_.T("data.emojiPickerButton"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hp.prototype,"hasEmojiPickerButton",null);_.B([_.T("data, characterCount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hp.prototype,"showAvatar",null);_.B([_.T("data.pickers"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hp.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.I(),_.S("design:type",Object)],hp.prototype,"errorMessage",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"genericErrorMessage",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"isTooltipVisible",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"tooltipTimeout",void 0);_.B([_.T("data.onInitialFocusCommand"),_.S("design:type",String),_.S("design:paramtypes",[])],hp.prototype,"tooltipMessage",null);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hp.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hp.prototype,"tallerEmojiPicker",void 0);_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],hp.prototype,"authorNameColor",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hp.prototype,"blockSendMessageWithCountdown",void 0);_.B([_.I(),_.S("design:type",Object)],hp.prototype,"sendReplyMessageInFlight",void 0);
_.B([_.a4("#input"),_.S("design:type",_.JvG)],hp.prototype,"input",void 0);_.B([_.a4("#count"),_.S("design:type",HTMLElement)],hp.prototype,"count",void 0);_.B([_.a4("#input-container"),_.S("design:type",HTMLElement)],hp.prototype,"inputContainer",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"dataChanged",null);
_.B([_.Kf("yt-live-chat-send-message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],hp.prototype,"sendMessage",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[Event,_.S6]),_.S("design:returntype")],hp.prototype,"onSendCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"onSendError",null);
_.B([_.Kf("yt-live-chat-icon-toggle-button-renderer-toggle"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hp.prototype,"handlePickerButtonToggle",null);_.B([_.Kf("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hp.prototype,"onEmojiSelect",null);
_.B([_.qM("characterCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"characterCountChanged",null);_.B([_.qM("inputFocused"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"focusChanged",null);_.B([_.Kf("yt-live-chat-error-message-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"onErrorMessageDismiss",null);
_.B([_.Kf("yt-live-chat-error-message-edit"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hp.prototype,"onErrorMessageEdit",null);_.B([_.qM("errorMessage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"errorMessageChanged",null);_.B([_.qM("isTooltipVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hp.prototype,"onIsTooltipVisibleChanged",null);
hp=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],hp);
_.G(hp,"yt-live-chat-message-input-renderer",function(){if(Idm===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;H_l===void 0&&(H_l=document.createElement("template"));var O=H_l;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Idm=f}f=Idm;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var aJh;var FVl;var Z3=function(){var f=_.U.apply(this,arguments)||this;f.systemIcons=_.E("kevlar_system_icons");f.firedOnClickCommand=!1;f.inReplyPanel=!1;return f};
_.y(Z3,_.U);
Z3.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"}}}};
Z3.prototype.onButtonToggle=function(f){f.target.disabled||this.ytPickerBehavior.togglePicker_(f.detail.targetId)};
Z3.prototype.onClick=function(){var f=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.OJ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return f.firedOnClickCommand=!1},5E3))};
_.Vy.Object.defineProperties(Z3.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:(R=f.panels)==null?void 0:R.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}}});
Z3.prototype.onButtonToggle=Z3.prototype.onButtonToggle;_.B([_.z(AG5.YtPickerBehavior),_.S("design:type",Object)],Z3.prototype,"ytPickerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Z3.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Z3.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Object)],Z3.prototype,"firedOnClickCommand",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Z3.prototype,"inReplyPanel",void 0);_.B([_.T("data.pickers"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Z3.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.Kf("yt-live-chat-icon-toggle-button-renderer-toggle"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Z3.prototype,"onButtonToggle",null);Z3=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Z3);
_.G(Z3,"yt-live-chat-restricted-participation-renderer",function(){if(FVl===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;aJh===void 0&&(aJh=document.createElement("template"));var O=aJh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);FVl=f}f=FVl;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var l7=function(){var f=_.U.apply(this,arguments)||this;f.genericErrorMessage=_.S8("Error, try again.");f.inReplyPanel=!1;f.hideBorder=!1;return f};
_.y(l7,_.U);l7.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}}}}}};
_.Vy.Object.defineProperties(l7,{template:{configurable:!0,enumerable:!0,get:function(){return jT2()}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],l7.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],l7.prototype,"genericErrorMessage",void 0);_.B([_.I(),_.S("design:type",Object)],l7.prototype,"inReplyPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],l7.prototype,"hideBorder",void 0);
l7=_.B([_.DO({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],l7);_.G(l7,"yt-live-chat-engagement-panel-input-renderer",function(){return jT2()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var wZw,mJX;wZw=_.dx(115994);mJX=_.dx(115993);_.kY=function(f,R,u){var O=this;var c=u.dragDownAction;this.layer=0;this.JSC$19911_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.JSC$19911_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.fullscreen=!1;var h=_.wR();_.Xl(h,wZw,this.layer);_.Xl(h,mJX,this.layer);this.dragDownAction=function(){c();_.MI(h,{visualElement:O.fullscreen?wZw:mJX})};
this.gesture=new _.K$(f,R,this.JSC$19911_watchConfig,"pandown");this.attach()};
_.kY.prototype.attach=function(){this.gesture.attach()};
_.kY.prototype.detach=function(){this.gesture.detach()};
_.kY.prototype.update=function(f){this.fullscreen=f;this.gesture.config=f?this.JSC$19911_watchFullScreenConfig:this.JSC$19911_watchConfig};var QJh={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(f){if(f&&f.length==1&&Array.isArray(f[0].loggingUrls)){f=_.dq.unsafeClone(f[0]);var R=this.macros||{},u=this.getAdModuleClient_();if(!u)return _.ll();f.loggingUrls.forEach(function(O){if(O.baseUrl){var c=O.baseUrl;var h=R;h=h===void 0?{}:h;c=u.getOptions().includes("replaceUrlMacros")?_.o2A(u,"replaceUrlMacros",{url:c,additionalMapping:h}):c;O.baseUrl=c}},this);
f=[f]}return _.hH(this.hostElement,f)},
getAdModuleClient_:function(){var f=_.Vm(this);return f?(f=f.getPlayer())?new _.QG(f):null:null}}]};var WVN;var Ks=function(){var f=_.U.apply(this,arguments)||this;f.isCollapsed=!1;f.modernPanels=_.E("kevlar_watch_modern_panels");f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return f};
_.y(Ks,_.U);_.X=Ks.prototype;_.X.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.onDonateTap=function(){var f=this.get("data.donateButton.buttonRenderer.command");if(f){var R=_.z4(),u=this.get("data.donateButton.buttonRenderer.trackingParams");R&&u&&_.Sa(R,_.t4(u));this.ytOpenPopupBehavior.openPopup(f)}};
_.X.onShowMore=function(){this.isCollapsed=!1;var f=_.z4(),R=this.get("data.expandButton.buttonRenderer.trackingParams");f&&R&&_.Sa(f,_.t4(R))};
_.X.onShowLess=function(){this.isCollapsed=!0};
_.X.dataChanged=function(){_.ZO(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.handleUpdate=function(f){if(f=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",f))this.set("data.startLabel",f.startLabel),this.set("data.endLabel",f.endLabel),this.set("data.progress",f.progress),this.set("data.amountRaisedLabel",f.amountRaisedLabel),this.dataChanged()};
_.X.handleOpenPopupAction=function(f){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",f)&&_.OJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.X.computeHeaderBackgroundUrl=function(f,R){if(f)return R?f.headerBackgroundDarkUrl:f.headerBackgroundUrl};
_.X.isProgressBarVisible=function(f){return!(!f||f.progress===void 0)};
_.X.headerBackgroundClass=function(){return _.Tf("HTML_DIR")==="rtl"?"flip":""};
Ks.prototype.dataChanged=Ks.prototype.dataChanged;_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],Ks.prototype,"ytOpenPopupBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Ks.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Ks.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Ks.prototype,"isCollapsed",void 0);_.B([_.I({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.S("design:type",String)],Ks.prototype,"headerBackgroundUrl",void 0);_.B([_.I(),_.S("design:type",Boolean)],Ks.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ks.prototype,"modernPanels",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ks.prototype,"dataChanged",null);Ks=_.B([_.e({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Ks);
_.G(Ks,"ytd-donation-shelf-renderer",function(){if(WVN!==void 0)return WVN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WVN=f},{mode:1});var EX5;var qR=function(){return _.U.apply(this,arguments)||this};
_.y(qR,_.U);_.B([_.I(),_.S("design:type",Object)],qR.prototype,"data",void 0);qR=_.B([_.e({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],qR);
_.G(qR,"ytd-donation-unavailable-renderer",function(){if(EX5!==void 0)return EX5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return EX5=f},{mode:1});var t3w;var Ap=function(){return _.U.apply(this,arguments)||this};
_.y(Ap,_.U);Ap.prototype.computeIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ap.prototype,"data",void 0);Ap=_.B([_.e({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ap);
_.G(Ap,"ytd-limited-state-message-renderer",function(){if(t3w!==void 0)return t3w;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return t3w=f},{mode:1});var CW9;var ai=function(){return _.U.apply(this,arguments)||this};
_.y(ai,_.U);ai.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
ai.prototype.onTap=function(f){var R=this.data&&this.data.endpoint;R&&!_.$G(_.$S(f),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.ul(this.hostElement,"yt-navigate",{endpoint:R})};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ai.prototype,"data",void 0);ai=_.B([_.e({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],ai);
_.G(ai,"ytd-autotagging-metadata-renderer",function(){if(CW9!==void 0)return CW9;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return CW9=f},{mode:1});var yGw;var FQ=function(){return _.U.apply(this,arguments)||this};
_.y(FQ,_.U);FQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FQ.prototype,"data",void 0);FQ=_.B([_.e({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],FQ);
_.G(FQ,"ytd-autotagging-metadata-row-renderer",function(){if(yGw!==void 0)return yGw;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return yGw=f},{mode:1});var dJl;var N$h;var wO=function(){var f=_.U.apply(this,arguments)||this;f.engagementPanelContent=!1;return f};
_.y(wO,_.U);wO.prototype.computeHasDividerLine=function(f,R){return f&&!R};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.S("design:type",Boolean)],wO.prototype,"hasDividerLine",void 0);_.B([_.I(),_.S("design:type",Object)],wO.prototype,"engagementPanelContent",void 0);
wO=_.B([_.e({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],wO);
_.G(wO,"ytd-metadata-row-header-renderer",function(){if(N$h!==void 0)return N$h;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return N$h=f},{mode:1});var LV5;var md=function(){return _.U.apply(this,arguments)||this};
_.y(md,_.U);md.prototype.computeHasDividerLine=function(f){return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],md.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.S("design:type",Boolean)],md.prototype,"hasDividerLine",void 0);md=_.B([_.e({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],md);
_.G(md,"ytd-metadata-row-renderer",function(){if(LV5!==void 0)return LV5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return LV5=f},{mode:1});var b3z;var Qv=function(){return _.U.apply(this,arguments)||this};
_.y(Qv,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Qv.prototype,"data",void 0);Qv=_.B([_.e({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Qv);
_.G(Qv,"ytd-metadata-with-image-row-renderer",function(){if(b3z!==void 0)return b3z;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return b3z=f},{mode:1});var pZh;var W8=function(){var f=_.U.apply(this,arguments)||this;f.rounded=!0;f.fixie=!1;f.fullWidth=!1;return f};
_.y(W8,_.U);_.X=W8.prototype;_.X.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.onDataChanged=function(){var f=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(R){f.onEndpointLinkKeyPress(R)}))};
_.X.onEndpointLinkKeyPress=function(f){f.target===this.endpointLink&&f.keyCode===13&&_.ul(this.hostElement,"click")};
_.X.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var f;if((f=this.data)==null?0:f.endpoint)_.ZW(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.X.onYtNavigate=function(f){this.endpointHref||(f.stopPropagation(),f.preventDefault())};
_.X.onInformationButtonContainerClick=function(f){f.target.id!=="information-button-container"&&(f.stopPropagation(),f.preventDefault())};
_.X.computeStyle=function(f){return f};
_.X.computeIsThumbnailStyle=function(f){return f==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.X.computeThumbnailWidth=function(f){switch(f){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}};
_.X.computeThumbnailObjectFit=function(f){switch(f){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Vy.Object.defineProperties(W8.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
W8.prototype.onYtNavigate=W8.prototype.onYtNavigate;W8.prototype.onClick=W8.prototype.onClick;W8.prototype.onDataChanged=W8.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],W8.prototype,"componentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],W8.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],W8.prototype,"componentStyle",void 0);_.B([_.I({computed:"computeIsThumbnailStyle(data.style)"}),_.S("design:type",Boolean)],W8.prototype,"isThumbnailStyle",void 0);_.B([_.I({computed:"computeThumbnailObjectFit(data.style)"}),_.S("design:type",String)],W8.prototype,"thumbnailObjectFit",void 0);
_.B([_.I({computed:"computeThumbnailWidth(data.style)"}),_.S("design:type",Number)],W8.prototype,"thumbnailWidth",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W8.prototype,"rounded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W8.prototype,"fixie",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W8.prototype,"fullWidth",void 0);_.B([_.a4("#endpoint-link"),_.S("design:type",HTMLAnchorElement)],W8.prototype,"endpointLink",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],W8.prototype,"onDataChanged",null);_.B([_.T("data.endpoint"),_.S("design:type",Object),_.S("design:paramtypes",[])],W8.prototype,"endpointHref",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],W8.prototype,"onClick",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],W8.prototype,"onYtNavigate",null);W8=_.B([_.e({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],W8);
_.G(W8,"ytd-rich-metadata-renderer",function(){if(pZh!==void 0)return pZh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pZh=f},{mode:_.c7("kevlar_poly_si_batch_j075")?1:2});var jJt;var En=function(){var f=_.U.apply(this,arguments)||this;f.fixie=!1;f.fullWidth=!1;return f};
_.y(En,_.U);En.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
En.prototype.computeHasDividerLine=function(f){return f};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],En.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.S("design:type",Boolean)],En.prototype,"hasDividerLine",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],En.prototype,"fixie",void 0);_.B([_.I(),_.S("design:type",Object)],En.prototype,"fullWidth",void 0);
En=_.B([_.e({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],En);
_.G(En,"ytd-rich-metadata-row-renderer",function(){if(jJt!==void 0)return jJt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return jJt=f},{mode:1});var tp=function(){var f=_.U.apply(this,arguments)||this;f.engagementPanelContent=!1;f.fixie=!1;f.fullWidth=!1;return f};
_.y(tp,_.U);
tp.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"}}}};
tp.prototype.computeCollapsibleItems=function(f,R,u){return f===void 0||R===void 0||u===void 0||u?[]:f.slice(R)};
tp.prototype.computeAlwaysShownItems=function(f,R){return f&&f.length?f.slice(0,R):[]};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tp.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],tp.prototype,"collapsed",void 0);
_.B([_.I({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.S("design:type",Array)],tp.prototype,"alwaysShownItems",void 0);_.B([_.I({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.S("design:type",Array)],tp.prototype,"collapsibleItems",void 0);_.B([_.I(),_.S("design:type",Object)],tp.prototype,"engagementPanelContent",void 0);_.B([_.I(),_.S("design:type",Object)],tp.prototype,"fixie",void 0);
_.B([_.I(),_.S("design:type",Object)],tp.prototype,"fullWidth",void 0);tp=_.B([_.e({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],tp);
_.G(tp,"ytd-metadata-row-container-renderer",function(){if(dJl!==void 0)return dJl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return dJl=f},{mode:1});var DJh;var Cs=function(){var f=_.U.apply(this,arguments)||this;f.currentPageUrl="";f.baseUrl="";f.isHiddenByUser=null;f.hidden=!1;f.showAboveScrim=!1;f.watchNextGrid=_.E("kevlar_watch_grid");f.modernButtons=_.E("web_modern_buttons");f.roundedContainer=!0;f.noBorder=!1;f.roundBackground=!_.E("live_chat_round_background_killswitch");f.overflowHideChat=_.E("live_chat_overflow_hide_chat");f.forceDarkTheme=!1;f.theaterWatchWhile=!1;f.isListeningForPlayerProgress=!1;f.JSC$19947_playerEvents=new Map;f.isFrameReady=
!1;f.player=null;f.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 f};
_.y(Cs,_.U);_.X=Cs.prototype;_.X.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.c_(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.X.created=function(){var f=this;this.handleIframeEventListener=function(R){f.handleIframeEvent(R)};
this.handleKeyboardEventListener=function(R){f.handleKeyboardEvent(R)};
this.JSC$19947_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19947_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19947_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19947_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19947_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.X.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()};
_.X.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};
_.X.computeBaseUrl=function(f){var R="/live_chat";this.isChatReplay()&&(R="/live_chat_replay");return _.iV(_.vb(_.YI(_.oj(f),R),null),"").toString()};
_.X.dataChanged=function(){_.E("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.X.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var f=this.url;if(this.isChatReplay()&&this.player){var R=Math.floor(this.player.getProgressState().current*1E3);f=_.Sr(_.oj(f),"playerOffsetMs",R.toString()).toString()}R=this.chatframe;try{var u=f==="about:blank"?_.is0:_.EO(f),O=R.contentDocument.location,c=_.Nu(u);c!==void 0&&O.replace(c)}catch(h){R.src=f}}};
_.X.collapsedChanged=function(){_.ul(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.X.handleIframeEvent=function(f){if(f&&this.baseUrl.startsWith(f.origin)&&f.source===this.chatframe.contentWindow&&_.OE(f.data))if(f.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(f);else if(f.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(f.data["yt-show-feedback-dialog"]){var R=_.vh().resolve(_.Y8(_.j9k));if(R){var u=f.ports,O;u&&u.length&&(O=function(){u[0].postMessage({})});
f=f.data["yt-show-feedback-dialog"];R.showFeedbackDialog(f.customProductData,f.feedbackContent,O,f.bucket)}}else if(f.data["yt-show-survey"])_.ul(this.hostElement,"yt-show-survey",f.data["yt-show-survey"]);else if(f.data["yt-purchase-membership"])_.vh().resolve(_.rv).resolveCommand(f.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(f.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(f.data["yt-tunnel-out-live-service-request"]);else if(f.data["yt-user-activity"])_.uc();
else if(f.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(f.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(f.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(f.data["yt-open-popup"]);else if(f.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(f.data["yt-log-flow-logging-event-command"]);else if(f.data["yt-hide-live-chat"])this.onShowHideChat();else f.data["yt-report-moderation-state-log"]&&
this.player&&(R={cpn:this.player.getVideoData().cpn},_.Jr("liveChatBeingModerated",R))};
_.X.attachLiveChatResponseVeTrackingParams=function(f){f=_.t4(f);var R=_.z4(),u=_.Ph("liveChatRenderer.trackingParams",this.data);R&&u&&_.ea(R,_.t4(u),f)};
_.X.handleBuyflowMessages=function(f){var R=f.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,u=f.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,O=f.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.YRe(_.c9(_.Sk),R.replace(/-/g,"+").replace(/_/g,"/"),function(c){f.ports[0].postMessage({success:!0,buyFlowResponse:c})},void 0,function(c){f.ports[0].postMessage({success:!1,
error:c&&c.message||"Buyflow rejected without error."})},_.Qu().get("hl"),void 0,function(){f.ports[0].postMessage({closed:!0})},u,O)};
_.X.setupPlayerProgressRelay=function(){var f=this;if(!this.isListeningForPlayerProgress){var R=_.YG();R!=null&&R.getPlayerPromise&&(R.getPlayerPromise().then(function(u){f.playerApiReady(u)}),this.isListeningForPlayerProgress=!0)}};
_.X.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.X.playerApiReady=function(f){this.setPlayer(f)};
_.X.playerProgressHandler=function(){if(this.player){var f=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":f.current})}};
_.X.playerAdStartHandler=function(f){this.postToContentWindow({"yt-player-ad-start":f})};
_.X.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.X.playerStateChangeHandler=function(f){this.postToContentWindow({"yt-player-state-change":f})};
_.X.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19947_playerEvents);f&&(this.player=f,this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$19947_playerEvents),_.ul(this.hostElement,"player-api-ready"))};
_.X.liveChatPageUrl=function(f,R,u,O){return!u||R?"about:blank":u.liveChatRenderer?(R=_.oj(this.currentPageUrl).JSC$8036_queryData_,KrX(R),f=_.oj(f),R.add("continuation",u.liveChatRenderer.continuations[0].reloadContinuationData.continuation),u=_.NL()==="USER_INTERFACE_THEME_DARK",(O||u)&&R.add("dark_theme","true"),_.vb(f,R),O=_.oj(f.toString()),u=O.JSC$8036_queryData_,"SESSION_INDEX"in _.J1&&(u.add("authuser",_.Tf("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.J1&&u.add("pageId",_.Tf("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.J1&&u.add("sdc",_.Tf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),O.toString()):""};
_.X.isCollapsed=function(f,R){return R!==null?R:this.isChatReplay()||f&&f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage?!0:f?f.liveChatRenderer?f.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.E("live_chat_hide_premiere_replay_message")||f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.X.isHidden=function(f,R,u){var O=R&&R.conversationBarRenderer&&R.conversationBarRenderer.availabilityMessage,c=R&&R.liveChatRenderer&&R.liveChatRenderer.showHideButton,h=R&&R.liveChatRenderer&&R.liveChatRenderer.showButton;return u&&f&&!O&&!h||!u&&f&&!O&&!c?!0:R&&R.liveChatRenderer&&R.liveChatRenderer.initialDisplayState?R.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.X.computeButtonOverride=function(f,R){if(f&&R)return{type:"outline"}};
_.X.setCollapsedState=function(f){_.t(f,_.ozF)&&(this.isHiddenByUser=!!_.t(f,_.ozF).collapsed,!this.isHiddenByUser&&_.E("enable_teaser_framework_web_client")&&_.OJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.X.forwardReduxActionToIframe=function(f){this.postToContentWindow({"yt-live-chat-forward-redux-action":f})};
_.X.onLoopRangeChange=function(f){this.showAboveScrim=!(f==null||!f.postId)};
_.X.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.X.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.X.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.X.sendDarkThemePostMessage=function(f){this.postToContentWindow({"yt-live-chat-set-dark-theme":f})};
_.X.onLiveChatBuyFlowCallback=function(f){this.postToContentWindow({"yt-live-chat-buy-flow-callback":f})};
_.X.handleKeyboardEvent=function(f){(0,_.dq.containsValue)(knN,f.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:f.type,keyCode:f.keyCode}})};
_.X.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.X.postToContentWindow=function(f){if(this.isFrameReady)try{var R=window.location.protocol+"//"+window.location.host,u;(u=this.chatframe)!=null&&u.contentWindow?this.chatframe.contentWindow.postMessage(f,R):_.Ih(new _.ts("Tried posting a message to an iframe with no content window",f))}catch(O){_.TL(O)}};
_.X.shouldHideChatFrame=function(f){return f&&_.E("hide_live_chat_button_when_collapsed")};
_.Vy.Object.defineProperties(Cs.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.E("live_chat_overflow_hide_chat")||_.E("web_watch_chat_hide_button_killswitch"))return _.E("live_chat_overflow_hide_chat");var f,R,u,O;return!!((f=this.data)==null?0:(R=f.liveChatRenderer)==null?0:(u=R.header)==null?0:(O=u.liveChatHeaderRenderer)==null?0:O.collapseButton)}}});
Cs.prototype.collapsedChanged=Cs.prototype.collapsedChanged;Cs.prototype.urlChanged=Cs.prototype.urlChanged;Cs.prototype.dataChanged=Cs.prototype.dataChanged;Cs.prototype.onShowHideChat=Cs.prototype.onShowHideChat;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Cs.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],Cs.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],Cs.prototype,"ytOpenPopupBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Cs.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Cs.prototype,"currentPageUrl",void 0);
_.B([_.I({computed:"computeBaseUrl(currentPageUrl,data)"}),_.S("design:type",Object)],Cs.prototype,"baseUrl",void 0);_.B([_.I({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.S("design:type",String)],Cs.prototype,"url",void 0);_.B([_.I(),_.S("design:type",Object)],Cs.prototype,"isHiddenByUser",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.S("design:type",Object)],Cs.prototype,"hidden",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.S("design:type",Boolean)],Cs.prototype,"collapsed",void 0);_.B([_.I({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.S("design:type",Boolean)],Cs.prototype,"hideChatFrame",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Cs.prototype,"showAboveScrim",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Cs.prototype,"watchNextGrid",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Cs.prototype,"modernButtons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Cs.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Cs.prototype,"noBorder",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Cs.prototype,"roundBackground",void 0);
_.B([_.I({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.S("design:type",Object)],Cs.prototype,"toggleButtonOverride",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Cs.prototype,"overflowHideChat",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Cs.prototype,"forceDarkTheme",void 0);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cs.prototype,"enableShowWithoutHideChatButton",null);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Cs.prototype,"theaterWatchWhile",void 0);_.B([_.a4("#chatframe"),_.S("design:type",HTMLIFrameElement)],Cs.prototype,"chatframe",void 0);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cs.prototype,"onShowHideChat",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cs.prototype,"dataChanged",null);
_.B([_.qM("url"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cs.prototype,"urlChanged",null);_.B([_.qM("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cs.prototype,"collapsedChanged",null);Cs=_.B([_.e({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Cs);
_.G(Cs,"ytd-live-chat-frame",function(){if(DJh!==void 0)return DJh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return DJh=f},{mode:1});var JGK;var yv=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_modern_buttons");f.buttonOverrides={style:"call-to-action",type:"filled"};return f};
_.y(yv,_.U);yv.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=_.I1(this.data.backgroundColor)))};
yv.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var f=this.getFormattedStringLoggingDirectives(this.data.headline);f&&this.rendererBehavior.logExplicitClick(f)}};
yv.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var f=this.getFormattedStringLoggingDirectives(this.data.description);f&&this.rendererBehavior.logExplicitClick(f)}};
yv.prototype.getFormattedStringLoggingDirectives=function(f){return f&&f.runs&&f.runs.length>0&&f.runs[0]&&f.runs[0].loggingDirectives?f.runs[0].loggingDirectives:null};
yv.prototype.dataChanged=yv.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yv.prototype,"rendererBehavior",void 0);_.B([_.z(QJh.YtMacroReplacementBehavior),_.S("design:type",Object)],yv.prototype,"macroReplacementBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yv.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],yv.prototype,"navigationEndpoint",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],yv.prototype,"enableColors",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yv.prototype,"modern",void 0);_.B([_.I(),_.S("design:type",Object)],yv.prototype,"buttonOverrides",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yv.prototype,"dataChanged",null);yv=_.B([_.e({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],yv);
_.G(yv,"ytd-action-basic-immersive-content-renderer",function(){if(JGK!==void 0)return JGK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return JGK=f},{mode:1});var z1m;var T$X;var dO=function(){return _.U.apply(this,arguments)||this};
_.y(dO,_.U);dO.prototype.dataChanged=function(){var f;((f=this.data)==null?void 0:f.backgroundColor)!==void 0&&_.ZO(this.hostElement,{"--bgu-color":_.I1(this.data.backgroundColor)})};
dO.prototype.onImageTileClick=function(){var f;((f=this.data)==null?0:f.navigationEndpoint)&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var R;((R=this.data)==null?0:R.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Vy.Object.defineProperties(dO.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?void 0:f.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 f;return((f=this.data)==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var f,R,u;if(((f=this.data)==null?void 0:(R=f.detailsLine)==null?void 0:R.texts)!=null&&((u=this.data)==null?void 0:u.detailsLine.texts.length)>0){var O;return(O=this.data)==null?void 0:O.detailsLine.texts.map(function(c){return c.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var f,R,u;if(((f=this.data)==null?void 0:(R=f.optionalDetailsLine)==null?void 0:R.texts)!=null&&((u=this.data)==null?void 0:u.optionalDetailsLine.texts.length)>0){var O;return(O=this.data)==null?void 0:O.optionalDetailsLine.texts.map(function(c){return c.text}).join("")}return null}}});
dO.prototype.dataChanged=dO.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dO.prototype,"rendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],dO.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.backgroundColor"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],dO.prototype,"hasBackgroundColor",null);
_.B([_.T("data.objectFit"),_.S("design:type",Object),_.S("design:paramtypes",[])],dO.prototype,"getObjectFit",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.tileRenderingStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],dO.prototype,"hasTileMetadata",null);_.B([_.T("data.detailsLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],dO.prototype,"getSecondaryDetails",null);
_.B([_.T("data.optionalDetailsLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],dO.prototype,"getOptionalDetails",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dO.prototype,"dataChanged",null);dO=_.B([_.e({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],dO);
_.G(dO,"ytd-image-tile-renderer",function(){if(T$X!==void 0)return T$X;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return T$X=f},{mode:1});var H3w;var NR=function(){return _.U.apply(this,arguments)||this};
_.y(NR,_.U);NR.prototype.getOpenLinkIcon=function(){return _.E("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
NR.prototype.onSitelinkTap=function(){_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.E("kevlar_command_handler_migration_killswitch"))_.ZW(this.hostElement,this.data.clickCommands,this.hostElement);else for(var f=_.Z(this.data.clickCommands),R=f.next();!R.done;R=f.next())this.ytComponentBehavior.resolveCommand(R.value)};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],NR.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NR.prototype,"rendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],NR.prototype,"data",void 0);NR=_.B([_.e({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],NR);
_.G(NR,"ytd-sitelink-renderer",function(){if(H3w!==void 0)return H3w;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return H3w=f},{mode:1});var Ls=function(){var f=_.U.apply(this,arguments)||this;f.paddingFix=_.E("enable_ads_web_ep_buenos_aires_and_padding_fix");return f};
_.y(Ls,_.U);Ls.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"}}}};
Ls.prototype.dataChanged=function(){var f=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(R){R.clickTrackingParams&&delete R.clickTrackingParams;f.ytMacroReplacementBehavior.sendServiceRequestAction([R])})};
Ls.prototype.shouldHideFooter=function(f){return!(f&&_.E("use_ads_engagement_panel_desktop_footer_cta"))};
_.Vy.Object.defineProperties(Ls.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.imageTileRenderers)===void 0||((R=this.data)==null?void 0:R.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var O;return(O=_.t(u,wkm))==null?void 0:O.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.imageTileRenderers)===void 0||((R=this.data)==null?void 0:R.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var O;return((O=_.t(u,wkm))==null?void 0:O.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Ls.prototype.dataChanged=Ls.prototype.dataChanged;_.B([_.z(QJh.YtMacroReplacementBehavior),_.S("design:type",Object)],Ls.prototype,"ytMacroReplacementBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ls.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ls.prototype,"paddingFix",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.imageTileRenderers"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ls.prototype,"removeBorderFromImageTiles",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.imageTileRenderers"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ls.prototype,"useFooteredMetadataRenderingStyle",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ls.prototype,"dataChanged",null);Ls=_.B([_.e({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Ls);
_.G(Ls,"ytd-action-engagement-panel-content-renderer",function(){if(z1m!==void 0)return z1m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return z1m=f},{mode:1});var IJl;var M3K=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;f=_.sW();_.gW(f,function(){return R().interaction},u);
_.fT(f,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});return _.a("ad-grid-card-image-full-metadata-view-model",{class:function(){var O;return((O=R().interaction)==null?0:O.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:f,"aria-label":function(){var O,c;return(O=R().interaction)==null?void 0:(c=O.accessibility)==null?void 0:c.label}},_.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(O){return _.a(_.la,{data:O.data,
customCommandResolver:u})}})),_.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.a(_.Q,{cond:function(){return R().headline},
then:function(O){return _.a(_.YO,{text:O,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.a(_.Q,{cond:function(){return R().detailsLine},
then:function(O){return _.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.a(_.y5,{data:O},{adDetailsLineViewModel:function(c){return _.a(_.fO,{data:c.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.a(_.Q,{cond:function(){return R().secondaryDetailsLine},
then:function(O){return _.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.a(_.y5,{data:O},{adDetailsLineViewModel:function(c){return _.a(_.fO,{data:c.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ki");var PWe=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;f=_.sW();_.gW(f,function(){return R().interaction},u);
_.fT(f,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});return _.a("ad-grid-card-image-view-model",{class:function(){var O;return((O=R().interaction)==null?0:O.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:f,"aria-label":function(){var O,c;return(O=R().interaction)==null?void 0:(c=O.accessibility)==null?void 0:c.label}},_.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(O){return _.a(_.la,{data:O.data,
customCommandResolver:u})}}),_.a("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.a(_.y5,{data:function(){return R().adCardBadge}},{adCardBadgeViewModel:_.KSk})))},"Li");var UJa=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;f=_.sW();_.gW(f,function(){return R().interaction},u);
_.fT(f,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});return _.a("ad-grid-card-text-view-model",{class:function(){var O;return((O=R().interaction)==null?0:O.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:f,"aria-label":function(){var O,c;return(O=R().interaction)==null?void 0:(c=O.accessibility)==null?void 0:c.label}},_.a("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.a(_.Q,{cond:function(){return R().title},
then:function(O){return _.a(_.YO,{text:O,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.a("div",{class:function(){return _.E("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.a(_.EC,{each:function(){var O;
return((O=R())==null?void 0:O.descriptions)||[]},
keyBy:"INDEX"},function(O){return _.a(_.YO,{text:O,className:function(){return _.E("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.a("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.a(_.y5,{data:function(){return R().moreInfoButton}},{adButtonViewModel:function(O){return _.a(_.Yy,{data:O.data,
customCommandResolver:u})}})))},"Mi");var e1w=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;var O=f.adGridCardCollectionStyle;f=_.sW();_.fT(f,{visibilityCallback:function(c){var h,l=(h=R().interaction)==null?void 0:h.onFirstVisible;c&&l&&_.Ux(l)},
showOption:_.nY});return _.a("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:f,style:function(){return"grid-template-columns: repeat("+jlm(O?O():R().style)+", minmax(0, 1fr));"}},_.a(_.y5,{data:function(){var c;
return(c=R())==null?void 0:c.gridCards}},{adGridCardImageViewModel:function(c){return _.a(PWe,{data:c.data,
customCommandResolver:u})},
adGridCardImageFullMetadataViewModel:function(c){return _.a(M3K,{data:c.data,customCommandResolver:u})},
adGridCardTextViewModel:function(c){return _.a(UJa,{data:c.data,customCommandResolver:u})}}))},"Ni");_.ii(_.nf(function(f){var R=f.data;f=_.sW();_.gW(f,function(){return R().interaction},D0N);
_.fT(f,{visibilityCallback:function(u){var O,c=(O=R().interaction)==null?void 0:O.onFirstVisible;u&&c&&_.Ux(c)},
showOption:_.nY});return _.a("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:f},_.a("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.a(_.Q,{cond:_.zEq("(min-width: "+((0,_.pw)()+_.MP)+"px)"),then:function(){return _.a(_.y5,{data:function(){return R().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.a(e1w,{data:u.data,
customCommandResolver:D0N})}})},
else:function(){return _.a(_.y5,{data:function(){return R().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.a(e1w,{data:u.data,
customCommandResolver:D0N,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.a("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.a(_.y5,{data:function(){return R().adButton}},{adButtonViewModel:function(u){return _.a(_.Yy,{data:u.data,
customCommandResolver:D0N})}})))},"Oi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;f=_.sW();_.gW(f,function(){return R().interaction},JWa);
_.fT(f,{visibilityCallback:function(u){var O,c=(O=R().interaction)==null?void 0:O.onFirstVisible;u&&c&&_.Ux(c)},
showOption:_.nY});return _.a("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:f},_.a("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.a(_.y5,{data:function(){if(_.zEq("(min-width: "+((0,_.pw)()+_.MP)+"px)")())var u=R().adGridCardCollection;else{u=Object.assign({},_.t(R().adGridCardCollection,m4t));var O;u.gridCards!==void 0&&((O=u.gridCards)==null?void 0:O.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 _.a(e1w,{data:u.data,
customCommandResolver:JWa})}})),_.a("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.a(_.y5,{data:function(){return R().adButton}},{adButtonViewModel:function(u){return _.a(_.Yy,{data:u.data,
customCommandResolver:JWa})}})))},"Pi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.SG}});var b7=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return f};
_.y(b7,_.U);_.X=b7.prototype;_.X.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"}}}};
_.X.attached=function(){this.getDataFromPlayerAndRender()};
_.X.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.X.getDataFromPlayerAndRender=function(){var f=this,R=_.Vm(this.hostElement);R&&R.getPlayerPromise().then(function(u){f.getCachedDataAndListen(u)})};
_.X.getCachedDataAndListen=function(f){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=f)};
_.X.resolveCachedActions=function(){var f=_.Ph("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(f=f&&f())&&!_.dq.isEmpty(f)&&this.sendUpdateEngagementPanelAction(f);(f=(f=_.Ph("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&f())&&!_.dq.isEmpty(f)&&this.sendChangeEngagementPanelVisibilityAction(f);(f=(f=_.Ph("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&f())&&!_.dq.isEmpty(f)&&this.sendScrollToEngagementPanelCommand(f)};
_.X.sendUpdateEngagementPanelAction=function(f){var R;_.OJ(this.hostElement,"yt-update-engagement-panel-action",[(R=_.dq.get(f,"action"))!=null?R:f])};
_.X.sendChangeEngagementPanelVisibilityAction=function(f){_.OJ(this.hostElement,"yt-change-engagement-panel-visibility-action",[f])};
_.X.sendScrollToEngagementPanelCommand=function(f){_.OJ(this.hostElement,"yt-scroll-to-engagement-panel-command",[f])};
_.X.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.E("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Ih(Error("fm"))};
b7.prototype.dataChanged=b7.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],b7.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],b7.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],b7.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],b7.prototype,"player",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],b7.prototype,"dataChanged",null);b7=_.B([_.e({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],b7);
_.G(b7,"ytd-ads-engagement-panel-content-renderer",function(){if(IJl!==void 0)return IJl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return IJl=f},{mode:1});var GN5;var ps=function(){var f=_.U.apply(this,arguments)||this;f.player=null;f.JSC$19984_playerEvents=new Map;f.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return f};
_.y(ps,_.U);_.X=ps.prototype;_.X.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]]"}}}}}};
_.X.created=function(){this.player=null;this.JSC$19984_playerEvents=new Map;this.JSC$19984_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19984_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19984_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19984_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.X.attached=function(){var f=this,R=_.Vm();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));R&&R.getPlayerPromise().then(function(u){f.setPlayer(u);f.set("isPageLoad",!1)})};
_.X.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19984_playerEvents);this.set("player",f);f&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$19984_playerEvents),f.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.X.onLoopRangeChange=function(f){var R=_.vh().resolve(_.Y8(_.sz));if((!R||R.isOnWatch())&&this.hostElement.clientHeight){var u;!f&&((u=this.data)==null?0:u.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.X.onVideoProgress=function(f){var R,u,O=((R=this.player)==null?void 0:(u=R.getPresentingPlayerType)==null?void 0:u.call(R))===2;this.isAdPlaying!==O&&this.set("isAdPlaying",O);var c;if(!O&&(c=this.player)!=null&&c.getLoopRange()){u=this.player.getLoopRange();R=u.startTimeMs;u=u.endTimeMs;O=this.player.getProgressState(1).seekableStart;var h;R<O*1E3&&((h=this.data)==null?0:h.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
f=u<f*1E3;var l;((l=this.player)==null?0:l.getLoopRange())&&f&&this.player.seekTo(R/1E3)}};
_.X.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.X.onYtDeleteClipEngagementPanelCommand=function(f){_.t(f,zEX).command&&this.ytComponentBehavior.resolveCommand(_.t(f,zEX).command)};
_.Vy.Object.defineProperties(ps.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.S8("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],ps.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ps.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],ps.prototype,"isAdPlaying",void 0);_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],ps.prototype,"isPageLoad",void 0);_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],ps.prototype,"isDarkTheme",void 0);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ps.prototype,"voteCount",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ps.prototype,"channelEndpoint",null);_.B([_.T("channelEndpoint"),_.S("design:type",Object),_.S("design:paramtypes",[])],ps.prototype,"channelHref",null);ps=_.B([_.e({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],ps);
_.G(ps,"ytd-clip-attribution-renderer",function(){if(GN5!==void 0)return GN5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return GN5=f},{mode:1});var B$K;var jO=function(){var f=_.U.apply(this,arguments)||this;f.player=null;f.JSC$19989_playerEvents=new Map;return f};
_.y(jO,_.U);_.X=jO.prototype;_.X.created=function(){this.player=null;this.JSC$19989_playerEvents=new Map;this.JSC$19989_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19989_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19989_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.X.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.X.attached=function(){var f=this,R=_.Vm();R&&R.getPlayerPromise().then(function(u){f.setPlayer(u);f.set("isPageLoad",!1)})};
_.X.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19989_playerEvents);this.set("player",f);if(f){this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$19989_playerEvents);var R;(f==null?void 0:(R=f.getPresentingPlayerType)==null?void 0:R.call(f))===2&&this.playerAdStartHandler()}};
_.X.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.X.onVideoProgress=function(){var f,R,u=((f=this.player)==null?void 0:(R=f.getPresentingPlayerType)==null?void 0:R.call(f))===2;this.isAdPlaying!==u&&this.set("isAdPlaying",u)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],jO.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],jO.prototype,"isAdPlaying",void 0);
_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],jO.prototype,"isPageLoad",void 0);jO=_.B([_.e({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],jO);
_.G(jO,"ytd-clip-section-footer-renderer",function(){if(B$K!==void 0)return B$K;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return B$K=f},{mode:1});var oX5;var xJX;var D3=function(){return _.U.apply(this,arguments)||this};
_.y(D3,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],D3.prototype,"data",void 0);D3=_.B([_.e({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],D3);
_.G(D3,"ytd-clip-ad-state-renderer",function(){if(xJX!==void 0)return xJX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return xJX=f},{mode:1});var SRm;var Jp=function(){var f=_.U.apply(this,arguments)||this;f.value="";f.valid=!1;f.userChangedValue=!1;f.disabled=!1;f.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return f};
_.y(Jp,_.U);_.X=Jp.prototype;_.X.detached=function(){this.userChangedValue=!1};
_.X.handleKeyDown=function(f){if(_.co)var R=13;else _.km2&&_.XA?R=13:R=13;f.keyCode===R&&f.preventDefault()};
_.X.handleInput=function(){var f=_.b(this.hostElement).querySelector("#title");if(f){var R=(f.value||"").replace(/\r|\n/g," ");this.set("value",R);f.value=R;this.valid=f.validate();this.userChangedValue=!0}};
_.X.handleBlur=function(){this.valid=_.b(this.hostElement).querySelector("#title").validate()};
_.X.onValueChanged=function(){_.ul(this.hostElement,"title-changed",{title:this.value})};
_.X.onValidChanged=function(){_.ul(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.X.setInput=function(f,R){var u=_.b(this.hostElement).querySelector("#title");u&&(u.value=f,this.handleInput(),R&&(u.invalid=!1,this.valid=!0))};
_.X.onClipCreationDisable=function(){this.set("disabled",!0)};
_.X.onClipCreationEnable=function(){this.set("disabled",!1)};
_.X.onClipCreationVisibilityChange=function(f){var R=this;f.visible?requestAnimationFrame(function(){var u;((u=_.b(R.hostElement).querySelector("#title"))==null?void 0:u.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Jp.prototype.onValidChanged=Jp.prototype.onValidChanged;Jp.prototype.onValueChanged=Jp.prototype.onValueChanged;Jp.prototype.handleBlur=Jp.prototype.handleBlur;Jp.prototype.handleInput=Jp.prototype.handleInput;Jp.prototype.handleKeyDown=Jp.prototype.handleKeyDown;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Jp.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Jp.prototype,"value",void 0);_.B([_.I(),_.S("design:type",Object)],Jp.prototype,"valid",void 0);_.B([_.I(),_.S("design:type",Object)],Jp.prototype,"userChangedValue",void 0);_.B([_.I(),_.S("design:type",Object)],Jp.prototype,"disabled",void 0);_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],Jp.prototype,"handleKeyDown",null);
_.B([_.Kf("input"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jp.prototype,"handleInput",null);_.B([_.Kf("blur"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jp.prototype,"handleBlur",null);_.B([_.qM("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jp.prototype,"onValueChanged",null);
_.B([_.qM("valid"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jp.prototype,"onValidChanged",null);Jp=_.B([_.e({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Jp);
_.G(Jp,"ytd-clip-creation-text-input-renderer",function(){if(SRm!==void 0)return SRm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return SRm=f},{mode:1});var $J9;var gXl;var sJ5;var nXw;var V3S;var z6=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};f.pendingStoryboardImages_={};f.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];f.tickLabelInterval=30;f.mediumTickInterval=5;f.largeTickInterval=15;f.aboveRulerHeight=32;f.rulerHeight=50;f.smallTickHeight=4;f.mediumTickHeight=8;f.largeTickHeight=16;f.mediaListeners_=
{};return f};
_.y(z6,_.U);_.X=z6.prototype;_.X.attached=function(){var f=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(R){R=_.Z(["screen and (min-resolution: "+R+")","screen and (max-resolution: "+R+")"]);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=window.matchMedia(u);O&&(f.mediaListeners_[u]=f.updatePixelRatio_.bind(f),O.addEventListener?O.addEventListener("change",f.mediaListeners_[u]):O.addListener?O.addListener(f.mediaListeners_[u]):delete f.mediaListeners_[u])}})};
_.X.detached=function(){this.setPlayer(null);for(var f=_.Z(Object.keys(this.mediaListeners_)),R=f.next();!R.done;R=f.next()){var u=R.value;R=this.mediaListeners_[u];(u=window.matchMedia(u))&&(u.removeEventListener?u.removeEventListener("change",R):u.removeListener&&u.removeListener(R))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.X.onVisibilityChangedAction_=function(f){var R=this;f.visible&&!this.player_&&(f=_.Vm())&&f.getPlayerPromise().then(function(u){R.setPlayer(u)})};
_.X.setPlayer=function(f){f&&this.set("player_",f)};
_.X.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.X.setUpCanvas_=function(){var f=this.rulerWidth,R=this.devicePixelRatio_,u=this.visible;this.set("canvasReady_",!1);if(u&&R!==0){u=this.aboveRulerHeight+this.rulerHeight;var O=_.b(this.hostElement).querySelector("#ticks");O.width=f*R;O.height=u*R;O.style.width=f+"px";O.style.height=u+"px";O.getContext("2d").scale(R,R);this.set("canvasReady_",!0)}};
_.X.drawRuler_=function(f,R,u,O,c,h,l,K,q,F,w,m){f&&u&&R&&(f=_.b(this.hostElement).querySelector("#ticks"),R=f.getContext("2d"),R.clearRect(0,0,f.width,f.height),R.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),R.lineWidth=2,R.beginPath(),R.moveTo(0,this.aboveRulerHeight),R.lineTo(f.width,this.aboveRulerHeight),R.moveTo(0,f.height),R.lineTo(f.width,f.height),R.stroke(),this.drawRulerTicks_(f,h,c,O),this.drawStoryboardImages_(f,u,h,c,O),R.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
R.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(l-h,O,!1),this.rulerHeight),u=this.timeToPixels_(K-h,O,!1),R.fillRect(u,this.aboveRulerHeight,f.width-u,this.rulerHeight),this.drawSpeedLines_(f,h,m))};
_.X.drawRulerTicks_=function(f,R,u,O){var c=f.getContext("2d");c.save();c.lineWidth=1;for(var h=Math.floor(Math.max(0,R-this.tickLabelInterval));h<R+u;h++){c.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var l=(h-R)*O;c.beginPath();c.moveTo(l,f.height);var K=this.smallTickHeight;h%this.largeTickInterval===0?K=this.largeTickHeight:h%this.mediumTickInterval===0&&(K=this.mediumTickHeight);c.lineTo(l,f.height-K);c.stroke();h%this.tickLabelInterval===0&&(c.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),c.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),c.fillText(p7(h),l+4,12),c.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),c.moveTo(l,0),c.lineTo(l,this.aboveRulerHeight),c.stroke())}c.restore()};
_.X.percentToHex_=function(f){f=Math.round(f*255).toString(16);f.length<2&&(f="0"+f);return f};
_.X.drawSpeedLines_=function(f,R,u){var O=f.getContext("2d");O.save();var c=Math.min(25,Math.abs(u)-15)/25,h=f.width*.3*c,l=f.width*-.3,K=f.width*1.3,q=this.aboveRulerHeight;f=f.height;var F=Math.round(4*c),w=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");w.length<7&&(w="#"+w.substring(1,4).repeat(2));var m=this.percentToHex_(.5+c/2);m=w+m;w+="00";if(c>0)for(c=0;c<F;c++){var W=l+Math.random()*(K-l),C=q+Math.random()*(f-q),d=h+R%h,p=O.createLinearGradient(W,C,W+d,C);
u<0?(p.addColorStop(0,m),p.addColorStop(.4,m),p.addColorStop(.9,w)):(p.addColorStop(.1,w),p.addColorStop(.6,m),p.addColorStop(1,m));O.strokeStyle=p;O.lineWidth=1;O.beginPath();O.moveTo(W,C);O.lineTo(W+d,C);O.stroke()}O.restore()};
_.X.getStoryboardForTime_=function(f,R,u){u===void 0&&(u=R.getNumberOfStoryboardLevels()-1);f=R.getStoryboardFrameIndex(f,u);return R.getStoryboardFrame(f,u)};
_.X.drawStoryboardImages_=function(f,R,u,O,c){if(!this.disabled){f=f.getContext("2d");var h=this.getStoryboardForTime_(0,R);if(h){var l=h.width/h.columns;h=h.height/h.rows;var K=l/h,q=this.rulerHeight*K;q=this.tickLabelInterval*(K<this.tickLabelInterval*c/this.rulerHeight?1/Math.floor(this.tickLabelInterval*c/q):Math.round(q/(this.tickLabelInterval*c)));var F=q*c,w=this.rulerHeight,m=F/this.rulerHeight,W=Math.floor(Math.max(0,u-q));for(W-=W%q;W<u+O;W+=q){var C=this.getStoryboardForTime_(W,R),d=this.getPreloadedStoryboard_(C.url);
if(d){var p=(W-u)*c,J=this.aboveRulerHeight,M=C.column*l,P=C.row*h;if(K<m){var g=w/(F/K);C=l;g*=h;P+=(h-g)/2}else C=F/(w*K)*l,g=h,M+=(l-C)/2;f.drawImage(d,M,P,C,g,p,J,F,w)}else this.fetchStoryboardImage_(C)}}}};
_.X.getPreloadedStoryboard_=function(f){return this.storyboardImages_.find(function(R){if(R.src==f)return!0;var u=R.src.indexOf(f);return u!=-1&&u==R.src.length-f.length})};
_.X.fetchStoryboardImage_=function(f){var R=this,u=this.getPreloadedStoryboard_(f.url),O=this.pendingStoryboardImages_[f.url];u||O!==void 0||(u=new Promise(function(c){var h=new Image(f.width,f.height);h.src=f.url;h.onload=function(){c(h)};
h.onerror=function(){c(null)}}),this.pendingStoryboardImages_[f.url]=u,u.then(function(c){c&&R.push("storyboardImages_",c);
return c}).finally(function(){delete R.pendingStoryboardImages_[f.url]}))};
_.X.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.X.timeToPixels_=function(f,R,u){f*=R;return u===void 0||u?f+"px":f};
_.X.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
z6.prototype.drawRuler_=z6.prototype.drawRuler_;z6.prototype.setUpCanvas_=z6.prototype.setUpCanvas_;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],z6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],z6.prototype,"start",void 0);_.B([_.I({value:30}),_.S("design:type",Number)],z6.prototype,"end",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],z6.prototype,"visible",void 0);_.B([_.I(),_.S("design:type",Object)],z6.prototype,"player_",void 0);_.B([_.I(),_.S("design:type",Number)],z6.prototype,"tickSpacing",void 0);_.B([_.I(),_.S("design:type",Number)],z6.prototype,"windowSizeSec",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],z6.prototype,"rulerWidth",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],z6.prototype,"rulerShift",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],z6.prototype,"canvasReady_",void 0);_.B([_.I({value:function(){return[]}}),
_.S("design:type",Array)],z6.prototype,"storyboardImages_",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],z6.prototype,"disabled",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],z6.prototype,"forceRender_",void 0);_.B([_.I({value:1}),_.S("design:type",Number)],z6.prototype,"devicePixelRatio_",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],z6.prototype,"windowSpeed",void 0);
_.B([_.qM("visible","devicePixelRatio_","rulerWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],z6.prototype,"setUpCanvas_",null);
_.B([_.qM("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.S("design:returntype")],z6.prototype,"drawRuler_",null);z6=_.B([_.DO({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],z6);
_.G(z6,"yt-clip-creation-scrubber-canvas",function(){if(V3S===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);V3S=f}f=V3S;return f},
{mode:2});var YRh;var vXS;var T6=function(){var f=_.U.apply(this,arguments)||this;f.start=0;f.end=30;f.visible=!1;f.draggingLeft_=!1;f.draggingRight_=!1;f.draggingRuler_=!1;f.draggingWindow_=!1;f.seekableStart=0;f.seekableEnd=0;f.rulerWidth_=0;f.rulerShift_=0;f.windowSlideSpeed=0;f.disabled=!1;f.initialized=!1;f.durationAccessibilityLabel="";f.activeLoopRange_=!1;f.rulerDragMouseStart_=0;f.rulerDragRulerStart_=0;f.rulerDragStartTime_=0;f.rulerDragEndTime_=0;f.dragMouseLastX_=0;f.scrollInterval_=null;f.scrubberVe_=null;f.boundHandlers_=
{};f.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return f};
_.y(T6,_.U);_.X=T6.prototype;
_.X.created=function(){var f=this;this.JSC$20002_playerEvents=new Map;this.JSC$20002_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20002_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20002_playerEvents.set("onStateChange",this.onStateChange_);var R={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(R).forEach(function(u){f.boundHandlers_[u]=R[u].bind(f)})};
_.X.attached=function(){this.activeLoopRange_=!1;_.b(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.b(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.dx(156731)};
_.X.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.b(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.b(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.X.onVisibilityChangedAction_=function(f){var R=this;f.visible&&!this.player_&&(f=_.Vm())&&f.getPlayerPromise().then(function(u){R.setPlayer(u)})};
_.X.setPlayer=function(f){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20002_playerEvents);f&&(this.set("player_",f),this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20002_playerEvents))};
_.X.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.X.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.X.beginHandleDrag_=function(f){this.disabled||(f.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=f.clientX,f.target===_.b(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():f.target===_.b(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.X.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.X.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.X.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.X.beginRulerDrag_=function(f){this.disabled||(f.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=f.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.X.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.X.beginWindowScroll_=function(){var f=this;this.scrollInterval_=setInterval(function(){var R=f.windowSlideSpeed;if(R=_.sK9(f.start,f.boundedRulerStartLimit_())?R-.1:_.sK9(f.end,f.boundedRulerEndLimit_())?R+.1:0){var u=f.capRulerOffset_(f.rulerShift_+R);u==f.rulerShift_?R=0:(f.set("rulerShift_",u),_.ul(f.hostElement,"set-fixed-length-range",{start:f.start+R,duration:f.end-f.start}))}f.set("windowSlideSpeed",R)},33)};
_.X.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.X.endDrag_=function(){this.logClick();var f=void 0;this.draggingRight_?f=this.end-1:this.draggingLeft_&&(f=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,f);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))};
_.X.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.X.updateRulerSize_=function(){this.set("rulerWidth_",_.b(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.X.handleMouseDrag_=function(f){f.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(f):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(f):this.draggingWindow_&&this.handleWindowDrag_(f))};
_.X.handleRulerDrag_=function(f){f=this.pixelsToTime_(f.clientX-this.rulerDragMouseStart_);f=this.capRulerOffset_(this.rulerDragRulerStart_-f);this.set("rulerShift_",f);var R=this.rulerDragStartTime_-(this.rulerDragRulerStart_-f);_.ul(this.hostElement,"set-fixed-length-range",{start:R,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-f)-R})};
_.X.handleWindowDrag_=function(f){var R=f.clientX-this.dragMouseLastX_;this.dragMouseLastX_=f.clientX;f=this.pixelsToTime_(R);_.ul(this.hostElement,"set-fixed-length-range",{start:this.start+f,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.X.capRulerOffset_=function(f){var R=this.seekableStart-this.pixelsToTime_(16),u=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(R,f),u)};
_.X.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.X.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.X.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.X.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.X.handleWindowHandleDrag_=function(f){var R=f.clientX-this.dragMouseLastX_;this.dragMouseLastX_=f.clientX;f=this.pixelsToTime_(R);if(this.draggingLeft_){var u=this.start+f;var O=this.end}else this.draggingRight_&&(u=this.start,O=this.end+f);_.ul(this.hostElement,"set-range",{start:u,end:O,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.X.onVideoProgress_=function(f){this.disabled||(f=this.timeToPixels_(f-this.rulerShift_,this.tickSpacing_),_.b(this.hostElement).querySelector("#playhead").style.transform="translateX("+f+")")};
_.X.onClipCreationDisable_=function(){this.endDrag_()};
_.X.timeToPixels_=function(f,R,u){f*=R;return u===void 0||u?f+"px":f};
_.X.pixelsToTime_=function(f){return f/this.tickSpacing_};
_.X.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.X.centerRuler_=function(f,R,u){this.set("rulerShift_",this.capRulerOffset_(f+(R-f)/2-u/2))};
_.X.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.X.updateLoopRange_=function(f,R,u,O,c,h,l){f&&(R&&O&&!u?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(f.pauseVideo(),f.seekTo(c,!1,void 0,void 0,50)):this.draggingRight_?(f.pauseVideo(),f.seekTo(h-.1,!1,void 0,void 0,50)):(l!==void 0?f.seekTo(l,!0,void 0,void 0,50):(R=f.getCurrentTime(),R<c||R>h?f.seekTo(c,!0,void 0,void 0,50):f.seekTo(R,!0,void 0,void 0,50)),f.playVideo()),f.setLoopRange({startTimeMs:c*1E3,endTimeMs:h*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(f.getCurrentTime())):
this.activeLoopRange_&&(f.setLoopRange(null),this.activeLoopRange_=!1))};
_.X.updateHandles_=function(){_.b(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.b(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.X.updateRuler_=function(){var f=this.end,R=this.start,u=this.draggableStartLimit_(),O=this.draggableEndLimit_();(R<u-.001||f>O+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.X.computeDurationLabel_=function(f,R){return f?f.replace("$clip_length",parseFloat(R).toFixed(1)):""};
_.X.computeDuration_=function(f,R){return this.isValidTime_(f)&&this.isValidTime_(R)&&f<R?R-f:0};
_.X.isValidTime_=function(f){return isNaN(parseFloat(f))||f<0?!1:this.player_?f>=this.seekableStart&&f<=this.seekableEnd:!0};
_.X.computeWindowSizeSec_=function(f,R,u){return Math.min((f||12E4)/1E3,u-R)};
_.X.computeTickSpacing_=function(f,R){return R?R/f:1};
_.X.onDragStateChanged_=function(){_.ul(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.X.centerRangeOnTime_=function(f){var R=this.duration;f=To9(f-R/2,R,this.seekableStart,this.seekableEnd);_.ul(this.hostElement,"set-fixed-length-range",{start:f.start,duration:f.end-f.start})};
_.X.nearlyLessThan_=function(f,R,u){return f+(u===void 0?1E-6:u)<R};
_.X.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var f=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(f,this.start)||this.nearlyLessThan_(this.end,f))&&this.centerRangeOnTime_(f)}};
_.X.onStateChange_=function(f){this.visible&&!this.disabled&&f==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.X.computeDragState_=function(f,R,u,O){return f?"left":R?"right":u?"ruler":O?"window":"none"};
_.X.logClick=function(){var f=_.z4(),R=_.Jj();f&&R&&this.scrubberVe_&&(_.E("combine_ve_grafts")?_.c1(_.wR(),this.scrubberVe_,R):_.ea(f,R,this.scrubberVe_),_.Sa(f,this.scrubberVe_))};
T6.prototype.onDragStateChanged_=T6.prototype.onDragStateChanged_;T6.prototype.updateRuler_=T6.prototype.updateRuler_;T6.prototype.updateHandles_=T6.prototype.updateHandles_;T6.prototype.onUpdateLoopRange=T6.prototype.onUpdateLoopRange;T6.prototype.onInitializedChanged_=T6.prototype.onInitializedChanged_;T6.prototype.onVisibleChanged_=T6.prototype.onVisibleChanged_;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],T6.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",Object)],T6.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"start",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"end",void 0);_.B([_.I({computed:"computeDuration_(start, end)"}),_.S("design:type",Number)],T6.prototype,"duration",void 0);
_.B([_.I(),_.S("design:type",String)],T6.prototype,"lengthTemplate",void 0);_.B([_.I({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.S("design:type",String)],T6.prototype,"durationLabel",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"visible",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"player_",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"draggingLeft_",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"draggingRight_",void 0);
_.B([_.I(),_.S("design:type",Object)],T6.prototype,"draggingRuler_",void 0);_.B([_.I({value:!1}),_.S("design:type",Object)],T6.prototype,"draggingWindow_",void 0);_.B([_.I({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.S("design:type",Number)],T6.prototype,"tickSpacing_",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"seekableStart",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"seekableEnd",void 0);
_.B([_.I(),_.S("design:type",Number)],T6.prototype,"windowSizeMs",void 0);_.B([_.I({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.S("design:type",Number)],T6.prototype,"windowSizeSec_",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"rulerWidth_",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"rulerShift_",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"windowSlideSpeed",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],T6.prototype,"disabled",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"initialized",void 0);_.B([_.I(),_.S("design:type",Object)],T6.prototype,"durationAccessibilityLabel",void 0);_.B([_.I({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.S("design:type",String)],T6.prototype,"dragState",void 0);
_.B([_.qM("visible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T6.prototype,"onVisibleChanged_",null);_.B([_.qM("initialized"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T6.prototype,"onInitializedChanged_",null);_.B([_.qM("player_","visible","disabled","initialized","start","end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T6.prototype,"onUpdateLoopRange",null);
_.B([_.qM("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T6.prototype,"updateHandles_",null);_.B([_.qM("start","end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T6.prototype,"updateRuler_",null);
_.B([_.qM("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T6.prototype,"onDragStateChanged_",null);T6=_.B([_.DO({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],T6);
_.G(T6,"yt-clip-creation-scrubber-view",function(){if(vXS===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;YRh===void 0&&(YRh=document.createElement("template"));var O=YRh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);vXS=f}f=vXS;return f},{mode:2});var H8=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};f.startHighlightTimeout=0;f.endHighlightTimeout=0;return f};
_.y(H8,_.U);_.X=H8.prototype;_.X.attached=function(){var f=this;this.startInput.addEventListener("input",function(R){return f.handleStartInput_(R)});
this.endInput.addEventListener("input",function(R){return f.handleEndInput_(R)});
this.startInput.addEventListener("focusout",function(R){return f.handleStartBlur_(R)});
this.endInput.addEventListener("focusout",function(R){return f.handleEndBlur_(R)})};
_.X.setPlayer=function(f){this.set("player_",f)};
_.X.onSetFixedLengthRange_=function(f){var R=f.detail;f=R.start;var u=R.duration,O=R.startLimit;R=R.endLimit;O||(O=this.seekableStart_);R||(R=this.seekableEnd_);f=To9(f,u,O,R);this.start=f.start;this.end=f.end};
_.X.onSetRange_=function(f){var R=f.detail;f=R.start;var u=R.end,O=R.startLimit;R=R.endLimit;O||(O=this.seekableStart_);R||(R=this.seekableEnd_);if(f=HXm(f,u,O,R,this.minLengthSec,this.maxLengthSec))this.start=f.start,this.end=f.end};
_.X.updateInputs_=function(){var f=this.end,R=this.start;this.startInput.focused||(this.startInput.value=p7(R,!0));this.endInput.focused||(this.endInput.value=p7(f,!0))};
_.X.handleStartInput_=function(f){f=z$2(f.target.value);if(f===null)this.set("startValid",!1);else{var R=this.end,u=HXm(f,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("endWillUpdate",u.end!==R),this.set("startValid",u.start===f)):this.set("startValid",!1)}};
_.X.handleEndInput_=function(f){f=z$2(f.target.value);if(f===null)this.set("endValid",!1);else{var R=this.start,u=Iyh(this.start,f,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("startWillUpdate",u.start!==R),this.set("endValid",u.end===f)):this.set("endValid",!1)}};
_.X.handleStartBlur_=function(f){f=z$2(f.target.value);f===null?this.startInput.value=p7(this.start,!0):this.forceUpdateInputs_(HXm(f,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.X.handleEndBlur_=function(f){f=z$2(f.target.value);f===null?this.endInput.value=p7(this.end,!0):this.forceUpdateInputs_(Iyh(this.start,f,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.X.forceUpdateInputs_=function(f){f&&(this.start=f.start,this.end=f.end);this.startInput.value=p7(this.start,!0);this.endInput.value=p7(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.X.initializeClipRange_=function(){var f=this.seekableEnd_,R=this.seekableStart_,u=this.visible_,O=this.player_;if(!O||!u||R===null||!f)this.set("initialized",!1);else if(!this.initialized){var c=O.getCurrentTime(),h=this.getDefaultLengthSec_();u=O.getVideoData();var l=O.getPlayerState()==1,K=u.isLive;h=Math.min(h,f-R);c=Math.max(0,c);f=K?Iyh(c-h,c,R,f,this.minLengthSec,this.maxLengthSec):l?To9(c-h/2,h,R,f):To9(c,h,R,f);this.start=f.start;this.end=f.end;this.set("initialized",!0);u.isLive&&O.seekTo(f.start);
this.startInput.value=p7(this.start,!0);this.endInput.value=p7(this.end,!0)}};
_.X.onStartChanged_=function(){var f=this;_.ul(this.hostElement,"start-changed",{start:this.start});var R;isNaN((R=this.oldStart)!=null?R:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){f.set("highlightStart",!1);f.startHighlightTimeout=0;f.oldStart=f.start},3E3))};
_.X.onEndChanged_=function(){var f=this;_.ul(this.hostElement,"end-changed",{end:this.end});var R;isNaN((R=this.oldEnd)!=null?R:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){f.set("highlightEnd",!1);f.endHighlightTimeout=0;f.oldEnd=f.end},3E3))};
_.X.onVisibilityChangedAction_=function(f){var R=this;this.set("visible_",f.visible);this.visible_&&!this.player_&&(f=_.Vm())&&f.getPlayerPromise().then(function(u){R.setPlayer(u)})};
_.X.computeMinLengthSec_=function(f){return f/1E3||5};
_.X.computeMaxLengthSec_=function(f){return f/1E3||60};
_.X.computeDefaultLengthSec_=function(f){return f/1E3};
_.X.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.X.computeSeekableStart_=function(f,R){return f&&R?f.getProgressState(1).seekableStart:0};
_.X.computeSeekableEnd_=function(f,R){return f&&R?f.getProgressState(1).seekableEnd:0};
_.X.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.X.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.X.onDragState_=function(f){this.set("highlightStart",f.detail.startChanging);this.set("highlightEnd",f.detail.endChanging)};
H8.prototype.onDragState_=H8.prototype.onDragState_;H8.prototype.onEndChanged_=H8.prototype.onEndChanged_;H8.prototype.onStartChanged_=H8.prototype.onStartChanged_;H8.prototype.initializeClipRange_=H8.prototype.initializeClipRange_;H8.prototype.updateInputs_=H8.prototype.updateInputs_;H8.prototype.onSetRange_=H8.prototype.onSetRange_;H8.prototype.onSetFixedLengthRange_=H8.prototype.onSetFixedLengthRange_;
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],H8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],H8.prototype,"data",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],H8.prototype,"start",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],H8.prototype,"startValid",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],H8.prototype,"startWillUpdate",void 0);_.B([_.I({value:30}),_.S("design:type",Number)],H8.prototype,"end",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],H8.prototype,"endValid",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],H8.prototype,"endWillUpdate",void 0);_.B([_.I({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.S("design:type",Number)],H8.prototype,"minLengthSec",void 0);
_.B([_.I({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.S("design:type",Number)],H8.prototype,"maxLengthSec",void 0);_.B([_.I({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.S("design:type",Number)],H8.prototype,"defaultLengthSec",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],H8.prototype,"visible_",void 0);_.B([_.I(),_.S("design:type",Object)],H8.prototype,"player_",void 0);
_.B([_.I({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.S("design:type",Number)],H8.prototype,"seekableStart_",void 0);_.B([_.I({computed:"computeSeekableEnd_(player_, visible_)"}),_.S("design:type",Number)],H8.prototype,"seekableEnd_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],H8.prototype,"initialized",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],H8.prototype,"disabled",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],H8.prototype,"highlightStart",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],H8.prototype,"highlightEnd",void 0);_.B([_.a4("#start"),_.S("design:type",HTMLInputElement)],H8.prototype,"startInput",void 0);_.B([_.a4("#end"),_.S("design:type",HTMLInputElement)],H8.prototype,"endInput",void 0);
_.B([_.Kf("set-fixed-length-range"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],H8.prototype,"onSetFixedLengthRange_",null);_.B([_.Kf("set-range"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],H8.prototype,"onSetRange_",null);_.B([_.qM("start","end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],H8.prototype,"updateInputs_",null);
_.B([_.qM("player_","visible_","seekableStart_","seekableEnd_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],H8.prototype,"initializeClipRange_",null);_.B([_.qM("start"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],H8.prototype,"onStartChanged_",null);_.B([_.qM("end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],H8.prototype,"onEndChanged_",null);
_.B([_.Kf("clips-drag-state"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],H8.prototype,"onDragState_",null);H8=_.B([_.DO({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],H8);
_.G(H8,"yt-clip-creation-scrubber-renderer",function(){if(nXw===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;sJ5===void 0&&(sJ5=document.createElement("template"));var O=sJ5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);nXw=f}f=nXw;return f},{mode:2});var Ii=function(){var f=_.U.apply(this,arguments)||this;f.player_=null;f.JSC$20016_playerEvents=new Map;f.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return f};
_.y(Ii,_.U);_.X=Ii.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$20016_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20016_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20016_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20016_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.X.detached=function(){this.setPlayer(null)};
_.X.onVisibilityChangedAction_=function(f){var R=this,u;if((u=this.data)==null?0:u.externalVideoId){var O;this.videoId=(O=this.data)==null?void 0:O.externalVideoId}this.getPlayer().then(function(c){if(f.visible)R.returnTime=c.getCurrentTime(),R.isAtLiveHead=c.getProgressState().isAtLiveHead;else{var h=R.returnTime;R.isAtLiveHead&&(h=Number.POSITIVE_INFINITY);c.seekTo(h,void 0,void 0,void 0,51)}})};
_.X.getPlayer=function(){var f=this;if(!this.player_){var R=_.Vm();if(R)return R.getPlayerPromise().then(function(u){f.setPlayer(u);return u})}return Promise.resolve(this.player_)};
_.X.setPlayer=function(f){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20016_playerEvents);if(f){this.player_=f;var R;((R=this.data)==null?0:R.externalVideoId)||this.set("videoId",f.getVideoData().video_id||"");var u;(f==null?void 0:(u=f.getPresentingPlayerType)==null?void 0:u.call(f))===2&&(this.set("isAdPlaying",!0),_.OJ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20016_playerEvents)}};
_.X.ready=function(){_.b(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.X.onTitleChanged_=function(f){this.set("titleValue",f.detail.title)};
_.X.onStartChanged_=function(f){this.set("start",f.detail.start)};
_.X.onEndChanged_=function(f){this.set("end",f.detail.end)};
_.X.onTitleValidChanged_=function(f){this.set("titleValid",f.detail.valid)};
_.X.onStartValidChanged_=function(f){this.set("startValid",f.detail.valid)};
_.X.onEndValidChanged_=function(f){this.set("endValid",f.detail.valid)};
_.X.onVideoDataChange_=function(){var f;if((f=this.data)==null||!f.externalVideoId){var R;this.set("videoId",((R=this.player_)==null?void 0:R.getVideoData().video_id)||"")}};
_.X.computeFormValid_=function(f,R,u,O){return!!(f&&R&&u&&O)};
_.X.computeCancelButton_=function(f,R,u){return f&&_.t(f,_.z9)?{buttonRenderer:Object.assign({},_.t(f,_.z9),{isDisabled:R||u})}:null};
_.X.computeSubmitButton_=function(f,R,u){return f&&_.t(f,_.z9)?{buttonRenderer:Object.assign({},_.t(f,_.z9),{command:void 0,isDisabled:!this.formValid||R||u})}:null};
_.X.computeSubmitCommand_=function(f){return f||null};
_.X.onSubmit_=function(f){var R=this;f.stopPropagation();f.preventDefault();this.submitCommand_&&(f={},f.comment_text=this.titleValue,f.clip_external_video_id=this.videoId,f.clip_offset_ms=parseInt(this.start*1E3,10),f.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.hH(this.hostElement,[this.submitCommand_,f]).then(function(){R.set("isLoading_",!1)},function(){R.set("isLoading_",!1)}))};
_.X.playerAdStartHandler_=function(){_.OJ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler_=function(){_.OJ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.X.onVideoProgress_=function(){var f=this;this.getPlayer().then(function(R){var u,O=(R==null?void 0:(u=R.getPresentingPlayerType)==null?void 0:u.call(R))===2;f.isAdPlaying!==O&&(O?f.playerAdStartHandler_():f.playerAdEndHandler_())})};
Ii.prototype.onEndValidChanged_=Ii.prototype.onEndValidChanged_;Ii.prototype.onStartValidChanged_=Ii.prototype.onStartValidChanged_;Ii.prototype.onTitleValidChanged_=Ii.prototype.onTitleValidChanged_;Ii.prototype.onEndChanged_=Ii.prototype.onEndChanged_;Ii.prototype.onStartChanged_=Ii.prototype.onStartChanged_;Ii.prototype.onTitleChanged_=Ii.prototype.onTitleChanged_;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Ii.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",Object)],Ii.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ii.prototype,"data",void 0);_.B([_.I({value:""}),_.S("design:type",String)],Ii.prototype,"titleValue",void 0);
_.B([_.I({value:!1}),_.S("design:type",Boolean)],Ii.prototype,"titleValid",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],Ii.prototype,"start",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],Ii.prototype,"startValid",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],Ii.prototype,"end",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],Ii.prototype,"endValid",void 0);_.B([_.I({value:""}),_.S("design:type",String)],Ii.prototype,"videoId",void 0);
_.B([_.I({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.S("design:type",Boolean)],Ii.prototype,"formValid",void 0);_.B([_.I({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.S("design:type",Object)],Ii.prototype,"submitButton_",void 0);_.B([_.I({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.S("design:type",Object)],Ii.prototype,"submitCommand_",void 0);
_.B([_.I({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.S("design:type",Object)],Ii.prototype,"cancelButton_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Ii.prototype,"isLoading_",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Ii.prototype,"isAdPlaying",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],Ii.prototype,"returnTime",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Ii.prototype,"isAtLiveHead",void 0);
_.B([_.Kf("title-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ii.prototype,"onTitleChanged_",null);_.B([_.Kf("start-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ii.prototype,"onStartChanged_",null);_.B([_.Kf("end-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ii.prototype,"onEndChanged_",null);
_.B([_.Kf("title-valid-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ii.prototype,"onTitleValidChanged_",null);_.B([_.Kf("start-valid-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ii.prototype,"onStartValidChanged_",null);_.B([_.Kf("end-valid-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ii.prototype,"onEndValidChanged_",null);
Ii=_.B([_.DO({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Ii);
_.G(Ii,"yt-clip-creation-renderer",function(){if(gXl===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;$J9===void 0&&($J9=document.createElement("template"));var O=$J9;u.call(R,O.content.cloneNode(!0),f.content.firstChild);gXl=f}f=gXl;return f},{mode:2});var MR=function(){return _.U.apply(this,arguments)||this};
_.y(MR,_.U);MR.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"}}}};
MR.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(f){return f.hasOwnProperty("clipCreationRenderer")})&&_.OJ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
MR.prototype.onPanelContentVisibleChanged=MR.prototype.onPanelContentVisibleChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.eG.YtVisibilityBehavior),_.S("design:type",Object)],MR.prototype,"ytVisibilityBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],MR.prototype,"ytdReduxBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],MR.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],MR.prototype,"panelContentVisible",void 0);_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MR.prototype,"onPanelContentVisibleChanged",null);MR=_.B([_.e({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],MR);
_.G(MR,"ytd-clip-section-renderer",function(){if(oX5!==void 0)return oX5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return oX5=f},{mode:1});var i3t;var P8=function(){return _.U.apply(this,arguments)||this};
_.y(P8,_.U);_.X=P8.prototype;
_.X.onKeyDown=function(f){if(this.snippetElements.length!==0&&(f=f.keyCode,f===38||f===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);f===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Jd(this.highlightedIndex,-1,this.snippetElements.length);f=this.snippetElements.length;var R=this.highlightedIndex%f;this.highlightedIndex=R*f<0?R+f:R;f=this.snippetElements[this.highlightedIndex];this.highlightSnippet(f);this.ensureVisible(f)}};
_.X.onKeyUp=function(f){var R=this;a_S(f)&&(f.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.JA.cancelJob(this.inputTimerId),this.inputTimerId=_.JA.addLowPriorityJob(function(){R.typedValue&&(R.fetchSnippets(R.typedValue),R.logInputGesture(R.data))},1E3))};
_.X.onClick=function(f){(f=_.$Xk(f.target,null,"snippet-item"))&&this.selectSnippet(f)};
_.X.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.X.ready=function(){var f=this;this.inputElement.addEventListener("focus",function(){f.snippetsWrapper.style.removeProperty("display")})};
_.X.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.X.getSourceTimelines=function(){if(!this.data)return[];var f=[];if(this.data.searchInVideoSources)for(var R=_.Z(this.data.searchInVideoSources),u=R.next();!u.done;u=R.next())u=u.value,u==="SEARCH_IN_VIDEO_SOURCE_ASR"?f.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):u==="SEARCH_IN_VIDEO_SOURCE_OCR"&&f.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return f};
_.X.fetchSnippets=function(f){var R=_.OJ(this.hostElement,"yt-get-current-video-id-action")[0],u=this.getSourceTimelines();f={getSearchInVideoCommand:{externalVideoId:R,query:f!=null?f:"",sourceTimelines:u},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})};
_.X.filterSnippets=function(f,R){var u=this;if(R){this.filteredSnippets=(0,_.dq.unsafeClone)(f);var O=RegExp(_.UHl(R),"i");this.filteredSnippets=this.filteredSnippets.filter(function(l){return O.test(u.ytRendererBehavior.getSimpleString(l.snippet))});
f=_.Z(this.filteredSnippets);for(var c=f.next();!c.done;c=f.next()){c=c.value;var h=this.ytRendererBehavior.getSimpleString(c.snippet);c.snippet={runs:[{text:h.substring(0,h.toLowerCase().indexOf(R))},{text:h.substring(h.toLowerCase().indexOf(R),h.toLowerCase().indexOf(R)+R.length),bold:!0},{text:h.substring(h.toLowerCase().indexOf(R)+R.length,h.length)}]}}}else this.filteredSnippets=f};
_.X.onUpdateSearchInVideoResults=function(f){if(!(this.snippets.length>0)){var R,u,O;if((O=(R=_.t(f,Lre))==null?void 0:(u=R.results)==null?void 0:u.length)!=null&&O){var c;this.filteredSnippets=this.snippets=((c=_.t(f,Lre))==null?void 0:c.results).map(function(h){var l,K,q;return{startMs:h==null?void 0:(l=h.searchInVideoResultRenderer)==null?void 0:l.startMs,startTimeText:h==null?void 0:(K=h.searchInVideoResultRenderer)==null?void 0:K.startTimeText,snippet:h==null?void 0:(q=h.searchInVideoResultRenderer)==
null?void 0:q.snippet}})}}};
_.X.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};
_.X.highlightSnippet=function(f){f.classList.add("highlighted")};
_.X.removeSnippetHighlight=function(f){f.classList.remove("highlighted")};
_.X.selectSnippet=function(f){this.typedValue=String(f.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(f);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.X.ensureVisible=function(f){var R=this.snippetsWrapper.scrollTop,u=R+this.snippetsWrapper.clientHeight,O=f.offsetTop-this.snippetsWrapper.offsetTop;f=O+f.clientHeight;O<R?this.snippetsWrapper.scrollTop-=R-O:f>u&&(this.snippetsWrapper.scrollTop+=f-u)};
_.X.seekPlayer=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1){if(!f)return O.jumpTo(0);R=Number(f.dataset.startOffset);return _.A(O,_.YG().getPlayerPromise(),3)}u=O.yieldResult;u.seekTo(R/1E3,!0);u.wakeUpControls();_.KG(O)})};
_.X.logInputGesture=function(f){var R=_.z4();R&&(f==null?0:f.trackingParams)&&_.$E(R,_.t4(f.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.X.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("typed-value-changed",this.typedValue))};
_.X.updateTypedValueFromBinding=function(f){this.typedValue=f.currentTarget.value};
P8.prototype.typedValueChangedForBinding=P8.prototype.typedValueChangedForBinding;P8.prototype.dataChanged=P8.prototype.dataChanged;P8.prototype.panelContentVisibleChanged=P8.prototype.panelContentVisibleChanged;P8.prototype.onClick=P8.prototype.onClick;P8.prototype.onKeyUp=P8.prototype.onKeyUp;P8.prototype.onKeyDown=P8.prototype.onKeyDown;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],P8.prototype,"data",void 0);_.B([_.I({value:[]}),_.S("design:type",Array)],P8.prototype,"snippets",void 0);_.B([_.I({value:[]}),_.S("design:type",Array)],P8.prototype,"filteredSnippets",void 0);_.B([_.I({value:[]}),_.S("design:type",Array)],P8.prototype,"snippetElements",void 0);
_.B([_.a4("#siv-input"),_.S("design:type",HTMLElement)],P8.prototype,"inputElement",void 0);_.B([_.a4("#siv-snippets-wrapper"),_.S("design:type",HTMLElement)],P8.prototype,"snippetsWrapper",void 0);_.B([_.I(),_.S("design:type",String)],P8.prototype,"typedValue",void 0);_.B([_.I({value:-1}),_.S("design:type",Number)],P8.prototype,"highlightedIndex",void 0);_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[_.Ao]),_.S("design:returntype")],P8.prototype,"onKeyDown",null);
_.B([_.Kf("keyup"),_.S("design:type",Function),_.S("design:paramtypes",[_.Ao]),_.S("design:returntype")],P8.prototype,"onKeyUp",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],P8.prototype,"onClick",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],P8.prototype,"panelContentVisible",void 0);
_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],P8.prototype,"panelContentVisibleChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],P8.prototype,"dataChanged",null);_.B([_.qM("typedValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],P8.prototype,"typedValueChangedForBinding",null);
P8=_.B([_.e({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],P8);
_.G(P8,"ytd-search-in-video-renderer",function(){if(i3t!==void 0)return i3t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return i3t=f},{mode:1});var rGm;var Un=function(){return _.U.apply(this,arguments)||this};
_.y(Un,_.U);Un.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Un.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]]"}}}}}};
Un.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var f,R,u,O,c=(R=_.t((f=this.data)==null?void 0:f.onClickCommand,_.QE))==null?void 0:(u=R.item)==null?void 0:(O=u.notificationTextRenderer)==null?void 0:O.successResponseText;c&&_.iln(this.hostElement,c)}};
_.Vy.Object.defineProperties(Un.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return this.isProductPlaceholder&&((f=this.data)==null?void 0:(R=f.hiddenProductOptions)==null?void 0:R.showDropCountdown)&&!!((u=this.data)==null?0:(O=u.hiddenProductOptions)==null?0:O.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var f;return!this.isProductPlaceholder&&!((f=this.data)==null?0:f.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null?0:f.priceReplacementText)&&!((R=this.data)==null||!R.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Un.prototype,"componentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Un.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("isProductPlaceholder"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"useCenterLayoutContainer",null);_.B([_.I({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],Un.prototype,"buttonOverride",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"isProductPlaceholder",null);
_.B([_.T("isProductPlaceholder"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"showDropCountdown",null);_.B([_.T("isProductPlaceholder","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"showBrandName",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"showPriceReplacementText",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"showPrice",null);
_.B([_.T("isProductPlaceholder"),_.S("design:type",Object),_.S("design:paramtypes",[])],Un.prototype,"showMetadata",null);Un=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Un);
_.G(Un,"ytd-product-list-item-renderer",function(){if(rGm!==void 0)return rGm;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return rGm=f},{mode:1});var fo9;var eO=function(){return _.U.apply(this,arguments)||this};
_.y(eO,_.U);eO.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
eO.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
eO.prototype.panelContentVisibleChanged=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return f.playerApi?u.jumpTo(2):_.A(u,_.YG().getPlayerPromise(),3);u.nextAddress!=2&&(f.playerApi=u.yieldResult);(R=f.playerApi)==null||R.productsInVideoVisibilityUpdated(!!f.panelContentVisible);_.KG(u)})};
eO.prototype.panelContentVisibleChanged=eO.prototype.panelContentVisibleChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],eO.prototype,"panelContentVisible",void 0);_.B([_.I(),_.S("design:type",Object)],eO.prototype,"data",void 0);
_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],eO.prototype,"panelContentVisibleChanged",null);eO=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],eO);
_.G(eO,"ytd-product-list-renderer",function(){if(fo9!==void 0)return fo9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return fo9=f},{mode:1});var R0a;var G6=function(){var f=_.U.apply(this,arguments)||this;f.hideTimestamps=!!_.Xs("hide-transcript-timestamps");f.currentCueIndex=-1;f.flatCues=[];f.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};f.TEST_ONLY={getFlatCues:function(){return f.flatCues}};
return f};
_.y(G6,_.U);_.X=G6.prototype;_.X.hideTimestampsChanged=function(){_.cT("hide-transcript-timestamps",this.hideTimestamps)};
_.X.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.X.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.X.dataChanged=function(){var f;if((f=this.data)!=null&&f.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;f=_.Z(this.data.cueGroups);for(var R=f.next();!R.done;R=f.next()){R=_.Z(_.t(R.value,bKt).cues);for(var u=R.next();!u.done;u=R.next())this.flatCues.push(Number(_.t(u.value,pk5).startOffsetMs))}}};
_.X.onYtPlayerTimeChanged=function(f){if(!(f<0)){for(var R=this.currentCueIndex,u=R;;){var O=u>=0?this.flatCues[u]/1E3:-1;if(f+.5<O)--u;else if(O=u+1<this.flatCues.length?this.flatCues[u+1]/1E3:Infinity,f+.5>O)u+=1;else break}u!==R&&(R>=0&&((f=this.getCueElement(R))&&f.classList.remove("active"),(R=this.getCueGroupElement(R))&&R.classList.remove("active")),(R=this.getCueElement(u))&&R.classList.add("active"),(R=this.getCueGroupElement(u))&&R.classList.add("active"),this.currentCueIndex=u,this.isHovered||
this.scrollElementToTop(u))}};
_.X.scrollElementToTop=function(f){f=this.getCueElement(f>=3?f-3:0);this.hostElement.scrollTop=Math.min(f.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.X.getCueElement=function(f){return _.b(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[f]+'"]')};
_.X.getCueGroupElement=function(f){return(f=this.getCueElement(f))&&f.parentElement?f.parentElement.parentElement:null};
_.X.onTap=function(f){var R=_.gY(f);f.target.classList.contains("cue")&&this.seekCueElement(R)};
_.X.onKeyPress=function(f){f.keyCode==13&&(f=_.$Xk(f.target,null,"cue"))&&this.seekCueElement(f)};
_.X.seekCueElement=function(f){f=Number(f.getAttribute("start-offset"));_.OJ(this.hostElement,"yt-transcript-player-seek",[f/1E3])};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
G6.prototype.onMouseLeave=G6.prototype.onMouseLeave;G6.prototype.onMouseEnter=G6.prototype.onMouseEnter;G6.prototype.onKeyPress=G6.prototype.onKeyPress;G6.prototype.onTap=G6.prototype.onTap;G6.prototype.dataChanged=G6.prototype.dataChanged;G6.prototype.hideTimestampsChanged=G6.prototype.hideTimestampsChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],G6.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],G6.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],G6.prototype,"hideTimestamps",void 0);_.B([_.I(),_.S("design:type",Boolean)],G6.prototype,"isHovered",void 0);_.B([_.qM("hideTimestamps"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G6.prototype,"hideTimestampsChanged",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G6.prototype,"dataChanged",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],G6.prototype,"onTap",null);_.B([_.Kf("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],G6.prototype,"onKeyPress",null);
_.B([_.Kf("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G6.prototype,"onMouseEnter",null);_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G6.prototype,"onMouseLeave",null);G6=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],G6);
_.G(G6,"ytd-transcript-body-renderer",function(){if(R0a!==void 0)return R0a;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return R0a=f},{mode:1});var uLm;var B8=function(){var f=_.U.apply(this,arguments)||this;f.darkerPanels=_.E("web_watch_darker_panels");return f};
_.y(B8,_.U);B8.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],B8.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],B8.prototype,"darkerPanels",void 0);B8=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],B8);
_.G(B8,"ytd-transcript-footer-renderer",function(){if(uLm!==void 0)return uLm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return uLm=f},{mode:1});var OVK;var c2l;var oi=function(){var f=_.U.apply(this,arguments)||this;f.systemIcons=_.E("kevlar_system_icons");f.showClearButton=!1;return f};
_.y(oi,_.U);_.X=oi.prototype;_.X.handleInput=function(f){var R=this;f.target.value.length?_.UU(this,"ytdTranscriptSearchBoxSearch",function(){R.emitSearchEvent(f)},500):(_.yge(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=f.target.value.length>0};
_.X.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.X.handleClick=function(){var f,R=(f=this.data)==null?void 0:f.trackingParams;R&&_.Zn(_.wR(),R)};
_.X.handleClear=function(){_.yge(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var f,R,u=(R=_.t((f=this.data)==null?void 0:f.clearButton,_.z9))==null?void 0:R.trackingParams;u&&_.Zn(_.wR(),u);this.clear()};
_.X.emitSearchEvent=function(f){_.ul(this.hostElement,"yt-transcript-search-box-search",{query:f.target.value});var R,u;(f=(u=_.t((R=this.data)==null?void 0:R.searchButton,_.z9))==null?void 0:u.trackingParams)&&_.Zn(_.wR(),f)};
_.X.emitClearEvent=function(){_.ul(this.hostElement,"yt-transcript-search-box-clear")};
_.Vy.Object.defineProperties(oi.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.b(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oi.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],oi.prototype,"systemIcons",void 0);oi=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],oi);
_.G(oi,"ytd-transcript-search-box-renderer",function(){if(c2l!==void 0)return c2l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return c2l=f},{mode:1});var Xyl;var h0t;var xY=function(){return _.U.apply(this,arguments)||this};
_.y(xY,_.U);xY.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var f,R;this.sectionHeaderAriaLabel=(f=this.data)==null?void 0:(R=f.accessibility)==null?void 0:R.accessibilityData.label}};
xY.prototype.fireSelectedEvent=function(f){_.ul(this.hostElement,"ytd-transcript-section-header",{startMs:f})};
xY.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
xY.prototype.handleKeyPress=function(f){this.data&&f.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Vy.Object.defineProperties(xY.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.data)==null?void 0:f.enableTappableTranscriptHeader)!=null?R:!1}}});
xY.prototype.dataChanged=xY.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],xY.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],xY.prototype,"sectionHeaderAriaLabel",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],xY.prototype,"enableTappableTranscriptHeader",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xY.prototype,"dataChanged",null);
xY=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],xY);
_.G(xY,"ytd-transcript-section-header-renderer",function(){if(h0t!==void 0)return h0t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return h0t=f},{mode:1});var ZV9;var loS;var SO=function(){var f=_.U.apply(this,arguments)||this;f.isEditMode=!1;f.touchCaptionsEnabled=!1;f.deleteCaptionCorrectionPopupCommand=null;f.voteCaptionCorrectionPopupCommand=null;f.roundedContainer=!0;f.mouseOver=!1;f.textChanged=!1;f.messages={suggest_correction:_.Fa("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Fa("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Fa("submit_correction",void 0,"Submit for review"),cancel_correction:_.Fa("cancel_correction",
void 0,"Cancel"),replay_segment:_.Fa("replay_segment",void 0,"Re-play segment"),delete_correction:_.Fa("delete_correction",void 0,"Delete correction")};f.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return f};
_.y(SO,_.U);_.X=SO.prototype;_.X.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)};
_.X.handleDelete=function(f){if(this.deleteCaptionCorrectionPopupCommand){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);R&&this.ytdOpenPopupBehavior.openPopup(R);f.stopPropagation()}};
_.X.handleSubmit=function(f){if(this.data&&this.data.submitCaptionCorrectionCommand&&(f.stopPropagation(),this.textChanged)){var R;f=(R=_.t(this.data.submitCaptionCorrectionCommand,_.flA))==null?void 0:R.params;R=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:f,correctionText:String(this.ironTextAreaElement.value),originalText:_.$Z(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(R);this.isEditMode=!1}};
_.X.handleUpdateSegmentText=function(f){(f=_.t(f,$4a))&&f.targetId&&this.data&&f.targetId===this.data.targetId&&(f.userCorrection&&(this.editedText=f.userCorrection),f.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.$Z(this.data.snippet)),f.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=f.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=f.voteCaptionCorrectionPopupCommand?
f.voteCaptionCorrectionPopupCommand:null,f.accessibility&&(this.segmentAriaLabel=f.accessibility.accessibilityData.label))};
_.X.handleCancel=function(f){this.isEditMode=!1;f.stopPropagation();this.logClientVe(159409)};
_.X.handleEditSegmentCommand=function(f){(f=_.t(f,S4w))&&f.targetId&&this.data&&f.targetId===this.data.targetId&&this.handleEdit()};
_.X.handleEditButtonClick=function(f){this.data&&(this.handleEdit(),f.stopPropagation())};
_.X.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var f;(f=this.ironTextAreaElement.textarea)==null||f.focus();this.logClientVe(159407)}};
_.X.handleMouseEnter=function(){this.mouseOver=!0};
_.X.handleMouseLeave=function(){this.mouseOver=!1};
_.X.handleReplay=function(f){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),f.stopPropagation(),this.logClientVe(159408))};
_.X.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()))};
_.X.handleKeypress=function(f){this.data&&(this.isEditMode?f.stopPropagation():this.isEnterPress(f)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(f)&&this.logClientVe(138758))};
_.X.handleTextboxClick=function(f){f.stopPropagation()};
_.X.handleTextboxKeydown=function(f){this.isControlEnterPress(f)?this.handleSubmit(f):f.key==="Escape"&&this.handleCancel(f)};
_.X.handleTextboxKeyup=function(){this.textChanged=_.$Z(this.latestText)!==String(this.ironTextAreaElement.value)};
_.X.fireSelectedEvent=function(f){_.ul(this.hostElement,"yt-transcript-segment-selected",{startMs:f})};
_.X.fireReplayEvent=function(f,R){_.ul(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(f-100,0),endMs:R})};
_.X.fireEditEvent=function(f,R){_.ul(this.hostElement,"yt-transcript-segment-edit",{startMs:f,endMs:R})};
_.X.isEnterPress=function(f){return f.key==="Enter"||f.code==="Enter"||f.code==="NumpadEnter"||f.keyCode===13?!0:!1};
_.X.isControlEnterPress=function(f){var R=f.key==="Enter"||f.code==="Enter"||f.code==="NumpadEnter"||f.keyCode===13;return(f.ctrlKey||f.metaKey)&&R};
_.X.isCopyPress=function(f){var R=f.ctrlKey;return f.key==="c"&&R};
_.X.logClick=function(){var f,R=(f=this.data)==null?void 0:f.trackingParams;R&&_.Zn(_.wR(),R)};
_.X.logClientVe=function(f){_.hi(_.wR(),_.dx(f))};
_.Vy.Object.defineProperties(SO.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}}});
SO.prototype.handleMouseLeave=SO.prototype.handleMouseLeave;SO.prototype.handleMouseEnter=SO.prototype.handleMouseEnter;SO.prototype.dataChanged=SO.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],SO.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],SO.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],SO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],SO.prototype,"isEditMode",void 0);_.B([_.I(),_.S("design:type",Object)],SO.prototype,"touchCaptionsEnabled",void 0);_.B([_.I(),_.S("design:type",Object)],SO.prototype,"editedText",void 0);_.B([_.I(),_.S("design:type",Object)],SO.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.B([_.I(),_.S("design:type",Object)],SO.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.B([_.I(),_.S("design:type",String)],SO.prototype,"segmentAriaLabel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],SO.prototype,"roundedContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],SO.prototype,"mouseOver",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],SO.prototype,"textChanged",void 0);_.B([_.I(),_.S("design:type",Object)],SO.prototype,"messages",void 0);
_.B([_.a4("#suggestion"),_.S("design:type",Object)],SO.prototype,"ironTextAreaElement",void 0);_.B([_.T("data","editedText"),_.S("design:type",Object),_.S("design:paramtypes",[])],SO.prototype,"latestText",null);_.B([_.T("touchCaptionsEnabled","isEditMode"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SO.prototype,"enableEditButton",null);
_.B([_.T("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SO.prototype,"enableUndoButton",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SO.prototype,"dataChanged",null);_.B([_.Kf("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SO.prototype,"handleMouseEnter",null);
_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SO.prototype,"handleMouseLeave",null);SO=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],SO);
_.G(SO,"ytd-transcript-segment-renderer",function(){if(loS!==void 0)return loS;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return loS=f},{mode:1});var $Y=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};f.isError=!1;f.darkerPanels=_.E("web_watch_darker_panels");f.useParentMaxHeight=_.E("web_watch_transscript_use_parent_max_height");f.segmentOffsets=[];f.segmentIndex=-1;return f};
_.y($Y,_.U);_.X=$Y.prototype;_.X.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"}}}}};
_.X.segmentsChanged=function(){this.updateOffsets()};
_.X.onYtPlayerTimeChanged=function(f){for(var R=this.segmentIndex,u=R;;){if(u>=0){var O=this.segmentOffsets[u].start;var c=this.segmentOffsets[u].isAutoScrollable}else O=-1,c=!0;var h=f+.5;if(!c){O=u+1<this.segmentOffsets.length?this.segmentOffsets[u+1].start:Infinity;if(h>=O){u+=1;continue}u=-1;break}if(h<O)O=u-1>=0&&this.segmentOffsets[u-1].isAutoScrollable,c=u===0||O?1:2,u-=c;else if(c=u+1<this.segmentOffsets.length&&this.segmentOffsets[u+1].isAutoScrollable?1:2,O=u+c<this.segmentOffsets.length?
this.segmentOffsets[u+c].start:Infinity,h>O)u+=c;else{if(u<0)break;u<this.segmentOffsets.length&&h>this.segmentOffsets[u].end&&(u=-1);break}}if(R!==u){if(R>=0){var l;(l=this.getSegmentElement(R))==null||l.classList.remove("active")}this.segmentIndex=u;if(!(u<0)){var K;(K=this.getSegmentElement(u))==null||K.classList.add("active");this.isHovered||this.scrollElementToTop(u)}}};
_.X.handleSegmentEdit=function(f){f.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=f.target,_.OJ(this.hostElement,"yt-transcript-player-edit",[f.detail.startMs/1E3,f.detail.endMs/1E3]))};
_.X.handleSegmentSelected=function(f){_.OJ(this.hostElement,"yt-transcript-player-seek",[f.detail.startMs/1E3])};
_.X.handleSegmentReplay=function(f){_.OJ(this.hostElement,"yt-transcript-player-replay",[f.detail.startMs/1E3,f.detail.endMs/1E3])};
_.X.handleSectionHeaderSelected=function(f){_.OJ(this.hostElement,"yt-transcript-player-seek",[f.detail.startMs/1E3])};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
_.X.onRetryButtonClick=function(){_.ul(this.hostElement,"transcript-retry-button-click")};
_.X.getSegmentElement=function(f){return _.b(this.hostElement).querySelector(":nth-child("+(f+1)+")")};
_.X.scrollElementToTop=function(f){f=this.getSegmentElement(f>=2?f-2:0);this.hostElement.scrollTop=Math.min(f.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.X.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(f){var R,u=(R=f.transcriptSegmentRenderer)!=null?R:f.transcriptSectionHeaderRenderer;return{start:Number(u.startMs)/1E3,end:Number(u.endMs)/1E3,isAutoScrollable:f.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.X.clearHighlightedSegments=function(){var f=_.b(this.hostElement);f=_.Z(f.querySelectorAll("ytd-transcript-segment-renderer"));for(var R=f.next();!R.done;R=f.next())R.value.classList.remove("active")};
_.Vy.Object.defineProperties($Y.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.searchResultSegments)||((R=this.data)==null?void 0:R.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
$Y.prototype.onMouseLeave=$Y.prototype.onMouseLeave;$Y.prototype.onMouseEnter=$Y.prototype.onMouseEnter;$Y.prototype.handleSectionHeaderSelected=$Y.prototype.handleSectionHeaderSelected;$Y.prototype.handleSegmentReplay=$Y.prototype.handleSegmentReplay;$Y.prototype.handleSegmentSelected=$Y.prototype.handleSegmentSelected;$Y.prototype.handleSegmentEdit=$Y.prototype.handleSegmentEdit;$Y.prototype.segmentsChanged=$Y.prototype.segmentsChanged;
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],$Y.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$Y.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],$Y.prototype,"isError",void 0);
_.B([_.I(),_.S("design:type",Object)],$Y.prototype,"noResultLabel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],$Y.prototype,"darkerPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],$Y.prototype,"useParentMaxHeight",void 0);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],$Y.prototype,"segments",null);
_.B([_.T("segments","noResultLabel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],$Y.prototype,"displayNoResults",null);_.B([_.qM("segments"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$Y.prototype,"segmentsChanged",null);_.B([_.Kf("yt-transcript-segment-edit"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$Y.prototype,"handleSegmentEdit",null);
_.B([_.Kf("yt-transcript-segment-selected"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$Y.prototype,"handleSegmentSelected",null);_.B([_.Kf("yt-transcript-segment-replay"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$Y.prototype,"handleSegmentReplay",null);
_.B([_.Kf("ytd-transcript-section-header"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],$Y.prototype,"handleSectionHeaderSelected",null);_.B([_.Kf("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$Y.prototype,"onMouseEnter",null);_.B([_.Kf("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$Y.prototype,"onMouseLeave",null);
$Y=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],$Y);
_.G($Y,"ytd-transcript-segment-list-renderer",function(){if(ZV9!==void 0)return ZV9;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ZV9=f},{mode:1});var gO=function(){var f=_.U.apply(this,arguments)||this;f.hideTimestamps=!!_.Xs("hide-transcript-timestamps");f.isLoadingTranscripts=!1;f.darkerPanels=_.E("web_watch_darker_panels");f.isError=!1;f.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return f};
_.y(gO,_.U);_.X=gO.prototype;_.X.headerChanged=function(){var f,R;this.baseGetTranscriptsCommand=(R=_.t((f=this.data)==null?void 0:f.header,gqt))==null?void 0:R.onTextChangeCommand};
_.X.bodyChanged=function(){var f=this.getBodyRenderer();f&&(f.initialSegments&&(this.initialTranscriptsRenderer=f),f.noResultLabel&&(this.noResultLabel=f.noResultLabel),f.retryLabel&&(this.retryLabel=f.retryLabel))};
_.X.detached=function(){this.clearSearchBoxText()};
_.X.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.X.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"}}}};
_.X.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.X.fireSearch=function(f){var R=this;if(f){var u=f.detail.query;if(this.baseGetTranscriptsCommand){var O;f=(O=_.t(this.baseGetTranscriptsCommand,_.evC))==null?void 0:O.params;var c;O=_.t((c=this.data)==null?void 0:c.footer,jdK);var h;if((c=(h=_.t(O==null?void 0:O.languageMenu,Bfm))==null?void 0:h.subMenuItems)&&c.length>0&&(h=c.find(function(q){return q.selected}))){var l,K;
f=(l=h.continuation)==null?void 0:(K=l.reloadContinuationData)==null?void 0:K.continuation}l=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:f,searchQuery:u}});this.ytComponentBehavior.resolveCommand(l,{commandController:{onServerError:function(){R.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});q4N(this.ytContinuationHandlerBehavior,function(){return u===R.getCurrentSearchBoxText()})}}};
_.X.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.X.onRetryButtonClick=function(){this.isError=!1;var f={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:f}))};
_.X.hideTimestampsChanged=function(){_.cT("hide-transcript-timestamps",this.hideTimestamps)};
_.X.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.X.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.X.handleSignalActionCopyTranscript=function(){var f=this,R=this.getBodyRenderer();R&&(R=((R==null?void 0:R.searchResultSegments)||(R==null?void 0:R.initialSegments)||[]).map(function(u){return _.t(u,nqz)}).filter(function(u){return!!u}).map(function(u){return{snippet:u.snippet||{runs:[{text:""}]},
startTimeText:u.startTimeText||{simpleText:""}}}).map(function(u){var O=(u.snippet.runs||[]).reduce(function(c,h){return c+h.text},"");
return f.hideTimestamps?O:u.startTimeText.simpleText+" "+O}).join("\n"),this.copyToClipboard(R))};
_.X.copyToClipboard=function(f){navigator.clipboard&&navigator.clipboard.writeText(f)};
_.X.getCurrentSearchBoxText=function(){var f;return(f=this.searchBox)==null?void 0:f.value};
_.X.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.X.getBodyRenderer=function(){var f;return _.t((f=this.data)==null?void 0:f.body,sd9)};
_.X.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Vy.Object.defineProperties(gO.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.b(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
gO.prototype.hideTimestampsChanged=gO.prototype.hideTimestampsChanged;gO.prototype.searchCleared=gO.prototype.searchCleared;gO.prototype.fireSearch=gO.prototype.fireSearch;gO.prototype.onReloadContinuationFinish=gO.prototype.onReloadContinuationFinish;gO.prototype.bodyChanged=gO.prototype.bodyChanged;gO.prototype.headerChanged=gO.prototype.headerChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],gO.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],gO.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gO.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],gO.prototype,"hideTimestamps",void 0);
_.B([_.I(),_.S("design:type",Object)],gO.prototype,"isLoadingTranscripts",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],gO.prototype,"darkerPanels",void 0);_.B([_.I(),_.S("design:type",Object)],gO.prototype,"isError",void 0);_.B([_.qM("data.header"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gO.prototype,"headerChanged",null);
_.B([_.QR("data.body"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gO.prototype,"bodyChanged",null);_.B([_.Kf("yt-reload-continuation-finish"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gO.prototype,"onReloadContinuationFinish",null);_.B([_.Kf("yt-transcript-search-box-search"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],gO.prototype,"fireSearch",null);
_.B([_.Kf("yt-transcript-search-box-clear"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gO.prototype,"searchCleared",null);_.B([_.qM("hideTimestamps"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gO.prototype,"hideTimestampsChanged",null);gO=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],gO);
_.G(gO,"ytd-transcript-search-panel-renderer",function(){if(Xyl!==void 0)return Xyl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Xyl=f},{mode:1});var sn=function(){var f=_.U.apply(this,arguments)||this;f.player=null;f.playerPollJobId=0;return f};
_.y(sn,_.U);_.X=sn.prototype;_.X.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.X.onLoadReloadContinuation=function(f){_.E("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:f.target.data.continuation}}):(f={clickTrackingParams:f.target.data.clickTrackingParams,getTranscriptEndpoint:{params:f.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}}))};
_.X.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"}}}};
_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.X.attached=function(){this.updatePlayerListening()};
_.X.detached=function(){this.updatePlayerListening()};
_.X.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.X.startPlayerListening=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return(R=_.Vm())?_.A(u,R.getPlayerPromise(),2):u.return();f.player=u.yieldResult;f.playerPollJobId=_.JA.addLowPriorityJob(function(){f.getPlayerVideoProgress()},1E3);
f.player.addEventListener("onCueRangeEnter",function(O){f.onCueRangeEnter(O)});
f.player.addEventListener("onCueRangeExit",function(O){f.onCueRangeExit(O)});
f.player.addEventListener("onStateChange",function(O){f.onPlayerStateChange(O)});
f.player.addEventListener("SEEK_TO",function(O){f.onPlayerSeek(O)});
_.KG(u)})};
_.X.getPlayerVideoProgress=function(){var f=this;_.JA.cancelJob(this.playerPollJobId);if(this.player){var R=this.player.getCurrentTime();_.OJ(this.hostElement,"yt-player-time-changed",[R])}this.playerPollJobId=_.JA.addLowPriorityJob(function(){f.getPlayerVideoProgress()},1E3)};
_.X.stopPlayerListening=function(){this.player=null;_.JA.cancelJob(this.playerPollJobId)};
_.X.onPlayerStateChange=function(f){f===2&&this.removePendingCue()};
_.X.onPlayerSeek=function(f){var R;if(R=this.pendingReplayCueId)R=this.pendingReplayCueId,R=f===(_.E("web_transcript_cue_id_killswitch")?Number(R):Number(R.split("_")[1]));R||this.removePendingCue()};
_.X.onCueRangeEnter=function(f){PJz(f)&&(this.pendingReplayCueId=f)};
_.X.onCueRangeExit=function(f){PJz(f)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.X.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.X.onYtTranscriptPlayerSeek=function(f){this.player&&this.player.seekTo(f,!0)};
_.X.onYtTranscriptPlayerReplay=function(f,R){this.player&&(this.player.addCueRange(Msw(f),f,R),this.player.seekTo(f,!0),this.player.playVideo())};
_.X.onYtTranscriptPlayerEdit=function(f,R){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Msw(f),f,R),this.player.seekTo(f,!0))};
sn.prototype.onLoadReloadContinuation=sn.prototype.onLoadReloadContinuation;sn.prototype.panelContentVisibleChanged=sn.prototype.panelContentVisibleChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],sn.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sn.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],sn.prototype,"panelContentVisible",void 0);_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sn.prototype,"panelContentVisibleChanged",null);
_.B([_.Kf("yt-load-reload-continuation"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],sn.prototype,"onLoadReloadContinuation",null);sn=_.B([_.e({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],sn);
_.G(sn,"ytd-transcript-renderer",function(){if(OVK!==void 0)return OVK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return OVK=f},{mode:1});var krt;var KsX;var ns=function(){return _.U.apply(this,arguments)||this};
_.y(ns,_.U);ns.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ZW(this.hostElement,[this.data.clickCommand],this.hostElement))};
ns.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.pw)()+_.MP)+"px)"};
ns.prototype.updateShouldHideFromBinding=function(f){this.shouldHide=f.detail.value};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ns.prototype,"rendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ns.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],ns.prototype,"shouldHide",void 0);ns=_.B([_.e({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],ns);
_.G(ns,"ytd-ad-engagement-panel-banner-renderer",function(){if(KsX!==void 0)return KsX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KsX=f},{mode:_.c7("kevlar_poly_si_batch_j070")?1:2});var qMz;var Vv=function(){var f=_.U.apply(this,arguments)||this;f.modernPanels=_.E("kevlar_watch_modern_panels");f.buttonUpdate=_.E("web_modern_buttons");f.adsSemanticText=_.E("enable_ads_web_ep_buenos_aires_and_padding_fix");return f};
_.y(Vv,_.U);Vv.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.B([_.I(),_.S("design:type",Object)],Vv.prototype,"data",void 0);_.B([_.I({computed:"computeHideDefaultAdBadge(data)"}),_.S("design:type",Boolean)],Vv.prototype,"hideDefaultAdBadge",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vv.prototype,"modernPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vv.prototype,"buttonUpdate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vv.prototype,"adsSemanticText",void 0);
Vv=_.B([_.e({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Vv);
_.G(Vv,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(qMz!==void 0)return qMz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qMz=f},{mode:1});var A2N;var YY=function(){var f=_.U.apply(this,arguments)||this;f.darkerPanels=_.E("web_watch_darker_panels");f.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");f.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");f.modernPanels=_.E("kevlar_watch_modern_panels");f.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return f};
_.y(YY,_.U);_.X=YY.prototype;_.X.computeAdsInfoButton=function(){if(_.E("web_modern_buttons")){var f,R;return(R=_.t((f=this.data)==null?void 0:f.subtitleComplex,D49))==null?void 0:R.adInfoRenderer}};
_.X.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}}}}}};
_.X.collapsedChanged=function(){var f;(f=this.data)!=null&&f.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.E("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.X.focus=function(f){this.titleElement&&_.Vb(this.titleElement,f)};
_.X.computeTitleAriaLabel=function(f){var R=[];if(f.title){var u,O;R.push(this.ytRendererBehavior.getSimpleString(f.title)||((u=f.title.accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label))}f.contextualInfo&&R.push(this.ytRendererBehavior.getSimpleString(f.contextualInfo));return R.join(" ")};
_.X.onHeaderClick=function(f){this.shouldTriggerHeaderClick(f)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ZW(this.hostElement,[this.data.onClickCommand],this.hostElement)):(f=this.getVisibilityToggleButton())&&f.click())};
_.X.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var f=_.t(this.data.visibilityButton,_.z9)||_.t(this.data.visibilityButton,_.T9);f&&this.ytRendererBehavior.logExplicitClick(f)}};
_.X.getVisibilityToggleButton=function(){var f=_.b(this.hostElement).querySelector("#visibility-button").firstElementChild;return(f==null?void 0:f.is)==="ytd-toggle-button-renderer"?f:null};
_.X.shouldTriggerHeaderClick=function(f){return!_.$G(_.$S(f),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.X.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(f){f=_.t(f,_.tfa);this.targetId&&(f==null?void 0:f.targetId)===this.targetId&&(f=f.navigationButton)&&this.set("data.navigationButton",f)};
_.Vy.Object.defineProperties(YY.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!!(((f=this.entity)==null?0:f.isActionButtonHidden)||this.hideActionButton)}}});
YY.prototype.collapsedChanged=YY.prototype.collapsedChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],YY.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],YY.prototype,"ytdReduxBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],YY.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],YY.prototype,"targetId",void 0);_.B([_.I(),_.S("design:type",Boolean)],YY.prototype,"collapsed",void 0);_.B([_.I(),_.S("design:type",Boolean)],YY.prototype,"hideActionButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],YY.prototype,"shortsPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],YY.prototype,"liveChatEngagementPanel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],YY.prototype,"darkerPanels",void 0);_.B([_.a4("#title"),_.S("design:type",HTMLElement)],YY.prototype,"titleElement",void 0);_.B([_.I({computed:"computeAdsInfoButton(data)"}),_.S("design:type",Object)],YY.prototype,"adsInfoButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],YY.prototype,"enableSqueezebackPanels",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],YY.prototype,"enableAnchoredPanel",void 0);_.B([_.I({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(f,R){return _.kZ(f.entities,"engagementPanelTitleHeaderEntity",R)}}),
_.S("design:type",Object)],YY.prototype,"entity",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],YY.prototype,"modernPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],YY.prototype,"adsSemanticText",null);_.B([_.QR("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YY.prototype,"collapsedChanged",null);
_.B([_.T("entity","hideActionButton"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],YY.prototype,"isActionButtonHidden",null);YY=_.B([_.e({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],YY);
_.G(YY,"ytd-engagement-panel-title-header-renderer",function(){if(A2N!==void 0)return A2N;var f=document.createElement("template");_.N(f,'\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" on-click="onHeaderClick" 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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return A2N=f},{mode:1});var aol;var v8=function(){return _.U.apply(this,arguments)||this};
_.y(v8,_.U);v8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],v8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],v8.prototype,"data",void 0);v8=_.B([_.e({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],v8);
_.G(v8,"ytd-macro-markers-info-item-renderer",function(){if(aol!==void 0)return aol;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return aol=f},{mode:1});var Fs5;var QH5=function(f,R,u,O,c,h){_.d9.call(this);var l=this;this.JSC$20118_containerElement=f;this.hostElement=R;this.supportedSyncItems=u;this.syncEntityKey=O;this.options=c;this.renderLazyListItems=h;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;wy5(this);m6h(this);this.JSC$20118_scrollAnimation=new _.TZ(function(K){f.scrollTop=K});
_.qG(this,this.JSC$20118_scrollAnimation);this.addOnDisposeCallback(function(){l.exitBrowsingMode(!1);l.activeItem&&l.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.y(QH5,_.d9);var wy5=function(f){var R=_.aC(_.vh().resolve(_.zM),function(u){return u.entities.markersEngagementPanelSyncEntity||{}},function(u,O){var c;
u[f.syncEntityKey]!==O[f.syncEntityKey]&&((c=u[f.syncEntityKey])==null?void 0:c.activeItemIndex)!==void 0&&f.updatePanelActiveItem(u[f.syncEntityKey].activeItemIndex)});
f.unsubscribeFromTimedMarkersListSyncEntity=R;f.addOnDisposeCallback(R);Ws2(f)},Ws2=function(f){var R=_.vh().resolve(_.zM);
R=_.yB2(R.getState(),f.syncEntityKey);(R==null?void 0:R.activeItemIndex)!==void 0&&(R=f.getItemByIndex(R.activeItemIndex))&&f.setActiveItem(R)},m6h=function(f){var R=new _.vJ(f.onScroll,50,f);
_.qG(f,R);var u=function(){R.fire()};
f.JSC$20118_containerElement.addEventListener("scroll",u);f.addOnDisposeCallback(function(){f.JSC$20118_containerElement.removeEventListener("scroll",u)})};
_.X=QH5.prototype;
_.X.updatePanelActiveItem=function(f){var R=this.getItemByIndex(f);if(R){if(this.setActiveItem(R),this.contentVisible)if(this.browsingMode){var u;((u=this.options)==null?void 0:u.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(f=Epz(this),R.offsetTop<this.JSC$20118_containerElement.clientHeight+this.JSC$20118_containerElement.scrollTop&&f&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));txS(this)}else this.scrollToItem(R)}else _.Ih(new _.ts("Could not find "+this.supportedSyncItems+
" sync child to set active.",f,this.JSC$20118_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.X.getItemByIndex=function(f){var R;(R=this.renderLazyListItems)==null||R.call(this,f);R=this.JSC$20118_containerElement.querySelectorAll(this.supportedSyncItems);if(R.length>f)return R[f]};
_.X.setActiveItem=function(f){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));f.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=f};
_.X.scrollToItem=function(f){f=this.getScrollPositionForItem(f);this.JSC$20118_containerElement.scrollTop!==f&&this.JSC$20118_scrollAnimation.start(this.JSC$20118_containerElement.scrollTop,f,300)};
_.X.getScrollPositionForItem=function(f){if(this.JSC$20118_containerElement.querySelectorAll(this.supportedSyncItems)[0]===f)return 0;var R,u=((R=this.options)==null?0:R.percentOffset)?this.JSC$20118_containerElement.clientHeight*this.options.percentOffset:0;f=_.J5(f).y+this.JSC$20118_containerElement.scrollTop-(_.J5(this.JSC$20118_containerElement).y+u);return Math.max(0,Math.min(f,this.JSC$20118_containerElement.scrollHeight-this.JSC$20118_containerElement.offsetHeight))};
_.X.onScroll=function(){this.activeItemBelowSyncPosition=Epz(this);if(this.activeItem&&!this.JSC$20118_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20118_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var f;switch((f=this.options)==null?void 0:f.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Cna(this));txS(this);break;default:this.enterBrowsingMode(!0)}}};
_.X.enterBrowsingMode=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1){if(R.browsingMode)return c.return();R.browsingMode=!0;f&&R.hostElement.classList.add("browsing-mode");R.playerExitBrowsingModeListener=function(){R.exitBrowsingMode(!1)};
return _.A(c,_.cJ(),2)}u=c.yieldResult;(O=u)==null||O.addEventListener("SEEK_TO",R.playerExitBrowsingModeListener);_.KG(c)})};
_.X.exitBrowsingMode=function(f){f=f===void 0?!0:f;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),f&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.X.removePlayerSeekListener=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1)return f.playerExitBrowsingModeListener?_.A(O,_.cJ(),3):O.jumpTo(0);R=O.yieldResult;(u=R)==null||u.removeEventListener("SEEK_TO",f.playerExitBrowsingModeListener);f.playerExitBrowsingModeListener=void 0;_.KG(O)})};
var txS=function(f){var R;((R=f.options)==null?void 0:R.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Cna(f)?f.hostElement.classList.remove("browsing-mode"):f.activeItem&&f.hostElement.classList.add("browsing-mode"))},Epz=function(f){if(!f.activeItem)return!1;
var R,u=((R=f.options)==null?0:R.percentOffset)?f.JSC$20118_containerElement.clientHeight*f.options.percentOffset:0;return f.activeItem.offsetTop>=f.JSC$20118_containerElement.scrollTop+u},Cna=function(f){if(!f.activeItem)return!1;
var R=f.activeItem.offsetTop+14<=f.JSC$20118_containerElement.scrollTop+f.JSC$20118_containerElement.clientHeight;return f.activeItem.offsetTop+f.activeItem.clientHeight-14>=f.JSC$20118_containerElement.scrollTop&&R};
QH5.prototype.panelContentVisibleChanged=function(f){(this.contentVisible=f)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var y2X=function(f,R){f.syncEntityKey=R;var u;(u=f.unsubscribeFromTimedMarkersListSyncEntity)==null||u.call(f);wy5(f)},d6N=function(f,R){f.options=R};var i7=function(){var f=_.U.apply(this,arguments)||this;f.browsingMode=!1;f.modern=_.E("web_button_rework");f.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return f};
_.y(i7,_.U);_.X=i7.prototype;_.X.activeItemChanged=function(){if(!_.E("synced_panel_scrolling_controller")){var f;((f=this.syncEntity)==null?void 0:f.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.X.created=function(){var f=this;_.E("synced_panel_scrolling_controller")||(this.JSC$20122_scrollAnimation=new _.TZ(function(R){f.contents.scrollTop=R}),this.boundExitBrowsingMode=function(){f.exitBrowsingMode(!1)})};
_.X.detached=function(){if(_.E("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.X.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"}}}};
_.X.dataChanged=function(){var f=this;_.E("synced_panel_scrolling_controller")?_.su(this,function(){if(f.scrollController){var R;(R=f.scrollController)==null||R.exitBrowsingMode(!1);var u,O,c;(O=f.scrollController)==null||y2X(O,(c=(u=f.data)==null?void 0:u.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key");var h,l,K;(K=f.scrollController)==null||d6N(K,{percentOffset:(h=f.data)==null?void 0:h.selectedItemAlignmentPercentOffset,floatingPillType:(l=f.data)==null?void 0:l.floatingPillType})}else{var q,
F,w,m;f.scrollController=new QH5(f.contents,f.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(m=(q=f.data)==null?void 0:q.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key",{percentOffset:(F=f.data)==null?void 0:F.selectedItemAlignmentPercentOffset,floatingPillType:(w=f.data)==null?void 0:w.floatingPillType},function(W){f.renderLazyListItems(W)})}f.scrollController.panelContentVisibleChanged(!!f.panelContentVisible)}):this.exitBrowsingMode()};
_.X.computeButtonShape=function(){var f=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){f.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.X.computeSyncEnabled=function(f){return!(f==null||!f.syncButtonLabel)};
_.X.renderLazyListItems=function(f){for(var R=this.contents.children,u=0,O=0;O<R.length;O++){var c=void 0;(c=R[O].ytLazyListBehavior)==null||c.fillRemainingListItems();var h=void 0,l=void 0;c=_.t((h=this.data)==null?void 0:(l=h.contents)==null?void 0:l[O],_.B5l);l=h=void 0;if((h=c)==null?0:(l=h.contents)==null?0:l.length)u+=c.contents.length;if(u>=f)break}};
_.X.getItemByIndex=function(f){this.renderLazyListItems(f);var R=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(R.length>f)return R[f]};
_.X.setActiveItem=function(f){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);f.active!==void 0&&(f.active=!0);this.currentActiveItem=f};
_.X.handleSetActivePanelItemAction=function(f){if((f=_.t(f,y79))&&this.panelTargetId===f.panelTargetId){f=f.itemIndex;if(_.E("synced_panel_scrolling_controller")){var R,u;var O=(u=(R=this.data)==null?void 0:R.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key"}else{var c;O=(c=this.data)==null?void 0:c.syncModelEntityKey}if(O){var h;((h=this.syncEntity)==null?void 0:h.activeItemIndex)!==f&&this.ytdReduxBehavior.dispatch(_.aA("markersEngagementPanelSyncEntity",O,{key:O,activeItemIndex:f}))}else this.updatePanelActiveItem(f)}};
_.X.updatePanelActiveItem=function(f){var R=this.getItemByIndex(f);R?(this.setActiveItem(R),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(R)):_.Ih(new _.ts("Could not find ytd-macro-markers-list-renderer sync child to set active.",f,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.X.scrollToItem=function(f){f=this.getScrollPositionForItem(f);this.contents.scrollTop!==f&&this.JSC$20122_scrollAnimation.start(this.contents.scrollTop,f,300)};
_.X.getScrollPositionForItem=function(f){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===f)return 0;f=_.J5(f).y+this.contents.scrollTop-_.J5(this.contents).y-this.getStickyHeaderHeight(f);return Math.min(f,this.contents.scrollHeight-this.contents.offsetHeight)};
_.X.getStickyHeaderHeight=function(f){if(f.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var R,u,O;return(O=(R=f.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(u=R.header)==null?void 0:u.offsetHeight)!=null?O:0}return 0};
_.X.onScroll=function(){_.E("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20122_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.X.enterBrowsingMode=function(){var f=this;return _.k(function(R){if(R.nextAddress==1){if(f.browsingMode)return R.return();f.browsingMode=!0;return _.A(R,_.YG().getPlayerPromise(),2)}f.player=R.yieldResult;f.player.addEventListener("SEEK_TO",f.boundExitBrowsingMode);_.KG(R)})};
_.X.exitBrowsingMode=function(f){this.browsingMode&&(this.browsingMode=!1,(f===void 0||f)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.X.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.X.onSyncClick=function(){if(_.E("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.exitBrowsingMode()}else this.exitBrowsingMode()};
_.X.panelContentVisibleChanged=function(){if(_.E("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
i7.prototype.panelContentVisibleChanged=i7.prototype.panelContentVisibleChanged;i7.prototype.dataChanged=i7.prototype.dataChanged;i7.prototype.activeItemChanged=i7.prototype.activeItemChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],i7.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],i7.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],i7.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],i7.prototype,"useCustomColors",void 0);_.B([_.I({computed:"computeSyncEnabled(data)"}),_.S("design:type",Boolean)],i7.prototype,"syncEnabled",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],i7.prototype,"panelTargetId",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],i7.prototype,"panelContentVisible",void 0);_.B([_.a4("#contents"),_.S("design:type",HTMLElement)],i7.prototype,"contents",void 0);_.B([_.a4("#sync-container"),_.S("design:type",HTMLElement)],i7.prototype,"syncContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i7.prototype,"browsingMode",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],i7.prototype,"modern",void 0);_.B([_.I({selectorArgs:["data.syncModelEntityKey"],selector:_.yB2}),_.S("design:type",Object)],i7.prototype,"syncEntity",void 0);_.B([_.qM("syncEntity.activeItemIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i7.prototype,"activeItemChanged",null);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i7.prototype,"dataChanged",null);_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i7.prototype,"panelContentVisibleChanged",null);i7=_.B([_.e({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],i7);
_.G(i7,"ytd-macro-markers-list-renderer",function(){if(Fs5!==void 0)return Fs5;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Fs5=f},{mode:1});var ND2;var rO=function(){return _.U.apply(this,arguments)||this};
_.y(rO,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rO.prototype,"data",void 0);rO=_.B([_.e({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],rO);
_.G(rO,"ytd-error-corrections-section-item-renderer",function(){if(ND2!==void 0)return ND2;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ND2=f},{mode:1});var Ls5;var fZ=function(){return _.U.apply(this,arguments)||this};
_.y(fZ,_.U);fZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],fZ.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],fZ.prototype,"data",void 0);fZ=_.B([_.e({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],fZ);
_.G(fZ,"ytd-error-corrections-section-renderer",function(){if(Ls5!==void 0)return Ls5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Ls5=f},{mode:1});var bVa;var Rx=function(){return _.U.apply(this,arguments)||this};
_.y(Rx,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Rx.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Rx.prototype,"data",void 0);Rx=_.B([_.e({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Rx);
_.G(Rx,"ytd-topic-link-renderer",function(){if(bVa!==void 0)return bVa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return bVa=f},{mode:1});var pym;var u1=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("kevlar_modern_sd_v2");f.modernLockupV2=_.E("modernize_structured_description_playlist_lockups_v2");f.modernTypography=_.E("web_modern_typography");return f};
_.y(u1,_.U);u1.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],u1.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],u1.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],u1.prototype,"modernLockupV2",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],u1.prototype,"modernTypography",void 0);u1=_.B([_.e({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],u1);
_.G(u1,"ytd-video-description-course-section-renderer",function(){if(pym!==void 0)return pym;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pym=f},{mode:1});var jH9;var Oa=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("kevlar_modern_sd_v2");f.modernTypography=_.E("web_modern_typography");return f};
_.y(Oa,_.U);Oa.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Oa.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Oa.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Oa.prototype,"modernTypography",void 0);
Oa=_.B([_.e({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Oa);
_.G(Oa,"ytd-video-description-files-section-renderer",function(){if(jH9!==void 0)return jH9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return jH9=f},{mode:1});var D6K;var c6=function(){return _.U.apply(this,arguments)||this};
_.y(c6,_.U);c6.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],c6.prototype,"data",void 0);c6=_.B([_.e({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],c6);
_.G(c6,"ytd-video-description-gaming-section-renderer",function(){if(D6K!==void 0)return D6K;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return D6K=f},{mode:1});var J2h;var Xg=function(){var f=_.U.apply(this,arguments)||this;f.isExpanded=!1;return f};
_.y(Xg,_.U);Xg.prototype.computeHasDefaultMetadataEndpoint=function(f){var R;f=f==null?void 0:(R=f.defaultMetadata)==null?void 0:R.runs;return!(!f||f.length!==1||!f[0].navigationEndpoint)};
Xg.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Vy.Object.defineProperties(Xg.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Xg.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Xg.prototype,"isExpanded",void 0);_.B([_.I({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Xg.prototype,"hasDefaultMetadataEndpoint",void 0);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xg.prototype,"isExpandable",null);_.B([_.T("data","isExpandable","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xg.prototype,"showExpandedMetadata",null);Xg=_.B([_.e({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Xg);
_.G(Xg,"ytd-info-row-renderer",function(){if(J2h!==void 0)return J2h;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return J2h=f},{mode:1});var z0a;var hJ=function(){var f=_.U.apply(this,arguments)||this;f.currentIndex=0;f.supportComponentResize=!0;f.modern=_.E("kevlar_modern_sd_v2");f.JSC$20148_lastScrollContainerWidth=NaN;return f};
_.y(hJ,_.U);_.X=hJ.prototype;
_.X.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"}}}};
_.X.getItemsPath=function(){return"videoLockups"};
_.X.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.X.onIronResize=function(){this.updateVideoLockupStyles()};
_.X.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.X.updateVideoLockupStyles=function(){var f;this.JSC$20148_scrollContainer!==void 0&&(f=this.videoLockups)!=null&&f.length&&(f=this.JSC$20148_scrollContainer.clientWidth,f!==this.JSC$20148_lastScrollContainerWidth&&(this.JSC$20148_lastScrollContainerWidth=f,_.ZO(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(f*.8,415)+"px"}),_.ul(this.hostElement,"iron-resize")))};
_.Vy.Object.defineProperties(hJ.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var f=[],R;if((R=this.data)==null||!R.carouselLockups)return f;R=_.Z(this.data.carouselLockups);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;((O=_.t(u,iKl))==null?0:O.videoLockup)&&f.push(_.t(u,iKl).videoLockup)}return f}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoLockups)==null||!f.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var f=[],R;if((R=this.data)==null||!R.carouselLockups)return f;var u;return(u=_.t(this.data.carouselLockups[this.scrollCount],iKl))==null?void 0:u.infoRows}}});
hJ.prototype.dataChanged=hJ.prototype.dataChanged;hJ.prototype.onIronResize=hJ.prototype.onIronResize;hJ.prototype.hiddenChanged=hJ.prototype.hiddenChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],hJ.prototype,"componentBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],hJ.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hJ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],hJ.prototype,"inlineStructuredDescription",void 0);_.B([_.I({value:2}),_.S("design:type",Number)],hJ.prototype,"initialCount",void 0);_.B([_.I(),_.S("design:type",Object)],hJ.prototype,"currentIndex",void 0);
_.B([_.I(),_.S("design:type",Number)],hJ.prototype,"scrollCount",void 0);_.B([_.I(),_.S("design:type",Object)],hJ.prototype,"supportComponentResize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],hJ.prototype,"contentHidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hJ.prototype,"modern",void 0);_.B([_.a4("#scroll-container"),_.S("design:type",HTMLDivElement)],hJ.prototype,"JSC$20148_scrollContainer",void 0);
_.B([_.qM("contentHidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hJ.prototype,"hiddenChanged",null);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],hJ.prototype,"videoLockups",null);_.B([_.T("videoLockups"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hJ.prototype,"hasVideoLockups",null);
_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hJ.prototype,"onIronResize",null);_.B([_.T("data","scrollCount"),_.S("design:type",Object),_.S("design:paramtypes",[])],hJ.prototype,"infoRows",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hJ.prototype,"dataChanged",null);hJ=_.B([_.e({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],hJ);
_.G(hJ,"ytd-video-description-music-section-renderer",function(){if(z0a!==void 0)return z0a;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return z0a=f},{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var TDe;var Zr=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("kevlar_modern_sd_v2");f.modernTypography=_.E("web_modern_typography");return f};
_.y(Zr,_.U);Zr.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.B([_.I({}),_.S("design:type",Object)],Zr.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zr.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zr.prototype,"modernTypography",void 0);
Zr=_.B([_.e({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Zr);
_.G(Zr,"ytd-video-description-transcript-section-renderer",function(){if(TDe!==void 0)return TDe;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return TDe=f},{mode:1});var HVK;_.ii(_.nf(function(f){var R=_.Ax(_.D3D,function(){return f.data().firstProviderLinkStatusEntityKey}),u=_.Ax(_.D3D,function(){return f.data().secondProviderLinkStatusEntityKey}),O=function(){var c,h;
return((c=R())==null?void 0:c.linked)||((h=u())==null?void 0:h.linked)};
return _.a("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.a(_.YO,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return f.data().sectionTitle}}),_.a(_.YO,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return O()?f.data().connectedMessage:f.data().notConnectedMessage}}),_.a(_.Q,{cond:O,
then:function(){return _.a(_.y5,{data:function(){return f.data().connectedButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.a(_.Q,{cond:function(){return!O()},
then:function(){return _.a(_.y5,{data:function(){return f.data().notConnectedButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;return _.a("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.a("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.a(_.YO,{text:function(){return R().sectionTitle}})),_.a("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.a(_.YO,{text:function(){return R().bodyHeader}})),_.a("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.a(_.YO,{text:function(){return R().bodyText}})),_.a(_.Q,
{cond:function(){return R().attributionText},
then:function(){return _.a("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.a(_.YO,{text:function(){return R().attributionText}}))}}))},"Ri"),"how-this-was-made-section-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){return _.a("yt-video-description-youchat-section-view-model",{class:_.KL("ytVideoDescriptionYouchatSectionViewModelHost")},_.a("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.a(_.YO,{text:function(){return f.data().sectionTitle}})),_.a("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.a(_.YO,{text:function(){return f.data().subHeaderText}})),_.a("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.a(_.TS,{data:function(){return _.t(f.data().primaryButton,
_.dW)}})))},"Si"),"yt-video-description-youchat-section-view-model",{props:{data:_.SG}});var l1=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("kevlar_modern_sd_v2");f.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return f};
_.y(l1,_.U);_.X=l1.prototype;
_.X.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}}}}}};
_.X.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.X.dataChanged=function(){var f,R;this.hasDescriptionOnly=!(((f=this.data)==null?void 0:(R=f.items)==null?void 0:R.length)!==1||!_.t(this.data.items[0],r75))};
_.X.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.X.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.X.autoFocusDescription=function(){var f;((f=_.vh().resolve(_.Y8(_.Oc)))==null?0:f.isKeyBoardInUse())&&this.description&&_.YM(this.description)};
_.X.resize=function(){if(_.E("kevlar_disable_sd_resize"))this.JSC$20156_cardList&&_.ul(this.JSC$20156_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.ul(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.ul(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.X.scrollToSection=function(f){if(f=this.getSectionElement(f))_.OJ(this.hostElement,"yt-scroll-to-watch-element",[f]),f.focus()};
_.X.getSectionElement=function(f){switch(f){case "infocards-item-section":var R;return(R=this.infocardsSection)!=null?R:null;case "transcript-item-section":var u;return(u=this.transcriptSection)!=null?u:null;case "how-this-was-made-section-item-section":var O;return(O=this.howThisWasMadeSection)!=null?O:null;case "files-item-section":var c;return(c=this.filesSection)!=null?c:null;default:return null}};
_.X.handleSetActiveItemAction=function(f){var R=_.t(f,y79),u=R&&(R==null?void 0:R.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20156_cardList;if(R&&u){f=this.currentActiveChapter;var O=this.currentActiveProblem;R=u==null?void 0:u.getItemByIndex(R.itemIndex);var c=u=!0;R&&(R.active=!0,R.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(u=f!==R,c=!1,this.currentActiveChapter=R):(R==null?void 0:R.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(u=!1,c=O!==R,this.currentActiveProblem=R));f&&u&&(f.active=!1);O&&c&&(O.active=!1)}};
_.Vy.Object.defineProperties(l1.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
l1.prototype.onYtExpanderMoreTapped=l1.prototype.onYtExpanderMoreTapped;l1.prototype.onHiddenChanged=l1.prototype.onHiddenChanged;l1.prototype.dataChanged=l1.prototype.dataChanged;l1.prototype.panelContentVisibleChanged=l1.prototype.panelContentVisibleChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],l1.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],l1.prototype,"ironResizableBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],l1.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],l1.prototype,"panelContentVisible",void 0);_.B([_.I(),_.S("design:type",Boolean)],l1.prototype,"hasDescriptionOnly",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],l1.prototype,"inlineStructuredDescription",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],l1.prototype,"hidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],l1.prototype,"shortsPanel",void 0);_.B([_.I(),_.S("design:type",Object)],l1.prototype,"videoSummary",void 0);_.B([_.I(),_.S("design:type",Object)],l1.prototype,"merchShelf",void 0);
_.B([_.T("videoSummary"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],l1.prototype,"showVideoSummary",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],l1.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],l1.prototype,"engagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],l1.prototype,"watchWhileSdp",void 0);
_.B([_.a4("ytd-expandable-video-description-body-renderer"),_.S("design:type",Object)],l1.prototype,"description",void 0);_.B([_.a4("ytd-horizontal-card-list-renderer"),_.S("design:type",Object)],l1.prototype,"JSC$20156_cardList",void 0);_.B([_.a4("ytd-horizontal-card-list-renderer[center-items]"),_.S("design:type",Object)],l1.prototype,"problemWalkthroughCardList",void 0);_.B([_.a4("ytd-shelf-renderer"),_.S("design:type",Object)],l1.prototype,"shelfSection",void 0);
_.B([_.a4("ytd-video-description-music-section-renderer"),_.S("design:type",Object)],l1.prototype,"musicMetadataSection",void 0);_.B([_.a4("ytd-video-description-infocards-section-renderer"),_.S("design:type",Object)],l1.prototype,"infocardsSection",void 0);_.B([_.a4("ytd-video-description-transcript-section-renderer"),_.S("design:type",Object)],l1.prototype,"transcriptSection",void 0);
_.B([_.a4("how-this-was-made-section-view-model"),_.S("design:type",Object)],l1.prototype,"howThisWasMadeSection",void 0);_.B([_.a4("ytd-video-description-files-section-renderer"),_.S("design:type",Object)],l1.prototype,"filesSection",void 0);_.B([_.qM("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],l1.prototype,"panelContentVisibleChanged",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],l1.prototype,"dataChanged",null);_.B([_.qM("hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],l1.prototype,"onHiddenChanged",null);_.B([_.Kf("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],l1.prototype,"onYtExpanderMoreTapped",null);
l1=_.B([_.e({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],l1);
_.G(l1,"ytd-structured-description-content-renderer",function(){if(HVK!==void 0)return HVK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return HVK=f},{mode:2});var IoX;var Mx2;var kt=function(){return _.U.apply(this,arguments)||this};
_.y(kt,_.U);kt.prototype.computeAriaLabel=function(f){var R,u;return(f==null?void 0:(R=f.accessibility)==null?void 0:(u=R.accessibilityData)==null?void 0:u.label)||_.Fa("LOADING",void 0,"Loading")};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kt.prototype,"data",void 0);_.B([_.I({computed:"computeAriaLabel(data)"}),_.S("design:type",String)],kt.prototype,"ariaLabel",void 0);kt=_.B([_.DO({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],kt);
_.G(kt,"yt-content-loading-renderer",function(){if(Mx2===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;IoX===void 0&&(IoX=document.createElement("template"));var O=IoX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Mx2=f}f=Mx2;return f},{mode:_.c7("kevlar_poly_si_batch_j043")?1:2});_.ii(_.nf(function(f){var R=_.Z(_.qK(!1,void 0,"WbYeXc")),u=R.next().value,O=R.next().value;R=_.Z(_.qK(!1,void 0,"msXkzc"));var c=R.next().value,h=R.next().value;_.bt(function(){var q=_.t(f.data().collaboratePlaylistCollaborationSetting,oqe);q&&O(q.switchedOnByDefault);var F=_.t(f.data().allowNewCollaboratorsPlaylistCollaborationSetting,oqe);F&&h(F.switchedOnByDefault);if(!q&&!F||!q&&f.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")O(!0),h(!0)});
var l=function(q){O(q);h(q);var F=f.data().playlistCollaborationEntityKey||"";var w=_.xs().getState();(w=_.kZ(w.entities,"playlistCollaborationEntity",F))&&(w==null?void 0:w.isCollaborative)===q||_.xs().dispatch(_.aA("playlistCollaborationEntity",F,Object.assign({},w,{isCollaborative:q})))},K=function(q){h(q)};
return _.a("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.a("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.a(_.y5,{data:function(){return f.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(q){return _.a(_.pyC,{data:q.data,
onSwitch:l})}})),_.a(_.Q,{cond:u,
then:function(){return _.a("div",null,_.a("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.a(_.y5,{data:function(){return f.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(q){return _.a(_.pyC,{data:q.data,
onSwitch:K,overrideDisabled:!1})}})),_.a(_.Q,{cond:c,
then:function(){return _.a("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.a(_.y5,{data:function(){return f.data().copyLinkButton}},{buttonViewModel:_.TS}))}}),_.a("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.a(_.y5,{data:function(){return f.data().playlistCollaborators}},{contentListItemViewModel:_.czK})))}}))},"Ti"),"playlist-collaboration-view-model",{props:{data:_.SG}});var Pne=_.nf(function(f){var R=f.data;var u=f.customCommandResolver;return _.a(_.RS,null,_.a("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.a(_.y5,{data:function(){return R().adAvatar}},{adAvatarViewModel:function(O){return _.a(_.m9f,{data:O.data,
customCommandResolver:u})}})),_.a("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.a(_.Q,{cond:function(){return R().headline},
then:function(O){return _.a(_.YO,{text:O,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.a("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.a(_.y5,{data:function(){return R().adBadge}},{adBadgeViewModel:function(O){return _.a(_.rG,{data:O.data,
hasDot:function(){return R().primaryDetailsLine!==void 0},
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.a(_.y5,{data:function(){return R().primaryDetailsLine}},{adDetailsLineViewModel:function(O){return _.a(_.fO,{data:O.data,
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ui"),U6w=_.nf(function(f){var R=f.data;
var u=f.customCommandResolver;f=_.sW();_.gW(f,function(){return R().interaction},u);
_.fT(f,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});return _.a("ad-avatar-lockup-view-model",{class:function(){var O;return((O=R().interaction)==null?0:O.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:f,"aria-label":function(){var O,c;return(O=R().interaction)==null?void 0:(c=O.accessibility)==null?void 0:c.label}},_.a(_.yM,null,_.a(_.t1,{when:function(){return R().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.a(Pne,{data:R,
customCommandResolver:u})}),_.a(_.CQ,null,function(){return null})))},"Vi");_.ii(_.nf(function(f){var R=f.data;var u=f.panelContentVisibility;f=_.sW();_.gW(f,function(){return R().interaction},U0t);
_.fT(f,{visibilityCallback:function(c){var h,l=(h=R().interaction)==null?void 0:h.onFirstVisible;c&&l&&_.Ux(l)},
showOption:_.nY});_.zo(function(){var c,h;if(h=_.Ph("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var l;h=(l=h())==null?void 0:l.onLayoutVisibleCallback}else h=null;(c=h)==null||c()});
var O=function(){return u()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.a("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:f},_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.a(_.Q,{cond:_.zEq("(min-width: "+((0,_.pw)()+_.MP)+"px) or (max-width: 600px)"),then:function(){return _.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(c){return _.a(_.la,{data:c.data,
targetHeight:80,customCommandResolver:U0t})}})}})),_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.a(_.y5,{data:function(){return R().adAvatarLockup}},{adAvatarLockupViewModel:function(c){return _.a(U6w,{data:c.data,
customCommandResolver:U0t})}})),_.a(_.Q,{cond:O,
then:function(){return _.a(_.y5,{data:function(){return R().adButton}},{adButtonViewModel:function(c){return _.a(_.Yy,{data:c.data,
customCommandResolver:U0t})}})},
else:function(){return _.a(_.y5,{data:function(){return R().menu}},{buttonViewModel:_.TS})}}),_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.a(_.y5,{data:function(){var c=_.t(R().toggleButton,_.Np);
return{toggleButtonViewModel:Object.assign({},c,{isTogglingDisabled:!0,isToggled:O()})}}},{toggleButtonViewModel:_.Lr})))))},"Wi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.SG,
panelContentVisibility:_.SG}});_.ii(_.nf(function(f){var R=function(){return _.t(f.data().inputComposerViewModel,x4S)},u=function(){var d;
return((d=R())==null?void 0:d.youchatPendingResponseEntityKey)||""},O=_.Ax(_.N1X,u),c=function(){var d;
return!((d=O())==null||!d.isPendingResponse)},h=_.Z(_.qK(!0,void 0,"DR0q1d")),l=h.next().value,K=h.next().value,q=function(){return R().sectionTargetId||"youchat_messages_section"};
h=_.n0();var F=_.sW(),w=_.Ax(bXm,"chat_input_view_model_state"),m=pEw(),W=function(){var d;return!((d=w())==null||!d.value)};
_.bt(function(){var d;!W()&&((d=R())==null?0:d.welcomeFeatureContinuation)&&(d={continuationCommand:{token:R().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.IF(d),m(!0));var p=q(),J;(J=_.vh().resolve(_.Y8(_.mf)))==null||J.addEventListener("yt-navigate-start",function(){_.Ep.remove(p);m(!1)},{once:!0})});
var C=function(){var d,p,J,M,P,g,x,fh,V;return _.k(function(ZD){d=F.value.value;F.value.value="";e$K(F.value);p=GVa(q(),d);_.IF(p);J=_.LEN(u());_.Ux(((M=R())==null?void 0:M.onSubmitCommand)||{});J(!0);g=String(Math.floor(((P=_.Xk())==null?void 0:P.getCurrentTime())||0)*1E3);fh={continuationCommand:{token:(x=R())==null?void 0:x.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};V={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:d,playerOffsetMs:g}};_.IF(fh,{form:{formData:V},
commandController:{onSuccess:function(){J(!1)},
onServerError:function(){var mP=q();_.IF({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:mP}}]}}});J(!1)}}});
_.KG(ZD)})};
return _.a("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:h},_.a("div",{class:"chatInputViewModelChatInputWrapper"},_.a("form",{class:"chatInputViewModelChatInputForm"},_.a("textarea",{class:"chatInputViewModelChatInput",el:F,"on:keydown":_.Ff(function(d){var p=c()||!1;e$K(F.value);p||d.key!=="Enter"||d.shiftKey||(d.preventDefault(),C());return!1}),
"on:keyup":_.Ff(function(){K(F.value.value.length===0);return!1}),
placeholder:function(){var d,p;var J=_.t((p=R())==null?void 0:p.inputFormField,Eq5);return J==null?void 0:(d=J.contentProperties)==null?void 0:d.placeholderText},
rows:1}),_.a(_.TS,{data:function(){return _.t(f.data().sendButton,_.dW)},
onClick:function(d){d.preventDefault();C();K(F.value.value.length===0)},
buttonOverrides:function(){return{disabled:l()||c()}}})),_.a(_.YO,{className:"chatInputViewModelChatDisclaimer",
text:function(){var d;return(d=_.t(f.data().disclaimer,_.owA))==null?void 0:d.text}})))},"Xi"),"yt-chat-input-view-model",{props:{data:_.SG}});var e0w=["engagement-panel-clip-create","engagement-panel-clip-view"],Gre=0,KZ=function(){var f=_.U.apply(this,arguments)||this;var R;f.headerData=(R=f.data)==null?void 0:R.header;f.darkerPanels=_.E("web_watch_darker_panels");f.matchContentTheme=_.E("web_watch_panel_content_match_theme");f.disableAutoFill=!1;f.isFullscreen=!1;f.isTheaterMode=!1;f.modernPanels=_.E("kevlar_watch_modern_panels");f.liveChatReplyPanel=!1;f.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");f.disableBackdropFilter=
_.E("web_disable_backdrop_filter");f.trackEngagementPanelVisibility=_.E("web_watch_track_engagement_panel_visibility");f.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 f};
_.y(KZ,_.U);_.X=KZ.prototype;
_.X.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(f){var R;
return(f==null?void 0:(R=f.webComponentHint)==null?void 0:R.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.X.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var f;if((f=this.hostElement.parentElement)==null?0:f.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.X.detached=function(){this.updateTheaterDisablement()};
_.X.showPanel=function(){var f=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.JA.addJob(function(){f.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.X.maybeScrollToItemSection=function(f){var R=this,u,O=f==null?void 0:(u=f.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;O&&_.JA.addJob(function(){var c;(c=R.sectionListRendererElement)==null||c.scrollToItemSection(O)},8)};
_.X.hidePanel=function(){var f=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.JA.addJob(function(){f.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.X.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.X.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.X.updatePanel=function(f,R,u,O){var c=this;if((f=f==null?void 0:f.engagementPanelSectionListRenderer)||O){if(f){O=f.header;var h=f.content,l=f.footer;(f=f.targetId)&&this.set("data.targetId",f);O&&this.set("data.header",O);h&&this.set("data.content",h);l&&this.set("data.footer",l)}else O&&(f=O.content,h=O.secondaryHeaderContent,(O=O.targetId)&&this.set("data.targetId",O),f&&this.set("data.content",f),h&&(this.secondaryHeaderData=h));this.updateChildVisibilityProperties();if(R){var K;_.E("kevlar_update_panel_focus_scroll_killswitch")||
(K={preventScroll:!0});this.focus(K)}_.su(this,function(){_.ul(c.hostElement,"yt-refit");c.maybeScrollToItemSection(u)})}};
_.X.computeHeaderData=function(){var f,R=(0,_.dq.unsafeClone)((f=this.data)==null?void 0:f.header);if(R){f=new _.Y(Object.keys(R)[0]);var u=_.t(R,f),O=_.t(this.secondaryHeaderData,f);O&&_.jQ(R,f,Object.assign({},O,u))}return R};
_.X.getReloadContinuation=function(){var f,R,u,O=_.Z(((f=this.data)==null?void 0:(R=f.content)==null?void 0:(u=R.sectionListRenderer)==null?void 0:u.continuations)||[]);for(f=O.next();!f.done;f=O.next())if(f=f.value,f.reloadContinuationData)return f.reloadContinuationData.continuation};
_.X.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var f;((f=this.data)==null?0:f.targetId)&&(f=this.contentElement.firstElementChild)&&f.setAttribute("panel-target-id",this.data.targetId)};
_.X.forwardPopupClosedToFlowRootRenderer=function(){var f=_.b(this.hostElement).querySelector("ytd-flow-root-renderer");if(f)f.onPopupClosed()};
_.X.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var f=_.E("web_watch_imax_theater_mode")&&this.isTheaterMode;f=_.E("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||f;if(_.E("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||f){var R;this.visibility=
(R=this.data)==null?void 0:R.visibility;var u;this.trackEngagementPanelVisibility&&((u=this.data)==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var O,c,h,l;this.contentEmpty=!!(((O=this.data)==null?0:(c=O.content)==null?0:c.structuredDescriptionContentRenderer)&&Object.keys((h=this.data)==null?void 0:(l=h.content)==null?void 0:l.structuredDescriptionContentRenderer).length===0);(R=_.vh().resolve(_.yT))&&R.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.X.isTheaterModeChanged=function(){_.E("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.X.isFullscreenChanged=function(){_.E("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.X.focus=function(f){if(this.header)this.header.focus(f);else{var R;(R=_.b(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||R.focus(f)}};
_.X.visibilityChanged=function(){if(!_.E("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var f=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=O||!this.lastVisibility,h,l,K=(h=this.data)==null?void 0:(l=h.identifier)==null?void 0:l.tag,
q;if(((q=this.data)==null?0:q.onShowCommands)&&f&&c)_.ZW(this.hostElement,this.data.onShowCommands,this.hostElement),K&&_.sP().dispatch(_.OP({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:K}}));else{var F;((F=this.data)==null?0:F.onHideCommands)&&R&&u&&(_.ZW(this.hostElement,this.data.onHideCommands,this.hostElement),K&&_.sP().dispatch(_.OP({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:K}})))}f&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Gre++));_.E("kevlar_watch_focus_on_engagement_panels")&&
f&&O&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.X.notifyVisibilityChanged=function(f){var R;_.c_(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,f,(R=this.data)==null?void 0:R.targetId])};
_.X.updateTheaterDisablement=function(){if(!_.E("kevlar_watch_theater_disablement_killswitch")){var f=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&e0w.includes(f)&&!_.E("watch_next_grid_ignore_disallowed_panels")){var R=_.IA(_.sP().getState()),u=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";f!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():u?(this.originalTheaterState===void 0&&(this.originalTheaterState=R,this.theaterDisablementPanelIdentifier=
f),R&&_.OJ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.X.clearTheaterDisablement=function(){_.OJ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.X.updateChildVisibilityProperties=function(){this.hostElement||_.E("kevlar_panel_property_init_killswitch")||this._enableProperties();var f=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=f);var R,u=(R=this.headerElement)==null?void 0:R.firstElementChild;if(u&&!this.adHeaderImageLockupViewModel){R=f==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";u.collapsed=R;u=_.b(u).querySelector("#visibility-button");if(!u)return;(u=u.firstElementChild)&&
u.polymerController.is==="ytd-toggle-button-renderer"&&u.polymerController.data.isToggled!==R&&u.polymerController.set("data.isToggled",R)}var O;if(R=(O=this.contentElement)==null?void 0:O.firstElementChild)if(f&&f!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")R.removeAttribute("panel-content-visible");else{R.setAttribute("panel-content-visible","");var c;(c=R.markDirty)==null||c.call(R)}};
_.X.onYtChangeEngagementPanelVisibilityAction=function(f){var R=this,u,O=(u=this.data)==null?void 0:u.targetId,c,h,l;u=((c=this.data)==null?void 0:(h=c.identifier)==null?void 0:h.tag)||((l=this.data)==null?void 0:l.panelIdentifier);var K=_.t(f,_.njk),q;f=O&&(K==null?void 0:K.targetId)===O||u&&(K==null?void 0:(q=K.panelIdentifier)==null?void 0:q.tag)===u;this.dialog&&f&&(K==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(O==="engagement-panel-comments-section"?_.OJ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.OJ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",u]));!_.E("kevlar_use_engagement_panel_management_component")&&f&&(O=K.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!O?_.JA.addJob(function(){R.visibility=K.visibility},2,this.hideDelayMs):this.visibility=K.visibility,K.visibility&&this.notifyVisibilityChanged(K.visibility))};
_.X.onYtScrollToEngagementPanelCommand=function(f){var R,u=(R=this.data)==null?void 0:R.targetId,O,c,h;R=((O=this.data)==null?void 0:(c=O.identifier)==null?void 0:c.tag)||((h=this.data)==null?void 0:h.panelIdentifier);f=_.t(f,_.XoI);var l;(u&&(f==null?void 0:f.targetId)===u||R&&(f==null?void 0:(l=f.panelIdentifier)==null?void 0:l.tag)===R)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.OJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.X.attachVEs=function(f){var R,u;(f==null?0:(R=f.content)==null?0:(u=R.productListRenderer)==null?0:u.trackingParams)&&_.wR().graftServerVe(f.content.productListRenderer.trackingParams);var O,c;(f==null?0:(O=f.content)==null?0:(c=O.transcriptRenderer)==null?0:c.trackingParams)&&_.wR().graftServerVe(f.content.transcriptRenderer.trackingParams)};
_.X.onYtUpdateEngagementPanelAction=function(f){var R,u=(R=this.data)==null?void 0:R.targetId;f=_.t(f,Nf9);u&&(f==null?void 0:f.targetId)===u&&(this.updatePanel({engagementPanelSectionListRenderer:{header:f==null?void 0:f.header,content:f==null?void 0:f.content}},!1),this.attachVEs(f))};
_.X.onYtShowEngagementPanelScrimAction=function(f){var R,u=(R=this.data)==null?void 0:R.targetId;f=_.t(f,d45);u&&(f==null?void 0:f.engagementPanelTargetId)===u&&(this.scrimmed=!0)};
_.X.onYtHideEngagementPanelScrimAction=function(f){var R,u=(R=this.data)==null?void 0:R.targetId;f=_.t(f,CY9);u&&(f==null?void 0:f.engagementPanelTargetId)===u&&(this.scrimmed=!1)};
_.X.getIdentifier=function(){var f,R,u;return((f=this.data)==null?void 0:f.panelIdentifier)||((R=this.data)==null?void 0:(u=R.identifier)==null?void 0:u.tag)};
_.X.getSurface=function(){var f,R;return(f=this.data)==null?void 0:(R=f.identifier)==null?void 0:R.surface};
_.Vy.Object.defineProperties(KZ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var f=this.getIdentifier();return f==="engagement-panel-youchat"||f==="PAyouchat"}}});
KZ.prototype.visibilityChanged=KZ.prototype.visibilityChanged;KZ.prototype.isFullscreenChanged=KZ.prototype.isFullscreenChanged;KZ.prototype.isTheaterModeChanged=KZ.prototype.isTheaterModeChanged;KZ.prototype.dataChanged=KZ.prototype.dataChanged;KZ.prototype.forwardPopupClosedToFlowRootRenderer=KZ.prototype.forwardPopupClosedToFlowRootRenderer;KZ.prototype.onYtRendererstamperFinished=KZ.prototype.onYtRendererstamperFinished;
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],KZ.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],KZ.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],KZ.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"data",void 0);
_.B([_.I({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.S("design:type",Object)],KZ.prototype,"headerData",void 0);_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"secondaryHeaderData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"visibility",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"contentEmpty",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"scrimmed",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"dialog",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"dropdown",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"darkerPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"matchContentTheme",void 0);_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"disableAutoFill",void 0);
_.B([_.I({reflectToAttribute:!0,value:_.E("optimal_reading_width_comments_ep")}),_.S("design:type",Boolean)],KZ.prototype,"optimalReadingWidthComments",void 0);_.B([_.I(),_.S("design:type",Number)],KZ.prototype,"hideDelayMs",void 0);_.B([_.I({selector:_.Mp,reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"isFullscreen",void 0);_.B([_.I({selector:_.IA,reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"isTheaterMode",void 0);
_.B([_.I(),_.S("design:type",Number)],KZ.prototype,"showDelayMs",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.targetId"),_.S("design:type",Object),_.S("design:paramtypes",[])],KZ.prototype,"targetId",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],KZ.prototype,"webSize",null);_.B([_.I(),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],KZ.prototype,"hideFooterBorder",null);
_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"isWatch",void 0);_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"originalTheaterState",void 0);_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"theaterDisablementPanelIdentifier",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"modernPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"isWatchWhilePanel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"shortsPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],KZ.prototype,"liveChatEngagementPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"liveChatReplyPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"enableAnchoredPanel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],KZ.prototype,"disableBackdropFilter",void 0);_.B([_.I(),_.S("design:type",Object)],KZ.prototype,"trackEngagementPanelVisibility",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],KZ.prototype,"headerElement",void 0);_.B([_.a4("#header > *"),_.S("design:type",HTMLElement)],KZ.prototype,"header",void 0);_.B([_.a4("ytd-section-list-renderer"),_.S("design:type",Object)],KZ.prototype,"sectionListRendererElement",void 0);
_.B([_.a4("panel-ad-header-image-lockup-view-model"),_.S("design:type",HTMLElement)],KZ.prototype,"adHeaderImageLockupViewModel",void 0);_.B([_.a4("#content"),_.S("design:type",HTMLElement)],KZ.prototype,"contentElement",void 0);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KZ.prototype,"onYtRendererstamperFinished",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KZ.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.B([_.QR("data","isFullscreen","isTheaterMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KZ.prototype,"dataChanged",null);_.B([_.qM("isTheaterMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KZ.prototype,"isTheaterModeChanged",null);
_.B([_.qM("isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KZ.prototype,"isFullscreenChanged",null);_.B([_.qM("visibility"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KZ.prototype,"visibilityChanged",null);KZ=_.B([_.e({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],KZ);
_.G(KZ,"ytd-engagement-panel-section-list-renderer",function(){if(krt!==void 0)return krt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return krt=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var BDS;var ql=function(){var f=_.U.apply(this,arguments)||this;f.lastRenderedPanelIds=new Set;f.visiblePanels=[];f.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return f};
_.y(ql,_.U);_.X=ql.prototype;_.X.dataChanged=function(){if(this.data){for(var f=[],R=_.Z(this.data),u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0,c=void 0,h=(O=u)==null?void 0:(c=O.engagementPanelSectionListRenderer)==null?void 0:c.visibility;c=O=void 0;((O=u)==null?0:(c=O.engagementPanelSectionListRenderer)==null?0:c.targetId)&&h!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&f.push(u)}this.visiblePanels=f}else this.visiblePanels=[]};
_.X.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}}};
_.X.withoutVisiblePanelById=function(f){return this.visiblePanels.filter(function(R){var u;return((u=R.engagementPanelSectionListRenderer)==null?void 0:u.targetId)!==f})};
_.X.onYtChangeEngagementPanelVisibilityAction=function(f){var R=this,u=_.t(f,_.njk);if(this.data&&(u==null?0:u.targetId)&&(u==null?0:u.visibility)){var O,c=(O=this.data.find(function(l){var K;return((K=l.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===u.targetId}))==null?void 0:O.engagementPanelSectionListRenderer;
if(c){var h=this.withoutVisiblePanelById(u.targetId);u.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f=this.data.find(function(l){var K;return((K=l.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===u.targetId}))&&(h=[f].concat(_.yq(h)));
this.hideDelayMs&&u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&h.length===0?_.JA.addJob(function(){c.visibility=u.visibility;R.visiblePanels=h},10,this.hideDelayMs):(c.visibility=u.visibility,this.visiblePanels=h);
_.c_(this.hostElement,"yt-engagement-panels-visible-changed",[h])}}};
_.X.onRendererstamperFinished=function(){var f=new Set(this.visiblePanels.map(function(R){var u;return(u=R.engagementPanelSectionListRenderer)==null?void 0:u.targetId}));
this.handlePanelVisibilityChange(f,this.lastRenderedPanelIds);this.lastRenderedPanelIds=f};
_.X.handlePanelVisibilityChange=function(f,R){f=f===void 0?new Set:f;R=R===void 0?new Set:R;if(this.data)for(var u=_.Z(this.data),O=u.next();!O.done;O=u.next()){O=O.value;var c=void 0,h=void 0,l=(c=O)==null?void 0:(h=c.engagementPanelSectionListRenderer)==null?void 0:h.targetId;if(l&&(c=R.has(l),h=f.has(l),l=void 0,!c&&h?(h=c=void 0,l=(c=O)==null?void 0:(h=c.engagementPanelSectionListRenderer)==null?void 0:h.onShowCommands):c&&!h&&(h=c=void 0,l=(c=O)==null?void 0:(h=c.engagementPanelSectionListRenderer)==
null?void 0:h.onHideCommands),l))for(O=_.Z(l),l=O.next();!l.done;l=O.next())this.ytComponentBehavior.resolveCommand(l.value)}};
ql.prototype.onRendererstamperFinished=ql.prototype.onRendererstamperFinished;ql.prototype.dataChanged=ql.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ql.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ql.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ql.prototype,"lastRenderedPanelIds",void 0);_.B([_.I(),_.S("design:type",Number)],ql.prototype,"hideDelayMs",void 0);_.B([_.I(),_.S("design:type",Array)],ql.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Array)],ql.prototype,"visiblePanels",void 0);_.B([_.I(),_.S("design:type",Boolean)],ql.prototype,"isWatchWhilePanel",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ql.prototype,"dataChanged",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ql.prototype,"onRendererstamperFinished",null);ql=_.B([_.e({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],ql);
_.G(ql,"ytd-watch-engagement-panels",function(){if(BDS!==void 0)return BDS;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return BDS=f},{mode:1});var opl;var AJ=function(){return _.U.apply(this,arguments)||this};
_.y(AJ,_.U);AJ.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.ey(_.b(this.hostElement).querySelector("#text"),_.X0C(_.lDf,this.data.companionLegalText))};
AJ.prototype.computeAutoScrollEnabled=function(f,R){return f&&!R};
AJ.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
AJ.prototype.onToggleTap=function(){this.expanded=!this.expanded};
AJ.prototype.expandedChanged=AJ.prototype.expandedChanged;AJ.prototype.dataChanged=AJ.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S9X),_.S("design:type",Object)],AJ.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AJ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],AJ.prototype,"expanded",void 0);
_.B([_.I({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.S("design:type",Boolean)],AJ.prototype,"autoScrollEnabled",void 0);_.B([_.I(),_.S("design:type",String)],AJ.prototype,"expanderIcon",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AJ.prototype,"dataChanged",null);
_.B([_.qM("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AJ.prototype,"expandedChanged",null);AJ=_.B([_.e({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],AJ);
_.G(AJ,"ytd-companion-legal-text-renderer",function(){if(opl!==void 0)return opl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return opl=f},{mode:1});var x6h;var ax=function(){var f=_.U.apply(this,arguments)||this;f.buttonUpdate=_.E("web_modern_buttons");f.kevlarWatchGrid=_.E("kevlar_watch_grid");f.centerAlignDescription=_.E("action_companion_center_align_description");f.truncateDomain=_.E("action_companion_truncate_domain");return f};
_.y(ax,_.U);_.X=ax.prototype;_.X.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.X.getOnLayoutVisibleCallback=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.X.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",ax.JSC$20203_DEFAULT_AD_BADGE_RENDERER);var f=this.getOnLayoutVisibleCallback();f&&f()}};
_.X.getButtonRenderer=function(f){return f.actionButton&&_.t(f.actionButton,_.z9)?(delete _.t(f.actionButton,_.z9).navigationEndpoint,_.t(f.actionButton,_.z9)):{}};
_.X.onClick=function(f){var R=this;if((!_.E("web_modern_buttons")||!_.$G(_.$S(f),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){f=_.Vm();var u=this.getLayoutId();f&&u&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(O){(new _.QG(O)).executeCommand(R.data.navigationEndpoint,u)}):_.E("kevlar_companion_resolve_command_killswitch")?_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.OJ(this.hostElement,"yt-companion-ad-clicked",["action-companion",u])}};
_.Vy.Object.defineProperties(ax.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?0:(R=f.detailsLine)==null?0:(u=R.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 f,R,u,O;return((f=this.data)==null?0:(R=f.detailsLine)==null?0:(u=R.adRating)==null?0:(O=u.ratingIcon)==null?0:O.iconType)?_.li(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return((f=this.data)==null?0:(R=f.detailsLine)==null?0:(u=R.texts)==null?0:(O=u[0])==null?0:O.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 f,R;return((f=this.data)==null?0:(R=f.description)==null?0:R.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var f=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return f?f.indexOf("/default_banner")!==-1:!0}}});
ax.prototype.onClick=ax.prototype.onClick;ax.prototype.dataChanged=ax.prototype.dataChanged;ax.JSC$20203_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Fa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ax.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ax.prototype,"rendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ax.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ax.prototype,"buttonUpdate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ax.prototype,"kevlarWatchGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ax.prototype,"centerAlignDescription",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ax.prototype,"truncateDomain",void 0);
_.B([_.I({computed:"computeButtonOverride(buttonUpdate)"}),_.S("design:type",Object)],ax.prototype,"buttonOverride",void 0);_.B([_.T("data.detailsLine.adRating.ratingText"),_.S("design:type",Object),_.S("design:paramtypes",[])],ax.prototype,"getRating",null);_.B([_.T("getRating"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ax.prototype,"computeRatingHidden",null);
_.B([_.T("data.detailsLine.adRating.ratingIcon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],ax.prototype,"iconType",null);_.B([_.T("data.detailsLine.texts.0.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],ax.prototype,"getDetailsLine",null);_.B([_.T("getDetailsLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ax.prototype,"computeDetailsLineHidden",null);
_.B([_.T("data.description.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],ax.prototype,"getDescriptionText",null);_.B([_.T("getDescriptionText"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ax.prototype,"computeDescriptionTextHidden",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ax.prototype,"interactionLoggingClientData",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ax.prototype,"hideBanner",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ax.prototype,"dataChanged",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],ax.prototype,"onClick",null);ax=_.B([_.e({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],ax);
_.G(ax,"ytd-action-companion-ad-renderer",function(){if(x6h!==void 0)return x6h;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return x6h=f},{mode:_.c7("kevlar_poly_si_batch_j067")?1:2});var SM2;var $65;var Fg=function(){var f=_.U.apply(this,arguments)||this;f.buttonUpdate=_.E("web_modern_buttons");f.hideLegacyBanner=_.E("enable_dsa_one_click_ata_translators_infeed_elements");f.adInfoButtonStyle="mono";f.adInfoButtonType="text";f.noDotAdBadge=!0;return f};
_.y(Fg,_.U);_.X=Fg.prototype;_.X.getOnLayoutVisibleCallback=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.X.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 f=this.data.image.thumbnail.thumbnails[0];this.imageSrc=f.url?_.EO(f.url):void 0;this.imageWidth=f.width||0;this.imageHeight=f.height||0}this.data.clickthroughEndpoint&&_.t(this.data.clickthroughEndpoint,_.oh)&&(f=_.t(this.data.clickthroughEndpoint,_.oh).url,_.E("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
f||"":f?(f=_.EO(f),this.clickThroughUrl=_.F3(f)):this.clickThroughUrl=void 0);(f=this.getOnLayoutVisibleCallback())&&f()}};
_.X.onClick=function(f){_.$G(_.$S(f),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(f)};
_.X.handleClick=function(){var f=this;this.data&&this.data.clickthroughEndpoint&&(_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(R){f.macroReplacementBehavior.sendServiceRequestAction([R])}),_.OJ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.X.onLoad=function(){_.c_(this.hostElement,"yt-refit-popups-action")};
_.Vy.Object.defineProperties(Fg.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}}});
Fg.prototype.onLoad=Fg.prototype.onLoad;Fg.prototype.onClick=Fg.prototype.onClick;Fg.prototype.dataChanged=Fg.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Fg.prototype,"rendererBehavior",void 0);_.B([_.z(QJh.YtMacroReplacementBehavior),_.S("design:type",Object)],Fg.prototype,"macroReplacementBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Fg.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Fg.prototype,"buttonUpdate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Fg.prototype,"hideLegacyBanner",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Fg.prototype,"adInfoButtonStyle",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Fg.prototype,"adInfoButtonType",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Fg.prototype,"macros",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Fg.prototype,"interactionLoggingClientData",null);_.B([_.I(),_.S("design:type",String)],Fg.prototype,"clickThroughUrl",void 0);_.B([_.I(),_.S("design:type",_.qu)],Fg.prototype,"imageSrc",void 0);_.B([_.I(),_.S("design:type",Number)],Fg.prototype,"imageWidth",void 0);_.B([_.I(),_.S("design:type",Number)],Fg.prototype,"imageHeight",void 0);_.B([_.I(),_.S("design:type",Object)],Fg.prototype,"noDotAdBadge",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fg.prototype,"dataChanged",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Fg.prototype,"onClick",null);_.B([_.Kf("load"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fg.prototype,"onLoad",null);Fg=_.B([_.e({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Fg);
_.G(Fg,"ytd-image-companion-renderer",function(){if($65!==void 0)return $65;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return $65=f},{mode:_.c7("kevlar_poly_si_batch_j067")?1:2});var gph;var wk=function(){return _.U.apply(this,arguments)||this};
_.y(wk,_.U);_.X=wk.prototype;_.X.dataChanged=function(){this.set("data.adBadge",wk.JSC$20212_DEFAULT_AD_BADGE_RENDERER);if(this.data){var f=this.getOnLayoutVisibleCallback();f&&f()}};
_.X.getOnLayoutVisibleCallback=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.X.onCompanionClicked=function(f){this.data&&(f.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.OJ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.X.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var f=_.Vm(),R=this.getLayoutId(),u=this.data.clickToAdvSiteEndpoint;f&&R&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(O){(new _.QG(O)).executeCommand(u,R)}):_.ul(this.hostElement,"yt-navigate",{endpoint:u})}};
_.X.sendTrackingPings=function(f){if(f&&f.length!==0&&f[0].loggingUrls&&(f=f[0].loggingUrls.map(this.getBaseUrl)))for(var R=0;R<f.length;R++)_.BR(f[R])};
_.X.getBaseUrl=function(f){return f.baseUrl||""};
_.Vy.Object.defineProperties(wk.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.Ph("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}}});
wk.prototype.onCompanionClicked=wk.prototype.onCompanionClicked;wk.prototype.dataChanged=wk.prototype.dataChanged;wk.JSC$20212_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Fa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wk.prototype,"data",void 0);_.B([_.a4("#title"),_.S("design:type",HTMLElement)],wk.prototype,"shopTitle",void 0);
_.B([_.QR("data.impressionEndpoints"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wk.prototype,"dataChanged",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],wk.prototype,"interactionLoggingClientData",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],wk.prototype,"onCompanionClicked",null);
wk=_.B([_.e({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],wk);
_.G(wk,"ytd-shopping-companion-renderer",function(){if(gph!==void 0)return gph;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return gph=f},{mode:1});_.ii(_.nf(function(f){var R=f.data;var u=_.sW();_.gW(u,function(){return R().interaction},Bom);
_.fT(u,{visibilityCallback:function(O){var c,h=(c=R().interaction)==null?void 0:c.onFirstVisible;O&&h&&_.Ux(h)},
showOption:_.nY});_.zo(function(){var O,c;c=(c=_.Ph("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.onLayoutVisibleCallback:null;(O=c)==null||O()});
return _.a("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Ff(function(){_.c_(u.value,"yt-refit-popups-action")}),
el:u,"aria-label":function(){var O,c;return(O=R().interaction)==null?void 0:(c=O.accessibility)==null?void 0:c.label}},_.a("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(O){return _.a(_.la,{data:O.data,
targetHeight:80,customCommandResolver:Bom})}})),_.a("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.a("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.a(_.y5,{data:function(){return R().adBadge}},{adBadgeViewModel:function(O){return _.a(_.rG,{data:O.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.a("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.a(_.y5,{data:function(){return R().menu}},{buttonViewModel:_.TS}))))},"Yi"),"banner-image-layout-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;f=_.sW();_.gW(f,function(){return R().interaction},o9S);
_.fT(f,{visibilityCallback:function(u){var O,c=(O=R().interaction)==null?void 0:O.onFirstVisible;u&&c&&_.Ux(c)},
showOption:_.nY});_.zo(function(){var u,O;O=(O=_.Ph("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.onLayoutVisibleCallback:null;(u=O)==null||u()});
return _.a("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:f},_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.a(_.y5,{data:function(){return R().adImage}},{adImageViewModel:function(u){return _.a(_.la,{data:u.data,
targetHeight:80,customCommandResolver:o9S})}})),_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.a(_.y5,{data:function(){return R().adAvatarLockup}},{adAvatarLockupViewModel:function(u){return _.a(U6w,{data:u.data,
customCommandResolver:o9S})}})),_.a(_.y5,{data:function(){return R().adButton}},{adButtonViewModel:function(u){return _.a(_.Yy,{data:u.data,
customCommandResolver:o9S})}}),_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.a(_.y5,{data:function(){return R().menu}},{buttonViewModel:_.TS}))))},"Zi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.SG}});var sH5={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"},mA=function(){var f=_.U.apply(this,arguments)||this;f.updateCompanionDataJobId=0;f.contentVideoId=null;f.player=null;f.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return f};
_.y(mA,_.U);_.X=mA.prototype;_.X.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:sH5}}};
_.X.attached=function(){var f=this,R=_.Vm();R&&R.getPlayerPromise().then(function(u){f.getCachedDataAndListen(u)})};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.X.updateRendererStamper=function(){var f={};if(this.data)for(var R in sH5)if(this.data[R]){f[R]=this.data[R];break}if(this.oneofRenderer!=void 0||Object.keys(f).length)this.oneofRenderer=f};
_.X.getCachedDataAndListen=function(f){var R=this.retrieveCachedCompanionData();R&&Object.keys(R).length&&this.receiveCompanionData(R);this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=f};
_.X.retrieveCachedCompanionData=function(){return _.Oe.yt&&_.Oe.yt.www&&_.Oe.yt.www.ads&&_.Oe.yt.www.ads.eventcache&&_.Oe.yt.www.ads.eventcache.getLastCompanionData?_.Oe.yt.www.ads.eventcache.getLastCompanionData():null};
_.X.receiveCompanionData=function(f){f&&Object.keys(f).length?(this.contentVideoId=f.contentVideoId,this.setCompanionData(f)):this.setCompanionData(f)};
_.X.setCompanionData=function(f){this.cancelPendingCompanionAdJobs();if(f){this.updateCompanionDataJobId=0;for(var R in sH5)sH5.hasOwnProperty(R)&&(this.data[R]=void 0);f.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",f.shoppingCompanionCarouselRenderer):f.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",f.imageCompanionAdRenderer):f.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",f.actionCompanionAdRenderer),_.c_(this.hostElement,
"yt-hide-unlimited-offer-module"),_.c_(this.hostElement,"yt-hide-tvfilm-offer-module")):f.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",f.bannerImageLayoutViewModel):f.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",f.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.X.dataChanged=function(){var f=this,R=_.Vm();R?R.getPlayerPromise().then(function(u){f.contentVideoId&&u.getVideoUrl().includes("v="+f.contentVideoId)||(f.cancelPendingCompanionAdJobs(),f.updateRendererStamper())}):_.UC(Error("gm"))};
_.X.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.JA.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.X.handleCompanionAdClicked=function(f,R){this.player.onAdUxClicked(f,R);this.player.pauseVideo()};
mA.prototype.dataChanged=mA.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],mA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],mA.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mA.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],mA.prototype,"oneofRenderer",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mA.prototype,"dataChanged",null);mA=_.B([_.e({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],mA);
_.G(mA,"ytd-companion-slot-renderer",function(){if(SM2!==void 0)return SM2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return SM2=f},{mode:_.c7("kevlar_poly_si_batch_j067")?
1:2});var npm;var Q8=function(){return _.U.apply(this,arguments)||this};
_.y(Q8,_.U);Q8.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Q8.prototype.dataChanged=Q8.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Q8.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Q8.prototype,"companionSlotData",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Q8.prototype,"dataChanged",null);
Q8=_.B([_.e({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Q8);
_.G(Q8,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(npm!==void 0)return npm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return npm=f},{mode:1});var VxX;var W6=function(){var f=_.U.apply(this,arguments)||this;f.skinnyMode=!1;f.COMPACT_EVENT_COUNT=4;f.onShelfToggleButtonTap=function(){f.logTap(f.data);f.showingMore=!f.showingMore};
f.onShelfToggleButtonFocus=function(){f.showingMore||(f.logTap(f.data),f.showingMore=!0,_.su(f,function(){var R=f.COMPACT_EVENT_COUNT-1,u;(u=_.b(f.hostElement).querySelector("#event-"+R))==null||u.focus()}))};
return f};
_.y(W6,_.U);_.X=W6.prototype;_.X.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.X.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.X.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ks(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ks(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ks(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ks(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ks(this.infoTooltip,this.infoTooltip.hide))};
_.X.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ks(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ks(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ks(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ks(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ks(this.infoTooltip,this.infoTooltip.hide))};
_.X.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)};
_.X.onShowingMoreChanged=function(){var f;this.showingMoreChanged((f=this.showingMore)!=null?f:!1)};
_.X.showingMoreChanged=function(f){var R=this.get("data.events")||[];this.set("restEvents",R.slice(1,f?R.length:this.COMPACT_EVENT_COUNT).map(function(u){return u.ticketEventRenderer}));
R.slice(0,f?R.length:this.COMPACT_EVENT_COUNT).forEach(function(u){var O=_.z4();u=u.ticketEventRenderer.trackingParams;_.Jj()&&O&&u&&(u=_.t4(u),O&&_.B_(O,u))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.X.computeAriaLabel=function(f){return f.subtitle1+", "+f.subtitle2};
_.X.logTap=function(f){_.Jj()&&this.ytRendererBehavior.logExplicitClick(f)};
_.X.isKeyboardAction=function(f){return this.get("detail.x",f)===0&&this.get("detail.y",f)===0};
_.X.onFirstEventTap=function(f){f.target&&this.handleTap(f.target,this.firstEvent,this.isKeyboardAction(f))};
_.X.onTicketLinkTap=function(f){f.target&&this.handleTap(f.target,f.model.item,this.isKeyboardAction(f))};
_.X.handleTap=function(f,R,u){if(R.buttonCommand)if(R.hasMultipleOffers)Object.assign(_.t(R.buttonCommand,_.dS),{properties:{source:u?"keyboard":"tap"}}),this.logTap(R),this.popupPositionTarget=f,_.ZW(this.hostElement,[R.buttonCommand],this.hostElement);else{var O;if((O=_.t(R.buttonCommand,_.oh))==null?0:O.url)this.logTap(R),_.zd(window,_.t(R.buttonCommand,_.oh).url)}};
W6.prototype.onShowingMoreChanged=W6.prototype.onShowingMoreChanged;W6.prototype.dataChanged=W6.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],W6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],W6.prototype,"firstEvent",void 0);_.B([_.I(),_.S("design:type",Object)],W6.prototype,"restEvents",void 0);_.B([_.I(),_.S("design:type",String)],W6.prototype,"imageUrl",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],W6.prototype,"showingMore",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],W6.prototype,"canShowMore",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],W6.prototype,"skinnyMode",void 0);_.B([_.I(),_.S("design:type",HTMLElement)],W6.prototype,"popupPositionTarget",void 0);_.B([_.a4("#banner-info-tooltip"),_.S("design:type",Object)],W6.prototype,"infoTooltip",void 0);
_.B([_.a4("#info-container"),_.S("design:type",HTMLElement)],W6.prototype,"infoContainer",void 0);_.B([_.a4("#shelf-toggler"),_.S("design:type",HTMLElement)],W6.prototype,"shelfToggleButton",void 0);_.B([_.a4("#separator"),_.S("design:type",HTMLDivElement)],W6.prototype,"separator",void 0);_.B([_.I(),_.S("design:type",String)],W6.prototype,"shelfTogglerLabelText",void 0);_.B([_.I(),_.S("design:type",String)],W6.prototype,"shelfTogglerIcon",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],W6.prototype,"dataChanged",null);_.B([_.QR("showingMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],W6.prototype,"onShowingMoreChanged",null);W6=_.B([_.e({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],W6);
_.G(W6,"ytd-ticket-shelf-renderer",function(){if(VxX!==void 0)return VxX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return VxX=f},{mode:1});var YMK;var vpS;var Ea=function(){return _.U.apply(this,arguments)||this};
_.y(Ea,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ea.prototype,"data",void 0);Ea=_.B([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Ea);
_.G(Ea,"ytd-comments-entry-point-message-renderer",function(){if(vpS!==void 0)return vpS;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return vpS=f},{mode:1});var iVm;var tJ=function(){return _.U.apply(this,arguments)||this};
_.y(tJ,_.U);_.Vy.Object.defineProperties(tJ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.teaserAvatar)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tJ.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tJ.prototype,"hasAvatar",null);tJ=_.B([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],tJ);
_.G(tJ,"ytd-comments-entry-point-teaser-renderer",function(){if(iVm!==void 0)return iVm;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return iVm=f},{mode:1});var r2K;var CZ=function(){return _.U.apply(this,arguments)||this};
_.y(CZ,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],CZ.prototype,"data",void 0);CZ=_.B([_.e({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],CZ);
_.G(CZ,"ytd-comments-simplebox-renderer",function(){if(r2K!==void 0)return r2K;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return r2K=f},{mode:1});var y8=function(){var f=_.U.apply(this,arguments)||this;f.fullHeight=!_.E("comment_teaser_full_height_kill_switch")&&_.E("kevlar_watch_grid");return f};
_.y(y8,_.U);y8.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"}}}};
y8.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
y8.prototype.onTap=function(){var f=this.tapCommand;f&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(f))};
y8.prototype.onKeyUp=function(f){if(f.keyCode===13)this.onTap()};
_.Vy.Object.defineProperties(y8.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.onTap)return this.data.onTap;var R,u;if(((R=this.data)==null?0:R.teaserContent)||((u=this.data)==null?0:u.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)!=null&&f.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
y8.prototype.onKeyUp=y8.prototype.onKeyUp;y8.prototype.onTap=y8.prototype.onTap;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],y8.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],y8.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],y8.prototype,"fullHeight",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"tapCommand",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"simpleboxPlaceholder",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y8.prototype,"hasSimpleboxPlaceholder",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"simpleboxAvatar",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"teaserContent",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y8.prototype,"hasTeaserContent",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"teaserAvatar",null);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y8.prototype,"hasTeaserAvatar",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"messageText",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],y8.prototype,"contentRenderer",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y8.prototype,"hasContents",null);
_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],y8.prototype,"hasContentRenderer",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y8.prototype,"onTap",null);_.B([_.Kf("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[_.Ao]),_.S("design:returntype")],y8.prototype,"onKeyUp",null);y8=_.B([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],y8);
_.G(y8,"ytd-comments-entry-point-header-renderer",function(){if(YMK!==void 0)return YMK;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return YMK=f},{mode:1});var fht;_.E("web_enable_sink_animated_rolling_character_and_number")?_.ii(_.G8i,"yt-animated-rolling-number",{props:{numberText:_.SG,numberValue:_.SG,heightPx:_.SG,fontSizeMultiplier:_.SG,shouldAnimate:_.SG,forceRollUp:_.SG}}):_.hS(_.wuB,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var RP9=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ujK={numberText:"",heightPx:2*RP9,shouldAnimate:!1},dk=function(){var f=_.U.apply(this,arguments)||this;f.usingAnimatedComponents=!0;f.wasDetailed=!1;f.JSC$20249_browserSupportsAnimation=_.E("web_supports_animations_api");f.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};f.detailed=!1;f.shouldAnimate=!1;f.viewCountProps=ujK;f.dateTextProps=
ujK;f.metadataBadgesInDescription=_.E("web_metadata_badges_in_description");return f};
_.y(dk,_.U);_.X=dk.prototype;_.X.resetAnimationState=function(){this.shouldAnimate=!1};
_.X.updateDynamicMetadata=function(){if(this.JSC$20249_browserSupportsAnimation){if(!this.detailed){var f,R,u,O;var c=(f=this.videoPrimaryInfoRenderer)==null?void 0:(R=f.viewCount)==null?void 0:(u=R.videoViewCountRenderer)==null?void 0:(O=u.extraShortViewCount)==null?void 0:O.simpleText;var h,l,K,q;var F=(h=this.videoPrimaryInfoRenderer)==null?void 0:(l=h.viewCount)==null?void 0:(K=l.videoViewCountRenderer)==null?void 0:(q=K.shortViewCount)==null?void 0:q.simpleText}if(!F){var w,m,W,C;c=(w=this.videoPrimaryInfoRenderer)==
null?void 0:(m=w.viewCount)==null?void 0:(W=m.videoViewCountRenderer)==null?void 0:(C=W.unlabeledViewCountValue)==null?void 0:C.simpleText;var d,p,J,M;F=(d=this.videoPrimaryInfoRenderer)==null?void 0:(p=d.viewCount)==null?void 0:(J=p.videoViewCountRenderer)==null?void 0:(M=J.viewCount)==null?void 0:M.simpleText}var P,g,x;f=Number((P=this.videoPrimaryInfoRenderer)==null?void 0:(g=P.viewCount)==null?void 0:(x=g.videoViewCountRenderer)==null?void 0:x.originalViewCount);var fh,V;P=(fh=this.videoPrimaryInfoRenderer)==
null?void 0:(V=fh.relativeDateText)==null?void 0:V.simpleText;var ZD;fh=!((ZD=this.videoPrimaryInfoRenderer)==null||!ZD.relativeDateText);if(c&&F&&f&&(P||!fh)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;ZD=F.split(new RegExp("("+c+")"));c=n9h(ZD[0]);var mP;F={numberText:(mP=ZD[1])!=null?mP:"",numberValue:f,heightPx:2*RP9,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var NX;mP=((NX=ZD[2])!=null?NX:"")+"  ";this.setViewCount(F,c,n9h(mP));
if(!this.detailed&&fh){c=P.split(/(\d+)/);NX=n9h(c[0]);var jt;mP={numberText:(jt=c[1])!=null?jt:"",heightPx:2*RP9,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Jn;jt=((Jn=c[2])!=null?Jn:"")+"  ";this.setDateText(mP,NX,n9h(jt))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.X.setViewCount=function(f,R,u){_.$Z(R)!==_.$Z(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=R);this.viewCountProps.numberText!==(f==null?void 0:f.numberText)&&(this.viewCountProps=f||ujK);_.$Z(u)!==_.$Z(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=u)};
_.X.setDateText=function(f,R,u){_.$Z(R)!==_.$Z(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=R);this.dateTextProps.numberText!==(f==null?void 0:f.numberText)&&(this.dateTextProps=f||ujK);_.$Z(u)!==_.$Z(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=u)};
_.X.onYtUpdateViewershipAction=function(f){this.videoPrimaryInfoRenderer&&(_.t(f,vqm).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.t(f,vqm).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.t(f,vqm).viewCount)))};
_.X.onYtUpdateDateTextAction=function(f){if(this.videoPrimaryInfoRenderer){f=_.t(f,_.Vf9).dateText;this.shouldAnimate=!0;var R;((R=this.videoPrimaryInfoRenderer)==null?0:R.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",f):this.set("videoPrimaryInfoRenderer.dateText",f)}};
_.Vy.Object.defineProperties(dk.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return slm(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.$Z(slm(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.$Z(this.viewCountPreNumberText),this.viewCountProps.numberText,_.$Z(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.$Z(this.dateTextPreNumberText),this.dateTextProps.numberText,_.$Z(this.dateTextPostNumberText)].join("")}}});
dk.prototype.updateDynamicMetadata=dk.prototype.updateDynamicMetadata;dk.prototype.resetAnimationState=dk.prototype.resetAnimationState;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],dk.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],dk.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dk.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"detailed",void 0);_.B([_.I(),_.S("design:type",Object)],dk.prototype,"shouldAnimate",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"viewCountPreNumberText",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"viewCountProps",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"viewCountPostNumberText",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"dateTextPreNumberText",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"dateTextProps",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"dateTextPostNumberText",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dk.prototype,"metadataBadgesInDescription",void 0);_.B([_.T("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.S("design:type",Object),_.S("design:paramtypes",[])],dk.prototype,"infoText",null);
_.B([_.T("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.S("design:type",String),_.S("design:paramtypes",[])],dk.prototype,"descriptionInfoTooltipText",null);_.B([_.T("detailed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],dk.prototype,"showDescriptionInfoTooltip",null);
_.B([_.T("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.S("design:type",String),_.S("design:paramtypes",[])],dk.prototype,"animatedViewCountAccessibilityLabel",null);_.B([_.T("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.S("design:type",String),_.S("design:paramtypes",[])],dk.prototype,"animatedDateTextAccessibilityLabel",null);
_.B([_.qM("videoPrimaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dk.prototype,"resetAnimationState",null);_.B([_.qM("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dk.prototype,"updateDynamicMetadata",null);dk=_.B([_.e({disableElementRegistration:!0,is:"ytd-watch-info-text"})],dk);
_.G(dk,"ytd-watch-info-text",function(){if(fht!==void 0)return fht;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return fht=f},{mode:1});var Obe;var cQ5=_.nf(function(f){var R=f.data;var u=f.setTapCommand;_.pc(function(){var O=_.H7(R().onTap);u(O)});
return _.a("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.a(_.y5,{data:function(){return R().avatar}},{avatarViewModel:_.NC}),_.a("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.a("span",null,function(){return R().simpleboxText})))},"$i");var XAz=_.nf(function(f){return _.a("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.a(_.Q,{cond:function(){return _.t(f.data().avatar,_.SP)},
then:function(R){return _.a(_.NC,{data:R,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.a("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.a(_.YO,{text:function(){return f.data().teaserText}})))},"aj");var hPS=_.nf(function(f){var R=f.data;var u=f.setTapCommand;_.pc(function(){var O=_.H7(R().onTap);u(O)});
return _.a("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.a(_.y5,{data:function(){return R().teasers}},{commentsEntryPointTeaserViewModel:XAz}))},"bj");var Zb5=_.nf(function(f){var R=f.data;var u=f.setTapCommand;_.pc(function(){var O=_.H7(R().onTap);u(O)});
return _.a("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.a(_.YO,{text:function(){return R().messageText}}))},"cj");var lhN=_.nf(function(f){var R=f.data;var u=f.setTapCommand;var O=f.isDisabled;_.pc(function(){var c=(O==null?0:O())?void 0:_.H7(R().onTap);u(c)});
return _.a("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.a(_.WM,{icon:function(){return R().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.a(_.Q,{cond:function(){return R().image},
then:function(c){return _.a(_.gR,{data:c,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.a(_.YO,{text:function(){return R().text},
className:function(){return R().image||R().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.a(_.y5,{data:function(){return R().button}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:O==null?void 0:O()}}})}}))},"dj");var kih=_.nf(function(f){var R=f.data;var u=f.itemIndex;var O=f.selectedIndex;var c=f.indexUpdatedCallback;var h=f.observer;f=f.title;var l=_.sW(),K=function(m){u()===O()&&c(m)},q=_.JS(Now),F=_.JS(L79),w=function(){var m,W,C;
return((m=R())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!q()||((W=R())==null?void 0:W.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&F().includes("PAposts_by_host")||((C=R())==null?void 0:C.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&F().includes("PAyouchat")};
_.bt(function(){h&&h().observe(l.value)});
return _.a("yt-carousel-item-view-model",{el:l,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":f},_.a(_.y5,{data:function(){var m,W;return(W=(m=_.t(R().carouselItem,Wr5))==null?void 0:m.textCarousel)!=null?W:R().carouselItem}},{textCarouselItemViewModel:function(m){return _.a(lhN,{data:m.data,
setTapCommand:K,isDisabled:w})},
commentTeaserCarouselItemViewModel:function(m){return _.a(hPS,{data:m.data,setTapCommand:K})},
commentInputBoxCarouselItemViewModel:function(m){return _.a(cQ5,{data:m.data,setTapCommand:K})},
commentsEntryPointMessageViewModel:function(m){return _.a(Zb5,{data:m.data,setTapCommand:K})}}))},"ej");var K5l=_.nf(function(f){var R=f.numDots;var u=f.activeIndex;return _.a("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.a(_.EC,{each:function(){return Array.from({length:R()})},
keyBy:"INDEX"},function(O,c){return _.a("div",{class:function(){var h={};return _.AS("ytCarouselDotsShapeDot",(h.ytCarouselDotsShapeDotActive=c===u(),h))}})}))},"fj");var qj5=_.nf(function(f){var R=f.data;var u=f.handleCarouselNavigation;var O=f.numItems;var c=f.selectedIndex;var h=function(){return{disabled:c()===0}},l=function(){return{disabled:c()===O()-1}};
return _.a("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.a("div",null,_.a("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return R().title}),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(K){return _.a("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return R().subtitleAccessibilityText}},K)}})),_.a(_.Q,{cond:function(){return O()>1},
then:function(){return _.a("div",{class:"ytCarouselTitleViewModelNavigation"},_.a(K5l,{numDots:O,activeIndex:c}),_.a(_.Q,{cond:function(){return R().previousButton},
then:function(K){return _.a(_.y5,{data:K},{buttonViewModel:function(q){return _.a(_.TS,{data:q.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(-1)},
buttonOverrides:h})}})}}),_.a(_.Q,{cond:function(){return R().nextButton},
then:function(K){return _.a(_.y5,{data:K},{buttonViewModel:function(q){return _.a(_.TS,{data:q.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(1)},
buttonOverrides:l})}})}}))}}))},"gj");_.ii(_.nf(function(f){var R=f.data;var u=_.sW(),O=_.sW(),c=_.Tf("HTML_DIR")==="rtl",h=!1,l=0,K=0;f=_.Z(_.qK(0,void 0,"m0dtIf"));var q=f.next().value,F=f.next().value;f=_.Z(_.qK(0,void 0,"fL6I6"));var w=f.next().value,m=f.next().value;f=_.Z(_.qK(!1,void 0,"ZPrwNb"));var W=f.next().value,C=f.next().value,d=function(){var ZD,mP,NX;return(NX=(ZD=R())==null?void 0:(mP=ZD.carouselTitles)==null?void 0:mP.length)!=null?NX:0},p=function(){O.value&&O.value.scrollLeft!==l&&F((c?O.value.scrollLeft<l:O.value.scrollLeft>
l)?Math.min(q()+1,d()-1):Math.max(q()-1,0))},J;
window.IntersectionObserver&&(J=new IntersectionObserver(function(ZD){ZD=_.Z(ZD);for(var mP=ZD.next();!mP.done;mP=ZD.next())if(mP.value.isIntersecting){if(h){h=!1;break}p()}else F(K)},{threshold:.2}));
_.pc(function(){if(O.value){var ZD=(c?-1:1)*(w()/d()+12)*(W()&&J?K:q());typeof O.value.scrollTo==="function"?O.value.scrollTo({left:ZD,behavior:"smooth"}):O.value.scrollLeft=ZD;l=ZD;K=W()&&J?K:q()}});
var M,P=function(ZD){M=ZD};
_.bt(function(){var ZD=function(){var NX=O.value.offsetWidth*d(),jt=24*(d()-1);m(NX+jt)};
ZD();if(window.ResizeObserver){var mP=new ResizeObserver(ZD);mP.observe(O.value);_.jN(function(){mP.disconnect();J&&J.disconnect()})}});
f=_.Ff(function(ZD){if(_.GS(_.eP(ZD),u.value,["BUTTON".toString()])||!M)return!1;_.vh().resolve(_.rv).resolveCommand(M,{forceClickLogging:!0});return!1});
var g=function(ZD){ZD=q()+ZD;ZD>=0&&ZD<d()&&(h=!0,F(ZD))},x=_.Ff(function(){C(!0);
return!1}),fh=_.Ff(function(){J||p();
C(!1);return!1}),V={};
return _.a("yt-video-metadata-carousel-view-model",{class:_.KL("ytVideoMetadataCarouselViewModelHost",(V.ytVideoMetadataCarouselViewModelShortMode=_.E("mweb_video_metadata_carousel_short_mode"),V)),el:u,"on:click":f,"on:touchstart":x,"on:touchend":fh,hidden:function(){var ZD,mP;return!((ZD=R())==null?0:(mP=ZD.carouselItems)==null?0:mP.length)}},_.a("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.a(_.Q,{cond:function(){return R().carouselTitles},
then:function(ZD){return _.a(_.y5,{data:function(){return ZD()[W()&&J?K:q()]}},{carouselTitleViewModel:function(mP){return _.a(qj5,{data:mP.data,
handleCarouselNavigation:g,numItems:d,selectedIndex:q})}})}})),_.a("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:O},_.a("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.a(_.Q,{cond:function(){return R().carouselItems},
then:function(ZD){return _.a(_.EC,{each:ZD},function(mP,NX){return _.a(_.y5,{data:function(){return mP}},{carouselItemViewModel:function(jt){return _.a(kih,{data:jt.data,
itemIndex:NX,selectedIndex:q,indexUpdatedCallback:P,observer:J,title:function(){a:{var Jn=NX();var zq,St=(zq=R())==null?void 0:zq.carouselTitles;if(St&&(Jn=St[Jn])){var Gq;Jn=(Gq=_.t(Jn,Qd2))==null?void 0:Gq.title;break a}Jn=void 0}return Jn}})}})})}}))))},"hj"),"yt-video-metadata-carousel-view-model",{props:{data:_.SG}});var AQ9=_.E("web_action_buttons_update_owner_width")?32:12,Nl=function(){var f=_.U.apply(this,arguments)||this;f.metadataBadgesInDescription=_.E("web_metadata_badges_in_description");f.descriptionCollapsed=!0;f.useFadedScrimDescription=_.E("kevlar_enable_faded_scrim_on_description");f.skinnyMode=!1;f.playlist=!1;f.isDark=document.documentElement.hasAttribute("dark");f.disableVideoOwnerOnTap=_.E("swatchie_video_owner_on_tap_ks");f.swatcherooDelayLoad=_.E("swatcheroo_enable_ghost_cards");f.primaryMenuWidth=
0;f.videoId="";f.titleHeadlineXs=_.E("web_watch_typography_title_headline_xs");f.titleHeadlineS=_.E("web_watch_typography_title_headline_s");f.titleHeadlineM=_.E("web_watch_typography_title_headline_m");f.titleHashtagBlackLinkified=_.E("web_title_hashtag_black_linkified");f.titleHashtagGreyLinkified=_.E("web_title_hashtag_grey_linkified");f.actionButtonsUpdateOwnerWidth=_.E("web_action_buttons_update_owner_width");f.shouldForceIconOnly=!1;f.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};f.isFullscreen=!1;f.isTheaterMode=!1;return f};
_.y(Nl,_.U);_.X=Nl.prototype;_.X.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.X.updateOwnerAndDescriptionPosition=function(){_.E("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.HN(this.bottomRowElement,this.ownerElement)):(_.HN(this.bottomRowElement,this.descriptionElement),_.HN(this.topRowElement,this.ownerElement)))};
_.X.titleOnTap=function(f){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;((R=window.getSelection())==null?0:R.toString().length)||this.handleExpandDescriptionCommands()}};
_.X.videoOwnerOnTap=function(f){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.X.detached=function(){var f=this,R;return _.k(function(u){(R=f.resizeObserver)==null||R.disconnect();_.KG(u)})};
_.X.maybeAttachResizeObserver=function(){var f=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.vJ(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){f.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.X.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var f=this.hostElement.clientWidth,R=Math.max(this.largerItemWrap?400:350,f/2-AQ9);if(_.E("web_action_buttons_update_owner_width")){var u;R=(((u=document.getElementById("owner"))==null?void 0:u.clientWidth)||0)+AQ9}this.actionsOnSeparateLine=this.primaryMenuWidth>f-R?!0:!1}};
_.X.stripAttributedDescription=function(f){return{content:f.content.replace(/[\r\n]{2,}/g,"\n")}};
_.X.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("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:_.E("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"}}}};
_.X.videoPrimaryInfoRendererChanged=function(){var f;if((f=this.videoPrimaryInfoRenderer)==null?0:f.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.X.videoSecondaryInfoRendererChanged=function(){var f,R;(R=(f=this.descriptionInlineExpander).collapse)==null||R.call(f);this.descriptionExpandClientVe=_.dx(110509);this.descriptionCollapseClientVe=_.dx(110510);f=_.z4();R=_.Jj();f&&R&&(_.E("combine_ve_grafts")?(_.c1(_.wR(),this.descriptionExpandClientVe,R),_.c1(_.wR(),this.descriptionCollapseClientVe,R)):_.GT(f,R,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.X.structuredDescriptionContentRendererChanged=function(){_.E("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.X.updateTopLevelIconsOnly=function(){var f=this;_.E("top_level_update_killswitch")||this.menu&&_.JA.addLowPriorityJob(function(){f.menu.topLevelIconsOnly=f.skinnyMode},_.RV("swathceroo_delay_flexible_menu_update",100))};
_.X.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.E("web_action_buttons_minimize_subscribe")};
_.X.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.X.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.X.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.X.onYtTextInlineExpanderExpandedChanged=function(){if(!_.E("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var f,R;(R=(f=this.structuredDescriptionContentRendererElement).resize)==null||R.call(f)}};
_.X.onRenderStamperFinished=function(f){(f==null?void 0:f.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.X.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.X.onYtExpanderLessTapped=function(){var f,R=(f=this.videoSecondaryInfoRenderer)==null?void 0:f.showLessCommand;R&&this.ytComponentBehavior.resolveCommand(R)};
_.X.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.X.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.X.onDescriptionClick=function(f){if(!_.$G(_.$S(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;((R=window.getSelection())==null?0:R.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.E("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.X.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.X.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.X.logCollapseClick=function(){var f=_.z4();f&&this.descriptionCollapseClientVe&&_.Sa(f,this.descriptionCollapseClientVe)};
_.X.logExpandClick=function(){var f=_.z4();f&&this.descriptionExpandClientVe&&_.Sa(f,this.descriptionExpandClientVe)};
_.X.collapseDescription=function(){this.descriptionCollapsed=!0};
_.X.scrollToTopOfContainer=function(){_.OJ(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.X.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.X.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.X.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.X.resize=function(){if(this.descriptionInlineExpander){var f,R;(R=(f=this.descriptionInlineExpander).resize)==null||R.call(f)}else _.Ih(new _.ts("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.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.E("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.X.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var f,R,u,O,c=_.E("web_action_buttons_update_owner_width")?(u=(f=_.b(this.menu).querySelector("#button-shape"))==null?void 0:f.clientWidth)!=null?u:0:(O=(R=_.b(this.menu).querySelector("#button"))==null?void 0:R.clientWidth)!=null?O:0,h,l;f=((l=(h=_.b(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:h.clientWidth)!=null?l:0)+8+c;var K,q;c=(q=(K=_.b(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:K.children.length)!=null?q:2;f<=8*c||(this.primaryMenuWidth=f)}};
_.X.onYtUpdateTitleAction=function(f){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.t(f,Y4w).title)};
_.X.onYtUpdateDescriptionAction=function(f){if(f=_.t(f,_.XYi)){var R,u=!((R=this.videoSecondaryInfoRenderer)==null||!R.attributedDescription);f.isEmpty||!f.description&&!f.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):f.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",f.attributedDescription):f.description&&(u?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Dz(f.description)):this.set("videoSecondaryInfoRenderer.description",f.description))}};
_.X.onYtDarkModeToggledAction=function(f){this.isDark=f};
_.X.registerPanel=function(){if(!_.E("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var f=_.E("web_watch_imax_theater_mode")&&this.isTheaterMode;f=_.E("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||f;var R=_.vh().resolve(_.yT);R&&!f&&R.registerPanel("engagement-panel-structured-description",this)}};
_.X.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.X.showPanel=function(f){this.expandDescription();var R=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;R.resize();var u,O=f==null?void 0:(u=f.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;O?_.JA.addJob(function(){R==null||R.scrollToSection(O)},8):this.scrollToTopOfContainer()};
_.X.isVisible=function(){return!this.descriptionCollapsed};
_.X.getReloadContinuation=function(){};
_.X.hidePanel=function(){};
_.X.updatePanel=function(){};
_.Vy.Object.defineProperties(Nl.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.structuredDescriptionContentRenderer)!=null&&f.items){var R;f=_.Z((R=this.structuredDescriptionContentRenderer)==null?void 0:R.items);for(R=f.next();!R.done;R=f.next())if(R=_.t(R.value,_.Xst))return R}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoPrimaryInfoRenderer)==null?0:f.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!!((f=this.videoSecondaryInfoRenderer)==null?0:(R=f.owner)==null?0:(u=R.videoOwnerRenderer)==null?0:u.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.E("swatchie_sd_new_line_strip_ks")){var f,R;if((f=this.videoSecondaryInfoRenderer)==null?0:(R=f.attributedDescription)==null?0:R.content){var u,O;return(O=this.stripAttributedDescription((u=this.videoSecondaryInfoRenderer)==null?void 0:u.attributedDescription))!=null?O:{runs:[]}}}var c,h,l,K;return(K=(l=(c=this.videoSecondaryInfoRenderer)==null?void 0:c.description)!=null?l:(h=this.videoSecondaryInfoRenderer)==null?
void 0:h.attributedDescription)!=null?K:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.videoSecondaryInfoRenderer)==null?void 0:f.headerRuns)!=null?R:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.commentsEntryPointHeaderRenderer)==null||!f.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoMetadataCarousel)==null||!f.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.RV("swatchie_desc_lines",3):this.hasTeaserCarousel?_.RV("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var f,R,u=Object.assign({},(f=this.videoSecondaryInfoRenderer)==null?void 0:(R=f.metadataRowContainer)==null?void 0:R.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 f,R,u=Object.assign({},(f=this.videoSecondaryInfoRenderer)==null?void 0:(R=f.metadataRowContainer)==null?void 0:R.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 f,R;return!!((f=this.structuredDescriptionContentRenderer)==null?0:(R=f.items)==null?0:R.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var f;return(f=this.videoSecondaryInfoRenderer)==null?void 0:f.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.videoSecondaryInfoRenderer)==null?0:(R=f.owner)==null?0:(u=R.videoOwnerRenderer)==null?0:u.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return!!((f=this.videoPrimaryInfoRenderer)==null?0:(R=f.videoActions)==null?0:(u=R.menuRenderer)==null?0:(O=u.flexibleItems)==null?0:O.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.xr(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.xr(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var f=this;if(_.E("web_title_hashtag_grey_delinkified")){var R,u=_.dq.unsafeClone((R=this.videoPrimaryInfoRenderer)==null?void 0:R.title);(R=u==null?void 0:u.runs)&&R.forEach(function(O){if(O==null?0:O.navigationEndpoint)O.textColor=4284506208,f.isDark&&(O.textColor=4289374890)});
return u}return(u=this.videoPrimaryInfoRenderer)==null?void 0:u.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.E("web_title_hashtag_black_delinkified")||_.E("web_title_hashtag_grey_delinkified")}}});
Nl.prototype.resetDescriptionState=Nl.prototype.resetDescriptionState;Nl.prototype.registerPanel=Nl.prototype.registerPanel;Nl.prototype.onYtExpanderLessTapped=Nl.prototype.onYtExpanderLessTapped;Nl.prototype.onYtExpanderMoreTapped=Nl.prototype.onYtExpanderMoreTapped;Nl.prototype.onRenderStamperFinished=Nl.prototype.onRenderStamperFinished;Nl.prototype.onYtTextInlineExpanderExpandedChanged=Nl.prototype.onYtTextInlineExpanderExpandedChanged;Nl.prototype.onYtTextInlineExpanderCollapseClicked=Nl.prototype.onYtTextInlineExpanderCollapseClicked;
Nl.prototype.onYtTextInlineExpanderExpandClicked=Nl.prototype.onYtTextInlineExpanderExpandClicked;Nl.prototype.moveActionsElement=Nl.prototype.moveActionsElement;Nl.prototype.updateShouldForceIconOnly=Nl.prototype.updateShouldForceIconOnly;Nl.prototype.updateTopLevelIconsOnly=Nl.prototype.updateTopLevelIconsOnly;Nl.prototype.structuredDescriptionContentRendererChanged=Nl.prototype.structuredDescriptionContentRendererChanged;Nl.prototype.videoSecondaryInfoRendererChanged=Nl.prototype.videoSecondaryInfoRendererChanged;
Nl.prototype.videoPrimaryInfoRendererChanged=Nl.prototype.videoPrimaryInfoRendererChanged;Nl.prototype.maybeUpdateActionsOnSeparateLine=Nl.prototype.maybeUpdateActionsOnSeparateLine;Nl.prototype.updateOwnerAndDescriptionPosition=Nl.prototype.updateOwnerAndDescriptionPosition;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Nl.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Nl.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Nl.prototype,"ytdReduxBehavior",void 0);_.B([_.a4("#above-the-fold"),_.S("design:type",HTMLElement)],Nl.prototype,"aboveTheFoldContainer",void 0);_.B([_.a4("#menu ytd-menu-renderer"),_.S("design:type",Object)],Nl.prototype,"menu",void 0);
_.B([_.a4("#description-inline-expander"),_.S("design:type",Object)],Nl.prototype,"descriptionInlineExpander",void 0);_.B([_.a4("#faded-structured-description"),_.S("design:type",Object)],Nl.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.B([_.a4("#structured-description"),_.S("design:type",Object)],Nl.prototype,"structuredDescriptionContentRendererElement",void 0);_.B([_.a4("#title"),_.S("design:type",HTMLElement)],Nl.prototype,"titleElement",void 0);
_.B([_.a4("#description"),_.S("design:type",HTMLElement)],Nl.prototype,"descriptionElement",void 0);_.B([_.a4("#description-interaction"),_.S("design:type",Object)],Nl.prototype,"descriptionInteraction",void 0);_.B([_.a4("#owner"),_.S("design:type",HTMLElement)],Nl.prototype,"ownerElement",void 0);_.B([_.a4("#top-row"),_.S("design:type",HTMLElement)],Nl.prototype,"topRowElement",void 0);_.B([_.a4("#bottom-row"),_.S("design:type",HTMLElement)],Nl.prototype,"bottomRowElement",void 0);
_.B([_.a4("#actions"),_.S("design:type",HTMLElement)],Nl.prototype,"actionsElement",void 0);_.B([_.a4("#bottom-actions"),_.S("design:type",HTMLElement)],Nl.prototype,"bottomActionsElement",void 0);_.B([_.a4("#ytd-watch-info-text"),_.S("design:type",Object)],Nl.prototype,"watchInfoTextElement",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"videoPrimaryInfoRenderer",void 0);
_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"videoSecondaryInfoRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"videoMetadataCarousel",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"videoSummary",void 0);
_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"merchShelf",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"infoPanelBelowMetadata",void 0);_.B([_.T("structuredDescriptionContentRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"productShelf",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"metadataBadgesInDescription",void 0);
_.B([_.T("videoPrimaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"shouldHideBadges",null);_.B([_.T("productShelf","descriptionCollapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"shouldShowProductShelf",null);_.B([_.I(),_.S("design:type",Boolean)],Nl.prototype,"isWatchFlexy",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"descriptionCollapsed",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Nl.prototype,"useFadedScrimDescription",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"skinnyMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("videoSecondaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"largerItemWrap",null);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"playlist",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"clarifyBox",void 0);
_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"playerAds",void 0);_.B([_.I(),_.S("design:type",Boolean)],Nl.prototype,"isDark",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Nl.prototype,"actionsOnSeparateLine",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"disableVideoOwnerOnTap",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"swatcherooDelayLoad",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Nl.prototype,"suppressTopLevelMetadataRows",void 0);_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"primaryMenuWidth",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"videoId",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"titleHeadlineXs",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"titleHeadlineS",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"titleHeadlineM",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"titleHashtagBlackLinkified",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"titleHashtagGreyLinkified",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.B([_.I(),_.S("design:type",Object)],Nl.prototype,"shouldForceIconOnly",void 0);_.B([_.QR("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"updateOwnerAndDescriptionPosition",null);_.B([_.QR("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.B([_.T("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"descriptionText",null);_.B([_.T("videoSecondaryInfoRenderer.headerRuns"),_.S("design:type",Array),_.S("design:paramtypes",[])],Nl.prototype,"headerRuns",null);_.B([_.I({value:!1}),_.T("commentsEntryPointHeaderRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"hasTeaser",null);
_.B([_.I({value:!1,reflectToAttribute:!0}),_.T("videoMetadataCarousel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"hasTeaserCarousel",null);_.B([_.I({value:3}),_.T("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"descriptionMaxLines",null);_.B([_.T("videoSecondaryInfoRenderer.metadataRowContainer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"collapsibleMetadataRows",null);
_.B([_.T("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"alwaysVisibleMetadataRows",null);_.B([_.T("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"hasInlineStructuredDescription",null);
_.B([_.T("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"showInlineStructuredDescription",null);_.B([_.T("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"descriptionExpandCommand",null);
_.B([_.T("videoSecondaryInfoRenderer.owner"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"videoOwnerCommand",null);_.B([_.I({reflectToAttribute:!0}),_.T("videoPrimaryInfoRenderer.videoActions"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"flexMenuEnabled",null);_.B([_.I({selector:_.Mp,reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"isFullscreen",void 0);
_.B([_.I({selector:_.IA,reflectToAttribute:!0}),_.S("design:type",Object)],Nl.prototype,"isTheaterMode",void 0);_.B([_.T("descriptionText","useFadedScrimDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"showAttributedStringDescription",null);_.B([_.T("descriptionText","useFadedScrimDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"showFormattedStringDescription",null);
_.B([_.T("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nl.prototype,"showFadedStructuredDescription",null);_.B([_.QR("videoPrimaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"videoPrimaryInfoRendererChanged",null);_.B([_.T("videoPrimaryInfoRenderer.title"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"videoTitle",null);
_.B([_.T("videoPrimaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nl.prototype,"noEndpoints",null);_.B([_.QR("videoSecondaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"videoSecondaryInfoRendererChanged",null);
_.B([_.qM("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"structuredDescriptionContentRendererChanged",null);_.B([_.qM("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"updateTopLevelIconsOnly",null);
_.B([_.qM("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"updateShouldForceIconOnly",null);_.B([_.qM("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"moveActionsElement",null);_.B([_.Kf("yt-text-inline-expander-expand-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.B([_.Kf("yt-text-inline-expander-collapse-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.B([_.Kf("yt-text-inline-expander-expanded-changed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Nl.prototype,"onRenderStamperFinished",null);_.B([_.Kf("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"onYtExpanderMoreTapped",null);_.B([_.Kf("yt-expander-less-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"onYtExpanderLessTapped",null);
_.B([_.qM("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"registerPanel",null);_.B([_.qM("videoSecondaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nl.prototype,"resetDescriptionState",null);Nl=_.B([_.e({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Nl);
_.G(Nl,"ytd-watch-metadata",function(){if(Obe!==void 0)return Obe;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Obe=f},{mode:2});_.tet=function(f){_.d9.call(this);this.JSC$20272_watchApi=f;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;ahm(this);F59(this);wAa(this);mzX(this);QQ9(this);W5e(this);E4X(this)};
_.y(_.tet,_.d9);var wAa=function(f){var R=function(){_.E("kevlar_is_pupi_enabled")||LZ(f)};
f.JSC$20272_watchApi.getRoot().addEventListener("yt-player-updated",R);f.addOnDisposeCallback(function(){f.JSC$20272_watchApi.getRoot().removeEventListener("yt-player-updated",R)})},QQ9=function(f){if(_.E("kevlar_endscreen_auto_theater_mode")){var R=f.JSC$20272_watchApi.subscribeToActiveChanged(function(){CDN(f)},!1);
f.addOnDisposeCallback(R)}},ahm=function(f){var R,u,O,c,h;
_.k(function(l){if(l.nextAddress==1)return _.A(l,f.JSC$20272_watchApi.playerApi,2);R=l.yieldResult;u=function(K){K=!!K;b1(f)&&(K=K?2:1,_.sd.getInstance().setState(K,!0,!1))};
O=function(K){K&&_.d0X(_.sP().getState())&&(_.OJ(f.JSC$20272_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),f.temporaryTheaterMode=!0)};
c=function(K){_.E("kevlar_player_update_autonav_on_new_data")&&K.type==="newdata"&&(_.E("kevlar_is_pupi_enabled")||LZ(f))};
h=function(K){f.onPlayerStateChange(K)};
_.E("kevlar_endscreen_auto_theater_mode")&&R.addEventListener("onAutonavCancelled",O);R.addEventListener("onAutonavChangeRequest",u);R.addEventListener("onVideoDataChange",c);R.addEventListener("onStateChange",h);f.addOnDisposeCallback(function(){R.removeEventListener("onAutonavChangeRequest",u);R.removeEventListener("onVideoDataChange",c);R.removeEventListener("onStateChange",h);_.E("kevlar_endscreen_auto_theater_mode")&&R.removeEventListener("onAutonavCancelled",O)});
_.KG(l)})},F59=function(f){f.JSC$20272_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){f.autonavCancelledBySignal=!0;
_.E("kevlar_is_pupi_enabled")||LZ(f)});
f.JSC$20272_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(R,u,O){u&&LZ(f,O)});
f.JSC$20272_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){b1(f)&&_.sd.getInstance().setState(2,!0,!0)});
f.JSC$20272_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){b1(f)&&_.sd.getInstance().setState(1,!0,!0)});
f.addOnDisposeCallback(function(){f.JSC$20272_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");f.JSC$20272_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");f.JSC$20272_watchApi.unregisterActionHandler("yt-enable-autoplay-command");f.JSC$20272_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},mzX=function(f){var R=f.JSC$20272_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){E4X(f)}),u=f.JSC$20272_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){W5e(f)});
f.addOnDisposeCallback(function(){f.JSC$20272_watchApi.unsubscribeByKey(R);f.JSC$20272_watchApi.unsubscribeByKey(u)})},E4X=function(f){f.autonavCancelledBySignal=!1;
_.E("kevlar_is_pupi_enabled")||LZ(f)},W5e=function(f){var R=f.JSC$20272_watchApi.getWatchNextResponse(),u,O;
var c=(R=(O=_.t(R==null?void 0:(c=R.playerOverlays)==null?void 0:(u=c.playerOverlayRenderer)==null?void 0:u.autonavToggle,_.ZNY))==null?void 0:O.enabled)?2:1;_.E("kevlar_is_pupi_enabled")?_.sd.getInstance().setState(c,!1,!1):LZ(f);_.E("web_persist_server_autonav_state_on_client")&&typeof R==="boolean"&&_.Qnn(c===2)},b1=function(f){if(f.autonavCancelledBySignal)return!1;
var R,u,O,c;return!!((R=f.JSC$20272_watchApi.getWatchNextResponse())==null?0:(u=R.contents)==null?0:(O=u.twoColumnWatchNextResults)==null?0:(c=O.autoplay)==null?0:c.autoplay)};
_.tet.prototype.onPlayerStateChange=function(f){if(f===0){f=!_.sd.getInstance().isAutoplaySetExplicitly();var R=this.JSC$20272_watchApi.getWatchNextResponse(),u,O,c,h;R=_.t(R==null?void 0:(u=R.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(c=O.autoplay)==null?void 0:(h=c.autoplay)==null?void 0:h.autoplayExplicitChoiceDialogRenderer,_.zUi);b1(this)&&f&&R&&_.KU.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:R},popupType:"DIALOG"}})}else CDN(this)};
var CDN=function(f){f.temporaryTheaterMode&&(f.temporaryTheaterMode=!1,_.OJ(f.JSC$20272_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},LZ=function(f,R){R=R===void 0?!1:R;
var u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20272_watchApi.playerApi,2);u=O.yieldResult;b1(f)?u.setAutonavState(_.sd.getInstance().getState(),R):u.setAutonavState(1,R);_.KG(O)})};var yQe={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"};_.N8t=function(f){_.d9.call(this);var R=this;this.JSC$20277_watchApi=f;var u=this.JSC$20277_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dz9(R)});
this.addOnDisposeCallback(function(){R.JSC$20277_watchApi.unsubscribeByKey(u)});
dz9(this)};
_.y(_.N8t,_.d9);var dz9=function(f){var R=f.JSC$20277_watchApi.getPlayerResponse(),u=f.JSC$20277_watchApi.getWatchNextResponse();if(!_.sHn(R==null?void 0:R.playabilityStatus,u==null?void 0:u.playerOverlays)){var O;var c=R==null?void 0:(O=R.playabilityStatus)==null?void 0:O.errorScreen}f.JSC$20277_watchApi.provideRenderingData("ERROR_SCREEN",c)};var L52=_.nf(function(f){var R=f.data;return _.a("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.Ff(function(){var u=R().onTap;u&&_.vh().resolve(_.rv).resolveCommand(u)})},_.a("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.a(_.y5,{data:function(){return R().channelAvatar}},{avatarViewModel:_.NC}),_.a(_.YO,{text:function(){return R().subtitle}})))},
"ij");var pZ={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},bbt=_.nf(function(f){var R=f.data;var u=_.JS(_.Mp);return _.a("yt-player-quick-action-buttons",{class:_.KL("ytPlayerQuickActionButtonsHost")},_.a(_.EC,{each:function(){var O=R(),c=u();O=JSON.parse(JSON.stringify(O));for(var h=_.E("web_watch_action_bar_resize_buttons"),l=_.E("delhi_modern_web_player_icons")&&!_.E("enable_web_delhi_icons"),K=_.Z(O),q=K.next();!q.done;q=K.next()){var F=
q.value,w=void 0;q=_.t((w=_.t(F,_.pr))==null?void 0:w.toggleButtonViewModel,_.Np);var m=void 0;w=_.t((m=_.t(F,_.jP))==null?void 0:m.toggleButtonViewModel,_.Np);F=_.t(F,_.dW);q?(w=_.t(q.defaultButtonViewModel,_.dW),q=_.t(q.toggledButtonViewModel,_.dW),w&&(l&&w.iconName&&(w.iconName=pZ[w.iconName]),!c&&h&&(w.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),q&&(l&&q.iconName&&(q.iconName=pZ[q.iconName]),!c&&h&&(q.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):w?(q=_.t(w.defaultButtonViewModel,_.dW),w=_.t(w.toggledButtonViewModel,
_.dW),q&&(l&&q.iconName&&(q.iconName=pZ[q.iconName]),!c&&h&&(q.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),w&&(l&&w.iconName&&(w.iconName=pZ[w.iconName]),!c&&h&&(w.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):F&&(l&&F.iconName&&(F.iconName=pZ[F.iconName]),!c&&h&&(F.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return O}},function(O){return _.a(_.y5,{data:function(){return O}},{buttonViewModel:_.TS,
likeButtonViewModel:function(c){return _.a(_.DA,{data:c.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.jM})}))},"jj");_.jQX=function(f){_.d9.call(this);var R=this;this.JSC$20280_watchApi=f;f=_.Z(_.qK({},void 0,"ufFdVc"));this.quickActionsViewModel=f.next().value;this.setQuickActionsViewModel=f.next().value;f=_.Z(_.qK({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=f.next().value;this.setPlayerOverlayVideoDetailsRenderer=f.next().value;var u=this.JSC$20280_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pAm(R)});
this.addOnDisposeCallback(function(){R.JSC$20280_watchApi.unsubscribeByKey(u)});
pAm(this)};
_.y(_.jQX,_.d9);
var pAm=function(f){var R,u,O,c,h,l,K,q,F,w,m,W,C,d;_.k(function(p){if(p.nextAddress==1)return _.A(p,f.JSC$20280_watchApi.playerApi,2);R=p.yieldResult;u=f.JSC$20280_watchApi.getWatchNextResponse();h=(O=u)==null?void 0:(c=O.playerOverlays)==null?void 0:c.playerOverlayRenderer;K=_.t((l=h)==null?void 0:l.fullscreenQuickActionsBar,_.AVI);(F=(q=f).setQuickActionsViewModel)==null||F.call(q,K||{});K&&Dze(f,R);W=(w=h)==null?void 0:(m=w.videoDetails)==null?void 0:m.playerOverlayVideoDetailsRenderer;(d=(C=
f).setPlayerOverlayVideoDetailsRenderer)==null||d.call(C,W||{});W&&JQe(f,R);_.KG(p)})},Dze=function(f,R){if(!f.quickActionButtonsContainer){f.quickActionButtonsContainer=document.createElement("div");
R.setFullscreenQuickActions(f.quickActionButtonsContainer);var u=function(){return f.quickActionsViewModel().quickActionButtons||[]},O=_.dv(f.quickActionButtonsContainer,function(){return _.a(bbt,{data:u})});
f.addOnDisposeCallback(function(){R.setFullscreenQuickActions(void 0);O()})}},JQe=function(f,R){if(!f.playerOverlayVideoDetailsRendererContainer){f.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
R.setPlayerOverlayVideoDetailsRenderer(f.playerOverlayVideoDetailsRendererContainer);var u=_.dv(f.playerOverlayVideoDetailsRendererContainer,function(){return _.a(L52,{data:f.playerOverlayVideoDetailsRenderer})});
f.addOnDisposeCallback(function(){R.setPlayerOverlayVideoDetailsRenderer(void 0);u()})}};_.ju=function(f){_.d9.call(this);var R=this;this.JSC$20285_watchApi=f;this.JSC$20285_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;f=_.aC(_.sP(),_.Mp,function(u){R.onFullscreenChanged(u)});
this.addOnDisposeCallback(f);f=_.aC(_.sP(),_.L7,function(u){R.onWatchScroll(u)});
this.addOnDisposeCallback(f);_.E("kevlar_watch_while_v2")&&(f=_.aC(_.sP(),_.Jh,function(u){zPl(R,u)}),this.addOnDisposeCallback(f));
T85(this);Hb2(this);Ih2();this.onWatchScroll(_.L7(_.sP().getState()));_.Hh("START_IN_FULL_WINDOW_MODE")&&this.JSC$20285_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.y(_.ju,_.d9);var T85=function(f){f.JSC$20285_watchApi.registerActionHandler("yt-fullscreen-change-action",function(R){var u=f.JSC$20285_watchApi.isActive();R&&!u||_.sP().dispatch(_.OP({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!R}}))});
f.addOnDisposeCallback(function(){f.JSC$20285_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},Hb2=function(f){var R,u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20285_watchApi.playerApi,2);R=O.yieldResult;u=function(){f.onFullerscreenEduClicked()};
R.addEventListener("onFullerscreenEduClicked",u);f.addOnDisposeCallback(function(){R.removeEventListener("onFullerscreenEduClicked",u)});
_.KG(O)})};
_.ju.prototype.onFullscreenChanged=function(f){var R=this,u;return _.k(function(O){if(O.nextAddress==1)return R.isFullscreen=!!_.iE(),_.A(O,R.JSC$20285_watchApi.playerApi,2);u=O.yieldResult;R.JSC$20285_miniplayerActive||u.setFauxFullscreen(R.isFullscreen);if(f&&(R.JSC$20285_watchApi.focusOnPlayer(),!R.fullerscreenEduButtonShownThisPlayback)){R.fullerscreenEduButtonShownThisPlayback=!0;var c=_.Xs("yt-fullerscreen-edu-button-shown-count")||0;_.cT("yt-fullerscreen-edu-button-shown-count",c+1,31536E3);
R.updateFullerscreenEduButtonSubtleModeState()}_.KG(O)})};
var zPl=function(f,R){var u;_.k(function(O){if(O.nextAddress==1)return f.JSC$20285_miniplayerActive=R,_.A(O,f.JSC$20285_watchApi.playerApi,2);u=O.yieldResult;u.setFauxFullscreen(!f.JSC$20285_miniplayerActive&&f.isFullscreen);_.KG(O)})};
_.ju.prototype.onWatchScroll=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1)return _.E("external_fullscreen_with_edu")?_.A(c,R.JSC$20285_watchApi.playerApi,2):c.return();u=c.yieldResult;O=f<=0;R.shouldShowFullerscreenEdu!==O&&(R.shouldShowFullerscreenEdu=O,u.updateFullerscreenEduButtonVisibility(!R.shouldShowFullerscreenEdu));_.KG(c)})};
_.ju.prototype.onFullerscreenEduClicked=function(){this.JSC$20285_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var f=_.Xs("yt-fullerscreen-edu-button-click-count")||0;_.cT("yt-fullerscreen-edu-button-click-count",f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.ju.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var f=this,R,u,O,c,h,l;return _.k(function(K){if(K.nextAddress==1)return R=_.Xs("yt-fullerscreen-edu-button-click-count")||0,u=_.Xs("yt-fullerscreen-edu-button-shown-count")||0,O=_.RV("external_fullscreen_button_click_threshold"),c=_.RV("external_fullscreen_button_shown_threshold"),h=R>=O||u>=c,_.A(K,f.JSC$20285_watchApi.playerApi,2);l=K.yieldResult;l.updateFullerscreenEduButtonSubtleModeState(h);_.KG(K)})};
_.ju.prototype.disposeInternal=function(){_.d9.prototype.disposeInternal.call(this);var f=_.iE();_.E("kevlar_exit_fullscreen_leaving_watch")&&f&&_.ru(f)};
var Ih2=function(){if(_.E("web_watch_add_viewport_meta_tag")){var f=document.querySelector("meta[name=viewport]"),R=document.head;R&&!f&&(f=document.createElement("meta"),f.name="viewport",f.content="width=device-width, initial-scale=1.0, viewport-fit=cover",R.appendChild(f))}};_.Dr=function(f){_.d9.call(this);var R=this;this.JSC$20289_watchApi=f;this.jobId=0;this.pendingRequestId=void 0;var u=this.JSC$20289_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Mel(R)});
this.addOnDisposeCallback(function(){R.JSC$20289_watchApi.unsubscribeByKey(u)});
Mel(this)};
_.y(_.Dr,_.d9);var PDa=function(f){_.JA.cancelJob(f.jobId);f.pendingRequestId=void 0},Mel=function(f){PDa(f);
var R=Vsw(f.JSC$20289_watchApi.getWatchNextResponse());if(R){var u=250,O,c=(O=_.t(R,_.FJE))==null?void 0:O.initialDelayMs;_.E("web_watch_updated_metadata_server_initial_delay")&&c&&(u=c);f.jobId=_.JA.addLowPriorityJob(function(){return f.fetchUpdatedMetadata(R)},u)}};
_.Dr.prototype.fetchUpdatedMetadata=function(f,R){var u=this,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M;return _.k(function(P){switch(P.nextAddress){case 1:R&&(O={continuation:R});if(!_.E("web_get_updated_metadata_fantasy_panel_continuation_params")){P.jumpTo(2);break}c=_.vh().resolve(_.yT);h="PAsports_fantasy";return _.A(P,c.isVisible(h,!0),3);case 3:P.yieldResult&&(F=(K=(l=c).getUpdatePanelContinuationData)==null?void 0:(q=K.call(l,h))==null?void 0:q.updatePanelContinuationRequest)&&(O||(O={}),O.clientParams=
{panelContinuationParams:{panelContinuation:F}});case 2:w=_.vh().resolve(_.JN);if(!w)return _.TL(Error("hm")),P.return();m={};u.pendingRequestId=m;return _.A(P,_.e6(w,f,O),4);case 4:W=P.yieldResult;if(m!==u.pendingRequestId)return P.return();p=(C=W)==null?void 0:(d=C.continuation)==null?void 0:d.timedContinuationData;((J=p)==null?0:J.continuation)&&((M=p)==null?0:M.timeoutMs)&&(u.jobId=_.JA.addLowPriorityJob(function(){return u.fetchUpdatedMetadata(f,p.continuation)},p.timeoutMs));
_.KG(P)}})};
_.Dr.prototype.disposeInternal=function(){_.d9.prototype.disposeInternal.call(this);PDa(this)};var UzK=_.nf(function(f){var R=_.Ff(function(){var O=f.data().videoId;if(f.active())O=_.rA(O),_.vh().resolve(_.rv).resolveCommand(O);else{var c=f.playerApi(),h=c.getAvailableAudioTracks(),l,K,q=(l=f.sourceVideoConfig().audioTracks)==null?void 0:(K=l.find(function(F){return F.isDefaultForSource}))==null?void 0:K.id;
if(h=h.find(function(F){return F.getLanguageInfo().getId()===q}))c.setAudioTrack(h,!0),c.setCompositeParam({activeVideoId:O}),f.setActiveSourceId(O)}}),u={};
return _.a("ytw-composite-source-video-overlay",{class:_.KL("ytwCompositeSourceVideoOverlayHost",(u.ytwCompositeSourceVideoOverlayActive=f.active,u.ytwCompositeSourceVideoOverlayInteracting=f.interacting,u)),style:_.Qm({left:function(){var O;return((O=f.data().topLeftCornerX)!=null?O:0)*100+"%"},
top:function(){var O;return((O=f.data().topLeftCornerY)!=null?O:0)*100+"%"},
width:function(){var O;return((O=f.data().width)!=null?O:0)*100+"%"},
height:function(){var O;return((O=f.data().height)!=null?O:0)*100+"%"}}),
"on:click":R},_.a("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"kj");var ePa=_.nf(function(f){var R=_.Z(_.m8(function(){var l,K=(l=f.data().sources)==null?void 0:l.find(function(q){return q.isActive});
if(K)return K.videoId})),u=R.next().value,O=R.next().value;
R=_.Z(_.qK(!1,void 0,"WI4BUb"));var c=R.next().value,h=R.next().value;return _.a("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Ff(function(){h(!0)}),
"on:mouseout":_.Ff(function(){h(!1)})},_.a(_.Q,{cond:function(){return f.data().sources},
then:function(l){return _.a(_.EC,{each:l},function(K){return _.a(UzK,{data:K,active:function(){return K.videoId===u()},
setActiveSourceId:O,interacting:c,playerApi:f.playerApi,sourceVideoConfig:function(){return Y5t(f.compositeVideoConfig(),K.videoId)}})})}}))},"lj");_.o42=function(f){_.d9.call(this);this.JSC$20305_watchApi=f;f=_.Z(_.qK({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=f.next().value;this.setCompositeVideoOverlayRenderer=f.next().value;f=_.Z(_.qK({},void 0,"U5hcq"));this.compositeVideoConfig=f.next().value;this.setCompositeVideoConfig=f.next().value;Giz(this);B8a(this)};
_.y(_.o42,_.d9);var Giz=function(f){var R=f.JSC$20305_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){B8a(f)});
f.addOnDisposeCallback(function(){f.JSC$20305_watchApi.unsubscribeByKey(R)})},xzN=function(f){var R;
return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$20305_watchApi.playerApi,2);R=u.yieldResult;R.setCompositeVideoOverlayRendererComponent(f.container);_.KG(u)})},Sjl=function(f){var R;
return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$20305_watchApi.playerApi,2);R=u.yieldResult;R.setCompositeVideoOverlayRendererComponent(void 0);_.KG(u)})},$zm=function(f){var R,u;
return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20305_watchApi.playerApi,2);R=O.yieldResult;f.container=document.createElement("div");u=_.dv(f.container,function(){return _.a(ePa,{data:f.compositeVideoOverlayRenderer,compositeVideoConfig:f.compositeVideoConfig,playerApi:R})});
f.addOnDisposeCallback(u);_.KG(O)})},B8a=function(f){var R,u,O,c,h,l,K,q;
_.k(function(F){return F.nextAddress==1?(R=f.JSC$20305_watchApi.getPlayerResponse(),h=_.t((u=R)==null?void 0:(O=u.overlay)==null?void 0:(c=O.playerControlsOverlayRenderer)==null?void 0:c.compositeVideoOverlay,Gut),q=(l=R)==null?void 0:(K=l.playerConfig)==null?void 0:K.compositeVideoConfig,h&&f.setCompositeVideoOverlayRenderer(h),q&&f.setCompositeVideoConfig(q),h&&q?f.container?F.jumpTo(6):_.A(F,$zm(f),6):g4S(f)?_.A(F,Sjl(f),0):F.jumpTo(0)):g4S(f)?F.jumpTo(0):_.A(F,xzN(f),0)})},g4S=function(f){var R;
return!((R=f.container)==null||!R.parentElement)};
_.o42.prototype.disposeInternal=function(){g4S(this)&&Sjl(this);_.d9.prototype.disposeInternal.call(this)};_.v4K=function(f){_.d9.call(this);var R=this;this.JSC$20311_watchApi=f;var u=this.JSC$20311_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var O=R.JSC$20311_watchApi.getPlayerResponse();if(O){var c,h;if(O=_.t((c=O.endscreen)==null?void 0:(h=c.endscreenRenderer)==null?void 0:h.hideButton,_.Np)){var l;(l=R.setEndscreenHideButton)==null||l.call(R,O);sQz(R)}}});
this.addOnDisposeCallback(function(){R.JSC$20311_watchApi.unsubscribeByKey(u)});
f=_.Z(_.qK({},void 0,"PPHRb"));this.endscreenHideButton=f.next().value;this.setEndscreenHideButton=f.next().value;n4m(this);Veh(this);Yjt(this)};
_.y(_.v4K,_.d9);var sQz=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return f.creatorEndscreenHideButtonContainer?O.return():_.A(O,f.JSC$20311_watchApi.playerApi,2);R=O.yieldResult;f.creatorEndscreenHideButtonContainer=document.createElement("div");_.$$(f.creatorEndscreenHideButtonContainer,!1);R.setCreatorEndscreenHideButton(f.creatorEndscreenHideButtonContainer);u=_.dv(f.creatorEndscreenHideButtonContainer,function(){return _.a(_.Lr,{data:f.endscreenHideButton,useOutlinedIcon:!0})});
f.addOnDisposeCallback(function(){u();R.setCreatorEndscreenHideButton(void 0)});
_.KG(O)})},n4m=function(f){var R,u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20311_watchApi.playerApi,2);R=O.yieldResult;u=function(){f.creatorEndscreenHideButtonContainer&&_.$$(f.creatorEndscreenHideButtonContainer,!0)};
R.addEventListener("endscreenelementshown",u);f.addOnDisposeCallback(function(){R.removeEventListener("endscreenelementshown",u)});
_.KG(O)})},Veh=function(f){var R=function(){f.creatorEndscreenHideButtonContainer&&_.$$(f.creatorEndscreenHideButtonContainer,!1)},u=f.JSC$20311_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",R),O=f.JSC$20311_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",R);
f.addOnDisposeCallback(function(){f.JSC$20311_watchApi.unsubscribeByKey(u);f.JSC$20311_watchApi.unsubscribeByKey(O)})},Yjt=function(f){f.JSC$20311_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(R){var u=_.t(R,HK9);
f.JSC$20311_watchApi.playerApi.then(function(O){O==null||O.setCreatorEndscreenVisibility(!!u.hide)})});
f.addOnDisposeCallback(function(){f.JSC$20311_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.rQl=function(f){_.d9.call(this);this.JSC$20317_watchApi=f;ibl(this)};
_.y(_.rQl,_.d9);var ibl=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20317_watchApi.playerApi,2);R=O.yieldResult;u=function(c){_.sP().dispatch(_.OP({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:c}}))};
R.addEventListener("onRetroModeChanged",u);f.addOnDisposeCallback(function(){R.removeEventListener("onRetroModeChanged",u)});
_.KG(O)})};var JI=0,DE=0,zQ=0;var ftt;ftt=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.JJ=function(f){_.d9.call(this);this.JSC$20330_watchApi=f;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;R6K(this)};
_.y(_.JJ,_.d9);
var R6K=function(f){var R,u,O;_.k(function(c){if(c.nextAddress==1)return _.A(c,f.JSC$20330_watchApi.playerApi,2);R=c.yieldResult;if(f.isDisposed())return c.return();f.sessionStorage=_.o5h("yt-sleep-timer");f.sessionStorage||_.Ih(new _.ts("SessionStorage for Sleep Timer is undefined."));((u=f.sessionStorage)==null?void 0:u.get("yt-sleep-timer"))==="true"&&(hE2(),(O=f.sessionStorage)==null||O.remove("yt-sleep-timer"),R.syncVolume());Oow(f,R);cbt(f,R);XDa(f,R);_.KG(c)})},Oow=function(f,R){var u=function(F){f.onSleepTimerSettingsChanged(F,
R)},O=function(F){f.onPlayerStateChange(F,R)},c=function(){f.onLoopChange(R)},h=function(){f.onCloseMiniplayer(R)},l=function(){uYK(R,(0,_.iZ)(),ZKt(R),f.selectedOption==="End of video",R.getPlayerState()!==1)},K=function(){f.onSeekComplete(R)},q=function(){_.JA.cancelJob(DE);
var F=R.getCurrentTime()>=R.getDuration(),w=f.selectedOption==="End of video"||f.selectedOption==="End of playlist"&&!rW2(f.playlistId);F&&w&&h6K(f,R)};
R.addEventListener("onSleepTimerSettingsChanged",u);R.addEventListener("onLoopChange",c);R.addEventListener("onLoopRangeChange",c);R.addEventListener("onStateChange",O);R.addEventListener("onCloseMiniplayer",h);R.addEventListener("onSleepTimerFeatureAvailable",l);R.addEventListener("SEEK_COMPLETE",K);R.addEventListener("onAdStart",q);f.addOnDisposeCallback(function(){R.removeEventListener("onSleepTimerSettingsChanged",u);R.removeEventListener("onLoopChange",c);R.removeEventListener("onLoopRangeChange",
c);R.removeEventListener("onStateChange",O);R.removeEventListener("onCloseMiniplayer",h);R.removeEventListener("onSleepTimerFeatureAvailable",l);R.removeEventListener("SEEK_COMPLETE",K);R.removeEventListener("onAdStart",q)})},cbt=function(f,R){var u=f.JSC$20330_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var O=R.getVideoData().video_id,c,h=(c=v9m(f.JSC$20330_watchApi))==null?void 0:c.playlistId;
f.pauseAutonavPlayback&&(R.pauseVideo(),R.syncVolume(),f.pauseAutonavPlayback=!1);if(f.selectedOption==="End of video"&&O!==f.videoId)z1(f,R);else{if(f.selectedOption==="End of playlist"){c=rW2(f.playlistId);if(h!==f.playlistId){z1(f,R);break a}c?c&&Zo5(f,R):ltX(f,R)}f.videoId=O;f.playlistId=h}}});
f.addOnDisposeCallback(function(){f.JSC$20330_watchApi.unsubscribeByKey(u)})},XDa=function(f,R){var u=_.vh().resolve(_.zM),O=_.aC(u,_.alB,function(h){h&&f.selectedOption!=="Off"&&z1(f,R)}),c=f.JSC$20330_watchApi.subscribeToActiveChanged(function(h){var l,K;
return _.k(function(q){if(q.nextAddress==1)return _.A(q,_.qk().navigationFinishPromise,2);l=!_.dAi();K=_.vh().resolve(_.MS).isMiniplayerActive();h||!j1(f.selectedOption)||K||l||z1(f,R);_.KG(q)})},!1);
u=_.aC(u,function(h){return h.entities.playlistLoopStateEntity||{}},function(h){h=h===void 0?{}:h;
var l=iX2(f.JSC$20330_watchApi);if(l){var K;((K=h[l])==null?void 0:K.state)==="PLAYLIST_LOOP_STATE_ALL"&&j1(f.selectedOption)&&z1(f,R)}});
f.addOnDisposeCallback(O);f.addOnDisposeCallback(u);f.addOnDisposeCallback(c)};
_.JJ.prototype.onSleepTimerSettingsChanged=function(f,R){switch(f){case "Off":this.selectedOption!=="Off"&&z1(this,R);break;case "End of video":case "End of playlist":kc5(this,f,R);break;default:kc5(this,f,R,ftt.get(f))}};
_.JJ.prototype.onLoopChange=function(f){(f.getLoopVideo()||f.getLoopRange())&&j1(this.selectedOption)&&z1(this,f)};
_.JJ.prototype.onCloseMiniplayer=function(f){j1(this.selectedOption)&&z1(this,f)};
var kc5=function(f,R,u,O){KRw(f,u);f.selectedOption=R;f.videoId=u.getVideoData().video_id;f.playlistId="";var c;(c=f.sessionStorage)==null||c.set("yt-sleep-timer","true");f.adjustmentsCount++;uYK(u,(0,_.iZ)(),ZKt(u),f.selectedOption==="End of video");if(f.selectedOption==="End of video")ltX(f,u),q3t(f,u);else if(f.selectedOption==="End of playlist"){q3t(f,u);var h,l;f.playlistId=(l=(h=v9m(f.JSC$20330_watchApi))==null?void 0:h.playlistId)!=null?l:"";rW2(f.playlistId)||ltX(f,u)}else O&&(f.presetFadeSchedulerId=
_.mQ(_.JA,function(){c7N(u,15E3)},O-15E3),f.presetPauseSchedulerId=_.mQ(_.JA,function(){h6K(f,u)},O),OKm(u,(0,_.iZ)(),O))},h6K=function(f,R){if(f.JSC$20330_watchApi.isActive()){var u={dismissDialogEndpoint:{}};
var O={commandExecutorCommand:{commands:[u,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};u={buttonViewModel:{title:_.Fa("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:u}}};O={buttonViewModel:{title:_.Fa("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:O}}};var c={dialogHeaderViewModel:{headline:{content:_.Fa("SLEEP_TIMER_ENDED_TITLE")}}},
h={basicContentViewModel:{paragraphs:[{text:{content:_.Fa("SLEEP_TIMER_ENDED_TEXT")}}]}};u={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:c,content:h,footer:{panelFooterViewModel:{primaryButton:u,secondaryButton:O,shouldHideDivider:!0}}}}}}};_.vh().resolve(_.rv).resolveCommand(u,{form:{element:f}})}else hE2();Ab2(f,!1);atm(f,R);R.pauseVideo();_.sd.getInstance().getState()===2&&R.getPlayerState()===5&&(f.pauseAutonavPlayback=!0)},z1=function(f,R){Ab2(f,!0);
atm(f,R);hE2()},atm=function(f,R){KRw(f,R);
f.selectedOption="Off";f.videoId="";f.playlistId="";f.adjustmentsCount=0;var u;(u=f.sessionStorage)==null||u.remove("yt-sleep-timer");_.JA.cancelJob(JI);R.resetSleepTimerMenuSettings()},Ab2=function(f,R){R={timer_length_adjustment_times_during_session:f.adjustmentsCount-1,
is_session_cancelled:R};switch(f.selectedOption){case "Off":R.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":R.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":R.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:R.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",R.option_duration_in_minutes=ftt.get(f.selectedOption)/6E4}_.Jr("sleepTimerSessionFinishEvent",R)};
_.JJ.prototype.onPlayerStateChange=function(f,R){f===1?uYK(R,(0,_.iZ)(),ZKt(R),this.selectedOption==="End of video"):f===0?(_.JA.cancelJob(DE),R.setVideoTimeLeft(RE9(0,0))):f===2&&_.JA.cancelJob(DE);this.selectedOption==="End of video"?f===0?h6K(this,R):f===2&&XkX(R):this.selectedOption!=="End of playlist"||rW2(this.playlistId)||(f===0?h6K(this,R):f===2&&XkX(R))};
_.JJ.prototype.onSeekComplete=function(f){f.getPlayerState()===2&&uYK(f,(0,_.iZ)(),ZKt(f),this.selectedOption==="End of video",!0)};
_.JJ.prototype.onCueRangeEnter=function(f,R){f==="sleep-timer-fade-audio"&&c7N(R,(R.getDuration()-R.getProgressState().current)*1E3)};
_.JJ.prototype.onCueRangeExit=function(f,R){f==="sleep-timer-fade-audio"&&R.getPlayerState()!==0&&XkX(R,!0)};
var ltX=function(f,R){R.addCueRange("sleep-timer-fade-audio",R.getDuration()-15,R.getDuration());R.addEventListener("onCueRangeEnter",function(u){f.onCueRangeEnter(u,R)});
R.addEventListener("onCueRangeExit",function(u){f.onCueRangeExit(u,R)})},Zo5=function(f,R){R.removeCueRange("sleep-timer-fade-audio");
R.removeEventListener("onCueRangeEnter",function(u){f.onCueRangeEnter(u,R)});
R.removeEventListener("onCueRangeExit",function(u){f.onCueRangeExit(u,R)})},KRw=function(f,R){j1(f.selectedOption)?Zo5(f,R):(_.JA.cancelJob(f.presetPauseSchedulerId),_.JA.cancelJob(f.presetFadeSchedulerId),f.presetPauseSchedulerId=0,f.presetFadeSchedulerId=0);
XkX(R,!0)},q3t=function(f,R){R.setLoop(!1);
R.setLoopVideo(!1);R.setLoopRange(null);(f=iX2(f.JSC$20330_watchApi))&&_.vh().resolve(_.zM).dispatch(_.aA("playlistLoopStateEntity",f,{key:f,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Qqz=function(f){_.d9.call(this);this.JSC$20333_watchApi=f;FRa(this);wDa(this);mn5(this);f=f.getRoot();if(f.is==="ytd-watch-flexy"||f.is==="ytd-watch-grid")f.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.E9X();_.E("web_watch_log_theater_mode_cookie_state")&&_.wU.get("wide","0")==="1"&&_.x3q("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.y(_.Qqz,_.d9);var FRa=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20333_watchApi.playerApi,2);R=O.yieldResult;u=function(c){WRK(f,!!c)};
R.addEventListener("SIZE_CLICKED",u);f.addOnDisposeCallback(function(){R.removeEventListener("SIZE_CLICKED",u)});
_.KG(O)})},wDa=function(f){f.JSC$20333_watchApi.registerActionHandler("yt-toggle-theater-mode",function(R,u){WRK(f,R,u===void 0?!0:u)});
f.addOnDisposeCallback(function(){f.JSC$20333_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Qqz.prototype.getState=function(){return _.IA(_.sP().getState())};
var WRK=function(f,R,u){u=u===void 0?!0:u;var O,c,h,l=_.E("enable_player_resize_transition")&&!!f.JSC$20333_watchApi.getWatchNextResponse()&&!((O=f.JSC$20333_watchApi.getWatchNextResponse())==null?0:(c=O.contents)==null?0:(h=c.twoColumnWatchNextResults)==null?0:h.conversationBar);_.$el(function(){_.sP().dispatch(_.OP({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:R}}));_.E("theater_mode_scroll_to_top_killswitch")||f.JSC$20333_watchApi.scrollWatchTo(0,!1);_.iE()&&_.E("external_fullscreen")&&_.ru(document.documentElement);
mn5(f);u&&_.m$("wide",R?"1":"0",-1);_.OJ(f.JSC$20333_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);f.JSC$20333_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:R});R&&_.E9X()},{shouldWrap:l})},mn5=function(f){var R;
_.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$20333_watchApi.playerApi,2);R=u.yieldResult;R.setSizeStyle(!0,f.getState());_.KG(u)})};var CGX=function(f){_.d9.call(this);var R=this;this.playerApi=f;this.timeToPanelSyncKeyMap={};var u;if(f==null?0:(u=f.isReady)==null?0:u.call(f)){u=_.aC(_.vh().resolve(_.zM),function(c){return c.entities.timedMarkersListSyncEntity||{}},function(c,h){c=c===void 0?{}:c;
h=h===void 0?{}:h;for(var l=_.Z(Object.keys(h)),K=l.next();!K.done;K=l.next())K=K.value,c[K]!==h[K]&&EgX(R,h[K]);h=_.Z(Object.keys(c));for(l=h.next();!l.done;l=h.next())l=l.value,K=c[l],R.timeToPanelSyncKeyMap[l]&&tBN(R,K)});
this.addOnDisposeCallback(u);var O=function(c){R.onCueRangeEnter(c)};
f.addEventListener("onCueRangeEnter",O);this.addOnDisposeCallback(function(){var c;(c=f.removeEventListener)==null||c.call(f,"onCueRangeEnter",O)})}};
_.y(CGX,_.d9);
var tBN=function(f,R){var u,O;if((u=f.playerApi)==null?0:(O=u.isReady)==null?0:O.call(u)){var c;if((u=R==null?void 0:(c=R.timedListData)==null?void 0:c.sections)&&R!=null&&R.key)for(c=_.Z(u),u=c.next();!u.done;u=c.next())if(u=u.value,u.timedSyncDataList&&u.sectionId)for(O=0;O<u.timedSyncDataList.length;O++){var h=u.timedSyncDataList[O];h.syncItemId&&f.playerApi.addCueRange(u.sectionId+"_"+R.key+"_"+h.syncItemId,Number(h.videoTimeMs)/1E3,O===u.timedSyncDataList.length-1?0x8000000000000:Number(u.timedSyncDataList[O+
1].videoTimeMs)/1E3)}}},EgX=function(f,R){var u,O;
if((u=f.playerApi)==null?0:(O=u.isReady)==null?0:O.call(u)){var c;if((u=R==null?void 0:(c=R.timedListData)==null?void 0:c.sections)&&R!=null&&R.key)for(c=_.Z(u),u=c.next();!u.done;u=c.next())if(u=u.value,u.timedSyncDataList&&u.sectionId){O=_.Z(u.timedSyncDataList);for(var h=O.next();!h.done;h=O.next())h=h.value,h.syncItemId&&f.playerApi.removeCueRange(u.sectionId+"_"+R.key+"_"+h.syncItemId)}}};
CGX.prototype.onCueRangeEnter=function(f){for(var R=_.Z(Object.keys(this.timeToPanelSyncKeyMap)),u=R.next();!u.done;u=R.next()){u=u.value;var O=_.Z(f.split("_"+u+"_")),c=O.next().value;O=O.next().value;if(c&&O){f=_.vh().resolve(_.zM);R=this.timeToPanelSyncKeyMap[u];var h=_.yB2(f.getState(),R);u=ybh(u,c,O);if(u===-1)break;u={activeSyncId:O,activeItemIndex:u,activeSectionInfo:{sectionIdentifier:c}};h?f.dispatch(_.bA("markersEngagementPanelSyncEntity",R,u)):f.dispatch(_.aA("markersEngagementPanelSyncEntity",
R,Object.assign({},{key:R},u)));break}}};
var ybh=function(f,R,u){var O=_.vh().resolve(_.zM),c,h;f=(c=wEz(O.getState(),f))==null?void 0:(h=c.timedListData)==null?void 0:h.sections;if(!f)return-1;c=0;h=_.Z(f);for(f=h.next();!f.done;f=h.next()){f=f.value;O=f.timedSyncDataList||[];if(f.sectionId===R)return R=O.findIndex(function(l){return l.syncItemId===u}),R===-1?R:c+R;
c+=O.length}return-1};_.LRm=function(f){_.d9.call(this);var R=this;this.JSC$20345_watchApi=f;this.unresolvedCommands=[];this.JSC$20345_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(u){dn2(R,u)});
this.addOnDisposeCallback(function(){R.JSC$20345_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
N6h(this)};
_.y(_.LRm,_.d9);var N6h=function(f){var R;_.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$20345_watchApi.playerApi,2);R=u.yieldResult;if(f.isDisposed())return u.return();f.timedSyncObserver=new CGX(R);f.unresolvedCommands.length&&(f.unresolvedCommands.forEach(function(O){return dn2(f,O)}),f.unresolvedCommands=[]);
_.qG(f,f.timedSyncObserver);_.KG(u)})},dn2=function(f,R){if(f.timedSyncObserver){var u=_.t(R,Mfa);
if(u&&u.timedSyncEntityKey&&u.panelSyncEntityKey){f=f.timedSyncObserver;R=u.timedSyncEntityKey;var O=u.panelSyncEntityKey;u=!!u.isEnabled;u=u===void 0?!0:u;var c=_.vh().resolve(_.zM);c=wEz(c.getState(),R);u?f.timeToPanelSyncKeyMap[R]||(f.timeToPanelSyncKeyMap[R]=O,tBN(f,c)):(delete f.timeToPanelSyncKeyMap[R],EgX(f,c))}}else f.unresolvedCommands.push(R)};var bo5=_.nf(function(f){var R=f.data,u=f.maybeLogSmartSkipClientData,O=_.sW();_.xO(O,function(){return R().rendererContext},{onTap:function(w,m){m({disableClickTracking:!0})}});
var c=null,h=null,l=_.E("web_enable_auto_focus_for_timely_action_button"),K=function(){c=document.activeElement},q=function(){R().smartSkipMetadata&&(c=document.activeElement,_.q9e(function(){return h}))},F=function(w){if(R().smartSkipMetadata&&(!w||w.key!=="Enter")){c&&c.isConnected&&(_.q9e(function(){return c}),c=null);
var m;(m=h)==null||m.blur()}};
f=_.Ff(function(){u==null||u(!0,R());return!1});
_.fT(O,{visibilityCallback:function(w){if(l)w?h&&R().smartSkipMetadata&&(q(),document.addEventListener("focusin",K)):(document.removeEventListener("focusin",K),F());else if(w&&_.E("web_ephemeral_actions")){w=_.BJ(R().rendererContext);var m=Number(R().maxVisibleDurationMilliseconds),W,C=(W=_.t(R().rendererContext,_.mZ))==null?void 0:W.label;w&&m&&C&&(W={label:C,command:w,durationMs:m},_.vh().resolve(_.kL).enqueue(W))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.NW(function(){if(l){var w;if((h=(w=O.value)==null?void 0:w.querySelector("button"))&&R().smartSkipMetadata){var m;(m=O.value)==null||m.addEventListener("keydown",F)}}});
_.jN(function(){l&&(h&&R().smartSkipMetadata&&h.removeEventListener("keydown",F),document.removeEventListener("focusin",K),F())});
return _.a("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:O,"on:click":f},_.a(_.y5,{data:function(){return R().content}},{buttonViewModel:_.TS}))},"mj");var pDS=_.nf(function(f){var R=f.data,u=f.playerApi,O=_.vh().resolve(_.n0f);f=_.Z(_.m8(function(){R()}));
var c=f.next().value,h=f.next().value,l=function(){return kuK(R(),c())},K=function(F,w){var m,W,C=(m=_.t(w==null?void 0:w.rendererContext,_.mi))==null?void 0:(W=m.loggingDirectives)==null?void 0:W.trackingParams;
if((w=w==null?void 0:w.smartSkipMetadata)&&w.loggingData&&(W=w.loggingData,w=W.algorithmId,m=W.startMilliseconds,W=W.endMilliseconds,w&&m!==void 0&&W!==void 0)){var d,p;F={smartSkipData:Object.assign({},{versionName:w,startMediaTimeMs:m,endMediaTimeMs:W},F&&{userInteractionMediaTimeMs:(Math.floor(((d=_.Vm())==null?void 0:(p=d.getPlayer())==null?void 0:p.getCurrentTime())||0)*1E3).toString()})};d=_.z4();var J;C&&(J=_.t4(C));d&&J&&_.gA(d,J,F)}},q=function(F,w){var m=kuK(R(),F);
if(m){var W=_.t(m,TQ),C;if(C=w)C=u(),m=_.t(m,TQ),C=m!=null&&m.smartSkipMetadata?!(C==null?0:C.isSameMarkerTypeVisible((m==null?void 0:m.smartSkipMetadata.markerKey)||"")):!0;if(C){var d,p;(W==null?0:(d=W.smartSkipMetadata)==null?0:(p=d.loggingData)==null?0:p.isCounterfactual)||(K(!1,W),h(F))}else w||c()!==F||h(void 0)}};
_.pc(function(){var F=R().timelyActions;if(F){F=_.Z(F);for(var w=F.next();!w.done;w=F.next()){w=_.t(w.value,TQ);var m=void 0;(m=w)!=null&&m.cueRangeId&&O.timelyActionsMap.set(w.cueRangeId,q)}_.jN(function(){O.timelyActionsMap.clear()})}});
return _.a("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.a(_.y5,{data:l},{timelyActionViewModel:function(F){return _.a(bo5,{data:F.data,maybeLogSmartSkipClientData:function(){K(!0,_.t(l(),TQ))}})}}))},"nj");_.Dnz=function(f){_.d9.call(this);this.JSC$20357_watchApi=f;f=_.Z(_.qK({},void 0,"pLDp2"));this.timelyActionsOverlay=f.next().value;this.setTimelyActionsOverlay=f.next().value;jqt(this)};
_.y(_.Dnz,_.d9);var jqt=function(f){var R,u,O,c;_.k(function(h){if(h.nextAddress==1)return JbK(f),z6h(f),f.timelyActionsContainer=document.createElement("div"),_.A(h,f.JSC$20357_watchApi.playerApi,2);R=h.yieldResult;(O=(u=R).insertTimelyActionUi)==null||O.call(u,f.timelyActionsContainer);c=_.dv(f.timelyActionsContainer,function(){return _.a(pDS,{data:f.timelyActionsOverlay,playerApi:R})});
f.addOnDisposeCallback(c);_.KG(h)})},z6h=function(f){var R=f.JSC$20357_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JbK(f)});
f.addOnDisposeCallback(function(){f.JSC$20357_watchApi.unsubscribeByKey(R)})},JbK=function(f){var R=f.JSC$20357_watchApi.getWatchNextResponse();
if(R){var u,O;if(R=_.t((u=R.playerOverlays)==null?void 0:(O=u.playerOverlayRenderer)==null?void 0:O.timelyActionsOverlayViewModel,PYl)){var c;(c=f.setTimelyActionsOverlay)==null||c.call(f,R)}}};_.Ho2=function(f){_.d9.call(this);this.JSC$20361_watchApi=f;T6e(this)};
_.y(_.Ho2,_.d9);var T6e=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20361_watchApi.playerApi,2);R=O.yieldResult;u=function(c){_.KU.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.t(c,_.Vz2)},popupType:"TOAST"}})};
R.addEventListener("onYtShowToast",u);f.addOnDisposeCallback(function(){R.removeEventListener("onYtShowToast",u)});
_.KG(O)})};var Ita,Un5,MBh,PGK,ogm,Gcw,B65,S3e,$nX;Ita=!1;_.e6a=function(f){_.d9.call(this);this.JSC$20364_watchApi=f;this.fullscreen=this.theater=!1;MBh(this);PGK(this);Un5(this)};
_.y(_.e6a,_.d9);Un5=function(f){var R,u,O;_.k(function(c){if(c.nextAddress==1)return _.A(c,f.JSC$20364_watchApi.playerApi,2);R=c.yieldResult;if(f.isDisposed())return c.return();u=f.JSC$20364_watchApi.getElement("CINEMATICS");if(!u)return c.return();f.JSC$20364_cinematicController=new _.cN(u,R);_.qG(f,f.JSC$20364_cinematicController);_.Q29(f.JSC$20364_cinematicController);Gcw(f,_.qct());O=f.JSC$20364_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(h){B65(f,h)});
f.addOnDisposeCallback(function(){f.JSC$20364_watchApi.unsubscribeByKey(O)});
ogm(f);B65(f,f.JSC$20364_cinematicController.isAllowed());_.xnS(f,f.fullscreen,f.theater);S3e(f);_.KG(c)})};
MBh=function(f){var R=f.JSC$20364_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ogm(f)});
f.addOnDisposeCallback(function(){f.JSC$20364_watchApi.unsubscribeByKey(R)})};
PGK=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20364_watchApi.playerApi,2);R=O.yieldResult;u=function(c){Gcw(f,c)};
R.addEventListener("cinematicSettingsToggleChange",u);f.addOnDisposeCallback(function(){R.removeEventListener("cinematicSettingsToggleChange",u)});
_.KG(O)})};
ogm=function(f){var R=f.JSC$20364_watchApi.getWatchNextResponse(),u;R=_.t(R==null?void 0:(u=R.pageVisualEffects)==null?void 0:u[0],_.yl);var O;(O=f.JSC$20364_cinematicController)==null||_.Efh(O,R)};
Gcw=function(f,R){var u;(u=f.JSC$20364_cinematicController)==null||_.WSw(u,R);$nX(f)};
B65=function(f,R){var u;_.k(function(O){if(O.nextAddress==1)return _.E("kevlar_watch_cinematics_invisible")&&(R=!1),_.A(O,f.JSC$20364_watchApi.playerApi,2);u=O.yieldResult;u.updateCinematicSettings(R);$nX(f);_.KG(O)})};
S3e=function(f){var R=_.Qu();if(_.E("kevlar_measure_ambient_mode_idle")&&!R.getFlag(192)&&!Ita){Ita=!0;var u=_.dJ(_.JA,function(){_.vh().resolve(_.Gqz).start(1E4)},5E3);
f.addOnDisposeCallback(function(){_.JA.cancelJob(u);_.vh().resolve(_.Gqz).stop()})}};
_.xnS=function(f,R,u){f.fullscreen=R;f.theater=u;var O;(O=f.JSC$20364_cinematicController)==null||O.setFullscreen(f.fullscreen,f.theater);if(_.E("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(f.theater||f.fullscreen){var c;(c=f.JSC$20364_cinematicController)==null||_.tjl(c)}else if((f=f.JSC$20364_cinematicController)!=null){var h;(h=f.currentCinematicEffect)==null||h.pause()}};
$nX=function(f){if(_.E("web_cinematic_theater_mode")||_.E("web_cinematic_fullscreen")){var R;f.JSC$20364_watchApi.getRoot().toggleCinematicsActive(!((R=f.JSC$20364_cinematicController)==null||!R.isEnabled()))}};_.VBS=function(f){_.d9.call(this);var R=this;this.JSC$20367_watchApi=f;this.commentsReady=!1;this.setCommentsJobId=0;f=_.aC(_.sP(),_.L7,function(){gge(R)});
this.addOnDisposeCallback(f);var u=this.JSC$20367_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sql(R)}),O=this.JSC$20367_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){sql(R)});
this.addOnDisposeCallback(function(){R.JSC$20367_watchApi.unsubscribeByKey(u);R.JSC$20367_watchApi.unsubscribeByKey(O)});
var c=function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ng5(R,"false")};
this.JSC$20367_watchApi.getRoot().addEventListener("yt-page-data-will-update",c);this.addOnDisposeCallback(function(){R.JSC$20367_watchApi.getRoot().removeEventListener("yt-page-data-will-update",c)});
sql(this)};
_.y(_.VBS,_.d9);var sql=function(f){f.commentsReady=!1;_.JA.cancelJob(f.setCommentsJobId);f.setCommentsJobId=_.dJ(_.JA,function(){gge(f)},1E3)},gge=function(f){if(!f.commentsReady){_.JH("cmi");
_.JA.cancelJob(f.setCommentsJobId);var R,u,O,c,h=(R=f.JSC$20367_watchApi.getWatchNextResponse())==null?void 0:(u=R.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(c=O.results)==null?void 0:c.results.contents;R=void 0;if(h&&h.length)for(h=_.Z(h),u=h.next();!u.done;u=h.next())if(u=u.value,c=O=void 0,((O=u)==null?void 0:(c=O.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"){_.E("web_watch_provide_undefined_comments")?R=u.itemSectionRenderer:f.JSC$20367_watchApi.provideRenderingData("COMMENTS",
u.itemSectionRenderer);ng5(f,"true");break}_.E("web_watch_provide_undefined_comments")&&f.JSC$20367_watchApi.provideRenderingData("COMMENTS",R);f.commentsReady=!0;f.JSC$20367_watchApi.dispatchEvent("yt-watch-comments-ready")}},ng5=function(f,R){var u;
(u=f.JSC$20367_watchApi.getElement("COMMENTS"))==null||u.setAttribute("canScheduleJobs",R)};_.Ml=function(f){_.d9.call(this);var R=this;this.JSC$20370_watchApi=f;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.E("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.E("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.E("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.RV("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Y3w(this);
else{var u=this.JSC$20370_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){T1(R);H6(R)}),O=this.JSC$20370_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ix(R);
H6(R)});
this.JSC$20370_watchApi.getRoot().is==="ytd-watch-grid"&&_.E("swatcheroo_pbs_load_grid")&&(vgh(this),ioz(this));this.addOnDisposeCallback(function(){R.JSC$20370_watchApi.unsubscribeByKey(u);R.JSC$20370_watchApi.unsubscribeByKey(O);_.JA.cancelJob(R.provideRichGridJobId)});
T1(this);Ix(this)}};
_.y(_.Ml,_.d9);var Y3w=function(f){var R=f.JSC$20370_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){f.providePlayerJobId=_.Cr(_.JA,function(){T1(f);H6(f)},f.provideAllDataDelayMs)}),u=f.JSC$20370_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){f.provideWatchNextJobId=_.Cr(_.JA,function(){Ix(f);
H6(f)},f.provideAllDataDelayMs)}),O=f.JSC$20370_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){f.provideWatchNextJobId=_.Cr(_.JA,function(){Ix(f);
H6(f)},f.provideAllDataDelayMs)});
f.JSC$20370_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.dJ(_.JA,function(){T1(f);Ix(f);H6(f)},100)});
f.JSC$20370_watchApi.addPageDisposeJob(function(){_.JA.cancelJob(f.provideWatchNextJobId);_.JA.cancelJob(f.providePlayerJobId)});
f.addOnDisposeCallback(function(){f.JSC$20370_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");f.JSC$20370_watchApi.unsubscribeByKey(R);f.JSC$20370_watchApi.unsubscribeByKey(u);f.JSC$20370_watchApi.unsubscribeByKey(O);_.JA.cancelJob(f.providePlayerJobId);_.JA.cancelJob(f.provideWatchNextJobId)});
T1(f);Ix(f)},T1=function(f){var R=f.JSC$20370_watchApi.getPlayerResponse(),u,O,c=(O=R==null?void 0:(u=R.playabilityStatus)==null?void 0:u.messageRenderers)!=null?O:[],h,l;
R=(l=R==null?void 0:(h=R.playabilityStatus)==null?void 0:h.messages)!=null?l:[];h=_.Z(R);for(l=h.next();!l.done;l=h.next())c.push({alertRenderer:{text:_.S8(l.value),type:"WARNING"}});f.JSC$20370_watchApi.provideRenderingData("ALERTS",c)},Ix=function(f){var R=[],u,O,c,h=f.JSC$20370_watchApi.getWatchNextResponse(),l,K,q,F,w=h==null?void 0:(l=h.contents)==null?void 0:(K=l.twoColumnWatchNextResults)==null?void 0:(q=K.results)==null?void 0:(F=q.results)==null?void 0:F.contents;
if(w)for(l=_.Z(w),K=l.next();!K.done;K=l.next())if(K=K.value,K.videoPrimaryInfoRenderer)var m=K;else if(K.videoSecondaryInfoRenderer){var W=K;F=q=void 0;K=Object.assign({},(q=K.videoSecondaryInfoRenderer)==null?void 0:(F=q.metadataRowContainer)==null?void 0:F.metadataRowContainerRenderer);if(K.rows&&K.collapsedItemCount!==void 0){K.rows=K.rows.slice(0,K.collapsedItemCount).filter(function($C){return!!$C.richMetadataRowRenderer});
K.collapsedItemCount=K.rows.length;var C={metadataRowContainerRenderer:K}}}else if(K.merchandiseShelfRenderer)var d=K;else if(K.ticketShelfRenderer)var p=K;else if(K.expandableMetadataRenderer)var J=K;else if(K.itemSectionRenderer)if(q=K.itemSectionRenderer.contents,F=void 0,f.directlyProvideComments&&((F=K.itemSectionRenderer)==null?void 0:F.sectionIdentifier)==="comment-item-section")_.JH("cmi"),f.JSC$20370_watchApi.provideRenderingData("COMMENTS",K.itemSectionRenderer);else if(q)for(K=_.Z(q),q=
K.next();!q.done;q=K.next())if(q=q.value,q.commentsEntryPointHeaderRenderer)var M=q;else if(q.clarificationRenderer||q.infoPanelContainerRenderer||q.infoPanelContentRenderer||q.emergencyOneboxRenderer){R.push(q);var P=P||!!W}else q.limitedStateMessageRenderer?O=q:q.videoMetadataCarouselViewModel&&(c=q);if(_.E("web_watch_merch_in_sd_when_ticket_shelf_present")&&d&&p){var g=d;d=void 0}if(f.provideWatchNextSecondaryResults){var x,fh,V;f.JSC$20370_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
h==null?void 0:(x=h.contents)==null?void 0:(fh=x.twoColumnWatchNextResults)==null?void 0:(V=fh.secondaryResults)==null?void 0:V.secondaryResults)}if(f.JSC$20370_watchApi.getRoot().is==="ytd-watch-grid"){var ZD,mP;f.JSC$20370_watchApi.provideRenderingData("LIVE_CHAT",h==null?void 0:(ZD=h.contents)==null?void 0:(mP=ZD.twoColumnWatchNextResults)==null?void 0:mP.conversationBar)}var NX,jt,Jn,zq;(x=h==null?void 0:(NX=h.contents)==null?void 0:(jt=NX.twoColumnWatchNextResults)==null?void 0:(Jn=jt.secondaryResults)==
null?void 0:(zq=Jn.secondaryResults)==null?void 0:zq.offerModule)&&(x.donationShelfRenderer||x.donationUnavailableRenderer)&&f.JSC$20370_watchApi.getRoot().is!=="ytd-watch-grid"&&(u=x);NX=f.JSC$20370_watchApi.getPlayerResponse();if(!NX||!_.sHn(NX.playabilityStatus,h==null?void 0:h.playerOverlays)){var St;if(h==null?0:(St=h.contents)==null?0:St.singleColumnWatchNextResults){var Gq,LC;var wN=h==null?void 0:(Gq=h.contents.singleColumnWatchNextResults.results)==null?void 0:(LC=Gq.results)==null?void 0:
LC.contents}else{var GI,ak,kC,Rw;St=!!(w==null?0:(GI=w[0])==null?0:(ak=GI.itemSectionRenderer)==null?0:(kC=ak.contents)==null?0:(Rw=kC[0])==null?0:Rw.backgroundPromoRenderer);var KC,qe;GI=!!(h==null?0:(KC=h.contents)==null?0:(qe=KC.twoColumnWatchNextResults)==null?0:qe.secondaryResults);St&&!GI&&(wN=w)}}w=R[0];KC=R[1];P&&R.length===1&&(KC=w,w=void 0);f.JSC$20370_watchApi.provideRenderingData("PRIMARY_INFO",m);f.JSC$20370_watchApi.provideRenderingData("SECONDARY_INFO",W);f.JSC$20370_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
M);f.JSC$20370_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",c);f.JSC$20370_watchApi.provideRenderingData("CLARIFICATION",w);f.JSC$20370_watchApi.provideRenderingData("RICH_METADATA",C);f.JSC$20370_watchApi.provideRenderingData("MERCH_SHELF",d);_.E("web_watch_merch_in_sd_when_ticket_shelf_present")&&f.JSC$20370_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",g);f.JSC$20370_watchApi.provideRenderingData("TICKET_SHELF",p);f.JSC$20370_watchApi.provideRenderingData("LIMITED_STATE",O);f.JSC$20370_watchApi.getRoot().is!==
"ytd-watch-grid"&&f.JSC$20370_watchApi.provideRenderingData("DONATION_SHELF",u);f.JSC$20370_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",wN);f.JSC$20370_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",KC);f.JSC$20370_watchApi.provideRenderingData("EXPANDABLE_METADATA",J);if(f.swatcherooProvideAllDataOnScheduledJob){var LE,k5,yA,HG,GX,bf;m=h==null?void 0:(LE=h.contents)==null?void 0:(k5=LE.twoColumnWatchNextResults)==null?void 0:(yA=k5.secondaryResults)==null?void 0:(HG=yA.secondaryResults)==
null?void 0:(GX=HG.results)==null?void 0:(bf=GX[0])==null?void 0:bf.richGridRenderer;f.JSC$20370_watchApi.provideRenderingData("RICH_GRID_RENDERER",m)}};
_.Ml.prototype.hasCompanionAds=function(f){var R,u;return(u=f==null?void 0:(R=f.adPlacements)==null?void 0:R.some(function(O){var c,h,l,K;return(O==null?void 0:(c=O.adPlacementRenderer)==null?void 0:(h=c.renderer)==null?void 0:h.actionCompanionAdRenderer)||(O==null?void 0:(l=O.adPlacementRenderer)==null?void 0:(K=l.renderer)==null?void 0:K.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?u:!1};
var H6=function(f){if(!_.E("swaterdoo_ps_wn_handle_ks")){f.swatcherooProvideAllDataOnScheduledJob||ioz(f,3E3);var R=f.JSC$20370_watchApi.getPlayerResponse(),u,O,c,h,l,K=(u=f.JSC$20370_watchApi.getWatchNextResponse())==null?void 0:(O=u.contents)==null?void 0:(c=O.twoColumnWatchNextResults)==null?void 0:(h=c.secondaryResults)==null?void 0:(l=h.secondaryResults)==null?void 0:l.offerModule;R=f.hasCompanionAds(R);var q,F;u=(K==null?void 0:(q=K.tvfilmOfferModuleRenderer)==null?void 0:q.clientShouldSuppressIfCompanionAdDisplayed)||
(K==null?void 0:(F=K.unlimitedOfferModuleRenderer)==null?void 0:F.suppressIfCompanionAds);q=R&&u;f.JSC$20370_watchApi.getRoot().is==="ytd-watch-grid"&&f.JSC$20370_watchApi.provideRenderingData("OFFER_MODULE",q?void 0:K)}},ioz=function(f,R){_.E("swatcheroo_pbs_load_grid")&&(f.provideRichGridJobId&&_.JA.cancelJob(f.provideRichGridJobId),f.provideRichGridJobId=_.Cr(_.JA,function(){f.provideRichGridJobId=0;
var u,O,c,h,l,K,q,F=(u=f.JSC$20370_watchApi.getWatchNextResponse())==null?void 0:(O=u.contents)==null?void 0:(c=O.twoColumnWatchNextResults)==null?void 0:(h=c.secondaryResults)==null?void 0:(l=h.secondaryResults)==null?void 0:(K=l.results)==null?void 0:(q=K[0])==null?void 0:q.richGridRenderer;F&&f.JSC$20370_watchApi.provideRenderingData("RICH_GRID_RENDERER",F)},R))},vgh=function(f){var R,u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20370_watchApi.playerApi,2);R=O.yieldResult;u=function(){f.onPlaybackStart()};
R.addEventListener("onPlaybackStartExternal",u);f.addOnDisposeCallback(function(){R.removeEventListener("onPlaybackStartExternal",u)});
_.KG(O)})};
_.Ml.prototype.onPlaybackStart=function(){ioz(this)};_.fbh=function(f){_.d9.call(this);var R=this;this.JSC$20380_watchApi=f;f.playerApi.then(function(u){R.player=u});
this.gestures=new _.kY(this.JSC$20380_watchApi.getRoot(),f.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.CJ9(_.sP().getState())&&_.L7(_.sP().getState())<=0)if(_.Mp(_.sP().getState())){var u;(u=R.player)==null||u.toggleFullscreen()}else _.OJ(R.JSC$20380_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
rba(this)};
_.y(_.fbh,_.d9);var rba=function(f){var R=_.aC(_.sP(),_.Mp,function(u){f.onFullscreenChanged(u)});
f.addOnDisposeCallback(R);R=_.aC(_.sP(),_.L7,function(u){f.gestures&&(u>0?f.gestures.detach():f.gestures.attach())});
f.addOnDisposeCallback(R)};
_.fbh.prototype.onFullscreenChanged=function(f){this.gestures&&this.gestures.update(f)};_.uFm=function(f){_.d9.call(this);var R=this;this.JSC$20383_watchApi=f;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(f.subscribeToActiveChanged(function(u){R.onActiveChanged(u)}));
RSw(this)};
_.y(_.uFm,_.d9);var O$a=function(f){if(_.E("swatcheroo_page_dispose_all_watch_data"))f.pageDisposalDataTypes=Object.values(yQe).filter(function(u){return u!=="PLAYLIST"});
else if(_.E("swatcheroo_page_dispose_rich_grid")){var R;(R=f.pageDisposalDataTypes)==null||R.push("RICH_GRID_RENDERER")}},RSw=function(f){_.E("swatcheroo_enable_ghost_cards")&&(O$a(f),f.JSC$20383_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.JA.cancelJob(f.clearDataJobId);
f.clearDataJobId=0}),f.runPageDisposeJob=function(){var R=_.vh().resolve(_.sz).getDestinationPageType()==="watch";
f.clearDataJobId=_.Cr(_.JA,f.runClearDataJob,R?0:_.RV("web_watch_delay_page_dispose_ms",1E4))},f.runClearDataJob=function(){cwt(f)},f.runOnYtNavigateAwayFinish=function(){f.clearDataJobId&&(_.JA.cancelJob(f.clearDataJobId),f.clearDataJobId=0,cwt(f))},document.addEventListener("yt-navigate-finish",f.runOnYtNavigateAwayFinish),f.JSC$20383_watchApi.addPageDisposeJob(f.runPageDisposeJob),f.addOnDisposeCallback(function(){f.JSC$20383_watchApi.removePageDisposeJob(f.runPageDisposeJob);
f.JSC$20383_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",f.runOnYtNavigateAwayFinish)}))},cwt=function(f){f.pageDisposalDataTypes.forEach(function(R){f.JSC$20383_watchApi.provideRenderingData(R,void 0)});
f.clearDataJobId=0};
_.uFm.prototype.onActiveChanged=function(f){f&&((f=document.querySelector("#watch-page-skeleton"))&&_.Q1(f),XFm(this),document.body.removeAttribute("no-y-overflow"),_.Hh("IS_SHELL_LOAD")&&_.wSl())};
var XFm=function(f){_.k(function(R){if(R.nextAddress==1)return _.A(R,f.JSC$20383_watchApi.playerApi,2);_.sY();_.KG(R)})};var hSe;hSe=_.E("kevlar_watch_while_counterfactual")?0:.25;_.P6=function(f){_.d9.call(this);this.JSC$20386_watchApi=f;this.JSC$20386_watchWhileEnabled=_.E("kevlar_watch_while_v2");this.pipEnabled=_.E("web_enable_pip_on_miniplayer");Z$9(this);lb2(this);kyl(this)};
_.y(_.P6,_.d9);var Z$9=function(f){f.JSC$20386_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Kja(f)});
f.addOnDisposeCallback(function(){f.JSC$20386_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},lb2=function(f){var R,u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20386_watchApi.playerApi,2);R=O.yieldResult;u=function(){Kja(f)};
R.addEventListener("onCollapseMiniplayer",u);f.addOnDisposeCallback(function(){R.removeEventListener("onCollapseMiniplayer",u)});
_.KG(O)})},kyl=function(f){var R=f.JSC$20386_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&R&&f.JSC$20386_watchWhileEnabled&&(f.playerIntersectionObserver=new IntersectionObserver(function(u){f.handleIntersect(u)},{threshold:[hSe]}),f.playerIntersectionObserver.observe(R),f.addOnDisposeCallback(function(){var u;
(u=f.playerIntersectionObserver)==null||u.disconnect()}))},Kja=function(f){var R,u,O;
_.k(function(c){if(c.nextAddress==1){R=_.vh().resolve(_.sz);u=R.data;O=_.n4h(u.response,u.playerResponse);_.qk().miniplayerButtonActivation=!0;if(f.pipEnabled)return _.qk().watchPipActivation=!0,c.jumpTo(2);_.vh().resolve(_.MS).collapse();return _.A(c,_.qk().navigationFinishPromise,2)}if(c.nextAddress!=4)return _.qk().currentEndpoint=O.watchEndpoint||null,_.A(c,_.vh().resolve(_.MS).activate(f.JSC$20386_watchApi.getElement("PLAYER"),O,u),4);_.qk().userActivation=!0;_.KG(c)})};
_.P6.prototype.handleIntersect=function(f){q_m(this,f[f.length-1])};
var q_m=function(f,R){f.watchWhileJobId&&_.JA.cancelJob(f.watchWhileJobId);f.watchWhileJobId=_.JA.addLowPriorityJob(function(){var u,O;return _.k(function(c){if(c.nextAddress==1)return f.watchWhileJobId=void 0,u=_.vh().resolve(_.MS),R.intersectionRatio>hSe?u.isMiniplayerActive()?_.A(c,u.deactivate(),0):c.jumpTo(0):(O=!u.isMiniplayerActive())?_.A(c,Awl(f),5):c.jumpTo(4);c.nextAddress!=4&&(O=c.yieldResult);if(!O)return c.jumpTo(0);_.qk().watchWhileActivation=!0;return _.A(c,ab2(f),0)})},100)},Awl=function(f){return _.k(function(R){return R.nextAddress==
1?_.E("kevlar_watch_while_paused")?R.return(!0):_.A(R,f.isPlayerPlaying(),2):R.return(R.yieldResult)})};
_.P6.prototype.isPlayerPlaying=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$20386_watchApi.playerApi,2);R=u.yieldResult;return u.return(R.getPlayerStateObject().isPlaying)})};
var ab2=function(f){var R,u;return _.k(function(O){R=_.vh().resolve(_.sz).data;u=_.n4h(R.response,R.playerResponse);_.qk().currentEndpoint=u.watchEndpoint||null;return _.A(O,_.vh().resolve(_.MS).activate(f.JSC$20386_watchApi.getElement("PLAYER"),u,R),0)})};_.myz=function(f){_.d9.call(this);this.JSC$20390_watchApi=f;FjS(this);wFt(this)};
_.y(_.myz,_.d9);var wFt=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20390_watchApi.playerApi,2);R=O.yieldResult;u=function(c){var h;c.sessionData&&c.sessionData.itct&&(h=c.sessionData.itct);var l=c.watchEndpoint;if(l&&c.sessionData&&c.sessionData.autonav)l=_.MJX(l,h);else{var K;l=_.rA(c.videoId,(K=c.listId)!=null?K:void 0,h)}h={endpoint:l};c.sessionData&&(h.tempData=c.sessionData);f.JSC$20390_watchApi.dispatchEvent("yt-navigate",h)};
R.addEventListener("onPlayVideo",u);f.addOnDisposeCallback(function(){R.removeEventListener("onPlayVideo",u)});
_.KG(O)})},FjS=function(f){var R=function(u){f.onYtNavigate(u)};
f.JSC$20390_watchApi.getRoot().addEventListener("yt-navigate",R);f.addOnDisposeCallback(function(){f.JSC$20390_watchApi.getRoot().removeEventListener("yt-navigate",R)})};
_.myz.prototype.onYtNavigate=function(f){var R=this,u,O,c,h,l,K,q,F,w;return _.k(function(m){if(m.nextAddress==1){if(!((u=f.detail)==null?0:(O=u.endpoint)==null?0:O.watchEndpoint))return m.return();c=f.detail.endpoint.watchEndpoint;h=R.JSC$20390_watchApi.getWatchNextResponse();K=_.t((l=h)==null?void 0:l.currentVideoEndpoint,_.$7);if(!K)return m.return();if(c.videoId!==K.videoId||c.playlistId&&c.playlistId!==K.playlistId||typeof c.startTimeSeconds!=="number")return m.jumpTo(0);f.stopPropagation();
(q=_.E("kevlar_watch_while_v2")&&!_.E("kevlar_watch_while_counterfactual"))&&_.vh().resolve(_.MS).isMiniplayerActive()||R.JSC$20390_watchApi.scrollWatchTo(0,!0);return _.A(m,R.JSC$20390_watchApi.playerApi,3)}F=m.yieldResult;w=c.startTimeSeconds;F.seekTo(w,void 0,void 0,void 0,84);F.wakeUpControls();w<F.getDuration()&&F.playVideo();_.KG(m)})};_.Wjt=function(f){_.d9.call(this);var R=this;this.JSC$20393_watchApi=f;var u=this.JSC$20393_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QNw(R)});
this.addOnDisposeCallback(function(){R.JSC$20393_watchApi.unsubscribeByKey(u)});
QNw(this)};
_.y(_.Wjt,_.d9);var QNw=function(f){var R=f.JSC$20393_watchApi.getWatchNextResponse();if(R){var u,O=[].concat(_.yq((u=R==null?void 0:R.engagementPanels)!=null?u:[]));O.unshift.apply(O,_.yq(Eoa(R)));f.JSC$20393_watchApi.provideRenderingData("ENGAGEMENT_PANELS",O)}},tRX=function(f){var R,u,O,c=(R=f.engagementPanels)==null?void 0:(u=R.find(function(C){var d;
return((d=C.engagementPanelSectionListRenderer)==null?void 0:d.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(O=u.engagementPanelSectionListRenderer.content)==null?void 0:O.structuredDescriptionContentRenderer,h;
if(_.t(c==null?void 0:(h=c.items)==null?void 0:h.find(function(C){return!!_.t(C,fdX)}),fdX))return!0;
var l,K,q,F;if(f=(((l=f.contents)==null?void 0:(K=l.twoColumnWatchNextResults)==null?void 0:(q=K.results)==null?void 0:(F=q.results)==null?void 0:F.contents)||[]).find(function(C){return C.videoPrimaryInfoRenderer})){var w,m,W;
return(((w=f.videoPrimaryInfoRenderer)==null?void 0:(m=w.videoActions)==null?void 0:(W=m.menuRenderer)==null?void 0:W.flexibleItems)||[]).some(function(C){C=_.t(C,_.H5f);if(!C)return!1;var d,p;C=(d=C.topLevelButton)==null?void 0:(p=d.buttonViewModel)==null?void 0:p.onTap;if(!C)return!1;d=_.H7(C);if(!d)return!1;var J;return((J=_.t(d,_.jg))==null?void 0:J.panelIdentifier)==="PAyouchat"})}return!1},Eoa=function(f){var R=[];
if(!_.E("web_watch_inject_placeholder_fantasy_panel_killswitch")){var u,O,c,h=(u=f.engagementPanels)==null?void 0:(O=u.find(function(K){var q;return((q=K.engagementPanelSectionListRenderer)==null?void 0:q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(c=O.engagementPanelSectionListRenderer.content)==null?void 0:c.structuredDescriptionContentRenderer,l;
_.t(h==null?void 0:(l=h.items)==null?void 0:l.find(function(K){return!!_.t(K,J7a)}),J7a)&&(u=_.M3B("PAsports_fantasy"),u.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R.push(u))}tRX(f)&&(f=_.M3B("PAyouchat"),f.engagementPanelSectionListRenderer.targetId="PAyouchat",f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R.push(f));
return R};_.yw2=function(f){_.d9.call(this);this.JSC$20396_watchApi=f;Cma(this)};
_.y(_.yw2,_.d9);var Cma=function(f){f.JSC$20396_watchApi.registerActionHandler("yt-loop-command",function(R){dya(f,R)});
f.JSC$20396_watchApi.registerActionHandler("yt-repeat-chapter-command",function(R){NTm(f,R)});
f.addOnDisposeCallback(function(){f.JSC$20396_watchApi.unregisterActionHandler("yt-loop-command");f.JSC$20396_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},dya=function(f,R){var u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20396_watchApi.playerApi,2);u=O.yieldResult;_.t(R,Tfw).loop?(u.setLoopRange({startTimeMs:Number(_.t(R,Tfw).startTimeMs),endTimeMs:Number(_.t(R,Tfw).endTimeMs),postId:_.t(R,Tfw).postId,type:"clips"}),u.playVideo()):u.setLoopRange(null);_.KG(O)})},NTm=function(f,R){var u,O;
_.k(function(c){if(c.nextAddress==1)return _.A(c,f.JSC$20396_watchApi.playerApi,2);u=c.yieldResult;O=_.t(R,U4K).repeat;O==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(u.setLoopRange({startTimeMs:Number(_.t(R,U4K).startTimeMs),endTimeMs:Number(_.t(R,U4K).endTimeMs),type:"repeatChapter"}),u.playVideo()):O==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&u.setLoopRange(null);_.KG(c)})};_.b$w=function(f){_.d9.call(this);this.JSC$20401_watchApi=f;Ljl(this)};
_.y(_.b$w,_.d9);var Ljl=function(f){f.JSC$20401_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(R){pF9(f,R)});
f.addOnDisposeCallback(function(){f.JSC$20401_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},pF9=function(f,R){var u,O,c,h,l,K,q,F,w,m,W;
_.k(function(C){if(C.nextAddress==1)return _.A(C,f.JSC$20401_watchApi.playerApi,2);u=C.yieldResult;if(h=(c=(O=_.t(R,eEa))==null?void 0:O.highlightedMenuItemKey)!=null?c:"")(K=(l=u).highlightSettingsMenuItem)==null||K.call(l,h);if(w=(F=(q=_.t(R,eEa))==null?void 0:q.openMenuItemKey)!=null?F:"")(W=(m=u).openSettingsMenuItem)==null||W.call(m,w);_.KG(C)})};var jNS=_.l$("/youtube/app/watch/player_state","playerStateEntity");_.Jwa=function(f){_.d9.call(this);this.JSC$20404_watchApi=f;Dy9(this)};
_.y(_.Jwa,_.d9);var zSm=function(f){switch(f){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"}},Dy9=function(f){var R,u;
_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20404_watchApi.playerApi,2);R=O.yieldResult;u=function(c){f.onPlayerStateChange(c)};
R.addEventListener("onStateChange",u);f.addOnDisposeCallback(function(){R.removeEventListener("onStateChange",u)});
_.KG(O)})};
_.Jwa.prototype.onPlayerStateChange=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,R.JSC$20404_watchApi.playerApi,2);u=c.yieldResult;O=u.getVideoData().video_id;_.xs().dispatch(_.aA("playerStateEntity",jNS,{key:jNS,playerState:zSm(f),videoId:O}));_.KG(c)})};_.H$5=function(f){_.d9.call(this);var R=this;this.JSC$20408_watchApi=f;this.enableExternalPlaylistPanelInPlayer=_.E("delhi_web_player_use_external_playlist_panel");_.vh().resolve(_.Ji).setPlayer(this.JSC$20408_watchApi.getElement("PLAYER"));f=this.JSC$20408_watchApi.subscribeToActiveChanged(function(u){R.onActiveChanged(u)});
this.addOnDisposeCallback(f);TTN(this)};
_.y(_.H$5,_.d9);var TTN=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return f.enableExternalPlaylistPanelInPlayer?_.A(O,f.JSC$20408_watchApi.playerApi,2):O.return();R=O.yieldResult;u=function(){if(f.playlistPanelElement)f.playlistPanelElement.onToggleExpanded()};
R.addEventListener("onToggleExternalPlaylistPanel",u);f.addOnDisposeCallback(function(){R.removeEventListener("onToggleExternalPlaylistPanel",u)});
_.KG(O)})};
_.H$5.prototype.onActiveChanged=function(f){var R=this,u=_.vh().resolve(_.Ji),O=function(){Ibm(R)};
f?(this.playlistPanelElement=this.JSC$20408_watchApi.getElement("PLAYLIST_PANEL"))?(u.setPlaylistComponent(this.playlistPanelElement),u.addEventListener("yt-playlist-data-updated",O),this.addOnDisposeCallback(function(){u.removeEventListener("yt-playlist-data-updated",O)}),Ibm(this)):_.UC(Error("im")):(u.removeEventListener("yt-playlist-data-updated",O),u.cancelVideoSkip())};
var Ibm=function(f){var R=_.vh().resolve(_.Ji);f.JSC$20408_watchApi.provideRenderingData("PLAYLIST",R.getPlaylistData())};_.Ua=function(f){_.d9.call(this);var R=this;this.JSC$20411_watchApi=f;this.onPageScroll=function(){R.scrollThrottle.fire();R.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.vJ(this.onThrottledScroll,200,this);_.qG(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.vJ(this.onMastheadThrottledScroll,50,this);_.qG(this,this.mastheadScrollThrottle);this.animation=new _.TZ(function(u){R.JSC$20411_watchApi.getRoot().setScrollTop(u)});
f=_.aC(_.sP(),_.Mp,function(){R.onFullscreenChanged()});
this.addOnDisposeCallback(f);MRm(this);Pml(this);this.onThrottledScroll()};
_.y(_.Ua,_.d9);
_.Ua.prototype.onFullscreenChanged=function(){var f=this,R=this.JSC$20411_watchApi.getRoot();!this.pageScrollElement&&R.pageScrollElement?(this.pageScrollElement=R.pageScrollElement,R.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){f.pageScrollElement&&f.pageScrollElement.removeEventListener("scroll",f.onPageScroll)})):this.pageScrollElement&&!R.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var MRm=function(f){window.addEventListener("scroll",f.onPageScroll);f.addOnDisposeCallback(function(){window.removeEventListener("scroll",f.onPageScroll)})},Pml=function(f){f.JSC$20411_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(R){a:{var u;
if(u=f.JSC$20411_watchApi.getRoot().contains(R)&&!f.animation.isAnimating()){u=R.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var O,c,h=(R==null?void 0:(O=R.parentElement)==null?void 0:(c=O.parentElement)==null?void 0:c.id)==="fixed-secondary";u=!(u&&h)}if(u){if(_.E("kevlar_watch_scroll_manager_absolute_offset_killswitch"))O=R.offsetTop;else for(O=0,c=R;c!==null;)O+=c.offsetTop,O-=c.scrollTop,c=c.offsetParent;c=O;O=c-24;R=c+R.offsetHeight+24;c=f.JSC$20411_watchApi.getRoot().getPageScrollingElement();
u=f.JSC$20411_watchApi.getRoot().getScrollTop();h=u+c.clientHeight-56;if(O<u+56)R=O-56;else if(R>h)R-=c.clientHeight;else break a;f.scrollWatchTo(Math.max(0,R),!0)}}});
f.addOnDisposeCallback(function(){f.JSC$20411_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Ua.prototype.onThrottledScroll=function(){var f=_.sP(),R=f.dispatch,u=this.JSC$20411_watchApi.getRoot().getScrollTop();R.call(f,_.OP({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:u}}))};
_.Ua.prototype.onMastheadThrottledScroll=function(){this.JSC$20411_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20411_watchApi.getRoot().getScrollTop())};
_.Ua.prototype.scrollWatchTo=function(f,R){(R===void 0?0:R)?this.animation.start(this.JSC$20411_watchApi.getRoot().getScrollTop(),Math.max(0,f),500):this.JSC$20411_watchApi.getRoot().setScrollTop(f)};_.Gym=function(f){_.d9.call(this);var R=this;this.JSC$20414_watchApi=f;var u=this.JSC$20414_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){UyX(R)}),O=this.JSC$20414_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eSS(R)});
this.addOnDisposeCallback(function(){R.JSC$20414_watchApi.unsubscribeByKey(u);R.JSC$20414_watchApi.unsubscribeByKey(O)});
UyX(this);eSS(this)};
_.y(_.Gym,_.d9);
var UyX=function(f){var R,u,O,c=(O=(R=f.JSC$20414_watchApi.getPlayerResponse())==null?void 0:(u=R.videoDetails)==null?void 0:u.title)!=null?O:"";f.JSC$20414_watchApi.dispatchEvent("yt-update-title",c)},eSS=function(f){var R,u,O,c,h,l,K,q=(K=((l=(R=f.JSC$20414_watchApi.getWatchNextResponse())==null?void 0:(u=R.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(c=O.results)==null?void 0:(h=c.results)==null?void 0:h.contents)!=null?l:[]).find(function(F){return!!F.videoPrimaryInfoRenderer}))==null?
void 0:K.videoPrimaryInfoRenderer;
(R=_.$Z(q==null?void 0:q.title))&&f.JSC$20414_watchApi.dispatchEvent("yt-update-title",R)};_.ooK=function(f){_.d9.call(this);this.JSC$20417_watchApi=f;BTm(this)};
_.y(_.ooK,_.d9);var BTm=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$20417_watchApi.playerApi,2);R=O.yieldResult;u=function(){f.onYpcContentRequest()};
R.addEventListener("onYpcContentRequest",u);f.addOnDisposeCallback(function(){R.removeEventListener("onYpcContentRequest",u)});
_.KG(O)})};
_.ooK.prototype.onYpcContentRequest=function(){var f,R,u,O,c,h=(f=this.JSC$20417_watchApi.getWatchNextResponse())==null?void 0:(R=f.contents)==null?void 0:(u=R.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:(c=O.secondaryResults)==null?void 0:c.offerModule,l,K,q,F;f=(F=(q=(K=(l=h==null?void 0:h.episodeOfferModuleRenderer)!=null?l:h==null?void 0:h.movieOfferModuleRenderer)!=null?K:h==null?void 0:h.unlimitedOfferModuleRenderer)!=null?q:h==null?void 0:h.liveOfferModuleRenderer)!=
null?F:h==null?void 0:h.tvfilmOfferModuleRenderer;var w,m,W;h=(W=h==null?void 0:(w=h.tvfilmOfferModuleRenderer)==null?void 0:(m=w.actionButtons)==null?void 0:m.length)!=null?W:0;m=Math.max(h-1,0);var C,d,p;w=(p=f==null?void 0:(C=f.offerButton)==null?void 0:C.buttonRenderer)!=null?p:f==null?void 0:(d=f.actionButtons)==null?void 0:d[m].buttonRenderer;var J,M;(C=(M=(J=w==null?void 0:w.navigationEndpoint)!=null?J:w==null?void 0:w.serviceEndpoint)!=null?M:w==null?void 0:w.command)&&_.KU.instance.resolveCommand(C)};
}catch(e){_._DumpException(e)}
try{
var A1e,kfh,ZQm;_.lKN=function(){var f=_.dq.clone(h8z),R;return(new _.ah(function(u,O){f.onSuccess=function(c){_.Teq(c)?u(new ZQm(c)):O(new _.S_("Request failed, status="+_.hs(c),"net.badstatus",c))};
f.onError=function(c){O(new _.S_("Unknown request error","net.unknown",c))};
f.onTimeout=function(c){O(new _.S_("Request timed out","net.timeout",c))};
R=_.qv("//googleads.g.doubleclick.net/pagead/id",f)})).thenCatch(function(u){if(u instanceof _.BB){var O;
(O=R)==null||O.abort()}return _.NO(u)})};
_.Kwh=function(f){a:{var R="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(R="EMBEDDED_PLAYER_MODE_PFL");var u=f.raw_embedded_player_response;if(!u&&(f=f.embedded_player_response))try{u=JSON.parse(f)}catch(c){break a}if(u)b:for(var O in kfh)if(kfh[O]==u.embeddedPlayerMode){R=kfh[O];break b}}return R==="EMBEDDED_PLAYER_MODE_PFL"};
_.qCN=function(){if(_.E("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.idh())return Error("nf");var f=_.Tf("PLAYER_VARS",{});if(_.dq.get(f,"privembed",!1)=="1")return Error("of");if(_.Kwh(f))return Error("pf")};
A1e=function(f){switch(f){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:_.km(f,"unknown result type")}};
_.aKl=function(f,R,u){R=_.Yq2[R];u={detected:f===0,source:R.xDi,detectionResult:A1e(f),contentCpn:u};_.Jr("biscottiBasedDetection",u);_.Fpi.increment(R.xDi,f);R.jhX!==void 0&&_.zf("CATSTAT",_.ndl(f,R))};
_.$2=function(f,R){var u={};u.key=f;u.value=R;return _.DAD().then(function(O){return new Promise(function(c,h){try{var l=O.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(u);l.onsuccess=function(){c()};
l.onerror=function(){h()}}catch(K){h(K)}})})};
_.whl=function(){var f=_.RV("user_engagement_experiments_rate_limit_ms"),R=Fwl.get("last-user-engagement-exp-trigger-timestamp");return!R||(0,_.iZ)()>=R+f?(Fwl.set("last-user-engagement-exp-trigger-timestamp",(0,_.iZ)()),!0):!1};
_.gM=function(f,R,u,O,c){R=R===void 0?null:R;u=u===void 0?null:u;O=O===void 0?null:O;c=c===void 0?null:c;f={youThereEventType:f};u&&(f.lactThresholdMs=u.lactThresholdMs,f.mediaPosSec=u.promptDelaySec,f.lactServerRequestMs=u.lactServerRequestMs,f.triggerReason=u.triggerReason);c!=null&&(f.renderingMediaPosSec=Math.round(c));R||(R=_.z4());R&&(f.clientScreenNonce=R);O&&(f.clientPlaybackNonce=O);_.Jr("youThere",f)};
kfh={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"};ZQm=function(f){this.xhr=f};
_.S_=function(f,R,u){_.R7.call(this,f+", errorCode="+R);this.errorCode=R;this.xhr=u;this.name="PromiseAjaxError"};
_.y(_.S_,_.R7);var h8z={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Fwl=new _.Mx("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.BQh=function(f){return _.OP({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:f})};
}catch(e){_._DumpException(e)}
try{
var ox,rww,R2h,u8X,OPm,cYa,h22,FXm,wgz,mQ2,Xg5,fPz,KXt,kmS,E69;_.i$2=function(){var f=window.location.hash;f.charAt(0)==="#"&&(f=f.charAt(1)==="!"?f.substring(2):f.substring(1));return _.Bh(f)};
ox=function(f,R,u){var O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,R(),2);O=c.yieldResult;u(O,f);_.KG(c)})};
rww=function(){return _.k(function(f){return f.nextAddress==1?_.A(f,(_.qCN()!==void 0?_.NO(Error("qf")):_.lKN()).then(function(){return 1},function(R){if(R.message==="Biscotti id is disabled")return 3;
_.Ih("Failed fetching bid");return 0}),2):f.return(f.yieldResult)})};
R2h=function(){var f=_.i$("bmdrZGtoYWh2eXQtaGF2ZW4tZW1iZWQtcGxheWVyI2l2MA=="),R=_.i$("NWlmcmFtZSNyOWQzaGo1ZTR1cw==");return document.querySelector(R+fPz+f)?0:1};
u8X=function(){return _.IXD(_.eo)};
OPm=function(){return _.MGP()===0?0:_.PUn()};
cYa=function(){return _.od0(_.Okt([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
h22=function(){return _.bkn(Xg5)};
_.ZPS=function(f){_.k(function(R){switch(R.nextAddress){case 1:return _.A(R,ox("b.f_",rww,f),2);case 2:return _.A(R,ox("j.s_",_.Njh,f),3);case 3:return _.A(R,ox("r.s_",_.CU5,f),4);case 4:return _.A(R,ox("e.h_",h22,f),5);case 5:if(!_.E("ab_det_sc_inj")){R.jumpTo(6);break}return _.A(R,ox("s.i_",_.Tj7,f),6);case 6:if(_.E("ab_deg_unex_thr")){R.jumpTo(8);break}return _.A(R,ox("a.o_",_.JCn,f),8);case 8:if(_.E("ks_get_o_pp")){R.jumpTo(10);break}return _.A(R,ox("g.o_",_.D7X,f),10);case 10:if(_.E("ks_det_gpbl")){R.jumpTo(12);
break}return _.A(R,ox("p.i_",_.jr5,f),12);case 12:return _.A(R,ox("f.i_",_.Kfl,f),14);case 14:return _.A(R,ox("a.b_",_.Edn,f),15);case 15:return _.A(R,ox("p.m_",_.aX7,f),16);case 16:if(!_.E("ab_det_el_h_v2")){R.jumpTo(17);break}return _.A(R,ox("n.h_",cYa,f),17);case 17:return _.A(R,ox("o.p_",u8X,f),19);case 19:return _.A(R,ox("e.i_",R2h,f),20);case 20:if(_.E("ab_det_apm"))return _.A(R,ox("o.a_",OPm,f),0);R.jumpTo(0)}})};
_.lPw=function(f,R){f={videoId:f};R&&(f.playlistId=R);return f};
_.qD2=function(){if(_.idh()){var f=_.Tf("PLAYER_VARS",{});if(_.dq.get(f,"privembed",!1)!="1"&&!_.Kwh(f)){var R=function(){kmS=!0;"google_ad_status"in window?_.zf("DCLKSTAT",1):_.zf("DCLKSTAT",2)};
try{_.Um("//static.doubleclick.net/instream/ad_status.js",R)}catch(u){}KXt.push(_.JA.addLowPriorityJob(function(){if(!(kmS||"google_ad_status"in window)){try{_.SFD("//static.doubleclick.net/instream/ad_status.js",R)}catch(u){}kmS=!0;_.zf("DCLKSTAT",3)}},5E3))}}};
_.xt=function(f,R,u){u=u===void 0?!1:u;var O=Math.max(f.width,_.uvz);if(_.E("kevlar_watch_feed_big_thumbs")&&f.width>=1550-_.pw()&&f.height>=800)O-=_.ldX;else if(f.width>=_.MP){var c=_.O_N+_.c$m+_.I_;_.E("kevlar_watch_feed_big_thumbs")&&(c=_.Z_w);O-=c}else O-=_.O_N;O=Math.min(O,_.Xa2);c=240;u&&(c=380);R<.5624||(!_.E("kevlar_watch_flexy_disable_small_window_sizing")&&(f.height<630&&f.width>=657||f.height>=630&&f.width>=_.MP&&f.width<1327)?c=360:!_.E("kevlar_watch_flexy_disable_large_window_sizing")&&
f.height>=630&&f.width>=1327&&(c=480));var h=Math.min(O*R,f.height-(56+_.Rkt+_.hkm));h=Math.max(h,c);R<1?O=h/R:f.width>=_.MP&&(O=_.xt(f,.5625,u).width);return new _.K8(Math.round(O),Math.round(h))};
_.AYK=function(f){var R=0;f.indexOf("h")!=-1&&(f=f.split("h"),R=f[0]*60*60,f=f[1]);f.indexOf("m")!=-1&&(f=f.split("m"),R=f[0]*60+R,f=f[1]);f.indexOf("s")!=-1?(f=f.split("s"),R=f[0]*1+R):R=f*1+R;return R};
_.aP9=function(){_.RV("service_worker_push_logged_out_prompt_watches")!=-1&&_.nw("WatchCount").then(function(f){f>=100||_.$2("WatchCount",f+1)})};
FXm=function(f){var R=f.externalVideoId||"";return R?f.isShortsEligible?"https://www.youtube.com/shorts/"+R:"https://www.youtube.com/watch?v="+R:""};
wgz=function(f){var R=[];f.viewCount&&R.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:f.viewCount});f.likeCount&&R.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:f.likeCount});return R};
mQ2=function(f){var R,u,O={"@context":"https://schema.org","@type":"VideoObject",description:_.$Z(f.description),duration:"PT"+(f.lengthSeconds||"0")+"S",embedUrl:f.embed?f.embed.iframeUrl:"",name:_.$Z(f.title),thumbnailUrl:((R=f.thumbnail)==null?void 0:(u=R.thumbnails)==null?void 0:u.map(function(w){return w&&w.url||""}))||[],
uploadDate:f.publishDate};_.E("mweb_video_schema_id_killswitch")||(O["@id"]=FXm(f));R=wgz(f);R.length&&(O.interactionStatistic=R);f.category&&(O.genre=f.category);f.ownerChannelName&&(O.author=f.ownerChannelName);f.liveBroadcastDetails&&(O.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:f.liveBroadcastDetails.startTimestamp,endDate:f.liveBroadcastDetails.endTimestamp}]);if(f.learningResource){f=f.learningResource;O["@type"]=["VideoObject","LearningResource"];var c;if((c=f.learningResourceType)==
null?0:c.length)O.learningResourceType=f.learningResourceType[0];var h;if((h=f.educationalAlignment)==null?0:h.length)O.educationalAlignment={"@type":"AlignmentObject",targetName:f.educationalAlignment[0]};var l;if((l=f.educationalLevel)==null?0:l.length){c=f.educationalLevel[0];var K;if((K=f.educationalLevelCountry)==null?0:K.length)c+=" ("+f.educationalLevelCountry+")";O.educationalLevel=c}var q,F;if(((q=f.learningResourceType)==null?0:q.length)&&f.learningResourceType[0]==="Problem walkthrough"&&
((F=f.problemDescriptions)==null?0:F.length))for(O.hasPart=[],K=_.Z(f.problemDescriptions),q=K.next();!q.done;q=K.next())c=q.value,q=c.problemDescriptionText,F=c.startOffset,c=c.url,q&&F!==void 0&&c&&O.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:q,text:q,startOffset:F,url:c})}return O};
_.Q9X=function(f){return _.OP({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:f}})};
Xg5=[[["bWFyeSN5MTJ2OHNvbG5wYW9wcmk=",null],[null,["ZXN1bHRzLXJlbmRlcmVyIzk5NXJrM3Y4aTZ5eXRkLXR3by1jb2x1bW4tYnJvd3NlLXI=","NGZtNHBzdHlsZS1zY29wZSNuaXh6eGtq"]],["MHlyYm5nZ3ltYXN0aGVhZC1hZCM5dWY=",["Y3E3YXVqb3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjZ2JiMW0="]],[null,["ODZqZHE5NHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjYnFxZXM=","YWZnZWhzdHlsZS1zY29wZSNqOXl5Yjhp"]],[null,["Zml5eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNvMXo5a29yeA==","dGtmOGlzdHlsZS1zY29wZSMzdzFoZjNk"]],[null,["eDgxeW5zbnFxNnZ5dGQtYWQtc2xvdC1yZW5kZXJlciNi"]]],[["Nnl0b3hkZzNwbGF5ZXItYWRzI212ems=",
null]]];fPz="#";KXt=[];kmS=!1;_.WX5=["engagement-panel-ads"];E69=new _.Y("updateSentimentBarStateCommand");_.t95=new _.Y("showSurveyCommand");_.Su=new _.Y("changeMarkersVisibilityCommand");var yYe,dQt,pgw,bP2,LXN,$t;_.CTh=function(f,R){this.playerProvider_=f;this.actionSenderElement_=R;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.CTh.prototype.reset=function(){yYe(this);this.isUserPredictedAbsent_=!1};
yYe=function(f,R){!f.youThereData_||f.showWarningJob_||R!==void 0&&R||(_.gM("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.z4(),f.youThereData_,f.clientPlaybackNonce_),_.zL());_.JA.cancelJob(f.showWarningJob_);f.showWarningJob_=0;_.JA.cancelJob(f.showBlockingWarningJob_);f.showBlockingWarningJob_=0;_.JA.cancelJob(f.pausePlaybackJob_);f.pausePlaybackJob_=0;f.youThereData_=null;f.clientPlaybackNonce_=void 0;f.inYouThereFlow_=!1};
_.NsX=function(f,R){var u,O,c;_.k(function(h){if(h.nextAddress==1)return f.reset(),_.A(h,f.playerProvider_().getPlayerPromise(),2);u=h.yieldResult;f.clientPlaybackNonce_=u.getVideoData().cpn;f.youThereData_=R.configData.youThereData;if(!f.youThereData_)return h.return();if(f.youThereData_.triggerReason&&f.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.whl())return _.gM("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.z4(),f.youThereData_,f.clientPlaybackNonce_),h.return();O=f.youThereData_.promptDelaySec;
c=u.getCurrentTime();f.showWarningJob_=_.JA.addLowPriorityJob(function(){return _.k(function(l){f.showWarningJob_=0;return _.A(l,dQt(f),0)})},Math.max(O-c,0)*1E3);
_.KG(h)})};
dQt=function(f){var R,u,O,c,h,l;return _.k(function(K){if(K.nextAddress==1)return _.A(K,f.playerProvider_().getPlayerPromise(),2);if(K.nextAddress!=3)return R=K.yieldResult,u=R.getCurrentTime(),_.A(K,LXN(f),3);O=K.yieldResult;if(!O||!f.youThereData_)return K.return();if(_.E("check_user_lact_at_prompt_shown_time_on_web")&&(c=parseInt(f.youThereData_.lactThresholdMs,10),_.OW()<c))return _.gM("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.z4(),f.youThereData_,f.clientPlaybackNonce_),K.return();if(f.youThereData_.playbackPauseDelayMs<=
0)return bP2(f),K.return();!_.E("external_fullscreen")&&(h=_.iE())&&(f.ignoreFullscreenExitUserActivity_=!0,_.JA.addLowPriorityJob(function(){f.ignoreFullscreenExitUserActivity_=!1},2E3),_.ru(h));
f.youThereData_.showToastWarningPrompt&&($t(f,f.youThereData_.showWarningActions),f.inYouThereFlow_=!0,_.gM("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.z4(),f.youThereData_,f.clientPlaybackNonce_,u),_.gM("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.z4(),f.youThereData_,f.clientPlaybackNonce_,u));l=0;f.youThereData_.blockingPromptDelayMs&&(l=f.youThereData_.blockingPromptDelayMs);f.showBlockingWarningJob_=_.JA.addLowPriorityJob(function(){return _.k(function(q){f.showBlockingWarningJob_=0;return _.A(q,
pgw(f),0)})},l);
_.KG(K)})};
pgw=function(f){var R,u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,LXN(f),2);R=c.yieldResult;if(!f.youThereData_)return c.return();R&&(f.youThereData_.showBlockingWarningAction&&(_.gM("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.z4(),f.youThereData_,f.clientPlaybackNonce_),(u=_.t(f.youThereData_.showBlockingWarningAction,_.kE))?$t(f,u.commands):$t(f,[f.youThereData_.showBlockingWarningAction]),f.inYouThereFlow_=!0),O=f.youThereData_.playbackPauseDelayMs,f.pausePlaybackJob_=
_.JA.addLowPriorityJob(function(){return _.k(function(h){f.pausePlaybackJob_=0;return _.A(h,bP2(f),0)})},O));
_.KG(c)})};
bP2=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,LXN(f),2);R=u.yieldResult;if(!f.youThereData_)return u.return();R&&(_.gM("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.z4(),f.youThereData_,f.clientPlaybackNonce_),$t(f,f.youThereData_.showPausedActions),f.inYouThereFlow_=!0);_.KG(u)})};
_.CTh.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var f=_.t(this.youThereData_.userActiveDuringFlowAction,_.kE);f?$t(this,f.commands):$t(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.gM("YOU_THERE_EVENT_TYPE_LACT_RESET",_.z4(),this.youThereData_,this.clientPlaybackNonce_),_.zL());yYe(this,!0)}_.j9w(this,!1)};
_.DQz=function(f){_.gM("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.z4(),f.youThereData_,f.clientPlaybackNonce_)};
LXN=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.playerProvider_().getPlayerPromise(),2);R=O.yieldResult;u=R.getPlayerState();return O.return(u==-1||u==1||u==3)})};
_.j9w=function(f,R){var u;_.k(function(O){if(O.nextAddress==1){if(f.isUserPredictedAbsent_==R)return O.jumpTo(0);f.isUserPredictedAbsent_=R;return _.A(O,f.playerProvider_().getPlayerPromise(),3)}u=O.yieldResult;u.setUserEngagement(R);R&&_.gM("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.z4(),f.youThereData_,f.clientPlaybackNonce_);_.KG(O)})};
$t=function(f,R){if(_.E("handle_service_request_actions")||_.E("kevlar_youthere_service_endpoint_actions_killswitch"))_.ZW(f.actionSenderElement_,R,f.actionSenderElement_);else{R=_.Z(R);for(var u=R.next();!u.done;u=R.next())u=u.value,u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.sendPost?_.hH(f.actionSenderElement_,[u]):_.ZW(f.actionSenderElement_,[u],f.actionSenderElement_)}};var JYX;var z2z;var gk=function(){var f=_.U.apply(this,arguments)||this;f.systemIcons=_.E("kevlar_system_icons");f.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return f};
_.y(gk,_.U);gk.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var f=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(f=this.data.percentIfLiked||0,this.activated=!0):(f=this.data.percentIfIndifferent||0,this.activated=!1);_.b(this.hostElement).querySelector("#like-bar").style.width=f+"%"}};
gk.prototype.handleUpdateSentimentBarStateCommand=function(f){this.data&&this.set("data.likeStatus",_.t(f,E69).likeStatus)};
gk.prototype.observeLikeStatus=gk.prototype.observeLikeStatus;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],gk.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gk.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],gk.prototype,"activated",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],gk.prototype,"systemIcons",void 0);_.B([_.qM("data.likeStatus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gk.prototype,"observeLikeStatus",null);gk=_.B([_.e({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],gk);
_.G(gk,"ytd-sentiment-bar-renderer",function(){if(z2z!==void 0)return z2z;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return z2z=f},{mode:1});var Tsm;var sa=function(){var f=_.U.apply(this,arguments)||this;f.small=!0;return f};
_.y(sa,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sa.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],sa.prototype,"small",void 0);sa=_.B([_.e({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],sa);
_.G(sa,"ytd-video-view-count-renderer",function(){if(Tsm!==void 0)return Tsm;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Tsm=f},{mode:_.c7("kevlar_poly_si_batch_j080")?1:2});var nZ=function(){var f=_.U.apply(this,arguments)||this;f.infoFormattedStrings=[];f.wrapVideoActions=_.E("kevar_watch_wrap_video_actions");f.hideSentimentBar=_.E("kevlar_watch_hide_sentiment_bar");f.actionMap={};return f};
_.y(nZ,_.U);_.X=nZ.prototype;_.X.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.X.dataChanged=function(){_.E("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.X.computeInfoFormattedStrings=function(f){if(!f)return[];var R=[];f.dateText&&R.push(f.dateText);f.stationName&&R.push(f.stationName);f.rating&&R.push(f.rating);f.startEndTimeTemplate&&f.startTimeUtcMillis&&f.endTimeUtcMillis&&R.push(_.S8(_.tsz(_.$Z(f.startEndTimeTemplate),Number(f.startTimeUtcMillis),Number(f.endTimeUtcMillis))));f.upNextProgramText&&R.push(f.upNextProgramText);return R};
_.X.scheduleInitialUpdatedMetadataRequest=function(){var f,R=(f=this.data)==null?void 0:f.updatedMetadataEndpoint;if(R){var u;f=Number((u=_.t(R,_.FJE))==null?void 0:u.initialDelayMs);u=isNaN(f)?250:f;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),u)}};
_.X.setSentimentBarWidth=function(){var f=this;_.su(this,function(){var R=_.b(f.hostElement).querySelector("ytd-menu-renderer");if(R){R=R.topLevelButtons;for(var u=0,O=0;O<R.length;O++){var c=R[O],h=f.get("toggleButtonSupportedData.toggleButtonIdData.id",c.data);if(h==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||h==="TOGGLE_BUTTON_ID_TYPE_LIKE")u+=c.clientWidth+8;else break}u&&(f.sentiment.style.width=u-8+" px")}})};
_.X.fetchUpdatedMetadata=function(f){var R;f&&(R={continuation:f});var u;(f=(u=this.data)==null?void 0:u.updatedMetadataEndpoint)&&_.vh().resolve(_.rv).resolveCommand(f,{form:Object.assign({},R,{element:this.hostElement})})};
_.X.onYtServiceRequestSent=function(f,R){R.endpoint&&_.t(R.endpoint,_.GB)&&(this.hasUpdateSentimentBarStateCommands()&&!_.E("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.t(R.endpoint,_.GB).status),this.setSentimentBarWidth())};
_.X.hasUpdateSentimentBarStateCommands=function(){var f,R,u,O,c=(O=(f=this.data)==null?void 0:(R=f.videoActions)==null?void 0:(u=R.menuRenderer)==null?void 0:u.topLevelButtons)!=null?O:[];f=_.Z(c);for(R=f.next();!R.done;R=f.next()){R=R.value;c=O=u=void 0;var h=(u=R.toggleButtonRenderer)==null?void 0:(O=u.toggleButtonSupportedData)==null?void 0:(c=O.toggleButtonIdData)==null?void 0:c.id;if(h==="TOGGLE_BUTTON_ID_TYPE_LIKE"||h==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){O=u=void 0;R=(O=_.t((u=R.toggleButtonRenderer)==
null?void 0:u.defaultServiceEndpoint,_.kE))==null?void 0:O.commands;if(!R)break;R=_.Z(R);for(u=R.next();!u.done;u=R.next())if(_.t(u.value,E69))return!0}}return!1};
_.X.onYtServiceRequestCompleted=function(f,R){var u;(f=(u=R.data)==null?void 0:u.loggingDirectives)&&_.bw7(_.wR(),f);this.get("continuation.timedContinuationData",R.data)&&this.data&&this.data.updatedMetadataEndpoint&&(R=R.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,R.continuation),R.timeoutMs))};
_.X.computeHasDateText=function(f){return!!f&&!!f.dateText};
_.Vy.Object.defineProperties(nZ.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return!((O=(f=this.data)==null?void 0:(R=f.videoActions)==null?void 0:(u=R.menuRenderer)==null?void 0:u.flexibleItems)==null||!O.length)}}});
nZ.prototype.onYtServiceRequestCompleted=nZ.prototype.onYtServiceRequestCompleted;nZ.prototype.onYtServiceRequestSent=nZ.prototype.onYtServiceRequestSent;nZ.prototype.dataChanged=nZ.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],nZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.V3.YtTaskEmitterBehavior),_.S("design:type",Object)],nZ.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nZ.prototype,"data",void 0);_.B([_.I({computed:"computeInfoFormattedStrings(data)"}),_.S("design:type",Array)],nZ.prototype,"infoFormattedStrings",void 0);
_.B([_.I({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],nZ.prototype,"hasDateText",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],nZ.prototype,"wrapVideoActions",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],nZ.prototype,"hideSentimentBar",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],nZ.prototype,"flexMenuEnabled",null);
_.B([_.a4("#sentiment"),_.S("design:type",Object)],nZ.prototype,"sentiment",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nZ.prototype,"dataChanged",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],nZ.prototype,"onYtServiceRequestSent",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],nZ.prototype,"onYtServiceRequestCompleted",null);
_.G(nZ,"ytd-video-primary-info-renderer",function(){if(JYX===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);JYX=f}f=JYX;return f},{mode:1});var HPX;var V8=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return f};
_.y(V8,_.U);_.X=V8.prototype;_.X.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"}}}};
_.X.dataChanged=function(){var f;this.descriptionToggled=!((f=this.data)==null||!f.defaultExpanded);var R;this.collapsed=this.descriptionAlwaysCollapsed||!((R=this.data)==null?0:R.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.dx(110509);this.showLessClientVe=_.dx(110510);f=_.z4();R=_.Jj();f&&R&&_.GT(f,R,[this.showMoreClientVe,this.showLessClientVe])};
_.X.onYtExpanderMoreTapped=function(){var f,R=(f=this.data)==null?void 0:f.showMoreCommand;R&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(R);(f=_.z4())&&this.showMoreClientVe&&_.Sa(f,this.showMoreClientVe)};
_.X.onYtExpanderLessTapped=function(){var f=_.z4();f&&this.showLessClientVe&&_.Sa(f,this.showLessClientVe);var R;(f=(R=this.data)==null?void 0:R.showLessCommand)&&this.componentBehavior.resolveCommand(f)};
_.X.handleUpdateDateTextAction=function(f){this.data&&this.data.dateText&&this.set("data.dateText",_.t(f,_.Vf9).dateText)};
_.X.handleUpdateDescriptionAction=function(f){if(f=_.t(f,_.XYi))f.isEmpty||!f.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Dz(f.description)):this.set("data.description",f.description)};
_.X.onYtChangeEngagementPanelVisibilityAction=function(f){if(_.E("web_structured_description_show_more")||_.E("web_engagement_panel_open_description")){var R,u=(R=_.t(f,_.njk))==null?void 0:R.targetId,O;f=((O=_.t(f,_.njk))==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";u==="engagement-panel-structured-description"&&f&&(this.descriptionToggled=!0)}};
_.X.updateCollapsedFromBinding=function(f){this.collapsed=f.detail.value};
_.X.updateDescriptionToggledFromBinding=function(f){this.descriptionToggled=f.detail.value};
_.X.updateCanCollapseFromBinding=function(f){this.canCollapse=f.detail.value};
_.Vy.Object.defineProperties(V8.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.data)==null?void 0:(R=f.metadataRowContainer)==null?void 0:R.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 f;return!((f=this.data)==null||!f.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}}});
V8.prototype.onYtExpanderLessTapped=V8.prototype.onYtExpanderLessTapped;V8.prototype.onYtExpanderMoreTapped=V8.prototype.onYtExpanderMoreTapped;V8.prototype.dataChanged=V8.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],V8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],V8.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],V8.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],V8.prototype,"collapsed",void 0);_.B([_.I(),_.S("design:type",Boolean)],V8.prototype,"descriptionToggled",void 0);
_.B([_.I(),_.S("design:type",Boolean)],V8.prototype,"canCollapse",void 0);_.B([_.I(),_.S("design:type",Object)],V8.prototype,"subscribeButtonData",void 0);_.B([_.I(),_.S("design:type",Number)],V8.prototype,"descriptionCollapsedHeight",void 0);_.B([_.I(),_.S("design:type",Object)],V8.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.I({value:function(){return _.E("web_watch_description_always_collapsed")}}),
_.S("design:type",Boolean)],V8.prototype,"descriptionAlwaysCollapsed",void 0);_.B([_.a4("#description"),_.S("design:type",HTMLDivElement)],V8.prototype,"description",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V8.prototype,"dataChanged",null);_.B([_.Kf("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V8.prototype,"onYtExpanderMoreTapped",null);
_.B([_.Kf("yt-expander-less-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V8.prototype,"onYtExpanderLessTapped",null);_.B([_.T("data.metadataRowContainer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],V8.prototype,"metadataCollapsible",null);_.B([_.T("data","structuredDescriptionContentRenderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],V8.prototype,"hasInlineStructuredDescription",null);
_.B([_.T("data.attributedDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],V8.prototype,"hasAttributedDescription",null);_.B([_.T("hasInlineStructuredDescription","collapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],V8.prototype,"loadStructuredDescription",null);_.B([_.T("data","structuredDescriptionContentRenderer","collapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],V8.prototype,"showInlineStructuredDescription",null);
_.B([_.T("data","hasInlineStructuredDescription","metadataCollapsible"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],V8.prototype,"descriptionAlwaysCollapsible",null);
_.G(V8,"ytd-video-secondary-info-renderer",function(){if(HPX===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);HPX=f}f=HPX;return f},{mode:2});var IPm;var Yt=function(){return _.U.apply(this,arguments)||this};
_.y(Yt,_.U);Yt.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:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Yt.prototype.activate=function(f){f.appendTo(this.player);f.getPlayerPromise().then(function(R){R.setMinimized(!0)});
this.active=!0};
Yt.prototype.deactivate=function(){var f=this.player.firstElementChild;f.getPlayerPromise().then(function(R){R.setMinimized(!1)});
this.active=!1;return f};
Yt.prototype.onScrollUpTap=function(){var f=_.vh().resolve(_.sz).getCurrentPage();f&&f.setScrollTop(0)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Yt.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Yt.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Yt.prototype,"active",void 0);
_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.S("design:type",Boolean)],Yt.prototype,"darkLaunch",void 0);_.B([_.a4("#player"),_.S("design:type",HTMLDivElement)],Yt.prototype,"player",void 0);Yt=_.B([_.e({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Yt);
_.G(Yt,"ytd-miniplayer-bar-renderer",function(){if(IPm!==void 0)return IPm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return IPm=f},{mode:1});_.ii(_.nf(function(f){var R=_.sW();_.pc(function(){var u;if(u=JSON)u=mQ2(f.data()),u=_.Ia(JSON.stringify(u).replace(/</g,"\\u003C"));var O=f.data(),c=_.$Z(O.title).trim().length===0,h=!O.publishDate||O.publishDate.trim().length===0,l,K,q,F,w=!((l=O.thumbnail)==null?0:(K=l.thumbnails)==null?0:K.length)||!((q=O.thumbnail)==null?0:q.thumbnails[0].url)||((F=O.thumbnail)==null?void 0:F.thumbnails[0].url.trim().length)===0;R.value&&u&&!(c||h||w)&&_.Pz(R.value,u)});
return _.a("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.a("script",{el:R,type:"application/ld+json"}))},"oj"),"player-microformat-renderer",{props:{data:_.v7}});
}catch(e){_._DumpException(e)}
try{
var VRS;_.xyw=function(f){return f.watch.watchWindowSize};
_.S_t=function(f){return _.OP({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:f}})};
VRS=function(f){_.d9.call(this);var R=this;this.JSC$20421_watchApi=f;f=_.aC(_.sP(),_.sc2,function(){$y2(R)});
this.addOnDisposeCallback(f);f=_.aC(_.sP(),_.xyw,function(){$y2(R)});
this.addOnDisposeCallback(f);go5(this);sNt(this);noN()};
_.y(VRS,_.d9);var go5=function(f){var R=function(O){_.sP().dispatch(_.Frz(O.matches))},u=window.matchMedia("(max-width: "+(999+_.pw())+"px)");
u.addListener(R);f.addOnDisposeCallback(function(){u.removeListener(R)});
R(u)},sNt=function(f){f.JSC$20421_watchApi.registerActionHandler("yt-window-resized",function(){noN()});
f.addOnDisposeCallback(function(){f.JSC$20421_watchApi.unregisterActionHandler("yt-window-resized")})},noN=function(){var f=_.WL();
_.sP().dispatch(_.OP({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:f.width,height:f.height}}}))},$y2=function(f){var R;
_.k(function(u){if(u.nextAddress==1)return _.A(u,f.JSC$20421_watchApi.playerApi,2);R=u.yieldResult;R.setSize(NaN,NaN);_.KG(u)})};_.eu=function(f){_.n4.call(this);var R=this;this.rootElement=f;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return R.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){R.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.y(_.eu,_.n4);_.X=_.eu.prototype;_.X.getRoot=function(){return this.rootElement};
_.X.getElement=function(f){return this.rootElement.getElement(f)};
_.X.setPlayerResponse=function(f){this.playerResponse=f;this.publish("PLAYER_RESPONSE_UPDATED",f)};
_.X.getPlayerResponse=function(){return this.playerResponse};
_.X.setWatchNextResponse=function(f){this.watchNextResponse===f?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=f,this.publish("WATCH_NEXT_RESPONSE_UPDATED",f))};
_.X.getWatchNextResponse=function(){return this.watchNextResponse};
_.X.registerActionHandler=function(f,R){var u=this;if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var O={};_.SV(_.xN.getInstance(),(O[f]=R,O),this.getRoot())}else this.actionHandlers.has(f)||(this.actionHandlers.set(f,[]),O={},_.SV(_.xN.getInstance(),(O[f]=function(){var c=_.yK.apply(0,arguments);return(u.actionHandlers.get(f)||[]).map(function(h){return h.apply(null,_.yq(c))})},O),this.getRoot())),this.actionHandlers.get(f).push(R)};
_.X.unregisterActionHandler=function(f){if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.$N(_.xN.getInstance(),(R[f]=!0,R),this.getRoot())}else(R=this.actionHandlers.get(f))?(R.pop(),R.length===0&&(R={},_.$N(_.xN.getInstance(),(R[f]=!0,R),this.getRoot()),this.actionHandlers.delete(f))):_.Ih(new _.ts("Attempted to unregister an action handler which is not registered.",f))};
_.X.addPageDisposeJob=function(f){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.se(this.rootElement.pageDisposeJobs,f)};
_.X.removePageDisposeJob=function(f){this.rootElement.pageDisposeJobs&&_.v0(this.rootElement.pageDisposeJobs,f)};
_.X.dispatchEvent=function(f,R){_.ul(this.rootElement,f,R)};
_.X.provideRenderingData=function(f,R){this.rootElement.provideRenderingData(f,R)};
_.X.scrollWatchTo=function(f,R){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(f,R)};
_.X.focusOnPlayer=function(){var f=this.getElement("PLAYER");_.su(f,function(){if(f&&f.firstElementChild){var R=f.querySelector(".html5-video-player");R&&(_.Yi(_.vh().resolve(_.LL)),R.focus())}else _.Ih(Error("jm"))})};
_.X.updateCinematicFullscreenConfig=function(){var f=!!this.rootElement.theater,R=!!this.rootElement.fullscreen,u;(u=this.watchCinematicManager)==null||_.xnS(u,R,f)};
_.X.subscribeToActiveChanged=function(f,R){R=R===void 0?!0:R;var u=_.aC(_.sP(),_.CJ9,function(O){f(O)});
R&&f(_.CJ9(_.sP().getState()));return u};
_.X.isActive=function(){return _.CJ9(_.sP().getState())};
_.X.onAttached=function(){var f=_.E("external_fullscreen");_.E("use_unified_flag_accessor")&&(f=_.vh().resolve(_.ynN).retriever.getFlag(_.Dck));(f||_.Hh("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Y_N=function(f){return f.getRoot().is==="ytd-watch-flexy"||f.getRoot().is==="ytd-watch-grid"},G1=function(f){return f.getRoot().is==="ytd-watch-fixie"};
_.eu.prototype.initPersistentModules=function(){if(G1(this)||Y_N(this)&&_.E("kevlar_watch_flexy_theater_manager")){var f=new _.Qqz(this);_.qG(this,f)}f=new _.uFm(this);_.qG(this,f);f=new _.ju(this);_.qG(this,f);f=new _.Ml(this);_.qG(this,f);f=new _.Jwa(this);_.qG(this,f);f=new _.JJ(this);_.qG(this,f);if(G1(this)||Y_N(this)&&_.E("kevlar_watch_flexy_playlist_manager"))f=new _.H$5(this),_.qG(this,f)};
_.eu.prototype.initOrDisposeActiveModules=function(f){f?(this.watchScrollManager=new _.Ua(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.myz(this)),this.activeModules.push(new _.tet(this)),G1(this)&&this.activeModules.push(new VRS(this)),this.activeModules.push(new _.Gym(this)),this.activeModules.push(new _.P6(this)),(G1(this)||_.E("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.N8t(this)),this.activeModules.push(new _.yw2(this)),
(G1(this)||_.E("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.ooK(this)),(G1(this)||_.E("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Ho2(this)),_.E("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.e6a(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.E("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.b$w(this)),_.E("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.fbh(this)),
f=_.E("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.E("kevlar_watch_flexy_comments_manager")&&!f&&this.activeModules.push(new _.VBS(this)),_.E("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Dr(this)),this.activeModules.push(new _.LRm(this)),this.activeModules.push(new _.Wjt(this)),_.E("web_enable_timely_actions")&&this.activeModules.push(new _.Dnz(this)),_.E("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.v4K(this)),
_.E("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.o42(this)),_.E("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.jQX(this)),_.E("web_player_rtr_ctrls")&&this.activeModules.push(new _.rQl(this))):(_.vK(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.eu.prototype.disposeInternal=function(){_.n4.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Vy.Object.defineProperties(_.eu.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var QcX,Ny,WKh,EL5,CMK,yzX,tSm,d3S;QcX=function(){var f=_.EJ();f.info||(f.info={});return f.info};
Ny=function(f){return Math.round(_.Cv()+f)};
WKh=function(){var f;if(_.E("csi_use_performance_navigation_timing")){var R,u,O,c=_.tH==null?void 0:(f=_.tH.getEntriesByType)==null?void 0:(R=f.call(_.tH,"navigation"))==null?void 0:(u=R[0])==null?void 0:(O=u.toJSON)==null?void 0:O.call(u);c?(c.requestStart=Ny(c.requestStart),c.responseEnd=Ny(c.responseEnd),c.redirectStart=Ny(c.redirectStart),c.redirectEnd=Ny(c.redirectEnd),c.domainLookupEnd=Ny(c.domainLookupEnd),c.connectStart=Ny(c.connectStart),c.connectEnd=Ny(c.connectEnd),c.responseStart=Ny(c.responseStart),
c.secureConnectionStart=Ny(c.secureConnectionStart),c.domainLookupStart=Ny(c.domainLookupStart),c.isPerformanceNavigationTiming=!0,f=c):f=_.tH.timing}else f=_.E("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.tH.timing)):_.tH.timing;return f};
EL5=function(){if(_.tH.getEntriesByType){var f=_.tH.getEntriesByType("paint");if(f=_.et(f,function(u){return u.name==="first-paint"}))return Ny(f.startTime)}var R;
_.E("csi_use_performance_navigation_timing")?R=_.tH.getEntriesByType("first-paint")[0].startTime:R=_.tH.timing.msFirstPaint;return R?Math.max(0,R):0};
CMK=function(){var f=window.location.protocol,R=_.tH.getEntriesByType("resource");R=_.Rt(R,function(u){return u.name.indexOf(f+"//fonts.gstatic.com/s/")===0});
(R=tSm(R,function(u,O){return O.duration>u.duration?O:u}))&&R.startTime>0&&R.responseEnd>0&&(_.N5("wffs",Ny(R.startTime)),_.N5("wffe",Ny(R.responseEnd)))};
yzX=function(f,R){f=document.querySelector(f);if(!f)return!1;var u="",O=f.nodeName;O==="SCRIPT"?(u=f.src,u||(u=f.getAttribute("data-timing-href"))&&(u=window.location.protocol+u)):O==="LINK"&&(u=f.href);_.Td(document)&&f.setAttribute("nonce",_.Td(document));return u?(f=_.tH.getEntriesByName(u))&&f[0]&&(f=f[0],u=_.Cv(),_.N5("rsf_"+R,u+Math.round(f.fetchStart)),_.N5("rse_"+R,u+Math.round(f.responseEnd)),f.transferSize!==void 0&&f.transferSize===0)?!0:!1:!1};
_.L$=function(f,R){_.MW(function(){_.jn7("").info.actionType=f;R&&_.zf("TIMING_AFT_KEYS",R);_.zf("TIMING_ACTION",f);var u=_.$2n(_.Tf("TIMING_INFO",{}));Object.keys(u).length>0&&_.Lv(u);u={isNavigation:!0,actionType:_.zot(_.Tf("TIMING_ACTION"))};var O=_.Tf("PREVIOUS_ACTION");O&&(u.previousAction=_.zot(O));if(O=_.Tf("CLIENT_PROTOCOL"))u.httpProtocol=O;if(O=_.Tf("CLIENT_TRANSPORT"))u.transportProtocol=O;(O=_.z4())&&O!=="UNDEFINED_CSN"&&(u.clientScreenNonce=O);O=_.SVD();if(O===1||O===-1)u.isVisible=!0;
O=_.Cz0().loadType==="cold";var c=QcX();O||(O=c.yt_lt==="cold");if(O){u.loadType="cold";O=QcX();c=WKh();var h=_.Cv(),l=_.Tf("CSI_START_TIMESTAMP_MILLIS",0);l>0&&!_.E("embeds_web_enable_csi_start_override_killswitch")&&(h=l);h&&(_.N5("srt",c.responseStart),O.prerender!==1&&_.PzP(h));O=EL5();O>0&&_.N5("fpt",O);O=WKh();O.isPerformanceNavigationTiming&&_.Lv({performanceNavigationTiming:!0},void 0);_.N5("nreqs",O.requestStart,void 0);_.N5("nress",O.responseStart,void 0);_.N5("nrese",O.responseEnd,void 0);
O.redirectEnd-O.redirectStart>0&&(_.N5("nrs",O.redirectStart,void 0),_.N5("nre",O.redirectEnd,void 0));O.domainLookupEnd-O.domainLookupStart>0&&(_.N5("ndnss",O.domainLookupStart,void 0),_.N5("ndnse",O.domainLookupEnd,void 0));O.connectEnd-O.connectStart>0&&(_.N5("ntcps",O.connectStart,void 0),_.N5("ntcpe",O.connectEnd,void 0));O.secureConnectionStart>=_.Cv()&&O.connectEnd-O.secureConnectionStart>0&&(_.N5("nstcps",O.secureConnectionStart,void 0),_.N5("ntcpe",O.connectEnd,void 0));_.tH&&"getEntriesByType"in
_.tH&&CMK();O=[];if(document.querySelector&&_.tH&&_.tH.getEntriesByName)for(var K in d3S)d3S.hasOwnProperty(K)&&(c=d3S[K],yzX(K,c)&&O.push(c));if(O.length>0)for(u.resourceInfo=[],K=_.Z(O),O=K.next();!O.done;O=K.next())u.resourceInfo.push({resourceCache:O.value})}_.Lv(u);u=_.d2n();u.preLoggedGelInfos||(u.preLoggedGelInfos=[]);K=u.preLoggedGelInfos;u=_.Nw2();O=void 0;for(c=0;c<K.length;c++)if(h=K[c],h.loadType){O=h.loadType;break}if(_.Cz0().loadType==="cold"&&(u.loadType==="cold"||O==="cold")){O=_.y_7();
c=_.d2n();c=c.gelTicks?c.gelTicks:c.gelTicks={};for(var q in O)if(!(q in c))if(typeof O[q]==="number")_.N5(q,_.bl(q));else if(_.E("log_repeated_ytcsi_ticks"))for(h=_.Z(O[q]),l=h.next();!l.done;l=h.next())l=l.value,_.N5(q.slice(1),l);q={};O=!1;K=_.Z(K);for(c=K.next();!c.done;c=K.next())O=c.value,_.N4n(u,O),_.N4n(q,O),O=!0;O&&_.Lv(q)}_.sn7(!0);q=_.Tf("TIMING_ACTION");_.Ph("ytglobal.timingready_")&&q&&_.O5h()&&_.gve()&&_.ovh()})()};
tSm=function(f,R){return Array.prototype.reduce.call(f,R,{duration:0})};
d3S={'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 NKK={};NKK.YtVisibilityRootBehavior=[_.Zyl.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.YD(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Tf("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var f=_.Tf("INNERTUBE_CLIENT_NAME")!=="WEB";_.E("kevlar_use_vimio_behavior")&&f&&_.hVk()}}];_.bm={};_.bm.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(f){f.detail.contextProvider=this;f.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
NKK.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.BM();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(f){var R=this;this.pageCount+=1;_.E("kevlar_use_vimio_behavior")&&(_.Tf("INNERTUBE_CLIENT_NAME")==="WEB"?_.JA.addJob(function(){R.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(f)},
loadPage_:function(f){this.data=f},
ytPageBehaviorActiveObserver_:function(f){var R=this;_.E("kevlar_use_vimio_behavior")&&(f?_.Tf("INNERTUBE_CLIENT_NAME")==="WEB"?_.JA.addJob(function(){R.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(f){if(!this.setScrollTopJobId_){var R=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){R.setScrollTopJobId_=0;var u=_.vh().resolve(_.Y8(_.LL));u&&_.Yi(u);this.getPageScrollingElement().scrollTop=f}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Cp(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var m3h;var dT=function(){var f=_.U.apply(this,arguments)||this;f.playerListenerConfig=null;f.actionMap={"yt-show-watch-page-survey":"openSurvey"};return f};
_.y(dT,_.U);_.X=dT.prototype;_.X.dataChanged=function(){var f=this,R=_.Vm();R&&R.getPlayerPromise().then(function(O){f.maybeRemovePlayerListeners(O)});
var u=this.data&&this.data.survey;u&&((u=(u=u.singleOptionSurveyRenderer||u.checkboxSurveyRenderer||u.multiStageSurveyRenderer)&&u.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(R,u):this.openSurvey())};
_.X.triggerWatchPageSurvey=function(f,R){var u=this,O,c,h,l,K,q,F,w,m;return _.k(function(W){if(W.nextAddress==1)return f?_.A(W,f.getPlayerPromise(),2):W.return();u.player=W.yieldResult;if(!u.player)return W.return();O={};c=_.Z(R);for(h=c.next();!h.done;h=c.next())l=h.value,K=_.Z(u.createEventListenerPair(l)),q=K.next().value,F=K.next().value,w=q,m=F,w&&m&&(O[w]=m,u.ytPlayerListenerBehavior.listenToPlayerEvent(u.player,w,m));u.playerListenerConfig=O;_.KG(W)})};
_.X.createEventListenerPair=function(f){var R=f.playbackEventTrigger;return R?this.handlePlaybackTrigger(R):(f=f.watchTimeTrigger)?this.handleWatchTimeTrigger(f):[void 0,void 0]};
_.X.handleWatchTimeTrigger=function(f){var R=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var u=f.videoWatchFraction,O=f.watchTimeSec;return O&&u?["onVideoProgress",function(){R.player&&R.isWatchTimeConditionMet(R.player,u,O)&&R.showSurvey()}]:[void 0,
void 0]};
_.X.isWatchTimeConditionMet=function(f,R,u){var O=f.getProgressState(),c=O.current-this.lastKnownPlaybackPosition;c<5&&(this.accumulatedMediaTime+=c);this.lastKnownPlaybackPosition=O.current;O=Math.round(this.accumulatedMediaTime/O.duration*1E3)/1E3;return f.getPresentingPlayerType&&f.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>u||O>R)};
_.X.handlePlaybackTrigger=function(f){var R=this;f=f.playbackEvent;if(f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var u="onStateChange";var O=function(c){c===0&&R.showSurvey()}}else f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(u="onVideoProgress",O=function(c){R.player&&R.player.getPresentingPlayerType&&R.player.getPresentingPlayerType()===1&&c&&R.showSurvey()}):f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(u="onAdEnd",O=this.showSurvey);
return[u,O]};
_.X.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.X.openSurvey=function(){var f=this,R=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.BQh(!!R));_.JA.addJob(function(){f.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:R}})},0,0)};
_.X.maybeRemovePlayerListeners=function(f){if(this.playerListenerConfig){for(var R=_.Z(Object.keys(this.playerListenerConfig)),u=R.next();!u.done;u=R.next())u=u.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(f,u,this.playerListenerConfig[u]);this.playerListenerConfig=null}};
dT.prototype.dataChanged=dT.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],dT.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],dT.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],dT.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],dT.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dT.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],dT.prototype,"playerListenerConfig",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],dT.prototype,"lastKnownPlaybackPosition",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],dT.prototype,"accumulatedMediaTime",void 0);_.B([_.I(),_.S("design:type",Object)],dT.prototype,"player",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dT.prototype,"dataChanged",null);dT=_.B([_.e({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],dT);
_.G(dT,"ytd-survey-trigger-renderer",function(){if(m3h!==void 0)return m3h;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return m3h=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
var OXm=new _.Y("promotedSparklesWebRenderer");var cWS=new _.Y("relatedChipCommand");var XEX;var h$2;var mH=function(){return _.U.apply(this,arguments)||this};
_.y(mH,_.U);mH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mH.prototype,"data",void 0);mH=_.B([_.e({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],mH);
_.G(mH,"ytd-compact-tvfilm-entry-point-renderer",function(){if(h$2!==void 0)return h$2;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return h$2=f},{mode:1});var ZX5;var lym;var kV5;var QQ=function(){return _.U.apply(this,arguments)||this};
_.y(QQ,_.U);QQ.prototype.ready=function(){this.initializeDefs()};
QQ.prototype.initializeDefs=function(){var f=this.meta.byKey("yt-icons"),R=_.b(f).querySelector("#star"),u=_.b(f).querySelector("#star_half");f=_.b(f).querySelector("#star_border");R&&this.defs.appendChild(R.cloneNode(!0));u&&this.defs.appendChild(u.cloneNode(!0));f&&this.defs.appendChild(f.cloneNode(!0))};
QQ.prototype.percentChanged=function(){for(var f=this.rating;f.firstChild;)f.removeChild(f.firstChild);var R=Math.round(this.percent/10);f=Math.floor(R/2);R%=2;var u=5-f-R;this.appendStars("star",f,0);this.appendStars("star_half",R,f);this.appendStars("star_border",u,f+R)};
QQ.prototype.appendStars=function(f,R,u){for(var O=0;O<R;O++){var c=(18+this.spacing)*(O+u),h=document.createElementNS("http://www.w3.org/2000/svg","use");_.o3X(h,"#"+f);h.setAttribute("x",""+c);h.setAttribute("y","0");this.rating.appendChild(h)}};
QQ.prototype.percentChanged=QQ.prototype.percentChanged;_.B([_.a4("#defs"),_.S("design:type",HTMLElement)],QQ.prototype,"defs",void 0);_.B([_.a4("#rating"),_.S("design:type",HTMLElement)],QQ.prototype,"rating",void 0);_.B([_.I(),_.S("design:type",Number)],QQ.prototype,"percent",void 0);_.B([_.I({value:6}),_.S("design:type",Number)],QQ.prototype,"spacing",void 0);_.B([_.I({value:_.QJ.create("iron-meta",{type:"iconset"})}),_.S("design:type",_.Cu)],QQ.prototype,"meta",void 0);
_.B([_.qM("percent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QQ.prototype,"percentChanged",null);QQ=_.B([_.e({disableElementRegistration:!0,is:"ytd-ratings"})],QQ);
_.G(QQ,"ytd-ratings",function(){if(kV5!==void 0)return kV5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return kV5=f},{mode:1});var WN=function(){return _.U.apply(this,arguments)||this};
_.y(WN,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WN.prototype,"data",void 0);WN=_.B([_.e({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],WN);
_.G(WN,"ytd-offer-review-renderer",function(){if(lym!==void 0)return lym;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return lym=f},{mode:1});var Es=function(){var f=_.U.apply(this,arguments)||this;f.badges=[{textBadge:{label:_.S8("CC")}}];return f};
_.y(Es,_.U);_.X=Es.prototype;_.X.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.X.dataChanged=function(){var f=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(f&&f.commandMetadata&&_.t(f.commandMetadata,_.Ni)&&_.t(f.commandMetadata,_.Ni).fireAutomatically)_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}});else{var R;f&&((R=_.t(f,_.Ni))==null?0:R.fireAutomatically)&&_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})}};
_.X.isEmptyContent=function(f){return this.isStorefrontEntryPointEmpty(f)&&this.shouldHideOfferModule(f)};
_.X.isStorefrontEntryPointEmpty=function(f){return!f||!f.storefrontEntryPoint};
_.X.shouldHideOfferModule=function(f){return!!f.hideVideoDetails};
_.X.isOfferModuleNavigationInactive=function(f){return!f.navigationEndpoint&&!f.serviceEndpoint};
_.X.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Es.prototype.dataChanged=Es.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Es.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.S("design:type",Boolean)],Es.prototype,"hidden",void 0);
_.B([_.I(),_.S("design:type",Object)],Es.prototype,"badges",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Es.prototype,"dataChanged",null);Es=_.B([_.e({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Es);
_.G(Es,"ytd-movie-offer-module-renderer",function(){if(ZX5!==void 0)return ZX5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ZX5=f},{mode:1});var K7a;var tI=function(){return _.U.apply(this,arguments)||this};
_.y(tI,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],tI.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tI.prototype,"data",void 0);tI=_.B([_.e({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],tI);
_.G(tI,"ytd-media-masthead-renderer",function(){if(K7a!==void 0)return K7a;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return K7a=f},{mode:1});var q5e;_.ii(_.fhG,"course-metadata-view-model",{props:{data:_.v7,isOverlay:_.v7}});var C7=function(){var f=_.U.apply(this,arguments)||this;f.isMetadataVisible=!1;f.modernPanels=_.E("kevlar_watch_modern_panels");f.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return f};
_.y(C7,_.U);_.X=C7.prototype;
_.X.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"}}}}};
_.X.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.X.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.X.expanderChanged=function(){var f;if((f=this.data)==null?0:f.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.X.isExpandButtonToggled=function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.expandMetadataButton,_.Np))==null?void 0:R.isToggled};
_.X.onVisibilityButtonClick=function(){var f;if((f=this.data)==null?0:f.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.X.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
C7.prototype.expanderChanged=C7.prototype.expanderChanged;C7.prototype.dataChanged=C7.prototype.dataChanged;C7.prototype.descriptionChanged=C7.prototype.descriptionChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z([_.fq.YtActionHandlerBehavior]),_.S("design:type",Object)],C7.prototype,"actionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],C7.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],C7.prototype,"isMetadataVisible",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],C7.prototype,"modernPanels",void 0);_.B([_.a4("#expander"),_.S("design:type",Object)],C7.prototype,"expander",void 0);_.B([_.qM("data.description"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C7.prototype,"descriptionChanged",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C7.prototype,"dataChanged",null);_.B([_.qM("isMetadataVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C7.prototype,"expanderChanged",null);C7=_.B([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],C7);
_.G(C7,"ytd-tvfilm-offer-module-renderer",function(){if(q5e!==void 0)return q5e;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return q5e=f},{mode:2});var AW5;var yQ=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return f};
_.y(yQ,_.U);yQ.prototype.dataChanged=function(){this.hostElement.hidden=!1};
yQ.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
yQ.prototype.onThumbnailTap=function(f){this.data&&this.data.serviceEndpoint&&(_.vh().resolve(_.rv).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),f.stopPropagation())};
yQ.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
yQ.prototype.dataChanged=yQ.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yQ.prototype,"rendererBehaviors",void 0);_.B([_.z([_.fq.YtActionHandlerBehavior]),_.S("design:type",Object)],yQ.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yQ.prototype,"data",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yQ.prototype,"dataChanged",null);yQ=_.B([_.e({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],yQ);
_.G(yQ,"ytd-unlimited-offer-module-renderer",function(){if(AW5!==void 0)return AW5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return AW5=f},{mode:1});var ayt;var F7a;var dC=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return f};
_.y(dC,_.U);dC.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
dC.prototype.handleRelatedChipCommand=function(f){f=_.t(f,cWS);var R=f.contents;R?_.c_(this.hostElement,"yt-item-section-replace-action",[R,f.targetSectionIdentifier]):_.c_(this.hostElement,"yt-item-section-continuation-action",[f.continuationData,f.targetSectionIdentifier])};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],dC.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dC.prototype,"data",void 0);dC=_.B([_.DO({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],dC);
_.G(dC,"yt-related-chip-cloud-renderer",function(){if(F7a===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;ayt===void 0&&(ayt=document.createElement("template"));var O=ayt;u.call(R,O.content.cloneNode(!0),f.content.firstChild);F7a=f}f=F7a;return f},{mode:2});var NP=function(){var f=_.U.apply(this,arguments)||this;f.isTwoColumns=!0;f.hideOfferModules=!1;f.watchFeedBigThumbs=_.E("kevlar_watch_feed_big_thumbs");f.watchNextGridHideChips=_.E("kevlar_watch_grid_hide_chips");f.eligibleToSwitchToGrid=_.E("web_watch_eligible_to_switch_to_grid");f.disableShortsShelfHeightOverride=_.E("web_shorts_wn_shelf_ratio_tuning");f.isWatchNextGrid=!1;f.reuseComponents=!_.E("kevlar_watch_grid");f.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return f};
_.y(NP,_.U);_.X=NP.prototype;
_.X.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.E("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}}};
_.X.getItemsPath=function(){return"data.results"};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.X.created=function(){this.ytLazyListBehavior.initialCount=1};
_.X.ready=function(){_.ZO(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.X.resultsChanged=function(){if(this.data&&this.data.results){for(var f=this.data.results,R=null,u=null,O=0;O<f.length;O++)f[O].relatedChipCloudRenderer?R=f[O].relatedChipCloudRenderer:f[O].itemSectionRenderer&&(u=f[O].itemSectionRenderer);if(R&&u)for(this.set("data.continuations",[]),f=_.t(R.content,_.P0C).chips,R=0;R<f.length;R++)if(O=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",f[R]),O.loadCached||!O.contents){O.contents=u.contents;break}}};
_.X.dataChanged=function(){var f=this,R;if((R=this.data)!=null&&R.results&&this.hasAllowedInstreamAd(this.playerData)){if(R=this.data.results.filter(function(K){return!!K.promotedSparklesWebRenderer})){for(var u=0;u<R.length;u++){var O=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",R[u]);
if(O)for(var c=0;c<O.length;c++)O[c]&&O[c].baseUrl&&_.BR(O[c].baseUrl)}this.set("data.results",this.data.results.filter(function(K){return!K.promotedSparklesWebRenderer}))}if(R=this.data.results.filter(function(K){return!!f.getSparklesAd(K)})){R=_.Z(R);
for(c=R.next();!c.done;c=R.next())if(O=u=void 0,c=(u=this.getSparklesAd(c.value))==null?void 0:(O=u.errorCommand)==null?void 0:O.loggingUrls)for(u=_.Z(c),O=u.next();!O.done;O=u.next())(O=O.value)&&O.baseUrl&&_.BR(O.baseUrl);var h,l;this.set("data.results",(h=this.data)==null?void 0:(l=h.results)==null?void 0:l.filter(function(K){return!K.adSlotRenderer}))}}};
_.X.getSparklesAd=function(f){var R,u;f=_.t((R=f.adSlotRenderer)==null?void 0:(u=R.fulfillmentContent)==null?void 0:u.fulfilledLayout,_.uxk);return _.t(f==null?void 0:f.renderingContent,OXm)};
_.X.hasAllowedInstreamAd=function(f){f=this.get("adPlacements",f)||[];for(var R=0;R<f.length;R++){var u=this.get("adPlacementRenderer.config.adPlacementConfig",f[R]);if(u&&u.suppressDisplayAd)return!0}return!1};
_.X.computeHideUnlimitedOfferModule=function(f,R){return f&&f.offerModule&&R&&f.offerModule.unlimitedOfferModuleRenderer&&f.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(R)?!0:!1};
_.X.hideUnlimitedOfferModuleChanged=function(){var f=_.b(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");f&&(f.hidden=this.hideUnlimitedOfferModule)};
_.X.updateLockupContainerTypes=function(f){if(this.eligibleToSwitchToGrid){var R;(R=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||R.forEach(function(u){u.containerType=f})}};
_.X.computeHideTvfilmOfferModule=function(f,R){var u,O;return!!((f==null?0:(u=f.offerModule)==null?0:(O=u.tvfilmOfferModuleRenderer)==null?0:O.clientShouldSuppressIfCompanionAdDisplayed)&&R&&this.hasCompanionAds(R))};
_.X.hideTvfilmOfferModuleChanged=function(){var f=_.b(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");f&&(f.hidden=this.hideTvfilmOfferModule)};
_.X.hasCompanionAds=function(f){f=this.get("adPlacements",f)||[];for(var R=0;R<f.length;R++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",f[R]))return!0;var u=void 0,O=void 0,c=void 0;if(!_.E("web_watch_top_banner_companion_check_killswitch")&&((u=f[R])==null?0:(O=u.adPlacementRenderer)==null?0:(c=O.renderer)==null?0:c.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.X.hasSuppressedResults=function(f){return f==null?!0:f.filter(function(R){return!R.continuationItemRenderer&&!R.compactPromotedVideoRenderer&&!R.promotedSparklesWebRenderer}).length===0};
_.X.computeShowButton=function(f,R){return this.isWatchNextGrid?f:f||this.hasSuppressedResults(R)};
_.X.showButtonChanged=function(){if(this.isWatchNextGrid){var f=_.b(this.hostElement).querySelector("ytd-rich-grid-renderer");f&&this.showButton!==null&&(f.continuationShowButton=this.showButton)}else{f=_.b(this.hostElement).querySelector("yt-next-continuation");var R=_.b(this.hostElement).querySelector("ytd-continuation-item-renderer"),u=_.b(this.hostElement).querySelector("ytd-item-section-renderer");f&&(f.showButton=this.showButton);R&&(R.showButton=this.showButton);u&&(u.continuationShowButton=
this.showButton)}};
_.X.continuationTap=function(f){var R;if(((R=this.data)==null?void 0:R.continuations)!=null&&f.target.tagName==="TP-YT-PAPER-BUTTON")for(f=this.data.continuations,R=0;R<f.length;R++)f[R].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(f[R].nextContinuationData||{})};
_.X.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("shown-items-changed",this.shownItems))};
_.Vy.Object.defineProperties(NP.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.shownItems)==null||!f.some(function(R){return!!R.lockupViewModel||R.compactVideoRenderer}))}}});
NP.prototype.shownItemsChangedForBinding=NP.prototype.shownItemsChangedForBinding;NP.prototype.showButtonChanged=NP.prototype.showButtonChanged;NP.prototype.hideTvfilmOfferModuleChanged=NP.prototype.hideTvfilmOfferModuleChanged;NP.prototype.updateLockupContainerTypes=NP.prototype.updateLockupContainerTypes;NP.prototype.hideUnlimitedOfferModuleChanged=NP.prototype.hideUnlimitedOfferModuleChanged;NP.prototype.dataChanged=NP.prototype.dataChanged;NP.prototype.resultsChanged=NP.prototype.resultsChanged;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],NP.prototype,"ytLazyListBehavior",void 0);_.B([_.z(_.UH.YtNextContinuationBehavior),_.S("design:type",Object)],NP.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.z(_.Pp),_.S("design:type",Object)],NP.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],NP.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],NP.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],NP.prototype,"playerData",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],NP.prototype,"autoFill",void 0);_.B([_.I({value:60}),_.S("design:type",Number)],NP.prototype,"targetFramerate",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NP.prototype,"isTwoColumns",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NP.prototype,"hideOfferModules",void 0);_.B([_.I(),_.S("design:type",Object)],NP.prototype,"shownItems",void 0);_.B([_.I({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.S("design:type",Boolean)],NP.prototype,"hideUnlimitedOfferModule",void 0);
_.B([_.I({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.S("design:type",Boolean)],NP.prototype,"hideTvfilmOfferModule",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NP.prototype,"watchFeedBigThumbs",void 0);_.B([_.I(),_.S("design:type",Object)],NP.prototype,"watchNextGridHideChips",void 0);_.B([_.I(),_.S("design:type",Object)],NP.prototype,"eligibleToSwitchToGrid",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NP.prototype,"disableShortsShelfHeightOverride",void 0);_.B([_.I({selector:_.PJ,reflectToAttribute:!0}),_.S("design:type",Object)],NP.prototype,"isGridViewEnabled",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],NP.prototype,"showMoreButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NP.prototype,"isWatchNextGrid",void 0);
_.B([_.I({computed:"computeShowButton(showMoreButton, data.results)"}),_.S("design:type",Boolean)],NP.prototype,"showButton",void 0);_.B([_.QR("data.results.*"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NP.prototype,"resultsChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NP.prototype,"dataChanged",null);
_.B([_.qM("hideUnlimitedOfferModule"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NP.prototype,"hideUnlimitedOfferModuleChanged",null);_.B([_.T("isGridViewEnabled","containsLockups","data"),_.I({reflectToAttribute:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],NP.prototype,"lockupContainerType",null);
_.B([_.qM("lockupContainerType","data"),_.S("design:type",Function),_.S("design:paramtypes",[Number]),_.S("design:returntype")],NP.prototype,"updateLockupContainerTypes",null);_.B([_.qM("hideTvfilmOfferModule"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NP.prototype,"hideTvfilmOfferModuleChanged",null);_.B([_.qM("showButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NP.prototype,"showButtonChanged",null);
_.B([_.qM("shownItems"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NP.prototype,"shownItemsChangedForBinding",null);_.B([_.T("shownItems"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NP.prototype,"containsLockups",null);
_.G(NP,"ytd-watch-next-secondary-results-renderer",function(){if(XEX===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);XEX=f}f=XEX;return f},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.M9X={};
_.M9X.YtdWatchBehavior=[_.r.YtRendererBehavior,_.xi.YtPlayerListenerBehavior,_.rj.YtRendererstamperBehavior,_.fq.YtActionHandlerBehavior,_.bm.YtPageBehavior,_.aD.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Hh("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.E("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.E("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Hh("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.E("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 _.RV("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RV("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.E("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.E("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.E("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var f={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:_.Jz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Jz(["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"||_.E("swa_prov_panels_ks")?f.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(f.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},f.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return f},
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 f=this;this.watchController=void 0;this.pageDisposeJobs=[function(){f.showMetadataPlaceholder_()},
function(){_.E("web_watch_dont_clear_comments")||f.clearComments_()},
function(){f.clearPlayerAds_()},
function(){f.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.E("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.E("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.CTh(function(){return _.nL(f)},this.hostElement);
this.pageDisposeJobs.push(function(){f.youThereManager_.reset()});
_.E("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){f.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.OT;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;_.E("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));_.E("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ks(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(f){f&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:f}),f.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(f){_.E("kevlar_watch_flexy_theater_manager")&&(this.theater=f,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(f){!_.E("kevlar_watch_while_v2")&&!_.E("web_watch_pip")||f||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(f){this.active!==void 0&&(this.fullscreen=f,_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(f){this.active!==void 0&&(_.ul(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(f>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(f){this.initCsi_();this.updatePageData_(f)},
updatePageData_:function(f){var R=this;if(f)if(this.data===f){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=f;this.playlist&&_.ja({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.JH("nw");this.loading=!1;_.dJ(_.JA,function(){R.initDclkstatus_();var O,c=((O=R.player)==null?void 0:O.getVideoData().cpn)||"";_.ZPS(function(h,l){_.aKl(h,l,c)})})},
onPageLoadWithSameData_:function(){_.E("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 f=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!f);this.set("loadingData.playlistLoading",f&&f!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),f=this.watchNextSkeletonEl_.firstElementChild;f;)f.classList.remove("hidden"),f=f.nextElementSibling;if(_.E("kevlar_watch_frame0_loading_state")){var R,u,O;f=(R=this.loadingData)==null?void 0:(u=R.endpoint)==null?void 0:(O=u.watchEndpoint)==null?void 0:O.videoId;var c;f&&(c="https://i.ytimg.com/vi/"+f+"/frame0.jpg");_.b(this.hostElement).querySelector("#player").style.backgroundImage=c?"url("+c+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var f=_.b(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&f&&(f.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var R,u;(u=(R=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(R);var O,c;(c=(O=this.watchMetadata).resize)==null||c.call(O)}_.E("kevlar_watch_frame0_loading_state")&&(_.b(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(f){var R=_.b(this.hostElement).querySelector(f);R?_.fv(R,!1):_.Ih(new _.ts("Overscroll monitor not found for component: ",f))},
removeSplitScrollMouseTrap:function(f){var R=_.b(this.hostElement).querySelector(f);R?_.Rp(R):_.Ih(new _.ts("Disposal component for  overscroll monitoring not found: ",f))},
onLoadingChanged_:function(f){f?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(f){var R=this;f?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.JA.addLowPriorityJob(function(){R.onWindowResized_(_.WL(!0))})},
updateTheaterModeState_:function(f){if(!_.E("kevlar_watch_flexy_theater_manager")){f=f||this.fullWindowMode_;if(this.theater!==void 0||f)this.theater=f;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();f&&_.E9X()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var f=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.E("external_fullscreen")&&this.fullscreen&&(f=!0);f=f?_.b(this.hostElement).querySelector("#player-full-bleed-container"):_.b(this.hostElement).querySelector("#player-container-inner");var R=this.getPlayerContainer(),u=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip");R.parentElement!==f&&(u&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.nL(this).appendTo(f,
R),f.appendChild(_.b(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var f=this;return _.k(function(R){if(R.nextAddress==1)return _.A(R,_.vh().resolve(_.MS).deactivate(),2);f.updatePlayerLocation();_.KG(R)})},
updateCinematicsLocation:function(){var f=this.getElement("CINEMATICS");if(f){var R=this.getCinematicsLocationContainer();f.parentElement!==R&&R.appendChild(f);var u;(u=this.watchController)==null||u.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.b(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.b(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(f,R){var u=document.documentElement.hasAttribute("dark"),O=u&&_.E("web_cinematic_theater_mode"),c=u&&_.E("web_cinematic_fullscreen");u=!u&&this.cinematicLightTheme;return f&&O||R&&c||(R||f)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var f=this,R;(R=this.watchController)==null||R.setWatchNextResponse(this.data);_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.vh().resolve(_.Ji).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.E("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.JA.addLowPriorityJob(function(){_.c_(f.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.E("web_watch_start_chat_in_theater_mode")){var u,O,c;if((u=this.data)==null?0:(O=u.contents)==null?0:(c=O.twoColumnWatchNextResults)==null?0:c.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var h,l;((h=this.data)==null?0:(l=h.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(f){var R;(R=this.watchController)==null||R.setPlayerResponse(this.playerData);f&&f.playabilityStatus&&(R=this.isVideoPlayable_(f.playabilityStatus,this.getPlayerOverlays_(this.data)),f=this.isLiveStreamOffline_(f.playabilityStatus),R&&!f||_.su(this,function(){_.JH("pbu")}));
this.setPlayerAds_();_.c_(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(f,R){if((_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"))&&this.playerData&&R)return this.playerData.videoDetails},
watchPageActiveChanged_:function(f){_.sP().dispatch(_.S_t(this.active));f?this.activate_():this.deactivate_()},
attached:function(){var f=this;this.watchController=new _.eu(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);_.E("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var R=_.nL(this);_.E("kevlar_disable_prepare_player")||
R.preparePlayer();_.E("kevlar_watch_flexy_playlist_manager")||_.vh().resolve(_.Ji).setPlayer(R);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();R={"--ytd-watch-flexy-scrollbar-width":_.pw()+"px"};this.is==="ytd-watch-grid"&&(R["--ytd-watch-flexy-sidebar-width"]=_.c$m+"px",R["--ytd-watch-grid-horizontal-page-margins"]=_.I_+"px",R["--ytd-watch-grid-columns-top-margins"]=_.Rkt+"px",R["--ytd-watch-grid-min-player-height-medium"]="360px");!_.RV("kv_pl_mx_sz_ks")&&
_.RV("kevlar_watch_max_player_width")&&(R["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Xa2+"px");_.RV("kevlar_watch_flexy_metadata_height")&&(R["--ytd-watch-flexy-space-below-player"]=_.hkm+"px");this.safeUpdateStyles(R);_.E("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.kY(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return f.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.b(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var f=_.pw(),R=_.MP+f,u=R;this.fixedPanels&&(R+=_.c$m);var O=657+f;f=1327+f;_.b(this.hostElement).querySelector("#two-column-query").query="(min-width: "+R+"px)";_.b(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(O+"px), (min-height: 630px) and (min-width: ")+(R+"px) and (max-width: ")+(f+"px)");_.b(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(f+"px)");_.b(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+u+"px)"},
calculateCurrentPlayerSize_:function(){var f=_.b(this.hostElement).querySelector("#miniplayer-bar").firstChild,R=this.squeezeback&&!_.E("web_watch_squeezeback_player_size_killswitch");return f&&f.active||this.theater||_.E("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||R||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.K8(NaN,NaN):_.xt(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.xt(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.YD(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var f=this;this.onWindowResized_(_.WL());_.E("browse_skeleton_removal_on_watch_killswitch")||_.Hh("IS_SHELL_LOAD")&&_.wSl();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var R=_.nL(this);R.addEventListener("yt-player-updated",_.ks(this,this.onPlayerUpdated_));R.getPlayerPromise().then(function(u){f.playerApiReady_(u)});
_.E("kevlar_watch_flexy_playlist_manager")||(R=_.vh().resolve(_.Ji),_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&R.addEventListener("yt-navigate",_.ks(this,this.onYtNavigate_)),R.setPlaylistComponent(_.b(this.hostElement).querySelector("#playlist")),R.addEventListener("yt-playlist-data-updated",_.ks(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.JA.addLowPriorityJob(function(){_.ul(f.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.nL(this).removeEventListener("yt-player-updated",_.ks(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.E("kevlar_watch_flexy_playlist_manager")){var f=_.vh().resolve(_.Ji);_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&f.removeEventListener("yt-navigate",_.ks(this,this.onYtNavigate_));
f.cancelVideoSkip();f.removeEventListener("yt-playlist-data-updated",_.ks(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.ul(this.hostElement,"yt-autonav-pause-player",!1);f=_.iE();_.E("kevlar_exit_fullscreen_leaving_watch")&&f&&_.ru(f)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(f){this.player&&this.player.updateVideoData({rvs:f.rvs})},
getPageContents:function(f){return f&&f.contents&&f.contents.twoColumnWatchNextResults&&f.contents.twoColumnWatchNextResults.results&&f.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(f){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f)},
onRetrieveLocation_:function(f,R){R.hasComments?R.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):R.locationRetrieved("/related_ajax",void 0);f.stopPropagation()},
onSubscriptionChanged_:function(f,R){this.player&&(R?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.L$("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.b(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.b(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(f){this.player=f;this.setPlayerState(f.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.E("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.E("kevlar_unified_player")||_.E("kevlar_player_new_bootstrap_adoption"))&&_.sY()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(f,R){R=R===void 0?!0:R;_.iE()&&_.E("external_fullscreen")&&_.ru(document.documentElement);this.theaterRequested_=f;R&&_.m$("wide",f?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.OJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.ul(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(f){_.MB(f,typeof this.player),this.player&&_.MB(f,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var f;((f=this.player)==null?0:f.isFullscreen())?this.player.toggleFullscreen():_.OJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(f,R){return this.loading?R:!!Object.keys(f).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(f){if(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next())R=R.value,R.youThereRenderer&&_.NsX(this.youThereManager_,R.youThereRenderer)}},
setPlaylistData_:function(f){return f||{}},
userEngagementConfigDataChanged_:function(f){if(f)if(f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var R=this.youThereManager_;_.OW()<f.lowEngagementThresholdMs||_.j9w(R,!0)}else f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OJ(this.hostElement,"yt-autonav-pause-user-engagement",[f])},
isPlayerUnavailable_:function(f,R,u){return!!f&&!this.isVideoPlayable_(f,u)&&!R},
getPlayerOverlays_:function(f){return(f==null?void 0:f.playerOverlays)||null},
isVideoPlayable_:function(f,R){if(!f)return!1;var u=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",O=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",f)||this.get("errorScreen.ypcTrailerRenderer",f);f=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",f);var c;R=R==null?void 0:(c=R.playerOverlayRenderer)==null?void 0:c.gatedActionsOverlayRenderer;return!!u||!!O||!!f||!!R},
hasWatchNextResponseErrorRenderer:function(f){var R=this.getPageContents(f),u,O,c,h,l;return!(f==null?0:(u=f.contents)==null?0:(O=u.twoColumnWatchNextResults)==null?0:O.secondaryResults)&&!!((c=R[0])==null?0:(h=c.itemSectionRenderer)==null?0:(l=h.contents[0])==null?0:l.backgroundPromoRenderer)},
isLiveStreamOffline_:function(f){return f?f.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(f,R,u){var O=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",R),c=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];c=_.E("web_no_skip_video_on_verification_checks")?(f==null?void 0:f.status)&&c.includes(f.status):f&&f.status==="AGE_CHECK_REQUIRED";var h=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",f);h==void 0&&(h=!0);!u||this.isVideoPlayable_(f,this.getPlayerOverlays_(R))||
O||c||!h||_.vh().resolve(_.Ji).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.aP9()},
onPlayerFeedbackStartRequest_:function(f){_.OJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:f}])},
onPlayerFeedbackArticleRequest_:function(f){_.OJ(this.hostElement,"yt-help-dialog-requested",[f])},
onPlayerYpcContentRequest_:function(){var f,R,u,O,c,h,l,K,q=((f=this.data)==null?NaN:(R=f.contents)==null?NaN:(u=R.twoColumnWatchNextResults)==null?NaN:(O=u.secondaryResults)==null?NaN:(c=O.secondaryResults)==null?NaN:(h=c.offerModule)==null?NaN:(l=h.tvfilmOfferModuleRenderer)==null?NaN:(K=l.actionButtons)==null?NaN:K.length)-1;f=[".offerButton.buttonRenderer.",".actionButtons."+(q>=0?q:0)+".buttonRenderer."];R=_.Z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=R.next();!u.done;u=R.next())for(u=u.value,O=_.Z(f),c=O.next();!c.done;c=O.next())if(c="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+c.value,c=this.get(c+"navigationEndpoint",this.data)||this.get(c+"serviceEndpoint",this.data)||this.get(c+"command",this.data)){_.qO(c,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(f){_.ul(this.hostElement,"yt-autonav-pause-player",f)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(f){f()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.ul(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(f)},
setPlayerState:function(f){_.sP().dispatch(_.tXY(f))},
onPlayerSubscribe_:function(f){_.OJ(this.hostElement,"yt-player-subscribe",[f])},
onPlayerUnsubscribe_:function(f){_.OJ(this.hostElement,"yt-player-unsubscribe",[f])},
onPlayerAdYtShowToast_:function(f){_.OJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:f.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(f){if(f)return f},
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(f){return!_.E("web_watch_move_summary_to_sd")&&!!f},
computeWatchMetadataRefresh:function(){return _.E("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.E("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var f,R,u,O;this.watchNextSecondaryResults=(f=this.data)==null?void 0:(R=f.contents)==null?void 0:(u=R.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:O.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.E("swatcheroo_pbs_load_grid")&&!_.E("swatcheroo_provide_all_data_on_scheduled_job")){_.JA.cancelJob(this.setRichGridJobId_);var f,R,u,O,c,h,l;this.setRichGridRendererData((f=this.data)==null?void 0:(R=f.contents)==null?void 0:(u=R.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:(c=O.secondaryResults)==null?void 0:(h=c.results)==null?void 0:(l=h[0])==null?
void 0:l.richGridRenderer)}},
setRichGridRendererData:function(f){this.richGridRendererData=f},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var f,R=(f=this.data)==null?void 0:f.engagementPanels;if(R==null?0:R.length){f=null;R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;if(((O=u.engagementPanelSectionListRenderer)==null?void 0:O.targetId)==="engagement-panel-structured-description"){f=u;break}}var c,h,l;f=(c=f)==null?void 0:(h=c.engagementPanelSectionListRenderer)==null?void 0:(l=h.content)==null?void 0:l.structuredDescriptionContentRenderer;if(f==null?0:f.items){c=
[];h=_.Z(f.items);for(l=h.next();!l.done;l=h.next()){l=l.value;if(!_.E("sd_horizontal_list_show_nav_killswitch")){var K=O=u=R=f=void 0,q=void 0,F=(f=l.horizontalCardListRenderer)==null?void 0:(R=f.header)==null?void 0:(u=R.richListHeaderRenderer)==null?void 0:(O=u.navigationButton)==null?void 0:(K=O.buttonRenderer)==null?void 0:(q=K.command)==null?void 0:q.commandExecutorCommand;F&&F.commands&&(F.commands=F.commands.filter(function(w){return!_.t(w,_.tfa)}))}l.expandableVideoDescriptionBodyRenderer||
l.videoDescriptionHeaderRenderer||c.push(l)}return{items:c}}}},
constructWarning_:function(f){return{text:_.S8(f),type:"WARNING"}},
isPlaShelfEnabled_:function(f){if((this.get("adPlacements",f)||[]).length)return!0;f=this.get("playerAds",f)||[];return!(!f.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",f[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var f=this;_.ul(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var R=this.getScrollTop()>0;this.gestures_&&(R?this.gestures_.detach():this.gestures_.attach());R!==this.showFullerscreenEdu_&&_.E("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=R,_.nL(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(f.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.ul(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var f=this;this.commentsReady=!1;_.JA.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.dJ(_.JA,function(){f.setComments_()},1E3)},
setComments_:function(){if(!_.E("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.JH("cmi");_.JA.cancelJob(this.setCommentsJobId_);var f=this.getPageContents(this.data);if(f&&f.length){f=_.Z(f);for(var R=f.next();!R.done;R=f.next())if(R=R.value,this.get("itemSectionRenderer.sectionIdentifier",R)==="comment-item-section"){this.comments=R.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.ul(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.JH("cmc")},
doRemoveComments_:function(){this.comments={};_.E("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.JA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.JA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(f,R){var u=_.t(R.endpoint,_.$7);u&&(!(R=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==R.videoId||u.playlistId&&u.playlistId!==R.playlistId||u.index!==void 0&&u.index!==R.index||typeof u.startTimeSeconds!=="number"||(f.stopPropagation(),this.setScrollTop(0),_.nL(this).getPlayerPromise().then(function(O){var c=u.startTimeSeconds;O.seekTo(c);O.wakeUpControls();c<O.getDuration()&&O.playVideo()})))},
updatePlayerStartTime_:function(){var f=_.i$2();"t"in f&&(f=_.AYK(f.t),this.player.seekTo(f,!0))},
updateTitleFromWatchNext:function(f){f=this.getPageContents(f);var R,u;(f=_.$Z(f==null?void 0:(R=f[0])==null?void 0:(u=R.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.ul(this.hostElement,"yt-update-title",f)},
updateTitle_:function(f){f=this.get("videoDetails.title",f)||"";_.ul(this.hostElement,"yt-update-title",f)},
syncWithRemoteVideo_:function(f,R,u){if(this.active&&this.player){var O=this.player.getVideoData();if(O.video_id===u&&(u=O.list,_.E("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),O.video_id!==f||u!=R)){var c;_.E("kevlar_player_watch_endpoint_navigation")?c=_.MJX(_.lPw(f,R)):c=this.buildWatchEndpoint_(f,R);_.ul(this.hostElement,"yt-navigate",{endpoint:c,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(f,R,u){return _.rA(f,R,u)},
initDclkstatus_:function(){_.qD2()},
attachWatchPageSkeleton_:function(){var f=document.querySelector("#watch-page-skeleton");if(f){var R=f.querySelector("#primary-info"),u=f.querySelector("#secondary-info"),O=f.querySelector("#related");R&&_.b(this.hostElement).querySelector("#info-skeleton").appendChild(R);u&&_.b(this.hostElement).querySelector("#meta-skeleton").appendChild(u);O&&(_.b(this.hostElement).querySelector("#related-skeleton").appendChild(O),this.watchNextSkeletonEl_=O);_.Q1(f)}},
handlePlayerUpdated_:function(){_.nL(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(f,R){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof R!=="undefined"){var u=this.watchNextSkeletonEl_.children,O=f&&f.indexSplices.length?f.indexSplices[0].index:0;f=Math.min(this.watchNextShownItems.length,u.length);R||(O=0,f=u.length);for(R=O;R<f;R++)u[R].classList.add("hidden")}},
onPlayerFullscreenChange_:function(f){_.E("external_fullscreen")||_.OJ(this.hostElement,"yt-player-fullscreen",[f.fullscreen])},
onFullscreenChange_:function(f){this.fullscreen=f;this.gestures_&&this.gestures_.update(this.fullscreen);var R=_.nL(this);R.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.iE())});
this.updateFullBleedElementLocations();f&&(R.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(f,R){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!R},
computeIsDonationShelfCollapsed_:function(f){return f},
computeShouldShowMerchShelf:function(f,R){return R&&!!f},
computeResponseHasComments:function(f){var R,u,O,c,h;return!!(f==null?0:(R=f.contents)==null?0:(u=R.twoColumnWatchNextResults)==null?0:(O=u.results)==null?0:(c=O.results)==null?0:(h=c.contents)==null?0:h.some(function(l){var K;return(l==null?void 0:(K=l.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(f,R,u,O){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&O?!1:!!f&&!!Object.keys(f).length&&!R},
identity:_.B0,onWindowResized_:function(f){this.windowSize_=f;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(f){var R=this;f&&f.type!=="dataloaded"&&f.type!=="dataupdated"||_.nL(this).getPlayerPromise().then(function(u){var O=u.getPlayerState();O!==5&&O!==0&&(u=1/u.getVideoAspectRatio(),R.videoHeightToWidthRatio_!==u&&(R.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(f){var R=this,u=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"),O=function(){if(R.watchMetadata){var c,h;(h=(c=R.watchMetadata).resize)==null||h.call(c)}_.nL(R).getPlayerPromise().then(function(l){if(_.E("kevlar_set_internal_player_size")){if(!u||!R.isMiniplayerActive()){var K=R.calculateCurrentPlayerSize_();l.setInternalSize(K.width,K.height)}}else l.setSize(NaN,NaN);_.E("kevlar_watch_while")&&R.updateWatchWhileScrollThreshold_()})};
f?O():_.Cr(_.JA,O)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(f){this.set("data.survey",f.detail)},
onYtShowSurveyCommand_:function(f){this.set("data.survey",_.t(f,_.t95).survey)},
onDownloadedVideoDeleted:function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1){if(!R.active||(u=R.playerData)==null||!u.offlineState||R.videoId!==f)return c.return();(O=R.player)==null||O.stopVideo();_.qk().navigatingAwayFromWatchDeletedVideo=!0;_.qO(_.d0q,R.hostElement);return _.A(c,_.qk().navigationFinishPromise,2)}_.qk().navigatingAwayFromWatchDeletedVideo=!1;_.KG(c)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var f;this.theater?f=_.Jd(.5625*this.windowSize_.width,480,this.windowSize_.height-185):f=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==f&&(this.watchWhileScrollThreshold_=f,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var f=_.b(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&f){var R=this.windowSize_.height>=624,u=this.active?this.getScrollTop():0;!f.active&&R&&u>=this.watchWhileScrollThreshold_?(f.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):f.active&&(!R||u<this.watchWhileScrollThreshold_&&!_.iE())&&(f.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var f=_.b(this.hostElement).querySelector("#secondary-inner");if(f){var R=_.b(this.hostElement).querySelector("#below"),u=_.b(this.hostElement).querySelector("#secondary"),O=_.b(this.hostElement).querySelector("#comments");O&&u&&R&&(this.defaultTwoColumnLayout?(f.appendChild(O),u.appendChild(f)):(R.appendChild(O),_.HN(R,f)))}}},
isTwoColumnsChanged_:function(f,R){if(f!==!0||R!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(f=_.b(this.hostElement).querySelector("#secondary-inner"))){R=_.b(this.hostElement).querySelector("#below");var u=_.b(this.hostElement).querySelector("#secondary"),O=_.b(this.hostElement).querySelector("#comments");O&&u&&R&&(this.isTwoColumns_?(f.appendChild(O),u.appendChild(f)):(R.appendChild(O),
_.HN(R,f)))}}else{f=!_.E("live_chat_over_engagement_panels");R=_.b(this.hostElement).querySelector("#chat-container");u=_.b(this.hostElement).querySelector("#panels");var c=_.b(this.hostElement).querySelector("#alerts");O=_.b(this.hostElement).querySelector("#playlist");var h=_.b(this.hostElement).querySelector("#related"),l=_.b(this.hostElement).querySelector("#donation-shelf"),K=_.b(this.hostElement).querySelector("#comments");this.isTwoColumns_?(c=_.b(this.hostElement).querySelector("#secondary-inner"),
f&&c.appendChild(u),c.appendChild(O),_.E("web_watch_theater_chat")||c.appendChild(R),f||c.appendChild(u),c.appendChild(l),c.appendChild(h)):(f&&_.bw(u,c),_.bw(O,c),_.E("web_watch_theater_chat")||_.bw(R,c),f||_.bw(u,c),_.bw(l,c),K&&_.bw(h,K));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.E("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.E("web_watch_enable_fs_squeezeback_panels")&&_.E("web_watch_theater_chat")){var f=_.b(this.hostElement).querySelector("#chat-container"),R=this.theater&&!this.fullscreen||_.E("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&R?_.E("web_watch_theater_chat_beside_player")?(R=_.b(this.hostElement).querySelector("#panels-full-bleed-container"),(f==null?void 0:f.parentElement)!==
R&&R.append(f),this.panelsBesidePlayer=!0):_.E("web_watch_theater_fixed_chat")&&(R=_.b(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==R&&R.append(f),this.fixedPanels=!0):(_.E("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.E("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),R=_.b(this.hostElement).querySelector("#playlist"),f&&R?_.pp(f,R):_.Ih(new _.ts("Missing element when updating chat location",{"chatContainer defined":!!f,"playlist defined":!!R})));
this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(f,R){return _.E("sw_metadata_vis_toggle_ks")?!0:!!f||!!R},
computeForceDarkPanelTheme:function(f){return _.E("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&f:!1},
safeUpdateStyles:function(f){try{_.ZO(this.hostElement,f)}catch(R){_.Ih(R)}},
videoHeightToWidthRatioChanged_:function(f,R){R&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(f){this.videoHeightToWidthRatio_=1/f},
computeIsVerticalVideo_:function(f){return f>=1},
computeIsFourThreeToSixteenNineVideo_:function(f){return f<=.7501&&f>=.5624},
computeIsExtraWideVideo_:function(f){return f<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.nL(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.nL(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DQz(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(f){var R=_.Xs(f)||0;_.cT(f,R+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var f=_.Xs("yt-fullerscreen-edu-button-click-count")||0,R=_.Xs("yt-fullerscreen-edu-button-shown-count")||0,u=_.RV("external_fullscreen_button_shown_threshold"),O=f>=_.RV("external_fullscreen_button_click_threshold")||R>=u;_.nL(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonSubtleModeState(O)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(f,R){return R},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.vh().resolve(_.Ji).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var f=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.JA.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.JA.addLowPriorityJob(function(){f.fullHeightPanelPositionUpdateJobId=0;var R=_.b(f.hostElement).querySelector("#secondary"),u=_.b(f.hostElement).querySelector("#fixed-secondary");R=R.getBoundingClientRect();var O=R.width;f.swatcherooSqueezeback&&
(O+=_.I_);if(f.swatcherooSqueezeback){var c=_.b(f.hostElement).querySelector("#squeezeback-constraining-container");c.style.width=O+"px";c.style.flex="0 0 "+O+"px"}u.style.width=O+"px";u.style.left=R.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var f=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.JA.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.JA.addLowPriorityJob(function(){f.panelMaxHeightUpdateJob_=0;var R;!f.isTwoColumns_||f.theater||f.fullscreen?R=460:R=f.calculateNormalPlayerSize_().height;var u=R+"px";_.E("live_chat_taller_height")&&!f.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.E("live_chat_medium_height")&&!f.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.E("live_chat_scaled_height")&&!f.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");f.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":R+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":R+"px","--ytd-watch-flexy-comments-panel-max-height":R+"px","--ytd-comments-engagement-panel-content-height":R+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(f){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",f)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZW(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(f){var R=_.b(this.hostElement).querySelector("#engagement-panel-scrim");f?R.addEventListener("tap",_.ks(this,this.onEngagementPanelScrimClick_)):R.removeEventListener("tap",_.ks(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(f){if(this.hostElement.contains(f)&&!this.scrollToAnimation_.isAnimating()){var R=f.offsetTop-24;f=f.offsetTop+f.offsetHeight+24;var u=this.getPageScrollingElement(),O=this.getScrollTop(),c=O+u.clientHeight-56;if(R<O+56)R-=56;else if(f>c)R=f-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtSignalActionScrollToComments:function(){var f=this.hostElement.querySelector("#comments");if(f&&!this.scrollToAnimation_.isAnimating()){f=f.offsetTop-56-24;if(_.E("kevlar_comment_teaser_scroll_to_midpoint")&&(f-=_.qg().height/3,f<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtEngagementPanelVisibleChanged:function(f,R,u){if(this.active&&this.trackEngagementPanelVisibility&&!_.WX5.includes(u)){if(R==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.c_(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.E("kevlar_single_panel_fullscreen")){var O=_.vh().resolve(_.yT);this.visiblePanelIdentifiers_.forEach(function(c){c!==u&&O.hidePanel(c)})}this.visiblePanelIdentifiers_.add(u)}R!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&R!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(f){return f?"":"watch-active-metadata"},
computeNewMetadataClass:function(f){return f?"watch-active-metadata":""},
computeFullBleedPlayer:function(f,R,u){return f||R||this.enableFullBleedSingleColumnDefaultPlayer&&!u},
computeDefaultLayout:function(f){return!f},
computeDefaultTwoColumnLayout:function(f,R){return!f&&R},
updatePanelsLocation:function(){if(_.E("web_watch_enable_fs_squeezeback_panels")){var f=_.b(this.hostElement).querySelector("#below"),R=_.b(this.hostElement).querySelector("#panels"),u=_.b(this.hostElement).querySelector("#playlist"),O=_.b(this.hostElement).querySelector("#chat-container"),c=_.b(this.hostElement).querySelector("#panels-full-bleed-container"),h=_.b(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?(c.appendChild(R),c.appendChild(O),
c.appendChild(u)):this.isTwoColumns_?(_.HN(h,R),_.HN(h,O),_.HN(h,u)):(f.appendChild(R),f.appendChild(O),f.appendChild(u))}},
swatcherooUpdatePanelsLocation:function(f,R,u,O,c,h){if(this.is==="ytd-watch-grid"){R=f&&!R;this.swatcherooSplitScroll&&(R?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));u=_.b(this.hostElement).querySelector("#panels");var l=_.b(this.hostElement).querySelector("#playlist"),K=_.b(this.hostElement).querySelector("#fixed-secondary"),q=_.b(this.hostElement).querySelector("#fixed-below"),
F=_.b(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.b(this.hostElement).querySelector("#chat-container");h&&(f?K.appendChild(u):q.appendChild(u));c?f?K.appendChild(w):q.appendChild(w):_.pp(w,F);O?f?K.appendChild(l):q.appendChild(l):_.pp(l,F);this.swatcherooSplitScroll&&(f=_.b(this.hostElement).querySelector("#secondary"),O=_.b(this.hostElement).querySelector("#columns"),c=_.b(this.hostElement).querySelector("#fixed-columns-secondary"),R?c.appendChild(f):
O.appendChild(f))}},
computeMetadataSkinnyMode:function(f,R,u){return this.is!=="ytd-watch-grid"?!1:f?u:R},
computeWatchWhilePanelsActive:function(f,R){return f||R},
computeNoBorderOnChat:function(f){return _.E("web_watch_theater_chat_no_border")&&f},
computeLiveChatPresentAndExpanded:function(f,R){return f&&!R},
computePanelExpanded:function(f,R,u){return f||R||u},
computeSqueezeback:function(f,R,u,O){if(_.E("web_watch_enable_fs_squeezeback_panels")){var c=this.iMaxTheaterMode&&this.theater;return(f||R||u)&&(O||c)}},
computeSwatcherooSqueezeback:function(f,R,u){return this.is!=="ytd-watch-grid"||_.E("ww_squeezeback_killswitch")?!1:f&&R&&u},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(f){_.nL(this).getPlayerPromise().then(function(R){var u;(u=R.changeMarkerVisibility)==null||u.call(R,_.t(f,_.Su).isVisible||!1,_.t(f,_.Su).entityKeys||[],_.t(f,_.Su).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(f){this.liveChatCollapsed=f.detail;_.sP().dispatch(_.Q9X(f.detail))},
onSetPlaylistCollapsed:function(f){_.E("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!f)},
provideRenderingData:function(f,R){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=R;break;case "PRIMARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=R);this.videoPrimaryInfoRendererValue=R==null?void 0:R.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=R);this.videoSecondaryInfoRendererValue=R==null?void 0:R.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
R;break;case "CLARIFICATION":this.clarifyBoxValue=R;break;case "LIVE_CHAT":this.conversationBar=R;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=R;break;case "PLAYLIST":this.externalPlaylistData_=R!=null?R:{};break;case "MERCH_SHELF":this.merchShelfValue=R==null?void 0:R.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=R;break;case "TICKET_SHELF":this.ticket=R;break;case "OFFER_MODULE":this.offerModule=R;break;case "LIMITED_STATE":this.limitedStateValue=
R;break;case "DONATION_SHELF":this.donation=R;break;case "ALERTS":this.alertsValue=R;break;case "COMMENTS":this.comments=R;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=R;break;case "ENGAGEMENT_PANELS":this.engagementPanels=R;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=R;break;case "RICH_GRID_RENDERER":this.richGridRendererData=R;break;case "EXPANDABLE_METADATA":this.expandableMetadata=R;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
R}},
toggleCinematicsActive:function(f){this.cinematicsActive=f},
isMiniplayerActive:function(){return _.vh().resolve(_.MS).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var QSK;_.mWS=function(f){return f.shorts.isShortsActive};
_.Wwe=function(f){return f.findIndex(function(R){return QSK.indexOf(R.tagName)>-1})>-1};
_.E8X=function(f){return _.OP({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:f}})};
_.t02=function(){var f=_.vh().resolve(_.AC);_.Mkl(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(f.isFullscreenEnabled()?_.ru(document.documentElement):_.hoq(document.documentElement))};
QSK=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Vs=new Map;_.Vs.set(32,59972);_.Vs.set(27,50765);_.Vs.set(70,60102);_.Vs.set(76,60221);_.Vs.set(77,60222);_.Vs.set(74,60223);_.Vs.set(84,60224);_.Vs.set(38,61941);_.Vs.set(40,61942);_.Vs.set(73,62521);_.Vs.set(67,62522);_.Vs.set(80,63390);_.Vs.set(78,63397);_.Vs.set(75,59972);_.Vs.set(188,63385);_.Vs.set(190,63384);_.Vs.set(36,63387);
_.Vs.set(35,63386);_.Vs.set(37,63388);_.Vs.set(39,63389);_.Vs.set(79,63423);_.Vs.set(87,63424);_.Vs.set(107,63426);_.Vs.set(109,63425);_.Vs.set(65,63428);_.Vs.set(83,63430);_.Vs.set(68,63429);_.Vs.set(221,63431);_.Vs.set(219,63432);_.Vs.set(97,63439);_.Vs.set(98,63440);_.Vs.set(99,63441);_.Vs.set(100,63442);_.Vs.set(101,63443);_.Vs.set(102,63444);_.Vs.set(103,63445);_.Vs.set(104,63446);_.Vs.set(105,63447);_.Y2=new Map;_.Y2.set(80,63390);_.Y2.set(78,63397);_.Y2.set(188,63400);_.Y2.set(190,63401);
_.Y2.set(191,60765);_.Y2.set(13,247917);_.vx=new Map;_.iF=new Map;
}catch(e){_._DumpException(e)}
try{
var muw,E3m,tym,Che;_.Amm=function(f){return f.ui.guideIsVisibleButNotPersistent};
_.a0h=function(f){return f.ui.tabGesturesIsActive};
_.FoK=function(){var f=_.uZ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(f)}catch(R){return Promise.reject(R)}};
_.wzN=function(f){return!(!f||!f.pushManager)};
muw=function(){return _.FoK().then(_.wzN).catch(function(){return!1})};
_.QaK=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?muw():Promise.resolve(!1)};
_.Wo5=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
E3m=function(){var f,R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.A(O,_.ti.getInstance(),2);case 2:f=O.yieldResult;if(!f){R=void 0;O.jumpTo(3);break}return _.A(O,f.get("lmqf"),4);case 4:R=O.yieldResult;case 3:switch((u=R)||(u="SD"),u){case "HD":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return O.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
tym=function(f){var R,u,O;return _.k(function(c){if(c.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.E("disable_av1_setting")){var h=window.localStorage["yt-player-av1-pref"];h=h==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":h==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else h="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(R=f===h)return c.jumpTo(2);O=u=f;return _.A(c,E3m(),3)}c.nextAddress!=2&&(R=O===c.yieldResult);return c.return(R)})};var yma;var duK=_.ET.IronButtonState,NQ9=(0,_.m0)(HTMLElement);
_.NM({_template:function(){if(yma!==void 0)return yma;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Che===void 0&&(Che=document.createElement("template"));var O=Che;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return yma=f},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[duK,_.QX,_.tL,_.dm],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(f){var R=(0,_.Qy)(this);R.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:f});R.shadowRoot.appendChild(f);return NQ9.prototype._attachDom.call(this,f)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var f=this.contentElement;f&&f.selectedItem&&this._setSelectedItem(f.selectedItem)},
get contentElement(){for(var f=_.du(this.$.content).getDistributedNodes(),R=0,u=f.length;R<u;R++)if(f[R].nodeType===Node.ELEMENT_NODE)return f[R]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(f){this._setSelectedItem(f.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(f){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)===this&&this.open()},
_selectedItemChanged:function(f){var R="";f?R=f.label||f.getAttribute("label")||f.textContent.trim():R="";this.value=R;this._setSelectedItemLabel(R)},
_computeMenuVerticalOffset:function(f,R){return R?R:f?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var f=this.opened?"true":"false",R=this.contentElement;R&&R.setAttribute("aria-expanded",f)}});_.Uo=new _.Y("navigateAction");var Lo2=new _.Y("formRenderer");var eS=function(){var f=_.w_.apply(this,arguments)||this;f.showInput=!1;return f};
_.y(eS,_.w_);_.X=eS.prototype;_.X.detached=function(){this.showInput&&window.removeEventListener("click",_.ks(this,this.closeOnOutsideClick_))};
_.X.stopPropagation_=function(f){this.showInput&&f.stopPropagation()};
_.X.closeOnOutsideClick_=function(f){this.closeOnOutsideClickCondition(f)&&(this.showInput=!1,window.removeEventListener("click",_.ks(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.X.closeOnOutsideClickCondition=function(){return!0};
_.X.closeOnOutsideClickHandler=function(){};
_.X.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ks(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.X.openOnClickHandler=function(){};
_.X.showInputChanged=function(){};
_.X.setShowInput=function(f){this.showInput=f};
eS.prototype.setShowInput=eS.prototype.setShowInput;eS.prototype.showInputChanged=eS.prototype.showInputChanged;eS.prototype.openOnClickHandler=eS.prototype.openOnClickHandler;eS.prototype.openOnClick_=eS.prototype.openOnClick_;eS.prototype.closeOnOutsideClickHandler=eS.prototype.closeOnOutsideClickHandler;eS.prototype.closeOnOutsideClickCondition=eS.prototype.closeOnOutsideClickCondition;eS.prototype.closeOnOutsideClick_=eS.prototype.closeOnOutsideClick_;eS.prototype.stopPropagation_=eS.prototype.stopPropagation_;
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],eS.prototype,"showInput",void 0);_.B([_.Kf("click"),_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],eS.prototype,"stopPropagation_",null);_.B([_.qM("showInput"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean]),_.S("design:returntype")],eS.prototype,"showInputChanged",null);eS=_.B([_.mt()],eS);_.bjN=[eS.prototype];var pz5;var jae;var GF=function(){return _.U.apply(this,arguments)||this};
_.y(GF,_.U);_.X=GF.prototype;_.X.computePreselectedOption=function(f,R){return R===this.itemSelected_?f:void 0};
_.X.dataChanged_=function(){var f=this;this.preselectedSubreason=this.itemSelected_=-1;var R;(R=this.data)!=null&&R.key&&_.su(this,function(){var u,O=Number((u=f.data)==null?void 0:u.key);!Number.isNaN(O)&&(f.itemSelected_=O,u=(u=(f.data.items||[])[O])&&u.optionSelectableItemRenderer&&u.optionSelectableItemRenderer.preselectedIndex)&&(f.preselectedSubreason=u)})};
_.X.isSubReasonHidden_=function(f,R){return f!=R};
_.X.onTopItemSelected_=function(f,R){for(var u=_.b(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),O=0,c=u.length;O<c;O++)u[O].select(0);_.OJ(this.hostElement,"yt-report-form-update",[R.item.value]);f.stopPropagation()};
_.X.onItemSelected_=function(f,R){_.OJ(this.hostElement,"yt-report-form-update",[R.item.value]);f.stopPropagation()};
_.X.getItem_=function(f){return f.serviceItem?f.serviceItem:f.navigationItem?f.navigationItem:f.optionSelectableItemRenderer?f.optionSelectableItemRenderer:null};
_.X.computeText_=function(f){return(f=this.getItem_(f))?this.ytRendererBehavior.getSimpleString(f.text):null};
_.X.validate=function(){return this.itemSelected_!==-1};
_.X.computeAriaLabel_=function(f){var R=_.$Z(f.text);(f=f.accessibility&&f.accessibility.accessibilityData&&f.accessibility.accessibilityData.label)&&(R+=". "+f);return R};
_.X.computeItemSelected_=function(f){return f};
_.X.preventSelection_=function(f){f.stopPropagation();this.tooltipTapped=!0};
_.X.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.X.updateItemSelectedFromBinding=function(f){this.itemSelected_=f.detail.value};
_.X.save=function(){var f;this.validate()&&(f=this.data)!=null&&f.items&&(f=this.data.items[this.itemSelected_],f!=null&&f.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(f.optionSelectableItemRenderer.submitEndpoint)||_.hH(this.hostElement,[f.optionSelectableItemRenderer.submitEndpoint])))};
GF.prototype.onPaperRippleTransitionEnd_=GF.prototype.onPaperRippleTransitionEnd_;GF.prototype.dataChanged_=GF.prototype.dataChanged_;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],GF.prototype,"data",void 0);_.B([_.I({value:-1}),_.S("design:type",Number)],GF.prototype,"itemSelected_",void 0);
_.B([_.I({computed:"computeItemSelected_(itemSelected_)"}),_.S("design:type",Number)],GF.prototype,"value",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],GF.prototype,"restoreFocusOnClose",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],GF.prototype,"tooltipTapped",void 0);_.B([_.I({value:-1}),_.S("design:type",Number)],GF.prototype,"preselectedSubreason",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GF.prototype,"dataChanged_",null);_.B([_.Kf("transitionend"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GF.prototype,"onPaperRippleTransitionEnd_",null);GF=_.B([_.DO({is:"yt-options-renderer",disableElementRegistration:!0})],GF);
_.G(GF,"yt-options-renderer",function(){if(jae===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;pz5===void 0&&(pz5=document.createElement("template"));var O=pz5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);jae=f}f=jae;return f},{mode:2});var Du5;var JmK;var z95;var TQz;var Hj9;var I0l;var BS=function(){return _.U.apply(this,arguments)||this};
_.y(BS,_.U);BS.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
BS.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
BS.prototype.onTap=function(f){if(this.hostElement.classList.contains("selected")||_.Xa(this.hostElement,"yt-share-panel-can-select-contact-action"))f&&f.detail&&(f.detail.x||f.detail.y)&&_.b(this.hostElement).querySelector("#target").blur(),(f=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),f={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:f?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.OJ(this.hostElement,"yt-share-panel-select-contact-action",[f])};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.B([_.I({observer:"onDataChanged"}),_.S("design:type",Object)],BS.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.S("design:type",String)],BS.prototype,"componentTitle",void 0);_.B([_.a4("#thumbnail"),_.S("design:type",Object)],BS.prototype,"thumbnail",void 0);BS=_.B([_.DO({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],BS);
_.G(BS,"yt-enrolled-contact-renderer",function(){if(I0l===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;Hj9===void 0&&(Hj9=document.createElement("template"));var O=Hj9;u.call(R,O.content.cloneNode(!0),f.content.firstChild);I0l=f}f=I0l;return f},{mode:2});var MyK;var PhS;var oc=function(){return _.U.apply(this,arguments)||this};
_.y(oc,_.U);oc.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
oc.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
oc.prototype.onTap=function(f){if(this.hostElement.classList.contains("selected")||_.Xa(this.hostElement,"yt-share-panel-can-select-contact-action"))f&&f.detail&&(f.detail.x||f.detail.y)&&_.b(this.hostElement).querySelector("#target").blur(),(f=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),f={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:f?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.OJ(this.hostElement,"yt-share-panel-select-contact-action",[f])};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.B([_.I({observer:"onDataChanged"}),_.S("design:type",Object)],oc.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.S("design:type",String)],oc.prototype,"componentTitle",void 0);_.B([_.a4("#thumbnail"),_.S("design:type",Object)],oc.prototype,"thumbnail",void 0);oc=_.B([_.DO({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],oc);
_.G(oc,"yt-suggested-contact-renderer",function(){if(PhS===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;MyK===void 0&&(MyK=document.createElement("template"));var O=MyK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);PhS=f}f=PhS;return f},{mode:2});var xL=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-share-panel-reset-action":"onReset"};return f};
_.y(xL,_.U);xL.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"}}}}}};
xL.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.OJ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
xL.prototype.onReset=function(){for(var f=_.b(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),R=f.length-1;R>=0;R--)f[R].classList.toggle("selected")};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],xL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({observer:"onDataChanged"}),_.S("design:type",Object)],xL.prototype,"data",void 0);
xL=_.B([_.DO({is:"yt-contact-section-renderer",disableElementRegistration:!0})],xL);
_.G(xL,"yt-contact-section-renderer",function(){if(TQz===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;z95===void 0&&(z95=document.createElement("template"));var O=z95;u.call(R,O.content.cloneNode(!0),f.content.firstChild);TQz=f}f=TQz;return f},{mode:2});var SS=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return f};
_.y(SS,_.U);_.X=SS.prototype;_.X.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"}}}};
_.X.onYtRefreshFormCommand=function(f){var R;(f=_.t((R=_.t(f,_.O6f))==null?void 0:R.formRenderer,Lo2))&&this.set("data",f)};
_.X.reset=function(){var f=_.b(this.hostElement).querySelector("#fields").children;f=_.Z(f);for(var R=f.next();!R.done;R=f.next())R=R.value,R.reset&&R.reset()};
_.X.getForm=function(){var f={},R=_.b(this.hostElement).querySelector("#fields").children;R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;if(!u.validate())return null;f[u.data.key]=u.value}return f};
_.X.submitFormFields=function(){if(this.fields)for(var f=_.Z(this.fields),R=f.next();!R.done;R=f.next())R=R.value,R.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?R.save():R.nodeName==="YT-OPTIONS-RENDERER"&&R.save()};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],SS.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SS.prototype,"data",void 0);_.B([_.F4("#fields > *"),_.S("design:type",Array)],SS.prototype,"fields",void 0);
SS=_.B([_.DO({is:"yt-form-renderer",disableElementRegistration:!0})],SS);
_.G(SS,"yt-form-renderer",function(){if(JmK===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Du5===void 0&&(Du5=document.createElement("template"));var O=Du5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);JmK=f}f=JmK;return f},{mode:2});var Uu5;var $L=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return f};
_.y($L,_.U);$L.prototype.onCheckboxChange=function(f){this.data&&(f=(this.checked=_.gY(f).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})};
$L.prototype.handleUpdateCheckboxCommand=function(f){(f=_.t(f,_.ETA))&&this.data&&this.data.id===f.id&&(this.set("data.disabled",f.disabled),this.set("data.title",f.title))};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],$L.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$L.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],$L.prototype,"checked",void 0);$L=_.B([_.e({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],$L);
_.G($L,"ytd-settings-checkbox-renderer",function(){if(Uu5!==void 0)return Uu5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Uu5=f},{mode:1});var e9m;var gK=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return f};
_.y(gK,_.U);gK.prototype.dataChanged=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return f.radio.removeAttribute("checked"),!f.data||!f.data.id||f.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Wo5()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(R=f.data&&f.data.id)?_.A(u,tym(f.data.id),4):u.jumpTo(3):(f.set("data.hidden",!0),u.jumpTo(0));u.nextAddress!=3&&(R=u.yieldResult);R&&_.OJ(f.hostElement,"yt-select-settings-radio-option",[f.data.id]);_.KG(u)})};
gK.prototype.onButtonChanged=function(f){_.gY(f).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.OJ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
gK.prototype.onSelectOption=function(f){this.data&&this.data.id&&(this.data.id===f?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
gK.prototype.dataChanged=gK.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],gK.prototype,"ytActionHandlerBehavior",void 0);_.B([_.a4("#radio"),_.S("design:type",Object)],gK.prototype,"radio",void 0);_.B([_.I(),_.S("design:type",Object)],gK.prototype,"data",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],gK.prototype,"dataChanged",null);gK=_.B([_.e({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],gK);
_.G(gK,"ytd-settings-radio-option-renderer",function(){if(e9m!==void 0)return e9m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return e9m=f},{mode:1});var Gdt;var so=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return f};
_.y(so,_.U);
so.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"}}}};
so.prototype.handleUpdateTextCommand=function(f){(f=_.t(f,_.tTE))&&this.data&&this.data.id===f.id&&this.set("data",f)};
so.prototype.handleUpdateConnectedAppRendererCommand=function(f){if(_.t(f,_.dHA)&&this.data){var R,u;if(f=(R=_.t(f,_.dHA))==null?void 0:(u=R.newConnectedAppRenderer)==null?void 0:u.connectedAppRenderer)this.data=f}};
so.prototype.computeConnectedAppStyle=function(f){return f.style?f.style.toLowerCase().replace(/_/g,"-"):""};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],so.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],so.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.S("design:type",String)],so.prototype,"connectedAppStyle",void 0);so=_.B([_.e({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],so);
_.G(so,"ytd-connected-app-renderer",function(){if(Gdt!==void 0)return Gdt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Gdt=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.zP("iuT5Oc");

_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("L3n37");
var xQh=function(f){return f.watch.isLearningJourneyActive},SD2=_.dx(115994),$QK=_.dx(115993),g6l=function(f,R,u){var O=this;
var c=u.dragDownAction;this.layer=0;this.JSC$20484_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.JSC$20484_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return O.dragDownAction()}}}};
this.fullscreen=!1;var h=_.wR();_.Xl(h,SD2,this.layer);_.Xl(h,$QK,this.layer);this.dragDownAction=function(){c();_.MI(h,{visualElement:O.fullscreen?SD2:$QK})};
this.gesture=new _.K$(f,R,this.JSC$20484_watchConfig,"pandown");this.attach()};
g6l.prototype.attach=function(){this.gesture.attach()};
g6l.prototype.detach=function(){this.gesture.detach()};
g6l.prototype.update=function(f){this.fullscreen=f;this.gesture.config=f?this.JSC$20484_watchFullScreenConfig:this.JSC$20484_watchConfig};var s9w=function(f){_.n4.call(this);var R=this;this.rootElement=f;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return R.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){R.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.y(s9w,_.n4);_.X=s9w.prototype;_.X.getRoot=function(){return this.rootElement};
_.X.getElement=function(f){return this.rootElement.getElement(f)};
_.X.setPlayerResponse=function(f){this.playerResponse=f;this.publish("PLAYER_RESPONSE_UPDATED",f)};
_.X.getPlayerResponse=function(){return this.playerResponse};
_.X.setWatchNextResponse=function(f){this.watchNextResponse===f?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=f,this.publish("WATCH_NEXT_RESPONSE_UPDATED",f))};
_.X.getWatchNextResponse=function(){return this.watchNextResponse};
_.X.registerActionHandler=function(f,R){var u=this;if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var O={};_.SV(_.xN.getInstance(),(O[f]=R,O),this.getRoot())}else this.actionHandlers.has(f)||(this.actionHandlers.set(f,[]),O={},_.SV(_.xN.getInstance(),(O[f]=function(){var c=_.yK.apply(0,arguments);return(u.actionHandlers.get(f)||[]).map(function(h){return h.apply(null,_.yq(c))})},O),this.getRoot())),this.actionHandlers.get(f).push(R)};
_.X.unregisterActionHandler=function(f){if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.$N(_.xN.getInstance(),(R[f]=!0,R),this.getRoot())}else(R=this.actionHandlers.get(f))?(R.pop(),R.length===0&&(R={},_.$N(_.xN.getInstance(),(R[f]=!0,R),this.getRoot()),this.actionHandlers.delete(f))):_.Ih(new _.ts("Attempted to unregister an action handler which is not registered.",f))};
_.X.addPageDisposeJob=function(f){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.se(this.rootElement.pageDisposeJobs,f)};
_.X.removePageDisposeJob=function(f){this.rootElement.pageDisposeJobs&&_.v0(this.rootElement.pageDisposeJobs,f)};
_.X.dispatchEvent=function(f,R){_.ul(this.rootElement,f,R)};
_.X.provideRenderingData=function(f,R){this.rootElement.provideRenderingData(f,R)};
_.X.scrollWatchTo=function(f,R){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(f,R)};
_.X.focusOnPlayer=function(){var f=this.getElement("PLAYER");_.su(f,function(){if(f&&f.firstElementChild){var R=f.querySelector(".html5-video-player");R&&(_.Yi(_.vh().resolve(_.LL)),R.focus())}else _.Ih(Error("jm"))})};
_.X.updateCinematicFullscreenConfig=function(){var f=!!this.rootElement.theater,R=!!this.rootElement.fullscreen,u;(u=this.watchCinematicManager)==null||_.xnS(u,R,f)};
_.X.subscribeToActiveChanged=function(f,R){R=R===void 0?!0:R;var u=_.aC(_.sP(),xQh,function(O){f(O)});
R&&f(xQh(_.sP().getState()));return u};
_.X.isActive=function(){return xQh(_.sP().getState())};
_.X.onAttached=function(){var f=_.E("external_fullscreen");_.E("use_unified_flag_accessor")&&(f=_.vh().resolve(_.ynN).retriever.getFlag(_.Dck));(f||_.Hh("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.X.initPersistentModules=function(){if(_.E("kevlar_watch_flexy_theater_manager")){var f=new _.Qqz(this);_.qG(this,f)}f=new _.uFm(this);_.qG(this,f);f=new _.ju(this);_.qG(this,f);f=new _.Ml(this);_.qG(this,f);f=new _.Jwa(this);_.qG(this,f);f=new _.JJ(this);_.qG(this,f);_.E("kevlar_watch_flexy_playlist_manager")&&(f=new _.H$5(this),_.qG(this,f))};
_.X.initOrDisposeActiveModules=function(f){f?(this.watchScrollManager=new _.Ua(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.myz(this)),this.activeModules.push(new _.tet(this)),this.activeModules.push(new _.Gym(this)),this.activeModules.push(new _.P6(this)),_.E("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.N8t(this)),this.activeModules.push(new _.yw2(this)),_.E("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.ooK(this)),
_.E("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Ho2(this)),_.E("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.e6a(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.E("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.b$w(this)),_.E("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.fbh(this)),f=_.E("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.E("kevlar_watch_flexy_comments_manager")&&!f&&this.activeModules.push(new _.VBS(this)),_.E("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Dr(this)),this.activeModules.push(new _.LRm(this)),this.activeModules.push(new _.Wjt(this)),_.E("web_enable_timely_actions")&&this.activeModules.push(new _.Dnz(this)),_.E("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.v4K(this)),_.E("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.o42(this)),
_.E("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.jQX(this)),_.E("web_player_rtr_ctrls")&&this.activeModules.push(new _.rQl(this))):(_.vK(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.X.disposeInternal=function(){_.n4.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Vy.Object.defineProperties(s9w.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var n65={},V99=["learning-journey-engagement-panel","PAlearning_chat"];
n65.YtdLearningJourneyWatchBehavior=[_.r.YtRendererBehavior,_.xi.YtPlayerListenerBehavior,_.rj.YtRendererstamperBehavior,_.fq.YtActionHandlerBehavior,_.bm.YtPageBehavior,_.aD.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 _.Hh("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.E("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 _.Hh("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 _.E("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.E("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 _.RV("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RV("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_rounded_player_large")||_.E("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 _.E("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.E("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_thumbnail_to_watch_transition")}}},
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:_.Jz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Jz(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var f=this;this.watchController=void 0;this.pageDisposeJobs=[function(){f.showMetadataPlaceholder_()},
function(){_.E("web_watch_dont_clear_comments")||f.clearComments_()},
function(){f.clearPlayerAds_()},
function(){f.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.E("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.E("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.CTh(function(){return _.nL(f)},this.hostElement);
this.pageDisposeJobs.push(function(){f.youThereManager_.reset()});
_.E("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){f.resetFullerscreenEduButtonForNewPlayback_()}));
_.E("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.OT;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;_.E("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.E("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));_.E("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ks(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(f){f&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:f}),f.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(f){_.E("kevlar_watch_flexy_theater_manager")&&(this.theater=f,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.E("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(f){!_.E("kevlar_watch_while_v2")&&!_.E("web_watch_pip")||f||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(f){this.active!==void 0&&(this.fullscreen=f,_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(f){this.active!==void 0&&(_.ul(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(f>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(f){this.initCsi_();this.updatePageData_(f)},
updatePageData_:function(f){var R=this;if(f)if(this.data===f){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=f;this.playlist&&_.ja({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.JH("nw");this.loading=!1;_.dJ(_.JA,function(){R.initDclkstatus_();var O,c=((O=R.player)==null?void 0:O.getVideoData().cpn)||"";_.ZPS(function(h,l){_.aKl(h,l,c)})})},
onPageLoadWithSameData_:function(){_.E("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 f=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!f);this.set("loadingData.playlistLoading",f&&f!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),f=this.watchNextSkeletonEl_.firstElementChild;f;)f.classList.remove("hidden"),f=f.nextElementSibling;if(_.E("kevlar_watch_frame0_loading_state")){var R,u,O;f=(R=this.loadingData)==null?void 0:(u=R.endpoint)==null?void 0:(O=u.watchEndpoint)==null?void 0:O.videoId;var c;f&&(c="https://i.ytimg.com/vi/"+f+"/frame0.jpg");_.b(this.hostElement).querySelector("#player").style.backgroundImage=c?"url("+c+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var f=_.b(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&f&&(f.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var R,u;(u=(R=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(R);var O,c;(c=(O=this.watchMetadata).resize)==null||c.call(O)}_.E("kevlar_watch_frame0_loading_state")&&(_.b(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(f){var R=_.b(this.hostElement).querySelector(f);R?_.fv(R,!1):_.Ih(new _.ts("Overscroll monitor not found for component: ",f))},
removeSplitScrollMouseTrap:function(f){var R=_.b(this.hostElement).querySelector(f);R?_.Rp(R):_.Ih(new _.ts("Disposal component for  overscroll monitoring not found: ",f))},
onLoadingChanged_:function(f){f?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(f){var R=this;f?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.JA.addLowPriorityJob(function(){R.onWindowResized_(_.WL(!0))})},
updateTheaterModeState_:function(f){if(!_.E("kevlar_watch_flexy_theater_manager")){f=f||this.fullWindowMode_;if(this.theater!==void 0||f)this.theater=f;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();f&&_.E9X()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var f=this.theater;_.E("external_fullscreen")&&this.fullscreen&&(f=!0);f=f?_.b(this.hostElement).querySelector("#player-full-bleed-container"):_.b(this.hostElement).querySelector("#player-container-inner");var R=this.getPlayerContainer(),u=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip");R.parentElement!==f&&(u&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.nL(this).appendTo(f,R),f.appendChild(_.b(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var f=this;return _.k(function(R){if(R.nextAddress==1)return _.A(R,_.vh().resolve(_.MS).deactivate(),2);f.updatePlayerLocation();_.KG(R)})},
updateCinematicsLocation:function(){var f=this.getElement("CINEMATICS");if(f){var R=this.getCinematicsLocationContainer();f.parentElement!==R&&R.appendChild(f);var u;(u=this.watchController)==null||u.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.b(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.b(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(f,R){var u=document.documentElement.hasAttribute("dark"),O=u&&_.E("web_cinematic_theater_mode"),c=u&&_.E("web_cinematic_fullscreen");u=!u&&this.cinematicLightTheme;return f&&O||R&&c||(R||f)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data);_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.vh().resolve(_.Ji).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.E("web_watch_start_chat_in_theater_mode")){var R,
u,O;if((R=this.data)==null?0:(u=R.contents)==null?0:(O=u.twoColumnWatchNextResults)==null?0:O.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var c,h;((c=this.data)==null?0:(h=c.contents)==null?0:h.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(f){var R;(R=this.watchController)==null||R.setPlayerResponse(this.playerData);f&&f.playabilityStatus&&(R=this.isVideoPlayable_(f.playabilityStatus,this.getPlayerOverlays_(this.data)),f=this.isLiveStreamOffline_(f.playabilityStatus),R&&!f||_.su(this,function(){_.JH("pbu")}));
this.setPlayerAds_();_.c_(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(f){_.sP().dispatch(_.OP({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));f?this.activate_():this.deactivate_()},
attached:function(){var f=this;this.watchController=new s9w(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.E("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var R=_.nL(this);_.E("kevlar_disable_prepare_player")||R.preparePlayer();_.E("kevlar_watch_flexy_playlist_manager")||_.vh().resolve(_.Ji).setPlayer(R);this.updatePageMediaQueries();R={"--ytd-watch-flexy-scrollbar-width":_.pw()+
"px"};!_.RV("kv_pl_mx_sz_ks")&&_.RV("kevlar_watch_max_player_width")&&(R["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Xa2+"px");_.RV("kevlar_watch_flexy_metadata_height")&&(R["--ytd-watch-flexy-space-below-player"]=_.hkm+"px");this.safeUpdateStyles(R);_.E("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new g6l(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return f.onPlayerTouchPanDown_()}}));
_.E("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.b(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var f=_.pw(),R=_.MP+f,u=R;this.fixedPanels&&(R+=_.c$m);var O=657+f;f=1327+f;_.b(this.hostElement).querySelector("#two-column-query").query="(min-width: "+R+"px)";_.b(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(O+"px), (min-height: 630px) and (min-width: ")+(R+"px) and (max-width: ")+(f+"px)");_.b(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(f+"px)");_.b(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+u+"px)"},
calculateCurrentPlayerSize_:function(){var f=_.b(this.hostElement).querySelector("#miniplayer-bar").firstChild;return f&&f.active||this.theater||_.E("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.K8(NaN,NaN):_.xt(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.xt(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.YD(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var f=this;this.onWindowResized_(_.WL());_.E("browse_skeleton_removal_on_watch_killswitch")||_.Hh("IS_SHELL_LOAD")&&_.wSl();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var R=_.nL(this);R.addEventListener("yt-player-updated",_.ks(this,this.onPlayerUpdated_));R.getPlayerPromise().then(function(u){f.playerApiReady_(u)});
_.E("kevlar_watch_flexy_playlist_manager")||(R=_.vh().resolve(_.Ji),_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&R.addEventListener("yt-navigate",_.ks(this,this.onYtNavigate_)),R.setPlaylistComponent(_.b(this.hostElement).querySelector("#playlist")),R.addEventListener("yt-playlist-data-updated",_.ks(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.JA.addLowPriorityJob(function(){_.ul(f.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.nL(this).removeEventListener("yt-player-updated",_.ks(this,this.onPlayerUpdated_));if(!_.E("kevlar_watch_flexy_playlist_manager")){var f=_.vh().resolve(_.Ji);_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&f.removeEventListener("yt-navigate",_.ks(this,this.onYtNavigate_));f.cancelVideoSkip();f.removeEventListener("yt-playlist-data-updated",_.ks(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.E("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.ul(this.hostElement,"yt-autonav-pause-player",!1);f=_.iE();_.E("kevlar_exit_fullscreen_leaving_watch")&&f&&_.ru(f)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(f){this.player&&this.player.updateVideoData({rvs:f.rvs})},
getPageContents:function(f){return f&&f.contents&&f.contents.twoColumnWatchNextResults&&f.contents.twoColumnWatchNextResults.results&&f.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(f){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f)},
onRetrieveLocation_:function(f,R){R.hasComments?R.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):R.locationRetrieved("/related_ajax",void 0);f.stopPropagation()},
onSubscriptionChanged_:function(f,R){this.player&&(R?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.L$("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.b(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.b(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(f){this.player=f;this.setPlayerState(f.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.E("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.E("kevlar_unified_player")||_.E("kevlar_player_new_bootstrap_adoption"))&&_.sY()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(f,R){R=R===void 0?!0:R;_.iE()&&_.E("external_fullscreen")&&_.ru(document.documentElement);this.theaterRequested_=f;R&&_.m$("wide",f?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.OJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.ul(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(f){_.MB(f,typeof this.player),this.player&&_.MB(f,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var f;((f=this.player)==null?0:f.isFullscreen())?this.player.toggleFullscreen():_.OJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(f,R){return this.loading?R:!!Object.keys(f).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(f){if(f){f=_.Z(f);for(var R=f.next();!R.done;R=f.next())R=R.value,R.youThereRenderer&&_.NsX(this.youThereManager_,R.youThereRenderer)}},
setPlaylistData_:function(f){return f||{}},
userEngagementConfigDataChanged_:function(f){if(f)if(f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var R=this.youThereManager_;_.OW()<f.lowEngagementThresholdMs||_.j9w(R,!0)}else f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OJ(this.hostElement,"yt-autonav-pause-user-engagement",[f])},
isPlayerUnavailable_:function(f,R,u){return!!f&&!this.isVideoPlayable_(f,u)&&!R},
getPlayerOverlays_:function(f){return(f==null?void 0:f.playerOverlays)||null},
isVideoPlayable_:function(f,R){if(!f)return!1;var u=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",O=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",f)||this.get("errorScreen.ypcTrailerRenderer",f);f=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",f);var c;R=R==null?void 0:(c=R.playerOverlayRenderer)==null?void 0:c.gatedActionsOverlayRenderer;return!!u||!!O||!!f||!!R},
hasWatchNextResponseErrorRenderer:function(f){var R=this.getPageContents(f),u,O,c,h,l;return!(f==null?0:(u=f.contents)==null?0:(O=u.twoColumnWatchNextResults)==null?0:O.secondaryResults)&&!!((c=R[0])==null?0:(h=c.itemSectionRenderer)==null?0:(l=h.contents[0])==null?0:l.backgroundPromoRenderer)},
isLiveStreamOffline_:function(f){return f?f.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(f,R,u){var O=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",R),c=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];c=_.E("web_no_skip_video_on_verification_checks")?(f==null?void 0:f.status)&&c.includes(f.status):f&&f.status==="AGE_CHECK_REQUIRED";var h=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",f);h==void 0&&(h=!0);!u||this.isVideoPlayable_(f,this.getPlayerOverlays_(R))||
O||c||!h||_.vh().resolve(_.Ji).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.aP9()},
onPlayerFeedbackStartRequest_:function(f){_.OJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:f}])},
onPlayerFeedbackArticleRequest_:function(f){_.OJ(this.hostElement,"yt-help-dialog-requested",[f])},
onPlayerYpcContentRequest_:function(){var f,R,u,O,c,h,l,K,q=((f=this.data)==null?NaN:(R=f.contents)==null?NaN:(u=R.twoColumnWatchNextResults)==null?NaN:(O=u.secondaryResults)==null?NaN:(c=O.secondaryResults)==null?NaN:(h=c.offerModule)==null?NaN:(l=h.tvfilmOfferModuleRenderer)==null?NaN:(K=l.actionButtons)==null?NaN:K.length)-1;f=[".offerButton.buttonRenderer.",".actionButtons."+(q>=0?q:0)+".buttonRenderer."];R=_.Z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=R.next();!u.done;u=R.next())for(u=u.value,O=_.Z(f),c=O.next();!c.done;c=O.next())if(c="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+c.value,c=this.get(c+"navigationEndpoint",this.data)||this.get(c+"serviceEndpoint",this.data)||this.get(c+"command",this.data)){_.qO(c,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(f){_.ul(this.hostElement,"yt-autonav-pause-player",f)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(f){f()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.ul(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(f)},
setPlayerState:function(f){_.sP().dispatch(_.tXY(f))},
onPlayerSubscribe_:function(f){_.OJ(this.hostElement,"yt-player-subscribe",[f])},
onPlayerUnsubscribe_:function(f){_.OJ(this.hostElement,"yt-player-unsubscribe",[f])},
onPlayerAdYtShowToast_:function(f){_.OJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:f.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(f){if(f)return f},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(f){return!_.E("web_watch_move_summary_to_sd")&&!!f},
computeWatchMetadataRefresh:function(){return _.E("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var f,R,u,O;this.watchNextSecondaryResults=(f=this.data)==null?void 0:(R=f.contents)==null?void 0:(u=R.twoColumnWatchNextResults)==null?void 0:(O=u.secondaryResults)==null?void 0:O.secondaryResults}},
setRichGridRendererData:function(f){this.richGridRendererData=f},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var f,R=(f=this.data)==null?void 0:f.engagementPanels;if(R==null?0:R.length){f=null;R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;if(((O=u.engagementPanelSectionListRenderer)==null?void 0:O.targetId)==="engagement-panel-structured-description"){f=u;break}}var c,h,l;f=(c=f)==null?void 0:(h=c.engagementPanelSectionListRenderer)==null?void 0:(l=h.content)==null?void 0:l.structuredDescriptionContentRenderer;if(f==null?0:f.items){c=
[];h=_.Z(f.items);for(l=h.next();!l.done;l=h.next()){l=l.value;if(!_.E("sd_horizontal_list_show_nav_killswitch")){var K=O=u=R=f=void 0,q=void 0,F=(f=l.horizontalCardListRenderer)==null?void 0:(R=f.header)==null?void 0:(u=R.richListHeaderRenderer)==null?void 0:(O=u.navigationButton)==null?void 0:(K=O.buttonRenderer)==null?void 0:(q=K.command)==null?void 0:q.commandExecutorCommand;F&&F.commands&&(F.commands=F.commands.filter(function(w){return!_.t(w,_.tfa)}))}l.expandableVideoDescriptionBodyRenderer||
l.videoDescriptionHeaderRenderer||c.push(l)}return{items:c}}}},
constructWarning_:function(f){return{text:_.S8(f),type:"WARNING"}},
isPlaShelfEnabled_:function(f){if((this.get("adPlacements",f)||[]).length)return!0;f=this.get("playerAds",f)||[];return!(!f.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",f[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var f=this;_.ul(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var R=this.getScrollTop()>0;this.gestures_&&(R?this.gestures_.detach():this.gestures_.attach());R!==this.showFullerscreenEdu_&&_.E("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=R,_.nL(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(f.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.ul(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var f=this;this.commentsReady=!1;_.JA.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.dJ(_.JA,function(){f.setComments_()},1E3)},
setComments_:function(){if(!_.E("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.JH("cmi");_.JA.cancelJob(this.setCommentsJobId_);var f=this.getPageContents(this.data);if(f&&f.length){f=_.Z(f);for(var R=f.next();!R.done;R=f.next())if(R=R.value,this.get("itemSectionRenderer.sectionIdentifier",R)==="comment-item-section"){this.comments=R.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.ul(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.JH("cmc")},
doRemoveComments_:function(){this.comments={};_.E("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.JA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.JA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(f,R){var u=_.t(R.endpoint,_.$7);u&&(!(R=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==R.videoId||u.playlistId&&u.playlistId!==R.playlistId||u.index!==void 0&&u.index!==R.index||typeof u.startTimeSeconds!=="number"||(f.stopPropagation(),this.setScrollTop(0),_.nL(this).getPlayerPromise().then(function(O){var c=u.startTimeSeconds;O.seekTo(c);O.wakeUpControls();c<O.getDuration()&&O.playVideo()})))},
updatePlayerStartTime_:function(){var f=_.i$2();"t"in f&&(f=_.AYK(f.t),this.player.seekTo(f,!0))},
updateTitleFromWatchNext:function(f){f=this.getPageContents(f);var R,u;(f=_.$Z(f==null?void 0:(R=f[0])==null?void 0:(u=R.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.ul(this.hostElement,"yt-update-title",f)},
updateTitle_:function(f){f=this.get("videoDetails.title",f)||"";_.ul(this.hostElement,"yt-update-title",f)},
syncWithRemoteVideo_:function(f,R,u){if(this.active&&this.player){var O=this.player.getVideoData();if(O.video_id===u&&(u=O.list,_.E("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),O.video_id!==f||u!=R)){var c;_.E("kevlar_player_watch_endpoint_navigation")?c=_.MJX(_.lPw(f,R)):c=this.buildWatchEndpoint_(f,R);_.ul(this.hostElement,"yt-navigate",{endpoint:c,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(f,R,u){return _.rA(f,R,u)},
initDclkstatus_:function(){_.qD2()},
attachWatchPageSkeleton_:function(){var f=document.querySelector("#watch-page-skeleton");if(f){var R=f.querySelector("#primary-info"),u=f.querySelector("#secondary-info"),O=f.querySelector("#related");R&&_.b(this.hostElement).querySelector("#info-skeleton").appendChild(R);u&&_.b(this.hostElement).querySelector("#meta-skeleton").appendChild(u);O&&(_.b(this.hostElement).querySelector("#related-skeleton").appendChild(O),this.watchNextSkeletonEl_=O);_.Q1(f)}},
handlePlayerUpdated_:function(){_.nL(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(f,R){if(this.watchNextSkeletonEl_&&typeof R!=="undefined"){var u=this.watchNextSkeletonEl_.children,O=f&&f.indexSplices.length?f.indexSplices[0].index:0;f=Math.min(this.watchNextShownItems.length,u.length);R||(O=0,f=u.length);for(R=O;R<f;R++)u[R].classList.add("hidden")}},
onPlayerFullscreenChange_:function(f){_.E("external_fullscreen")||_.OJ(this.hostElement,"yt-player-fullscreen",[f.fullscreen])},
onFullscreenChange_:function(f){this.fullscreen=f;this.gestures_&&this.gestures_.update(this.fullscreen);var R=_.nL(this);R.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.iE())});
this.updateFullBleedElementLocations();f&&(R.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(f,R){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!R},
computeIsDonationShelfCollapsed_:function(f){return f},
computeShouldShowMerchShelf:function(f,R){return R&&!!f},
computeResponseHasComments:function(f){var R,u,O,c,h;return!!(f==null?0:(R=f.contents)==null?0:(u=R.twoColumnWatchNextResults)==null?0:(O=u.results)==null?0:(c=O.results)==null?0:(h=c.contents)==null?0:h.some(function(l){var K;return(l==null?void 0:(K=l.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(f,R){this.responseHasComments=this.computeResponseHasComments(this.data);return!!f&&!!Object.keys(f).length&&!R},
identity:_.B0,onWindowResized_:function(f){this.windowSize_=f;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(f){var R=this;f&&f.type!=="dataloaded"&&f.type!=="dataupdated"||_.nL(this).getPlayerPromise().then(function(u){var O=u.getPlayerState();O!==5&&O!==0&&(u=1/u.getVideoAspectRatio(),R.videoHeightToWidthRatio_!==u&&(R.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(f){var R=this,u=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"),O=function(){if(R.watchMetadata){var c,h;(h=(c=R.watchMetadata).resize)==null||h.call(c)}_.nL(R).getPlayerPromise().then(function(l){if(_.E("kevlar_set_internal_player_size")){if(!u||!R.isMiniplayerActive()){var K=R.calculateCurrentPlayerSize_();l.setInternalSize(K.width,K.height)}}else l.setSize(NaN,NaN);_.E("kevlar_watch_while")&&R.updateWatchWhileScrollThreshold_()})};
f?O():_.Cr(_.JA,O)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(f){this.set("data.survey",f.detail)},
onYtShowSurveyCommand_:function(f){this.set("data.survey",_.t(f,_.t95).survey)},
onDownloadedVideoDeleted:function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1){if(!R.active||(u=R.playerData)==null||!u.offlineState||R.videoId!==f)return c.return();(O=R.player)==null||O.stopVideo();_.qk().navigatingAwayFromWatchDeletedVideo=!0;_.qO(_.d0q,R.hostElement);return _.A(c,_.qk().navigationFinishPromise,2)}_.qk().navigatingAwayFromWatchDeletedVideo=!1;_.KG(c)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var f;this.theater?f=_.Jd(.5625*this.windowSize_.width,480,this.windowSize_.height-185):f=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==f&&(this.watchWhileScrollThreshold_=f,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var f=_.b(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&f){var R=this.windowSize_.height>=624,u=this.active?this.getScrollTop():0;!f.active&&R&&u>=this.watchWhileScrollThreshold_?(f.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):f.active&&(!R||u<this.watchWhileScrollThreshold_&&!_.iE())&&(f.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(f,R){if(f!==!0||R!==void 0){f=!_.E("live_chat_over_engagement_panels");R=_.b(this.hostElement).querySelector("#chat-container");var u=_.b(this.hostElement).querySelector("#plj-sidebar"),O=_.b(this.hostElement).querySelector("#panels"),c=_.b(this.hostElement).querySelector("#plj-panels"),h=_.b(this.hostElement).querySelector("#plj-playlist"),l=_.b(this.hostElement).querySelector("#alerts"),K=_.b(this.hostElement).querySelector("#playlist"),q=_.b(this.hostElement).querySelector("#related"),
F=_.b(this.hostElement).querySelector("#donation-shelf"),w=_.b(this.hostElement).querySelector("#comments");this.isTwoColumns_?(l=_.b(this.hostElement).querySelector("#secondary-inner"),l.appendChild(u),u.appendChild(h),h.appendChild(K),u.appendChild(c),f&&l.appendChild(O),_.E("web_watch_theater_chat")||l.appendChild(R),f||l.appendChild(O),l.appendChild(F),l.appendChild(q)):(f&&_.bw(O,l),_.bw(K,l),_.E("web_watch_theater_chat")||_.bw(R,l),f||_.bw(O,l),_.bw(F,l),w&&(c&&_.bw(c,w),_.bw(q,w)));_.E("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.E("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.E("web_watch_theater_chat")){var f=_.b(this.hostElement).querySelector("#chat-container"),R=this.theater&&!this.fullscreen||_.E("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&R?_.E("web_watch_theater_chat_beside_player")?(R=_.b(this.hostElement).querySelector("#panels-full-bleed-container"),(f==null?void 0:f.parentElement)!==R&&R.append(f),this.panelsBesidePlayer=!0):_.E("web_watch_theater_fixed_chat")&&
(R=_.b(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==R&&R.append(f),this.fixedPanels=!0):(_.E("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.E("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),R=_.b(this.hostElement).querySelector("#playlist"),f&&R?_.pp(f,R):_.Ih(new _.ts("Missing element when updating chat location",{"chatContainer defined":!!f,"playlist defined":!!R})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(f,R){return _.E("sw_metadata_vis_toggle_ks")?!0:!!f||!!R},
computeForceDarkPanelTheme:function(f){return _.E("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&f:!1},
safeUpdateStyles:function(f){try{_.ZO(this.hostElement,f)}catch(R){_.Ih(R)}},
videoHeightToWidthRatioChanged_:function(f,R){R&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(f){this.videoHeightToWidthRatio_=1/f},
computeIsVerticalVideo_:function(f){return f>=1},
computeIsFourThreeToSixteenNineVideo_:function(f){return f<=.7501&&f>=.5624},
computeIsExtraWideVideo_:function(f){return f<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.nL(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.nL(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DQz(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(f){var R=_.Xs(f)||0;_.cT(f,R+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var f=_.Xs("yt-fullerscreen-edu-button-click-count")||0,R=_.Xs("yt-fullerscreen-edu-button-shown-count")||0,u=_.RV("external_fullscreen_button_shown_threshold"),O=f>=_.RV("external_fullscreen_button_click_threshold")||R>=u;_.nL(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonSubtleModeState(O)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(f,R){return R},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.vh().resolve(_.Ji).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var f=this;this.panelMaxHeightUpdateJob_&&_.JA.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.JA.addLowPriorityJob(function(){f.panelMaxHeightUpdateJob_=0;var R;!f.isTwoColumns_||f.theater||f.fullscreen?R=460:R=f.calculateNormalPlayerSize_().height;var u=R+"px";_.E("live_chat_taller_height")&&!f.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.E("live_chat_medium_height")&&
!f.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.E("live_chat_scaled_height")&&!f.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");f.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":R+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":R+"px","--ytd-watch-flexy-comments-panel-max-height":R+"px","--ytd-comments-engagement-panel-content-height":R+"px"})})},
onYtShowEngagementPanelScrimAction_:function(f){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",f)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZW(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(f){var R=_.b(this.hostElement).querySelector("#engagement-panel-scrim");f?R.addEventListener("tap",_.ks(this,this.onEngagementPanelScrimClick_)):R.removeEventListener("tap",_.ks(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(f){if(this.hostElement.contains(f)&&!this.scrollToAnimation_.isAnimating()){var R=f.offsetTop-24;f=f.offsetTop+f.offsetHeight+24;var u=this.getPageScrollingElement(),O=this.getScrollTop(),c=O+u.clientHeight-56;if(R<O+56)R-=56;else if(f>c)R=f-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtSignalActionScrollToComments:function(){var f=this.hostElement.querySelector("#comments");if(f&&!this.scrollToAnimation_.isAnimating()){f=f.offsetTop-56-24;if(_.E("kevlar_comment_teaser_scroll_to_midpoint")&&(f-=_.qg().height/3,f<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtEngagementPanelVisibleChanged:function(f,R,u){this.active&&this.trackEngagementPanelVisibility&&!_.WX5.includes(u)&&(R==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(u),R!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&R!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(f){return f?"":"watch-active-metadata"},
computeNewMetadataClass:function(f){return f?"watch-active-metadata":""},
computeFullBleedPlayer:function(f,R){return f||R},
computeDefaultLayout:function(f){return!f},
computeDefaultTwoColumnLayout:function(f,R){return!f&&R},
computeWatchWhilePanelsActive:function(f,R){return f||R},
computeNoBorderOnChat:function(f){return _.E("web_watch_theater_chat_no_border")&&f},
computeLiveChatPresentAndExpanded:function(f,R){return f&&!R},
computePanelExpanded:function(f,R,u){return f||R||u},
onChangeMarkersVisibility:function(f){_.nL(this).getPlayerPromise().then(function(R){var u;(u=R.changeMarkerVisibility)==null||u.call(R,_.t(f,_.Su).isVisible||!1,_.t(f,_.Su).entityKeys||[],_.t(f,_.Su).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(f){this.liveChatCollapsed=f.detail;_.sP().dispatch(_.Q9X(f.detail))},
provideRenderingData:function(f,R){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=R;break;case "PRIMARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=R);this.videoPrimaryInfoRendererValue=R==null?void 0:R.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=R);this.videoSecondaryInfoRendererValue=R==null?void 0:R.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
R;break;case "CLARIFICATION":this.clarifyBoxValue=R;break;case "LIVE_CHAT":this.conversationBar=R;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=R;break;case "PLAYLIST":this.externalPlaylistData_=R!=null?R:{};break;case "MERCH_SHELF":this.merchShelfValue=R==null?void 0:R.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=R;break;case "OFFER_MODULE":this.offerModule=R;break;case "LIMITED_STATE":this.limitedStateValue=R;break;case "DONATION_SHELF":this.donation=R;break;
case "ALERTS":this.alertsValue=R;break;case "COMMENTS":this.comments=R;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=R;break;case "ENGAGEMENT_PANELS":this.engagementPanels=R;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=R;break;case "RICH_GRID_RENDERER":this.richGridRendererData=R;break;case "EXPANDABLE_METADATA":this.expandableMetadata=R;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=R}},
toggleCinematicsActive:function(f){this.cinematicsActive=f},
isMiniplayerActive:function(){return _.vh().resolve(_.MS).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(f){return V99.map(function(R){return f.find(function(u){var O;return(u==null?void 0:(O=u.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===R})}).filter(function(R){return R!==void 0})},
getNonLearningJourneyEngagementPanels:function(f){return f.filter(function(R){var u;return!V99.includes((R==null?void 0:(u=R.engagementPanelSectionListRenderer)==null?void 0:u.targetId)||"")})}}];var YDt;var rk=function(){var f=_.U.apply(this,arguments)||this;f.flexy=!0;f.learningJourney=!0;f.roundedInfoPanel=!0;f.viewTransitionEnabled=_.E("enable_player_resize_transition");f.smallerChatMinHeight=_.E("live_chat_smaller_min_height");f.cinematicTheaterMode=_.E("web_cinematic_theater_mode");f.transparentTheaterMode=_.E("web_transparent_theater_mode");f.cinematicFullscreen=_.E("web_cinematic_fullscreen");f.useLargerMaxPlayerValue=_.E("kevlar_flexy_use_larger_player_value");f.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");
f.isDarkTheme=document.documentElement.hasAttribute("dark");f.theaterLargerPlayer=_.E("web_watch_theater_larger_player");f.defaultCollapsePlaylist=_.E("web_watch_default_collapse_playlist");return f};
_.y(rk,_.U);_.X=rk.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.X.ready=function(){var f=this,R=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",R);this.secondary.addEventListener("scroll",R)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(f){_.E("web_watch_update_narrow_width_killswitch")||_.sP().dispatch(_.Frz(!f.detail.value));this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.X.updateShownItemsFromBinding=function(f){f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value};
_.X.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20493_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20493_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Vy.Object.defineProperties(rk.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var R=0;R<this.data.pageVisualEffects.length;R++)if(f=_.t(this.data.pageVisualEffects[R],_.yl))return R=void 0,(R=f.config)==null?void 0:R.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.learningJourneyEngagementPanels)==null?void 0:f.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.learningJourneyEngagementPanels)==null?void 0:f.find(function(W){var C;return(W==null?void 0:(C=W.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="learning-journey-engagement-panel"});
if(R){var u,O,c,h,l,K,q,F,w;if(f=(F=((q=(l=((h=R==null?void 0:(u=R.engagementPanelSectionListRenderer)==null?void 0:(O=u.content)==null?void 0:(c=O.sectionListRenderer)==null?void 0:c.contents)!=null?h:[])[0])==null?void 0:(K=l.itemSectionRenderer)==null?void 0:K.contents)!=null?q:[])[0])==null?void 0:(w=F.accordionViewModel)==null?void 0:w.onTitleTap){var m=_.H7(f);if(m)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.KU.instance.resolveCommand(m)}}}}}}});
_.Vy.Object.defineProperties(rk,{template:{configurable:!0,enumerable:!0,get:function(){if(YDt===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);YDt=f}f=YDt;return f}}});
rk.prototype.updateMiniplayerIsActiveValue=rk.prototype.updateMiniplayerIsActiveValue;rk.prototype.updateScrollTopValue=rk.prototype.updateScrollTopValue;rk.prototype.updateFullscreenValue=rk.prototype.updateFullscreenValue;rk.prototype.updateTheaterValue=rk.prototype.updateTheaterValue;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],rk.prototype,"ytComponentBehavior",void 0);
_.B([_.z(n65.YtdLearningJourneyWatchBehavior),_.S("design:type",Object)],rk.prototype,"ytdWatchBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],rk.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rk.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],rk.prototype,"playerData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"flexy",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"learningJourney",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"roundedInfoPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"viewTransitionEnabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"smallerChatMinHeight",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"cinematicTheaterMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"transparentTheaterMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"cinematicFullscreen",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"useLargerMaxPlayerValue",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"cinematicFullscreenV2",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"isDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rk.prototype,"theaterLargerPlayer",void 0);_.B([_.I(),_.S("design:type",Object)],rk.prototype,"defaultCollapsePlaylist",void 0);_.B([_.I({selector:_.IA}),_.S("design:type",Object)],rk.prototype,"theaterValue",void 0);
_.B([_.I({selector:_.Mp}),_.S("design:type",Object)],rk.prototype,"fullscreenValue",void 0);_.B([_.I({selector:_.L7}),_.S("design:type",Object)],rk.prototype,"scrollTopValue",void 0);_.B([_.I({selector:_.Jh}),_.S("design:type",Object)],rk.prototype,"miniplayerIsActiveValue",void 0);_.B([_.a4("#ytd-plj-player"),_.S("design:type",HTMLElement)],rk.prototype,"ytdPlayer",void 0);_.B([_.a4("#playlist"),_.S("design:type",HTMLElement)],rk.prototype,"JSC$20493_ytdPlaylistPanelRenderer",void 0);
_.B([_.sK("ytd-comments"),_.S("design:type",HTMLElement)],rk.prototype,"ytdComments",void 0);_.B([_.a4("#primary"),_.S("design:type",HTMLElement)],rk.prototype,"primary",void 0);_.B([_.a4("#secondary"),_.S("design:type",HTMLElement)],rk.prototype,"secondary",void 0);_.B([_.a4("#player-container"),_.S("design:type",HTMLElement)],rk.prototype,"playerContainer",void 0);_.B([_.a4("#cinematics"),_.S("design:type",HTMLElement)],rk.prototype,"JSC$20493_cinematics",void 0);
_.B([_.qM("theaterValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rk.prototype,"updateTheaterValue",null);_.B([_.qM("fullscreenValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rk.prototype,"updateFullscreenValue",null);_.B([_.qM("scrollTopValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rk.prototype,"updateScrollTopValue",null);
_.B([_.qM("miniplayerIsActiveValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rk.prototype,"updateMiniplayerIsActiveValue",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],rk.prototype,"cinematicLightTheme",null);_.B([_.I({reflectToAttribute:!0}),_.T("learningJourneyEngagementPanels"),_.S("design:type",Object),_.S("design:paramtypes",[])],rk.prototype,"hasLearningJourneyPanels",null);
_.B([_.T("learningJourneyEngagementPanels"),_.S("design:type",Object),_.S("design:paramtypes",[])],rk.prototype,"backButtonData",null);rk=_.B([_.e({is:"ytd-watch-learning-journey"})],rk);_.fk.registerService(_.ngn,rk);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("Tm0L3c");
var UQa;var e2K;var GmS=function(){return _.U.apply(this,arguments)||this};
_.y(GmS,_.U);GmS=_.B([_.e({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],GmS);
_.G(GmS,"ytd-ghost-comments-renderer",function(){if(e2K===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);e2K=f}f=e2K;return f},{mode:1});var Bsm;var o6h=function(){return _.U.apply(this,arguments)||this};
_.y(o6h,_.U);o6h=_.B([_.e({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],o6h);
_.G(o6h,"ytd-ghost-watch-metadata-renderer",function(){if(Bsm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);Bsm=f}f=Bsm;return f},{mode:1});var i1=function(){var f=_.U.apply(this,arguments)||this;f.ghostGridRenderer={rows:6};f.roundedInfoPanel=!0;f.hideOfferModules=!0;f.smallerChatMinHeight=_.E("live_chat_smaller_min_height");f.cinematicTheaterMode=_.E("web_cinematic_theater_mode");f.transparentTheaterMode=_.E("web_transparent_theater_mode");f.darkerPanels=_.E("web_watch_darker_panels");f.cinematicFullscreen=_.E("web_cinematic_fullscreen");f.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");f.isDarkTheme=document.documentElement.hasAttribute("dark");
return f};
_.y(i1,_.U);_.X=i1.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.X.ready=function(){var f=this,R=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",R);this.secondary.addEventListener("scroll",R)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(f){this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.X.updateShownItemsFromBinding=function(f){_.E("swatcheroo_direct_use_rich_grid")||(f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value)};
_.X.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20481_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20481_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Vy.Object.defineProperties(i1.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var R=0;R<this.data.pageVisualEffects.length;R++)if(f=_.t(this.data.pageVisualEffects[R],_.yl))return R=void 0,(R=f.config)==null?void 0:R.enableInLightTheme;return!1}}});
i1.prototype.updateMiniplayerIsActiveValue=i1.prototype.updateMiniplayerIsActiveValue;i1.prototype.updateScrollTopValue=i1.prototype.updateScrollTopValue;i1.prototype.updateFullscreenValue=i1.prototype.updateFullscreenValue;i1.prototype.updateTheaterValue=i1.prototype.updateTheaterValue;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],i1.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.M9X.YtdWatchBehavior),_.S("design:type",Object)],i1.prototype,"ytdWatchBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],i1.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],i1.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],i1.prototype,"ghostGridRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],i1.prototype,"playerData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"roundedInfoPanel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"hideOfferModules",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"smallerChatMinHeight",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"cinematicTheaterMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"transparentTheaterMode",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"darkerPanels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"cinematicFullscreen",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"cinematicFullscreenV2",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],i1.prototype,"isDarkTheme",void 0);_.B([_.I({selector:_.IA}),_.S("design:type",Object)],i1.prototype,"theaterValue",void 0);
_.B([_.I({selector:_.Mp}),_.S("design:type",Object)],i1.prototype,"fullscreenValue",void 0);_.B([_.I({selector:_.L7}),_.S("design:type",Object)],i1.prototype,"scrollTopValue",void 0);_.B([_.I({selector:_.Jh}),_.S("design:type",Object)],i1.prototype,"miniplayerIsActiveValue",void 0);_.B([_.a4("#ytd-player"),_.S("design:type",HTMLElement)],i1.prototype,"ytdPlayer",void 0);_.B([_.a4("#playlist"),_.S("design:type",HTMLElement)],i1.prototype,"JSC$20481_ytdPlaylistPanelRenderer",void 0);
_.B([_.a4("#ytd-comments"),_.S("design:type",HTMLElement)],i1.prototype,"ytdComments",void 0);_.B([_.a4("#primary"),_.S("design:type",HTMLElement)],i1.prototype,"primary",void 0);_.B([_.a4("#secondary"),_.S("design:type",HTMLElement)],i1.prototype,"secondary",void 0);_.B([_.a4("#player-container"),_.S("design:type",HTMLElement)],i1.prototype,"playerContainer",void 0);_.B([_.a4("#cinematics"),_.S("design:type",HTMLElement)],i1.prototype,"JSC$20481_cinematics",void 0);
_.B([_.qM("theaterValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i1.prototype,"updateTheaterValue",null);_.B([_.qM("fullscreenValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i1.prototype,"updateFullscreenValue",null);_.B([_.qM("scrollTopValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i1.prototype,"updateScrollTopValue",null);
_.B([_.qM("miniplayerIsActiveValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i1.prototype,"updateMiniplayerIsActiveValue",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],i1.prototype,"cinematicLightTheme",null);
_.G(i1,"ytd-watch-grid",function(){if(UQa===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);UQa=f}f=UQa;return f},{mode:2});_.fk.registerService(_.sqt,i1);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("CF909");
var PTK;var v6=function(){var f=_.U.apply(this,arguments)||this;f.flexy=!0;f.roundedInfoPanel=!0;f.viewTransitionEnabled=_.E("enable_player_resize_transition");f.smallerChatMinHeight=_.E("live_chat_smaller_min_height");f.cinematicTheaterMode=_.E("web_cinematic_theater_mode");f.transparentTheaterMode=_.E("web_transparent_theater_mode");f.cinematicFullscreen=_.E("web_cinematic_fullscreen");f.useLargerMaxPlayerValue=_.E("kevlar_flexy_use_larger_player_value");f.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");
f.isDarkTheme=document.documentElement.hasAttribute("dark");f.defaultCollapsePlaylist=_.E("web_watch_default_collapse_playlist");f.retroModeReduxValue=!1;return f};
_.y(v6,_.U);_.X=v6.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateRetroModeReduxValue=function(){_.E("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.X.ready=function(){var f=this,R=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",R);this.secondary.addEventListener("scroll",R)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(f){_.E("web_watch_update_narrow_width_killswitch")||_.sP().dispatch(_.Frz(!f.detail.value));this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.X.updateShownItemsFromBinding=function(f){f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value};
_.X.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20476_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20476_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Vy.Object.defineProperties(v6.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var R=0;R<this.data.pageVisualEffects.length;R++)if(f=_.t(this.data.pageVisualEffects[R],_.yl))return R=void 0,(R=f.config)==null?void 0:R.enableInLightTheme;return!1}}});
_.Vy.Object.defineProperties(v6,{template:{configurable:!0,enumerable:!0,get:function(){if(PTK===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);PTK=f}f=PTK;return f}}});
v6.prototype.updateRetroModeReduxValue=v6.prototype.updateRetroModeReduxValue;v6.prototype.updateScrollTopValue=v6.prototype.updateScrollTopValue;v6.prototype.updateFullscreenValue=v6.prototype.updateFullscreenValue;v6.prototype.updateTheaterValue=v6.prototype.updateTheaterValue;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.M9X.YtdWatchBehavior),_.S("design:type",Object)],v6.prototype,"ytdWatchBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],v6.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],v6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],v6.prototype,"playerData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"flexy",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"roundedInfoPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"viewTransitionEnabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"smallerChatMinHeight",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"cinematicTheaterMode",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"transparentTheaterMode",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"cinematicFullscreen",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"useLargerMaxPlayerValue",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"cinematicFullscreenV2",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"isDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],v6.prototype,"defaultCollapsePlaylist",void 0);_.B([_.I({selector:_.IA}),_.S("design:type",Object)],v6.prototype,"theaterValue",void 0);_.B([_.I({selector:_.Mp}),_.S("design:type",Object)],v6.prototype,"fullscreenValue",void 0);_.B([_.I({selector:_.L7}),_.S("design:type",Object)],v6.prototype,"scrollTopValue",void 0);
_.B([_.I({selector:_.Jh}),_.S("design:type",Object)],v6.prototype,"miniplayerIsActive",void 0);_.B([_.I({selector:function(f){return f.watch.isWatchRetroMode}}),
_.S("design:type",Object)],v6.prototype,"retroModeReduxValue",void 0);_.B([_.sK("ytd-player"),_.S("design:type",HTMLElement)],v6.prototype,"ytdPlayer",void 0);_.B([_.a4("#playlist"),_.S("design:type",HTMLElement)],v6.prototype,"JSC$20476_ytdPlaylistPanelRenderer",void 0);_.B([_.sK("ytd-comments"),_.S("design:type",HTMLElement)],v6.prototype,"ytdComments",void 0);_.B([_.a4("#primary"),_.S("design:type",HTMLElement)],v6.prototype,"primary",void 0);
_.B([_.a4("#secondary"),_.S("design:type",HTMLElement)],v6.prototype,"secondary",void 0);_.B([_.a4("#player-container"),_.S("design:type",HTMLElement)],v6.prototype,"playerContainer",void 0);_.B([_.a4("#cinematics"),_.S("design:type",HTMLElement)],v6.prototype,"JSC$20476_cinematics",void 0);_.B([_.qM("theaterValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],v6.prototype,"updateTheaterValue",null);
_.B([_.qM("fullscreenValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],v6.prototype,"updateFullscreenValue",null);_.B([_.qM("scrollTopValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],v6.prototype,"updateScrollTopValue",null);_.B([_.qM("retroModeReduxValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],v6.prototype,"updateRetroModeReduxValue",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],v6.prototype,"cinematicLightTheme",null);v6=_.B([_.e({is:"ytd-watch-flexy"})],v6);_.fk.registerService(_.ggD,v6);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("nmfa2d");
var voS;var B6=function(){var f=_.U.apply(this,arguments)||this;f.hidden=!1;f.errorScreen=null;f.playlistData={};return f};
_.y(B6,_.U);_.X=B6.prototype;_.X.getPlayer=function(){return this.ytdPlayer};
_.X.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:_.Jz(["aa","eocs"])}}};
_.X.onActiveChanged=function(){_.sP().dispatch(_.S_t(this.ytPageBehavior.active))};
_.X.playerDataChanged=function(){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData)};
_.X.dataChanged=function(){var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)};
_.X.sizeChanged=function(){var f,R;(R=(f=this.metadata).resize)==null||R.call(f)};
_.X.attached=function(){this.watchController=new _.eu(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.X.detached=function(){_.YD(this.watchController);this.watchController=void 0};
_.X.getPlayerContainer=function(){return this.playerContainer};
_.X.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20428_playlistPanel}};
_.X.provideRenderingData=function(f,R){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=R;break;case "ERROR_SCREEN":this.errorScreen=R!=null?R:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=R;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=R;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=R;break;case "RICH_METADATA":this.richMetadataRowContainer=R;break;case "CLARIFICATION":this.clarificationData=R;break;case "PLAYLIST":this.playlistData=
R!=null?R:{};break;case "MERCH_SHELF":this.merchShelf=R;break;case "TICKET_SHELF":this.ticketShelf=R;break;case "LIMITED_STATE":this.limitedState=R;break;case "DONATION_SHELF":this.donationShelf=R;break;case "ALERTS":this.alerts=R}};
_.Vy.Object.defineProperties(B6.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return!this.hidden&&!!((f=this.data)==null?0:(R=f.contents)==null?0:(u=R.twoColumnWatchNextResults)==null?0:u.conversationBar)}}});
B6.prototype.sizeChanged=B6.prototype.sizeChanged;B6.prototype.dataChanged=B6.prototype.dataChanged;B6.prototype.playerDataChanged=B6.prototype.playerDataChanged;B6.prototype.onActiveChanged=B6.prototype.onActiveChanged;_.B([_.z(_.bm.YtPageBehavior),_.S("design:type",Object)],B6.prototype,"ytPageBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],B6.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],B6.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"playerData",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],B6.prototype,"hidden",void 0);_.B([_.a4("#ytd-player"),_.S("design:type",HTMLElement)],B6.prototype,"ytdPlayer",void 0);_.B([_.a4("#player-container"),_.S("design:type",HTMLElement)],B6.prototype,"playerContainer",void 0);_.B([_.a4("#metadata"),_.S("design:type",Object)],B6.prototype,"metadata",void 0);_.B([_.a4("#playlist"),_.S("design:type",HTMLElement)],B6.prototype,"JSC$20428_playlistPanel",void 0);
_.B([_.I({selector:_.d0X,reflectToAttribute:!0}),_.S("design:type",Object)],B6.prototype,"fixie",void 0);_.B([_.I({selector:_.yWz,reflectToAttribute:!0}),_.S("design:type",Object)],B6.prototype,"singleColumn",void 0);_.B([_.I({selector:function(f){return _.IA(f)&&!_.Mp(f)},
reflectToAttribute:!0}),_.S("design:type",Object)],B6.prototype,"theater",void 0);_.B([_.I({selector:_.Mp,reflectToAttribute:!0}),_.S("design:type",Object)],B6.prototype,"fullscreen",void 0);_.B([_.I({selector:_.xyw}),_.S("design:type",Object)],B6.prototype,"windowSize",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"singleColumnContents",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"errorScreen",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"playlistData",void 0);
_.B([_.I(),_.S("design:type",Object)],B6.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"videoSecondaryInfoRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"richMetadataRowContainer",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"clarificationData",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"ticketShelf",void 0);
_.B([_.I(),_.S("design:type",Object)],B6.prototype,"merchShelf",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"donationShelf",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"limitedState",void 0);_.B([_.I(),_.S("design:type",Object)],B6.prototype,"alerts",void 0);_.B([_.T("playlistData"),_.S("design:type",Object),_.S("design:paramtypes",[])],B6.prototype,"hasPlaylistData",null);
_.B([_.T("data","hidden"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],B6.prototype,"hasChat",null);_.B([_.qM("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],B6.prototype,"onActiveChanged",null);_.B([_.qM("playerData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],B6.prototype,"playerDataChanged",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],B6.prototype,"dataChanged",null);_.B([_.qM("windowSize","singleColumn"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],B6.prototype,"sizeChanged",null);
_.G(B6,"ytd-watch-fixie",function(){if(voS===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);voS=f}f=voS;return f},{mode:1});_.fk.registerService(_.$nq,B6);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("xwEKAe");
var CR9=function(f){var R=_.Qu();if(R.getFlag(202))R=R.getFlag(201);else{var u;R=(f==null?void 0:(u=f.config)==null?void 0:u.settingOnByDefault)!==void 0?f.config.settingOnByDefault:!_.E("web_shorts_cinematics_disabled_by_default")}return R},yRe=function(f){var R=_.Qu();
_.W_(0,201,f);_.W_(0,202,!0);R.save()},doX=function(f){return(f=_.ZM2(f))?_.kke(f):0},N02=function(f){return f.shorts.isSmallScreenSqueezeback},LSe=function(f){return f.shorts.isPlaybackStarted},b29=function(f,R,u,O){f=R-f;
u=O-u;return Math.sqrt(f*f+u*u)},p$l=function(f,R){f&&_.vh().resolve(_.rv).resolveCommand(f,{forceClickLogging:!0,
form:{element:R}})},j2t=function(f,R,u,O){f=R-f;
u=O-u;return Math.sqrt(f*f+u*u)},Dom=function(f,R){f&&_.vh().resolve(_.rv).resolveCommand(f,{forceClickLogging:!0,
form:{element:R}})},JRe=function(f){f.unsubscribeFromStore=_.aC(f.storeWithShorts,_.mWS,function(R){f.initOrDisposeActiveModules(R);
!R&&f.storeWithShorts.getState().shorts.isFullscreen&&(_.ru(document.documentElement),f.storeWithShorts.dispatch(_.E8X(!1)))});
f.initOrDisposeActiveModules(_.mWS(f.storeWithShorts.getState()))},zX5=function(f){var R=_.vh().resolve(_.AC);
R.rootElement=f;JRe(R)},T0l=function(){return _.vh().resolve(_.AC).dismissedIndices},H2N=function(f){return _.OP({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:f}})},IUh=function(f){return _.OP({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:f}})},XD=function(f){return _.OP({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:f}})},hI=function(f,R){if(f instanceof hI)this.array_=f.array_;
else{var u;if(u=_.Rk(f))a:{for(var O=u=0;O<f.length;O++){if(!_.Rk(f[O])||u>0&&f[O].length!=u){u=!1;break a}for(var c=0;c<f[O].length;c++)if(typeof f[O][c]!=="number"){u=!1;break a}u==0&&(u=f[O].length)}u=u!=0}if(u)this.array_=_.iB(f);else if(f instanceof _.K8)this.array_=Mjt(f.height,f.width);else if(typeof f==="number"&&typeof R==="number"&&f>0&&R>0)this.array_=Mjt(f,R);else throw Error("Xl");}this.size_=new _.K8(this.array_[0].length,this.array_.length)},PRX=function(f,R,u){for(var O=0;O<f.getSize().height;O++)for(var c=
0;c<f.getSize().width;c++)R.call(u,f.array_[O][c],O,c,f)},Uoa=function(f,R){var u=new hI(f.getSize());
PRX(f,function(O,c,h){u.array_[c][h]=R.call(void 0,O,c,h,f)});
return u},Mjt=function(f,R){for(var u=[],O=0;O<f;O++){u[O]=[];
for(var c=0;c<R;c++)u[O][c]=0}return u};
hI.prototype.add=function(f){if(!_.nkN(this.size_,f.getSize()))throw Error("Yl");return Uoa(this,function(R,u,O){return R+f.array_[u][O]})};
hI.prototype.equals=function(f,R){if(this.size_.width!=f.size_.width||this.size_.height!=f.size_.height)return!1;R=R||0;for(var u=0;u<this.size_.height;u++)for(var O=0;O<this.size_.width;O++)if(!_.sK9(this.array_[u][O],f.array_[u][O],R))return!1;return!0};
hI.prototype.getSize=function(){return this.size_};
var ZE=function(f,R,u){return R>=0&&R<f.size_.height&&u>=0&&u<f.size_.width?f.array_[R][u]:null};
hI.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ly=function(f,R,u,O){if(!(R>=0&&R<f.size_.height&&u>=0&&u<f.size_.width))throw Error("Zl`"+R+"`"+u+"`"+f.size_.height+"`"+f.size_.width);f.array_[R][u]=O};
hI.prototype.multiply=function(f){if(f instanceof hI){if(this.size_.width!=f.getSize().height)throw Error("$l");return eXt(this,f)}if(typeof f==="number")return GEm(this,f);throw Error("am");};
var eXt=function(f,R){var u=new hI(f.size_.height,R.getSize().width);PRX(u,function(O,c,h){for(var l=O=0;l<this.size_.width;l++)O+=ZE(this,c,l)*ZE(R,l,h);ly(u,c,h,O)},f);
return u},GEm=function(f,R){return Uoa(f,function(u){return u*R})};var B0S=new _.Y("inlineSurveyRenderer");var of2=new _.Y("interstitialViewModel");var xo2=new _.Y("reelNavigateCommand");var Stz=new _.Y("reelNonVideoContentDismissalCommand");var $om=new _.Y("showReelsCommentsOverlayCommand");var gft=new _.Y("shortsSuggestedActionViewModel");var s2h=new _.Y("videoInteractionPopUpRenderer");var nfK;var Vjm;var YtN;var k0=function(){var f=_.U.apply(this,arguments)||this;f.ctaVisualElement=null;f.currentCsn=null;return f};
_.y(k0,_.U);_.X=k0.prototype;_.X.onDataChanged=function(){this.maybeLogShows()};
_.X.computeButtonShape=function(){var f=this;if(this.data)return{buttonText:_.$Z(this.data.text),state:"active",onTap:function(){f.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.X.maybeCreateCtaVe=function(){var f;if((f=this.data)!=null&&f.badgeInteractionLogging){var R;if(f=(R=this.data.badgeInteractionLogging)==null?void 0:R.trackingParams)this.ctaVisualElement=_.t4(f)}};
_.X.maybeLogClicks=function(){this.currentCsn=_.z4(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Sa(this.currentCsn,this.ctaVisualElement)};
_.X.maybeLogShows=function(){this.currentCsn=_.z4(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.op(this.currentCsn,[this.ctaVisualElement])};
_.X.onTap=function(){var f;if((f=this.data)!=null&&f.onClickCommand){var R;this.ytComponentBehavior.resolveCommand((R=this.data)==null?void 0:R.onClickCommand);this.maybeLogClicks()}};
k0.prototype.onDataChanged=k0.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],k0.prototype,"ytComponentBehavior",void 0);_.B([_.I({}),_.S("design:type",Object)],k0.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k0.prototype,"onDataChanged",null);
k0=_.B([_.e({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],k0);
_.G(k0,"ytd-shopping-overlay-badge-renderer",function(){if(YtN!==void 0)return YtN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return YtN=f},{mode:1});_.ii(_.$lA,"reel-sound-metadata-view-model",{props:{data:_.v7,overlayDensity:_.v7}});_.ii(_.TNw,"player-disclosure-view-model",{props:{data:_.SG}});_.ii(_.w$I,"pivot-button-view-model",{props:{data:_.v7,className:_.v7}});_.ii(_.mok,"reel-action-bar-view-model",{props:{data:_.SG,buttonShapeOverrideables:_.SG}});_.ii(_.nf(function(f){function R(){var mP,NX,jt,Jn,zq=(NX=_.t((mP=g())==null?void 0:mP.command,_.QE))==null?void 0:(jt=NX.item)==null?void 0:(Jn=jt.notificationTextRenderer)==null?void 0:Jn.successResponseText;if(zq)_.OJ(O.value,"yt-open-popup-action",[_.YZ(zq),O.value]);else if(x())p$l(x(),d.value);else{var St;p$l((St=g())==null?void 0:St.command,d.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var u=f.data;var O=_.sW();f=_.Z(_.qK("0px",void 0,"O1N7Ce"));var c=f.next().value,h=f.next().value;f=_.Z(_.qK("0px",void 0,"tTDBdb"));var l=f.next().value,K=f.next().value;f=_.Z(_.qK(0,void 0,"fh8Zkc"));var q=f.next().value,F=f.next().value;f=_.Z(_.qK(0,void 0,"CUjqGd"));var w=f.next().value,m=f.next().value,W=function(){var mP;if(((mP=_.Xk())==null?void 0:mP.getPlayerState())!==-1){O.value.style.display="inherit";var NX;(NX=_.Xk())==null||NX.removeEventListener("onStateChange",W)}C()},C=function(){var mP=
document.querySelector("video");
if(mP){F(mP.getBoundingClientRect().width);m(mP.getBoundingClientRect().height);var NX;h((mP==null?void 0:(NX=mP.style)==null?void 0:NX.left)||"0px");var jt;K((mP==null?void 0:(jt=mP.style)==null?void 0:jt.top)||"0px")}};
_.pc(function(){var mP,NX,jt;if(((mP=_.Xk())==null?void 0:mP.getPlayerState())===-1&&Math.round(((jt=(NX=_.Xk())==null?void 0:NX.getVideoAspectRatio())!=null?jt:0)*100)!==Math.round(q()/w()*100)){O.value.style.display="none";var Jn,zq;m(q()/((zq=(Jn=_.Xk())==null?void 0:Jn.getVideoAspectRatio())!=null?zq:1))}},"VB5m5");
_.NW(function(){var mP;(mP=_.Xk())==null||mP.addEventListener("onStateChange",W);window.addEventListener("resize",C);C();var NX,jt,Jn;if((Jn=(NX=u())==null?void 0:(jt=NX.regions)==null?void 0:jt[0])==null||!Jn.transformationMatrix)throw Error("em");var zq;if((zq=u())==null?0:zq.trackingParams){var St;_.wR().graftServerVe((St=u().trackingParams)!=null?St:"")}_.jN(function(){var Gq;(Gq=_.Xk())==null||Gq.removeEventListener("onStateChange",W);window.removeEventListener("resize",C)})});
var d=_.sW(),p=_.Z(_.qK(!1,void 0,"TPsTce"));f=p.next().value;var J=p.next().value,M=_.Z(_.qK(!1,void 0,"Uz6CHf"));p=M.next().value;var P=M.next().value,g=function(){var mP;return _.t((mP=u())==null?void 0:mP.popUp,s2h)},x=function(){var mP;
return(mP=u())==null?void 0:mP.command},fh=function(){return _.t(x(),_.Fk)!==void 0};
M=_.Ff(function(){R();return!1});
var V={},ZD={};return _.a("yt-player-overlay-video-interactions",{el:O},_.a("svg",{"on:mouseover":_.Ff(function(){fh()&&J(!0);P(!0);return!1}),
"on:mouseout":_.Ff(function(){J(!1);P(!1);return!1}),
"on:keydown":_.Ff(function(mP){mP.key==="Enter"&&R();return!1}),
"on:focus":_.Ff(function(){fh()&&J(!0);return!1}),
"on:blur":_.Ff(function(){fh()&&J(!1);return!1}),
el:d,tabindex:0,"aria-label":function(){var mP;return(mP=u())==null?void 0:mP.a11yString},
id:"player-overlay-video-interaction-svg",class:_.KL("yt-player-overlay-video-interactions__interactions-svg",(V["yt-player-overlay-video-interactions__interactions-svg-hover"]=f,V),(ZD["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=p,ZD)),role:"button",style:function(){var mP,NX,jt,Jn=(jt=(mP=u())==null?void 0:(NX=mP.regions)==null?void 0:NX[0].transformationMatrix)!=null?jt:[];mP=q();NX=w();jt=[];for(var zq=0,St=-1;zq<Jn.length;zq++)zq%3===0&&(St++,jt[St]=[]),jt[St].push(Jn[zq]);
Jn=new hI(jt);jt=new hI([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);jt=Jn.multiply(jt);Jn=new hI([[0,0],[0,0],[0,0],[0,0]]);for(zq=0;zq<jt.getSize().width;zq++){St=ZE(jt,0,zq);var Gq=ZE(jt,1,zq);if(St===null||Gq===null)throw Error("dm`"+(zq+1).toString());ly(Jn,zq,0,St*mP);ly(Jn,zq,1,Gq*NX)}mP=ZE(Jn,0,0);zq=ZE(Jn,1,0);NX=ZE(Jn,0,1);St=ZE(Jn,1,1);if(mP===null||zq===null||NX===null||St===null)throw Error("bm");jt=b29(mP,zq,NX,St);Gq=ZE(Jn,3,0);Jn=ZE(Jn,3,1);if(Gq===null||Jn===null)throw Error("cm");Jn=b29(mP,
Gq,NX,Jn);St=(Number((St*-1).toFixed(2))-Number((NX*-1).toFixed(2)))/(Number(zq.toFixed(2))-Number(mP.toFixed(2)));Gq=Math.atan(St)*180/Math.PI;zq=St===Number.POSITIVE_INFINITY?-90:St===Number.NEGATIVE_INFINITY?90:Object.is(St,-0)?180:St===0?0:St>0?Gq*-1:mP<zq?Gq*-1:Math.abs(Gq)+180;return"left:calc("+mP+"px + "+c()+"); top:calc("+(NX+"px + "+l()+"); width:")+(jt+"px; height:")+(Jn+"px; transform:rotate(")+(zq+"deg);")},
"on:click":M}))},"Gi"),"yt-player-overlay-video-interactions",{props:{data:_.SG}});_.ii(_.Ua5,"yt-reel-metapanel-view-model",{props:{data:_.SG,overlayDensity:_.SG}});var vfm=_.nf(function(f){var R=f.children;var u=f.region;var O=_.sW();f=_.Z(_.qK("0px",void 0,"H14H5c"));var c=f.next().value,h=f.next().value;f=_.Z(_.qK("0px",void 0,"Mn8Uvf"));var l=f.next().value,K=f.next().value;f=_.Z(_.qK(0,void 0,"QQCIqc"));var q=f.next().value,F=f.next().value;f=_.Z(_.qK(0,void 0,"HyEvh"));var w=f.next().value,m=f.next().value,W=function(){var J;if(((J=_.Xk())==null?void 0:J.getPlayerState())!==-1){O.value.style.display="inherit";var M;(M=_.Xk())==null||M.removeEventListener("onStateChange",
W)}C()},C=function(){var J=document.querySelector("video");
if(J){F(J.getBoundingClientRect().width);m(J.getBoundingClientRect().height);var M;h((J==null?void 0:(M=J.style)==null?void 0:M.left)||"0px");var P;K((J==null?void 0:(P=J.style)==null?void 0:P.top)||"0px")}};
_.pc(function(){var J,M,P;if(((J=_.Xk())==null?void 0:J.getPlayerState())===-1&&Math.round(((P=(M=_.Xk())==null?void 0:M.getVideoAspectRatio())!=null?P:0)*100)!==Math.round(q()/w()*100)){O.value.style.display="none";var g,x;m(q()/((x=(g=_.Xk())==null?void 0:g.getVideoAspectRatio())!=null?x:1))}},"DYkOCf");
var d=function(){C()},p;
_.NW(function(){C();var J;if(!(u==null?0:(J=u())==null?0:J.transformationMatrix))throw Error("em");var M;(M=_.Xk())==null||M.addEventListener("onStateChange",W);window.ResizeObserver?(p=new ResizeObserver(_.mC(d,17)),p.observe(O.value)):window.addEventListener("resize",C);_.jN(function(){var P;(P=_.Xk())==null||P.removeEventListener("onStateChange",W);p?p.disconnect():window.removeEventListener("resize",C)})});
return _.a("yt-overlay-sticker",{el:O,style:function(){var J,M,P=(M=u==null?void 0:(J=u())==null?void 0:J.transformationMatrix)!=null?M:[];J=q();M=w();for(var g=[],x=0,fh=-1;x<P.length;x++)x%3===0&&(fh++,g[fh]=[]),g[fh].push(P[x]);P=new hI(g);g=new hI([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);g=P.multiply(g);P=new hI([[0,0],[0,0],[0,0],[0,0]]);for(x=0;x<g.getSize().width;x++){fh=ZE(g,0,x);var V=ZE(g,1,x);if(fh===null||V===null)throw Error("dm`"+(x+1).toString());ly(P,x,0,fh*J);ly(P,x,1,V*M)}J=ZE(P,0,0);x=
ZE(P,1,0);M=ZE(P,0,1);fh=ZE(P,1,1);if(J===null||x===null||M===null||fh===null)throw Error("bm");g=j2t(J,x,M,fh);V=ZE(P,3,0);P=ZE(P,3,1);if(V===null||P===null)throw Error("cm");P=j2t(J,V,M,P);fh=(Number((fh*-1).toFixed(2))-Number((M*-1).toFixed(2)))/(Number(x.toFixed(2))-Number(J.toFixed(2)));V=Math.atan(fh)*180/Math.PI;x=fh===Number.POSITIVE_INFINITY?-90:fh===Number.NEGATIVE_INFINITY?90:Object.is(fh,-0)?180:fh===0?0:fh>0?V*-1:J<x?V*-1:Math.abs(V)+180;return"left:calc("+J+"px + "+c()+"); top:calc("+
(M+"px + "+l()+"); width:")+(g+"px; height:")+(P+"px; transform:rotate(")+(x+"deg);")},
class:"ytOverlayStickerHost"},R)},"Hi");_.ii(_.nf(function(f){function R(){var C,d,p,J,M=(d=_.t((C=q())==null?void 0:C.command,_.QE))==null?void 0:(p=d.item)==null?void 0:(J=p.notificationTextRenderer)==null?void 0:J.successResponseText;if(M)_.OJ(O.value,"yt-open-popup-action",[_.YZ(M),O.value]);else if(F())Dom(F(),O.value);else{var P;Dom((P=q())==null?void 0:P.command,O.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var u=f.data;_.NW(function(){var C;if((C=u())==null?0:C.trackingParams){var d;_.wR().graftServerVe((d=u().trackingParams)!=null?d:"")}});
var O=_.sW(),c=_.Z(_.qK(!1,void 0,"Gjm8Mb"));f=c.next().value;var h=c.next().value,l=_.Z(_.qK(!1,void 0,"JN7Pdb"));c=l.next().value;var K=l.next().value,q=function(){var C;return _.t((C=u())==null?void 0:C.popUp,s2h)},F=function(){var C;
return(C=u())==null?void 0:C.command},w=function(){return _.t(F(),_.Fk)!==void 0};
l=_.Ff(function(){R();return!1});
var m={},W={};return _.a("yt-player-overlay-interaction",null,_.a(vfm,{region:function(){var C,d;return(C=u())==null?void 0:(d=C.regions)==null?void 0:d[0]}},_.a("svg",{"on:mouseover":_.Ff(function(){w()&&h(!0);
K(!0);return!1}),
"on:mouseout":_.Ff(function(){h(!1);K(!1);return!1}),
"on:keydown":_.Ff(function(C){C.key==="Enter"&&R();return!1}),
"on:focus":_.Ff(function(){w()&&h(!0);return!1}),
"on:blur":_.Ff(function(){w()&&h(!1);return!1}),
el:O,tabindex:0,"aria-label":function(){var C;return(C=u())==null?void 0:C.a11yString},
id:"player-overlay-video-interaction-svg",class:_.KL("ytPlayerOverlayInteractionInteractionsSvg",(m.ytPlayerOverlayInteractionInteractionsSvgHover=f,m),(W.ytPlayerOverlayInteractionInteractionsSvgHideOutline=c,W)),role:"button","on:click":l})))},"Ii"),"yt-player-overlay-interaction",{props:{data:_.SG}});var K7=function(){var f=_.U.apply(this,arguments)||this;f.showScrubber=!1;f.isWatchWhileMode=!1;f.enableRemixButton=_.E("web_enable_shorts_remix_handoff_ep");f.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");f.enableNewStickers=_.E("use_shorts_sticker_overlay_web");f.anchoredPanelActive=!1;f.enableLivingroomLayout=_.E("reels_enable_livingroom_layout");f.enablePlayerMetadataContainer=_.E("reels_web_enable_metadata_container");f.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");
f.isSqueezebackActive=!1;f.smallScreenSqueezeback=!1;f.isPlayerStarted=!1;f.overlayDensity=0;f.isOverlay=!1;f.isImmersive=!1;f.isImmersiveHorizontal=!1;f.isFullscreen=!1;f.onWindowResized=function(){var R;f.set("isImmersive",((R=window.getComputedStyle(f.hostElement))==null?void 0:R.getPropertyValue("--immersive-mode-on"))==="1");f.set("isImmersiveHorizontal",f.isImmersive&&f.enableLivingroomLayout&&!f.isWatchWhileMode)};
return f};
_.y(K7,_.U);_.X=K7.prototype;_.X.updateIsOverlay=function(f){this.isOverlay=f.detail.value};
_.X.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.E("web_enable_flexible_overlay")||_.E("web_enable_format_first")||_.E("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.X.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.X.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.X.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.X.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.X.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.X.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.X.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.uZ("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.uZ("reels_action_justified_content")||"flex-start")};
_.X.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.X.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Fa("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Fa("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Fa("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Fa("SHARE_LABEL",
void 0,"Share")}}});_.E("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Fa("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()};
_.X.setEmptyOverlayMetadata=function(){_.E("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}))};
_.Vy.Object.defineProperties(K7.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.infoPanel)}}});
K7.prototype.onIsActiveChanged=K7.prototype.onIsActiveChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],K7.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],K7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],K7.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],K7.prototype,"isActive",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],K7.prototype,"hidden",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],K7.prototype,"useShortsIcon",void 0);_.B([_.I({value:"left"}),_.S("design:type",String)],K7.prototype,"buttonTooltipPosition",void 0);
_.B([_.I({value:_.E("reels_enable_livingroom_layout")?"top":"left"}),_.S("design:type",String)],K7.prototype,"likeButtonTooltipPosition",void 0);_.B([_.I({value:"none"}),_.S("design:type",String)],K7.prototype,"textTransform",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"showScrubber",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"isWatchWhileMode",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.infoPanel"),_.S("design:type",Object),_.S("design:paramtypes",[])],K7.prototype,"hasInfoPanel",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"enableRemixButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"enableAnchoredPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"enableNewStickers",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"anchoredPanelActive",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"enableLivingroomLayout",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],K7.prototype,"enablePlayerMetadataContainer",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"enableSqueezebackPanels",void 0);
_.B([_.I({selector:_.LSD,reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"isSqueezebackActive",void 0);_.B([_.I({selector:N02,reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"smallScreenSqueezeback",void 0);_.B([_.I({selector:LSe}),_.S("design:type",Object)],K7.prototype,"isPlayerStarted",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"overlayDensity",void 0);_.B([_.I(),_.S("design:type",Object)],K7.prototype,"isOverlay",void 0);
_.B([_.I({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.S("design:type",Boolean)],K7.prototype,"isShortsOverlay",void 0);_.B([_.I(),_.S("design:type",Object)],K7.prototype,"isImmersive",void 0);_.B([_.I(),_.S("design:type",Object)],K7.prototype,"isImmersiveHorizontal",void 0);_.B([_.I({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.S("design:type",Boolean)],K7.prototype,"isShortsImmersive",void 0);
_.B([_.I({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.S("design:type",Object)],K7.prototype,"buttonOverride",void 0);_.B([_.I({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.S("design:type",Object)],K7.prototype,"actionBarButtonOverride",void 0);_.B([_.I({selector:_.AF,reflectToAttribute:!0}),_.S("design:type",Object)],K7.prototype,"isFullscreen",void 0);
_.B([_.qM("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K7.prototype,"onIsActiveChanged",null);K7=_.B([_.e({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],K7);
_.G(K7,"ytd-reel-player-overlay-renderer",function(){if(Vjm!==void 0)return Vjm;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <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="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Vjm=f},{mode:1});var i25;var qP=function(){var f=_.U.apply(this,arguments)||this;f.videoDuration=0;f.playedTime=0;f.isActive=!1;f.JSC$19690_playerEvents=new Map;return f};
_.y(qP,_.U);_.X=qP.prototype;_.X.created=function(){this.JSC$19690_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19690_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.X.attached=function(){this.getPlayerAndInitializeListeners()};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19690_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ks(this,this.onPageChanged))};
_.X.getPlayerAndInitializeListeners=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return R=_.Vm(),R?_.A(u,R.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ks(f,f.onPageChanged)),u.jumpTo(0));f.player=u.yieldResult;f.initializePlayerListeners();_.KG(u)})};
_.X.onPageChanged=function(f){var R=this;return _.k(function(u){if(u.nextAddress==1)return f.detail.newPageType!=="ytd-shorts"?u.return():_.A(u,_.YG().getPlayerPromise(),2);R.player=u.yieldResult;R.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ks(R,R.onPageChanged));_.KG(u)})};
_.X.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19690_playerEvents)};
_.X.onVideoDataChange=function(f){var R=this;return _.k(function(u){if(!R.player||f.type!=="newdata")return u.return();R.videoDuration=_.E("web_shorts_use_progress_state_for_gapless")?R.player.getProgressState(f.playertype).seekableEnd:R.player.getDuration(f.playertype);R.playedTime=0;_.KG(u)})};
_.X.onVideoProgress=function(f){var R=this,u,O;return _.k(function(c){if(!R.player)return c.return();u=R.player.getPresentingPlayerType();O=R.player.getPlayerState();R.videoDuration=_.E("web_shorts_use_progress_state_for_gapless")?R.player.getProgressState(u).seekableEnd:R.player.getDuration(u);R.playedTime=O===0?R.videoDuration:f;_.KG(c)})};
_.X.getPercentPlayed=function(f,R){return f?_.Jd(R/f,0,1):0};
_.Vy.Object.defineProperties(qP.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 f="";return f=this.videoDuration&&this.playedTime?f+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):f+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],qP.prototype,"componentBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],qP.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qP.prototype,"player",void 0);_.B([_.I(),_.S("design:type",Object)],qP.prototype,"videoDuration",void 0);_.B([_.I(),_.S("design:type",Object)],qP.prototype,"playedTime",void 0);_.B([_.I(),_.S("design:type",Object)],qP.prototype,"isActive",void 0);
_.B([_.T("videoDuration","playedTime"),_.S("design:type",Number),_.S("design:paramtypes",[])],qP.prototype,"percentPlayed",null);_.B([_.T("videoDuration","playedTime"),_.S("design:type",Object),_.S("design:paramtypes",[])],qP.prototype,"percentPlayedStyle",null);_.B([_.T("videoDuration","isActive"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],qP.prototype,"hideProgressBar",null);
_.G(qP,"ytd-progress-bar-line",function(){if(i25===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);i25=f}f=i25;return f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var rR9;_.hS(_.T6D,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var AI=function(){var f=_.U.apply(this,arguments)||this;f.playerState=null;f.isMuted=!1;f.shortsModernControlsEnabled=_.E("web_shorts_modern_controls");f.volumeControlsOrientationState="vertical_down";f.overlayDensity=0;f.JSC$19693_playerEvents=new Map;return f};
_.y(AI,_.U);_.X=AI.prototype;_.X.created=function(){this.JSC$19693_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19693_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.X.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.dx(28662);this.playPauseButtonClientVE=_.dx(36842);this.fullscreenButtonToggleOffClientVE=_.dx(222256);this.fullscreenButtonToggleOnClientVE=_.dx(222257);var f=_.z4(),R=_.Jj();f&&R&&(_.E("combine_ve_grafts")?(_.c1(_.wR(),this.muteButtonClientVE,R),_.c1(_.wR(),this.playPauseButtonClientVE,R)):_.GT(f,R,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19693_playerEvents),this.player=null)};
_.X.getPlayerAndInitializeListeners=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return R=_.Vm(),R?_.A(u,R.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ks(f,f.onPageChanged)),u.jumpTo(0));f.player=u.yieldResult;f.initializePlayerListeners();_.KG(u)})};
_.X.onPageChanged=function(f){var R=this;return _.k(function(u){if(u.nextAddress==1)return f.detail.newPageType!=="ytd-shorts"?u.return():_.A(u,_.YG().getPlayerPromise(),2);R.player=u.yieldResult;R.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ks(R,R.onPageChanged));_.KG(u)})};
_.X.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19693_playerEvents)};
_.X.onPlayerStateChange=function(f){this.playerState=f};
_.X.onPlayerVolumeChange=function(f){this.isMuted=f.muted};
_.X.onPlayPauseButtonClick=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.YG().getPlayerPromise(),2);R=O.yieldResult;(u=_.z4())&&f.playPauseButtonClientVE&&_.Sa(u,f.playPauseButtonClientVE);R.getPlayerState()!==1?R.playVideo():R.pauseVideo();_.KG(O)})};
_.X.computePlayPauseIcon=function(f){return f===2||f===-1||f===5?_.E("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.E("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.E("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.X.computeFullscreenLabel=function(f){return f?_.Fa("FULLSCREEN_EXIT_LABEL"):_.Fa("FULLSCREEN_ENTER_LABEL")};
_.X.computePlayPauseLabel=function(f){return f===1||f===3?_.Fa("PLAYER_LABEL_PAUSE"):_.Fa("PLAYER_LABEL_PLAY")};
_.X.onMuteButtonClick=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.YG().getPlayerPromise(),2);R=O.yieldResult;(u=_.z4())&&f.muteButtonClientVE&&_.Sa(u,f.muteButtonClientVE);R.isMuted()?R.unMute(!0):R.mute(!0);_.KG(O)})};
_.X.computeMuteIcon=function(f){return f?"miniplayer:volume-off":"miniplayer:volume-up"};
_.X.computeMuteLabel=function(f){return f?_.Fa("PLAYER_LABEL_UNMUTE"):_.Fa("PLAYER_LABEL_MUTE")};
_.X.onFullscreenButtonClick=function(){var f=_.z4();f&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Sa(f,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Sa(f,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.t02()};
_.Vy.Object.defineProperties(AI.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var f=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(){f.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.E("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.E("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.E("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.E("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],AI.prototype,"componentBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],AI.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],AI.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AI.prototype,"player",void 0);_.B([_.I(),_.S("design:type",Object)],AI.prototype,"playerState",void 0);_.B([_.I(),_.S("design:type",Object)],AI.prototype,"isMuted",void 0);
_.B([_.I({computed:"computePlayPauseIcon(playerState)"}),_.S("design:type",String)],AI.prototype,"playPauseIcon",void 0);_.B([_.I({computed:"computeMuteIcon(isMuted)"}),_.S("design:type",String)],AI.prototype,"muteIcon",void 0);_.B([_.I({selector:_.AF}),_.S("design:type",Boolean)],AI.prototype,"isFullscreen",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],AI.prototype,"shortsModernControlsEnabled",void 0);
_.B([_.I(),_.S("design:type",Object)],AI.prototype,"volumeControlsOrientationState",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],AI.prototype,"overlayDensity",void 0);_.B([_.T("playerState"),_.S("design:type",Object),_.S("design:paramtypes",[])],AI.prototype,"playPauseButtonData",null);_.B([_.T("isFullscreen"),_.S("design:type",Object),_.S("design:paramtypes",[])],AI.prototype,"fullscreenButtonData",null);
_.B([_.T("isFullscreen"),_.S("design:type",String),_.S("design:paramtypes",[])],AI.prototype,"fullscreenIcon",null);
_.G(AI,"ytd-shorts-player-controls",function(){if(rR9===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);rR9=f}f=rR9;return f},{mode:1});var fyl;_.ii(_.M9I,"yt-interstitial-view-model",{props:{data:_.SG}});var R$w=_.nf(function(f){var R=f.data;return _.a("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.a("h1",{class:"reelWatchBreakViewModelHostTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("h2",{class:"reelWatchBreakViewModelHostBody"},_.a(_.YO,{text:function(){return R().body},
isOverlay:!0})),_.a(_.y5,{data:function(){return R().buttons}},{buttonViewModel:function(u,O){return _.a("div",{class:function(){return O()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.a(_.TS,{data:u.data}))}}))},"Ji");
R$w.idomCompat=!0;_.ii(R$w,"reel-watch-break-view-model",{props:{data:_.SG}});var a_=function(){return _.U.apply(this,arguments)||this};
_.y(a_,_.U);a_.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}}};
_.Vy.Object.defineProperties(a_.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.t((f=this.data)==null?void 0:f.renderer,B0S)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.t((f=this.data)==null?void 0:f.renderer,of2)}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],a_.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],a_.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.renderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],a_.prototype,"isSurvey",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.renderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],a_.prototype,"isInterstitialViewModel",null);a_=_.B([_.e({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],a_);
_.G(a_,"ytd-reel-non-video-content-renderer",function(){if(fyl!==void 0)return fyl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return fyl=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var uJN;_.ii(_.zz9,"desktop-shorts-player-controls",{});var FD=function(){var f=_.U.apply(this,arguments)||this;f.isPlayerPaused=!1;f.isPlayerStarted=!1;f.showPlayerControls=!1;f.showScrubber=!1;f.autoHideJobId=0;f.modern=_.E("web_button_rework");f.overlayType=_.uZ("web_shorts_expanded_overlay_type");f.panelData=void 0;f.isWatchWhileMode=!1;f.hasError=!1;f.panelShowDelayMs=1;f.scrubberComponent={};f.useStamper=_.E("web_shorts_enable_title_deflation");f.isFullscreen=!1;f.shouldHideOverlay=!1;f.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");
f.enablePersistentAnchoredPanel=_.E("desktop_shorts_v2_persistent_anchored_panel");f.hideWatchWhilePanel=_.E("web_shorts_hide_watch_while_panel");f.isPersistentPanelActive=!1;f.anchoredPanelActive=!1;f.isShortsPipActive=!1;f.smallScreenSqueezeback=!1;f.enableFlexibleOverlay=_.E("web_enable_flexible_overlay");f.enableRemixButton=_.E("web_enable_shorts_remix_handoff_ep");f.overlayDensity=0;f.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
f.onWindowResized=function(){_.UU(f,"calculateOverlayDensity",function(){f.calculateOverlayDensity()},100)};
return f};
_.y(FD,_.U);_.X=FD.prototype;_.X.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.X.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.X.shouldRenderOverlayControl=function(f){return!this.useStamper&&this.isVideoContent(f)};
_.X.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var f=_.vh().resolve(_.yT);this.isWatchWhileMode&&(_.E("web_enable_shorts_new_carousel")?_.JA.addJob(function(){f.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):f.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.X.handleShowReelsCommentsOverlayCommand=function(f){f=_.t(f,$om);this.isActive&&(f==null?0:f.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))};
_.X.updateEngagementPanelVisibility=function(f,R){f&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:R?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:f}})};
_.X.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.X.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.vh().resolve(_.AC).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.X.handleWatchWhilePanelScrimClick=function(){var f=_.vh().resolve(_.yT);this.activeWatchWhilePanel&&(f.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.X.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.X.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.E("web_enable_shorts_new_carousel")?0:void 0}}};
_.X.handlePlayerClick=function(f){var R=this,u,O;if((O=(u=window).matchMedia)!=null&&O.call(u,"(any-pointer: coarse)").matches||!f)this.showPlayerControls=!0,_.JA.cancelJob(this.autoHideJobId),this.autoHideJobId=_.dJ(_.JA,function(){R.showPlayerControls=!1},4E3)};
_.X.isFirstReel=function(){return this.index===0};
_.X.handleMouseenter=function(){_.JA.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.X.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.X.handleScrubberEnter=function(){this.showScrubber=!0};
_.X.handleScrubberLeave=function(){this.showScrubber=!1};
_.X.maybeLogNonDefaultAspectRatio=function(){var f;(f=this.data)!=null&&f.thumbnail&&this.isActive&&.5625!==doX(this.data.thumbnail)&&_.x3q("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.X.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var f=document.querySelector("#shorts-container");if(f){f=f.offsetWidth/2-this.playerContainer.offsetWidth/2;f=f>=368?1:f>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&f===1&&(f=0);this.isPersistentPanelActive&&(f=0);window.innerWidth<=599&&(f=2);this.overlayDensity=f;var R;(R=this.onOverlayDensityChanged)==null||R.call(this,this.index,this.overlayDensity)}}};
_.X.onOverlayDensityChange=function(){var f;(f=this.onOverlayDensityChanged)==null||f.call(this,this.index,this.overlayDensity);(f=_.b(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&f.set("overlayDensity",this.overlayDensity);if(f=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))f.overlayDensity=this.overlayDensity};
_.X.isVideoContent=function(f){_.vh().resolve(_.AC);return!!_.t(f,_.Ey)};
_.X.isNonVideoContent=function(f){_.vh().resolve(_.AC);return!!_.t(f,_.Dl)};
_.X.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Vy.Object.defineProperties(FD.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var f,R;return _.E("web_enable_format_first")||((f=this.data)==null?void 0:f.adsOverlay)&&_.E("web_enable_format_first_ads_only")||((R=this.data)==null?void 0:R.reelPlayerOverlayRenderer)&&_.E("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var f;return!this.isActive||!this.isPlayerStarted||(f=this.data)!=null&&f.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var f;if(this.useStamper&&((f=this.data)==null?0:f.command)&&this.isVideoContent(this.data.command)){var R,u;if(((R=this.data)==null?0:R.adsOverlay)&&Object.keys((u=this.data)==null?void 0:u.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var O,c;if(((O=this.data)==null?0:O.reelPlayerOverlayRenderer)&&Object.keys((c=this.data)==null?void 0:c.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
FD.prototype.onOverlayDensityChange=FD.prototype.onOverlayDensityChange;FD.prototype.calculateOverlayDensity=FD.prototype.calculateOverlayDensity;FD.prototype.maybeLogNonDefaultAspectRatio=FD.prototype.maybeLogNonDefaultAspectRatio;FD.prototype.onEngagementPanelsChanged=FD.prototype.onEngagementPanelsChanged;FD.prototype.onScrubberDataChange=FD.prototype.onScrubberDataChange;FD.prototype.updateShouldHideOverlay=FD.prototype.updateShouldHideOverlay;
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],FD.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],FD.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],FD.prototype,"index",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],FD.prototype,"isActive",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],FD.prototype,"isHiddenInDom",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"isPlayerPaused",void 0);_.B([_.I({selector:LSe}),_.S("design:type",Object)],FD.prototype,"isPlayerStarted",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"showPlayerControls",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"showScrubber",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"autoHideJobId",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"overlayType",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],FD.prototype,"ytdReduxBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],FD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"watchWhileEngagementPanels",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"panelData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"isWatchWhileMode",void 0);_.B([_.I(),_.S("design:type",String)],FD.prototype,"activeWatchWhilePanel",void 0);
_.B([_.I(),_.S("design:type",Object)],FD.prototype,"hasError",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"panelShowDelayMs",void 0);_.B([_.I(),_.S("design:type",Object)],FD.prototype,"scrubberComponent",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"useStamper",void 0);_.B([_.I({selector:_.AF,reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"isFullscreen",void 0);
_.B([_.I(),_.S("design:type",Object)],FD.prototype,"shouldHideOverlay",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"enableAnchoredPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"enablePersistentAnchoredPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"hideWatchWhilePanel",void 0);
_.B([_.I({selector:_.LSD,reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"isPersistentPanelActive",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"anchoredPanelActive",void 0);_.B([_.I({selector:_.am,reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"isShortsPipActive",void 0);_.B([_.I({selector:N02,reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"smallScreenSqueezeback",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],FD.prototype,"enableFormatFirst",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"enableFlexibleOverlay",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"enableRemixButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],FD.prototype,"overlayDensity",void 0);
_.B([_.I(),_.S("design:type",Function)],FD.prototype,"onOverlayDensityChanged",void 0);_.B([_.I(),_.T("isActive","hasError"),_.S("design:type",Object),_.S("design:paramtypes",[])],FD.prototype,"shouldRenderPlayerElements",null);_.B([_.I(),_.T("isActive","isWatchWhileMode"),_.S("design:type",Object),_.S("design:paramtypes",[])],FD.prototype,"watchWhileOrPersistentActive",null);
_.B([_.qM("isActive","hasError","showingExpandedOverlay"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FD.prototype,"updateShouldHideOverlay",null);_.B([_.I({reflectToAttribute:!0}),_.T("isActive","isPlayerStarted","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],FD.prototype,"shouldRenderScrubber",null);
_.B([_.qM("shouldRenderScrubber"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FD.prototype,"onScrubberDataChange",null);_.B([_.T("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],FD.prototype,"overlayComponent",null);_.B([_.qM("watchWhileEngagementPanels"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FD.prototype,"onEngagementPanelsChanged",null);
_.B([_.a4("#player-container"),_.S("design:type",HTMLElement)],FD.prototype,"playerContainer",void 0);_.B([_.a4("#cinematic-container"),_.S("design:type",HTMLElement)],FD.prototype,"cinematicContainer",void 0);_.B([_.qM("isPersistentPanelActive","data.thumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FD.prototype,"maybeLogNonDefaultAspectRatio",null);
_.B([_.qM("isPersistentPanelActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FD.prototype,"calculateOverlayDensity",null);_.B([_.qM("overlayDensity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FD.prototype,"onOverlayDensityChange",null);FD=_.B([_.e({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],FD);
_.G(FD,"ytd-reel-video-renderer",function(){if(uJN!==void 0)return uJN;var f=document.createElement("template");_.N(f,'\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="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return uJN=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var wC=function(){var f=_.U.apply(this,arguments)||this;f.isPreviousPageShorts=!1;f.index=0;f.delayedActiveIndex=0;f.playablePreviousIndex=null;f.isPlayerPaused=!1;f.isPlayerStarted=!1;f.intersectionObserverThreshold=.6;f.fitToVisibleBounds=!1;f.pageSubtype="shorts";f.enablePreviousContinuation=_.E("shorts_in_playlists_web");f.shortsPipEnabled=_.E("web_shorts_pip");f.isDark=document.documentElement.hasAttribute("dark");f.shortsViewTransitions=_.E("web_shorts_view_transitions");f.isFullscreen=!1;f.isShortsPipActive=
!1;f.buttonOverride={iconPosition:"icon-only",size:"XL"};f.anchoredPanelActive=!1;f.isActive=!1;f.smallScreenPersistentPanel=!1;f.isPersistentPanelActive=!1;f.smallScreenSqueezeBack=!1;f.enableScrollIntoViewCenter=_.E("web_scroll_into_view_center");f.formatFirst=_.E("web_enable_format_first")||_.E("web_enable_format_first_ads_only")||_.E("web_enable_format_first_organic_only");f.enableFlexibleOverlay=_.E("web_enable_flexible_overlay");f.isShortsInitialized=!1;f.hidePreviousButtonImmediately=!1;f.showPreviousButtonImmediately=
!1;f.endOfNextContinuation=!1;f.currentPlayerIndex=0;f.nextReelVe=_.dx(56921);f.prevReelVe=_.dx(56922);f.loopToggleOffVe=_.dx(198013);f.loopToggleOnVe=_.dx(198014);f.ambientModeToggleVe=_.dx(227860);f.reelPlayerPausedStateRendererVe=_.dx(141313);f.storedPlaybackSpeed=null;f.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"};
f.onOverlayDensityChanged=function(R,u){var O;(O=f.getActiveReelVideo(R))==null||O.setAttribute("overlay-density",String(u))};
return f};
_.y(wC,_.U);_.X=wC.prototype;
_.X.deflateInactivePreviousSlides=function(){var f=_.RV("web_shorts_deflate_inactive_slides_aggressive_distance");if(f>0&&this.shortsProcessedSequence&&this.activeIndex){f=this.activeIndex-f;for(var R=0;R<=f;R++){var u=void 0;((u=this.shortsProcessedSequence[R].reelPlayerOverlayRenderer)==null?0:u.metapanel)&&this.set("shortsProcessedSequence."+R+".reelPlayerOverlayRenderer",{});u=void 0;((u=this.shortsProcessedSequence[R].adsOverlay)==null?0:u.adSlotMetadata)&&this.set("shortsProcessedSequence."+R+
".adsOverlay",{})}}};
_.X.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.X.onResize=function(){var f=_.sP(),R=f.dispatch,u=this.calculateIsSmallWidth();R.call(f,_.OP({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:u}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.X.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:_.E("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.X.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var f=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,R=f,u=0;f<250&&(R=f+this.shortsInnerContainer.clientWidth,u=24);_.ZO(this.hostElement,{"--ytd-shorts-header-width":R+"px","--ytd-shorts-top-spacing":u+"px"})}};
_.X.isFirstShorts=function(f){return f?this.index===-f.length:this.index===0};
_.X.isActiveReel=function(f,R,u){u&&(R=this.calculatePrevIndex(R,u));return f===R};
_.X.onFullscreenChange=function(){if(_.E("web_fullscreen_shorts")){var f;(f=this.getActiveReelVideo(this.activeIndex))==null||f.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.vh().resolve(_.MS).close(!0)}};
_.X.engagementPanelsChanged=function(){var f;this.watchWhileEngagementPanels=(f=this.data)==null?void 0:f.engagementPanels};
_.X.unregisterPanels=function(){var f=_.vh().resolve(_.yT);if(this.watchWhileEngagementPanels)for(var R=_.Z(this.watchWhileEngagementPanels),u=R.next();!u.done;u=R.next()){var O=void 0,c=void 0;u=(O=u.value.engagementPanelSectionListRenderer)==null?void 0:(c=O.identifier)==null?void 0:c.tag;f&&u&&f.panelMap.delete(u)}};
_.X.isVideoContent=function(f){return this.isVideoContentCommand(f==null?void 0:f.command)};
_.X.getActiveReelVideo=function(f){return _.b(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+f+'"]')};
_.X.calculatePrevIndex=function(f,R){return R?f-((R==null?void 0:R.length)||0):-1};
_.X.onKeydown=function(f){var R=_.$S(f)||[];if(!_.Wwe(R))if(f.code==="ArrowUp")f.preventDefault(),this.handlePrevButtonClick();else if(f.code==="ArrowDown")f.preventDefault(),this.handleNextButtonClick();else if(f.code==="KeyM")this.toggleMuteUnmuteVideo();else if(f.code==="KeyK"||f.code==="Space")this.togglePlayPauseVideo();else if((f.code==="KeyA"||f.code==="ArrowLeft")&&_.E("web_shorts_keyboard_enable_seek_shortcuts")){var u;(u=this.player)==null||u.seekBy(-5)}else if((f.code==="KeyD"||f.code===
"ArrowRight")&&_.E("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var O;(O=this.player)==null||O.seekBy(5)}};
_.X.onServiceRequestCompleted=function(f,R){f=R.data;f.continuationEndpoint&&f.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:f.entries,continuationEndpoint:f.continuationEndpoint}}):f.prevContinuationEndpoint&&f.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:f.prevEntries,prevContinuationEndpoint:f.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.X.handleEngagementPanelVisibilityChanged=function(f,R){var u=_.vh().resolve(_.yT);if(f&&u){var O,c=((O=f.identifier)==null?void 0:O.tag)||f.panelIdentifier||f.targetId;if(R==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==c){u.hidePanel(this.activePanel);var h;this.activePanel=((h=f.identifier)==null?void 0:h.tag)||f.panelIdentifier}else this.isPersistentPanelActive=!0,_.sP().dispatch(H2N(!0)),this.anchoredPanelActive=!0,this.activePanel=c;else R==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===c&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.sP().dispatch(H2N(!1)))}};
_.X.handlePanelScrimClick=function(){var f=_.vh().resolve(_.yT);this.activePanel&&(f.hidePanel(this.activePanel),_.sP().dispatch(H2N(!1)))};
_.X.getShortsLoopSetting=function(){var f,R,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return _.E("kevlar_shorts_auto_advance")?_.A(h,_.ti.getInstance(),2):h.return(!0);case 2:return(f=h.yieldResult)?_.A(h,f.get("sfvles"),3):h.return(!0);case 3:return u=(R=h.yieldResult)!=null?R:!1,_.A(h,f.get("sfvle"),4);case 4:return c=(O=h.yieldResult)!=null?O:!0,u?h.return(c):h.return(!0)}})};
_.X.handleSignalActionToggleLoopShortsOff=function(){var f=this,R,u,O;return _.k(function(c){switch(c.nextAddress){case 1:if(!f.player)return c.return();f.player.setLoopVideo(!1);R=_.wR();_.hi(R,f.loopToggleOffVe);return _.A(c,_.ti.getInstance(),2);case 2:return(u=c.yieldResult)?_.A(c,u.set("sfvle",!1),3):c.return();case 3:return _.A(c,u.set("sfvles",!0),4);case 4:O=_.Qu(),_.W_(0,203,!1),_.W_(0,204,!0),O.save(),_.KG(c)}})};
_.X.handleSignalActionToggleLoopShortsOn=function(){var f=this,R,u,O;return _.k(function(c){switch(c.nextAddress){case 1:if(!f.player)return c.return();f.player.setLoopVideo(!0);R=_.wR();_.hi(R,f.loopToggleOnVe);return _.A(c,_.ti.getInstance(),2);case 2:return(u=c.yieldResult)?_.A(c,u.set("sfvle",!0),3):c.return();case 3:return _.A(c,u.set("sfvles",!0),4);case 4:O=_.Qu(),_.W_(0,203,!0),_.W_(0,204,!0),O.save(),_.KG(c)}})};
_.X.handleSignalActionToggleCinematicShortsOn=function(){yRe(!0);var f;(f=this.JSC$19717_cinematicController)==null||_.WSw(f,!0);_.hi(_.wR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.X.handleSignalActionToggleCinematicShortsOff=function(){yRe(!1);var f;(f=this.JSC$19717_cinematicController)==null||_.WSw(f,!1);_.hi(_.wR(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.X.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.X.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.X.unhideCurrentOverlay=function(){if(this.overlayContainer){var f=this.overlayContainer.querySelector("#experiment-overlay");f&&_.JA.addLowPriorityJob(function(){f.style.display="unset"},100)}};
_.X.getCurrentShort=function(){if(this.currentEndpoint){var f=this.currentEndpoint;if(this.isNonVideoContentCommand(f)){var R=_.t(f,_.Dl);return{reelNonVideoContentRenderer:_.t(R==null?void 0:R.renderer,_.LNk),command:f}}if(this.data){var u;R=(u=_.t(this.currentEndpoint,_.Ey))==null?void 0:u.thumbnail;var O;u=(O=this.data.overlay)==null?void 0:O.reelPlayerOverlayRenderer;_.vh().resolve(_.AC);f=this.data;var c,h;O=(c=f.overlay)==null?void 0:(h=c.shortsAdsRenderer)==null?void 0:h.adSlots;if(O!==void 0)O.length===
0?(_.rW("Shorts ads returned no ad slots."),f=void 0):(O.length>1&&_.rW("Shorts ads has more than one ad slots."),f=_.t(O[0],_.cdf));else{var l,K;f=_.t((l=f.overlay)==null?void 0:(K=l.shortsAdsRenderer)==null?void 0:K.overlay,_.cdf)}l=f;f=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.t(this.currentEndpoint,_.Ey),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:u,thumbnail:R,command:f,adsOverlay:l}}}};
_.X.created=function(){var f=this;this.scrollToVideoThrottle=new _.vJ(function(R){var u;(u=f.getActiveReelVideo(R))==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.vJ(function(R){var u;(u=f.getActiveReelVideo(R))==null||u.scrollIntoView({behavior:"auto",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.X.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.X.attached=function(){var f=this;zX5(this);this.pageScrollElement=_.b(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ks(this,this.processResetAction));_.E("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.E("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var R=f.getActiveReelVideo(f.activeIndex);
f.maybeCreateIntersectionObserver();R==null||R.scrollIntoView({behavior:"instant",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"});f.shortsContainer.style.overflowY="scroll"}))};
_.X.calculateSqueezebackPanelSize=function(){var f=this,R=window.innerWidth-456-(window.innerHeight-106)*.5625;_.JA.addLowPriorityJob(function(){R<360?_.sP().dispatch(IUh(!0)):(f.hostElement.style.setProperty("--anchored-panel-width",Math.min(R,480)+"px"),_.sP().dispatch(IUh(!1)))})};
_.X.detached=function(){var f=_.vh().resolve(_.AC);f.rootElement=void 0;var R;(R=f.unsubscribeFromStore)==null||R.call(f);f.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ks(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.X.onResizeFinished=function(f,R){var u=this,O=new ResizeObserver(function(){u.shortsContainer.style.overflowY="hidden";_.JA.addLowPriorityJob(function(){R()},100)});
O.observe(f);return O};
_.X.resetDocumentScrollTop=function(){var f,R;if((f=document)==null?0:(R=f.scrollingElement)==null?0:R.scrollTop)document.scrollingElement.scrollTop=0};
_.X.loadPage_=function(f){var R=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),f){var u;if((u=_.t(this.currentEndpoint,_.Ey))==null?0:u.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=f;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){R.isPlayerStarted&&
(R.handleOnPlaybackCommand(),R.afterPlayerStarted=function(){})};
this.registerPanel(f)}};
_.X.afterPlayerStarted=function(){};
_.X.handleOnPlaybackCommand=function(){if(_.E("web_shorts_comment_stickers")&&this.isPlayerStarted){var f,R=(f=_.t(this.currentEndpoint,_.Ey))==null?void 0:f.onPlaybackCommand;R&&this.ytComponentBehavior.resolveCommand(R)}};
_.X.maybeCreateIntersectionObserver=function(){var f=this,R=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==R){this.intersectionObserverThreshold=R;var u={rootMargin:"0px",threshold:R},O;(O=this.intersectionObserver)==null||O.disconnect();this.intersectionObserver=new IntersectionObserver(function(c){c=_.Z(c);for(var h=c.next();!h.done;h=c.next())if(h=h.value,h.intersectionRatio>R){h=Number(h.target.id);if(isNaN(h))break;if(h===f.index)break;
_.r_2();f.loadVideo(h);_.TT("r_vtc")}},u);
this.observeShorts()}};
_.X.observeShorts=function(){var f=[].concat(_.yq(_.b(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;var u=void 0;(u=this.intersectionObserver)==null||u.observe(R)}};
_.X.initCsi=function(){_.L$("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var f={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"}},R,u;if((R=this.playerData)==null?0:(u=R.cacheMetadata)==null?0:u.isCacheHit)f.isCacheHit=!0;var O;if(R=(O=_.t(this.currentEndpoint,_.Ey))==null?void 0:
O.prefetchTaskId)f.prefetchInfo={taskId:R};_.ja(f)};
_.X.isAd=function(){var f,R;return!!((f=_.t(this.currentEndpoint,_.Ey))==null?0:(R=f.adClientParams)==null?0:R.isAd)};
_.X.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.X.getPlayerContainer=function(){var f;return(f=_.b(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:f.playerContainer};
_.X.onPlayerStateChange=function(f){var R=this;this.isPlayerPaused=f===2;f!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?f===1&&this.index===0&&(this.isPlayerStarted||_.sP().dispatch(XD(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.sP().dispatch(XD(!0)));this.player&&!this.player.getLoopVideo()&&_.JA.addLowPriorityJob(function(){R.getShortsLoopSetting().then(function(u){var O;(O=R.player)==null||O.setLoopVideo(u)})});
this.isPlayerPaused&&_.E("web_shorts_paused_state_logging")&&_.op(_.z4(),[this.reelPlayerPausedStateRendererVe])};
_.X.isInBackground=function(){var f=window.document.visibilityState;return!(!f||f==="visible")};
_.X.isShortPlayable=function(){if(_.E("kevlar_playable_short_killswitch"))return!0;var f;return(f=this.playerData)!=null&&f.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.X.setNormalPlaybackSpeed=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.getPlayer().getPlayerPromise(),2);R=O.yieldResult;u=R.getPlaybackRate();u!==1&&(f.storedPlaybackSpeed=u,R.setPlaybackRate(1));_.KG(O)})};
_.X.restorePlaybackSpeed=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1)return f.storedPlaybackSpeed===null?u.jumpTo(0):_.A(u,f.getPlayer().getPlayerPromise(),3);R=u.yieldResult;R.setPlaybackRate(f.storedPlaybackSpeed);f.storedPlaybackSpeed=null;_.KG(u)})};
_.X.playerDataChanged=function(){var f=this,R,u,O,c,h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1){R=f.getPlayer();_.E("web_shorts_dynamic_intersection_observer_threshold")&&((u=f.intersectionObserver)==null||u.disconnect());if(f.playerData){if(((O=f.playerData.videoDetails)==null?void 0:O.videoId)!==((c=R.getPlayer())==null?void 0:c.getVideoData().video_id)){h={};if(l=_.t(f.currentEndpoint,_.Ey))h.watch_endpoint=l,l.endTimeSeconds&&(h.end=l.endTimeSeconds);R.loadVideoWithPlayerResponse(f.playerData,
h)}}else return w.return();return f.player?w.jumpTo(2):_.A(w,R.getPlayerPromise(),3)}w.nextAddress!=2&&(f.player=w.yieldResult,f.JSC$19717_playerStateChangeListener=f.onPlayerStateChange.bind(f),f.player.addEventListener("onStateChange",f.JSC$19717_playerStateChangeListener),_.E("kevlar_client_enable_shorts_player_bootstrap")&&_.sY(),f.scrollToVideoThrottle.fire(f.index),f.movePlayerToVideo(f.index),_.JA.addLowPriorityJob(function(){f.getShortsLoopSetting().then(function(m){var W;(W=f.player)==null||
W.setLoopVideo(m)})}),_.AEt.resolve(f.player),f.player.syncVolume(),f.getPlayer().focusOnPlayer());
_.E("web_shorts_caption_language_entity_killswitch")||_.JA.addLowPriorityJob(function(){var m=_.vh().resolve(_.AC),W,C=(W=f.player)==null?void 0:W.getOption("captions","track");W=_.l$("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(C){var d;((d=_.Ax(_.fTh,W)())==null?void 0:d.value)!==C.displayName&&m.store.dispatch(_.aA("stringEntity",W,{key:W,value:C.displayName||""}))}else m.store.dispatch(_.aA("stringEntity",W,{key:W,value:"CAPTIONS_UNAVAILABLE"}))});
_.JA.addLowPriorityJob(function(){f.observeShorts()},100);
K=f.player.getPlayerState(f.player.getPresentingPlayerType());K!==1||f.isPlayerStarted||_.sP().dispatch(XD(!0));f.updateBackNavContainerWidth();q=_.t(f.currentEndpoint,_.Ey);((F=q)==null?0:F.startTimeSeconds)&&f.player.seekTo(q.startTimeSeconds);if(f.JSC$19717_cinematicController||f.cinematicsInitializeJobId)return w.return();f.cinematicsInitializeJobId=_.JA.addLowPriorityJob(function(){f.initCinematicController();f.cinematicsInitializeJobId=void 0});
_.KG(w)})};
_.X.onShortUndoDismiss=function(){var f=this,R=T0l().pop();R!==void 0&&(_.su(this,function(){f.showCardWithIndex(R)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.X.onShortsDismiss=function(f){if(f=f.detail.reelDismissalActionRenderer)(f=_.t(f.onDismissalCompletionRenderer,_.Vz2))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:f}}}),this.scrollAndDismissCard()};
_.X.processReelNonVideoContentDismissalCommand=function(f){var R=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);f=_.t(f,Stz);this.activeDimissalTimeout=setTimeout(function(){R.scrollAndDismissCard()},Number(f==null?void 0:f.delayMs))};
_.X.scrollAndDismissCard=function(){var f=this,R=this.index;T0l().push(R);_.su(this,function(){var u=f.getPlayableNextIndex();u!==null&&(u=f.getActiveReelVideo(u),f.hideCardWithIndex(R),u==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"}))})};
_.X.hideCardWithIndex=function(f){if(f=this.getActiveReelVideo(f))f.hidden=!0};
_.X.showCardWithIndex=function(f){if(f=this.getActiveReelVideo(f))f.hidden=!1};
_.X.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.X.activeChanged=function(f){_.sP().dispatch(_.OP({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:f}}));if(f)document.addEventListener("keydown",_.ks(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var R;(R=this.player)==null||R.sendAbandonmentPing()}var u;(u=this.player)==null||u.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ks(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.X.graftClientVisualElements=function(){if(this.data){var f=_.wR();_.K9H(f,_.ll({response:this.reelWatchSequenceResponse}));_.c1(f,this.nextReelVe);_.c1(f,this.prevReelVe);_.E("kevlar_shorts_auto_advance")&&(_.c1(f,this.loopToggleOffVe),_.c1(f,this.loopToggleOnVe));_.c1(f,this.ambientModeToggleVe);_.op(_.z4(),[this.nextReelVe,this.prevReelVe]);_.E("web_shorts_paused_state_logging")&&_.c1(f,this.reelPlayerPausedStateRendererVe)}};
_.X.graftNvcRenderer=function(){var f,R,u,O,c=this.index<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(R=f[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:R.command:(u=this.shortsProcessedSequence)==null?void 0:(O=u[this.index])==null?void 0:O.command;if(c&&this.isNonVideoContentCommand(c)){f=_.t(c,_.Dl);var h,l;(f=(h=_.t(f==null?void 0:f.renderer,_.LNk))==null?void 0:(l=h.loggingDirectives)==null?void 0:l.trackingParams)&&_.wR().graftServerVe(f)}};
_.X.setActiveIndex=function(){_.vh().resolve(_.AC).setActiveIndex(this.index)};
_.X.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.X.lazyUpdateMiniplayerData=function(){var f=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.JA.addLowPriorityJob(function(){f.updateMiniplayerData();f.updateMiniplayerDataJobId=void 0}))};
_.X.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.JA.cancelJob(this.updateMiniplayerDataJobId)};
_.X.updateMiniplayerData=function(){var f,R,u,O=_.vh().resolve(_.MS),c={shortsData:this.getCurrentShort(),previousButtonDisabled:!((f=this.prevButtonData)==null||!f.isDisabled),nextButtonDisabled:!((R=this.nextButtonData)==null||!R.isDisabled),playabilityStatus:(u=this.playerData)==null?void 0:u.playabilityStatus};_.y7(O,c)};
_.X.resetPlayerLocation=function(){var f=this.getPlayer();this.initialPlayerContainer&&f.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.X.movePlayerToVideo=function(f,R){var u=this;R=R===void 0?!0:R;var O=this.getActiveReelVideo(f),c=this.getPlayer();if(O){this.overlayContainer||(this.overlayContainer=_.b(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||c.appendTo(this.overlayContainer.playerContainer,void 0,!0));O.appendChild(this.overlayContainer);var h;(h=this.player)==null||h.setSize(NaN,NaN);this.isActive||_.dJ(_.JA,function(){u.isActive=!0});
c.style.visibility="visible";_.E("reels_web_disable_rtr_tick")||_.E("reels_web_use_pbs_first_shorts")&&f===0||_.JH("r_tr");this.currentPlayerIndex=f;O.appendChild(this.errorScreenContainer);var l;(l=this.JSC$19717_cinematicController)==null||_.tjl(l)}else R?_.JA.addLowPriorityJob(function(){u.movePlayerToVideo(u.index,!1)}):Math.random()<=_.RV("web_shorts_error_logging_threshold")&&_.H5(new _.ts("Trying to movePlayerToVideo with undefined container.",{firstAttempt:R,
index:f}))};
_.X.enableFormatFirst=function(f){return _.E("web_enable_format_first")||f.adsOverlay&&_.E("web_enable_format_first_ads_only")||f.reelPlayerOverlayRenderer&&_.E("web_enable_format_first_organic_only")};
_.X.getAspectRatio=function(f){if(f!=null&&f.thumbnail&&this.enableFormatFirst(f))return"--ytd-shorts-player-ratio: "+doX(f.thumbnail)};
_.X.getBackgroundImage=function(f){if(f!=null&&f.thumbnail)return(f=_.fL(f.thumbnail.thumbnails))?'background-image:url("'+f+'");':"background-color:black;"};
_.X.onPersistentPanelActiveChanged=function(){var f=this.getCurrentShort();if(f&&this.enableFormatFirst(f)&&(f==null?0:f.thumbnail)&&doX(f.thumbnail)!==.5625){var R;(R=this.player)==null||R.setSize(NaN,NaN)}};
_.X.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.X.moveCinematicsToVideo=function(){var f=_.b(this.hostElement).querySelector("ytd-reel-video-renderer");(f==null?0:f.cinematicContainer)&&f.cinematicContainer!==this.shortsCinematicContainer.parentElement&&f.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.X.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.X.updatePrevButtonData=function(){var f=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(f){var R;this.prevButtonData=f=Object.assign({},f,{accessibility:{label:_.Fa("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:f.isDisabled||this.index===-(((R=this.shortsProcessedPrevSequence)==null?void 0:R.length)||0),tooltip:this.isUpArrowHidden?"":_.Fa("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=f=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.X.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.X.updateNextButtonData=function(){var f=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(f){var R;this.nextButtonData=f=Object.assign({},f,{accessibility:{label:_.Fa("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:f.isDisabled||this.index===((R=this.shortsProcessedSequence)==null?void 0:R.length),tooltip:_.Fa("NEXT_VIDEO_LABEL")||""})}};
_.X.getPlayablePreviousIndex=function(){for(var f,R=this.index-1;R>=-(((f=this.prevShortsSequence)==null?void 0:f.length)||0);R--)if(!T0l().includes(R))return R;return null};
_.X.getIndexInSequence=function(f,R){return f.findIndex(function(u){var O;return((O=_.t(u.command,_.Ey))==null?void 0:O.videoId)===R})};
_.X.handlePrevButtonClick=function(f){var R=this,u,O;return _.k(function(c){u=R.getPlayablePreviousIndex();if(u===null)return c.return();R.gestureType=((O=f)==null?void 0:O.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";u===0&&(R.hidePreviousButtonImmediately=!0);if(R.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){R.transitionToVideoThrottle.fire(u)}),c.return();
R.scrollToVideoThrottle.fire(u);_.KG(c)})};
_.X.getPlayableNextIndex=function(){for(var f,R=this.index+1;R<(((f=this.shortsProcessedSequence)==null?void 0:f.length)||0);R++)if(!T0l().includes(R))return R;return null};
_.X.handleNextButtonClick=function(f,R){var u=this,O,c;return _.k(function(h){O=u.getPlayableNextIndex();if(O===null)return h.return();O===1&&(u.showPreviousButtonImmediately=!0);u.gestureType=((c=f)==null?void 0:c.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";R&&(u.gestureType=R);if(u.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){u.transitionToVideoThrottle.fire(O)}),h.return();
u.scrollToVideoThrottle.fire(O);_.KG(h)})};
_.X.handleReelNavigateCommand=function(f,R,u){(f=_.t(f,xo2))&&R&&f.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(u)};
_.X.loadVideo=function(f,R){R=R===void 0?!1:R;if(f!==this.currentPlayerIndex){_.sP().dispatch(XD(!1));if(this.isAd()&&!R){var u;(u=this.player)==null||u.notifyShortsAdSwipeEvent()}if((R=this.JSC$19717_cinematicController)!=null){var O;(O=R.currentCinematicEffect)==null||O.pause()}if((O=this.JSC$19717_cinematicController)!=null){var c;(c=O.currentCinematicEffect)==null||c.clear()}O=f>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(O));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var h,l,K,q;c=f<0?(h=this.shortsProcessedPrevSequence)==null?void 0:(l=h[this.shortsProcessedPrevSequence.length+f])==null?void 0:l.command:(K=this.shortsProcessedSequence)==null?void 0:(q=K[f])==null?void 0:q.command;this.index=f;this.gestureType||(this.gestureType=O?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
c&&this.isVideoContentCommand(c)&&(this.ytComponentBehavior.resolveCommand(c,{form:{createScreenConfig:{clickedVisualElement:O?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(c&&this.isNonVideoContentCommand(c)){this.currentEndpoint=c;this.data=void 0;h=_.wR();l=_.t(c,_.Dl);var F,w;(l=(F=_.t(l==null?void 0:l.renderer,_.LNk))==null?void 0:(w=F.screenLoggingData)==null?void 0:w.screenVeType)&&_.O1(h,l);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var m,W;if(((m=this.reelWatchSequenceResponse)==null?0:m.continuationEndpoint)&&((W=this.reelWatchSequenceResponse)==null?0:W.entries)&&f===this.reelWatchSequenceResponse.entries.length-1){var C,d;F={contentPlaybackContext:_.yC({},(d=_.t((C=this.currentEndpoint)==null?void 0:C.commandMetadata,_.vc))==null?void 0:d.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:F})}var p,J,M;((p=this.reelWatchSequenceResponse)==
null?0:p.prevContinuationEndpoint)&&f===-(((J=this.reelWatchSequenceResponse)==null?void 0:(M=J.prevEntries)==null?void 0:M.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.X.setMiniplayerPreview=function(f){f=(f===void 0?0:f)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var R,u,O=_.vh().resolve(_.MS),c={shortsData:void 0,shortsPreviewThumbnail:f?(R=this.shortsProcessedSequence)==null?void 0:(u=R[f])==null?void 0:u.thumbnail:void 0};_.y7(O,c)};
_.X.updateTitle=function(f){var R,u;f=(f==null?0:f.adSlots)?"":(u=f==null?void 0:(R=f.videoDetails)==null?void 0:R.title)!=null?u:"";_.ul(this.hostElement,"yt-update-title",f)};
_.X.registerPanel=function(f){var R=_.vh().resolve(_.yT);if(R){f=_.Z(f.engagementPanels||[]);for(var u=f.next();!u.done;u=f.next()){u=u.value;var O=u.engagementPanelSectionListRenderer,c=void 0,h=void 0,l=void 0,K=void 0,q=((c=O)==null?void 0:c.targetId)||((h=O)==null?void 0:h.panelIdentifier)||((l=O)==null?void 0:(K=l.identifier)==null?void 0:K.tag);c=O=void 0;(c=(O=R).registerPanelContent)==null||c.call(O,q,u)}}};
_.X.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.sP().dispatch(XD(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.sP().dispatch(H2N(!1));var f=_.vh().resolve(_.AC);f.dismissedIndices=[];f.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.vh().resolve(_.MS).close(!0)};
_.X.processAppendReelWatchSequenceContinuationEntriesAction=function(f){var R=this,u;(u=this.intersectionObserver)==null||u.disconnect();f=f.appendReelWatchSequenceContinuationEntriesAction;if(f==null?0:f.entries){var O;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.yq(((O=this.reelWatchSequenceResponse)==null?void 0:O.entries)||[]),_.yq(f.entries)),continuationEndpoint:f.continuationEndpoint})}else if(f==null?0:f.prevEntries){var c;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.yq(((c=this.reelWatchSequenceResponse)==null?void 0:c.prevEntries)||[]),_.yq(f.prevEntries)),prevContinuationEndpoint:f.prevContinuationEndpoint});_.JA.addLowPriorityJob(function(){R.movePlayerToVideo(R.index);var h;(h=R.getActiveReelVideo(R.index))==null||h.scrollIntoView({block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.JA.addLowPriorityJob(function(){R.observeShorts()},100)};
_.X.processWatchSequence=function(f){var R=this;return f.map(function(u){u=u.command;if(R.isVideoContentCommand(u)){var O=_.t(u,_.Ey);return{reelPlayerOverlayRenderer:_.t(O==null?void 0:O.overlay,_.b5C),thumbnail:O.thumbnail,command:u}}return R.isNonVideoContentCommand(u)?(O=_.t(u,_.Dl),{reelNonVideoContentRenderer:_.t(O==null?void 0:O.renderer,_.LNk),command:u}):{command:u}})};
_.X.calculateIntersectionObserverThreshold=function(){if(!_.E("web_shorts_dynamic_intersection_observer_threshold"))return.6;var f=_.b(this.hostElement).querySelector("ytd-reel-video-renderer"),R=1;(f==null?0:f.offsetHeight)&&(f==null?0:f.offsetWidth)&&(R=Math.min(f.offsetHeight,this.shortsContainer.offsetHeight)/f.offsetHeight*(Math.min(f.offsetWidth,this.shortsContainer.offsetWidth)/f.offsetWidth));return Math.round(R*.6*10)/10};
_.X.isVideoContentCommand=function(f){_.vh().resolve(_.AC);return!!_.t(f,_.Ey)};
_.X.isNonVideoContentCommand=function(f){_.vh().resolve(_.AC);return!!_.t(f,_.Dl)};
_.X.initCinematicController=function(){var f=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19717_cinematicController=new _.cN(this.shortsCinematicContainer,this.player);var R,u=_.t((R=this.data)==null?void 0:R.background,_.yl);_.Efh(this.JSC$19717_cinematicController,u);_.WSw(this.JSC$19717_cinematicController,CR9(u));_.Q29(this.JSC$19717_cinematicController);_.JA.addLowPriorityJob(function(){f.moveCinematicsToVideo()})}};
_.X.handleMiniplayerNavigateShorts=function(f){f==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():f==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.X.handleSignalActionToggleShortsPictureInPicture=function(){if(_.vh().resolve(_.MS).pictureInPictureSupported()){var f=_.vh().resolve(_.AC);if(_.E("web_shorts_pip")){var R=_.vh().resolve(_.MS);f.isShortsPipActive()?R.deactivate():R.isMiniplayerActive()||(_.qk().shortsPipActivation=!0,_.omz(R))}}else(f=this.player)==null||f.togglePictureInPicture()};
_.Vy.Object.defineProperties(wC.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.reelWatchSequenceResponse)!=null&&f.prevEntries)return this.processWatchSequence([].concat(_.yq(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var f=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!f)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var R=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.yq(this.prevShortsSequence.slice(0,R)),[f],_.yq(this.prevShortsSequence.slice(R+
1)))}R=this.index+this.shortsProcessedPrevSequence.length;f.thumbnail=this.shortsProcessedPrevSequence[R].thumbnail;return[].concat(_.yq(this.shortsProcessedPrevSequence.slice(0,R)),[f],_.yq(this.shortsProcessedPrevSequence.slice(R+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.reelWatchSequenceResponse)!=null&&f.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var f=this.getCurrentShort();if(!f||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[f];if(f==null||!f.reelNonVideoContentRenderer){var R=this.getIndexInSequence(this.shortsSequence,_.t(this.currentEndpoint,_.Ey).videoId);if(this.index===0&&R!==-1)return this.currentPlayerIndex=this.index=R,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.yq(this.shortsSequence.slice(0,this.index)),[f],_.yq(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){f.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var u,O,c,h;R=((O=_.t((u=this.shortsProcessedSequence[0])==null?void 0:u.command,_.Ey))==null?void 0:O.videoId)===((h=_.t((c=this.shortsSequence[0])==null?void 0:c.command,_.Ey))==null?void 0:h.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.yq(this.shortsProcessedSequence.slice(0,
this.index)),[f],_.yq(this.shortsSequence.slice(R)))}return[f].concat(_.yq(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var f=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;f&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(f)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var f,R;return this.index===((f=this.reelWatchSequenceResponse)==null?void 0:(R=f.entries)==null?void 0:R.length)}var u;return!((u=this.reelWatchSequenceResponse)==null?0:u.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var f;(f=this.delayedActiveIndexUpdateDebouncer)==null||f.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return this.isShortPlayable()||((R=_.t((f=this.data)==null?void 0:f.watchStatus,_.MHG))==null?void 0:(u=R.style)==null?void 0:u.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var f=this,R=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),u;if((this.data||R)&&(((u=this.data)==null?0:u.engagementPanels)||this.isAd()||R)){R=!1;this.activePanel="shorts-comments-panel";var O;u=_.Z(((O=this.data)==null?void 0:O.engagementPanels)||[]);for(O=u.next();!O.done;O=u.next()){O=O.value.engagementPanelSectionListRenderer;var c=void 0,h=void 0,l=void 0,K=void 0;if((((c=O)==null?void 0:(h=c.identifier)==
null?void 0:h.tag)||((l=O)==null?void 0:l.targetId)||((K=O)==null?void 0:K.panelIdentifier))===this.activePanel){R=!0;break}}if(this.isPersistentPanelActive){var q=_.vh().resolve(_.yT);_.dJ(_.JA,function(){q.showPanel(f.activePanel,void 0,void 0,void 0,null)},100)}var F;
u=[].concat(_.yq(Object.values(((F=this.data)==null?void 0:F.engagementPanels)||{})));if(_.E("enable_preview_panel_for_shorts_search_suggested_action")){var w,m,W,C,d;((C=_.t((w=this.data)==null?void 0:(m=w.overlay)==null?void 0:(W=m.reelPlayerOverlayRenderer)==null?void 0:W.metapanel,_.N5k))==null?void 0:(d=C.metadataItems)==null?void 0:d.find(function(p){var J,M;return((J=_.t(p,gft))==null?void 0:(M=J.icon)==null?void 0:M.iconType)==="SEARCH"}))!==void 0&&u.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}F=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);w=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return F===void 0&&w===void 0||(F==null?0:F.isDisabled)||(w==null?void 0:w.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!R?(R=u==null?void 0:u.findIndex(function(p){var J,
M;return((J=p.engagementPanelSectionListRenderer)==null?void 0:(M=J.identifier)==null?void 0:M.tag)==="shorts-comments-panel"}),R===-1||R===void 0||u!=null&&u.splice(R,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Fa("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Fa("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:_.Fa("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Fa("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(_.yq(Object.values(u||
{})))):u}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.shortsProcessedSequence)==null?void 0:f[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var f=this,R,u,O;if((R=this.playerData)==null?0:(u=R.playabilityStatus)==null?0:(O=u.errorScreen)==null?0:O.playerInterstitialRenderer)return _.JA.addLowPriorityJob(function(){f.movePlayerToVideo(f.index)}),this.playerData.playabilityStatus.errorScreen;
var c,h;return((c=this.data)==null?void 0:c.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((h=this.data)==null?0:h.watchStatus)&&_.t(this.data.watchStatus,_.MAF)?(_.JA.addLowPriorityJob(function(){f.movePlayerToVideo(f.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Vy.Object.defineProperties(wC,{template:{configurable:!0,enumerable:!0,get:function(){if(nfK===void 0){var f=document.createElement("template");_.N(f,'\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    <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    <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-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);nfK=f}f=nfK;return f}}});
wC.prototype.onNextButtonDataChange=wC.prototype.onNextButtonDataChange;wC.prototype.onPrevButtonDataChange=wC.prototype.onPrevButtonDataChange;wC.prototype.onPersistentPanelActiveChanged=wC.prototype.onPersistentPanelActiveChanged;wC.prototype.lazyUpdateMiniplayerData=wC.prototype.lazyUpdateMiniplayerData;wC.prototype.onShortsPipActiveChanged=wC.prototype.onShortsPipActiveChanged;wC.prototype.setActiveIndex=wC.prototype.setActiveIndex;wC.prototype.graftNvcRenderer=wC.prototype.graftNvcRenderer;
wC.prototype.graftClientVisualElements=wC.prototype.graftClientVisualElements;wC.prototype.onActiveChanged=wC.prototype.onActiveChanged;wC.prototype.onShortsDismiss=wC.prototype.onShortsDismiss;wC.prototype.onShortUndoDismiss=wC.prototype.onShortUndoDismiss;wC.prototype.playerDataChanged=wC.prototype.playerDataChanged;wC.prototype.afterPlayerStarted=wC.prototype.afterPlayerStarted;wC.prototype.unhideCurrentOverlay=wC.prototype.unhideCurrentOverlay;wC.prototype.onServiceRequestCompleted=wC.prototype.onServiceRequestCompleted;
wC.prototype.engagementPanelsChanged=wC.prototype.engagementPanelsChanged;wC.prototype.onFullscreenChange=wC.prototype.onFullscreenChange;wC.prototype.onResize=wC.prototype.onResize;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],wC.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.bm.YtPageBehavior),_.S("design:type",Object)],wC.prototype,"ytPageBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],wC.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.Lu),_.S("design:type",Object)],wC.prototype,"ironResizableBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],wC.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],wC.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],wC.prototype,"ytdReduxBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],wC.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"playerData",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"reelWatchSequenceResponse",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"cachedReelWatchSequenceResponse",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"currentEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"nextButtonData",void 0);
_.B([_.I(),_.S("design:type",Object)],wC.prototype,"prevButtonData",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"isPreviousPageShorts",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"index",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"delayedActiveIndex",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"playablePreviousIndex",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"player",void 0);
_.B([_.I(),_.S("design:type",Object)],wC.prototype,"isPlayerPaused",void 0);_.B([_.I({selector:LSe}),_.S("design:type",Object)],wC.prototype,"isPlayerStarted",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"intersectionObserver",void 0);_.B([_.I(),_.S("design:type",Number)],wC.prototype,"cinematicsInitializeJobId",void 0);_.B([_.I(),_.S("design:type",Number)],wC.prototype,"updateMiniplayerDataJobId",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"fitToVisibleBounds",void 0);
_.B([_.I(),_.S("design:type",Object)],wC.prototype,"pageSubtype",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],wC.prototype,"enablePreviousContinuation",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"shortsPipEnabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"isDark",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"shortsViewTransitions",void 0);
_.B([_.I({selector:_.AF,reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"isFullscreen",void 0);_.B([_.I({selector:_.am,reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"isShortsPipActive",void 0);_.B([_.a4("#shorts-inner-container"),_.S("design:type",HTMLElement)],wC.prototype,"shortsInnerContainer",void 0);_.B([_.a4("#back-nav-button ytd-button-renderer"),_.S("design:type",_.g2)],wC.prototype,"backNavButton",void 0);
_.B([_.a4("#shorts-container"),_.S("design:type",HTMLElement)],wC.prototype,"shortsContainer",void 0);_.B([_.sK("error-screen"),_.S("design:type",HTMLElement)],wC.prototype,"errorScreenContainer",void 0);_.B([_.sK("player"),_.S("design:type",Object)],wC.prototype,"playerElement",void 0);_.B([_.sK("shorts-cinematic-container"),_.S("design:type",HTMLElement)],wC.prototype,"shortsCinematicContainer",void 0);
_.B([_.sK("initial-player-container"),_.S("design:type",HTMLElement)],wC.prototype,"initialPlayerContainer",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"buttonOverride",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"anchoredPanelActive",void 0);_.B([_.I(),_.S("design:type",String)],wC.prototype,"activePanel",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"isActive",void 0);
_.B([_.I({selector:N02,reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"smallScreenPersistentPanel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"isPersistentPanelActive",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"smallScreenSqueezeBack",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"enableScrollIntoViewCenter",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"formatFirst",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wC.prototype,"enableFlexibleOverlay",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"panelContainer",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"overlayContainer",void 0);_.B([_.I(),_.S("design:type",Object)],wC.prototype,"isShortsInitialized",void 0);_.B([_.T("reelWatchSequenceResponse"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"prevShortsSequence",null);
_.B([_.T("data","prevShortsSequence"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"shortsProcessedPrevSequence",null);_.B([_.T("reelWatchSequenceResponse"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"shortsSequence",null);_.B([_.T("data","shortsSequence"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"shortsProcessedSequence",null);
_.B([_.I({reflectToAttribute:!0}),_.T("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wC.prototype,"isUpArrowHidden",null);_.B([_.I({reflectToAttribute:!0}),_.T("reelWatchSequenceResponse","index","endOfNextContinuation"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wC.prototype,"isDownArrowHidden",null);
_.B([_.I(),_.T("index"),_.S("design:type",Number),_.S("design:paramtypes",[])],wC.prototype,"activeIndex",null);_.B([_.T("isShortPlayable","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wC.prototype,"shouldRenderOfflineContent",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onResize",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"anchoredEngagementPanels",null);
_.B([_.I(),_.S("design:type",Object)],wC.prototype,"watchWhileEngagementPanels",void 0);_.B([_.qM("isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onFullscreenChange",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"engagementPanelsChanged",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],wC.prototype,"onServiceRequestCompleted",null);_.B([_.T("data","shortsSequence","index"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"activeReel",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"unhideCurrentOverlay",null);
_.B([_.qM("isPlayerStarted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"afterPlayerStarted",null);_.B([_.T("playerData","reelWatchSequenceResponse","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],wC.prototype,"errorScreen",null);_.B([_.T("errorScreen"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wC.prototype,"hasError",null);
_.B([_.qM("playerData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],wC.prototype,"playerDataChanged",null);_.B([_.Kf("yt-dismissible-item-undo-feedback"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onShortUndoDismiss",null);_.B([_.Kf("yt-disable-lockup-interaction"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],wC.prototype,"onShortsDismiss",null);
_.B([_.QR("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onActiveChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"graftClientVisualElements",null);_.B([_.qM("currentPlayerIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"graftNvcRenderer",null);
_.B([_.qM("index"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"setActiveIndex",null);_.B([_.qM("isShortsPipActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onShortsPipActiveChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"lazyUpdateMiniplayerData",null);
_.B([_.I(),_.S("design:type",Object)],wC.prototype,"onOverlayDensityChanged",void 0);_.B([_.qM("isPersistentPanelActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onPersistentPanelActiveChanged",null);_.B([_.qM("index","data","isUpArrowHidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onPrevButtonDataChange",null);
_.B([_.qM("index","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wC.prototype,"onNextButtonDataChange",null);wC=_.B([_.e({is:"ytd-shorts"})],wC);_.fk.registerService(_.S3D,wC);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("JzFVk");
var y3N=function(f){return _.a("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},CvK(f.data.ctaButton,{buttonViewModel:{}}),_.a(_.YO,{text:f.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var dTK;var NaX;var Hg=function(){return _.U.apply(this,arguments)||this};
_.y(Hg,_.U);Hg.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Hg.prototype.computeBlueBottomLink=function(f){return f};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Hg.prototype,"data",void 0);_.B([_.I({computed:"computeIcon_(data.bottomIcon)"}),_.S("design:type",String)],Hg.prototype,"bottomIcon",void 0);
_.B([_.I({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Hg.prototype,"enableBlueBottomLink",void 0);Hg=_.B([_.e({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Hg);
_.G(Hg,"ytd-web-answer-renderer",function(){if(NaX!==void 0)return NaX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return NaX=f},{mode:_.c7("kevlar_poly_si_batch_j035")?1:2});var Lgh;var I9=function(){var f=_.U.apply(this,arguments)||this;f.hasChipBar=!1;return f};
_.y(I9,_.U);I9.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}}};
I9.prototype.computeHasChipBar=function(f){return!(f==null||!f.chipBar)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],I9.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.S("design:type",Object)],I9.prototype,"hasChipBar",void 0);I9=_.B([_.e({is:"ytd-search-header-renderer",disableElementRegistration:!0})],I9);
_.G(I9,"ytd-search-header-renderer",function(){if(Lgh!==void 0)return Lgh;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Lgh=f},{mode:1});var blt;var MQ=function(){return _.U.apply(this,arguments)||this};
_.y(MQ,_.U);MQ.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.B([_.e({disableElementRegistration:!0,is:"ytd-page-continuation"})],MQ);
_.G(MQ,"ytd-page-continuation",function(){if(blt!==void 0)return blt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return blt=f},{mode:1});var pUS;var jKe;var DTm;var Pg=function(){return _.U.apply(this,arguments)||this};
_.y(Pg,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Pg.prototype,"data",void 0);Pg=_.B([_.e({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Pg);
_.G(Pg,"ytd-watch-card-one-vs-one-event",function(){if(DTm!==void 0)return DTm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return DTm=f},{mode:1});var UD=function(){return _.U.apply(this,arguments)||this};
_.y(UD,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],UD.prototype,"data",void 0);UD=_.B([_.e({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],UD);
_.G(UD,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(jKe!==void 0)return jKe;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return jKe=f},{mode:1});var J39;var e9=function(){return _.U.apply(this,arguments)||this};
_.y(e9,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],e9.prototype,"data",void 0);e9=_.B([_.e({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],e9);
_.G(e9,"ytd-banner-and-box-hero-image-renderer",function(){if(J39!==void 0)return J39;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return J39=f},{mode:1});var ziw;var Gm=function(){var f=_.U.apply(this,arguments)||this;f.modern=_.E("web_modern_buttons");return f};
_.y(Gm,_.U);Gm.prototype.computeIcon=function(){var f,R,u=(f=this.data)==null?void 0:(R=f.icon)==null?void 0:R.iconType;if(u)return _.li(u)};
Gm.prototype.computeButtonShape=function(){var f;return{buttonText:_.$Z((f=this.data)==null?void 0:f.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Vy.Object.defineProperties(Gm.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"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gm.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Gm.prototype,"modern",void 0);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.style"),_.S("design:type",Object),_.S("design:paramtypes",[])],Gm.prototype,"buttonColor",null);
Gm=_.B([_.e({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Gm);
_.G(Gm,"ytd-call-to-action-button-renderer",function(){if(ziw!==void 0)return ziw;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ziw=f},{mode:1});var TaK;var Bg=function(){return _.U.apply(this,arguments)||this};
_.y(Bg,_.U);Bg.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.b(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.rR(this.data.leftThumbnail.thumbnails,216)+")")};
Bg.prototype.onLeftThumbnailChanged=Bg.prototype.onLeftThumbnailChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Bg.prototype,"data",void 0);_.B([_.qM("data.leftThumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bg.prototype,"onLeftThumbnailChanged",null);Bg=_.B([_.e({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Bg);
_.G(Bg,"ytd-collage-hero-image-renderer",function(){if(TaK!==void 0)return TaK;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return TaK=f},{mode:1});var Hlw;var o9=function(){return _.U.apply(this,arguments)||this};
_.y(o9,_.U);o9.prototype.computeStyle=function(f){return f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],o9.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],o9.prototype,"componentStyle",void 0);o9=_.B([_.e({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],o9);
_.G(o9,"ytd-single-hero-image-renderer",function(){if(Hlw!==void 0)return Hlw;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Hlw=f},{mode:1});var Ige;var x6=function(){return _.U.apply(this,arguments)||this};
_.y(x6,_.U);_.X=x6.prototype;
_.X.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:_.E("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.X.computeSubtitle=function(f){if(this.data){var R;if(this.data.upcomingEventData){f=_.$Z(f.subtitle);var u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(R=_.S8(_.HJ(f,u)))}else R=f.subtitle;return R}};
_.X.onHeroTap=function(f){f.preventDefault();var R=this.data&&this.data.navigationEndpoint;!R||!_.$G(_.$S(f),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.$G(_.$S(f),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.E("kevlar_watchcard_hero_video_renderer_killswitch")?_.ul(this.hostElement,"yt-navigate",{navigationEndpoint:R}):this.ytComponentBehavior.resolveCommand(R))};
_.X.computeHeroTabIndex=function(f){return f&&f.simpleText?-1:0};
_.X.computeHeroRole=function(f){return f&&f.simpleText?"":"link"};
_.X.computeIsReminderButtonPresent=function(f){return!(!f||!f.reminderButton)};
_.X.computeHideBottomItems=function(f){return!(this.computeIsReminderButtonPresent(f)||f.subtitle)};
_.X.dataChanged=function(){var f=this.get("data.buttons.buttonRenderer.serviceEndpoint"),R;((R=_.t(f==null?void 0:f.commandMetadata,_.Ni))==null?0:R.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(f)};
x6.prototype.dataChanged=x6.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],x6.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],x6.prototype,"data",void 0);
_.B([_.I({computed:"computeSubtitle(data)"}),_.S("design:type",String)],x6.prototype,"subtitle",void 0);_.B([_.I({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],x6.prototype,"isReminderButtonPresent",void 0);_.B([_.I({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],x6.prototype,"hideBottomItems",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x6.prototype,"dataChanged",null);x6=_.B([_.e({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],x6);
_.G(x6,"ytd-watch-card-hero-video-renderer",function(){if(Ige!==void 0)return Ige;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Ige=f},{mode:1});var Mz9;var S9=function(){return _.U.apply(this,arguments)||this};
_.y(S9,_.U);_.X=S9.prototype;_.X.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"}}}};
_.X.computeTitleBadges=function(f){return f?[f]:[]};
_.X.computeHeaderStyle=function(f){return f?f.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.X.computeAvatarAriaLabel=function(f){if(f){var R,u,O,c;return(c=(R=f.avatar)==null?void 0:(u=R.accessibility)==null?void 0:(O=u.accessibilityData)==null?void 0:O.label)!=null?c:_.$Z(f==null?void 0:f.title)}};
_.X.computeAvatarHeight=function(f){return f==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.X.computeBadgeRowClass=function(f){return(f==null?0:f[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],S9.prototype,"data",void 0);_.B([_.I({computed:"computeTitleBadges(data.titleBadge)"}),_.S("design:type",Array)],S9.prototype,"titleBadges",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.S("design:type",String)],S9.prototype,"headerStyle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.S("design:type",String)],S9.prototype,"badgeRowClass",void 0);S9=_.B([_.e({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],S9);
_.G(S9,"ytd-watch-card-rich-header-renderer",function(){if(Mz9!==void 0)return Mz9;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Mz9=f},{mode:1});var Pvz;var UTh;var $6=function(){return _.U.apply(this,arguments)||this};
_.y($6,_.U);$6.prototype.onMetadataTap=function(f){var R=this.data&&this.data.navigationEndpoint;R&&!_.$G(_.$S(f),this.hostElement,["A".toString()])&&_.ul(this.hostElement,"yt-navigate",{endpoint:R})};
_.Vy.Object.defineProperties($6.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 f;if(this.data.upcomingEventData){var R=_.$Z(this.data.subtitle),u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(f=_.S8(_.HJ(R,u)))}else f=this.data.subtitle;return f}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$6.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data.style"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],$6.prototype,"isCondensed",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],$6.prototype,"subtitle",null);
$6=_.B([_.e({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],$6);
_.G($6,"ytd-watch-card-compact-video-renderer",function(){if(UTh!==void 0)return UTh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return UTh=f},{mode:1});var eim;var gs=function(){return _.U.apply(this,arguments)||this};
_.y(gs,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gs.prototype,"data",void 0);gs=_.B([_.e({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],gs);
_.G(gs,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(eim!==void 0)return eim;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return eim=f},{mode:1});var sD=function(){return _.U.apply(this,arguments)||this};
_.y(sD,_.U);sD.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}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],sD.prototype,"ytRendererStamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sD.prototype,"data",void 0);sD=_.B([_.e({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],sD);
_.G(sD,"ytd-vertical-watch-card-list-renderer",function(){if(Pvz!==void 0)return Pvz;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Pvz=f},{mode:1});var GGK;var nP=function(){var f=_.U.apply(this,arguments)||this;f.ariaExpanded="false";return f};
_.y(nP,_.U);_.X=nP.prototype;_.X.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.X.dataChanged=function(){var f;this.currentSeasonIndex=((f=this.data)==null?void 0:f.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.X.computeEpisodesInfo=function(f,R,u){if(f!==void 0&&R.length===f.length)return f[u]};
_.X.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.X.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.X.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.X.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.X.getUppercaseSimpleString=function(f){return this.ytRendererBehavior.getSimpleString(f).toUpperCase()};
_.X.updateCurrentSeasonIndexFromBinding=function(f){this.currentSeasonIndex=f.detail.value};
nP.prototype.onIronOverlayClosed=nP.prototype.onIronOverlayClosed;nP.prototype.currentSeasonIndexChanged=nP.prototype.currentSeasonIndexChanged;nP.prototype.dataChanged=nP.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],nP.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",String)],nP.prototype,"label",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],nP.prototype,"currentSeasonIndex",void 0);_.B([_.I({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.S("design:type",Object)],nP.prototype,"episodesInfo",void 0);_.B([_.I({value:"false"}),_.S("design:type",Object)],nP.prototype,"ariaExpanded",void 0);_.B([_.a4("#lists"),_.S("design:type",Object)],nP.prototype,"lists",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nP.prototype,"dataChanged",null);_.B([_.QR("currentSeasonIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nP.prototype,"currentSeasonIndexChanged",null);_.B([_.Kf("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],nP.prototype,"onIronOverlayClosed",null);
nP=_.B([_.e({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],nP);
_.G(nP,"ytd-watch-card-section-dropdown-renderer",function(){if(GGK!==void 0)return GGK;var f=document.createElement("template");_.N(f,'\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="yt-icons:arrow_drop_down" 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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GGK=f},{mode:1});var Baa;var VW=function(){var f=_.U.apply(this,arguments)||this;f.isSearch=!1;return f};
_.y(VW,_.U);VW.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}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],VW.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],VW.prototype,"isSearch",void 0);VW=_.B([_.e({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],VW);
_.G(VW,"ytd-watch-card-section-sequence-renderer",function(){if(Baa!==void 0)return Baa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return Baa=f},{mode:1});var CvK=_.WJ({buttonViewModel:_.TS});_.RI(y3N);_.hS(y3N,"ytd-button-banner-view-model",{propNames:["data"]});var Y6=function(){var f=_.U.apply(this,arguments)||this;f.isSearch=!1;return f};
_.y(Y6,_.U);
Y6.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"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Y6.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],Y6.prototype,"rounded",void 0);_.B([_.I(),_.S("design:type",Object)],Y6.prototype,"isSearch",void 0);
Y6=_.B([_.e({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Y6);
_.G(Y6,"ytd-universal-watch-card-renderer",function(){if(pUS!==void 0)return pUS;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pUS=f},{mode:1});var okm;_.ii(_.nf(function(f){var R=f.data;var u;f=!((u=_.vh().resolve(_.Y8(_.oF)))==null||!u());u={};return _.a("overview-message-view-model",{class:_.KL("ytwOverviewMessageViewModelHost",(u.ytwOverviewMessageViewModelDarkBackground=f,u.ytwOverviewMessageViewModelLightBackground=!f,u))},_.a(_.Q,{cond:function(){return R().primaryImage},
then:function(O){return _.a(_.gR,{data:O,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.a(_.Q,{cond:function(){return R().primaryText},
then:function(){return _.a("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.a(_.YO,{text:function(){return R().primaryText}}))}}),_.a(_.Q,{cond:function(){return R().secondaryText},
then:function(){return _.a("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.a(_.YO,{text:function(){return R().secondaryText}}))}}))},"Fi"),"overview-message-view-model",{props:{data:_.SG}});_.hS(_.K5Y,"ytd-overview-answer-view-model",{propNames:["data"]});var vg=function(){return _.U.apply(this,arguments)||this};
_.y(vg,_.U);vg.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"}}}};
vg.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],vg.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vg.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],vg.prototype,"isSearch",void 0);
vg=_.B([_.e({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],vg);
_.G(vg,"ytd-secondary-search-container-renderer",function(){if(okm!==void 0)return okm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return okm=f},{mode:1});var xTN;var iT=function(){var f=_.U.apply(this,arguments)||this;f.renderSecondarySearchContainer=!1;f.isSearch=!1;f.isSearchDova=_.E("dova_on_search");return f};
_.y(iT,_.U);_.X=iT.prototype;_.X.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.X.created=function(){var f=this;this.boundStampSecondarySearchContainerIfFits=function(){f.stampSecondarySearchContainerIfFits()};
_.zf("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.X.computeIsSearchFrictionPage=function(f){var R,u,O,c,h;f=f==null?void 0:(R=f.primaryContents)==null?void 0:(u=R.sectionListRenderer)==null?void 0:(O=u.contents)==null?void 0:(c=O[0])==null?void 0:(h=c.itemSectionRenderer)==null?void 0:h.contents;if(!f)return!1;R=_.Z(f);for(u=R.next();!u.done;u=R.next())if(O=void 0,(O=u.value)==null?0:O.searchFrictionViewModel)return!0;return!1};
_.X.computeShowSecondaryColumn=function(f,R){return!!(R&&R.secondaryContents&&f)};
_.X.activeChanged=function(){var f=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ks(this,this.debounceStampSecondarySearchContainerIfFits)),_.P2(function(){f.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ks(this,this.debounceStampSecondarySearchContainerIfFits))};
_.X.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.X.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.X.debounceStampSecondarySearchContainerIfFits=function(){_.UU(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.X.onRetrieveLocation=function(f,R){R.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);f.stopPropagation()};
_.X.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
iT.prototype.dataChanged=iT.prototype.dataChanged;iT.prototype.onRetrieveLocation=iT.prototype.onRetrieveLocation;iT.prototype.persistentGuideChanged=iT.prototype.persistentGuideChanged;iT.prototype.activeChanged=iT.prototype.activeChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],iT.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],iT.prototype,"ironResizableBehavior",void 0);_.B([_.I(),_.S("design:type",Boolean)],iT.prototype,"active",void 0);_.B([_.I(),_.S("design:type",Object)],iT.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],iT.prototype,"useBiggerThumbs",void 0);_.B([_.I({reflectToAttribute:!0,value:function(){return _.uZ("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],iT.prototype,"biggerThumbsStyle",void 0);_.B([_.I(),_.S("design:type",Object)],iT.prototype,"renderSecondarySearchContainer",void 0);_.B([_.I({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.S("design:type",Boolean)],iT.prototype,"showSecondaryColumn",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.S("design:type",Boolean)],iT.prototype,"isSearchFrictionPage",void 0);
_.B([_.I(),_.S("design:type",Object)],iT.prototype,"isSearch",void 0);_.B([_.I(),_.S("design:type",Object)],iT.prototype,"isSearchDova",void 0);_.B([_.qM("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iT.prototype,"activeChanged",null);_.B([_.qM("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iT.prototype,"persistentGuideChanged",null);
_.B([_.Kf("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],iT.prototype,"onRetrieveLocation",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iT.prototype,"dataChanged",null);iT=_.B([_.e({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],iT);
_.G(iT,"ytd-two-column-search-results-renderer",function(){if(xTN!==void 0)return xTN;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return xTN=f},{mode:1});var rs=function(){var f=_.U.apply(this,arguments)||this;f.hasSearchHeader=!1;f.hasSecondaryContent=!1;f.hasBiggerThumbs=_.E("enable_desktop_search_bigger_thumbs");f.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return f};
_.y(rs,_.U);_.X=rs.prototype;_.X.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:_.Jz(["aa","eocs"])}}};
_.X.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.loadPage_=function(f){this.initCsi();f&&(this.data=f,_.zf("REFINEMENTS_TUPLE",["FromSearchResponse",f.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.YM(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.X.initCsi=function(){_.L$("results",["ol","cpt"])};
_.X.updateTitle=function(){var f=_.GP(window.location.href,"q");f||(f=_.GP(window.location.href,"search_query"));_.ul(this.hostElement,"yt-update-title",f||"")};
_.X.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.X.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.E("web_srp_data_changed_terminate_imp_killswitch")||_.OJ(this.hostElement,"yt-terminate-video-preview-action")};
_.X.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.X.computeHasSearchHeader=function(f){var R;f=f==null?void 0:(R=f.header)==null?void 0:R.searchHeaderRenderer;return!!f&&(!!f.searchFilterButton||!!f.chipBar)};
_.X.computeHasSecondaryContent=function(f){var R,u;return!!(f==null?0:(R=f.contents)==null?0:(u=R.twoColumnSearchResultsRenderer)==null?0:u.secondaryContents)};
_.Vy.Object.defineProperties(rs,{template:{configurable:!0,enumerable:!0,get:function(){if(dTK===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);dTK=f}f=dTK;return f}}});
rs.prototype.onReloadContinuationFinish=rs.prototype.onReloadContinuationFinish;rs.prototype.dataChanged=rs.prototype.dataChanged;_.B([_.z(_.bm.YtPageBehavior),_.S("design:type",Object)],rs.prototype,"ytPageBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],rs.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],rs.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rs.prototype,"data",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],rs.prototype,"monitorScroll",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rs.prototype,"hasSearchHeader",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rs.prototype,"hasSecondaryContent",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],rs.prototype,"hasBiggerThumbs",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rs.prototype,"dataChanged",null);
_.B([_.Kf("yt-reload-continuation-finish"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rs.prototype,"onReloadContinuationFinish",null);rs=_.B([_.e({is:"ytd-search"})],rs);_.fk.registerService(_.xn2,rs);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("h8y2qb");
var LKl=function(f){if(f=_.ZM2(f)){var R;(R=f.sources)!=null&&R[0]?(R=_.kke(f),R=R<1?"VERTICAL":R>1?"HORIZONTAL":"SQUARE"):R=void 0;return R}},p$=function(f){_.Qi.call(this,"upload");
this.opts.query=f},pS2=function(f,R){return _.a(bww,{data:f,
onYtNavigate:R})},jc9=function(f,R){return _.kZ(f.entities,"pageHeaderEntity",R)},Jzw=function(f,R){return f.map(function(u){if(u.tabRenderer)return D3e(u.tabRenderer);
if(u.expandableTabRenderer&&R){var O=u.expandableTabRenderer;return{customTabRenderable:function(){return R(O)}}}return{}})},D3e=function(f){return{identifier:f.tabIdentifier,
aTagConfig:_.MO({innertubeCommand:f.endpoint,forceNewState:!0}),title:f.title,selected:f.selected,disabled:f.unselectable,icon:f.icon}},zse=function(f){return _.OP({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:f})},TKh=function(f){if(!_.vM(document,"gtm-noscript")){var R=document.createElement("noscript");
R.id="gtm-noscript";R.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+f+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(R)}};_.f6(p$,_.Qi);p$.prototype.JSC$8078_setLabel=function(f){p$.superClass_.JSC$8078_setLabel.call(this,f);return this};
p$.prototype.addUploadMetadata=function(f,R){p$.superClass_.addUploadMetadata.call(this,f,R);return this};var HwX=function(f){if(f!=="youtubebanner"&&f!=="youtube-channel-banner")throw Error("Tl");p$.call(this,f)};
_.y(HwX,p$);HwX.prototype.JSC$8078_setLabel=function(f){p$.prototype.JSC$8078_setLabel.call(this,f);return this};
HwX.prototype.addUploadMetadata=function(f,R){p$.prototype.addUploadMetadata.call(this,f,R);return this};var I6t=[_.Lu,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(f){_.du(f).path[0]!==this&&(this.resetLayout(),f.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var f=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.uQ(this._layoutDebouncer,_.dR,f);_.Or(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var f=this;requestAnimationFrame(function(){f.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(f){this.resizerShouldNotify(f)&&this._notifyDescendant(f)},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 MSz=[_.SUk,{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(f,R){var u=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f];if(!u)throw new ReferenceError(this._getUndefinedMsg(f));f=this._boundEffect(u,R||{});f.setUp();return f},
_effectsChanged:function(f,R,u){this._tearDownEffects();f&&u&&(f.split(" ").forEach(function(O){var c;O!==""&&((c=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[O])?this._effects.push(this._boundEffect(c,R[O])):console.warn(this._getUndefinedMsg(O)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(f,R){R=R||{};var u=parseFloat(R.startsAt||0),O=parseFloat(R.endsAt||1),c=O-u,h=function(){};
O=u===0&&O===1?f.run:function(l,K){f.run.call(this,Math.max(0,(l-u)/c),K)};
return{setUp:f.setUp?f.setUp.bind(this,R):h,run:f.run?O.bind(this):h,tearDown:f.tearDown?f.tearDown.bind(this):h}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(f){f.setUp()!==!1&&this._effectsRunFn.push(f.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(f){f.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(f,R){this._effectsRunFn&&this._effectsRunFn.forEach(function(u){u(f,R)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var f=this._clampedScrollTop;this._updateScrollState(f);this.threshold>0&&this._setThresholdTriggered(f>=this.threshold)}},
_getDOMRef:function(f){console.warn("_getDOMRef","`"+f+"` is undefined")},
_getUndefinedMsg:function(f){return"Scroll effect `"+f+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+f+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(f){var R={};f=parseFloat(f.scalar);R.background=this._getDOMRef("background");R.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");R.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");R.deltaBg=R.backgroundFrontLayer.offsetHeight-R.background.offsetHeight;R.deltaBg===0?(isNaN(f)&&(f=.8),R.deltaBg=(this._dHeight||0)*f):(isNaN(f)&&(f=
1),R.deltaBg*=f);this._fxParallaxBackground=R},
run:function(f){var R=this._fxParallaxBackground;this.transform("translate3d(0px, "+R.deltaBg*Math.min(1,f)+"px, 0px)",R.backgroundFrontLayer);R.backgroundRearLayer&&this.transform("translate3d(0px, "+R.deltaBg*Math.min(1,f)+"px, 0px)",R.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var PMS;var U3m;var esS=function(){};
_.X=esS.prototype;_.X._scrollTargetChanged=function(){};
_.X.scroll=function(){};
_.X._isValidScrollTarget=function(){};
_.X._toggleScrollListener=function(){};
_.X.toggleScrollListener=function(){};
_.X.createEffect=function(){};
_.X._effectsChanged=function(){};
_.X._layoutIfDirty=function(){};
_.X._boundEffect=function(){};
_.X._setUpEffect=function(){};
_.X._tearDownEffects=function(){};
_.X._runEffects=function(){};
_.X._scrollHandler=function(){};
_.X._scrollStateChanged=function(){};
_.X._getUndefinedMsg=function(){};
_.X.notifyResize=function(){};
_.X.assignParentResizable=function(){};
_.X.stopResizeNotificationsFor=function(){};
_.X._subscribeIronResize=function(){};
_.X._unsubscribeIronResize=function(){};
_.X.resizerShouldNotify=function(){};
_.X._onDescendantIronResize=function(){};
_.X._fireResize=function(){};
_.X._onIronRequestResizeNotifications=function(){};
_.X._parentResizableChanged=function(){};
_.X._notifyDescendant=function(){};
_.X._requestResizeNotifications=function(){};
_.X._findParent=function(){};
_.X._appResetLayoutHandler=function(){};
_.X.resetLayout=function(){};
_.X._notifyLayoutChanged=function(){};
_.X._notifyDescendantResize=function(){};
_.X._setThresholdTriggered=function(){};
esS=_.NM({_template:function(){if(U3m!==void 0)return U3m;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;PMS===void 0&&(PMS=document.createElement("template"));var O=PMS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return U3m=f},
is:"tp-yt-app-header",behaviors:[MSz,I6t],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 f=_.du(this.$.slot).getDistributedNodes(),R=0,u;u=f[R];R++)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 f=this._clampedScrollTop,R=this._height===0||f===0,u=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;R||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();R?this._updateScrollState(f,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=u}},
_updateScrollState:function(f,R){if(this._height!==0){var u=0,O=this._top;var c=this._maxHeaderTop;var h=f-this._lastScrollTop,l=Math.abs(h),K=f>this._lastScrollTop,q=performance.now();this._mayMove()&&(u=this._clamp(this.reveals?O+h:f,0,c));f>=this._dHeight&&(u=this.condenses&&!this.fixed?Math.max(this._dHeight,u):u,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&l<100){if(q-this._initTimestamp>300||this._wasScrollingDown!==K)this._initScrollTop=f,this._initTimestamp=q;f>=c&&
(Math.abs(this._initScrollTop-f)>30||l>10?(K&&f>=c?u=c:!K&&f>=this._dHeight&&(u=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((u-O)/(h/(q-this._lastTimestamp)),0,300)+"ms"):u=this._top)}c=this._dHeight===0?f>0?1:0:u/this._dHeight;R||(this._lastScrollTop=f,this._top=u,this._wasScrollingDown=K,this._lastTimestamp=q);if(R||c!==this._progress||O!==u||f===0)this._progress=c,this._runEffects(c,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(f){this.translate3d(0,-f+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&f>=this._stickyElTop?Math.min(f,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(f,R,u){return Math.min(u,Math.max(R,f))},
_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),_.du(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(f){switch(f){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.du(this).querySelector("[main-title]");case "condensedTitle":return _.du(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var GFw;var BKw;_.NM({_template:function(){if(BKw!==void 0)return BKw;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;GFw===void 0&&(GFw=document.createElement("template"));var O=GFw;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return BKw=f},
is:"tp-yt-app-header-layout",behaviors:[I6t],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.du(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var f=this.header;if(this.isAttached&&f){this.$.wrapper.classList.remove("initializing");f.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)f.style.left=
"",f.style.right="";else{var R=this.getBoundingClientRect(),u=document.documentElement.clientWidth-R.right;f.style.left=R.left+"px";f.style.right=u+"px"}R=this.$.contentContainer.style;u=f.offsetHeight;f.fixed&&!f.condenses&&this.hasScrollingRegion?(R.marginTop=u+"px",R.paddingTop=""):(R.paddingTop=u+"px",R.marginTop="")}}});var oLw=new _.Y("replaceFeedContentAction");var x3X=new _.Y("alertCommand");var So2=new _.Y("manageLabsStateCommand");var $3K=new _.Y("inlineFormRenderer");var jR=new _.Y("playlistSidebarPrimaryInfoRenderer");var gLt=new _.Y("productDetailsThumbnailRenderer"),scS=new _.Y("productDetailsVariantRenderer"),nL9=new _.Y("productDetailsVariantOptionRenderer"),VS5=new _.Y("productDetailsOffersContainerRenderer"),Yow=new _.Y("productDetailsOfferRenderer");var vL2=new _.Y("shoppingFlaggingRenderer");var iw2=new _.Y("playlistBylineRenderer");var rzh=new _.Y("insertChannelTabCommand");var Db=function(){return _.w_.apply(this,arguments)||this};
_.y(Db,_.w_);_.X=Db.prototype;_.X.activeChanged=function(){if(this.active){var f=_.b(this.hostElement).querySelector("#header");f&&_.ul(f,"iron-resize");window.addEventListener("scroll",_.ks(this,this.onScroll))}else window.removeEventListener("scroll",_.ks(this,this.onScroll)),_.ul(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.X.guideVisibleChanged=function(){var f=_.b(this.hostElement).querySelector("#header");f&&_.ul(f,"iron-resize")};
_.X.onScroll=function(){var f=this;_.UU(this,"onScroll",function(){var R=_.b(f.hostElement).querySelector("#header");R&&R.polymerController&&(R=R.polymerController.getScrollState().progress===1?"standard":"seamed",_.ul(f.hostElement,"yt-request-panel-mode-change",{mode:R}))},10)};
_.X.tabsChanged=function(){if(this.tabs){for(var f=null,R=0,u=this.tabs.length;R<u;++R){var O=this.tabs[R].tabRenderer;if(O&&O.selected){f=R;break}}this.selected=f}};
_.X.onTabsActivate=function(f){_.ul(this.hostElement,"yt-navigate",{endpoint:this.tabs[f.detail.selected].tabRenderer.endpoint})};
Db.prototype.tabsChanged=Db.prototype.tabsChanged;Db.prototype.guideVisibleChanged=Db.prototype.guideVisibleChanged;Db.prototype.activeChanged=Db.prototype.activeChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Db.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.I(),_.S("design:type",Array)],Db.prototype,"tabs",void 0);
_.B([_.I(),_.S("design:type",Object)],Db.prototype,"selected",void 0);_.B([_.I(),_.S("design:type",Boolean)],Db.prototype,"active",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Db.prototype,"disableHeaderFluidWidth",void 0);_.B([_.qM("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Db.prototype,"activeChanged",null);
_.B([_.qM("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Db.prototype,"guideVisibleChanged",null);_.B([_.qM("tabs"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Db.prototype,"tabsChanged",null);Db=_.B([_.mt()],Db);var fiK=[_.r.YtRendererBehavior,_.U7.YtdGuideStateAwareBehavior,Db.prototype];var RbK=2/3,udt=_.dx(130749),O4w=function(f,R){var u=this;this.element=f;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:RbK,moveAction:function(O){u.moveAction(O)},
triggerAction:function(){u.element.isReloading=!0;_.MI(_.wR(),{visualElement:udt});_.KU.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:u.element}})}}}};
_.Xl(_.wR(),udt,this.layer);this.gesture=new _.K$(f,R,this.refreshConfig,"pan-down");this.attach()};
_.X=O4w.prototype;_.X.attach=function(){this.gesture.attach()};
_.X.detach=function(){this.gesture.detach()};
_.X.reset=function(){this.element.close()};
_.X.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.X.moveAction=function(f){this.element.rotation=f*360};var cDh=_.dx(130750),Jw=function(f,R,u,O,c){var h=this;this.element=f;this.parent=u;this.channelHeader=O;this.ytdReduxDispatch=c;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){h.tabsStartAtInPx=h.channelHeader.clientHeight-48;var l;(l=h.selectedTab)!=null&&l.title&&(l=_.vh().resolve(_.Y8(_.sz)))&&(l=l.getCurrentPage(),h.lastVisitedTabScrollPosition=l.getScrollTop(),h.previousTab&&
((h.lastVisitedTabScrollPosition===void 0?0:h.lastVisitedTabScrollPosition<h.channelHeader.clientHeight-48)?h.scrollPositionForTabs.has(h.selectedTab.title)&&h.scrollPositionForTabs.delete(h.selectedTab.title):h.scrollPositionForTabs.set(h.selectedTab.title,l.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Xxm(),triggerAction:function(){h.navigate(h.previousTab)},
moveAction:function(l,K){h.moveAction(l,K)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Xxm(),triggerAction:function(){h.navigate(h.nextTab)},
moveAction:function(l,K){h.moveAction(l,K)}}}};
_.Xl(_.wR(),cDh,this.layer);this.gesture=new _.K$(f,R,this.tabConfig);this.attach()};
Jw.prototype.attach=function(){this.gesture.attach()};
Jw.prototype.detach=function(){this.gesture.detach()};
Jw.prototype.tabsChanged=function(f){if(f){var R=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;f=_.Z(f);for(var u=f.next();!u.done;u=f.next()){u=u.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=u);var O=void 0;if((O=u)==null?0:O.selected)this.previousTab=R,this.selectedTab=u;R=u}R=this.gesture;f=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}});
R.config=f;this.scrollPositionNeedsUpdate=!0}};
Jw.prototype.moveAction=function(f,R){if(!this.tabsElement){var u;this.tabsElement=(u=this.parent.header)==null?void 0:u.tabsElement;R==="right"&&this.previousTab?_.ZYk(_.Fs.instance,this.previousTab.endpoint,{},""):R==="left"&&this.nextTab&&_.ZYk(_.Fs.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}u=this.tabsElement._pos;R==="right"&&(f*=-1);this.tabsElement._positionBar(u.width,u.left*1+u.width*f)};
var Xxm=function(){var f,R;return(R=(f=_.vh().resolve(_.sz).getCurrentPage())==null?void 0:f.clientWidth)!=null?R:0};
Jw.prototype.navigate=function(f){this.element.data=void 0;if(f=f==null?void 0:f.endpoint)this.ytdReduxDispatch(zse(!0)),_.MI(_.wR(),{visualElement:cDh}),_.KU.instance.resolveCommand({navigateAction:{endpoint:f}},{form:{element:this.element}})};var hbS;var Z4K;var zy=function(){return _.U.apply(this,arguments)||this};
_.y(zy,_.U);zy.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zy.prototype,"data",void 0);zy=_.B([_.e({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],zy);
_.G(zy,"ytd-labs-edit-renderer",function(){if(Z4K!==void 0)return Z4K;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Z4K=f},{mode:1});var lit;var Ty=function(){var f=_.U.apply(this,arguments)||this;f.dark=!1;f.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";f.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(Ty,_.U);Ty.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ty.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.setBackgroundImage(f);this.dark=f};
Ty.prototype.onDarkModeToggledAction=function(f){this.setBackgroundImage(f);this.dark=f};
Ty.prototype.setBackgroundImage=function(f){_.ZO(this.hostElement,{"--yt-labs-header-background":"url("+(f?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Ty.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ty.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ty.prototype,"dark",void 0);
Ty=_.B([_.e({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Ty);
_.G(Ty,"ytd-labs-header-renderer",function(){if(lit!==void 0)return lit;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return lit=f},{mode:1});var k3N;var HF=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return f};
_.y(HF,_.U);HF.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"}}}}}};
HF.prototype.onYtToggleButton=function(f){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",f.detail.toggled)};
HF.prototype.onManageLabsState=function(f){if(f=_.t(f,So2))f.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?f.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&f.labsItemId===this.data.labsItemId&&(f.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.OJ(this.hostElement,"yt-check-labs-opted-in-state").some(function(R){return R})&&this.data.confirmationDialogCommand?_.ZW(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.vh().resolve(_.rv).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&f.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.vh().resolve(_.rv).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
HF.prototype.onCheckLabsOptedInState=function(){var f=this.get("data.primaryButton.toggleButtonRenderer");return f?f.isToggled:!1};
_.Vy.Object.defineProperties(HF.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
HF.prototype.onYtToggleButton=HF.prototype.onYtToggleButton;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],HF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],HF.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],HF.prototype,"itemStyle",null);_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],HF.prototype,"onYtToggleButton",null);HF=_.B([_.e({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],HF);
_.G(HF,"ytd-labs-item-renderer",function(){if(k3N!==void 0)return k3N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return k3N=f},{mode:1});var KLt;var qKh;var IN=function(){return _.U.apply(this,arguments)||this};
_.y(IN,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IN.prototype,"data",void 0);IN=_.B([_.e({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],IN);
_.G(IN,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(qKh!==void 0)return qKh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qKh=f},{mode:1});var ADw;var My=function(){return _.U.apply(this,arguments)||this};
_.y(My,_.U);My.prototype.observeSuperchatChip=function(){if(this.data){var f={"--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)};_.ZO(this.hostElement,f)}};
My.prototype.colorFromDecimal=function(f){return _.ML(Number(f||0))};
My.prototype.observeSuperchatChip=My.prototype.observeSuperchatChip;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],My.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],My.prototype,"observeSuperchatChip",null);My=_.B([_.e({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],My);
_.G(My,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ADw!==void 0)return ADw;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ADw=f},{mode:1});var PF=function(){return _.U.apply(this,arguments)||this};
_.y(PF,_.U);PF.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"}}}};
_.Vy.Object.defineProperties(PF.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.HX),_.S("design:type",Object)],PF.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],PF.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],PF.prototype,"hideMessageBlock",null);
PF=_.B([_.e({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],PF);
_.G(PF,"ytd-live-chat-history-entry-renderer",function(){if(KLt!==void 0)return KLt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return KLt=f},{mode:1});var aiz;var U_=function(){return _.U.apply(this,arguments)||this};
_.y(U_,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],U_.prototype,"data",void 0);U_=_.B([_.e({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],U_);
_.G(U_,"ytd-channel-options-renderer",function(){if(aiz!==void 0)return aiz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return aiz=f},{mode:1});var FLl;var eR=function(){return _.U.apply(this,arguments)||this};
_.y(eR,_.U);eR.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],eR.prototype,"data",void 0);eR=_.B([_.e({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],eR);
_.G(eR,"ytd-settings-email-item-renderer",function(){if(FLl!==void 0)return FLl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FLl=f},{mode:1});var wxt;var Gy=function(){return _.U.apply(this,arguments)||this};
_.y(Gy,_.U);Gy.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"}}}};
Gy.prototype.getExpansionIcon=function(f){return f?"arrow_drop_up":"arrow_drop_down"};
Gy.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Vy.Object.defineProperties(Gy.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gy.prototype,"data",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Gy.prototype,"expanded",void 0);_.B([_.T("expanded"),_.S("design:type",String),_.S("design:paramtypes",[])],Gy.prototype,"emailListExpanded",null);
_.B([_.a4("#options"),_.S("design:type",Object)],Gy.prototype,"options",void 0);Gy=_.B([_.e({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Gy);
_.G(Gy,"ytd-settings-email-list-renderer",function(){if(wxt!==void 0)return wxt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wxt=f},{mode:1});var m9K;var BF=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return f};
_.y(BF,_.U);BF.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"}}}};
BF.prototype.handleSignalActionSubmitForm=function(){var f,R=(f=this.formRenderer)==null?void 0:f.getForm();R&&this.data.serviceEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},R,{element:this.hostElement})})};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],BF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],BF.prototype,"data",void 0);_.B([_.a4("yt-form-renderer"),_.S("design:type",Object)],BF.prototype,"formRenderer",void 0);
BF=_.B([_.e({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],BF);
_.G(BF,"ytd-settings-gaia-link-renderer",function(){if(m9K!==void 0)return m9K;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return m9K=f},{mode:1});var QRz;var oN=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return f};
_.y(oN,_.U);oN.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Wo5()&&this.set("data.hidden",!1)};
oN.prototype.onSwitchReady=function(){var f=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.E("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.QaK().then(function(R){R&&(Notification.permission==="default"?f.set("data.hidden",!1):Notification.permission==="granted"&&_.nw("NotificationsDisabled").then(function(u){u||_.OJ(f.hostElement,"yt-toggle-settings-switch",[f.data.id,!u]);f.set("data.hidden",!1)}).catch(function(){}))})})};
oN.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}}}}};
oN.prototype.handleUpdateOptionsCommand=function(f){(f=_.t(f,_.CHi))&&this.data&&this.data.id===f.id&&(this.set("data.hidden",f.hidden),f.text!==void 0&&this.set("data.text",f.text),f.clearOptions&&this.set("data.options",[]))};
oN.prototype.onSwitchReady=oN.prototype.onSwitchReady;oN.prototype.dataChanged=oN.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],oN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oN.prototype,"data",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oN.prototype,"dataChanged",null);_.B([_.Kf("yt-settings-switch-ready"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oN.prototype,"onSwitchReady",null);oN=_.B([_.e({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],oN);
_.G(oN,"ytd-settings-options-renderer",function(){if(QRz!==void 0)return QRz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return QRz=f},{mode:1});var WLN;var xo=function(){return _.U.apply(this,arguments)||this};
_.y(xo,_.U);xo.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
xo.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
xo.prototype.onYtExpanderMoreTapped=xo.prototype.onYtExpanderMoreTapped;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],xo.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xo.prototype,"data",void 0);
_.B([_.Kf("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xo.prototype,"onYtExpanderMoreTapped",null);xo=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],xo);
_.G(xo,"ytd-product-details-description-renderer",function(){if(WLN!==void 0)return WLN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WLN=f},{mode:1});var E2l;var SR=function(){var f=_.U.apply(this,arguments)||this;f.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";f.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";f.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";f.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return f};
_.y(SR,_.U);SR.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Vy.Object.defineProperties(SR.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:(R=f.offerData)==null?void 0:R.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?void 0:f.purchaseButtonRenderers)!==void 0&&((R=this.data)==null?void 0:R.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.formattedFromMerchantText)&&(!((R=this.data)==null||!R.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SR.prototype,"data",void 0);
_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],SR.prototype,"shippingIcon",void 0);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],SR.prototype,"shippingAddressIcon",void 0);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],SR.prototype,"googleGuaranteeIcon",void 0);
_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],SR.prototype,"returnPolicyIcon",void 0);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SR.prototype,"showAdditionalFees",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SR.prototype,"showMultiPurchaseButtons",null);
_.B([_.T("data","showMultiPurchaseButtons"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SR.prototype,"showPurchaseData",null);SR=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],SR);
_.G(SR,"ytd-product-details-hero-offer-renderer",function(){if(E2l!==void 0)return E2l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return E2l=f},{mode:1});var t_5;var CFt;var $o=function(){return _.U.apply(this,arguments)||this};
_.y($o,_.U);_.X=$o.prototype;_.X.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.X.onKeyDown=function(f){f=f.keyCode;f!==13&&f!==32||this.handleSelection()};
_.X.onMouseEnterImage=function(){var f;((f=this.data)==null?void 0:f.thumbnailDetails)!==void 0&&_.c_(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.X.onMouseLeaveImage=function(){_.c_(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.X.handleSelection=function(){this.data&&_.ul(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Vy.Object.defineProperties($o.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isSelected)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$o.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],$o.prototype,"isSelected",null);$o=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],$o);
_.G($o,"ytd-product-details-thumbnail-renderer",function(){if(CFt!==void 0)return CFt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return CFt=f},{mode:1});var gT=function(){var f=_.U.apply(this,arguments)||this;var R={};f.actionMap=(R["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",R["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",R);f.selectedThumbnailIndex=0;f.selectItem=function(u){u.target.onKeyDown(u)};
return f};
_.y(gT,_.U);_.X=gT.prototype;_.X.handlePreviewImageSelect=function(f){this.hoverThumbnail=f};
_.X.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.X.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.X.onThumbnailSelected=function(f,R){this.selectedThumbnailIndex=R};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.X.updateOffset=function(){var f=_.b(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-f));this.ytdHorizontalListBehavior.reposition_()};
_.Vy.Object.defineProperties(gT.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.imageRenderer){var R,u;return((R=this.data)==null?void 0:(u=R.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 f;if((f=this.data)==null?0:f.imageRenderer){var R;return(R=_.t(this.data.imageRenderer[this.selectedThumbnailIndex],gLt))==null?void 0:R.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var f=this,R,u,O,c=(O=(R=this.data)==null?void 0:(u=R.imageRenderer)==null?void 0:u.map(function(h,l){return{productDetailsThumbnailRenderer:Object.assign({},_.t(h,gLt),{index:l,isSelected:l===f.selectedThumbnailIndex})}}))!=null?O:[];
return Object.assign({},this.data,{imageRenderer:c})}}});
gT.prototype.updateOffset=gT.prototype.updateOffset;gT.prototype.dataChanged=gT.prototype.dataChanged;gT.prototype.onThumbnailSelected=gT.prototype.onThumbnailSelected;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fe.YtdHorizontalListBehavior),_.S("design:type",Object)],gT.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],gT.prototype,"componentBehavior",void 0);_.B([_.z([_.fq.YtActionHandlerBehavior]),_.S("design:type",Object)],gT.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gT.prototype,"data",void 0);_.B([_.I({value:"$.items.children"}),_.S("design:type",String)],gT.prototype,"itemsPath",void 0);_.B([_.I({value:3}),_.S("design:type",Number)],gT.prototype,"initialCount",void 0);
_.B([_.a4("#items"),_.S("design:type",Object)],gT.prototype,"items",void 0);_.B([_.I(),_.S("design:type",Object)],gT.prototype,"selectedThumbnailIndex",void 0);_.B([_.I(),_.S("design:type",Object)],gT.prototype,"hoverThumbnail",void 0);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gT.prototype,"showThumbnails",null);
_.B([_.Kf("ytd-product-details-thumbnail-renderer-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Number]),_.S("design:returntype")],gT.prototype,"onThumbnailSelected",null);_.B([_.T("data","selectedThumbnailIndex","hoverThumbnail"),_.S("design:type",Object),_.S("design:paramtypes",[])],gT.prototype,"thumbnailDetails",null);_.B([_.T("data","selectedThumbnailIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],gT.prototype,"populatedData",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gT.prototype,"dataChanged",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gT.prototype,"updateOffset",null);gT=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],gT);
_.G(gT,"ytd-product-details-image-carousel-renderer",function(){if(t_5!==void 0)return t_5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return t_5=f},{mode:_.c7("kevlar_poly_si_batch_j079")?1:2});var yDm;var s_=function(){return _.U.apply(this,arguments)||this};
_.y(s_,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],s_.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],s_.prototype,"data",void 0);s_=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],s_);
_.G(s_,"ytd-product-details-offer-renderer",function(){if(yDm!==void 0)return yDm;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return yDm=f},{mode:1});var d9m;var n$=function(){var f=_.U.apply(this,arguments)||this;f.isOffersHidden=!0;return f};
_.y(n$,_.U);n$.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var f,R=_.t((f=this.data)==null?void 0:f.viewOffersButton,_.z9);R&&this.ytRendererBehavior.logExplicitClick(R)};
n$.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Vy.Object.defineProperties(n$.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return(u=_.t((f=this.data)==null?void 0:(R=f.offers)==null?void 0:R[0],Yow))==null?void 0:(O=u.offerData)==null?void 0:O.vendorLogoUrl}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],n$.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],n$.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],n$.prototype,"isOffersHidden",void 0);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],n$.prototype,"firstOfferVendorLogoUrl",null);n$=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],n$);
_.G(n$,"ytd-product-details-offers-container-renderer",function(){if(d9m!==void 0)return d9m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return d9m=f},{mode:1});var NMl;var LLm;var Vl=function(){return _.U.apply(this,arguments)||this};
_.y(Vl,_.U);Vl.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Vl.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.c_(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Vl.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.c_(this,"ytd-product-details-variant-image-unselect")};
_.Vy.Object.defineProperties(Vl.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 f;return((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?void 0:f.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((R=this.data)==null?void 0:R.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 f;if(((f=this.data)==null?void 0:f.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var f,R;return this.isUnavailable?(f=this.data)==null?void 0:f.variantOptionUnavailableAccessibilityLabel:(R=this.data)==null?void 0:R.variantOptionAccessibilityLabel}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Vl.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Vl.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],Vl.prototype,"displayType",void 0);
_.B([_.T("displayType","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Vl.prototype,"isImageButton",null);_.B([_.T("displayType","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Vl.prototype,"isPillButton",null);_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Vl.prototype,"isActive",null);
_.B([_.T("data"),_.I({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Vl.prototype,"isUnavailable",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vl.prototype,"thumbnailDetails",null);_.B([_.T("isUnavailable","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vl.prototype,"accessibilityLabel",null);Vl=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Vl);
_.G(Vl,"ytd-product-details-variant-option-renderer",function(){if(LLm!==void 0)return LLm;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return LLm=f},{mode:1});var b4m;var Yo=function(){var f=_.U.apply(this,arguments)||this;f.variantsExpanded=!1;f.hideShowMoreLessVariantButton=!0;f.initialized=!1;f.computeVariantsDebouncer=null;f.computeVariants=function(R){R=R===void 0?!1:R;f.variantsExpanded||f.showOptions()||!R||(f.variantsExpanded=!0);if(f.variantsExpanded){R=_.Z(f.items.children);for(var u=R.next();!u.done;u=R.next())u.value.hidden=!1}f.initialized=!0};
return f};
_.y(Yo,_.U);_.X=Yo.prototype;_.X.ready=function(){var f=this;setTimeout(function(){f.computeVariants(!0)})};
_.X.showOptions=function(){for(var f=_.Z(this.items.children),R=f.next();!R.done;R=f.next())R.value.hidden=!0;var u=this.container.getBoundingClientRect().width,O=0,c=f=0;R=!1;for(var h=_.Z(this.items.children),l=h.next();!l.done;l=h.next()){l=l.value;l.hidden=!1;var K=l.getBoundingClientRect().width;if(O+K<u)O+=K;else if(++c<2)O=K;else break;f+=1;l.hasAttribute("is-active")&&(R=!0)}for(u=f;u<this.items.children.length;u++)this.items.children[u].hidden=!0;this.hideShowMoreLessVariantButton=f===this.items.children.length;
return R};
_.X.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.uQ(this.computeVariantsDebouncer,_.SH.after(100),this.computeVariants)};
_.X.onShowMoreLessVariantsButtonClick=function(){var f;(f=this.data)!=null&&f.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.X.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Vy.Object.defineProperties(Yo.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.data)==null?void 0:(R=f.variantOptionRenderers)==null?void 0:R.find(function(h){return _.t(h,nL9).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),O,c;
return(c=(O=_.t(u,nL9))==null?void 0:O.name)!=null?c:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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"}}}});
Yo.prototype.debouncedComputeVariants=Yo.prototype.debouncedComputeVariants;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Yo.prototype,"componentBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],Yo.prototype,"ironResizableBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Yo.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Yo.prototype,"variantsExpanded",void 0);_.B([_.I(),_.S("design:type",Object)],Yo.prototype,"hideShowMoreLessVariantButton",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Yo.prototype,"initialized",void 0);_.B([_.a4("#items"),_.S("design:type",HTMLDivElement)],Yo.prototype,"items",void 0);_.B([_.a4("#container"),_.S("design:type",HTMLDivElement)],Yo.prototype,"container",void 0);
_.B([_.a4("#more-variants-button"),_.S("design:type",HTMLElement)],Yo.prototype,"moreVariantsButton",void 0);_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Yo.prototype,"selectedOptionName",null);_.B([_.qM("data","variantsExpanded"),_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yo.prototype,"debouncedComputeVariants",null);
_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Yo.prototype,"displayType",null);_.B([_.T("displayType"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yo.prototype,"variantItemsClassname",null);Yo=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Yo);
_.G(Yo,"ytd-product-details-variant-renderer",function(){if(b4m!==void 0)return b4m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return b4m=f},{mode:1});var vF=function(){return _.U.apply(this,arguments)||this};
_.y(vF,_.U);
vF.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"}}}};
_.Vy.Object.defineProperties(vF.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(R=_.t((f=this.data)==null?void 0:f.offersContainerRenderer,VS5))==null?void 0:R.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 f,R,u;return((u=(f=this.data)==null?void 0:(R=f.variants)==null?void 0:R.map(function(O){var c,h;O=(h=(c=_.t(O,scS))==null?void 0:c.variantOptionRenderers)==null?void 0:h.find(function(K){var q;return((q=_.t(K,nL9))==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var l;return(l=_.t(O,nL9))==null?void 0:l.name}).filter(function(O){return typeof O==="string"}))!=null?u:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O=(R=_.t((f=this.data)==null?void 0:f.shoppingFlaggingRenderer,vL2))==null?void 0:(u=R.reportButton)==null?void 0:u.buttonRenderer;if(O)return{text:O.text,command:O.command,icon:{iconType:"FLAG"},accessibilityData:O.accessibilityData,trackingParams:O.trackingParams,loggingDirectives:O.loggingDirectives}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],vF.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vF.prototype,"data",void 0);_.B([_.a4("#image-carousel-renderer"),_.S("design:type",Object)],vF.prototype,"imageCarouselRenderer",void 0);
_.B([_.a4("#hero-offer-renderer"),_.S("design:type",Object)],vF.prototype,"productDetailsHeroOfferRenderer",void 0);_.B([_.a4("#variants"),_.S("design:type",Object)],vF.prototype,"productDetailsVariantRenderer",void 0);_.B([_.a4("#offers"),_.S("design:type",Object)],vF.prototype,"productDetailsOffersContainerRenderer",void 0);_.B([_.a4("#description-renderer"),_.S("design:type",Object)],vF.prototype,"productDetailsDescriptionRenderer",void 0);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vF.prototype,"showPurchaseData",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vF.prototype,"showHeroOfferRenderer",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vF.prototype,"showBrandText",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vF.prototype,"showOffers",null);
_.B([_.T("showOffers","showPurchaseData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vF.prototype,"showBuySeparator",null);_.B([_.T("showOffers","showPurchaseData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vF.prototype,"showBuyCard",null);_.B([_.T("data"),_.S("design:type",String),_.S("design:paramtypes",[])],vF.prototype,"selectedVariantsText",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],vF.prototype,"shoppingReportingButtonData",null);
vF=_.B([_.e({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],vF);
_.G(vF,"ytd-product-details-renderer",function(){if(NMl!==void 0)return NMl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return NMl=f},{mode:1});var pxa;var jRt;var D9h;var im=function(){return _.U.apply(this,arguments)||this};
_.y(im,_.U);im.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Vy.Object.defineProperties(im.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],im.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],im.prototype,"formattedAmount",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],im.prototype,"ariaLabel",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.style"),_.S("design:type",String),_.S("design:paramtypes",[])],im.prototype,"vcBalanceWidgetStyle",null);im=_.B([_.DO({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],im);
_.G(im,"yt-vc-balance-renderer",function(){if(D9h===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;jRt===void 0&&(jRt=document.createElement("template"));var O=jRt;u.call(R,O.content.cloneNode(!0),f.content.firstChild);D9h=f}f=D9h;return f},{mode:2});_.j6("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var rT=function(){return _.U.apply(this,arguments)||this};
_.y(rT,_.U);_.Vy.Object.defineProperties(rT.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:""}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],rT.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rT.prototype,"data",void 0);_.B([_.I({selectorArgs:["data.vcBalanceEntityKey"],selector:function(f,R){return _.kZ(f.entities,"vcBalanceEntity",R)}}),
_.S("design:type",Object)],rT.prototype,"vcBalanceEntity",void 0);_.B([_.T("vcBalanceEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],rT.prototype,"formattedAmount",null);_.B([_.T("vcBalanceEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],rT.prototype,"vcBalanceAriaLabel",null);rT=_.B([_.e({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],rT);
_.G(rT,"ytd-vc-balance-renderer",function(){if(pxa!==void 0)return pxa;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return pxa=f},{mode:1});var JDl;var fP=function(){var f=_.U.apply(this,arguments)||this;f.rotation=0;f.isReloading=!1;return f};
_.y(fP,_.U);fP.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
fP.prototype.reset=function(){this.hostElement.style.opacity=""};
fP.prototype.close=function(){var f=this;return _.k(function(R){if(R.nextAddress==1)return _.A(R,f.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.hostElement.style.opacity="0";_.KG(R)})};
fP.prototype.rotationChanged=fP.prototype.rotationChanged;_.B([_.I(),_.S("design:type",Object)],fP.prototype,"rotation",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],fP.prototype,"isReloading",void 0);_.B([_.a4("#icon"),_.S("design:type",HTMLElement)],fP.prototype,"icon",void 0);_.B([_.qM("rotation"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fP.prototype,"rotationChanged",null);
fP=_.B([_.e({disableElementRegistration:!0,is:"ytd-refresh"})],fP);
_.G(fP,"ytd-refresh",function(){if(JDl!==void 0)return JDl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return JDl=f},{mode:1});var zbN;var R9=function(){return _.U.apply(this,arguments)||this};
_.y(R9,_.U);R9.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"}}}};
R9.prototype.dataChanged=function(){if(this.data){var f=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var R=_.rR(this.data.banner.thumbnails,this.hostElement.clientWidth);R&&(R.indexOf("//")===0&&(R="https:"+R),this.hasBannerArt=!0,_.ZO(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+R+")"}))}this.hasBannerArt!==f&&_.b(this.hostElement).querySelector("#header").fire("iron-resize")}};
R9.prototype.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
R9.prototype.dataChanged=R9.prototype.dataChanged;_.B([_.z(fiK),_.S("design:type",Object)],R9.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.MD),_.S("design:type",Object)],R9.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],R9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],R9.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],R9.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],R9.prototype,"selected",void 0);_.B([_.I(),_.S("design:type",Boolean)],R9.prototype,"active",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],R9.prototype,"hasBannerArt",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R9.prototype,"dataChanged",null);R9=_.B([_.e({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],R9);
_.G(R9,"ytd-interactive-tabbed-header-renderer",function(){if(zbN!==void 0)return zbN;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zbN=f},{mode:1});var TMw;var uT=function(){return _.U.apply(this,arguments)||this};
_.y(uT,_.U);uT.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uT.prototype.computeActionsAlignment=function(f){return(f==null?void 0:f.actionsAlignment)||""};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],uT.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.S("design:type",String)],uT.prototype,"actionsAlignment",void 0);
uT=_.B([_.e({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],uT);
_.G(uT,"ytd-page-footer-renderer",function(){if(TMw!==void 0)return TMw;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return TMw=f},{mode:1});var H4m;var IiX;var OD=function(){var f=_.U.apply(this,arguments)||this;f.isEditing=!1;f.useSlot=!1;f.isMultiline=!1;return f};
_.y(OD,_.U);_.X=OD.prototype;_.X.onKeydown=function(f){if(f.keyCode===13&&!this.isMultiline)this.onSave();else if(f.keyCode===27)this.onCancel()};
_.X.computeComponentStyle=function(f){return(f==null?0:f.style)?f.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.X.computeisMultiline=function(f){if(this.multilineOverride!==void 0)return this.multilineOverride;var R,u;return!!(f==null?0:(R=f.formField)==null?0:(u=R.textInputFormFieldRenderer)==null?0:u.isMultiline)};
_.X.computeTextDisplayed=function(f,R){if(f)return f;if(R)return R};
_.X.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.X.onSave=function(){if(this.textForm.validate()){this.textForm.save();var f=this.textForm.value;if(f)this.set("data.textDisplayed",_.S8(f));else{var R;((R=this.data)==null?0:R.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Uc("inline-form-changed",this.data));this.isEditing=!1}};
_.X.onCancel=function(){var f=_.$Z(this.data.textDisplayed);f===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(f);this.isEditing=!1};
OD.prototype.onKeydown=OD.prototype.onKeydown;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],OD.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],OD.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],OD.prototype,"isEditing",void 0);_.B([_.I(),_.S("design:type",Object)],OD.prototype,"useSlot",void 0);_.B([_.I(),_.S("design:type",Boolean)],OD.prototype,"multilineOverride",void 0);_.B([_.I(),_.S("design:type",Boolean)],OD.prototype,"enableOverlayTheme",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.S("design:type",String)],OD.prototype,"componentStyle",void 0);
_.B([_.I({computed:"computeisMultiline(data)"}),_.S("design:type",Object)],OD.prototype,"isMultiline",void 0);_.B([_.a4("#text-form"),_.S("design:type",Object)],OD.prototype,"textForm",void 0);_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],OD.prototype,"onKeydown",null);OD=_.B([_.e({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],OD);
_.G(OD,"ytd-inline-form-renderer",function(){if(IiX!==void 0)return IiX;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return IiX=f},{mode:1});var M_h;var cg=function(){var f=_.U.apply(this,arguments)||this;f.previousSelectValue=void 0;f.selectedItemMessage=void 0;return f};
_.y(cg,_.U);cg.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
cg.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var f,R,u,O,c=(f=this.data)==null?void 0:(R=f.dropdown)==null?void 0:(u=R.dropdownRenderer)==null?void 0:(O=u.entries)==null?void 0:O.map(function(K){return K.privacyDropdownItemRenderer});
f=_.Z(c!=null?c:[]);for(R=f.next();!R.done;R=f.next())if((R=R.value)&&R.int32Value===this.selectedValue){this.selectedItemMessage=R.itemMessage;break}}else this.selectedItemMessage=void 0;var h;(h=this.onValueChanged)==null||h.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var l;(l=this.data)!=null&&l.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
cg.prototype.onValueChangedForSelectedValue=function(f){this.selectedValue=f.detail.value};
cg.prototype.selectedValueChanged=cg.prototype.selectedValueChanged;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],cg.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cg.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],cg.prototype,"theme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Number)],cg.prototype,"selectedValue",void 0);_.B([_.I(),_.S("design:type",Function)],cg.prototype,"onValueChanged",void 0);
_.B([_.QR("selectedValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cg.prototype,"selectedValueChanged",null);cg=_.B([_.e({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],cg);
_.G(cg,"ytd-dropdown-form-field-renderer",function(){if(M_h!==void 0)return M_h;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return M_h=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var PF5;var X8=function(){return _.U.apply(this,arguments)||this};
_.y(X8,_.U);_.Vy.Object.defineProperties(X8.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var f=[],R=_.Z(this.data||[]),u=R.next();!u.done;u=R.next())(u=_.t(u.value,iw2))&&f.push(u);return f}}});
_.B([_.I(),_.S("design:type",Array)],X8.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],X8.prototype,"byline",null);X8=_.B([_.e({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],X8);
_.G(X8,"ytd-playlist-byline-renderer",function(){if(PF5!==void 0)return PF5;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return PF5=f},{mode:1});var U92;var hY=function(){var f=_.U.apply(this,arguments)||this;f.rtlBullet=_.E("web_playlist_stats_rtl_bullet_icon_killswitch");f.modern=_.E("web_modern_buttons");f.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return f};
_.y(hY,_.U);_.X=hY.prototype;_.X.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"}}}}};
_.X.attached=function(){};
_.X.computeIsCustomThumbnail=function(f){return f?!!f.playlistCustomThumbnailRenderer:!1};
_.X.onYtNavigate=function(f,R){if(R&&R.actions&&R.actions.indexOf("shuffle")>-1){f=_.vh().resolve(_.Ji);var u=R.tempData||{};u.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);R.tempData=u;f.isShuffleNextPlaylist=!0}};
_.X.onUpdatePlaylistAction=function(f){var R;f=(R=_.t(f,_.iSf))==null?void 0:R.updatedRenderer;if(R=_.t(f,jR))this.data=R};
_.X.computeStyleType=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeThumbnailWidth=function(f){return f==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.X.computeHideThumbnailAria=function(f){if(f==null?0:f.thumbnailOverlays)for(var R=0;R<f.thumbnailOverlays.length;R++){var u=void 0;if((u=f.thumbnailOverlays[R])==null?0:u.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
hY.prototype.onYtNavigate=hY.prototype.onYtNavigate;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],hY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],hY.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hY.prototype,"rtlBullet",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.S("design:type",String)],hY.prototype,"styleType",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.S("design:type",Number)],hY.prototype,"thumbnailWidth",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],hY.prototype,"modern",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.S("design:type",Boolean)],hY.prototype,"isCustomThumbnail",void 0);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Object]),_.S("design:returntype")],hY.prototype,"onYtNavigate",null);
hY=_.B([_.e({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],hY);
_.G(hY,"ytd-playlist-sidebar-primary-info-renderer",function(){if(U92!==void 0)return U92;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return U92=f},{mode:1});var ebN;var ZP=function(){return _.U.apply(this,arguments)||this};
_.y(ZP,_.U);ZP.prototype.computeOwnerVisibility=function(f){return!(!f.videoOwner&&!f.button)};
ZP.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ZP.prototype,"data",void 0);ZP=_.B([_.e({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],ZP);
_.G(ZP,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(ebN!==void 0)return ebN;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ebN=f},{mode:1});var G3w;var lT=function(){var f=_.U.apply(this,arguments)||this;f.expanded=!1;f.isCompact=!1;return f};
_.y(lT,_.U);_.X=lT.prototype;_.X.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.X.dataChanged=function(){this.data&&_.ey(_.b(this.text),_.X0C(_.lDf,_.$Z(this.data.text||null)))};
_.X.computeAutoScrollEnabled=function(f,R){return f&&!R};
_.X.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.X.toggleOnTap=function(){this.expanded=!this.expanded};
lT.prototype.expandedChanged=lT.prototype.expandedChanged;lT.prototype.dataChanged=lT.prototype.dataChanged;_.B([_.z(_.S9X),_.S("design:type",Object)],lT.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lT.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lT.prototype,"expanded",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],lT.prototype,"isCompact",void 0);_.B([_.I({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.S("design:type",Boolean)],lT.prototype,"autoScrollEnabled",void 0);_.B([_.a4("#text"),_.S("design:type",Object)],lT.prototype,"text",void 0);_.B([_.a4("#expander-icon"),_.S("design:type",Object)],lT.prototype,"expanderIcon",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lT.prototype,"dataChanged",null);_.B([_.qM("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lT.prototype,"expandedChanged",null);lT=_.B([_.e({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],lT);
_.G(lT,"ytd-channel-legal-info-renderer",function(){if(G3w!==void 0)return G3w;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return G3w=f},{mode:1});var BMt;var o2S=_.Fa("DOWNLOAD",{},"Download"),x9S=_.Fa("DOWNLOADING",{},"Downloading"),SKw=_.Fa("DOWNLOADED",{},"Downloaded"),k6=function(){var f=_.U.apply(this,arguments)||this;f.downloadProgress=0;f.isDownloadComplete=!1;f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.y(k6,_.U);_.X=k6.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.dataChanged=function(){var f;(f=this.data)!=null&&f.tooltip||(f=_.HW(_.sP().getState(),this.playlistId),this.updateButtonState(f))};
_.X.computePlaylistId=function(f){return f};
_.X.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.X.updateButtonState=function(f){if(this.data&&(this.data.tooltip!==x9S||!_.WW(f))){this.isDownloadComplete=!1;switch(f){case "TRANSFER_STATE_UNKNOWN":f=o2S;var R="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":f=SKw;R="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":f=x9S;R="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";
break;default:f=o2S,R="OFFLINE_DOWNLOAD",u="ACTION_ADD"}var O=Object.assign({},this.data);O.tooltip=f;O.accessibilityData={accessibilityData:{label:f}};O.icon={iconType:R};O.size="SIZE_DEFAULT";_.t(O.command,_.Kr)&&(_.t(O.command,_.Kr).action=u);this.set("data",O)}};
_.X.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var f="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?f="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?f="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?f="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?f="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?f="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(f="OFFLINE_PIN",this.isDownloadComplete=!0);var R;f!==((R=this.data.icon)==null?void 0:R.iconType)&&(R=Object.assign({},this.data),R.tooltip=x9S,R.accessibilityData={accessibilityData:{label:x9S}},R.icon={iconType:f},_.t(R.command,_.Kr)&&(_.t(R.command,_.Kr).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",R))}};
k6.prototype.updateProgress=k6.prototype.updateProgress;k6.prototype.onTransferStateChanged=k6.prototype.onTransferStateChanged;k6.prototype.dataChanged=k6.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],k6.prototype,"ytdReduxBehavior",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],k6.prototype,"forceIconButton",void 0);
_.B([_.I({value:!0}),_.S("design:type",Boolean)],k6.prototype,"forceIconOnly",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],k6.prototype,"overrides",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],k6.prototype,"buttonTooltipPosition",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],k6.prototype,"styleActionButton",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],k6.prototype,"disableTextTransform",void 0);
_.B([_.I({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.S("design:type",String)],k6.prototype,"playlistId",void 0);_.B([_.I(),_.S("design:type",Object)],k6.prototype,"data",void 0);_.B([_.I({selector:_.NSl,selectorArgs:["playlistId"]}),_.S("design:type",Object)],k6.prototype,"downloadProgress",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],k6.prototype,"isDownloadComplete",void 0);
_.B([_.I({selector:_.HW,selectorArgs:["playlistId"]}),_.S("design:type",String)],k6.prototype,"transferState",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],k6.prototype,"showTooltips",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],k6.prototype,"sendCommandWhenDisabled",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],k6.prototype,"disabled",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"dataChanged",null);_.B([_.QR("transferState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"onTransferStateChanged",null);_.B([_.QR("downloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"updateProgress",null);
k6=_.B([_.e({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],k6);
_.G(k6,"ytd-download-playlist-button-renderer",function(){if(BMt!==void 0)return BMt;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return BMt=f},{mode:1});var $9S;_.ii(_.Sol,"thumbnail-overlay-button-view-model",{props:{data:_.SG,lockupExperiments:_.SG}});var KP=function(){var f=_.U.apply(this,arguments)||this;f.isSquare=!1;f.isVertical=!1;return f};
_.y(KP,_.U);KP.prototype.computeIsSquare=function(f){return f!=null&&f.thumbnail?LKl(f.thumbnail)==="SQUARE":!1};
KP.prototype.computeIsVertical=function(f){return f!=null&&f.thumbnail?LKl(f.thumbnail)==="VERTICAL":!1};
KP.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.S("design:type",Object)],KP.prototype,"isSquare",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.S("design:type",Object)],KP.prototype,"isVertical",void 0);
_.B([_.I(),_.S("design:type",Object)],KP.prototype,"data",void 0);KP=_.B([_.e({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],KP);
_.G(KP,"ytd-hero-playlist-thumbnail-renderer",function(){if($9S!==void 0)return $9S;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $9S=f},{mode:1});var qQ=function(){var f=_.U.apply(this,arguments)||this;f.isDarkTheme=!1;f.isUltraWide=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return f};
_.y(qQ,_.U);_.X=qQ.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.vh();var f;(f=_.vh().resolve(_.Y8(_.$U)))!=null&&(f.headerElement=this.hostElement)};
_.X.detached=function(){var f;(f=_.vh().resolve(_.Y8(_.$U)))!=null&&(f.headerElement=void 0)};
_.X.onUpdateHeader=function(f){(f=f.detail)&&this.set("data",f)};
_.X.computeTextDisplayed=function(f){if(f)return f.textDisplayed?f.textDisplayed:f.placeholder};
_.X.gradientColorToLinearGradientStop=function(f){var R=this.isDarkTheme?f.darkThemeColor:f.lightThemeColor;return R?_.ML(R)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"};
_.X.onWindowResize=function(){var f;((f=this.data)==null?0:f.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.X.onIronResize=function(f){this.isUltraWide=!f.detail.value};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.onUpdatePlaylistName=function(f){var R=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},f.detail.value));_.su(this,function(){var u;(u=R.editableTitle)==null||u.resize()})};
_.X.onUpdatePlaylistDescription=function(f){var R=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},f.detail.value));_.su(this,function(){var u;(u=R.editableDescriptionInlineExpander)==null||u.resize()})};
_.X.getCinematicData=function(f){return _.t(f==null?void 0:f.cinematicContainer,_.yl)};
_.Vy.Object.defineProperties(qQ.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 f,R=(f=this.getCinematicData(this.data))==null?void 0:f.config;return(f=this.isDarkTheme?R==null?void 0:R.darkThemeBackgroundColor:R==null?void 0:R.lightThemeBackgroundColor)?"background-color:"+_.I1(f)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var f;return _.t((f=this.data)==null?void 0:f.descriptionForm,$3K)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var f=this,R,u,O;return"background:linear-gradient(to bottom, "+(((O=(R=this.getCinematicData(this.data))==null?void 0:(u=R.gradientColorConfig)==null?void 0:u.map(function(c){return f.gradientColorToLinearGradientStop(c)}))==null?void 0:O.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var f;return _.$Z((f=this.data)==null?void 0:f.descriptionTapText)}}});
qQ.prototype.onUpdateHeader=qQ.prototype.onUpdateHeader;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],qQ.prototype,"actionHandlerBehavior",void 0);_.B([_.a4("#description-inline-expander"),_.S("design:type",Object)],qQ.prototype,"descriptionInlineExpander",void 0);
_.B([_.a4("#editable-description-inline-expander"),_.S("design:type",Object)],qQ.prototype,"editableDescriptionInlineExpander",void 0);_.B([_.I(),_.S("design:type",Object)],qQ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],qQ.prototype,"isUltraWide",void 0);_.B([_.a4("#editable-title-display"),_.S("design:type",Object)],qQ.prototype,"editableTitle",void 0);_.B([_.T("isUltraWide"),_.S("design:type",Object),_.S("design:paramtypes",[])],qQ.prototype,"maxDescriptionLines",null);
_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],qQ.prototype,"noCinematicData",null);_.B([_.Kf("yt-new-playlist-header"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],qQ.prototype,"onUpdateHeader",null);_.B([_.T("data","isDarkTheme"),_.S("design:type",Object),_.S("design:paramtypes",[])],qQ.prototype,"backgroundStyle",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],qQ.prototype,"descriptionFormData",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],qQ.prototype,"getDropdownTheme",null);_.B([_.T("data","isDarkTheme"),_.S("design:type",String),_.S("design:paramtypes",[])],qQ.prototype,"gradientStyle",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],qQ.prototype,"descriptionTapText",null);
qQ=_.B([_.e({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],qQ);
_.G(qQ,"ytd-playlist-header-renderer",function(){if(H4m!==void 0)return H4m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return H4m=f},{mode:_.c7("kevlar_poly_si_batch_j078")?1:2});var g2S;var sRl;var AY=function(){return _.U.apply(this,arguments)||this};
_.y(AY,_.U);AY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AY.prototype,"data",void 0);AY=_.B([_.e({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],AY);
_.G(AY,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(sRl!==void 0)return sRl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return sRl=f},{mode:1});var a9=function(){return _.U.apply(this,arguments)||this};
_.y(a9,_.U);
a9.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}}}}};
a9.prototype.computeUsePremiumShowStyle=function(f){if(!f||!f.items)return!1;for(var R=0;R<f.items.length;R++)if(_.t(f.items[R],jR)){var u=void 0;return((u=_.t(f.items[R],jR))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],a9.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.S("design:type",Boolean)],a9.prototype,"usePremiumShowStyle",void 0);
a9=_.B([_.e({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],a9);
_.G(a9,"ytd-playlist-sidebar-renderer",function(){if(g2S!==void 0)return g2S;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return g2S=f},{mode:1});var n2h;var V_m;var YKS=function(f,R,u,O,c,h,l,K){this.minWidth=f;this.minHeight=R;this.recommendedWidth=u;this.recommendedHeight=O;this.JSC$19474_maxFileSize=c;this.title=h;this.bannerGalleryTitle=l;this.channelId=K;this.picker_=null;f=_.t$q("yt-banner");R=f.addView;u=(new HwX("youtubebanner")).addUploadMetadata("silo_id","19");u.opts.ytMaxFileSize=this.JSC$19474_maxFileSize;O=this.recommendedHeight;u.opts.ytRecWidth=this.recommendedWidth;u.opts.ytRecHeight=O;R.call(f,u);f.addView(new _.t_);R=f.addView;u=new _.t_;
u.opts.type="ytbanner";R.call(f,u.JSC$8078_setLabel(this.bannerGalleryTitle));R=f.setTitle(this.title).setSize(1E3);R.urlParamMap_.set("thumbs","orig");u=this.minWidth;O=this.minHeight;if(isNaN(u)||isNaN(O))throw Error("kb`"+u+"`"+O);R.urlParamMap_.set("minSize",u+"x"+O);R.urlParamMap_.set("cropMode","ytcb");this.builder_=f};
YKS.prototype.open=function(){var f=this;return new _.ah(function(R,u){_.GPF(f.builder_,function(O){O.action=="picked"?R(O):O.action=="cancel"&&u(Error("Vl"))});
f.picker_&&f.picker_.dispose();f.picker_=f.builder_.build();f.picker_.setVisible(!0)})};
YKS.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var v2w=function(f){this.channelId=f},i4l=function(f,R){var u="";
R.viewToken&&(u=R.viewToken[2].type);var O=R.docs[0];R=O.crop;f={channel_id:f.channelId,fife_url:O.thumbnails[0].url,photo_id:O.id,is_gallery_image:u=="ytbanner"};R&&(f.crop_top=R.top,f.crop_right=R.right,f.crop_bottom=R.bottom,f.crop_left=R.left);return _.H_t("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:f})};var F8=function(){var f=_.U.apply(this,arguments)||this;f.ariaLabel=null;return f};
_.y(F8,_.U);_.X=F8.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.detached=function(){this.picker&&this.picker.dispose()};
_.X.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.X.computeAriaLabel=function(f){return f};
_.X.onTap=function(){var f=this,R;if((R=this.data)==null||!R.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new YKS(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(O){f.handleBannerPicked(O)},function(){})}};
_.X.handleBannerPicked=function(f){var R=this;this.uploader||(this.uploader=new v2w(this.data.channelId||""));this.message=this.data.uploadingText;i4l(this.uploader,f).then(function(u){R.handleBannerUploadSucceeded(u)},function(u){R.handleBannerUploadFailed(u)})};
_.X.handleBannerUploadSucceeded=function(f){f&&f.errors?this.handleBannerUploadFailed(f):(_.ul(this.hostElement,"yt-banner-updated",f),this.message=null)};
_.X.handleBannerUploadFailed=function(f){this.message=f&&f.errors&&f.errors.length?f.errors[0]:null};
F8.prototype.dataChanged=F8.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],F8.prototype,"componentBehavior",void 0);_.B([_.z(_.jv),_.S("design:type",Object)],F8.prototype,"ironButtonState",void 0);_.B([_.I(),_.S("design:type",Object)],F8.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.S("design:type",Object)],F8.prototype,"ariaLabel",void 0);
_.B([_.I(),_.S("design:type",Object)],F8.prototype,"message",void 0);_.B([_.I(),_.S("design:type",Object)],F8.prototype,"picker",void 0);_.B([_.I(),_.S("design:type",Object)],F8.prototype,"uploader",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F8.prototype,"dataChanged",null);F8=_.B([_.e({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],F8);
_.G(F8,"ytd-channel-banner-editor-renderer",function(){if(V_m!==void 0)return V_m;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return V_m=f},{mode:1});var rDt;var fgt=_.Sg(["#"]),ws=function(){return _.U.apply(this,arguments)||this};
_.y(ws,_.U);ws.prototype.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f,!0)||_.dQ(fgt)};
ws.prototype.dataChanged=function(){var f=this.data;f&&f.targetId&&_.dCk(_.Q3(),f.targetId,this.moreIcon)};
ws.prototype.dataChanged=ws.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ws.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ws.prototype,"data",void 0);_.B([_.a4("#more-icon"),_.S("design:type",Object)],ws.prototype,"moreIcon",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ws.prototype,"dataChanged",null);
ws=_.B([_.e({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],ws);
_.G(ws,"ytd-channel-tagline-renderer",function(){if(rDt!==void 0)return rDt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return rDt=f},{mode:1});var Ril;var mX=function(){return _.U.apply(this,arguments)||this};
_.y(mX,_.U);_.X=mX.prototype;_.X.ready=function(){var f=this;_.b(this.hostElement).querySelector("#form").addEventListener("submit",function(R){f.onSubmit(R)})};
_.X.onDataChanged=function(){var f;((f=this.data)==null?0:f.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.X.onIconButtonKeydown=function(f){f.keyCode===13&&this.iconButton.click()};
_.X.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.X.openOnClickHandler=function(){this.input.focus()};
_.X.onSubmit=function(f){f.preventDefault();return!1};
_.X.submitOnEnterKeyUp=function(f){var R;if(f.keyCode===13&&((R=this.data)==null?0:R.expandedText)){f=this.data.endpoint;R=_.dq.unsafeClone(f);var u;((u=_.t(R==null?void 0:R.commandMetadata,_.vc))==null?0:u.url)?(_.t(R.commandMetadata,_.vc).url=_.UW(_.t(R.commandMetadata,_.vc).url,"query",this.data.expandedText),_.t(R,_.wY)&&(_.t(R,_.wY).query=this.data.expandedText),_.ul(this.hostElement,"yt-navigate",{endpoint:R,tempData:{disableCache:!0}})):(u=new _.ts("Error: Trying to navigate to an endpoint without url",
f),_.TL(u))}};
_.X.updateDataExpandedTextFromBinding=function(f){this.set("data.expandedText",f.detail.value)};
_.Vy.Object.defineProperties(mX.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
mX.prototype.onDataChanged=mX.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.bjN),_.S("design:type",Object)],mX.prototype,"ytdExpandableInputBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mX.prototype,"data",void 0);_.B([_.a4("#input"),_.S("design:type",Object)],mX.prototype,"input",void 0);_.B([_.a4("#icon-button"),_.S("design:type",HTMLElement)],mX.prototype,"iconButton",void 0);
_.B([_.I(),_.S("design:type",String),_.S("design:paramtypes",[])],mX.prototype,"searchIcon",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mX.prototype,"onDataChanged",null);mX=_.B([_.e({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],mX);
var bww=_.Ox()(mX,"ytd-expandable-tab-renderer",function(){if(Ril===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);Ril=f}f=Ril;return f},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var umm;var QW=function(){var f=_.U.apply(this,arguments)||this;f.avatarSize=80;f.ariaLabel=_.Fa("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return f};
_.y(QW,_.U);QW.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
QW.prototype.computeHref=function(f){var R;return((R=_.t(f,_.oh))==null?0:R.url)?this.componentBehavior.computeHref_(f):null};
QW.prototype.onTap=function(){var f,R;(f=this.data)==null||!f.editAvatarServiceEndpoint||((R=_.t(this.data.editAvatarServiceEndpoint,_.oh))==null?0:R.url)||_.vh().resolve(_.rv).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.B([_.z(_.jv),_.S("design:type",Object)],QW.prototype,"ironButtonState",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],QW.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],QW.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],QW.prototype,"avatarSize",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],QW.prototype,"ariaLabel",void 0);QW=_.B([_.e({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],QW);
_.G(QW,"ytd-channel-avatar-editor",function(){if(umm!==void 0)return umm;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return umm=f},{mode:1});var Olz=_.nf(function(f){var R=f.data;var u=f.noPadding;var O=f.enableBanner;var c=f.cinematicContainerTopbarOffset;var h=f.allowCinematicContainerOverflow;var l=f.displayAsSidebar;f=f.className;_.pc(function(){R().tagManagerId&&(_.Ck(R().tagManagerId,_.Tf("GL")),TKh(R().tagManagerId))});
var K=_.Ax(jc9,function(){return R().pageHeaderEntityKey});
return _.a("yt-page-header-renderer",{class:_.KL("page-header-renderer-wiz",f)},_.a(_.y5,{data:function(){var q;return((q=K())==null?0:q.header)?K().header:(l==null?0:l())&&R().sidebarContent?R().sidebarContent:R().content}},{pageHeaderViewModel:function(q){return _.a(_.XAF,{data:q.data,
noPadding:u,enableBanner:O,cinematicContainerTopbarOffset:c,allowCinematicContainerOverflow:h,displayAsSidebar:function(){return(l==null?void 0:l())&&R().enableSidebarView}})}}))},"Di");
Olz.idomCompat=!0;_.ii(Olz,"yt-page-header-renderer",{props:{data:_.SG,noPadding:_.SG,enableBanner:_.SG,cinematicContainerTopbarOffset:_.SG,allowCinematicContainerOverflow:_.SG,displayAsSidebar:_.SG,className:_.SG}});_.ii(_.Obk,"yt-image-banner-view-model",{props:{data:_.SG,isPositionRelative:_.SG}});_.ii(_.CDH,"yt-tab-group-shape",{props:{shape:_.SG}});var Wg=function(){var f=_.U.apply(this,arguments)||this;f.expandableCustomTabRenderable=function(R){return pS2(R,function(){return void f.onSearchNavigate()})};
f.isRichGrid=!1;f.isConstrainedList=!1;f.richGridMiniMode=!1;f.richGridStyle="RICH_GRID_STYLE_UNKNOWN";f.isRichGridShorts=!1;f.responsiveSizing="COMPACT";f.disableGridStateAware=!1;f.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return f};
_.y(Wg,_.U);_.X=Wg.prototype;_.X.computeHeaderDisabled=function(f,R){return R||!f||this.tabsHidden};
_.X.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.X.computeIsRichGridShorts=function(f){return f==="RICH_GRID_STYLE_SHORTS_GRID"||f==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.X.computeImageBannerViewModel=function(){var f,R;return _.t((R=_.t((f=this.data)==null?void 0:f.content,_.STH))==null?void 0:R.banner,_.enf)};
_.X.computeHasCinematicContainer=function(){var f,R;return!((R=_.t((f=this.data)==null?void 0:f.content,_.STH))==null||!R.background)};
_.X.handleHeaderResize=function(){var f=_.b(this.hostElement).querySelector("#header");f&&_.ul(f,"iron-resize")};
_.X.handleInsertTabCommand=function(f){var R=_.t(f,rzh);R&&(R.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(u){return u.tabRenderer&&u.tabRenderer.tabIdentifier===R.tabIdentifier})||this.splice("tabs",R.tabIndex||-1,0,R.tab))};
_.X.handleRefreshChannelTabAction=function(f){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===f&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.X.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.ZO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.X.observerRichGridSlimItemsPerRow=function(){_.ZO(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.X.updateCssVars=function(){this.richGridItemsPerRow&&_.ZO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RV("rich_grid_max_item_width",500))+16)-16+"px"})};
_.X.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.ZO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.X.onDataChanged=function(){this.handleHeaderResize()};
_.X.onWindowResize=function(){this.handleHeaderResize()};
_.X.onFocusedChanged=function(f){(f=_.gY(f))&&f.is==="tp-yt-paper-tab"&&f.hasRipple()&&(f.getRipple().holdDown=!f.pointerDown&&f.focused)};
_.X.updateSelectedFromBinding=function(f){this.ytdTabbedHeaderBehavior.selected=f.detail.value};
_.X.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Vy.Object.defineProperties(Wg.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Jzw(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.imageBannerViewModel)==null?void 0:f.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Wg.prototype.onDataChanged=Wg.prototype.onDataChanged;Wg.prototype.updateCssVarsForResponsiveGrid=Wg.prototype.updateCssVarsForResponsiveGrid;Wg.prototype.updateCssVars=Wg.prototype.updateCssVars;Wg.prototype.observerRichGridSlimItemsPerRow=Wg.prototype.observerRichGridSlimItemsPerRow;Wg.prototype.observerRichGridItemsPerRow=Wg.prototype.observerRichGridItemsPerRow;_.B([_.z(_.MD),_.S("design:type",Object)],Wg.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.z(fiK),_.S("design:type",Object)],Wg.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Wg.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Wg.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],Wg.prototype,"ytdReduxBehavior",void 0);_.B([_.a4("#tabs"),_.S("design:type",Object)],Wg.prototype,"tabsElement",void 0);_.B([_.I(),_.S("design:type",Array)],Wg.prototype,"tabs",void 0);_.B([_.I(),_.S("design:type",Object)],Wg.prototype,"expandableCustomTabRenderable",void 0);_.B([_.T("tabs.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],Wg.prototype,"tabGroupShape",null);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Wg.prototype,"isRichGrid",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Wg.prototype,"isConstrainedList",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Object)],Wg.prototype,"richGridMiniMode",void 0);_.B([_.I({selector:function(f){return f.ui.richGridStyle}}),
_.S("design:type",Object)],Wg.prototype,"richGridStyle",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.S("design:type",Object)],Wg.prototype,"isRichGridShorts",void 0);_.B([_.I({selector:_.DH}),_.S("design:type",Number)],Wg.prototype,"richGridItemsPerRow",void 0);_.B([_.I({selector:function(f){return f.ui.richGridContainerWidth}}),
_.S("design:type",Number)],Wg.prototype,"richGridContainerWidth",void 0);_.B([_.I({selector:_.KZe}),_.S("design:type",Number)],Wg.prototype,"richGridSlimItemsPerRow",void 0);_.B([_.I(),_.S("design:type",Object)],Wg.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Wg.prototype,"responsiveSizing",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Wg.prototype,"disableGridStateAware",void 0);
_.B([_.I({computed:"computeImageBannerViewModel(data)"}),_.S("design:type",Object)],Wg.prototype,"imageBannerViewModel",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.S("design:type",Boolean)],Wg.prototype,"hasCinematicContainer",void 0);_.B([_.I({selector:_.Amm,reflectToAttribute:!0}),_.S("design:type",Boolean)],Wg.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("imageBannerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Wg.prototype,"hasBanner",null);_.B([_.I({reflectToAttribute:!0}),_.T("imageBannerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Wg.prototype,"hasInsetBanner",null);_.B([_.I({computed:"computeTabsHidden(tabs)",value:!0}),_.S("design:type",Boolean)],Wg.prototype,"tabsHidden",void 0);
_.B([_.qM("richGridItemsPerRow","isRichGrid"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wg.prototype,"observerRichGridItemsPerRow",null);_.B([_.qM("richGridSlimItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wg.prototype,"observerRichGridSlimItemsPerRow",null);
_.B([_.qM("richGridItemsPerRow","richGridMiniMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wg.prototype,"updateCssVars",null);_.B([_.qM("richGridContainerWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wg.prototype,"updateCssVarsForResponsiveGrid",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wg.prototype,"onDataChanged",null);
Wg=_.B([_.e({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Wg);
_.G(Wg,"ytd-tabbed-page-header",function(){if(n2h!==void 0)return n2h;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return n2h=f},{mode:1});var c35;var ED=function(){return _.U.apply(this,arguments)||this};
_.y(ED,_.U);ED.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.ZO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Vy.Object.defineProperties(ED.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var f,R;return this.componentBehavior.computeIcon_(((R=_.t((f=this.data)==null?void 0:f.badge,_.TZA))==null?void 0:R.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.badge,_.TZA))==null?void 0:R.label}}});
ED.prototype.observerRichGridItemsPerRow=ED.prototype.observerRichGridItemsPerRow;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ED.prototype,"componentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],ED.prototype,"ytdReduxBehavior",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.pg}),_.S("design:type",Boolean)],ED.prototype,"richGridMiniMode",void 0);
_.B([_.I({selector:_.DH}),_.S("design:type",Number)],ED.prototype,"richGridItemsPerRow",void 0);_.B([_.I(),_.S("design:type",Object)],ED.prototype,"data",void 0);_.B([_.qM("richGridItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ED.prototype,"observerRichGridItemsPerRow",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ED.prototype,"badgeIconName",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ED.prototype,"badgeLabel",null);ED=_.B([_.e({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],ED);
_.G(ED,"ytd-member-hub-profile-renderer",function(){if(c35!==void 0)return c35;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return c35=f},{mode:1});var XU2;var tY=function(){return _.U.apply(this,arguments)||this};
_.y(tY,_.U);tY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],tY.prototype,"data",void 0);tY=_.B([_.e({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],tY);
_.G(tY,"ytd-settings-sidebar-renderer",function(){if(XU2!==void 0)return XU2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return XU2=f},{mode:1});var hiN;var CP=function(){var f=_.U.apply(this,arguments)||this;f.expandableCustomTabRenderable=function(R){return pS2(R,function(){return void f.onSearchNavigate()})};
return f};
_.y(CP,_.U);CP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
CP.prototype.onSearchNavigate=function(){this.selected=void 0};
CP.prototype.onTabsChange=function(){var f,R=(f=this.tabs)==null?void 0:f.findIndex(function(u){var O;return u==null?void 0:(O=u.tabRenderer)==null?void 0:O.selected});
R!==void 0&&(this.selected=R)};
CP.prototype.onTabsActive=function(f){if(this.tabs!==void 0){var R,u;(f=(R=this.tabs[f.detail.selected])==null?void 0:(u=R.tabRenderer)==null?void 0:u.endpoint)&&_.ul(this.hostElement,"yt-navigate",{endpoint:f})}};
_.Vy.Object.defineProperties(CP.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Jzw(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
CP.prototype.onTabsChange=CP.prototype.onTabsChange;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.MD),_.S("design:type",Object)],CP.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],CP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],CP.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Array)],CP.prototype,"tabs",void 0);_.B([_.I(),_.S("design:type",Number)],CP.prototype,"selected",void 0);_.B([_.T("tabs.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],CP.prototype,"tabGroupShape",null);_.B([_.I(),_.S("design:type",Object)],CP.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.T("tabs"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CP.prototype,"tabsEnabled",null);_.B([_.QR("tabs"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CP.prototype,"onTabsChange",null);CP=_.B([_.e({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],CP);
_.G(CP,"ytd-topic-channel-details-renderer",function(){if(hiN!==void 0)return hiN;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return hiN=f},{mode:1});var Zl9;var yW=function(){var f=_.U.apply(this,arguments)||this;f.disableGridStateAware=!1;return f};
_.y(yW,_.U);yW.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]]"}}}}}};
yW.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
yW.prototype.updateCssVars=function(){_.ZO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RV("rich_grid_max_item_width",500))+16)-16+"px"})};
yW.prototype.updateCssVars=yW.prototype.updateCssVars;yW.prototype.activeChanged=yW.prototype.activeChanged;_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],yW.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],yW.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yW.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Array)],yW.prototype,"tabs",void 0);_.B([_.I(),_.S("design:type",Boolean)],yW.prototype,"active",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yW.prototype,"disableGridStateAware",void 0);
_.B([_.I({selector:_.DH}),_.S("design:type",Number)],yW.prototype,"richGridItemsPerRow",void 0);_.B([_.I({selector:_.pg}),_.S("design:type",Boolean)],yW.prototype,"richGridMiniMode",void 0);_.B([_.a4("ytd-carousel-item-renderer"),_.S("design:type",Object)],yW.prototype,"carousel",void 0);_.B([_.qM("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yW.prototype,"activeChanged",null);
_.B([_.qM("richGridItemsPerRow","richGridMiniMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yW.prototype,"updateCssVars",null);yW=_.B([_.e({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],yW);
_.G(yW,"ytd-carousel-header-renderer",function(){if(Zl9!==void 0)return Zl9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Zl9=f},{mode:1});var lgX;var kG5=_.Sg(["https://www.google-analytics.com/analytics.js"]),ds=function(){var f=_.U.apply(this,arguments)||this;f.scriptAnalyticsAdded=!1;return f};
_.y(ds,_.U);ds.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var f,R=(f=this.data)==null?void 0:f.tagManagerId;R&&(_.Ck(R,_.Tf("GL")),TKh(R))};
ds.prototype.sendGoogleAnalyticsPageview=function(f){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var u=_.yK.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(u)};
var R=window.ga;R("set","page",window.location.pathname);R.l=+new Date;R("set","forceSSL",!0);R("create",f,"'auto'");R("send","pageview")};
ds.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var f=_.mD("SCRIPT");f.name="ga-analytics";var R=_.R0(kG5);_.UO(f,R);f.async=!0;_.b(this.hostElement).appendChild(f)};
ds.prototype.dataChanged=ds.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],ds.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ds.prototype,"dataChanged",null);ds=_.B([_.e({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],ds);
_.G(ds,"ytd-channel-metadata-renderer",function(){if(lgX!==void 0)return lgX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return lgX=f},{mode:1});var KgK;var qGl;var NQ=function(){return _.U.apply(this,arguments)||this};
_.y(NQ,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],NQ.prototype,"data",void 0);NQ=_.B([_.e({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],NQ);
_.G(NQ,"ytd-sub-feed-option-renderer",function(){if(qGl!==void 0)return qGl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return qGl=f},{mode:1});var A3S;var LP=function(){return _.U.apply(this,arguments)||this};
_.y(LP,_.U);LP.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],LP.prototype,"ytRendererStamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LP.prototype,"data",void 0);LP=_.B([_.e({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],LP);
_.G(LP,"ytd-sub-feed-selector-renderer",function(){if(A3S!==void 0)return A3S;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return A3S=f},{mode:1});var bT=function(){return _.U.apply(this,arguments)||this};
_.y(bT,_.U);
bT.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}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bT.prototype,"data",void 0);bT=_.B([_.e({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],bT);
_.G(bT,"ytd-browse-feed-actions-renderer",function(){if(KgK!==void 0)return KgK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return KgK=f},{mode:1});var agm;var FgX;var pP=function(){return _.U.apply(this,arguments)||this};
_.y(pP,_.U);pP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pP.prototype,"data",void 0);pP=_.B([_.e({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],pP);
_.G(pP,"ytd-mini-channel-renderer",function(){if(FgX!==void 0)return FgX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return FgX=f},{mode:1});var wUz;var j9=function(){return _.U.apply(this,arguments)||this};
_.y(j9,_.U);j9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],j9.prototype,"data",void 0);j9=_.B([_.e({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],j9);
_.G(j9,"ytd-vertical-channel-section-renderer",function(){if(wUz!==void 0)return wUz;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return wUz=f},{mode:1});var DP=function(){return _.U.apply(this,arguments)||this};
_.y(DP,_.U);DP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],DP.prototype,"data",void 0);DP=_.B([_.e({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],DP);
_.G(DP,"ytd-browse-secondary-contents-renderer",function(){if(agm!==void 0)return agm;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return agm=f},{mode:1});var mTw;var JY=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};f.notActive=!1;f.isConstrainedList=!1;return f};
_.y(JY,_.U);_.X=JY.prototype;
_.X.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(f){var R;return(f==null?void 0:(R=f.webComponentHint)==null?void 0:R.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}}}}};
_.X.getPath=function(f,R){var u="data.tabs.#"+R+".";f.tabs[R].tabRenderer?u+="tabRenderer.":f.tabs[R].expandableTabRenderer&&(u+="expandableTabRenderer.");return u+"content.sectionListRenderer"};
_.X.computeDisplayedContent=function(f){this.unlinkPaths("content");if(f&&f.tabs)for(var R=f.tabs.length,u=0;u<R;u++){var O=f.tabs[u].tabRenderer||f.tabs[u].expandableTabRenderer;if(O.selected&&O.content)return this.linkPaths("content",this.getPath(f,u)),O.content}return null};
_.X.computeHasSecondaryColumnData=function(f){return!!f&&!!f.secondaryContents};
_.X.onRetrieveLocation=function(f,R){R.locationRetrieved(R.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);f.stopPropagation()};
_.X.onYtServiceRequestSent=function(f,R){_.E("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(R)};
_.X.onYtServiceRequestCompleted=function(f,R){_.E("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(R)};
_.X.onReplaceFeedContentAction=function(f){if(!_.E("replace_feed_content_action_killswitch")&&!this.notActive){var R;(f=(R=_.t(f,oLw))==null?void 0:R.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(f)}};
_.X.handleServiceRequestActions=function(f){if(f=f.actions){f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;var u=void 0;((u=_.t(R,oLw))==null?0:u.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.t(R,oLw).items)}}};
JY.prototype.onYtServiceRequestCompleted=JY.prototype.onYtServiceRequestCompleted;JY.prototype.onYtServiceRequestSent=JY.prototype.onYtServiceRequestSent;JY.prototype.onRetrieveLocation=JY.prototype.onRetrieveLocation;_.B([_.z(_.MD),_.S("design:type",Object)],JY.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],JY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],JY.prototype,"data",void 0);_.B([_.I({computed:"computeDisplayedContent(data)"}),_.S("design:type",Object)],JY.prototype,"content",void 0);
_.B([_.I({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],JY.prototype,"hasSecondaryColumnData",void 0);_.B([_.I({value:function(){return window.outerHeight>1024?3:2}}),
_.S("design:type",Number)],JY.prototype,"initialCount",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],JY.prototype,"pageSubtype",void 0);_.B([_.a4("ytd-section-list-renderer"),_.S("design:type",Object)],JY.prototype,"listRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],JY.prototype,"notActive",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],JY.prototype,"isConstrainedList",void 0);
_.B([_.I(),_.S("design:type",String)],JY.prototype,"responsiveSizing",void 0);_.B([_.Kf("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],JY.prototype,"onRetrieveLocation",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],JY.prototype,"onYtServiceRequestSent",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],JY.prototype,"onYtServiceRequestCompleted",null);JY=_.B([_.e({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],JY);
_.G(JY,"ytd-two-column-browse-results-renderer",function(){if(mTw!==void 0)return mTw;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return mTw=f},{mode:2});var QKK;var Wgm;var zm=function(){var f=_.U.apply(this,arguments)||this;f.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"]);f.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"]);f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return f};
_.y(zm,_.U);_.X=zm.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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_]]"}}}}}};
_.X.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
_.X.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.X.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.X.computeAlertStyle_=function(f){return f};
_.X.observerElementsPerRow=function(){this.elementsPerRow&&_.ZO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.X.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.X.requestElementsPerRow=function(){_.ul(this.hostElement,"yt-request-elements-per-row")};
zm.prototype.onIsVisibleChanged_=zm.prototype.onIsVisibleChanged_;zm.prototype.observerElementsPerRow=zm.prototype.observerElementsPerRow;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],zm.prototype,"actionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],zm.prototype,"data",void 0);_.B([_.I({value:6,reflectToAttribute:!0}),_.S("design:type",Number)],zm.prototype,"elementsPerRow",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],zm.prototype,"wrapButtons",void 0);_.B([_.I({value:_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.S("design:type",Boolean)],zm.prototype,"isMusic",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.S("design:type",String)],zm.prototype,"alertStyle",void 0);_.B([_.I({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.S("design:type",Function)],zm.prototype,"dismissBoundButtonTap_",void 0);_.B([_.I({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.S("design:type",Function)],zm.prototype,"acceptBoundButtonTap_",void 0);_.B([_.qM("elementsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zm.prototype,"observerElementsPerRow",null);_.B([_.qM("data.isVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zm.prototype,"onIsVisibleChanged_",null);zm=_.B([_.DO({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],zm);
_.G(zm,"yt-alert-with-actions-renderer",function(){if(Wgm===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;QKK===void 0&&(QKK=document.createElement("template"));var O=QKK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Wgm=f}f=Wgm;return f},{mode:2});_.ii(_.nf(function(f){function R(W){var C={};return _.a(_.YO,{text:W,className:_.KL("ytPersonalGreetingViewModelHeadline",(C.ytPersonalGreetingViewModelHeadlineSmall=function(){return K()===48},C))})}
function u(W,C){return _.a("span",{el:W,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},R(C))}
var O=_.sW(),c=_.sW(),h=_.sW(),l=function(){return f.data().canvasPromoData},K=function(){var W;
return(W=f.data().bannerHeight)!=null?W:56},q=_.Krq(O,{throttleMs:100}),F=_.Krq(c,{throttleMs:100}),w=_.Krq(h,{throttleMs:100}),m=function(){return F.width()-q.width()>1};
_.xO(O,function(){var W;return(W=f.data())==null?void 0:W.rendererContext},void 0,void 0,void 0,!0);
return _.a("yt-personal-greeting-view-model",{el:O,"aria-hidden":m,class:_.KL(f.className,"ytPersonalGreetingViewModelHost"),style:_.Qm({height:(0,_.Nr)(function(){return m()?0:K()})})},_.a(_.Q,{cond:function(){return f.data().avatar&&!(w.width()+(f.data().avatar?48:0)-q.width()>1)},
then:function(){return _.a(_.y5,{data:function(){return f.data().avatar}},{decoratedAvatarViewModel:function(W){return _.a(_.LY,{data:W.data,
className:_.KL("ytPersonalGreetingViewModelAvatar")})}})}}),_.a("h1",null,R(function(){var W;
return(l==null?void 0:(W=l())==null?void 0:W.headline)||(w.width()+(f.data().avatar?48:0)-q.width()>1?f.data().shorterGreeting:f.data().greeting)})),u(h,function(){return f.data().greeting}),u(c,function(){return f.data().shorterGreeting}))},"Ei"),"yt-personal-greeting-view-model",{props:{data:_.SG,
className:_.SG}});var Tm=function(){var f=_.U.apply(this,arguments)||this;f.hidden=!1;f.isConstrainedList=!1;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.responsiveSizing="COMPACT";f.attachedPlayers=_.E("kevlar_channel_trailer_multi_attach")?[]:void 0;f.player=null;f.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return f};
_.y(Tm,_.U);_.X=Tm.prototype;
_.X.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}}}}};
_.X.created=function(){var f=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){f.disposeMastheadAd()}]};
_.X.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new O4w(this.refresh,this.contents))};
_.X.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.X.activeChanged=function(){var f=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=f)};
_.X.tabsChanged=function(){var f=this,R,u;if(this.pageSubtype==="channels"||_.E("kevlar_tab_gestures_for_tabbed_header_data")&&((R=this.data)==null?0:(u=R.header)==null?0:u.carouselHeaderRenderer))this.tabGestures=new Jw(this.contents,this.contents,this.hostElement,this.header,function(l){f.ytdReduxBehavior.dispatch(l)});
var O,c,h;R=(O=this.data)==null?void 0:(c=O.contents)==null?void 0:(h=c.twoColumnBrowseResultsRenderer)==null?void 0:h.tabs;this.tabGestures&&this.tabGestures.tabsChanged(R)};
_.X.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.X.engagementPanelsChanged=function(){var f=_.vh().resolve(_.yT);if(f){if(this.engagementPanels)for(var R=_.Z(this.engagementPanels),u=R.next();!u.done;u=R.next()){var O=void 0;(u=(O=u.value.identifier)==null?void 0:O.tag)&&f.panelMap.delete(u)}this.engagementPanels=[];var c;R=_.Z(((c=this.data)==null?void 0:c.panels)||[]);for(c=R.next();!c.done;c=R.next()){c=_.t(c.value,_.MKS);var h=u=void 0,l=void 0,K=void 0;if(O=((u=c)==null?void 0:u.targetId)||((h=c)==null?void 0:h.panelIdentifier)||((l=c)==
null?void 0:(K=l.identifier)==null?void 0:K.tag))h=u=void 0,(h=(u=f).registerPanelContent)==null||h.call(u,O,{engagementPanelSectionListRenderer:c}),this.engagementPanels.push(c)}}};
_.X.onStampFinished=function(){var f=this;_.su(this,function(){if(f.tabGestures){var R=f.tabGestures;if(R.scrollPositionNeedsUpdate){var u=_.vh().resolve(_.Y8(_.sz)),O;if((O=R.selectedTab)!=null&&O.title&&u&&(O=u.getCurrentPage())){if(R.scrollPositionForTabs.has(R.selectedTab.title)){var c,h;u=(h=(c=u.getCurrentPage())==null?void 0:c.clientHeight)!=null?h:0;c=R.scrollPositionForTabs.get(R.selectedTab.title);O.setScrollTop(c);u>c+100&&(R.scrollPositionNeedsUpdate=!1)}else O.setScrollTop(Math.min(R.lastVisitedTabScrollPosition!==
void 0?R.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,R.tabsStartAtInPx)),R.scrollPositionNeedsUpdate=!1;R.ytdReduxDispatch(zse(!1))}}}})};
_.X.loadPage_=function(f){this.initCsi();f&&(this.data=f);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.X.getTitle=function(f){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",f))return this.get("microformat.microformatDataRenderer.title",f);if(this.get("header.feedTabbedHeaderRenderer.title",f))return _.$Z(this.get("header.feedTabbedHeaderRenderer.title",f));if(this.get("header.interactiveTabbedHeaderRenderer.title",f))return this.get("header.interactiveTabbedHeaderRenderer.title",f);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
f))return _.$Z(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",f));var R,u;return _.E("enable_page_header_page_title")&&(f==null?0:(R=f.header)==null?0:(u=R.pageHeaderRenderer)==null?0:u.pageTitle)?f.header.pageHeaderRenderer.pageTitle:""};
_.X.updateTitle=function(f){_.ul(this.hostElement,"yt-update-title",this.getTitle(f))};
_.X.initCsi=function(){_.L$(this.pageSubtype||"browse",["ol","cpt"])};
_.X.getPlayer=function(){if(_.E("kevlar_channel_trailer_multi_attach")){for(var f=_.Z(this.attachedPlayers),R=f.next();!R.done;R=f.next())if(R=R.value,R.isConnected||_.er(this.hostElement,R))return R;return null}return this.player};
_.X.getPlayerContainer=function(){return null};
_.X.onPlayerAttached=function(f,R){_.E("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(R):this.player=R};
_.X.onPlayerDetached=function(f,R){_.E("kevlar_channel_trailer_multi_attach")?(f=this.attachedPlayers.indexOf(R),f<0||this.attachedPlayers.splice(f,1)):this.player=null};
_.X.getServiceTrackingParams=function(){var f,R;return((f=this.data)==null?void 0:(R=f.responseContext)==null?void 0:R.serviceTrackingParams)||[]};
_.X.setMastheadAd=function(f){f&&f.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=f&&f.mastheadAd};
_.X.dataChanged=function(){var f=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.wSl();_.su(this,function(){_.c_(f.hostElement,"ytd-update-grid-state-action")})};
_.X.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.X.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var f=this.data.alerts;return f&&f.find(function(R){return!!R.alertWithActionsRenderer})}};
_.X.computeGreetingData=function(){if(this.data&&this.data.alerts){var f=this.data.alerts;return f&&f.find(function(R){return!!R.personalGreetingViewModel})}};
_.X.computeHasMemberHubProfileRenderer=function(f){var R;return!!(f==null?0:(R=f.header)==null?0:R.memberHubProfileRenderer)};
_.X.handleAlertCommand=function(f){this.get("alertCommand.alert.alertWithActionsRenderer",f)&&(f=_.t(f,x3X),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",f.alert))};
_.X.handleYtPlaylistDeletionRedirect=function(f){f=this.get("playlistDeletionRedirectCommand.redirectEndpoint",f);_.ul(this.hostElement,"yt-navigate",{endpoint:f})};
_.X.computeFluidWidth=function(f,R,u){if(R==="mini_app"||u)return!0;var O,c,h;f=f==null?void 0:(O=f.contents)==null?void 0:(c=O.twoColumnBrowseResultsRenderer)==null?void 0:(h=c.tabs)==null?void 0:h.find(function(q){var F;return q==null?void 0:(F=q.tabRenderer)==null?void 0:F.selected});
if(!f)return!1;var l,K;return!!((l=f.tabRenderer)==null?0:(K=l.content)==null?0:K.richGridRenderer)&&!["channel","channels","playables"].includes(R)};
_.X.computeHeaderFluidWidth=function(f){return f==="hashtag-landing-page"};
_.X.computeHasSidebar=function(f){var R;return!!(f.sidebar||((R=f.header)==null?0:R.playlistHeaderRenderer))};
_.X.computeHasPageHeaderSidebar=function(f){var R,u;return!!((R=f.header)==null?0:(u=R.pageHeaderRenderer)==null?0:u.enableSidebarView)};
_.X.computeUseUnifiedShowPageLayout=function(f){if(!f||this.pageSubtype!=="show"||!f.sidebar||!f.sidebar.playlistSidebarRenderer)return!1;f=f.sidebar.playlistSidebarRenderer;if(!f.items)return!1;for(var R=0;R<f.items.length;R++)if(_.t(f.items[R],jR)){var u=void 0;return((u=_.t(f.items[R],jR))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.X.computeIsConstrainedList=function(f){return _.E("web_enable_constrained_list_subscriptions_channels")&&f==="subscriptions-channels"};
_.X.computeResponsiveSizing=function(f){return f==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Vy.Object.defineProperties(Tm.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R;return((f=this.data)==null?0:(R=f.header)==null?0:R.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var f,R;if(!((f=this.data)==null?0:(R=f.sidebar)==null?0:R.playlistSidebarRenderer))return!1;var u;return(u=this.data)!=null&&u.header?!1:!0}}});
_.Vy.Object.defineProperties(Tm,{template:{configurable:!0,enumerable:!0,get:function(){if(hbS===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);hbS=f}f=hbS;return f}}});
Tm.prototype.dataChanged=Tm.prototype.dataChanged;Tm.prototype.onPlayerDetached=Tm.prototype.onPlayerDetached;Tm.prototype.onPlayerAttached=Tm.prototype.onPlayerAttached;Tm.prototype.onStampFinished=Tm.prototype.onStampFinished;Tm.prototype.engagementPanelsChanged=Tm.prototype.engagementPanelsChanged;Tm.prototype.scrollAtTopChanged=Tm.prototype.scrollAtTopChanged;Tm.prototype.tabsChanged=Tm.prototype.tabsChanged;Tm.prototype.activeChanged=Tm.prototype.activeChanged;
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],Tm.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.bm.YtPageBehavior),_.S("design:type",Object)],Tm.prototype,"ytPageBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Tm.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Tm.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Tm.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tm.prototype,"hidden",void 0);
_.B([_.I(),_.S("design:type",Object)],Tm.prototype,"mastheadAdData",void 0);_.B([_.I({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.S("design:type",Object)],Tm.prototype,"alertBannerData",void 0);_.B([_.I({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.S("design:type",Object)],Tm.prototype,"greetingData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],Tm.prototype,"pageSubtype",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.S("design:type",Boolean)],Tm.prototype,"hasMemberHubProfileRenderer",void 0);_.B([_.I({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Tm.prototype,"hasSidebar",void 0);_.B([_.I({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Tm.prototype,"hasPageHeaderSidebar",void 0);
_.B([_.I({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],Tm.prototype,"roundedContainer",void 0);_.B([_.I({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Tm.prototype,"useUnifiedShowPageLayout",void 0);_.B([_.I({computed:"computeIsConstrainedList(pageSubtype)"}),_.S("design:type",Object)],Tm.prototype,"isConstrainedList",void 0);
_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tm.prototype,"usePlaylistHeaderRenderer",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tm.prototype,"useOldPlaylistSidebarRenderer",null);_.B([_.I({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.S("design:type",Boolean)],Tm.prototype,"fluidWidth",void 0);_.B([_.I({selector:function(f){return f.ui.scrollAtTop}}),
_.S("design:type",Boolean)],Tm.prototype,"scrollAtTop",void 0);_.B([_.I({selector:_.a0h}),_.S("design:type",Boolean)],Tm.prototype,"tabGesturesIsActive",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tm.prototype,"darkerDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.S("design:type",Boolean)],Tm.prototype,"disableHeaderFluidWidth",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.S("design:type",String)],Tm.prototype,"responsiveSizing",void 0);_.B([_.a4("ytd-two-column-browse-results-renderer"),_.S("design:type",HTMLElement)],Tm.prototype,"contents",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],Tm.prototype,"header",void 0);_.B([_.a4("ytd-refresh"),_.S("design:type",Object)],Tm.prototype,"refresh",void 0);
_.B([_.qM("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tm.prototype,"activeChanged",null);_.B([_.qM("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tm.prototype,"tabsChanged",null);_.B([_.qM("scrollAtTop"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tm.prototype,"scrollAtTopChanged",null);
_.B([_.I(),_.S("design:type",Object)],Tm.prototype,"engagementPanels",void 0);_.B([_.qM("data.panels"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tm.prototype,"engagementPanelsChanged",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tm.prototype,"onStampFinished",null);
_.B([_.Kf("yt-player-attached"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Element]),_.S("design:returntype")],Tm.prototype,"onPlayerAttached",null);_.B([_.Kf("yt-player-detached"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Element]),_.S("design:returntype")],Tm.prototype,"onPlayerDetached",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tm.prototype,"dataChanged",null);
Tm=_.B([_.e({is:"ytd-browse"})],Tm);_.fk.registerService(_.og5,Tm);
_.TP();
}catch(e){_._DumpException(e)}
try{
_.zP("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 rM=function(f){if(!f)return"browse";var R=f.page,u=f.url,O,c,h,l=(O=f.response)==null?void 0:(c=O.responseContext)==null?void 0:(h=c.webResponseContextExtensionData)==null?void 0:h.pageTheme;if(l)R=l.toLowerCase().replace(/_/g,"-");else if(R!=="watch"&&R!=="learning_journey_watch"){var K,q;if((R==="browse"||R==="settings")&&((K=f.response)==null?0:(q=K.sidebar)==null?0:q.settingsSidebarRenderer))R="WEB_PAGE_TYPE_SETTINGS";else{var F,w;R==="browse"&&((F=f.response)==null?0:(w=F.metadata)==null?
0:w.channelMetadataRenderer)?R="channel":u&&(R=_.a1(u)||R)}}return R},dWz=function(){var f=_.Ph("yt.aba.att");
return f?f:_.iI.instance!==void 0?_.iI.instance.uZq.bind(_.iI.instance):null},Nve=function(f,R){var u;
return _.k(function(O){return(u=dWz())?O.return(u(f,R,6E4)):O.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Lwt=function(f,R,u,O,c){R=R===void 0?[]:R;
c=c?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:c}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.fg(f),dialogMessages:R.map(function(h){return _.fg(h)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fg(u),serviceEndpoint:c}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fg(O)}}}}}},bQa=function(f){var R=!!_.Mk().queueProxy;
var u,O,c;f=f==null?void 0:(u=f.response)==null?void 0:(O=u.currentVideoEndpoint)==null?void 0:(c=O.watchEndpoint)==null?void 0:c.playlistId;return!(!R&&!f)},phm=function(f,R){var u=_.qk();
if(bQa(f))return u.playlistWatchPageActivation=!0;switch(rM(R)){case "yts-products":return u.productDetailsPageActivation=!0;case "mini_app":return u.miniAppPageActivation=!0;case "playables":return u.playablesDestPageActivation=!0;default:return!1}},jSt=function(f,R,u){for(var O=typeof f==="string"?f.split(""):f,c=f.length-1;c>=0;--c)c in O&&R.call(u,O[c],c,f)},DWX=function(f,R){R=_.Q75(f,R);
R>=0&&_.nh(f,R)},J1t=function(f){return Array.prototype.concat.apply([],arguments)},z8m=function(f){var R=0;
R=R===void 0?0:R;if(!_.t9(f))throw _.QA("uint64");var u=typeof f;switch(R){case 512:switch(u){case "string":return _.Kln(f);case "bigint":return String((0,_.Iw)(64,f));default:return _.lk5(f)}case 1024:switch(u){case "string":return _.qEB(f);case "bigint":return _.VA((0,_.Iw)(64,f));default:return _.kIh(f)}case 0:switch(u){case "string":return _.Kln(f);case "bigint":return _.VA((0,_.Iw)(64,f));default:return _.ZCe(f)}default:return _.km(R,"Unknown format requested type for int64")}},TvK=function(f){f!=
null&&(f=f.JSC$6819_value_||"",f=typeof f==="string"?f:new Uint8Array(f));
return f},HQh=function(f){for(var R=_.yK.apply(1,arguments),u=f[0],O=0;O<f.length-1;O++)u+=String(R[O]),u+=f[O+1];
R=document.implementation.createHTMLDocument("");O=R.createElement("style");R.head.appendChild(O);R=O.sheet;R.insertRule(u,0);if(R.cssRules.length===1&&(u=R.cssRules[0],u instanceof CSSStyleRule))return new _.Sy(u.cssText.replace(/</g,"\\3C "))},IKm=function(f,R){if(/-[a-z]/.test(R))return null;
if(_.dtk&&f.dataset){if(_.lDB()&&!(R in f.dataset))return null;f=f.dataset[R];return f===void 0?null:f}return f.getAttribute("data-"+_.FO(R))},Pt2=function(){var f=M0e;
_.Ph("yt.ads.biscotti.getId_")||_.V4("yt.ads.biscotti.getId_",f)},UW5=function(f){_.V4("yt.ads.biscotti.lastId_",f)},Gfl=function(){var f={};
for(_.bZ=new e8h(f.handleError===void 0?_.H5:f.handleError,f.logEvent===void 0?_.Jr:f.logEvent);_.pt.length>0;)switch(f=_.pt.shift(),f.type){case "ERROR":_.bZ.logError(f.payload);break;case "EVENT":_.bZ.logEvent(f.eventType,f.payload)}},Bvm=function(f,R,u){return _.PEh(function(O){return u?O.userIdentifier!==void 0&&!f.includes(O.userIdentifier)&&u.includes(O.publicName):O.userIdentifier!==void 0&&!f.includes(O.userIdentifier)},R)},o8K=function(f){var R,u;
return _.k(function(O){if(O.nextAddress==1)return R=_.Wf("YtIdbMeta hasAnyMeta other"),_.A(O,_.PEh(function(c){return c.userIdentifier!==void 0&&c.userIdentifier!==R},f),2);
u=O.yieldResult;return O.return(u.length>0)})},SCl=function(f,R){xWa||(xWa=_.JA.addLowPriorityJob(function(){var u,O,c,h,l;
return _.k(function(K){switch(K.nextAddress){case 1:return _.A(K,_.Yx(),2);case 2:u=K.yieldResult;if(!u)return K.return();O=!0;_.cl(K,3);return _.A(K,Bvm(f,u,R),5);case 5:c=K.yieldResult;if(!c.length){O=!1;K.jumpTo(6);break}h=c[0];return _.A(K,_.oV(h.actualName),7);case 7:return _.A(K,_.$x(h.actualName,u),6);case 6:_.Bf(K,4);break;case 3:l=_.ku(K),_.jh(l),O=!1;case 4:_.JA.cancelJob(xWa),xWa=0,O&&SCl(f,R),_.KG(K)}})}))},$We=function(){var f;
return _.k(function(R){return R.nextAddress==1?_.A(R,_.Yx(),2):(f=R.yieldResult)?R.return(o8K(f)):R.return(!1)})},g8l=function(f){var R=100;
R=R===void 0?500:R;var u,O,c,h,l,K;return _.k(function(q){return q.nextAddress==1?(u=_.Tf("INNERTUBE_CONTEXT_CLIENT_NAME",0),O=[u,(0,_.iZ)()-2592E6],c=[u,(0,_.iZ)()],h=IDBKeyRange.bound(O,c),_.A(q,_.k$q(f),2)):q.nextAddress!=3?(l=q.yieldResult,K=[],_.A(q,_.Sh(l,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(F){K.length=0;return _.rU(F.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:h,direction:"prev"},function(w){if(w.getValue()&&K.length<R)return K.push(w.getValue()),
w.delete().then(function(){return w.continue()})})}),3)):q.return(K)})},sSh=function(){var f;
return _.k(function(R){if(R.nextAddress==1)return _.A(R,_.Yx(),2);f=R.yieldResult;if(!f||!_.Eb()&&!_.E("nwl_init_require_datasync_id_killswitch")||!_.j1n())return R.jumpTo(0);_.JNB=!0;_.DLq.isNwlInitialized=_.JNB;return _.A(R,_.zcF().awaitInitialization(),0)})},fl=function(f,R){_.s17[f]=!0;
var u=_.c5();u&&u.publish.apply(u,arguments);_.s17[f]=!1},V0l=function(){if(_.Nz7()&&!n8m){var f=function(u){u=u.data;
if(u.op==="serializedGelBatch"){var O=_.nsq.get(u.key);O&&(_.YU2(u.serializedBatch,O.client,O.resolve,O.networklessOptions,O.isIsolated,O.useVSSEndpoint,O.dangerousLogToVisitorSession,O.requestsOutstanding),_.nsq.delete(u.key))}},R=_.dqh();
R&&(R.addEventListener("message",f),R.onerror=function(){_.nsq.clear()});
n8m=!0}},RK=function(){this.relativeTimeStart_=_.rI()},YCh=function(f,R){f!=null&&this.append.apply(this,arguments)},v8t=function(){return _.Ms("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},iQm=function(f,R,u){u=u===void 0?!1:u;
var O,c,h,l,K;return _.k(function(q){switch(q.nextAddress){case 1:_.m$("SOCS",f,34128E3,"youtube.com",!0);if(_.ZY)return c=fetch(R,{method:"POST",mode:_.o$(R),credentials:_.Bc(R),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),h=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.o$("/upgrade_visitor_cookie?eom=1"),credentials:_.Bc("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.A(q,Promise.all([c,h]).then(function(F){return F[1]}),5);
fetch(R,{method:"POST",mode:_.o$(R),credentials:_.Bc(R),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.A(q,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.o$("/upgrade_visitor_cookie?eom=1"),credentials:_.Bc("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:O=q.yieldResult;q.jumpTo(3);break;case 5:O=l=q.yieldResult;case 3:if(!O.ok)throw Error("lf");return _.A(q,O.text(),7);case 7:K=q.yieldResult,
!K.includes('"state_switch":true')&&!u||K.includes("skip_reload_for_test")||window.location.reload(),_.KG(q)}})},r1N=function(f){return _.k(function(R){return R.nextAddress==1?_.A(R,iQm(f.socsCookie,f.savePreferenceUrl,!0),2):R.return()})},fLz=function(f){return _.k(function(R){return R.nextAddress==1?_.A(R,iQm(f.socsCookie,f.savePreferenceUrl),2):R.return()})},utm=function(f){f=f.xhr.responseText;
if(!_.hn(f,")]}'"))throw new uv;f=JSON.parse(f.substr(4));if((f.type||1)>1)throw new uv;f=f.id;UW5(f);OG=_.BY(f);RDS(18E5,2);return f},csN=function(f,R){R=new Ota(R);
UW5("");OG=_.RTi(R);f>0&&RDS(12E4,f-1);throw R;},RDS=function(f,R){_.ZL(function(){_.lKN().then(utm,function(u){return csN(R,u)}).thenCatch(_.Fe)},f)},M0e=function(){var f=_.qCN();
if(f!==void 0)return _.NO(f);OG||(OG=_.lKN().then(utm).thenCatch(function(R){return csN(2,R)}));
return OG},Xf2=function(){var f=document;
return _.et(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(R){return"on"+R.toLowerCase()in f})},hDe=function(f){f.addEventListener("click",function(R){var u=R.target;
u&&u.getAttribute("href")&&(u=u.getAttribute("href"),_.zd(window,u,"_blank"),R.preventDefault(),R.stopImmediatePropagation())})},Ztt=function(f){var R,u,O,c=(O=(u=((R=f.mainDownloadsListEntity)!=null?R:{})[_.ct0])==null?void 0:u.refresh)!=null?O:"",h;
f=(h=f.refresh)==null?void 0:h[c];c=f!=null?f:{};return(c==null?0:c.refreshTime)?Number(c==null?void 0:c.refreshTime):0},lL5=function(f,R){var u=_.dz(f);
return R.every(function(O){var c;O=O==null?void 0:(c=O.playbackDataEntity)==null?void 0:c.key;if(!O)return!1;c=_.l$(_.XX(O).entityId,"mainVideoEntity");return!!u[c]})},kAN=function(f){f=_.th(f.entities);
return _.QU0(f).length},K$S=function(f,R){if(R){var u;
f=(u=_.kZ(f.entities,"downloadQualityPickerEntity",R))!=null?u:void 0}else f=void 0;return f},aL2=function(){qbw||(_.xZ=_.fn2,qbw=new Asl);
return qbw},F$K=function(f){var R=document.getElementsByTagName("ytd-enforcement-message-view-model");
R.length===0||getComputedStyle(R[0]).display==="none"?f(0,"p.h_"):f(1,"p.h_")},wfm=function(){cU=0;
var f=[_.WL(!0)];Xm&&_.c_(Xm,"yt-window-resized",f)},mvS=function(){cU||(cU=_.JA.addLowPriorityJob(wfm,200))},W$S=function(){h3=0;
QV5=_.N7l(document);var f=[QV5];Xm&&_.c_(Xm,"yt-window-scrolled",f)},Ex9=function(){h3||(h3=_.JA.addLowPriorityJob(W$S,200))},CZ5=function(f){f=f===void 0?null:f;
thz.push(_.f0(window,"resize",mvS));thz.push(_.f0(window,"scroll",Ex9));f&&(Xm=f)},dva=function(){var f={isWide:_.wU.get("wide","0")==="1"},R=_.Qu();
if(R=R.getFlag(165)||R.getFlag(174))f.theme=_.NL(!0);if(_.F9t()){var u=_.dY()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";f.systemTheme=u}!R&&_.E("parent_tools_enable_app_settings")&&_.oS(window.location.href).theme!==void 0&&(f.theme=_.NL());if((R=Zg)?!_.dq.equals(R,f):f)R={currentValue:f},ysK&&(R.timeSinceLastSnapshotSecs=Math.round(((0,_.iZ)()-ysK)/1E3)),Zg&&(R.previousValue=Zg),_.Jr("appSettingsCaptured",R),Zg=f,ysK=(0,_.iZ)()},NUl=function(f){_.k(function(R){if(R.nextAddress==1)return _.A(R,
f.delete("yt-appshell-assets"),2);
_.KG(R)})},L$m=function(f){return _.xx((0,_.TGi)(),f)},pfw=function(){var f;
_.k(function(R){return R.nextAddress==1?_.A(R,lv.getInstance(),2):(f=R.yieldResult)?_.A(R,bt2(f),0):R.jumpTo(0)})},Dv9=function(){var f;
_.k(function(R){return R.nextAddress==1?_.A(R,kk.getInstance(),2):(f=R.yieldResult)?_.A(R,jVe(f),0):R.jumpTo(0)})},JsS=function(f){NUl(f);
pfw();Dv9()},zDt=function(f){var R,u;
return _.k(function(O){if(O.nextAddress==1)return _.A(O,_.Pd0(f),2);if(R=O.yieldResult){var c;a:{if(R.headers&&(c=R.headers.get("date"))&&(c=Date.parse(c),!isNaN(c))){c=Math.round((0,_.iZ)()-c);break a}c=-1}u=c;if(u>-1)return O.return(u)}return O.return(-1)})},TUl=function(){var f=_.Oe.caches,R=_.Hh("IS_SHELL_LOAD"),u,O;
_.k(function(c){if(c.nextAddress==1)return u=-1,R?_.A(c,zDt(f),3):(O=_.Cv(),u=Math.round((0,_.iZ)()-O),c.jumpTo(2));c.nextAddress!=2&&(u=c.yieldResult);u>=0&&u<2147483648&&_.ja({appInstallDataAgeMs:u});_.KG(c)})},Htl=function(f){var R=_.oj(_.Oe.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(O){var c=R.JSC$8036_queryData_.getValues(O);if(c==null?0:c.length)u[O]=c});
return _.u_(f,new Map(Object.entries(u)))},ILa=function(f){f=f.match(/(.*)::.*::.*/);
if(f!==null)return f[1]},Mhw=function(f){if(_.Rgt()){var R=Object.keys(window.localStorage);
R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=ILa(u);O===void 0||f.includes(O)||self.localStorage.removeItem(u)}}},PZ5=function(){if(!_.Rgt())return!1;
var f=_.Wf(),R=Object.keys(window.localStorage);R=_.Z(R);for(var u=R.next();!u.done;u=R.next())if(u=ILa(u.value),u!==void 0&&u!==f)return!0;return!1},Uvm=function(f){return _.$2("NotificationsDisabled",f)},eDX=function(){return Notification.permission!="granted"?Promise.resolve():_.FoK().then(function(f){return f?f.pushManager.getSubscription().then(function(R){if(R)return Promise.resolve();
R={userVisibleOnly:!0,applicationServerKey:_.Fi("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return f.pushManager.subscribe(R).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},GA2=function(f){return _.FoK().then(function(R){if(!R||!R.active)return Promise.reject(new _.ts("serviceworker.postMessage",f,R));
try{return R.active.postMessage(f),Promise.resolve()}catch(u){return Promise.reject(u)}})},BUN=function(){GA2({type:"notifications_register",
data:_.Tf("ID_TOKEN")})},ox5=function(){if(!_.Hh("LOGGED_IN"))return Promise.resolve(!1);
var f=_.uZ("service_worker_push_force_notification_prompt_tag");return f?_.nw("PromptTags").then(function(R){if(!R)return!0;var u=[];try{u=JSON.parse(R)}catch(O){return!1}return u&&u.indexOf(f)==-1}):Promise.resolve(!1)},xvl=function(){var f=_.RV("service_worker_push_prompt_delay_microseconds");
return f?_.nw("PromptTime").then(function(R){return Promise.resolve(Date.now()-f>(R||0))}):Promise.resolve(!0)},Sbe=function(){var f=_.RV("service_worker_push_logged_out_prompt_watches");
return f==-1?Promise.resolve(!1):_.nw("WatchCount").then(function(R){return R>=f})},$ve=function(){var f=_.vM(document,"yt-push-prompt-modal-bg");
f&&_.Q1(f)},gxm=function(){return _.RV("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.nw("PromptCount").then(function(f){f||(f=0);
return Promise.resolve(f<_.RV("service_worker_push_prompt_cap"))})},sVt=function(f){return _.Hh("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Hh("LOGGED_IN")&&(f===void 0?0:f)?ox5().then(function(R){if(R)return!0;
R=[gxm(),xvl()];_.Hh("LOGGED_IN")||R.push(Sbe());return Promise.all(R).then(function(u){return u.every(function(O){return O})})}):Promise.resolve(!1)},nxa=function(){_.nw("PromptCount").then(function(f){return _.$2("PromptCount",f+1)}).then(function(){return _.$2("PromptTime",Date.now())}).then(function(){var f=_.uZ("service_worker_push_force_notification_prompt_tag");
if(f)return _.nw("PromptTags").then(function(R){var u=[];if(R)try{u=JSON.parse(R)}catch(O){return!1}u||(u=[]);u.push(f);return _.$2("PromptTags",JSON.stringify(u))})})},Ybm=function(){Vhl||$ve()},vxK=function(f){f.style.zIndex=2147483648;
f.style.pointerEvents="auto";f.style.backgroundColor="rgba(0, 0, 0, 0.6)";f.style.width="100%";f.style.height="100vh";f.style.position="absolute";f.style.top="0";f.style.left="0";f.style.border="none"},itK=function(){var f=_.vM(document,"yt-push-prompt-modal-bg");
Vhl=_.E("service_worker_push_prompt_modal_ignore_click");f?vxK(f):(f=_.yO("div",{id:"yt-push-prompt-modal-bg"}),vxK(f),document.body.appendChild(f),_.xLh(document,"click",Ybm))},rsh=function(){var f=arguments;
_.E("service_worker_push_prompt_modal_enable")&&itK();return Notification.requestPermission().then(function(R){$ve();var u=document.getElementById("ticker");u&&(u.className=u.classList.remove("show"));if(R=="granted")return eDX().then(function(){Uvm(!1);BUN();return Promise.resolve(!0)});
R=="denied"&&BUN();return Promise.resolve(!1)}).catch(function(){$ve();
return Promise.reject.apply(Promise,_.yq(f))})},f99=function(f){f=f===void 0?!1:f;
var R=_.Eln().client;if(R&&R.browserVersion){var u=R.browserVersion,O=R.browserName=="CHROME"&&_.w7(u,"50.0.0")<0;R=R.browserName=="OPERA"&&_.w7(u,"42.0.0")<0;if(O||R)return Promise.resolve()}return _.QaK().then(function(c){if(!c)return Promise.resolve();c=eDX().then(function(){return GA2({type:"notifications_check_registration",data:_.Tf("ID_TOKEN")})});
return Notification.permission!="default"?c.catch(function(){}):c.then(function(){return sVt(f)}).then(function(h){if(h)return nxa(),rsh().then(function(){})}).catch(function(){})})},Rc9=function(f){return _.wzN(f)?f99():Promise.resolve()},uNX=function(f){var R=f.installing||f.waiting;
return f.active||!R?Promise.resolve(f):new Promise(function(u){var O=function(c){c=c.target;if(c.state==="activated"||c.state==="redundant")R.removeEventListener("statechange",O),u(f)};
R.addEventListener("statechange",O)})},OBz=function(){var f=new _.JoD("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.qS(f,{mainAppWeb:_.BL()});var R=_.YiA;_.E("service_worker_forward_exp_params")&&(R=Htl(R));try{var u=_.tXt(R).catch(function(){_.Ad(f,"FAILURE");return new Promise(function(){})});
_.E("service_worker_push_enabled")&&u.then(function(O){_.Ad(f,"SUCCESS");return O}).then(uNX).then(Rc9)}catch(O){if(_.Ad(f,"FAILURE"),O.name!=="SecurityError")throw O;
}},cAl=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&OBz()},XR2=function(f,R){var u={};
R&&(u.serializedYpcFamilyCreateLoggingParams=R);_.Jr(f,u);_.zL()},hcX=function(f,R){var u={};
u.serializedYpcRefundFlowLoggingParams=R;f&&(u.eventType=f);_.Jr("ypcRefundFlowEvent",u);_.zL()},ZBS=function(f){f&&_.yE5("transactionFlowSucceeded",f)},l9a=function(f){f&&_.D6("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},k2h=function(f){var R,u,O,c,h,l,K;
_.k(function(q){if(q.nextAddress==1)return _.A(q,_.hCB(),2);if(q.nextAddress!=3){if(!q.yieldResult)return q.return(!1);R=[];return _.A(q,_.cM.keys(),3)}u=q.yieldResult;O=_.Z(u);for(c=O.next();!c.done;c=O.next())h=c.value,l=_.cBX(h),K=l.datasyncId,!K||f.includes(K)||R.push(_.cM.delete(h));return q.return(Promise.all(R).then(function(F){return F.some(function(w){return w})}))})},Knm=function(){var f,R,u,O,c,h,l;
return _.k(function(K){if(K.nextAddress==1)return _.A(K,_.hCB(),2);if(K.nextAddress!=3){if(!K.yieldResult)return K.return(!1);f=_.Wf("cache contains other");return _.A(K,_.cM.keys(),3)}R=K.yieldResult;u=_.Z(R);for(O=u.next();!O.done;O=u.next())if(c=O.value,h=_.cBX(c),(l=h.datasyncId)&&l!==f)return K.return(!0);return K.return(!1)})},qLh=function(){var f=_.vh().resolve(_.Y8(_.Mck));
return f?f.getCurrentTime():0},AA2=function(){var f,R,u,O,c,h,l,K,q,F,w,m,W,C;
return _.k(function(d){switch(d.nextAddress){case 1:f={},R=_.fQn(),u=_.Z(Object.entries(R)),O=u.next();case 4:if(O.done){d.jumpTo(3);break}c=O.value;h=_.Z(c);l=h.next().value;K=h.next().value;q=l;F=K;if(!F){d.jumpTo(5);break}return _.A(d,F(),8);case 8:f[q]=d.yieldResult;case 5:O=u.next();d.jumpTo(4);break;case 2:w=_.Z(void 0),m=w.next();case 9:if(m.done){d.jumpTo(3);break}W=m.value;C=R[W];if(!C){d.jumpTo(10);break}return _.A(d,C(),13);case 13:f[W]=d.yieldResult;case 10:m=w.next();d.jumpTo(9);break;
case 3:return d.return(f)}})},a9N=function(){var f;
_.k(function(R){if(R.nextAddress==1)return _.A(R,AA2(),2);f=R.yieldResult;return _.A(R,navigator.clipboard.writeText(JSON.stringify(f,null,2)),0)})},Fnt=function(f,R){return _.kZ(f.entities,"superThanksSelectedTierEntity",R)},wRz=function(f){var R;
return(R=f.sharedUi)==null?void 0:R.currentPageType},mxS=function(f,R){return{popup:{searchSuggestionReportDialog:{searchQuery:f,
title:_.Fa("SBOX_INAPPROPRIATE_TITLE"),suggestions:R,categoryLabel:_.Fa("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Fa("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Fa("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Fa("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Fa("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Fa("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Fa("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Fa("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Fa("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Fa("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Qyl=function(f){var R,u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g;
return _.k(function(x){switch(x.nextAddress){case 1:return _.A(x,_.Ah(),2);case 2:return(R=x.yieldResult)?_.A(x,_.tx2(R),3):x.return();case 3:u=x.yieldResult;if(!u)return x.return();c=((O=u.offlineVideos)==null?void 0:O.length)||0;l=((h=u.offlinePlaylists)==null?void 0:h.length)||0;if(c===0&&l===0)return x.return();K=0;if(u.offlineVideos)for(q=_.Z(u.offlineVideos),F=q.next();!F.done;F=q.next())w=F.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===w.videoState&&(K+=1);f.offline_videos_count=c.toString();_.E("kevlar_log_offline_current_network_type_ks")||
(f.offline_current_network_type=(m=_.Ka5())!=null?m:"CONN_INVALID");_.E("kevlar_log_updated_time_for_smart_downloads")&&(W=_.sP().getState().entities,C=_.b$(W),d=Ztt(W),f.offline_smart_downloads_last_sync_time_ms=C.toString(),f.offline_smart_downloads_next_sync_time_ms=d.toString());f.offline_videos_playable=K.toString();f.offline_playlists_count=l.toString();if(!_.E("woffle_used_state_report")){x.jumpTo(4);break}u.offlineVideos&&(p=u.offlineVideos.reduce(function(fh,V){V.downloadedBytes&&(fh+=Number(V.downloadedBytes));
return fh},0).toString())&&(f.offline_used_disk_space_bytes=p);
if(!((J=navigator)==null?0:(M=J.storage)==null?0:M.estimate)){x.jumpTo(4);break}return _.A(x,navigator.storage.estimate(),6);case 6:P=x.yieldResult,f.offline_free_disk_space_bytes=(((g=P)==null?void 0:g.quota)||0).toString();case 4:f.offline_client_state=JSON.stringify(u),_.KG(x)}})},Wnh=function(f){f=f.match(/(.*)::.*::.*/);
if(f!==null)return f[1]},EMz=function(f){if(_.yQD()){var R=Object.keys(window.sessionStorage);
R=_.Z(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=Wnh(u);O===void 0||f.includes(O)||self.sessionStorage.removeItem(u)}}},tIm=function(){if(!_.yQD())return!1;
var f=_.Wf(),R=Object.keys(window.sessionStorage);R=_.Z(R);for(var u=R.next();!u.done;u=R.next())if(u=Wnh(u.value),u!==void 0&&u!==f)return!0;return!1},Kl=function(f,R,u){(_.E("desktop_keyboard_shortcut_usage_log")||u&&_.E("web_shorts_keyboard_shortcut_usage_log"))&&(R?_.Y2.get(f):_.Vs.get(f))&&(f=R?_.iF.get(f):_.vx.get(f))&&_.Sa(_.z4(),f)},COS=function(f){return f.visibility!=="hidden"&&f.display!=="none"},yAe=function(f){if(!f.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
f=f.getAttribute("tabindex")||"0";return Number(f)},dxa=function(f){return f.some(function(R){return yAe(R)>0})},Ncz=function(f){if(f.textContent)return!0;
if(f instanceof HTMLInputElement){if(!f.labels)return!1;f=_.Z(f.labels);for(var R=f.next();!R.done;R=f.next())if(R.value.textContent)return!0}return!1},Lna=function(f){return f.sort(function(R,u){return yAe(u)-yAe(R)})},bBK=function(f){f=Array.from(f.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(R){return(COS(R.style)?
COS(window.getComputedStyle(R)):!1)&&Ncz(R)});
return dxa(f)?Lna(f):f},pRm=function(f){f=bBK(f);
f.length>0&&f[0].focus()},jyX=function(f,R){R.stack&&(f.stack+="\n"+R.stack);
return f},zcz=function(f){var R=qT(f,"Content-Type");
if(!R)return null;R=R.toLowerCase();if(R.startsWith("application/json"))return R.startsWith("application/json+protobuf")?new Dx2:new _.fu;if(R.startsWith("application/x-protobuf")){f=qT(f,"Content-Transfer-Encoding");if(!f)return new A3;if(f.toLowerCase()=="base64")return new JAh}return null},Bce=function(f,R,u,O){var c=new Tc9(function(K,q){return HBh.has(q)?K.sentinel==="gal"&&K.event!==void 0:!1},function(K){K.event?(K=I9m(K.event),K=!K||MIK(O,K)?!0:_.FA(f.lastEvent,aK,2,Fm)?!_.FA(K,wa,1,Fm)&&
!_.FA(K,aK,2,Fm):!_.FA(K,wa,1,Fm)&&!_.FA(K,aK,3,Fm)):K=!0;
return K});
u=_.u_(f.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",POm(u)]]));if(f.nestedOrigins!==void 0)for(var h=_.Z(f.nestedOrigins),l=h.next();!l.done;l=h.next())u=_.u_(u,new Map([["origin",l.value]]));return UxS(c,u,R).then(function(K){K=ecS(K.event);if(_.FA(K,wa,1,Fm)){var q,F=(q=_.JM(K,wa,1,Fm))==null?void 0:_.p6(q,2);F&&O.JSC$17095_logErrorEvent(G2e(F));q=_.JM(K,wa,1,Fm);_.p6(q,2)===4?(K=_.JM(K,wa,1,Fm),K={statusCode:11,statusMessage:_.bH(K,
3)}):(K=_.JM(K,wa,1,Fm),K={statusCode:12,statusMessage:_.bH(K,3)});return K}_.FA(K,aK,3,Fm)?(K=_.JM(K,aK,3,Fm),K={statusCode:1,consentLanguageKeys:_.bH(K,2)}):K={statusCode:1};return K}).catch(function(K){return K.errorCode!==void 0?{statusCode:K.errorCode,
statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},$x5=function(f){var R={};
if(f===void 0||f===null)return R;f.getToken()!==void 0&&oM5(f.getToken())&&oM5(f.getToken()).length>0&&(R.scopes=new Set(oM5(f.getToken())));f.getToken()!==void 0&&xxS(f.getToken())&&xxS(f.getToken()).length>0&&(R.capabilities=new Set(xxS(f.getToken())));_.bH(f,3)!==void 0&&(R.consistencyKey=_.bH(f,3));f.getName()!==void 0&&f.getName()!==""&&(R.linkName=f.getName());_.at(f,SLS,4)&&(f=_.Ry(f,SLS,4),f=Object.assign({},_.bH(f,1)&&{userId:_.bH(f,1)},_.bH(f,2)&&{displayName:_.bH(f,2)},_.bH(f,3)&&{email:_.bH(f,
3)},_.bH(f,5)&&{username:_.bH(f,5)},_.bH(f,4)&&{profilePicture:_.bH(f,4)}),R.profile=f);return R},gMK=function(f,R){var u=f.flowParams;
return{serviceId:u.serviceId,sessionId:u.sessionId,currentFlow:f.currentFlow,googleScopesString:R,linkingSessionSerialized:f.session.serialize(),consentLanguageKeys:u.consentLanguageKeys,callerState:f.callerState,dynamicUrlParameters:u.dynamicUrlParameters,partnerConfigMinReadTimestamp:u.partnerConfigMinReadTimestamp}},vM2=function(f){var R=f.googleScopes!==void 0?Array.from(f.googleScopes).join(","):"";
syN(gMK(f,R));R=nMh(f);return R===null?Promise.resolve(VIS):R.start().then(function(u){var O,c=(O=u.link)==null?void 0:O.consistencyKey;return u.statusCode===1&&f.googleScopes!==void 0&&f.googleScopes.size>0&&c!==void 0?(O=f.flowParams,YLS(O.serviceId,O.sessionId,f.googleScopes,c,O.galService,f.config,u)):u})},iB2=function(f){var R=nMh(f);
return R===null?Promise.resolve(mg({statusCode:7,statusMessage:"Failed to create flow object"},f.callerState)):R.complete().then(function(u){var O,c=(O=u.link)==null?void 0:O.consistencyKey;return u.statusCode===1&&f.googleScopes!==void 0&&f.googleScopes.size>0&&c!==void 0?(O=f.flowParams,YLS(O.serviceId,O.sessionId,f.googleScopes,c,O.galService,f.config,u)):mg(u,f.callerState)},function(u){return mg({statusCode:12,
statusMessage:"Failed to complete the flow: "+u.message},f.callerState)})},YLS=function(f,R,u,O,c,h,l){return rAX(c,{serviceId:f,
sessionId:R,googleScopes:u,consistencyKey:O}).then(function(){return l},function(K){return c.deleteLink({serviceId:f,
sessionId:R,accountLinkingEntryPoint:h.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+K.message}},function(q){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+q.message}})})},nMh=function(f){switch(f.currentFlow){case 1:var R=f.flowParams;
f=_.Ry(f.session,f8w,1);return QU.createOAuthFlow(R,f);case 2:case 3:return R=f.flowParams,f=_.Ry(f.session,RMX,6),WU.createStreamlinedFlow(R,f);default:return null}},u0m=function(f,R){f===2&&(f=3);
var u=0;EG.indexOf(f)!==-1&&(u=EG.indexOf(f)+1);for(f=u;f<EG.length;f++)if(R.has(EG[f]))return EG[f]},X55=function(f){var R=f.serviceId;
var u=f.sessionId;var O=f.config;var c=f.galService;var h=f.capabilities;var l=f.scopes;var K=f.loginHint;var q=f.callerState;var F=f.consentLanguageKeys;var w=f.linkName;var m=f.dynamicUrlParameters;var W=f.partnerConfigMinReadTimestamp;f=O.dataUsageNoticeConfig?O.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return c.startLinkingSession({serviceId:R,sessionId:u,capabilities:h,scopes:l,loginHint:K,callerState:q,supportedFlows:O09(O.supportedFlows),completionUrl:O.completionUrl,accountLinkingEntryPoint:O.accountLinkingEntryPoint,
consentLanguageKeys:F,dataUsageNoticeConfig:f,linkName:w,dynamicUrlParameters:m,partnerConfigMinReadTimestamp:W}).then(function(C){return new cr5(R,u,O,c,C,void 0,q,F,m,W)})},KYK=function(f,R,u){a:{var O=new hMa;
if(O.storage!==null)try{var c=O.storage.get("SAVED_SESSION");if(c===void 0){var h=null;break a}if(c.serviceId===f){h=c;break a}}catch(l){}h=null}if(h===null)return Promise.resolve({statusCode:2});Z0h(f);O=l8m(h.linkingSessionSerialized);return kLw(new cr5(f,h.sessionId,R,u,O,h.googleScopesString!==""&&h.googleScopesString!==void 0?new Set(h.googleScopesString.split(",")):void 0,h.callerState,h.consentLanguageKeys,h.dynamicUrlParameters,h.partnerConfigMinReadTimestamp),h.currentFlow,h.consentLanguageKeys)},
syN=function(f){var R=new hMa;
R.storage!==null&&R.storage.set("SAVED_SESSION",f)},Z0h=function(f){var R=new hMa;
if(R.storage!==null){var u=R.storage.get("SAVED_SESSION");u!==void 0&&u.serviceId===f&&R.storage.remove("SAVED_SESSION")}},O09=function(f){var R=new Set;
f=_.Z(f);for(var u=f.next();!u.done;u=f.next())u=u.value,u!==1&&qWl.has(u)&&R.add(qWl.get(u));return R},mg=function(f,R){R!==void 0&&(f.callerState=R);
return f},ArX=function(f){switch(f){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},w52=function(){var f={timeout:5E3};
f=f===void 0?{}:f;return a8m!=null?a8m:a8m=FYw(f)},mBX=function(){return new Promise(function(f,R){window.gapi.load("client",{callback:f,
onerror:R})})},FYw=function(f){f=f===void 0?{}:f;
var R;return _.k(function(u){if(u.nextAddress==1){if((R=window.gapi)&&R.client&&R.client.load)u=u.return(R);else{var O=_.lh("https://apis.google.com/js/api.js");u=_.A(u,_.bz(O,f),2)}return u}if(u.nextAddress!=3){R=window.gapi;if(!R)throw Error("Xj");return R.client&&R.client.load?u.jumpTo(3):_.A(u,mBX(),3)}return u.return(R)})},WY5=function(f,R){R=R===void 0?0:R;
var u=f.auth2.getAuthInstance().currentUser.get(),O=u.getAuthResponse(!0);if(O&&O.expires_at-Date.now()<R){if(Qhh.has(f))return Qhh.get(f);R=Promise.resolve(u.reloadAuthResponse()).finally(function(){Qhh.delete(f)});
Qhh.set(f,R);return R}return Promise.resolve()},ENK=function(f,R){var u;
return f.client.init({apiKey:R.apiKey,clientId:R.clientId,scope:R.scope,discoveryDocs:R.discoveryDocs,hostedDomain:R.hostedDomain,fetchBasicProfile:(u=R.fetchBasicProfile)!=null?u:!0})},tVz=function(f){if(f.queryParams!=null){var R={},u;
for(u in f.queryParams)f.queryParams[u]!==void 0&&(R[u]=f.queryParams[u]);f.queryParams=R}},dB5=function(f){return new Cc5(f,new yr5(f))},b0K=function(f,R){R=R===void 0?!1:R;
var u=document.createElement("div");f&&(u.style.transform="scaleX(-1)");u.style.backgroundColor=R?"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");f=document.createElement("style");f.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(f);f=NJ9();f.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";f.style.left="-145.166611%";var O=LYm(R);O.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";f.appendChild(O);u.appendChild(f);f=NJ9();f.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";f.style.left="-54.888891%";R=LYm(R);R.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
f.appendChild(R);u.appendChild(f);return u},NJ9=function(){var f=document.createElement("div");
f.style.height="100%";f.style.position="absolute";f.style.transformOrigin="top left";f.style.width="100%";return f},LYm=function(f){var R=document.createElement("span");
R.style.borderTop=f?"4px solid #669df6":"4px solid #4285f4";R.style.display="inline-block";R.style.position="absolute";R.style.width="100%";return R},p5h=function(f){return f==null?void 0:_.JfI(f).valueOf()},zMm=function(f){var R=document.body,u=!1,O=function(){u||(u=!0,jhz(c,h),setTimeout(function(){R.removeChild(h);
R.removeChild(c)},150))},c=DBa(f,getComputedStyle(R).direction==="rtl",O),h=Jrh(O);
jhz(c,h);R.appendChild(h);R.appendChild(c);window.requestAnimationFrame(function(){h.style.opacity="1";c.style.opacity="1";c.style.transform="translate(-50%, -50%) scale(1)";c.children[0].focus()})},DBa=function(f,R,u){var O=document.createElement("div");
O.style.position="fixed";O.style.alignItems="center";O.style.backgroundColor=f?"rgb(32, 33, 36)":"white";O.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";O.style.display="flex";O.style.flexDirection="column";O.style.justifyContent="center";O.style.left="50%";O.style.top="50%";O.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";O.style.zIndex="2002";document.body.clientWidth>=660?(O.style.borderRadius="8px",O.style.minHeight="220px",
O.style.maxHeight="90%",O.style.maxWidth="90%",O.style.minWidth="540px"):(O.style.height="100%",O.style.width="100%");O.setAttribute("aria-label","Error");O.setAttribute("aria-modal","true");O.setAttribute("role","alertdialog");O.addEventListener("keydown",function(h){h.key==="Escape"&&u()});
R=TJX(f,R,u);O.appendChild(H09(R));O.appendChild(R);var c=document.createElement("img");c.src=f?"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";c.style.height="72px";c.style.width="72px";c.style.color="#9aa0a6";c.setAttribute("alt","");O.appendChild(c);c=document.createElement("h1");c.textContent="Something went wrong.  Try again.";
c.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";c.style.lineHeight="24px";c.style.fontSize="16px";c.style.textAlign="center";c.style.letterSpacing="0.1px";c.style.color=f?"rgb(232,234,237)":"#3c4043";O.appendChild(c);O.appendChild(H09(R));return O},TJX=function(f,R,u){var O=document.createElement("button");
O.style.backgroundColor="transparent";O.style.border="none";O.style.borderRadius="50%";O.style.cursor="pointer";O.style.outline="none";O.style.padding="12px";O.setAttribute("aria-label","Close dialog");O.style.position="absolute";O.style.top="0";R?O.style.right="0":O.style.left="0";O.addEventListener("focus",function(){O.style.backgroundColor=f?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
O.addEventListener("blur",function(){O.style.backgroundColor="transparent"});
O.addEventListener("mouseenter",function(){O.style.backgroundColor=f?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
O.addEventListener("mouseleave",function(){O.style.backgroundColor="transparent"});
O.addEventListener("click",u);O.addEventListener("keydown",function(c){c.key!=="Enter"&&c.key!=="Space"||u()});
R=document.createElement("img");R.src=f?"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";R.style.display="block";R.style.height="24px";R.style.width="24px";R.setAttribute("alt","");O.appendChild(R);return O},H09=function(f){var R=document.createElement("div");
R.setAttribute("tabindex","0");R.setAttribute("aria-hidden","true");R.addEventListener("focus",function(){return void f.focus()});
return R},Jrh=function(f){var R=document.createElement("div");
R.style.backgroundColor="rgba(32,33,36,0.6)";R.style.bottom="0";R.style.left="0";R.style.position="fixed";R.style.right="0";R.style.top="0";R.style.transition=" opacity 150 ms linear";R.style.zIndex="2001";R.addEventListener("click",f);return R},jhz=function(f,R){R.style.opacity="0";
f.style.opacity="0";f.style.transform="translate(-50%, -50%) scale(0.8)"},I8S=function(f,R){f.sandbox&&f.sandbox.add&&(f.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),f.sandbox.add("allow-downloads"));
f.src=R},t3=function(f){MV5.call(this,f)},Cl=function(f,R){R=R===void 0?!1:R;
this.parsedImageUrl_=null;f instanceof PcN||(UBX==void 0&&(UBX=new eMN),f=UBX.parse(f.toString(),R));f=this.parsedImageUrl_=f;f.JSC$17326_parsedOptions_==void 0&&((R=f.getOptions())||(R=""),f.JSC$17326_parsedOptions_=(new GLm).parse(R));MV5.call(this,f.JSC$17326_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;f=this.parsedImageUrl_;R=f.uri_.JSC$8036_port_;this.JSC$17328_domain_=f.uri_.JSC$8036_domain_+(R?":"+R:"");this.JSC$17328_query_=this.parsedImageUrl_.uri_.JSC$8036_queryData_.toString()},
BJm=function(f){this.mode=4;
this.data=f;this.parsedData=[];f=0;for(var R=this.data.length;f<R;f++){var u=[],O=this.data.charCodeAt(f);O>65536?(u[0]=240|(O&1835008)>>>18,u[1]=128|(O&258048)>>>12,u[2]=128|(O&4032)>>>6,u[3]=128|O&63):O>2048?(u[0]=224|(O&61440)>>>12,u[1]=128|(O&4032)>>>6,u[2]=128|O&63):O>128?(u[0]=192|(O&1984)>>>6,u[1]=128|O&63):u[0]=O;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))},oNa=function(f){this.typeNumber=0;
this.errorCorrectLevel=f===void 0?2:f;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},yU=function(f,R){if(f.length==void 0)throw Error("rk`"+f.length+"`"+R);
for(var u=0;u<f.length&&f[u]==0;)u++;this.num=Array(f.length-u+R);for(R=0;R<f.length-u;R++)this.num[R]=f[R+u]},xB5=function(f,R){this.totalCount=f;
this.dataCount=R},SW5=function(){this.buffer=[];
this.length=0},$B9=function(){var f=!1;
if(_.An2()){f=_.Q2();var R="";_.w0q()?(R=/Windows (?:NT|Phone) ([0-9.]+)/,R=(f=R.exec(f))?f[1]:"0.0"):_.P0()?(R=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,R=(f=R.exec(f))&&f[1].replace(/_/g,".")):_.FP0()?(R=/Mac OS X ([0-9_.]+)/,R=(f=R.exec(f))?f[1].replace(/_/g,"."):"10"):_.a7(_.Q2(),"KaiOS")?(R=/(?:KaiOS)\/(\S+)/i,R=(f=R.exec(f))&&f[1]):_.An2()?(R=/Android\s+([^\);]+)(\)|;)/,R=(f=R.exec(f))&&f[1]):_.mXq()&&(R=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,R=(f=R.exec(f))&&f[1]);f=R||""}return f},vNm=function(f,
R){this.JSC$17351__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(R)for(var u in R)this.JSC$17351__htOption[u]=R[u];this.JSC$17351__htOption.useSVG&&(gNN=sht);this.JSC$17351__android=$B9();this.JSC$17351__el=f;this._oQRCode=null;this._oDrawing=new gNN(this.JSC$17351__el,this.JSC$17351__htOption);this.JSC$17351__htOption.text&&(f=this.JSC$17351__htOption.text,this._oQRCode=new oNa(this.JSC$17351__htOption.correctLevel),nNm(this._oQRCode,f),R=this._oQRCode,VV5(R,!1,YWw(R)),this.JSC$17351__el.title=
f,this._oDrawing.draw(this._oQRCode),this.makeImage())},i0X=function(f,R,u,O,c){f.save();
var h=new Path2D;h.roundRect(R,u,O*7,O*7,O*2);h.roundRect(R+O,u+O,O*5,O*5,O*1.3);h.roundRect(R+2*O,u+2*O,O*3,O*3,O);f.clip(h,"evenodd");f.fillStyle=c;f.fillRect(0,0,f.canvas.width,f.canvas.height);f.restore()},da=function(f,R){if(typeof f!=="function")throw Error("uk");
return _.Oe.setTimeout(function(){f()},R)},NT=function(){},fa9=function(f,R,u,O,c){(new NT).debug("TestLoadImageWithRetries: "+c);
if(O==0)u(!1);else{var h=c||0;O--;rrt(f,R,function(l){l?u(!0):_.Oe.setTimeout(function(){fa9(f,R,u,O,h)},h)})}},rrt=function(f,R,u){var O=new NT;
O.debug("TestLoadImage: loading "+f);var c=new Image;c.onload=function(){try{O.debug("TestLoadImage: loaded"),Rhz(c),u(!0)}catch(h){}};
c.onerror=function(){try{O.debug("TestLoadImage: error"),Rhz(c),u(!1)}catch(h){}};
c.onabort=function(){try{O.debug("TestLoadImage: abort"),Rhz(c),u(!1)}catch(h){}};
c.ontimeout=function(){try{O.debug("TestLoadImage: timeout"),Rhz(c),u(!1)}catch(h){}};
_.Oe.setTimeout(function(){if(c.ontimeout)c.ontimeout()},R);
c.src=f},Rhz=function(f){f.onload=null;
f.onerror=null;f.onabort=null;f.ontimeout=null},uPN=function(){this.front_=[];
this.back_=[]},OTX=function(f,R){_.d9.call(this);
this.delay_=new _.LR(this.JSC$17477_onTick_,0,this);_.qG(this,this.delay_);this.JSC$17475_interval_=5E3;this.nextTickTime_=0;if(typeof f==="function")R&&(f=(0,_.NG)(f,R));else if(f&&typeof f.handleEvent==="function")f=(0,_.NG)(f.handleEvent,f);else throw Error("Ca");this.JSC$17477_listener_=f},Ll=function(f,R,u,O,c,h,l,K,q,F,w,m,W,C){u=u===void 0?!1:u;
O=O===void 0?function(){return""}:O;
c=c===void 0?!1:c;h=h===void 0?!1:h;l=l===void 0?!1:l;K=K===void 0?function(){return _.ll({})}:K;
q=q===void 0?!1:q;w=w===void 0?!1:w;m=m===void 0?!1:m;W=W===void 0?!1:W;C=C===void 0?!1:C;this.JSC$17478_pathPrefix_=f;this.defaultQueryParams_=R;this.pubsub_=new _.aV;this.reconnectTimer_=new OTX(this.safeReconnect_,this);this.JSC$17478_channel_=null;this.JSC$17478_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17478_pendingMessages_=[];this.enableAsyncTest_=u;this.JSC$17478_getXsrfToken_=O;this.useAsyncBrowserChannelHandler_=h;this.getAuthorizationHeader_=
K;this.getAuthorizationHeaderSync_=F;this.enableCachedUpdateAuthorizationHeader_=l;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.ll();this.enableLoungeTokenRefresh_=c;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=q;this.disableMdxAuthForNonPlaybackMessages_=w;this.disableMdxAuthForAdMessages_=m;this.enableMdxAuthForConnectionOnly_=W;this.disableMdxAuthForShortsMessages_=C;this.JSC$17478_channelOpenedCounter=new cZ2;this.JSC$17478_channelClosedCounter=new XC2;this.channelMessageSentCounter=
new hhX;this.JSC$17478_channelMessageReceivedCounter=new ZTl;this.JSC$17478_channelErrorCounter=new la2;this.pendingMapsOnClosedCounter=new kOa;this.undeliveredMapsOnClosedCounter=new KFN},bv=function(f){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;f=f||document.location.href;var R=Number(_.$8(f)[4]||null)||"";R&&(this.port=":"+R);this.domain=_.gv(f)||"";f=_.Q2();f.search("MSIE")>=0&&_.w7(f.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},pl=function(f){f=f||{};
this.name=f.name||"";this.id=f.id||f.screenId||"";this.token=f.token||f.loungeToken||"";this.uuid=f.uuid||f.dialId||"";this.idType=f.screenIdType||"normal"},quS=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){var R=Math.random()*16|0;
return(f=="x"?R:R&3|8).toString(16)})},AZt=function(f){return _.L8(f,function(R){return{key:R.id,
name:R.name}})},aaK=function(f,R){return _.et(f,function(u){return u||R?!u!=!R?!1:u.id==R.id:!0})},Dg=function(f,R){return _.et(f,function(u){return jz(u,R)})},WF2=function(){var f=FFa(),R=wC9();
if(m1l()){var u=f,O=_.CBP(u,R);O<0&&_.tte(u,-(O+1),0,R)}f=QI2(f);if(f.length==0)try{_.hae("remote_sid")}catch(c){}else try{_.m$("remote_sid",f.join(","),-1)}catch(c){}},FFa=function(){var f=_.Xs("yt-remote-connected-devices")||[];
f.sort(_.Zk);return f},QI2=function(f){if(f.length==0)return[];
var R=f[0].indexOf("#"),u=R==-1?f[0]:f[0].substring(0,R);return _.L8(f,function(O,c){return c==0?O:O.substring(u.length)})},EVX=function(f){_.cT("yt-remote-connected-devices",f,86400)},wC9=function(){if(t25)return t25;
var f=_.Xs("yt-remote-device-id");f||(f=quS(),_.cT("yt-remote-device-id",f,31536E3));for(var R=FFa(),u=1,O=f;_.g7(R,O);)u++,O=f+"#"+u;return t25=O},Cq5=function(){return _.Xs("yt-remote-session-browser-channel")},m1l=function(){return _.Xs("yt-remote-session-screen-id")},Nem=function(f){f.length>5&&(f=f.slice(f.length-5));
var R=_.L8(yZ5(),function(O){return O.loungeToken}),u=_.L8(f,function(O){return O.loungeToken});
_.iqh(u,function(O){return!_.g7(R,O)})&&d1m();
_.cT("yt-remote-local-screens",f,31536E3)},yZ5=function(){return _.Xs("yt-remote-local-screens")||[]},d1m=function(){_.cT("yt-remote-lounge-token-expiration",!0,86400)},J3=function(f){f||(_.hC("yt-remote-session-screen-id"),_.hC("yt-remote-session-video-id"));
WF2();f=FFa();_.v0(f,wC9());EVX(f)},bTh=function(){LFa();
return zG?!!zG.get("yt-remote-use-staging-server"):!1},LFa=function(){if(!zG){var f=_.wc7();
f&&(zG=new _.y4(f))}},JZN=function(f,R,u,O,c){u=u===void 0?function(){return""}:u;
var h=function(){return new Ll(TG(f,"/bc"),R,!1,u,O)};
return _.E("enable_mdx_web_channel_desktop")?new pCX(function(){return new jIS(TG(f,"/wc"),R,u)}):new D1m(h,c)},Iam=function(){var f=zh9;
TeX();HU.push(f);HTt()},IK=function(f,R){TeX();
var u=M22(f,String(R));HU.length==0?Pq5(u):(HTt(),_.Gf(HU,function(O){O(u)}))},MT=function(f){IK("CP",f)},TeX=function(){HU||(HU=_.Ph("yt.mdx.remote.debug.handlers_")||[],_.V4("yt.mdx.remote.debug.handlers_",HU))},Pq5=function(f){var R=(PU+1)%50;
PU=R;U1a[R]=f;eha||(eha=R==49)},HTt=function(){var f=HU;
if(U1a[0]){var R=eha?PU:-1,u={};do u={record$jscomp$13:void 0},R=(R+1)%50,u.record$jscomp$13=U1a[R],_.Gf(f,function(O){return function(c){c(O.record$jscomp$13)}}(u));
while(R!=PU);U1a=Array(50);PU=-1;eha=!1}},M22=function(f,R){var u=(Date.now()-GOX)/1E3;
u.toFixed&&(u=u.toFixed(3));var O=[];O.push("[",u+"s","] ");O.push("[","yt.mdx.remote","] ");O.push(f+": "+R,"\n");return O.join("")},UG=function(f){_.n4.call(this);
this.JSC$17502_logName_=f;this.screens=[]},GG=function(f){UG.call(this,"LocalScreenService");
this.JSC$17509_http_=f;this.loungeTokenRefreshTimer_=NaN;ez(this);this.info("Initializing with "+Be2(this.screens))},BU=function(f,R){R=R===void 0?!1:R;
UG.call(this,"ScreenService");this.JSC$17515_http_=f;this.disableAutomaticScreenCache_=R;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};oVm(this)},oK=function(f,R,u){_.n4.call(this);
this.JSC$17519_logName_=u;this.JSC$17519_screenService_=f;this.receiver_=R;this.screen_=null},Oam=function(f,R,u){u.disableCastApi?xk("Cannot initialize because disabled by Mdx config."):x1l()?SuK(f,u)&&($1w(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?gV5(R):(window.__onGCastApiAvailable=function(O,c){O?gV5(R):(Sz("Failed to load cast API: "+c),sIz(!1),$1w(!1),_.hC("yt-remote-cast-available"),_.hC("yt-remote-cast-receiver"),nVN(),R(!1))},u.loadCastApiSetupScript?_.Um("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?V2K()>=60&&Yu5():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?vVm():V2K()>=89?iTK():(rZ5(),fv9(Ra2.map(uOm))))):xk("Cannot initialize because not running Chrome")},nVN=function(){xk("dispose");
var f=$k();f&&f.dispose();_.V4("yt.mdx.remote.cloudview.instance_",null);cjK(!1);_.nS7(Xcz);Xcz.length=0},hah=function(){return!!_.Xs("yt-remote-cast-installed")},ZaN=function(){var f=_.Xs("yt-remote-cast-receiver");
return f?f.friendlyName:null},lvh=function(){xk("clearCurrentReceiver");
_.hC("yt-remote-cast-receiver")},k4m=function(){return hah()?$k()?$k().getCastSession():(Sz("getCastSelector: Cast is not initialized."),null):(Sz("getCastSelector: Cast API is not installed!"),null)},qmS=function(f,R){Kam()?$k().setConnectedScreenStatus(f,R):Sz("setConnectedScreenStatus called before ready.")},x1l=function(){var f=_.Q2().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.lH||f},SuK=function(f,R){var u=!1;
$k()||(f=new sG(f,R),f.subscribe("yt-remote-cast2-availability-change",function(O){_.cT("yt-remote-cast-available",O);fl("yt-remote-cast2-availability-change",O)}),f.subscribe("yt-remote-cast2-receiver-selected",function(O){xk("onReceiverSelected: "+O.friendlyName);
_.cT("yt-remote-cast-receiver",O);fl("yt-remote-cast2-receiver-selected",O)}),f.subscribe("yt-remote-cast2-receiver-resumed",function(O){xk("onReceiverResumed: "+O.friendlyName);
_.cT("yt-remote-cast-receiver",O);fl("yt-remote-cast2-receiver-resumed",O)}),f.subscribe("yt-remote-cast2-session-change",function(O){xk("onSessionChange: "+Ajz(O));
O||_.hC("yt-remote-cast-receiver");fl("yt-remote-cast2-session-change",O)}),_.V4("yt.mdx.remote.cloudview.instance_",f),u=!0);
xk("cloudview.createSingleton_: "+u);return u},$k=function(){return _.Ph("yt.mdx.remote.cloudview.instance_")},gV5=function(f){sIz(!0);
$1w(!1);$k().init(!1,function(R){R?(cjK(!0),_.Vke("yt-remote-cast2-api-ready")):(Sz("Failed to initialize cast API."),sIz(!1),_.hC("yt-remote-cast-available"),_.hC("yt-remote-cast-receiver"),nVN());f(R)})},xk=function(f){IK("cloudview",f)},Sz=function(f){IK("cloudview",f)},sIz=function(f){xk("setCastInstalled_ "+f);
_.cT("yt-remote-cast-installed",f)},Kam=function(){return!!_.Ph("yt.mdx.remote.cloudview.apiReady_")},cjK=function(f){xk("setApiReady_ "+f);
_.V4("yt.mdx.remote.cloudview.apiReady_",f)},$1w=function(f){_.V4("yt.mdx.remote.cloudview.initializing_",f)},nl=function(f){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(f)},avt=function(){var f,R;
return _.k(function(u){if(u.nextAddress==1)return(_.zG0()||_.E("use_new_nwl"))&&_.pL2().isNetworkAvailable()?_.A(u,_.Yx(),2):u.return();if(u.nextAddress!=3)return(f=u.yieldResult)?_.A(u,g8l(f),3):u.return();R=u.yieldResult;if(!R.length)return u.return();R.forEach(function(O){var c={timestamp:O.timestamp};O=O.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:O.appShellAssetLoadReport,options:c}:O.clientError?{payloadName:"clientError",payload:O.clientError,options:c}:void 0;O&&
_.Jr(O.payloadName,O.payload,O.options)});
R.length===100&&_.JA.addLowPriorityJob(avt);_.KG(u)})},Faz=function(f){if(f.playerResponse){if(f=f.playerResponse,f.messages&&f.messages.length>0&&(f=f.messages.find(function(R){return!(!R||!R.mealbarPromoRenderer)}))&&f.mealbarPromoRenderer)return f.mealbarPromoRenderer}else if(f.response&&(f=f.response)&&f.overlay&&f.overlay.mealbarPromoRenderer)return f.overlay.mealbarPromoRenderer},wcw=function(f){if(f.response){var R=f.response;
if(R&&R.overlay&&R.overlay.tooltipRenderer)return R.overlay.tooltipRenderer}if(f.playerResponse&&(f=f.playerResponse,f.messages&&f.messages.length>0&&(f=f.messages.find(function(u){return!(!u||!u.tooltipRenderer)}))&&f.tooltipRenderer))return f.tooltipRenderer},Q$m=function(f){if(!mst&&(f=f||_.Tf("ZWIEBACK_PING_URLS"))&&f.length){mst=!0;
for(var R=0;R<f.length;R++)_.BR(f[R])}},E7w=function(f){if(_.dq.get(_.Tf("PLAYER_VARS",{}),"privembed",!1)!="1"){f&&Pt2();
try{Wah().then(function(){},function(){}),_.ZL(E7w,18E5)}catch(R){_.IS(R)}}},tdS=function(){var f=_.Qu(),R=f.getFlag(119),u=window.devicePixelRatio>1;
document.body&&_.Pb(document.body,"exp-invert-logo")&&(u&&!_.Pb(document.body,"inverted-hdpi")?_.sx(document.body,"inverted-hdpi"):!u&&_.Pb(document.body,"inverted-hdpi")&&_.$r(document.body,"inverted-hdpi"));R!=u&&(_.W_(0,119,u),f.save())},CEz=function(f){return f.filter(function(R){return"ypcGetCartEndpoint"in R||"ypcFixInstrumentEndpoint"in R})},yjS=function(f){return f.filter(function(R){return!_.t(R,_.eOH)})},Nuw=function(f){f=_.Z(f);
for(var R=f.next(),u={};!R.done;u={setter$jscomp$6:void 0},R=f.next()){var O=R.value;R=O.params;O=O.service;R&&O&&(u.setter$jscomp$6=dsS[O],u.setter$jscomp$6&&R.forEach(function(c){return function(h){var l=h.key;h=h.value;l&&h&&(0,c.setter$jscomp$6)(l,h)}}(u)))}},ba2=function(f,R){var u,O,c,h,l,K,q;
_.k(function(F){switch(F.nextAddress){case 1:u=_.pn.getInstance();O=_.KU.instance;c=_.PM.instance;if(!c)return LaK(f,O,R),F.return();_.cl(F,2);f.onLoadingCommand&&O.resolveCommand(f.onLoadingCommand);return _.A(F,u.getCurrentPositionFromGeolocation(),4);case 4:h=F.yieldResult;if(!f.resolveLocationCommand){F.jumpTo(5);break}l=u.createLocationInfo(h);return _.A(F,_.e6(c,f.resolveLocationCommand,{locationInfo:l}),6);case 6:K=F.yieldResult;if(!K||"error"in K&&K.error||K.errorMetadata)return LaK(f,O,R),
F.return();var w;if(K==null?0:(w=K.onResponseReceivedActions)==null?0:w.length){w=_.Z(K.onResponseReceivedActions);for(var m=w.next();!m.done;m=w.next())O.resolveCommand(m.value)}(_.t(f.onSuccessCommand,_.$7)||_.t(f.onSuccessCommand,_.wY))&&_.ul(R.hostElement,"yt-navigate",{endpoint:f.onSuccessCommand,reload:!0});case 5:_.Bf(F,0);break;case 2:q=_.ku(F);if(q instanceof GeolocationPositionError&&q.code===GeolocationPositionError.PERMISSION_DENIED)return f.onDeniedCommand&&O.resolveCommand(f.onDeniedCommand),
F.return();LaK(f,O,R);_.KG(F)}})},LaK=function(f,R,u){f.onFailureCommand&&(R.resolveCommand(f.onFailureCommand),_.OJ(u.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},j$K=function(f,R){var u=_.t(f,_.rdH);
if(u&&R){f=u.videoIds||[u.videoId];var O;R=(O=_.ul(R,"yt-lockup-requested",{videoIds:f}).detail)==null?void 0:O.returnValue;var c;u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?c=R?R:f.map(function(h){return{videoId:h,navigationEndpoint:u.videoCommand}}):R&&(c=R);
c&&(O=c.map(function(h){var l=Object,K=l.assign;var q=h.navigationEndpoint;if(!_.t(q,_.Ey)){var F=_.t(q,_.$7);if(F){if(delete F.index,delete F.playlistId,F=_.t(q==null?void 0:q.commandMetadata,_.vc),F==null?0:F.url){var w=F.url;w=_.Y7(w,"list");w=_.Y7(w,"index");F.url=w}}else q=void 0}return K.call(l,{},h,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:q})}),pcN(O,u))}},DsS=function(f){var R=_.Mk();
if(f=_.t(f,_.fYi))f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&R.clearQueue(),f.closeMiniplayer&&_.vh().resolve(_.MS).close(!0)},za9=function(f){Jjm(_.Mk(),f)},Tue=function(f){var R;
(f=(R=_.t(f,_.vjE))==null?void 0:R.setVideoIds)&&f.forEach(function(u){_.rEl(_.Mk(),u)})},Iv5=function(f){HaK(_.Mk(),f)},MdS=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(f){return!1}},PEm=function(f){var R=_.vh().resolve(_.Y8(_.Q7));
if(R){var u={beforeTransition:function(){f.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){f.style.viewTransitionName=""}};
VU(R,"slide",u);VU(R,"zoom",u)}},Us2=function(f,R,u){return{horizontalAlignment:f.x+u.width/2<R.width/2?"west":"east",
verticalAlignment:f.y+u.height/2<R.height/2?"north":"south"}},BuS=function(f,R,u,O,c){c=c===void 0?new _.b_(0,0):c;
return eal(G42(f,R,u,O),c)},G42=function(f,R,u,O){return new _.b_(f==="west"?16:u.width-O.width-16,R==="north"?16:u.height-O.height-16)},o75=function(f,R){var u=0;
f&&(u+=76);R&&(u+=285);return u},xs5=function(f){var R=["h",
"m","s"],u=_.iB(R);u.reverse();var O={};f=(f.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(l){var K=(l.match(/[hms]/)||[""])[0];return K?(O[K]=parseInt(l.match(/\d+/)[0],10),!1):!0});
for(f.reverse();f.length&&u.length;){var c=u.shift();c in O||(O[c]=parseInt(f.shift(),10))}if(f.length||O.s>59||O.m>59||O.h>9)return null;var h="";R.forEach(function(l){O[l]&&(h+=""+O[l]+l)});
return h||null},Smz=function(f){f=f.data;
return _.a("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.a("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.a(_.gR,{data:{thumbnails:[{url:f.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.a("div",{class:"profile-badge-view-model-wiz__content"},_.a("div",{class:"profile-badge-view-model-wiz__badge-description"},f.badgeDesc),f.badgeSubtitle?_.a("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},f.badgeSubtitle):null))},$sw=function(f){f=
f.data;
var R=_.sW();_.hb2(R,f.rendererContext);return _.a("yt-comment-interaction-view-model",{el:R,class:"yt-comment-interaction-view-model-wiz"},_.a("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":f.onTapA11yLabel,"on:keydown":_.fiB(),tabindex:0},_.a("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.a("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},f.headerPrefix,' "',f.videoTitle),_.a("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.a("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.a("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},f.commentContent),_.a("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.a(_.gR,{data:{thumbnails:[{url:f.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},s$m=function(f){f=f.data;
return _.a("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},g7K(f.avatar),_.a("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},f.channelName))},Vdm=function(f){f=f.data;
var R;return _.a("div",{class:"yt-profile-info-view-model-wiz__activity"},_.a("div",{class:"yt-profile-info-view-model-wiz__header"},_.a("div",{class:"yt-profile-info-view-model-wiz__section-title"},f.commentsInteractionTitle)),(R=f.comments)==null?void 0:R.map(function(u){return _.a("div",{class:"yt-profile-info-view-model-wiz__activity"},n72(u))}))},Ymw=function(f){f=f.data;
var R=_.MO({elementsCommand:f.subscriptionsAccessButtonCommand}),u=_.sW();_.PFn(u,_.H7(f.subscriptionsAccessButtonCommand));var O;return _.a("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.a("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.a("a",{el:u,"on:click":_.Ff(function(c){if(R==null?0:R.onclick)R.onclick(c);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.a("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},f.sharedSubscriptionsTitle),_.a("div",null,n72(f.subscriptionsAccessButton)))),_.a("div",{class:"yt-profile-info-view-model-wiz__subs"},(O=f.sharedSubscriptions)==null?void 0:O.slice(0,5).map(function(c){return _.a("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",n72(c))})))},v7l=function(f){f=f.data;
var R;return _.a("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.a("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.a("h2",{class:"yt-profile-info-view-model-wiz__section-title"},f.sharedSubscriptionsTitle)),_.a("div",{class:"yt-profile-info-view-model-wiz__subs"},(R=f.sharedSubscriptions)==null?void 0:R.slice(0,5).map(function(u){return _.a("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",n72(u))})))},iaN=function(f){f=f.data;
return _.a("div",{class:"yt-profile-info-view-model-wiz__activity"},[f.profileBadgeInfoYtWide,f.profileBadgeInfoChannelWide].map(function(R){var u,O,c,h,l;return R?_.a(_.RS,null,_.a("div",{class:"yt-profile-info-view-model-wiz__header"},_.a("div",{class:"yt-profile-info-view-model-wiz__section-title"},R==null?void 0:R.profileSectionTitle),_.a("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.a("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},R==null?void 0:(u=R.commentBadge)==
null?void 0:u.commentDesc),(R==null?0:(O=R.commentBadge)==null?0:O.blackHeartDesc)?_.a("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.a("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.a(_.gR,{data:{thumbnails:[{url:R==null?void 0:(c=R.commentBadge)==null?void 0:c.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.a("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},R==null?void 0:(h=
R.commentBadge)==null?void 0:h.blackHeartDesc))),_.a("div",{class:"yt-profile-info-view-model-wiz__badge"},R==null?void 0:(l=R.badges)==null?void 0:l.map(function(K){return _.a(Smz,{data:K})}))):null}))},rjS=function(f){f=f.data;
return _.a("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.a(iaN,{data:f}),f.comments?_.a(Vdm,{data:f}):null,f.sharedSubscriptionsTitle?f.subscriptionsAccessButtonCommand?_.a(Ymw,{data:f}):_.a(v7l,{data:f}):null)},R4a=function(f){var R=f.data;
f=R?fWz(R.profileIdentityInfo):void 0;R=R?fWz(R.profileInfo):void 0;return _.a("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},f,R)},ual=function(f,R){var u=_.H9k(R,{},f,!0);
return new Promise(function(O,c){u.listenOnce("n",function(){c(Error("el`"+u.JSC$25858_getErrorDescription()))});
u.listenOnce("l",function(){var h=u.getResponseCode();if(h!==200)c(Error("fl`"+R+"`"+f.type+"`"+f.size+"`"+h));else try{O(JSON.parse(u.getResponseText()).encryptedBlobId)}catch(l){c(l)}});
u.run()})},OvS=function(f){return f.substring(f.indexOf(":")+1,f.indexOf(";"))},cHS=function(f){return new Promise(function(R,u){var O=new FileReader;
O.onloadend=function(){try{var c=new Uint8Array(O.result);c.length<8&&u(void 0);var h=c.subarray(0,8);c="";for(var l=0;l<h.length;l++)c+=("0"+h[l].toString(16)).substr(-2);c.startsWith("ffd8ff")?R("image/jpeg"):c.startsWith("47494638")?R("image/gif"):c.startsWith("89504e470d0a1a0a")?R("image/png"):c.startsWith("424d")?R("image/bmp"):R(void 0)}catch(K){u(K)}};
O.onerror=u;O.readAsArrayBuffer(f)})},X_2=function(f){return new Promise(function(R,u){var O=new Image;
O.crossOrigin="anonymous";O.onload=function(){var c=document.createElement("canvas");c.width=O.naturalWidth;c.height=O.naturalHeight;var h=c.getContext("2d");if(!h)throw Error("gl");h.drawImage(O,0,0);h=OvS(f);c.toBlob(function(l){l?R(l):u()},h)};
O.src=f})},Zv5=function(f,R){var u;
if(((u=_.t(f,_.Ey))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var O;_.ul((O=R.hostElement)!=null?O:R,"yt-shorts-reset");_.OYA(_.vh().resolve(_.AC),f).then(function(h){h4S(h,R,f)})}else{var c;
_.hH((c=R.hostElement)!=null?c:R,[f]).then(function(h){h&&h4S(h.data,R,f)})}},h4S=function(f,R,u){if(f){var O=_.t(f.replacementEndpoint,_.Ey);
if(O){f.sequenceContinuation&&(O.sequenceParams=f.sequenceContinuation);var c;_.ul((c=R.hostElement)!=null?c:R,"yt-navigate",{endpoint:f.replacementEndpoint})}else if((f==null?void 0:f.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(f==null?0:f.watchStatus)&&_.t(f.watchStatus,_.MAF)){var h;_.ul((h=R.hostElement)!=null?h:R,"yt-navigate",{endpoint:u})}}},lWm=function(f){var R=_.vh().resolve(_.zM),u=wRz(R.getState())||"";
R=_.x92(R.getState())||"";u=u==="ytd-browse"&&R==="home";return _.E("web_guide_entry_enable_cache_for_non_home_pages")?(f=(f==null?void 0:f.navigationEndpoint)&&_.Fr(f.navigationEndpoint)==="home",{disableCache:u&&f}):{disableCache:u}},kTX=function(f){if(!f)return!1;
try{if(f.host&&f.host.tagName==="YT-FORMATTED-STRING"&&f.host.id==="contenteditable-textarea"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="YTD-COMMENT-INPUT")return!0}catch(R){return!1}return kTX(f.parentNode)},Yk=function(f){return f?f.tagName==="A"&&f.href&&f.classList.contains("yt-simple-endpoint"):!1},Kxl=function(f){return f?f.tagName==="IMG"&&f.classList.contains("emoji"):!1},qJm=function(f,R,u){if(!f)return null;
var O=Yk(f);if(O&&u)return R=f.pathname.substring(f.pathname.indexOf("/channel/")+9),document.createTextNode("@"+R);if(O&&!u)return document.createTextNode("");if(Kxl(f))return u=f.alt,f=f.dataset.emojiId,!f&&R&&(R=_.wh(R,u))&&R.isCustomEmoji&&(f=R.emojiId),f?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+f+">"):document.createTextNode(u);O=f.cloneNode(!1);for(var c=0;c<f.childNodes.length;++c){var h=qJm(f.childNodes[c],R,u);h&&O.appendChild(h)}return O},vU=function(f){return f?Yk(f)?f:vU(f.lastChild):
null},AH2=function(f){return f?Yk(f)?f:AH2(f.firstChild):null},aWN=function(f){if(!f)return null;
for(var R=f.previousSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.previousSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.previousSibling;else break;(R=vU(R))?f=R:f=(f=f.parentNode)?vU(f.previousElementSibling):null;return f},Fxe=function(f){if(!f)return null;
for(var R=f.nextSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.nextSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.nextSibling;else break;return(R=AH2(R))?R:Fxe(f.parentNode)},w_z=function(f){var R=_.Qo(),u=R.JSC$9247_getStartNode();
if(!kTX(u.parentNode))return null;R=R.JSC$9247_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var O=_.Tx(u,Yk);if(O){if(f&&R===0||!f&&R===u.length)return O}else{if(f&&R===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.WB(u.nextElementSibling,"display")==="block"?null:AH2(u.nextElementSibling);if(!f&&R===0)return u?vU(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(f){if(0<=R&&R<u.childNodes.length)return AH2(u.childNodes[R])}else if(0<R&&R<=u.childNodes.length)return vU(u.childNodes[R-
1]);return null},m5S=function(f,R,u){if(!f)return null;
if(f.nodeType===Node.TEXT_NODE)if(u){var O=aWN(f);if(O&&!/^\s+\S/.test(f.wholeText.substr(0,R)))return O}else if((O=Fxe(f))&&!/\S\s+/.test(f.wholeText.substr(R,f.wholeText.length)))return O;return f.nodeType===Node.ELEMENT_NODE?u?aWN(f.childNodes[R]):Fxe(f.childNodes[R]):m5S(f.parentNode,R,u)},Qpl=function(f){if(f.hasChildNodes())switch(f.tagName){case "DIV":case "A":case "SPAN":var R="";
for(f=f.firstChild;f;f=f.nextSibling)R+=Qpl(f);return R;default:return""}else switch(f.nodeType){case 3:return f.textContent;default:return""}},Wx5=function(f){f=f.data;
return _.a("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.a("div",null,_.a(_.YO,{text:f.title})),f.subtitle?_.a("div",{class:"ytd-menu-title-renderer__subtitle"},_.a(_.YO,{text:f.subtitle})):null)},EEt=function(f){switch(f){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"}},taw=function(f){return f.map(function(R){return{settingsRadioOptionRenderer:{title:_.u$(R.name),
asideText:_.u$(R.approximateSize),id:EEt(R.format)}}})},yHN=function(f){if(f&&f.length!==0)return f.filter(Cle()).map(function(R){return{settingsRadioOptionRenderer:{title:R.name,
asideText:R.approximateSize,id:EEt(R.formatType)}}})},iv=function(f){if(f)return f.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},d5h=function(f,R){f=new Set(f!=null?f:[]);
if(f.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(f.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(f.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(f.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(f.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(R)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},NAm=function(f){var R=f.indexOf("(");
return R!==-1?f.substring(R+1,f.length-1):f},Lxa=function(f){switch(f){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},p_N=function(f,R,u,O,c,h){var l=_.dq.clone(bvS);
l.locale=_.Tf("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;l.report={description:c||"<empty>"};c=_.Tf("SBOX_SETTINGS",{});R=R.join(",");var K=Date.now();f={choice_cc:O,choice_id_cc:u,choices_sc:R,gl:c.REQUEST_DOMAIN,hl:c.REQUEST_LANGUAGE,query:f,time:K};h&&(f.choice_additional_comment_cc=h);_.GBI(l,f)},jp9=function(f){var R=new Map;
R.set("authuser",_.Tf("SESSION_INDEX","0"));return _.u_(f,R)},JHN=function(f){var R;
return _.k(function(u){switch(u.nextAddress){case 1:if(!f||!D5l(f))return u.return(null);R=null;switch(_.Tf("INNERTUBE_CLIENT_NAME")){case "WEB":return u.jumpTo(2);case "WEB_REMIX":R=f.getPlayer()}u.jumpTo(3);break;case 2:return _.A(u,f.getPlayerPromise(),4);case 4:R=u.yieldResult;u.jumpTo(3);break;case 3:return u.return(R)}})},D5l=function(f){return["ytd-player",
"ytmusic-player"].includes(String(f.tagName||"").toLowerCase())},z4h=function(f){f=Math.round(f);
return f%2?f-1:f},TAe=function(f){f=Math.round(f);
return f%2===0?f-1:f},Hve=function(f){var R,u,O;
if(f=(R=f.createPlaylistDialogFormSchema)==null?void 0:(u=R.fieldSchemas)==null?void 0:(O=u.title)==null?void 0:O.validationSchema)for(R=[f.syncStep,f.asyncStep].filter(function(c){return c!==void 0}),R=_.Z(R),u=R.next();!u.done;u=R.next()){u=u.value.rules;
if(!u)break;u=_.Z(u);for(u=u.next();!u.done;u=u.next())return _.t(u.value,_.Uc9)}},Mah=function(f){var R,u,O;
if(f=(R=f.createPlaylistDialogFormSchema)==null?void 0:(u=R.fieldSchemas)==null?void 0:(O=u.visibility)==null?void 0:O.validationSchema)for(R=[f.syncStep,f.asyncStep].filter(function(c){return c!==void 0}),R=_.Z(R),u=R.next();!u.done;u=R.next()){u=u.value.rules;
if(!u)break;u=_.Z(u);for(O=u.next();!O.done;O=u.next())if(O=_.t(O.value,IWe))return R=void 0,(R=O.translations)==null?void 0:R.visibilityNotValidErrorMessage}},PlX=function(){var f,R;
return(R=(f=_.vh().resolve(_.Y8(_.oF)))==null?void 0:f())!=null?R:!1},U5t=function(f){var R=21;
if(!f)return R;R+=f.headerTitle?27:0;R+=f.headerTitle&&f.hasHeaderActionHeader?4:0;return R+=f.headerTitle&&f.headerSubtitle?16:0},e4h=function(f){var R=0;
if(!f)return R;R+=f.hasFooterPrimaryButton||f.hasFooterSecondaryButton?48:0;R+=f.footerTrailingLabel||f.footerLeadingLabel?30:0;return R+=f.hasFooterPrimaryButton||f.hasFooterSecondaryButton||!f.footerTrailingLabel&&!f.footerLeadingLabel?0:12},GT2=function(f){var R=new _.aV,u=f;
return{subscribe:function(O){R.subscribe("changed",O)},
dispatch:function(O,c){var h=u;O==="Touch Start"?u=Object.assign({},h,{isAnimating:!1,initialY:c.event.touches[0].clientY}):O==="Touch Move"?(O=Math.min(c.fullContentWrapperHeight,c.contentHeightMap[c.contentWrapperId]+U5t(c.header)-e4h(c.footer)),u=Object.assign({},h,{currentY:Math.max(c.contentScrollable?-1*(h.initialY-24):0,c.event.touches[0].clientY-h.initialY),maxHeightForContentWrapper:Math.min(O,Math.max(0,(h.isFullScreen?O:c.contentWrapperHeight)-h.currentY))})):u=O==="Snap To Full Screen"?
Object.assign({},h,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:c.maxHeight}):O==="Snap To Neutral Position"?Object.assign({},h,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:c.maxHeight}):O==="Close Sheet"?Object.assign({},h,{isAnimating:!0,currentY:c.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:c.maxHeight}):h;R.publish("changed",u)}}},BAl=function(f){return _.Ff(function(R){f(R);
return!1})},oE9=function(){_.vh().resolve(_.dp).closeSheet()},x5N=function(f){var R,u,O,c,h,l,K,q,F,w,m;
return{headerTitle:(R=f.headerTitle)==null?void 0:R.call(f),headerSubtitle:(u=f.headerSubtitle)==null?void 0:u.call(f),headerActionHeader:f.headerActionHeader,footerPrimaryButton:f.footerPrimaryButton,footerSecondaryButton:f.footerSecondaryButton,footerButtonType:(O=f.footerButtonType)==null?void 0:O.call(f),footerLeadingLabel:(c=f.footerLeadingLabel)==null?void 0:c.call(f),footerTrailingLabel:(h=f.footerTrailingLabel)==null?void 0:h.call(f),shouldShowIcons:(l=f.shouldShowIcons)==null?void 0:l.call(f),
skipContentClick:(K=f.skipContentClick)==null?void 0:K.call(f),additionalClassName:(q=f.additionalClassName)==null?void 0:q.call(f),onClosedCallback:f.onClosedCallback,focusOnClose:(F=f.focusOnClose)==null?void 0:F.call(f),isDisabled:(w=f.isDisabled)==null?void 0:w.call(f),disabledCommand:(m=f.disabledCommand)==null?void 0:m.call(f),headerFn:f.headerFn,contentFn:f.contentFn,footerFn:f.footerFn,hasHeaderFn:f.hasHeaderFn(),hasContentFn:f.hasContentFn(),hasFooterFn:f.hasFooterFn(),hasFooterPrimaryButton:f.hasFooterPrimaryButton(),
hasFooterSecondaryButton:f.hasFooterSecondaryButton(),hasHeaderActionHeader:f.hasHeaderActionHeader()}},SJt=function(f){switch(f){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""}},$5N=function(f){switch(f){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""}},gEh=function(f){switch(f){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""}},spl=function(f,R,u){R.forEach(function(O){_.Zn(_.vh().resolve(_.Cq),O)});
_.OJ(f,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",u])},vE5=function(f,R,u,O){var c=_.t(u,_.PY).commandLifeCycleConfig;
c&&c.onStartCommand&&_.ZW(f,[c.onStartCommand],R);_.om(R);var h=_.PM.instance;h&&_.Uz(h,u)?_.e6(h,u,O).then(function(l){if(!l||(l==null?0:l.error))return l=_.t(u,_.PY).serializedTransactionFlowLoggingParams,_.xR(R),_.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",l));_.xR(R);return{data:l}}).then(function(l){_.xR(R);
nEh(l.data);var K=l.data.command;K&&_.ZW(f,[K],R);K=VaK(u,l.data);if(!K){var q=l.data;l=!1;if(q&&q.command&&_.t(q.command,_.kE)){var F;q=((F=_.t(q.command,_.kE))==null?void 0:F.commands)||[];for(F=0;F<q.length;F++)if(_.t(q[F],_.CxF)){l=!0;break}}l||_.y3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!K&&c&&c.onSuccessCommand?_.ZW(f,[c.onSuccessCommand],R):K&&c&&c.onFailureCommand&&_.ZW(f,[c.onFailureCommand],R)},function(){_.xR(R);
c&&c.onFailureCommand&&_.ZW(f,[c.onFailureCommand],R);YJX(u)}):_.TL(Error("xl"),"ERROR")},ive=function(f,R,u){var O=[R];
u&&O.push(u);return _.hH(f,O).then(function(c){var h=_.t(R,_.PY).serializedTransactionFlowLoggingParams,l=c.data,K=VaK(R,l);K?c=_.NO(new ra(K,h)):nEh(l);return c},function(){var c=_.t(R,_.PY).serializedTransactionFlowLoggingParams;
YJX(R);return _.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",c))})},VaK=function(f,R){f=_.t(f,_.PY).serializedTransactionFlowLoggingParams;
var u=null;switch(R.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?_.xS(u,f):ZBS(f);return u},YJX=function(f){_.xS("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.t(f,_.PY).serializedTransactionFlowLoggingParams)},
nEh=function(f){if(f.trackingParams){var R=_.z4(),u=_.Jj();
R&&u&&_.ea(R,u,_.t4(f.trackingParams))}},rH9=function(f,R,u){var O=_.PM.instance,c=_.sJn(_.Tf("YPC_MB_URL")),h=(new _.$Jn).init(),l=_.gXt(),K=_.t(u,_.QYF).languageCode;
K===void 0?_.TL(Error("Bi"),"ERROR"):_.EF([h,c]).then(function(){var q={ctk:payments.business.integration.ClientTokenFactory.createClientToken(K,l)};O&&_.Uz(O,u)?_.e6(O,u,q).then(function(F){return{data:F}}).then(function(F){_.ul(R,"yt-service-request-completed",F);
F.code!=="ERROR"&&(F=F.data.command)&&_.ZW(f,[F],R)}):_.TL(Error("xl"),"ERROR")})},uXX=function(f,R,u,O){var c=_.PM.instance;
c&&_.Uz(c,u)?_.e6(c,u,O).then(function(h){return{data:h}}).then(function(h){fHX(f,R,u,h)},function(){Rjl(u)}):(c=_.vh().resolve(_.Y8(_.DM)))&&c.requestDataForServiceEndpoint(u,O).then(function(h){fHX(f,R,u,h)},function(){Rjl(u)})},fHX=function(f,R,u,O){_.ul(R,"yt-service-request-completed",O);
if(O.code&&O.code=="ERROR")Rjl(u);else{(O=O.data.commands)&&_.ZW(f,O,R);var c;(f=(c=_.t(u,_.diY))==null?void 0:c.serializedYpcPauseFlowLoggingParams)&&f&&_.D6("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",f)}},Rjl=function(f){var R;
(f=(R=_.t(f,_.diY))==null?void 0:R.serializedYpcPauseFlowLoggingParams)&&f&&_.D6("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},XWS=function(f,R,u){var O=_.PM.instance;
O&&_.Uz(O,u)?_.e6(O,u).then(function(c){return{data:c}}).then(function(c){Ogm(f,R,u,c)},function(){ch9(u)}):(O=_.vh().resolve(_.Y8(_.DM)))&&O.requestDataForServiceEndpoint(u).then(function(c){Ogm(f,R,u,c)},function(){ch9(u)})},Ogm=function(f,R,u,O){_.ul(R,"yt-service-request-completed",O);
O.code&&O.code=="ERROR"?ch9(u):((O=O.data.commands)&&_.ZW(f,O,R),(f=_.t(u,_.NSF).serializedYpcResumeFlowLoggingParams)&&f&&_.D6("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",f))},ch9=function(f){(f=_.t(f,_.NSF).serializedYpcResumeFlowLoggingParams)&&f&&_.D6("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},hjm=function(f){f=f===void 0?{}:f;
_.vh().resolve(_.j9k).showFeedbackDialog(f.customProductData,f.feedbackContent,f.onFeedbackSubmitted,f.bucket)},Zgz=function(f){f=f===void 0?{}:f;
_.vh().resolve(_.j9k).showHelpDialog(f.helpContext,f.articleId,f.productData)},lH5=function(){Zgz()},keK=function(){hjm()},qPa=function(f,R,u){var O,c,h,l,K,q,F;
return _.k(function(w){switch(w.nextAddress){case 1:O=_.t(f,KBz);if((c=O)==null?0:c.productId){q={productId:O.productId,bucket:O.bucket,enableAnonymousFeedback:(K=O.enableAnonymousFeedback)!=null?K:!0,allowNonLoggedInFeedback:!0};F={feedbackChoice:u.feedbackChoice};if(!_.E("web_collect_offline_state")){w.jumpTo(8);break}_.cl(w,9);return _.A(w,Qyl(F),11)}l={bucket:(h=O)==null?void 0:h.bucket};if(!_.E("web_collect_offline_state")){w.jumpTo(4);break}l.customProductData={};_.cl(w,5);return _.A(w,Qyl(l.customProductData),
7);case 7:_.Bf(w,4);break;case 5:_.ku(w);case 4:hjm(l);w.jumpTo(0);break;case 11:_.Bf(w,8);break;case 9:_.ku(w);case 8:_.BL0(F),_.Gne("GFEEDBACK",F),O.productId==="5295751"&&(F.client_attestation=Number(_.Tf("CATSTAT",0))),O.productId==="5295751"&&(F.client_time=Date.now()/1E3/3600),O.productId==="5295751"&&(F.original_playback_id=_.Kpf||""),_.GBI(q,F),_.KG(w)}})},AhS=function(f){if(f=_.t(f,_.eR0)){var R={bucket:f.bucketIdentifier};
f.additionalDatas&&(R.customProductData={},f.additionalDatas.forEach(function(u){if(u=u.userFeedbackEndpointProductSpecificValueData)R.customProductData[u.key]=u.value}));
hjm(R)}},aHl=function(f){var R=_.xN.getInstance();
var u=_.Fa("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var O=_.Fa("DELETE",void 0,"Delete"),c=_.Fa("CANCEL",void 0,"Cancel");u=Lwt(u,void 0,O,c,{signal:"DELETE_ALL_DOWNLOADS"});_.D2(R,[{openPopupAction:u}],f)},wWS=function(){return _.k(function(f){return f.nextAddress==1?_.A(f,_.vh().resolve(_.vH),2):_.A(f,FBl(),0)})},mqm=function(f){var R,u;
return _.k(function(O){return O.nextAddress==1?(u=(R=_.t(f,_.GL))==null?void 0:R.targetId)?_.A(O,_.vh().resolve(_.vH),3):O.jumpTo(0):_.A(O,_.vh().resolve(_.YW).deleteVideo(u),0)})},WBS=function(f){var R,u;
return _.k(function(O){return O.nextAddress==1?(u=(R=_.t(f,_.GL))==null?void 0:R.targetId)?_.A(O,_.vh().resolve(_.vH),3):O.jumpTo(0):_.A(O,QL9(_.vh().resolve(_.YW),u),0)})},t85=function(f){var R,u;
return _.k(function(O){return(u=(R=_.t(f,_.GL))==null?void 0:R.targetId)?_.A(O,EZS(u),0):O.jumpTo(0)})},yh9=function(){_.E("kevlar_woffle_refresh_dl_load_killswitch")||C$h()},NzN=function(){_.E("kevlar_woffle")&&_.bj.instance&&dqm()},bga=function(f){var R;
if((R=_.t(f,_.kO))==null||!R.videoId)return!1;LBl(_.vh().resolve(_.YW),_.t(f,_.kO),f.clickTrackingParams);return!0},jLS=function(f){var R;
if((R=_.t(f,_.Kr))==null||!R.playlistId)return!1;pWz(_.vh().resolve(_.YW),_.t(f,_.Kr),f.clickTrackingParams);return!0},JhN=function(f){var R=_.t(f,_.mjC);
(R==null?void 0:R.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(R==null?void 0:R.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||Dqw(_.vh().resolve(_.YW),_.t(f,_.mjC))},TzN=function(f){f=_.t(f,_.SVk);
var R;(f==null?0:(R=f.actions)==null?0:R.length)&&zje(f)},M8h=function(f){var R,u;
return _.k(function(O){R=_.t(f,Hgt);return(u=R)!=null&&u.localWatchHistoryCommandType?_.A(O,IH9(R),0):O.return()})},P$w=function(f){setTimeout(function(){requestAnimationFrame(f)},80)},Uq9=function(f){return Object.entries(f).map(function(R){return R.join(":")}).join(";")},Gem=function(f){var R,u,O;
_.k(function(c){if(c.nextAddress==1)return _.A(c,ejh(),2);R=c.yieldResult;u=_.KU.instance;switch(R){case "granted":O=f.getLocationCommand;break;case "denied":O=f.openDeniedDialogAction;break;case "prompt":O=f.openCollectionDialogAction;break;default:O=f.openCollectionDialogAction}O&&u.resolveCommand(O);_.KG(c)})},ejh=function(){var f,R;
return _.k(function(u){if(u.nextAddress==1)return f="prompt",navigator.permissions?_.A(u,navigator.permissions.query({name:"geolocation"}),3):u.jumpTo(2);u.nextAddress!=2&&(R=u.yieldResult,f=R.state);return u.return(f)})},oZ5=function(){_.k(function(f){return _.A(f,_.Bz9(),0)})},xq9=function(){var f,R,u;
return _.k(function(O){if(O.nextAddress==1)return f=_.vh().resolve(_.JN),f?_.A(O,_.e6(f,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Ih(Error("Al")),O.return(void 0));if(R=O.yieldResult){if(R.errorMetadata)return _.Ih(Error("Bl`"+R.errorMetadata.status+"`"+R.error)),O.return(void 0);u=R.datasyncIds;_.j_Y=u.length;return O.return(u)}_.Ih(Error("Cl"));return O.return(void 0)})},SPz=function(){xq9().then(function(f){f&&(SCl(f),k2h(f),Mhw(f),EMz(f))})},$ql=function(f){_.JA.addLowPriorityJob(function(){var R,
u,O,c,h;
return _.k(function(l){switch(l.nextAddress){case 1:if(_.E("ytidb_clear_optimizations_killswitch")){l.jumpTo(2);break}R=_.Wf("clear");if(R.startsWith("V")&&R.endsWith("||")){var K=[R];SCl(K);k2h(K);Mhw(K);EMz(K);return l.return()}u=PZ5();O=tIm();return _.A(l,Knm(),3);case 3:return c=l.yieldResult,_.A(l,$We(),4);case 4:if(h=l.yieldResult,!(u||O||c||h))return l.return();case 2:f.isNetworkAvailable()?SPz():f.listenOnce("publicytnetworkstatus-online",SPz),_.KG(l)}})})},f2=function(f){f={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.S8(f)}}}};_.KU.instance&&_.KU.instance.resolveCommand(f)},gZN=function(f){if(f){var R=_.wR();
_.O1(R,3854,void 0,{layer:0,parentLayer:4});switch(f){case 1:var u=238708;break;case 2:u=238715;break;case 3:u=238710;break;case 6:u=238709}u&&(f=_.Fy(R,{veType:u}))&&_.hi(R,f)}},sLX=function(f){if(f){var R=_.wR();
_.O1(R,3854,void 0,{layer:0,parentLayer:4});switch(f){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&&(f=_.Fy(R,{veType:u}))&&_.hi(R,f)}},nZ5=function(f){switch(f.latencyType){case 0:_.DW("consent_primitive_flow");
_.JH("cpit",f.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.JH("cpist",f.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.JH("cprtif",f.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.JH("cprtli",f.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.JH("cprt",f.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.JH("cpdt",f.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.JH("cpjct",f.timestampEpochMillis,"consent_primitive_flow")}},
cNX=function(f,R){var u,O,c,h,l,K,q,F,w,m,W,C,d,p,J,M,P,g,x,fh;
return _.k(function(V){switch(V.nextAddress){case 1:_.cl(V,2);(O=(u=_.t(f,V82))==null?void 0:u.serializedConsentRequest)||(O=(c=_.t(f,YPz))==null?void 0:c.serializedConsentRequest);O&&(h=vZz(_.Fi(O)));if(h===void 0)return V.return();l=igm(h);l.latencyCallback=nZ5;R&&rhz(l,function(){R.then(function(ZD){ZD.pauseVideo();(new fMe).increment()})});
return((K=_.t(f,V82))==null?void 0:K.consentAction)==="CONSENT_ACTION_PREWARM"||((q=_.t(f,YPz))==null?void 0:q.consentAction)==="CONSENT_ACTION_PREWARM"?_.A(V,RGl(l),5):_.A(V,urS(l),6);case 6:F=V.yieldResult;w=_.QF(F,R2);if(w===1){if(((m=_.JM(F,uR,1,R2))==null?void 0:_.p6(m,1))===1||((W=_.JM(F,uR,1,R2))==null?void 0:_.p6(W,1))===2||((C=_.JM(F,uR,1,R2))==null?void 0:_.p6(C,1))===3)_.t(f,YPz)?f2(_.Fa("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
f2(_.Fa("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));gZN((d=_.JM(F,uR,1,R2))==null?void 0:_.p6(d,1),_.rq(F,Onm,3,_.fR()))}else w===2?(((p=Ot(F))==null?void 0:_.p6(p,1))===5?_.t(f,YPz)?f2(_.Fa("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):f2(_.Fa("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((J=Ot(F))==null?void 0:_.p6(J,1))===1||((M=Ot(F))==null?void 0:_.p6(M,1))===4?f2(_.Fa("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((P=Ot(F))==null?void 0:_.p6(P,1))===7&&((g=h)==null?void 0:(x=_.Ry(g,c$,4))==null?void 0:_.p6(x,4))!==1&&f2(_.Fa("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),sLX((fh=Ot(F))==null?void 0:_.p6(fh,1))):f2(_.Fa("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));V.jumpTo(5);break;case 5:_.Bf(V,0);break;case 2:_.ku(V),f2(_.Fa("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.KG(V)}})},hGh=function(){if(!XL2.has("Worker")){XL2.set("Worker",
!0);
var f={api:"BROWSER_API_WEB_WORKER"};f.available="Worker"in window?!0:!1;_.Jr("apiTest",f)}},Zna=function(f){return typeof f==="undefined"?"-1":String(Math.ceil(f/1048576))},qyS=function(f,R){lMl(new k$X(_.t(R,K65).addToken,_.t(R,K65).commonToken)).then(function(){_.ul(f,"yt-invoke-instrument-manager-action-completed")},function(u){_.ul(f,"yt-invoke-instrument-manager-action-error",u)})},ANw=function(f){return _.MH(f)},aMl=function(f){var R=1;
f=f.split(":");for(var u=[];R>0&&f.length;)u.push(f.shift()),R--;f.length&&u.push(f.join(":"));return u},F65=function(f,R){R=f.aspectRatio()<=R.aspectRatio()?R.width/f.width:R.height/f.height;
f.scale(R)},wLl=function(f,R){R=f.aspectRatio()>R.aspectRatio()?R.width/f.width:R.height/f.height;
return f.scale(R)},mLm=function(f){var R=new _.cb;
return _.zR(R,11,f)},Q1h=function(f){var R={};
f=f.getAllResponseHeaders().split("\r\n");for(var u=0;u<f.length;u++)if(!_.Kh(f[u])){var O=aMl(f[u]),c=O[0];O=O[1];if(typeof O==="string"){O=O.trim();var h=R[c]||[];R[c]=h;h.push(O)}}return _.dq.map(R,function(l){return l.join(", ")})},qT=function(f,R){return f.JSC$7804_xhr_?f.JSC$7804_xhr_.getResponseHeader(R):null},X2=function(f,R,u){Array.isArray(u)||(u=[String(u)]);
_.dgE(f.JSC$8036_queryData_,R,u);return f},dqm=function(){var f=_.bj.instance;
_.k(function(R){return f.deferredInstallPrompt?_.A(R,f.deferredInstallPrompt.prompt(),0):R.jumpTo(0)})},W6m=function(f,R,u){if(_.Rk(f))_.Gf(f,R,u);
else for(f=_.JsA(f);;){var O=f.next();if(O.done)break;R.call(u,O.value,void 0,f)}},ESS={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}"]},w2m,mM9,Q4N,WtN,Est,twz,Cuh,yl9,dMm,EZS,QL9,FBl,N_5,Lth,bfK,p2S,j4t,pWz,LBl,DMN,Jlw,zp9,C$h,Dqw,T_w,zje,HfK,IH9,IOh,Mw5,Puw,UMh,ept,GJa,B_w,VU,os9,xMl,
Jjm,pcN,SUw,qo,AR,a2,F2,$MX,gs2,s4m,nsX,Vwz,YUS,vsS,ifw,rlm,fzw;ESS={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 tke=function(f,R){var u=[];W6m(R,function(O){try{var c=_.cc.prototype.getWrapper.call(this,O,!0)}catch(h){if(h=="Storage: Invalid value was encountered")return;throw h;}c===void 0?u.push(O):_.Dvf(c)&&u.push(O)},f);
return u},Cjm=function(f,R){tke(f,R).forEach(function(u){_.cc.prototype.remove.call(this,u)},f)},yNl=function(f){var R=_.ev;
R._minimumZ=Math.max(R._minimumZ,f)},dL9=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],NYm=function(f,R){_.YD(f.us);f.us=R},L6z=function(f,R,u,O){f.setState(5);
var c=!!f.rS3&&dL9.includes(_.gv(f.rS3)||"");try{var h=new _.jD({program:R,globalName:u,yd:{disable:!_.E("att_web_record_metrics")||!_.E("att_skip_metrics_for_cookieless_domains_ks")&&c,fB:"aGIf"}});h.pXF.then(function(){f.setState(6);O&&O(R)});
NYm(f,h)}catch(l){f.setState(7),l instanceof Error&&_.Ih(l)}},bnm=function(f,R,u,O,c,h){var l=l===void 0?"trayride":l;
u?(f.setState(2),_.Um(u,function(){if(window[l])L6z(f,O,l,c);else{f.setState(3);var K=_.$Zl(u),q=document.getElementById(K);q&&(_.vSh(K),q.parentNode.removeChild(q));_.Ih(new _.ts("BL:ULB",u))}},h)):R?(h=_.mD("SCRIPT"),R instanceof _.Hz?_.Pz(h,R):h.textContent=R,h.nonce=_.Td(document),document.head.appendChild(h),document.head.removeChild(h),window[l]?L6z(f,O,l,c):(f.setState(4),_.Ih(new _.ts("BL:ULBJ")))):_.Ih(new _.ts("BL:ULV"))},pLS=function(){this.state=1;
this.us=null;this.rS3=void 0};
_.X=pLS.prototype;_.X.initialize=function(f,R,u,O){this.rS3=O;if(f.program){var c;O=(c=f.interpreterUrl)!=null?c:null;if(f.interpreterSafeScript)c=_.EZ2(f.interpreterSafeScript);else{var h;c=(h=f.interpreterScript)!=null?h:null}f.interpreterSafeUrl&&(O=_.z2(f.interpreterSafeUrl).toString());bnm(this,c,O,f.program,R,u)}else _.Ih(Error("jf"))};
_.X.isInitialized=function(){return!!this.us};
_.X.getState=function(){return this.state};
_.X.isLoading=function(){return this.state===2};
_.X.invoke=function(f){f=f===void 0?{}:f;var R;this.us?R=_.AmC(this.us,{d5:f}):R=null;return R};
_.X.dispose=function(){NYm(this,null);this.setState(8)};
_.X.setState=function(f){this.state=f};
var j19=function(f,R){return f.us.snapshot(R)},DLX=function(f,R){var u=_.RV("botguard_async_snapshot_timeout_ms",3E3);
R=R===void 0?{}:R;u=u===void 0?3E3:u;return f.us?new Promise(function(O,c){var h=!1,l=_.JA.addJob(function(){h=!0;c(Error("kf"))},1,u);
f.us?j19(f,{d5:R}).then(function(K){_.JA.cancelJob(l);h||O(K)}).catch(function(K){_.JA.cancelJob(l);
h||c(K)}):(_.JA.cancelJob(l),O(null))}):Promise.resolve(null)},JNK=["att/log"],zGt;
zGt={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var TY9={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},HnN=function(f,R){return _.wz(f,{mode:"readwrite",enableRetries:!0},function(u){return _.uUX(u,R,"settingEntity")})},IMm=function(f,R,u){return _.wz(f,{mode:"readonly",
enableRetries:!0},function(O){return _.Yck(O,R,u)})},Mkz=function(f){if(!f.storage)return!1;
a:{if(f.storage){try{var R=f.storage.get("TLPQtimestamp")}catch(u){}f=Number(R);if(!isNaN(f))break a}f=void 0}return f?Date.now()-f<864E5:!1},Pjl=function(f){if(f.storage){try{var R=f.storage.get("TLPQindex")}catch(u){}f=Number(R);
if(!isNaN(f))return f}},ULm=function(f,R){f.queueProxy&&R.forEach(function(u){if(u.videoId&&u.trackingParams&&f.queueProxy instanceof _.pi){var O=_.z4();
f.queueProxy.attributionData.set(u.videoId,{enqueueingVe:_.t4(u.trackingParams).getAsJson(),enqueueingCsn:O?O:void 0,clientEnqueueingTimeMs:Math.floor((0,_.iZ)()).toString()})}})},eGK=function(f){var R=_.j3H(f);
R!=f.currentSnapState_&&(f.currentSnapState_=R,f.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},hR=function(f){this.JSC$11046_networkManager_=f;
this.partCallbacks_=[]};
hR.prototype.getCacheKeyForEndpoint=function(f){return _.hV7(f,!1)};
hR.prototype.onPartsCallback_=function(f){this.partCallbacks_.forEach(function(R){f&&R(f)})};
var ZU=function(f,R,u){hR.call(this,f);this.player_=R;this.autoplayData_=u};
_.y(ZU,hR);ZU.prototype.getCacheKeyForEndpoint=function(f){return _.hV7(f,!!this.autoplayData_)};
ZU.prototype.getTempData=function(f,R){R=R.timeBeforeNextVideo;f={itct:f.clickTrackingParams,lact:_.OW(),pbis:R,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(f.autonav=1);return f};
ZU.prototype.getXhrParams=function(f){return Object.assign({pbj:"prefetch"},f)};
ZU.prototype.getParams=function(f){f={frags:f.fragmentsRequested.join(",")};_.E("kevlar_droppable_prefetchable_requests")&&(f.prefetch=1);return f};
var G$S=function(f){f.playerEvents_.forEach(function(R){f.player.removeEventListener(R.eventName,R.callback)});
f.playerEvents_.length=0},lR=function(f,R,u){this.player=f;
this.JSC$11056_taskManager=R;this.prefetchDelay=u;this.completionResolver_=null;this.playerEvents_=[]};
lR.prototype.start=function(){var f=this;this.completionResolver_=_.BM();_.to(this.completionResolver_.promise,function(){G$S(f);f.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var BYa=function(f,R,u){f.player.addEventListener(R,u);f.playerEvents_.push({eventName:R,callback:u})},oS5={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},xLm={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},SyN=function(f,R,u){lR.call(this,f,R,u);this.cueId_="playbackTrigger-"+Math.random()};
_.y(SyN,lR);
SyN.prototype.prepareTrigger=function(f){var R=this,u=this.player.getDuration(),O=this.player.getVideoData(),c=O.isLive&&O.hasProgressBarBoundaries;if(c&&O.progressBarEndPositionUtcTimeMillis){var h=O.progressBarEndPositionUtcTimeMillis/1E3;isNaN(h)||(u=h)}var l=0;this.prefetchDelay>=0?c?O.progressBarStartPositionUtcTimeMillis&&(O=O.progressBarStartPositionUtcTimeMillis/1E3,isNaN(O)||(l=O+this.prefetchDelay)):l=this.prefetchDelay:l=u+this.prefetchDelay;c?this.player.addUtcCueRange(this.cueId_,l,u):
this.player.addCueRange(this.cueId_,l,u);_.to(f.promise,function(){R.player.removeCueRange(R.cueId_)});
BYa(this,"onCueRangeEnter",function(K){K==R.cueId_&&f.resolve(u-l)})};
var $Lw=function(f,R){f.fragmentConfiguration_[R].requiredKeys.every(function(u){return!!f.prefetchedData_[u]})&&(f.validatedFragments_.push(R),R=f.missingFragments_.indexOf(R),R!==-1&&f.missingFragments_.splice(R,1))},gSh=function(f){f.prefetchedFragments_.forEach(function(R){$Lw(f,R)})},s1N=function(f,R,u){this.pageFragments_=f;
this.prefetchedFragments_=R;this.fragmentConfiguration_=xLm;this.prefetchedData_=u;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;gSh(this)},nSN=function(){},Vkh=function(f){this.JSC$11070_playlistManager_=f};
_.y(Vkh,nSN);Vkh.prototype.getPrefetchEndpoint=function(){return this.JSC$11070_playlistManager_.getAutoplayEndpoint()};
var Yya=function(f){this.autonavEndpoints_=f};
_.y(Yya,nSN);Yya.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var vSm=function(f,R,u,O,c){this.autonavEndpoints=f;this.foregroundTrigger=R;this.backgroundTrigger=u;this.pageType=O;this.isInPlaylist=c},inh=function(f,R){if(f.webPrefetchData&&f.webPrefetchData.navigationEndpoints&&f.webPrefetchData.navigationEndpoints.length){f=f.webPrefetchData.navigationEndpoints;
var u=_.t(f[0],_.$7);if(u.watchEndpointSupportedPrefetchConfig&&u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var O=u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;u=O.playbackRelativeSecondsPrefetchCondition;u=typeof u==="number"&&Math.abs(u)<R.videoDuration?u:void 0;O=O.countdownUiRelativeSecondsPrefetchCondition;O=typeof O!=="number"||_.E("prefetch_job_config_cleanup_ks")&&R.inPlaylist?void 0:O;if(typeof O==="number")return new vSm(f,R.makeUpNextTrigger(O),R.makePlaybackTrigger(O),
"watch",R.inPlaylist);if(typeof u==="number")return new vSm(f,R.makePlaybackTrigger(u),null,"watch",R.inPlaylist)}}},rNK=function(f){return f.prefetchJobConfig_.backgroundTrigger?_.MW(_.SVD)()==0?f.prefetchJobConfig_.backgroundTrigger:f.prefetchJobConfig_.foregroundTrigger:f.prefetchJobConfig_.foregroundTrigger},fOm=function(f){_.w4(document,"visibilitychange",f.onVisibilityChange_,!1,f)},kf=function(f){hR.call(this,f)};
_.y(kf,hR);kf.prototype.getCacheKeyForEndpoint=function(f){return hR.prototype.getCacheKeyForEndpoint.call(this,f)};
kf.prototype.getTempData=function(){return{}};
kf.prototype.getXhrParams=function(f){return f};
kf.prototype.getParams=function(){return{}};
var Rpl=function(f,R,u){var O=f.prefetchDelay*1E3;if(Math.abs(O)>R)u.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var c=O,h=R-O;O<0&&(c=R+O,h=Math.abs(O));var l=f.JSC$11056_taskManager.addJob(function(){u.resolve(h/1E3)},10,c);
u.promise.thenCatch(function(){f.JSC$11056_taskManager.cancelJob(l)})}},u4X=function(f,R,u){lR.call(this,f,R,u)};
_.y(u4X,lR);u4X.prototype.prepareTrigger=function(f){var R=this;BYa(this,"onAutonavCoundownStarted",function(u){Rpl(R,u,f)})};
var Ofm=function(f){f.pendingPrefetchJob_&&(f.pendingPrefetchJob_.cancel(),f.pendingPrefetchJob_=null)},clS=function(f,R,u){if(!f.triggeredTargets.has(R)){var O=_.yqk(f,R);
O.action=u;_.tbG(f,R,O)}},X2N=function(f){_.ZFC();
_.uSh("cpt")&&_.Ih(Error("jh"));_.Oe.requestAnimationFrame(function(){_.Oe.setTimeout(function(){_.JH("cpt");var R=_.H_("vpl"),u=_.H_("cpt");R&&u&&_.JH("ol",Math.max(R,u))})});
try{_.JH("fr_s"),f()}catch(R){_.TL(R)}_.Oe.requestAnimationFrame(function(){_.JH("bcp")})},hp2=function(f,R){f.serviceEndpointHandlers.push(R)},Zfh=function(f,R){R=f.pendingPages_.indexOf(R);
R>-1&&f.pendingPages_.splice(R,1)},lOz=function(f,R){var u=_.dVl.indexOf(R);
u>-1&&_.dVl.splice(u,1);f.targetPage_==R?(f.abort(),_.LUH(f)):Zfh(f,R)},kJa=function(f,R,u,O){R={challenge:R};
u&&(R.webResponse=u);return _.Dn(f.innertubeTransportService,R,_.Ve(JNK),O)},KtK=function(f,R,u){if(!R.challenge)throw Error("li");
if(R.botguardData&&R.botguardData.program){var O=new pLS;O.initialize(R.botguardData,function(){DLX(O,{atr_challenge:R.challenge}).then(function(c){if(!c)throw Error("mi");return kJa(f,R.challenge,c,u)}).catch(function(c){_.Ih(c);
return kJa(f,R.challenge,void 0,u)})},void 0)}else kJa(f,R.challenge,void 0,u)},qUK=function(f,R,u){var O={};
R.ids&&(O.ids=[].concat(_.yq(R.ids)));R.engagementType&&(O.engagementType=R.engagementType);return _.Dn(f.innertubeTransportService,O,_.Ve(_.KuA),u).then(function(c){if(!c)throw new _.ts("GetAttestationChallenge returned falsy");KtK(f,c,u)}).thenCatch(function(c){_.TL(c)})},Alt=function(f,R,u){return new _.ah(function(O,c){var h;
return _.k(function(l){if(l.nextAddress==1){var K=R.engagementType,q=R.ids,F={};q=_.Z(q!=null?q:[]);for(var w=q.next();!w.done;w=q.next())w=w.value,w.encryptedVideoId?F.encryptedVideoId=w.encryptedVideoId:w.externalChannelId?F.externalChannelId=w.externalChannelId:w.commentId?F.commentId=w.commentId:w.externalOwnerId?F.externalOwnerId=w.externalOwnerId:w.artistId?F.artistId=w.artistId:w.playlistId?F.playlistId=w.playlistId:w.externalPostId?F.externalPostId=w.externalPostId:w.shareId&&(F.shareId=w.shareId);
return _.A(l,Nve(K,F),2)}h=l.yieldResult;if(!h.challenge)return _.Ih(Error("ni")),qUK(f,R,u).then(O,c),l.return();K=h;F={challenge:K.challenge};F.webResponse=K.webResponse;F.engagementType=R.engagementType;F.ids=R.ids;_.Dn(f.innertubeTransportService,F,_.Ve(JNK),u).then(O,c);_.KG(l)})})},HaK=function(f,R){var u,O,c,h;
_.k(function(l){if(l.nextAddress==1){u=_.t(R,_.uAC);if(!(u&&u.listId&&f.response&&f.response.playingVideoId)||f.listId!==u.listId)return l.return();f.index===void 0&&(f.index=0);return _.A(l,_.JEI(f.JSC$10801_playlistNetworkManager,u.listId,f.index,f.response.playingVideoId),2)}O=l.yieldResult;if(!O)return l.return();c=O.playlistId;h=O.playlistPanelRenderer;f.setPlaylistData(c,h,O.autoplayRenderer);_.KG(l)})},aOe=function(f,R,u){var O=f.getParams(u),c=_.DOX(R,O),h=f.getTempData(R,u);
h.endpoint=JSON.stringify(R);_.E("enable_unknown_lact_fix_on_html5")&&(_.vh().resolve(_.LL),h.lact=_.OW());var l={headers:{"X-YouTube-STS":_.Tf("STS"),"x-youtube-csoc":1}};_.VP(c,h);return new _.ah(function(K,q){var F=f.getXhrParams(O),w;_.E("kevlar_cache_on_ttl_player")&&(w=_.Fs.instance);w&&_.rUf(w,R)?_.ZYk(w,R,h,window.location.href).then(function(m){m?K(m):q()},q):_.CpF(f.JSC$11046_networkManager_,R,F,f.onPartsCallback_.bind(f),l).then(function(m){m?K(m):q()},q)})},Ft5=function(f,R){f.triggerPromise_=
R.start();
f.triggerPromise_.then(function(u){var O=f.prefetchEndpointProvider_.getPrefetchEndpoint();if(O){var c=oS5[f.prefetchJobConfig_.pageType].prefetchedFragments;f.prefetchRequestPromise_=aOe(f.JSC$11082_networkPrefetchRequest_,O,{fragmentsRequested:c,timeBeforeNextVideo:u});f.prefetchResponseCacheKey_=f.JSC$11082_networkPrefetchRequest_.getCacheKeyForEndpoint(O);fOm(f);f.prefetchRequestPromise_.then(function(h){f.storePrefetchedDataCallback_(f.prefetchResponseCacheKey_,h);if(_.E("web_prefetch_preload_video")&&
c.length===1&&c[0]==="pl"&&h&&!h.playerAds&&!h.adPlacements){var l=_.t(O,_.Ey),K=l!=null,q={raw_player_response:h,watch_endpoint:l};(h=_.vh().resolve(K?_.aZf:_.fr))&&O&&h.then(function(F){K&&_.E("web_queue_preload_video")?(q.prefer_gapless=!0,F.queueNextVideo(q)):F.preloadVideoByPlayerVars(q)})}})}})},K2=function(f,R,u,O){this.prefetchEndpointProvider_=f;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=R;this.prefetchJobConfig_=u;this.JSC$11082_networkPrefetchRequest_=O;this.prefetchResponseCacheKey_=null};
K2.prototype.enqueue=function(){this.triggerPromise_||(Ft5(this,rNK(this)),_.y0(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
K2.prototype.resolve=function(){this.cancel()};
K2.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.");fOm(this)};
K2.prototype.onVisibilityChange_=function(){var f=this;_.MW(_.SVD)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){f.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Ft5(this,rNK(this))};
w2m=function(f,R,u,O,c){R&&(R==null?0:R.videoId)&&u&&u.entries&&_.E("kevlar_enable_shorts_prefetch_in_sequence")&&(Ofm(f),R=u.entries.map(function(h){var l;return(l=_.t(h.command,_.Ey))==null?void 0:l.videoId}).indexOf(R.videoId),u=u.entries[R+1],u!=null&&u.command&&!_.t(u==null?void 0:u.command,_.Dl)&&(O=new vSm([u.command],new SyN(O,_.JA,1),null,"shorts",!1),f.pendingPrefetchJob_=new K2(new Yya(O.autonavEndpoints),function(){return!1},O,new kf(c)),f.pendingPrefetchJob_.enqueue()))};
mM9=function(f,R,u,O,c,h){var l=_.sd.getInstance();if(!_.E("block_all_player_prefetch_requests")){Ofm(f);var K=!!u.getPlaylistId(),q=u.getVideoData().isLive&&u.getVideoData().hasProgressBarBoundaries;if((l.getState()==2||K||q)&&(!u.getVideoData().isLive||q)){l={inPlaylist:K,videoDuration:u.getDuration(),makeUpNextTrigger:function(w){return new u4X(u,_.JA,w)},
makePlaybackTrigger:function(w){return new SyN(u,_.JA,w)}};
var F=inh(R,l);F&&(f.pendingPrefetchJob_=new K2(F.isInPlaylist?new Vkh(c):new Yya(F.autonavEndpoints),function(w,m){m=new s1N(oS5[F.pageType].pageFragments,oS5[F.pageType].prefetchedFragments,m);return _.qif(m)?(f.prefetchCache_.set(w,m),!0):!1},F,new ZU(O,u,h,c)),f.pendingPrefetchJob_.enqueue())}}};
Q4N=function(){var f=_.Mk();f.signals.parkOrScheduleJob(function(){var R=f.storage;if(R.storage)if(Mkz(R)){var u=R.getPlaylistId();R=Pjl(R);u=!!u&&R!==void 0}else R.clear(),u=!1;else u=!1;if(u){u=f.pageManager.isOnWatch();a:{var O=f.storage;if(O.storage&&Mkz(O)&&(R=O.getPlaylistId(),O=Pjl(O),R&&O!==void 0)){u={recoverPlaylistCommand:{listId:R,index:O,openMiniplayer:!u,openListPanel:u,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}u=void 0}u&&_.D2(f.JSC$10801_actionRouter,[u],null)}},0,"ma")};
WtN=function(f,R,u,O,c,h){var l=_.dx(7111);_.c1(f.JSC$16095_screenManager,l,h?_.t4(h):void 0);_.hi(f.JSC$16095_screenManager,l,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:O,offlineId:R,offlineabilityFormatType:u,isDefaultFormatType:c==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:c}})};
Est=function(f,R,u,O,c){var h,l,K,q,F;return _.k(function(w){if(w.nextAddress==1)return _.A(w,f.JSC$16095_playerApiPromise,2);h=w.yieldResult;WtN(f,R,u,"OFFLINE_OBJECT_TYPE_PLAYLIST",O,c);if(K=_.OIA[f.entityTypeMap.listEntityType])F={},l=(F[K]={maximumDownloadQuality:(q=u)!=null?q:void 0},F);return _.A(w,h.queueOfflineAction(R,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l),0)})};
twz=function(f,R){var u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return _.A(l,f.JSC$16095_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3){u=l.yieldResult;if(!u)return _.Ih(new _.ts("PES is undefined")),l.return();O=_.l$(R,"downloadStatusEntity");return _.A(l,IMm(u,O,"downloadStatusEntity"),3)}c=l.yieldResult;return l.return((h=c)==null?void 0:h.downloadState)})};
Cuh=function(f,R,u,O,c){var h,l,K,q,F,w;return _.k(function(m){switch(m.nextAddress){case 1:return _.A(m,f.JSC$16095_playerApiPromise,2);case 2:h=m.yieldResult;WtN(f,R,u,"OFFLINE_OBJECT_TYPE_VIDEO",O,c);if(K=_.OIA[f.entityTypeMap.singleEntityType])F={},l=(F[K]={maximumDownloadQuality:(q=u)!=null?q:void 0},F);return _.A(m,twz(f,R),3);case 3:w=m.yieldResult;if(w!=="DOWNLOAD_STATE_USER_DELETED"){m.jumpTo(4);break}return _.A(m,f.deleteVideo(R),4);case 4:return _.A(m,h.queueOfflineAction(R,f.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l),0)}})};
yl9=function(f,R,u,O,c){return _.k(function(h){return h.nextAddress==1?_.A(h,f.deleteVideo(R,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.A(h,Cuh(f,R,u,O,c),0)})};
dMm=function(f,R,u){var O,c;return _.k(function(h){if(h.nextAddress==1)return _.A(h,f.JSC$16095_playerApiPromise,2);O=h.yieldResult;c=_.l$(R,"mainVideoDownloadStateEntity");return _.A(h,O.updateDownloadState(c,u),0)})};
EZS=function(f){var R=_.vh().resolve(_.YW);return _.k(function(u){if(u.nextAddress==1)return R.previousDownloadStateForVideo[f]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&R.previousDownloadStateForVideo[f]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?u.jumpTo(2):_.A(u,R.resumeVideoDownload(f),2);if(u.nextAddress!=4)return _.A(u,dMm(R,f,R.previousDownloadStateForVideo[f]),4);delete R.previousDownloadStateForVideo[f];_.KG(u)})};
QL9=function(f,R){var u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$16095_playerApiPromise,2);u=O.yieldResult;return _.A(O,u.queueOfflineAction(R,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
FBl=function(){var f=_.vh().resolve(_.YW),R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$16095_playerApiPromise,2);if(O.nextAddress!=3)return R=O.yieldResult,u={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.A(O,R.queueOfflineAction("!*$_ALL_ENTITIES_!*$",f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",u),3);var c=f.JSC$16095_commandHandler,h=c.resolveCommand,l=_.Fa("DELETING_ALL",void 0,"Downloads are being deleted");
h.call(c,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.fg(l)}},popupType:"TOAST"}});_.KG(O)})};
N_5=function(f){var R,u;return _.k(function(O){if(O.nextAddress==1)return _.A(O,f.JSC$16095_prefStorage,2);R=O.yieldResult;return O.return((u=R)==null?void 0:u.get("sdois"))})};
Lth=function(f){var R,u,O,c,h,l;return _.k(function(K){if(K.nextAddress==1)return _.A(K,f.JSC$16095_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){R=K.yieldResult;if(!R)return _.Ih(new _.ts("PES is undefined")),K.return();u=_.l$("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.A(K,IMm(R,u,"settingEntity"),3)}O=K.yieldResult;return K.return((l=(c=O)==null?void 0:(h=c.settingOptionValue)==null?void 0:h.boolValue)!=null?l:!1)})};
bfK=function(f,R){var u,O,c,h;return _.k(function(l){switch(l.nextAddress){case 1:return((u=R)==null?void 0:u.formatType)===void 0?l.return():_.A(l,f.JSC$16095_prefStorage,2);case 2:O=l.yieldResult;if(O===void 0)return l.return();if(((c=R)==null?void 0:c.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.A(l,O.set("lmqf",R.formatType),8);if(((h=R)==null?void 0:h.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){l.jumpTo(0);break}return _.A(l,O.set("lmqf",R.formatType),
6);case 6:return _.A(l,O.set("lmqflst",Math.floor((0,_.iZ)())),0);case 8:return _.A(l,O.remove("lmqflst"),0)}})};
p2S=function(f){var R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.A(O,f.JSC$16095_prefStorage,2);case 2:R=O.yieldResult;if(!R){O.jumpTo(3);break}return _.A(O,R.get("lmqflst"),4);case 4:if(u=O.yieldResult,u!==void 0)return O.return(u);case 3:return O.return(0)}})};
j4t=function(f){var R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.A(O,f.JSC$16095_prefStorage,2);case 2:R=O.yieldResult;if(R===void 0){O.jumpTo(3);break}return _.A(O,R.get("lmqf"),4);case 4:if(u=O.yieldResult,u!==void 0)return O.return(u);case 3:return O.return("SD")}})};
pWz=function(f,R,u){var O,c,h,l,K,q,F,w;_.k(function(m){switch(m.nextAddress){case 1:return _.A(m,bfK(f,(O=R)==null?void 0:O.actionParams),2);case 2:c=R.playlistId;if(!c)return m.return();if(R.action==="ACTION_ADD")return((l=R.actionParams)==null?0:l.formatType)?_.A(m,Est(f,c,R.actionParams.formatType,(w=R.actionParams)==null?void 0:w.settingsAction,u),0):_.A(m,f.offlineWebClientEligibility,14);if(R.action==="ACTION_REMOVE_WITH_PROMPT"){var W=f.JSC$16095_commandHandler,C=W.resolveCommand,d=_.Tf("INNERTUBE_CLIENT_NAME");
var p=d==="WEB_REMIX"?_.Fa("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Fa("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var J=d==="WEB_REMIX"?[_.Fa("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];d=d==="WEB_REMIX"?_.Fa("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Fa("DELETE",void 0,"Delete");var M=_.Fa("CANCEL",void 0,"Cancel");p=Lwt(p,J,d,M,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:c});C.call(W,{openPopupAction:p});
return m.return()}if(R.action==="ACTION_REMOVE")return _.A(m,QL9(f,c),0);if(R.action!=="ACTION_SYNC"){m.jumpTo(0);break}return _.A(m,f.JSC$16095_playerApiPromise,9);case 9:return h=m.yieldResult,_.A(m,h.queueOfflineAction(c,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return K=m.yieldResult,_.A(m,j4t(f),15);case 15:return q=m.yieldResult,_.A(m,p2S(f),16);case 16:F=m.yieldResult,R.onAddCommand&&f.JSC$16095_commandHandler.resolveCommand(R.onAddCommand,{form:{preferredFormatType:q,
offlineWebClientEligibility:K,lastOfflineQualitySettingsSavedMs:F.toString()}}),m.jumpTo(0)}})};
LBl=function(f,R,u){var O,c,h,l,K,q,F,w,m,W,C,d,p,J;_.k(function(M){switch(M.nextAddress){case 1:return _.A(M,bfK(f,(O=R)==null?void 0:O.actionParams),2);case 2:c=R.videoId;if(!c)return M.return();if(R.action==="ACTION_REMOVE_WITH_PROMPT"){var P=f.JSC$16095_commandHandler,g=P.resolveCommand,x=_.Tf("INNERTUBE_CLIENT_NAME");var fh=x==="WEB_REMIX"?_.Fa("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Fa("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var V=x==="WEB_REMIX"?[_.Fa("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];x=x==="WEB_REMIX"?_.Fa("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Fa("DELETE",void 0,"Delete");var ZD=_.Fa("CANCEL",void 0,"Cancel");fh=Lwt(fh,V,x,ZD,{signal:"DELETE_DOWNLOAD",targetId:c});g.call(P,{openPopupAction:fh});return M.return()}if(R.action==="ACTION_ADD")return((W=R.actionParams)==null?0:W.formatType)?_.A(M,Cuh(f,c,R.actionParams.formatType,(J=R.actionParams)==null?void 0:J.settingsAction,u),0):_.A(M,f.offlineWebClientEligibility,
23);if(R.action==="ACTION_RETRY")return _.A(M,j4t(f),19);if(R.action==="ACTION_PAUSE")return _.A(M,f.pauseVideoDownload(c),0);if(R.action==="ACTION_RESUME")return _.A(M,f.resumeVideoDownload(c),0);if(R.action!=="ACTION_REMOVE"){M.jumpTo(0);break}return _.A(M,twz(f,c),13);case 13:return h=M.yieldResult,f.previousDownloadStateForVideo[c]=(l=h)!=null?l:"DOWNLOAD_STATE_UNKNOWN",_.A(M,dMm(f,c,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(f.previousDownloadStateForVideo[c]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
f.previousDownloadStateForVideo[c]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){M.jumpTo(15);break}return _.A(M,f.pauseVideoDownload(c),15);case 15:P=_.Fa("DELETED_VIDEO",void 0,"Video deleted from downloads.");g=_.Fa("UNDO_ACTION",void 0,"Undo");fh=_.Fa("CLOSE",void 0,"Close");K={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.fg(P),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.fg(g),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:c}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:P+" "+g}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:c}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:fh}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};f.JSC$16095_commandHandler.resolveCommand(K);
M.jumpTo(0);break;case 19:q=M.yieldResult;q==="UNKNOWN_FORMAT_TYPE"&&(q="SD");F="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((w=R.actionParams)==null?0:w.formatType)q=R.actionParams.formatType,F=(m=R.actionParams)==null?void 0:m.settingsAction;return _.A(M,yl9(f,c,q,F,u),20);case 20:return M.return();case 23:return C=M.yieldResult,_.A(M,j4t(f),24);case 24:return d=M.yieldResult,_.A(M,p2S(f),25);case 25:p=M.yieldResult,R.onAddCommand&&f.JSC$16095_commandHandler.resolveCommand(R.onAddCommand,
{form:{preferredFormatType:d,offlineWebClientEligibility:C,lastOfflineQualitySettingsSavedMs:p.toString()}}),M.jumpTo(0)}})};
DMN=function(f,R){var u,O,c,h,l,K,q;return _.k(function(F){if(F.nextAddress==1)return _.A(F,f.JSC$16095_persistentStorePromiseAccessor(),2);u=F.yieldResult;if(!u)return _.Ih(new _.ts("PES is undefined")),F.return();if((O=R)==null||!O.settingItemId)return F.return();c=R;h=c.settingItemId;l=c.boolValue;K=_.l$(h,"settingEntity");q={key:K,settingOptionValue:{boolValue:l}};return _.A(F,HnN(u,q),0)})};
Jlw=function(f,R){var u,O,c,h,l,K,q;return _.k(function(F){switch(F.nextAddress){case 1:return _.A(F,f.JSC$16095_prefStorage,2);case 2:return u=F.yieldResult,O=_.Qu(),_.A(F,f.JSC$16095_persistentStorePromiseAccessor(),3);case 3:return c=F.yieldResult,u?c?_.A(F,u.get("sdois"),4):(_.Ih(new _.ts("PES is undefined")),F.return()):(_.Ih(new _.ts("prefStorage is undefined")),F.return());case 4:h=F.yieldResult;K=(l=R)==null?void 0:l.boolValue;K===void 0||_.E("kevlar_set_sd_enabled_flag_killswitch")||_.W_(0,
197,!0);h===void 0&&K===void 0&&(K=!1);if(K===void 0){F.jumpTo(0);break}return _.A(F,u.set("sdois",K),6);case 6:return _.E("kevlar_set_sd_enabled_flag_killswitch")||(_.W_(0,196,K),O.save()),q={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:K},_.A(F,DMN(f,q),0)}})};
zp9=function(f,R,u){var O,c,h,l,K;return _.k(function(q){switch(q.nextAddress){case 1:return _.A(q,N_5(f),2);case 2:return O=q.yieldResult,_.A(q,Jlw(f,u),3);case 3:return _.A(q,N_5(f),4);case 4:return c=q.yieldResult,h=c!==O,_.A(q,Lth(f),5);case 5:l=q.yieldResult&&!_.E("kevlar_modern_downloads_page");if((K=!c&&!l)||h)return _.A(q,R.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);q.jumpTo(0)}})};
C$h=function(){var f=_.vh().resolve(_.YW),R;_.k(function(u){switch(u.nextAddress){case 1:return _.A(u,f.JSC$16095_playerApiPromise,2);case 2:R=u.yieldResult;if(!_.E("kevlar_force_refresh_smart_downloads")){u.jumpTo(3);break}return _.A(u,R.refreshAllStaleEntities(0),4);case 4:return u.return();case 3:return _.A(u,R.refreshAllStaleEntities(),5);case 5:return _.A(u,zp9(f,R),0)}})};
Dqw=function(f,R){var u,O;_.k(function(c){switch(c.nextAddress){case 1:return _.A(c,f.JSC$16095_playerApiPromise,2);case 2:u=c.yieldResult;switch((O=R)==null?void 0:O.settingItemId){case "SMART_DOWNLOADS_ENABLED":return c.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return c.jumpTo(4)}c.jumpTo(0);break;case 3:return _.A(c,zp9(f,u,R),6);case 6:c.jumpTo(0);break;case 4:return _.A(c,DMN(f,R),7);case 7:c.jumpTo(0)}})};
T_w=function(f,R){var u,O,c;return _.k(function(h){if(h.nextAddress==1)return _.A(h,f.JSC$16095_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){u=h.yieldResult;if(!u)return _.Ih(new _.ts("PES is undefined")),h.return(!1);if(!R)return h.return(!1);O=_.l$(R,"mainVideoEntity");return _.A(h,IMm(u,O,"mainVideoEntity"),3)}c=h.yieldResult;return h.return(c!==void 0)})};
zje=function(f){var R=_.vh().resolve(_.YW),u,O,c,h,l,K,q,F,w,m,W;_.k(function(C){switch(C.nextAddress){case 1:return _.A(C,R.JSC$16095_playerApiPromise,2);case 2:u=C.yieldResult;c=(O=f)==null?void 0:O.actions;if(!c)return C.return();h=_.Z(c);l=h.next();case 3:if(l.done){C.jumpTo(0);break}K=l.value;F=q=void 0;if(!(((q=K)==null?0:q.entityKey)&&((F=K)==null?0:F.actionType))){C.jumpTo(4);break}w=_.XX(K.entityKey);m=w.entityId;W=w.entityType;return _.A(C,u.queueOfflineAction(m,W,K.actionType),4);case 4:l=
h.next(),C.jumpTo(3)}})};
HfK=function(f,R){var u,O,c,h,l;return _.k(function(K){if(K.nextAddress==1)return _.A(K,f.JSC$16095_prefStorage,2);if(K.nextAddress!=3)return(u=K.yieldResult)?_.A(K,u.get("psi"),3):K.return();O=K.yieldResult;l={isPaused:R,lastSyncTimestamp:(h=(c=O)==null?void 0:c.lastSyncTimestamp)!=null?h:"0"};return _.A(K,u.set("psi",l),0)})};
IH9=function(f){var R=_.vh().resolve(_.YW),u,O,c,h,l,K,q,F;return _.k(function(w){switch(w.nextAddress){case 1:return _.A(w,R.JSC$16095_playerApiPromise,2);case 2:u=w.yieldResult;c=((O=f)==null?void 0:O.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((K=f)==null?void 0:K.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":h="!*$_ALL_ENTITIES_!*$";l="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return w.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return w.jumpTo(4)}w.jumpTo(5);break;case 3:return _.A(w,HfK(R,c),6);case 6:w.jumpTo(5);break;case 4:return _.A(w,T_w(R,(q=f)==null?void 0:q.videoId),7);case 7:w.yieldResult&&(h=(F=f)==null?void 0:F.videoId,l="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");w.jumpTo(5);break;case 5:if(h&&l)return _.A(w,u.queueOfflineAction(h,"videoPlaybackPositionEntity",l),0);w.jumpTo(0)}})};
IOh=function(f,R){var u;R!==1||((u=f.currentPersistentToast)==null?0:u.isOpened())?f.openToast():f.currentPersistentToast=void 0};
Mw5=function(){var f,R,u,O;return _.k(function(c){if(c.nextAddress==1)return f=navigator,(R=f.storage)!=null&&R.persisted?_.A(c,(u=f.storage)==null?void 0:u.persisted(),2):c.return("PERSISTED_STATE_NOT_SUPPORTED");O=c.yieldResult;return c.return(O?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Puw=function(){var f,R,u,O;return _.k(function(c){if(c.nextAddress==1)return f=navigator,(R=f.storage)!=null&&R.persist?_.A(c,(u=f.storage)==null?void 0:u.persist(),2):c.return("PERSISTED_STATE_NOT_SUPPORTED");O=c.yieldResult;return c.return(O?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
UMh=function(){var f,R;return _.k(function(u){switch(u.nextAddress){case 1:return f="PERSISTED_STATE_NOT_SUPPORTED",_.cl(u,2),_.A(u,Mw5(),4);case 4:f=u.yieldResult;if(f!=="PERSISTED_STATE_NOT_GRANTED"){u.jumpTo(5);break}return _.A(u,Puw(),6);case 6:f=u.yieldResult;case 5:_.Bf(u,3);break;case 2:R=_.ku(u),R instanceof Error&&_.TL(R);case 3:return _.Jr("persistentStorageStateChecked",{persistedState:f}),u.return(f)}})};
ept=function(f,R){var u=[],O=!1;R=_.Z(R);for(var c=R.next();!c.done;c=R.next()){c=f.moduleRegistry[c.value];var h=void 0,l=void 0;((h=c)==null?0:h.isFetching)&&((l=c)==null?0:l.resolver)?(u.push(c.resolver.promise),O=!0):(c=new _.lj,c.resolve(void 0),u.push(c.promise))}return O?Promise.all(u):void 0};
GJa=function(f,R,u){u=u===void 0?{}:u;var O=f.defaultViewTransitionOptions,c=R.map(function(l){return l.beforeTransition}),h=R.map(function(l){return l.afterTransition});
return Object.assign({},O,u,{beforeTransition:function(){var l;(l=O.beforeTransition)==null||l.call(O);var K,q;(q=(K=u).beforeTransition)==null||q.call(K);l=_.Z(c);for(K=l.next();!K.done;K=l.next())K=K.value,K()},
afterTransition:function(){var l;(l=O.afterTransition)==null||l.call(O);var K,q;(q=(K=u).afterTransition)==null||q.call(K);l=_.Z(h);for(K=l.next();!K.done;K=l.next())K=K.value,K()}})};
B_w=function(f,R,u){var O,c,h,l,K,q,F;_.k(function(w){if(f.config.disableAllTransitions)return w.return(R());if((O=u)==null||!O.transitionName)return w.return(_.$el(R,(c=u)==null?void 0:c.viewTransitionOptions));h=u;l=h.transitionName;K=h.viewTransitionOptions;q=f.config.transitionConfigs.get(l);if(!q)return w.return(R());var m;F=(m=f.transitionTasksMap.get(l))!=null?m:[];return w.return(_.$el(R,GJa(q,F,K)))})};
VU=function(f,R,u){f.transitionTasksMap.has(R)?f.transitionTasksMap.get(R).push(u):(f=new _.ts("Transition task registered for unknown transition name",R),_.TL(f))};
os9=function(f,R,u){if(f.isInitialized()){var O=rM(u),c=O==="watch";O=O==="shorts";var h=rM(R)==="watch";if(c)h||(f.backgroundPageData=R),f.watchPipMode&&h||f.deactivate(u.endpoint);else if(O){if(rM(R)!=="shorts"){var l;(l=f.getPlayerElement())==null||l.pause()}}else h&&!f.watchPipMode&&(phm(R,u)?(f.watchWhileMode&&_.swa(f,!1),_.BNX(f,R)):f.isMiniplayerActive()&&f.watchWhileMode&&f.deactivate());h&&_.Vll(f);f.shortsPipMode&&!O&&(window.focus(),f.deactivate());if(f.pictureInPictureEnabled())if(O&&
f.shortsPipEnabled||c&&f.watchPipEnabled)_.jHn(f.handleMediaSessionPipActivation);else if(!f.isMiniplayerActive()&&(f.shortsPipEnabled||f.watchPipEnabled)&&window.documentPictureInPicture&&_.Tq()&&_.qeX("Chromium")>=120){f=_.pyh().mediaSession;try{f.setActionHandler("enterpictureinpicture",null)}catch(K){}}}};
xMl=function(f,R){var u,O;_.k(function(c){if(c.nextAddress==1){if(!f||!f.navigationEndpoint)return c.return();_.qk().lockupActivation=!0;var h;R?h=_.S8(_.Fa("QUEUE",void 0,"Queue")):h=f.longBylineText;O=(u=h)&&f.title?{miniplayerTitle:f.title,miniplayerSubtitle:u,playlistData:null}:void 0;return _.A(c,_.R1G(_.vh().resolve(_.MS),f.navigationEndpoint,!0,O),2)}_.qk().userActivation=!0;_.KG(c)})};
Jjm=function(f,R){var u,O,c,h,l,K;_.k(function(q){if(q.nextAddress==1){u=_.t(R,_.RvG);if(!u||!u.listId)return q.return();f.index=u.index||f.index||0;O=f.response&&f.response.playingVideoId||void 0;return _.A(q,_.JEI(f.JSC$10801_playlistNetworkManager,u.listId,f.index,O),2)}c=q.yieldResult;if(!c)return q.return();h=c.playlistId;l=c.playlistPanelRenderer;!f.queueProxy&&h&&l&&h.startsWith("TLPQ")&&(f.queueProxy=new _.pi(f.JSC$10801_playlistNetworkManager,h,f.setPlaylistData.bind(f),f.clearQueue.bind(f),
_.iiB(l),f.storage));if(u.openMiniplayer&&(K=_.riq(l))&&!f.pageManager.isOnWatch()){var F=K,w=u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";f.isMiniplayerActive()?f.openToast(F):xMl(F,w)}f.setPlaylistData(h,l,c.autoplayRenderer);_.KG(q)})};
pcN=function(f,R){var u=_.Mk();u.index===void 0&&(u.index=0);u.temporaryItems.push.apply(u.temporaryItems,_.yq(f));if((R.videoId||R.videoIds)&&u.index!==void 0&&R.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!u.queueProxy){var O=[];if(u.response){var c=_.vh().resolve(_.MS).isMiniplayerActive();if(u.response.playlistPanelRenderer&&u.response.playlistId&&!u.response.playlistId.startsWith("TLPQ")){if(u.pageManager.isOnWatch()||c)O=_.iiB(u.response.playlistPanelRenderer)}else u.response.playingVideoId&&
!R.openMiniplayer?O.push(u.response.playingVideoId):c&&u.response.playingVideoId&&R.openMiniplayer&&O.push(u.response.playingVideoId)}u.queueProxy=new _.pi(u.JSC$10801_playlistNetworkManager,"",u.setPlaylistData.bind(u),u.clearQueue.bind(u),O,u.storage);u.queueProxy.JSC$10747_setCurrentIndex(u.index)}u.queueProxy.addVideos(R.videoIds||[R.videoId],R)}ULm(u,f);u.response&&_.P1(u,_.U1(u,u.response.autoplayRenderer));u.pageManager.isOnWatch()?u.isMiniplayerActive()&&u.openToast(f[0]):(f=f[0],R=R.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",u.isMiniplayerActive()?u.openToast(f):xMl(f,R))};
SUw=function(f){var R=_.F5(f);if(R=="object"||R=="array"){if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);R=R=="array"?[]:{};for(var u in f)R[u]=SUw(f[u]);return R}return f};
qo=function(f,R){return _.VtX(_.AM(f,R,void 0,_.qH))};
AR=function(f,R){return _.Na(_.AM(f,R,void 0,_.qH))};
a2=function(f,R){return _.FlB(_.AM(f,R,void 0,_.qH))};
F2=function(f,R){return _.AM(f,R,void 0,_.qH,_.qa)};
$MX=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;_.nE(R,u,_.It(f.decoder_,_.Oh));return!0},_.ir,_.U0);
gs2=_.gl(function(f,R,u,O){if(f.nextWireType_!==0)return!1;_.mO(R,u,O,_.It(f.decoder_,_.Oh));return!0},_.ir,_.U0);
s4m=_.gl(function(f,R,u){if(f.nextWireType_!==1)return!1;var O=f.decoder_;f=_.Po(O);O=_.Po(O);f=_.fm(f,O);_.nE(R,u,f);return!0},_.swX,_.yI7);
nsX=_.gl(function(f,R,u){if(f.nextWireType_!==5)return!1;_.nE(R,u,_.Po(f.decoder_));return!0},function(f,R,u){R=_.Lm(R);
R!=null&&(_.VH(f,u,5),_.vr(f.encoder_,R))},_.Cy0);
Vwz=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;f=_.RNq(f.decoder_);_.nE(R,u,f===!1?void 0:f);return!0},_.nmn,_.Q_D);
YUS=_.gl(function(f,R,u){if(f.nextWireType_!==2)return!1;f=_.Z7t(f);_.nE(R,u,f===""?void 0:f);return!0},_.YhX,_.WHP);
vsS=_.gl(function(f,R,u){if(f.nextWireType_!==2)return!1;f=_.lEq(f);_.nE(R,u,f===_.UE()?void 0:f);return!0},_.im7,_.LH7);
ifw=_.Uan(function(f,R,u){if(f.nextWireType_!==0&&f.nextWireType_!==2)return!1;R=_.pE(R,R[_.pC]|0,u);f.nextWireType_==2?_.kQe(f,ANw,R):R.push(_.MH(f.decoder_));return!0},function(f,R,u){R=_.PK5(_.Na,R,!0);
if(R!=null&&R.length){u=_.aen(f,u);for(var O=0;O<R.length;O++)_.xan(f.encoder_,R[O]);_.F20(f,u)}},_.b7X);
rlm=_.gl(function(f,R,u){if(f.nextWireType_!==0)return!1;f=_.MH(f.decoder_);_.nE(R,u,f===0?void 0:f);return!0},_.r9P,_.b7X);
fzw=_.gl(function(f,R,u,O){if(f.nextWireType_!==0)return!1;_.mO(R,u,O,_.MH(f.decoder_));return!0},_.r9P,_.b7X);
_.Sy=function(f){this.privateDoNotAccessOrElseWrappedStyleSheet=f};
_.Sy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var eal=function(f,R){return new _.b_(f.x+R.x,f.y+R.y)},Rqm=function(f){return f.previousElementSibling!==void 0?f.previousElementSibling:_.zlH(f.previousSibling,!1)},uya=function(f,R){var u=[];
for(R=R||0;R<f.length;R+=2)_.tYf(f[R],f[R+1],u);return u.join("&")},OU5=function(f,R){var u=arguments.length==2?uya(arguments[1],0):uya(arguments,1);
return _.ECf(f,u)},c4l=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(c4l,_.e5);c4l.prototype.getValue=function(){var f=_.AM(this,2);if(Array.isArray(f)||f instanceof _.e5)throw Error("aa");return _.wZ(this,2)};
var cZ2=function(){var f=_.cL();this.JSC$7922_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ci("channel_type"))};
cZ2.prototype.increment=function(f){this.JSC$7922_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",f)};
var XC2=function(){var f=_.cL();this.JSC$7925_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ci("channel_type"))};
XC2.prototype.increment=function(f){this.JSC$7925_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",f)};
var ZTl=function(){var f=_.cL();this.JSC$7928_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ci("channel_type"))};
ZTl.prototype.increment=function(f){this.JSC$7928_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",f)};
var hhX=function(){var f=_.cL();this.JSC$7931_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
hhX.prototype.increment=function(){this.JSC$7931_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var la2=function(){var f=_.cL();this.JSC$7934_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ci("channel_type"),_.ci("error_type"))};
la2.prototype.increment=function(f,R){this.JSC$7934_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",f,R)};
var kOa=function(){var f=_.cL();this.JSC$7937_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
kOa.prototype.increment=function(){this.JSC$7937_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var KFN=function(){var f=_.cL();this.JSC$7940_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
KFN.prototype.increment=function(){this.JSC$7940_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var fMe=function(){var f=_.cL();this.JSC$7946_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
fMe.prototype.increment=function(){this.JSC$7946_streamzService.JSC$7795_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var X72=function(f){return f.getCount&&typeof f.getCount=="function"?f.getCount():_.Rk(f)||typeof f==="string"?f.length:_.dq.getCount(f)},hq5=function(f,R){if(typeof f.every=="function")return f.every(R,void 0);
if(_.Rk(f)||typeof f==="string")return Array.prototype.every.call(f,R,void 0);for(var u=_.Fyi(f),O=_.g4(f),c=O.length,h=0;h<c;h++)if(!R.call(void 0,O[h],u&&u[h],f))return!1;return!0},ZUN=function(f,R,u,O){var c=new _.gu(null);
f&&_.sF(c,f);R&&_.nd(c,R);u&&_.Vc(c,u);O&&_.YI(c,O);return c},lzX=function(){var f=_.IV&&_.w7(_.bcl,10)>=0,R;
if(R=_.wgl)R=_.w7(_.LME,10)>=0;var u=_.lH&&_.w7(_.bcl,85)>=0;return _.co||f||R||u},kWe=function(f){var R=_.fkE(f);
return R&&lzX()?-f.scrollLeft:R&&_.U8(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft},KiS=function(f,R){R=Math.max(R,0);
_.fkE(f)?lzX()?f.scrollLeft=-R:f.scrollLeft=f.scrollWidth-R-f.clientWidth:f.scrollLeft=R},xWa=0,n8m=!1;
RK.prototype.set=function(f){this.relativeTimeStart_=f};
RK.prototype.reset=function(){this.set(_.rI())};
RK.prototype.get=function(){return this.relativeTimeStart_};
var qx5=null,A4K=function(){qx5||(qx5=new RK)},azw=function(){qx5||(qx5=new RK)};
_.f6(azw,A4K);_.X=YCh.prototype;_.X.JSC$9256_buffer_="";_.X.set=function(f){this.JSC$9256_buffer_=""+f};
_.X.append=function(f,R,u){this.JSC$9256_buffer_+=String(f);if(R!=null)for(var O=1;O<arguments.length;O++)this.JSC$9256_buffer_+=arguments[O];return this};
_.X.clear=function(){this.JSC$9256_buffer_=""};
_.X.getLength=function(){return this.JSC$9256_buffer_.length};
_.X.toString=function(){return this.JSC$9256_buffer_};
var FiS=function(){var f={type:"unit",style:"narrow"};this.listType_=f&&f.type?f.type:"conjunction";this.listStyle_=f&&f.style?f.style:"long";this.listSymbols_=ESS;f=0;switch(this.listStyle_){case "short":f=1;break;case "narrow":f=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[f];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[f];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[f];this.listEndPattern_=
this.listSymbols_.AND_END[f];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[f];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[f];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[f];this.listEndPattern_=this.listSymbols_.OR_END[f];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[f],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[f],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[f],this.listEndPattern_=this.listSymbols_.UNIT_END[f]}};
FiS.prototype.format=function(f){return w7N(this,f)};
var w7N=function(f,R){var u=R.length;switch(u){case 0:return"";case 1:return String(R[0]);case 2:return f.listTwoPattern_.replace("{0}",String(R[0])).replace("{1}",String(R[1]))}for(var O=f.listStartPattern_.replace("{0}",String(R[0])).replace("{1}",String(R[1])),c=2;c<u-1;++c)O=f.listMiddlePattern_.replace("{0}",O).replace("{1}",String(R[c]));return f.listEndPattern_.replace("{0}",O).replace("{1}",String(R[u-1]))},Asl=function(){var f={style:1};
this.style_=(f==null?void 0:f.style)||0;this.durationSymbols_=_.XXi||_.ZgF},mOm=function(f,R){switch(R){default:case "years":return f.durationSymbols_.YEAR;
case "months":return f.durationSymbols_.MONTH;case "weeks":return f.durationSymbols_.WEEK;case "days":return f.durationSymbols_.DAY;case "hours":return f.durationSymbols_.HOUR;case "minutes":return f.durationSymbols_.MINUTE;case "seconds":return f.durationSymbols_.SECOND}},w0=function(f,R,u){a:{u=mOm(f,u);
switch(f.style_){case 1:if(u.LONG!=void 0){f=u.LONG;break a}case 2:if(u.NARROW!=void 0){f=u.NARROW;break a}default:f=u.SHORT;break a}f=void 0}return f?(new _.Dqk("{DURATION_VALUE,plural,"+f+"}")).format({DURATION_VALUE:R}):""};
Asl.prototype.format=function(f){var R=[],u=f.years,O=f.months,c=f.weeks,h=f.days,l=f.hours,K=f.minutes;f=f.seconds;u!=null&&R.push(w0(this,u,"years"));O!=null&&R.push(w0(this,O,"months"));c!=null&&R.push(w0(this,c,"weeks"));h!=null&&R.push(w0(this,h,"days"));l!=null&&R.push(w0(this,l,"hours"));K!=null&&R.push(w0(this,K,"minutes"));f!=null&&R.push(w0(this,f,"seconds"));return(new FiS).format(R)};
var QFh=!1,Ota=function(f){_.R7.call(this,f.message||f.description||f.name);this.isMissing=f instanceof uv;this.isTimeout=f instanceof _.S_&&f.errorCode=="net.timeout";this.isCanceled=f instanceof _.BB};
_.y(Ota,_.R7);Ota.prototype.name="BiscottiError";var uv=function(){_.R7.call(this,"Biscotti ID is missing from server")};
_.y(uv,_.R7);uv.prototype.name="BiscottiMissingError";var OG=null,Wah=function(){try{var f=_.Ph("yt.ads.biscotti.getId_");return f?f():M0e()}catch(R){return _.NO(R)}},qbw,Wit=function(f){return _.OP({type:"SET_GUIDE_IS_EXPANDED",
payload:f})},Er9=function(f){return _.OP({type:"SET_ONLINE_STATUS",
payload:f})},tQ9=function(f,R){return _.OP({type:"SET_TRANSCRIPTION_STATE",
payload:{high:f,low:R}})},CiX=function(f){return _.OP({type:"SET_OVERLAY_STATE",
payload:f})},y4m=0,dOS=function(f,R,u){var O=this;
this.priority=R;this.delay=u;this.jobId=0;this.completionCallback=_.Fe;this.wrappedJob=function(){f();O.completionCallback()};
this.id=++y4m};
dOS.prototype.enqueue=function(f){this.completionCallback=f;this.jobId=_.JA.addJob(this.wrappedJob,this.priority,this.delay)};
var mS=function(){_.iz.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.y(mS,_.iz);mS.prototype.addJob=function(f,R,u){f=new dOS(f,R,u);this.taskIdToTask.set(f.id,f);this.isActive?NRe(this,f):this.suspendedTasks.add(f);return f.id};
var NRe=function(f,R){f.scheduledTasks.add(R);R.enqueue(function(){f.scheduledTasks.delete(R)})};
mS.prototype.cancelJob=function(f){(f=this.taskIdToTask.get(f))&&(this.scheduledTasks.delete(f)?_.JA.cancelJob(f.jobId):this.suspendedTasks.delete(f))};
mS.prototype.pause=function(){var f=this;this.isActive=!1;this.scheduledTasks.forEach(function(R){_.JA.cancelJob(R.jobId);f.suspendedTasks.add(R)});
this.scheduledTasks.clear()};
mS.prototype.start=function(){var f=this;this.isActive=!0;this.suspendedTasks.forEach(function(R){NRe(f,R)});
this.suspendedTasks.clear()};
mS.prototype.reset=function(){this.scheduledTasks.forEach(function(f){_.JA.cancelJob(f.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var QD=function(f,R){this.JSC$10930_networkService_=f;this.pageRequestPromise=R};
QD.prototype.fetchData=function(f){Lil(this,this.JSC$10930_networkService_.fetchData(f))};
QD.prototype.postData=function(f,R){Lil(this,this.JSC$10930_networkService_.postData(f,R))};
QD.prototype.requestDataForServiceEndpoint=function(f,R){Lil(this,this.JSC$10930_networkService_.requestDataForServiceEndpoint(f,R))};
var Lil=function(f,R){R.then(f.pageRequestPromise.onSuccess,f.pageRequestPromise.onFailure,f.pageRequestPromise)};
QD.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var W$=function(f){this.buildNetworkRequest_=f;this.pendingRequests_=new Set};
W$.prototype.reset=function(){this.pendingRequests_.forEach(function(f){f.cancel()});
this.pendingRequests_.clear()};
W$.prototype.fetchData=function(f){var R=bUl(this);R.fetchData(f);return R.pageRequestPromise};
W$.prototype.postData=function(f,R){var u=bUl(this);u.postData(f,R);return u.pageRequestPromise};
W$.prototype.requestDataForServiceEndpoint=function(f,R){var u=bUl(this);u.requestDataForServiceEndpoint(f,R);return u.pageRequestPromise};
var bUl=function(f){var R=f.buildNetworkRequest_();f.pendingRequests_.add(R);var u=function(){f.pendingRequests_.delete(R)};
R.pageRequestPromise.then(u,u);return R},p7m=function(f){var R=new mS;
this.JSC$10937_networkService_=f;this.JSC$10937_taskManager_=R;this.JSC$10937_networkManager_=new W$(this.networkRequestFactory_.bind(this))};
_.X=p7m.prototype;_.X.networkRequestFactory_=function(){return new QD(this.JSC$10937_networkService_,new _.v1(this.JSC$10937_taskManager_))};
_.X.reset=function(){this.JSC$10937_taskManager_.reset();this.JSC$10937_networkManager_.reset()};
_.X.start=function(){this.JSC$10937_taskManager_.start()};
_.X.pause=function(){this.JSC$10937_taskManager_.pause()};
_.X.getTaskManager=function(){return this.JSC$10937_taskManager_};
_.X.getNetworkManager=function(){return this.JSC$10937_networkManager_};
var QV5=null,thz=[],cU=0,h3=0,Xm=null,jFz=!1,Zg=null,ysK=void 0,DOa=function(){var f=(0,_.SlF)();f&&Cjm(f,f.mechanism.__iterator__(!0))},kk=function(f){this.token=f};
kk.getInstance=function(){var f;return _.k(function(R){if(R.nextAddress==1)return _.A(R,_.Yx(),2);f=R.yieldResult;if(!f)return R.return();kk.instance||(kk.instance=new kk(f));return R.return(kk.instance)})};
var jVe=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,L$m(f.token),2);R=u.yieldResult;return u.return(R.clear("resource-manifest-assets"))})},lv=function(f){this.token=f};
lv.getInstance=function(){var f;return _.k(function(R){if(R.nextAddress==1)return _.A(R,_.Yx(),2);f=R.yieldResult;if(!f)return R.return();lv.instance||(lv.instance=new lv(f));return R.return(lv.instance)})};
var bt2=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,L$m(f.token),2);R=u.yieldResult;return _.A(u,R.clear("auth"),0)})},Vhl=!1,J4N=function(f){_.R7.call(this,f)};
_.y(J4N,_.kGi);var V2K=function(){var f=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return f?parseInt(f[1],10):0},zqh=function(f){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+f)!=-1||document.currentScript.src.indexOf("&"+f)!=-1)},TRm=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},fv9=function(f){f.length?HU9(f.shift(),function(){fv9(f)}):vVm()},uOm=function(f){return"chrome-extension://"+f+"/cast_sender.js"},HU9=function(f,
R,u){var O=document.createElement("script");
O.onerror=R;u&&(O.onload=u);_.UO(O,_.b3(f));(document.head||document.documentElement).appendChild(O)},IzX=function(){var f=V2K(),R=[];
if(f>1){var u=f-1;R.push("//www.gstatic.com/eureka/clank/"+f+"/cast_sender.js");R.push("//www.gstatic.com/eureka/clank/"+u+"/cast_sender.js")}return R},vVm=function(){var f=TRm();
f&&f(!1,"No cast extension found")},rZ5=function(){if(MQh){var f=2,R=TRm(),u=function(){f--;
f==0&&R&&R(!0)};
window.__onGCastApiAvailable=u;HU9("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",vVm,u)}},Yu5=function(){rZ5();
var f=IzX();f.push("//www.gstatic.com/eureka/clank/cast_sender.js");fv9(f)},iTK=function(){rZ5();
var f=IzX();f.push.apply(f,_.yq(Ra2.map(uOm)));f.push("//www.gstatic.com/eureka/clank/cast_sender.js");fv9(f)},MQh=zqh("loadCastFramework")||zqh("loadCastApplicationFramework"),Ra2=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Pie=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Pie,_.e5);var UO9=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(UO9,_.e5);var eqe=function(){var f=new UO9;return _.TR(f,1,3)};var Et=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Et,_.e5);var SLS=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(SLS,_.e5);var GWX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(GWX,_.e5);GWX.prototype.getToken=function(){return _.bH(this,1)};
GWX.prototype.setToken=function(f){return _.Vo(this,1,f)};
var oM5=function(f){return _.CE(f,3,_.Bt,_.fR())},xxS=function(f){return _.CE(f,6,_.Bt,_.fR())};var tR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(tR,_.e5);tR.prototype.getToken=function(){return _.Ry(this,GWX,2)};
tR.prototype.setToken=function(f){return _.OO(this,2,f)};
tR.prototype.getName=function(){return _.bH(this,6)};
var BRa=_.Ra(tR);var orN=function(f,R,u){this.requestMessage=f;this.methodDescriptor=R;this.metadata=u};
orN.prototype.getMetadata=function(){return this.metadata};var xO9=function(f,R){R=R===void 0?{}:R;this.responseMessage=f;this.metadata=R;this.status=null};
xO9.prototype.getMetadata=function(){return this.metadata};
xO9.prototype.getStatus=function(){return this.status};var C2=function(f,R,u,O,c){this.name=f;this.methodType="unary";this.requestType=R;this.responseType=u;this.requestSerializeFn=O;this.responseDeserializeFn=c},Sxa=function(f,R,u){u=u===void 0?{}:u;
return new orN(R,f,u)};
C2.prototype.getName=function(){return this.name};var yD=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(yD,_.e5);yD.prototype.setHeader=function(f){return _.OO(this,1,f)};
yD.prototype.hasHeader=function(){return _.at(this,Et,1)};var $Ot=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($Ot,_.e5);var grw=new C2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",yD,$Ot,function(f){return f.serialize()},_.Ra($Ot));var d0=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(d0,_.e5);d0.prototype.setHeader=function(f){return _.OO(this,1,f)};
d0.prototype.hasHeader=function(){return _.at(this,Et,1)};var sFz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(sFz,_.e5);var nrw=new C2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",d0,sFz,function(f){return f.serialize()},_.Ra(sFz));var No=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(No,_.e5);No.prototype.setHeader=function(f){return _.OO(this,1,f)};
No.prototype.hasHeader=function(){return _.at(this,Et,1)};var VQt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(VQt,_.e5);VQt.prototype.getLink=function(){return _.Ry(this,tR,1)};var YxN=new C2("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",No,VQt,function(f){return f.serialize()},_.Ra(VQt));var L2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(L2,_.e5);L2.prototype.setHeader=function(f){return _.OO(this,1,f)};
L2.prototype.hasHeader=function(){return _.at(this,Et,1)};var vr2=new C2("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",L2,tR,function(f){return f.serialize()},BRa);var iUm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(iUm,_.e5);var r4m=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(r4m,_.e5);r4m.prototype.getUrl=function(){return _.bH(this,2)};
r4m.prototype.setUrl=function(f){return _.Vo(this,2,f)};var fBl=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(fBl,_.e5);var R5S=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(R5S,_.e5);var ufz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(ufz,_.e5);var RMX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(RMX,_.e5);var f8w=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(f8w,_.e5);var OLm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(OLm,_.e5);var l8m=_.Ra(OLm);var cSm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(cSm,_.e5);var bR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(bR,_.e5);bR.prototype.setHeader=function(f){return _.OO(this,1,f)};
bR.prototype.hasHeader=function(){return _.at(this,Et,1)};
bR.prototype.getCompletionUrl=function(){return _.bH(this,6)};
bR.prototype.getDeviceId=function(){return _.bH(this,11)};var XM9=new C2("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",bR,OLm,function(f){return f.serialize()},l8m);var h5S=new Set(["SAPISIDHASH","APISIDHASH"]);var ZLN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(ZLN,_.e5);ZLN.prototype.getMessage=function(){return _.bH(this,2)};
var lBN=_.Ra(ZLN);var p2=function(f,R){this.xhrNodeReadableStream_=f.nodeReadableStream;this.grpcResponseDeserializeFn_=R;this.JSC$17020_xhr_=f.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17020_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&kwh(this)},wM2=function(f,R){var u=new K8h;
_.y0(f.JSC$17020_xhr_,"complete",function(){if(f.JSC$17020_xhr_.isSuccess()){var O=f.JSC$17020_xhr_.getResponseText();var c;if(c=R)c=f.JSC$17020_xhr_,c.JSC$7804_xhr_&&c.isComplete()?(c=c.JSC$7804_xhr_.getResponseHeader("Content-Type"),c=c===null?void 0:c):c=void 0,c=c==="text/plain";if(c){if(!atob)throw Error("Ij");O=atob(O)}try{var h=f.grpcResponseDeserializeFn_(O)}catch(K){jj(f,jyX(new _.yc(13,"Error when deserializing response data; error: "+K+(", response: "+O)),u));return}O=_.k$(f.JSC$17020_xhr_.getStatus());
qz5(f,ASK(f));O==0?aB2(f,h):jj(f,jyX(new _.yc(O,"Xhr succeeded but the status code is not 200"),u))}else{O=f.JSC$17020_xhr_.getResponseText();h=ASK(f);if(O){var l=F8l(f,O);O=l.code;c=l.details;l=l.metadata}else O=2,c="Rpc failed due to xhr error. uri: "+String(f.JSC$17020_xhr_.JSC$7804_lastUri_)+", error code: "+f.JSC$17020_xhr_.JSC$7804_lastErrorCode_+", error: "+f.JSC$17020_xhr_.getLastError(),l=h;qz5(f,h);jj(f,jyX(new _.yc(O,c,l),u))}})},kwh=function(f){f.xhrNodeReadableStream_.on("data",function(R){if("1"in
R){var u=R["1"];
try{var O=f.grpcResponseDeserializeFn_(u)}catch(c){jj(f,new _.yc(13,"Error when deserializing response data; error: "+c+(", response: "+u)))}O&&aB2(f,O)}if("2"in R)for(R=F8l(f,R["2"]),u=0;u<f.onStatusCallbacks_.length;u++)f.onStatusCallbacks_[u](R)});
f.xhrNodeReadableStream_.on("end",function(){qz5(f,ASK(f));for(var R=0;R<f.onEndCallbacks_.length;R++)f.onEndCallbacks_[R]()});
f.xhrNodeReadableStream_.on("error",function(){if(f.JSC$17020_onErrorCallbacks_.length!=0){var R=f.JSC$17020_xhr_.JSC$7804_lastErrorCode_;R!==0||f.JSC$17020_xhr_.isSuccess()||(R=6);var u=-1;switch(R){case 0:var O=2;break;case 7:O=10;break;case 8:O=4;break;case 6:u=f.JSC$17020_xhr_.getStatus();O=_.k$(u);break;default:O=14}qz5(f,ASK(f));R=_.s8H(R)+", error: "+f.JSC$17020_xhr_.getLastError();u!=-1&&(R+=", http status code: "+u);jj(f,new _.yc(O,R))}})},ASK=function(f){var R={},u=Q1h(f.JSC$17020_xhr_);
Object.keys(u).forEach(function(O){R[O]=u[O]});
return R},F8l=function(f,R){var u=2,O={};
try{var c=lBN(R);u=_.Rj(c,1);var h=c.getMessage();_.rq(c,c4l,3,_.fR()).length&&(O["grpc-web-status-details-bin"]=R)}catch(l){f.JSC$17020_xhr_&&f.JSC$17020_xhr_.getStatus()===404?(u=5,h="Not Found: "+String(f.JSC$17020_xhr_.JSC$7804_lastUri_)):(u=14,h="Unable to parse RpcStatus: "+l)}return{code:u,details:h,metadata:O}};
p2.prototype.on=function(f,R){f=="data"?this.onDataCallbacks_.push(R):f=="metadata"?this.onMetadataCallbacks_.push(R):f=="status"?this.onStatusCallbacks_.push(R):f=="end"?this.onEndCallbacks_.push(R):f=="error"&&this.JSC$17020_onErrorCallbacks_.push(R);return this};
var DU=function(f,R){R=f.indexOf(R);R>-1&&f.splice(R,1)};
p2.prototype.removeListener=function(f,R){f=="data"?DU(this.onDataCallbacks_,R):f=="metadata"?DU(this.onMetadataCallbacks_,R):f=="status"?DU(this.onStatusCallbacks_,R):f=="end"?DU(this.onEndCallbacks_,R):f=="error"&&DU(this.JSC$17020_onErrorCallbacks_,R);return this};
p2.prototype.cancel=function(){this.JSC$17020_xhr_.abort()};
var aB2=function(f,R){for(var u=0;u<f.onDataCallbacks_.length;u++)f.onDataCallbacks_[u](R)},qz5=function(f,R){for(var u=0;u<f.onMetadataCallbacks_.length;u++)f.onMetadataCallbacks_[u](R)},jj=function(f,R){for(var u=0;u<f.JSC$17020_onErrorCallbacks_.length;u++)f.JSC$17020_onErrorCallbacks_[u](R)};
p2.prototype.cancel=p2.prototype.cancel;p2.prototype.removeListener=p2.prototype.removeListener;p2.prototype.on=p2.prototype.on;var K8h=function(){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.y(K8h,Error);var JR=function(f){this.JSC$17029_worker_=f.worker||null;this.JSC$17029_streamBinaryChunks_=f.streamBinaryChunks||!1;this.JSC$17029_credentialsMode_=void 0};
_.f6(JR,_.Y85);JR.prototype.createInstance=function(){var f=new zE(this.JSC$17029_worker_,this.JSC$17029_streamBinaryChunks_);this.JSC$17029_credentialsMode_&&f.setCredentialsMode(this.JSC$17029_credentialsMode_);return f};
JR.prototype.setCredentialsMode=function(f){this.JSC$17029_credentialsMode_=f};
var zE=function(f,R){_.mq.call(this);this.JSC$17033_worker_=f;this.JSC$17033_streamBinaryChunks_=R;this.JSC$17033_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$17033_responseHeaders_=null;this.JSC$17033_method_="GET";this.JSC$17033_url_="";this.inProgress_=!1;this.JSC$17033_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.f6(zE,_.mq);zE.prototype.open=function(f,R){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$17033_method_=f;this.JSC$17033_url_=R;this.readyState=1;TE(this)};
zE.prototype.send=function(f){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var R={headers:this.requestHeaders_,method:this.JSC$17033_method_,credentials:this.JSC$17033_credentialsMode_,cache:void 0};f&&(R.body=f);(this.JSC$17033_worker_||_.Oe).fetch(new Request(this.JSC$17033_url_,R)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
zE.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,H$(this));this.readyState=0};
zE.prototype.handleResponse_=function(f){if(this.inProgress_&&(this.fetchResponse_=f,this.JSC$17033_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17033_responseHeaders_=f.headers,this.readyState=2,TE(this)),this.inProgress_&&(this.readyState=3,TE(this),this.inProgress_)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Oe.ReadableStream!==
"undefined"&&"body"in f){this.currentReader_=f.body.getReader();if(this.JSC$17033_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$17033_textDecoder_=new TextDecoder;mIX(this)}else f.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var mIX=function(f){f.currentReader_.read().then(f.handleDataFromStream_.bind(f)).catch(f.handleSendFailure_.bind(f))};
zE.prototype.handleDataFromStream_=function(f){if(this.inProgress_){if(this.JSC$17033_streamBinaryChunks_&&f.value)this.response.push(f.value);else if(!this.JSC$17033_streamBinaryChunks_){var R=f.value?f.value:new Uint8Array(0);if(R=this.JSC$17033_textDecoder_.decode(R,{stream:!f.done}))this.response=this.responseText+=R}f.done?H$(this):TE(this);this.readyState==3&&mIX(this)}};
zE.prototype.handleResponseText_=function(f){this.inProgress_&&(this.response=this.responseText=f,H$(this))};
zE.prototype.handleResponseArrayBuffer_=function(f){this.inProgress_&&(this.response=f,H$(this))};
zE.prototype.handleSendFailure_=function(){this.inProgress_&&H$(this)};
var H$=function(f){f.readyState=4;f.fetchResponse_=null;f.currentReader_=null;f.JSC$17033_textDecoder_=null;TE(f)};
zE.prototype.setRequestHeader=function(f,R){this.requestHeaders_.append(f,R)};
zE.prototype.getResponseHeader=function(f){return this.JSC$17033_responseHeaders_?this.JSC$17033_responseHeaders_.get(f.toLowerCase())||"":""};
zE.prototype.getAllResponseHeaders=function(){if(!this.JSC$17033_responseHeaders_)return"";for(var f=[],R=this.JSC$17033_responseHeaders_.entries(),u=R.next();!u.done;)u=u.value,f.push(u[0]+": "+u[1]),u=R.next();return f.join("\r\n")};
zE.prototype.setCredentialsMode=function(f){this.JSC$17033_credentialsMode_=f};
var TE=function(f){f.onreadystatechange&&f.onreadystatechange.call(f)};
Object.defineProperty(zE.prototype,"withCredentials",{get:function(){return this.JSC$17033_credentialsMode_==="include"},
set:function(f){this.setCredentialsMode(f?"include":"same-origin")}});var QX2=function(f){var R="";_.dq.forEach(f,function(u,O){R+=O;R+=":";R+=u;R+="\r\n"});
return R},W8N=function(f,R,u){if(_.dq.isEmpty(u))return f;
u=QX2(u);if(typeof f==="string")return _.U2(f,_.e0(R),u);_.Sr(f,R,u);return f};var EGw=function(){this.isInputValid_=!0;this.JSC$17039_streamPos_=0;this.leftoverInput_=""};
EGw.prototype.isInputValid=function(){return this.isInputValid_};var A3=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17042_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
A3.prototype.isInputValid=function(){return this.state_!=3};
var I2=function(f,R,u,O){f.state_=3;f.errorMessage_="The stream is broken @"+f.JSC$17042_streamPos_+"/"+u+". Error: "+O+". With input:\n"+R;throw Error(f.errorMessage_);};
A3.prototype.acceptsBinaryInput=function(){return!0};
A3.prototype.parse=function(f){function R(q){q&128&&I2(h,l,K,"invalid tag");(q&7)!=2&&I2(h,l,K,"invalid wire type");h.tag_=q>>>3;h.tag_!=1&&h.tag_!=2&&h.tag_!=15&&I2(h,l,K,"unexpected tag");h.state_=1;h.length_=0;h.countLengthBytes_=0}
function u(q){h.countLengthBytes_++;h.countLengthBytes_==5&&q&240&&I2(h,l,K,"message length too long");h.length_|=(q&127)<<(h.countLengthBytes_-1)*7;q&128||(h.state_=2,h.countMessageBytes_=0,typeof Uint8Array!=="undefined"?h.messageBuffer_=new Uint8Array(h.length_):h.messageBuffer_=Array(h.length_),h.length_==0&&c())}
function O(q){h.messageBuffer_[h.countMessageBytes_++]=q;h.countMessageBytes_==h.length_&&c()}
function c(){if(h.tag_<15){var q={};q[h.tag_]=h.messageBuffer_;h.result_.push(q)}h.state_=0}
for(var h=this,l=f instanceof Array?f:new Uint8Array(f),K=0;K<l.length;){switch(h.state_){case 3:I2(h,l,K,"stream already broken");break;case 0:R(l[K]);break;case 1:u(l[K]);break;case 2:O(l[K]);break;default:throw Error("Nj`"+h.state_);}h.JSC$17042_streamPos_++;K++}f=h.result_;h.result_=[];return f.length>0?f:null};var JAh=function(){this.errorMessage_=null;this.JSC$17045_streamPos_=0;this.base64Decoder_=new EGw;this.pbParser_=new A3};
JAh.prototype.isInputValid=function(){return this.errorMessage_===null};
var t6w=function(f,R,u){f.errorMessage_="The stream is broken @"+f.JSC$17045_streamPos_+". Error: "+u+". With input:\n"+R;throw Error(f.errorMessage_);};
JAh.prototype.acceptsBinaryInput=function(){return!1};
JAh.prototype.parse=function(f){this.errorMessage_!==null&&t6w(this,f,"stream already broken");var R=null;try{var u=this.base64Decoder_;if(!u.isInputValid_)throw u.isInputValid_=!1,Error("Mj`"+u.JSC$17039_streamPos_+"`stream already broken`"+f);u.leftoverInput_+=f;var O=Math.floor(u.leftoverInput_.length/4);if(O==0)var c=null;else{try{var h=_.R10(u.leftoverInput_.slice(0,O*4))}catch(q){var l=u.leftoverInput_,K=q.message;u.isInputValid_=!1;throw Error("Mj`"+u.JSC$17039_streamPos_+"`"+K+"`"+l);}u.JSC$17039_streamPos_+=
O*4;u.leftoverInput_=u.leftoverInput_.slice(O*4);c=h}R=c===null?null:this.pbParser_.parse(c)}catch(q){t6w(this,f,q.message)}this.JSC$17045_streamPos_+=f.length;return R};var Dx2=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17048_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Dx2.prototype.isInputValid=function(){return this.errorMessage_===null};
Dx2.prototype.acceptsBinaryInput=function(){return!1};
Dx2.prototype.parse=function(f){function R(q){h.state_=6;h.errorMessage_="The stream is broken @"+h.JSC$17048_streamPos_+"/"+l+". Error: "+q+". With input:\n";throw Error(h.errorMessage_);}
function u(){h.jsonStreamParser_=new _.fu({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function O(q){if(q)for(var F=0;F<q.length;F++){var w={};w[1]=q[F];h.result_.push(w)}}
function c(q){if(q){(h.statusParsed_||q.length>1)&&R("extra status: "+q);h.statusParsed_=!0;var F={};F[2]=q[0];h.result_.push(F)}}
for(var h=this,l=0;l<f.length;){var K;if(K=h.state_!==2){a:{for(;l<f.length;){if(!_.rF(f[l])){K=!0;break a}l++;h.JSC$17048_streamPos_++}K=!1}K=!K}if(K)return null;switch(h.state_){case 6:R("stream already broken");break;case 0:f[l]==="["?(h.state_=1,l++,h.JSC$17048_streamPos_++):R("unexpected input token");break;case 1:f[l]==="["?(h.state_=2,u()):f[l]===","||f.slice(l,l+5)=="null,"?h.state_=3:f[l]==="]"?(h.state_=5,l++,h.JSC$17048_streamPos_++):R("unexpected input token");break;case 2:K=h.jsonStreamParser_.parse(f.substring(l));
O(K);h.jsonStreamParser_.done()?(h.state_=3,K=h.jsonStreamParser_.JSC$9383_buffer_,h.JSC$17048_streamPos_+=f.length-l-K.length,f=K,l=0):(h.JSC$17048_streamPos_+=f.length-l,l=f.length);break;case 3:f[l]===","||f.slice(l,l+5)=="null,"?(h.state_=4,u(),h.jsonStreamParser_.parse("["),l+=f[l]===","?1:5,h.JSC$17048_streamPos_++):f[l]==="]"&&(h.state_=5,l++,h.JSC$17048_streamPos_++);break;case 4:K=h.jsonStreamParser_.parse(f.substring(l));c(K);h.jsonStreamParser_.done()?(h.state_=5,K=h.jsonStreamParser_.JSC$9383_buffer_,
h.JSC$17048_streamPos_+=f.length-l-K.length,f=K,l=0):(h.JSC$17048_streamPos_+=f.length-l,l=f.length);break;case 5:R("extra input after stream end")}}return h.result_.length>0?(f=h.result_,h.result_=[],f):null};var Cel=function(f){this.JSC$17051_xhr_=f;this.JSC$17051_parser_=null;this.status_=this.JSC$17051_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17051_textDecoder_=null;this.JSC$17051_eventHandler_=new _.uE(this);this.JSC$17051_eventHandler_.listen(this.JSC$17051_xhr_,"readystatechange",this.JSC$17053_readyStateChangeHandler_)},Mo=function(f,R){f.status_!=R&&(f.status_=R,f.statusHandler_&&f.statusHandler_())},P$=function(f){f.JSC$17051_eventHandler_.removeAll();
if(f.JSC$17051_xhr_){var R=f.JSC$17051_xhr_;f.JSC$17051_xhr_=null;R.abort();R.dispose()}};
Cel.prototype.getStatus=function(){return this.status_};
Cel.prototype.JSC$17053_readyStateChangeHandler_=function(f){f=f.target;try{if(f==this.JSC$17051_xhr_)a:{var R=_.Ld(this.JSC$17051_xhr_),u=this.JSC$17051_xhr_.JSC$7804_lastErrorCode_,O=this.JSC$17051_xhr_.getStatus(),c=this.JSC$17051_xhr_.getResponseText();f=[];if(this.JSC$17051_xhr_.getResponse()instanceof Array){var h=this.JSC$17051_xhr_.getResponse();h.length>0&&h[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,f=h)}if(!(R<3||R==3&&!c&&f.length==0))if(O=O==200||O==206,R==4&&(u==8?Mo(this,
7):u==7?Mo(this,8):O||Mo(this,3)),this.JSC$17051_parser_||(this.JSC$17051_parser_=zcz(this.JSC$17051_xhr_),this.JSC$17051_parser_==null&&Mo(this,5)),this.status_>2)P$(this);else{if(f.length>this.JSC$17051_pos_){var l=f.length;u=[];try{if(this.JSC$17051_parser_.acceptsBinaryInput())for(var K=0;K<l;K++){var q=this.JSC$17051_parser_.parse(Array.from(f[K]));q&&(u=u.concat(q))}else{q="";if(!this.JSC$17051_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$17051_textDecoder_=new TextDecoder}for(K=
0;K<l;K++)q+=this.JSC$17051_textDecoder_.decode(f[K],{stream:R==4&&K==l-1});u=this.JSC$17051_parser_.parse(q)}f.splice(0,l);u&&this.dataHandler_(u)}catch(w){Mo(this,5);P$(this);break a}}else if(c.length>this.JSC$17051_pos_){K=c.slice(this.JSC$17051_pos_);this.JSC$17051_pos_=c.length;try{var F=this.JSC$17051_parser_.parse(K);F!=null&&this.dataHandler_&&this.dataHandler_(F)}catch(w){Mo(this,5);P$(this);break a}}R==4?(c.length!=0||this.hasStreamingResponseData_?Mo(this,2):Mo(this,4),P$(this)):Mo(this,
1)}}}catch(w){Mo(this,6),P$(this)}};var yS5=function(f){f=this.xhrReader_=f;var R=(0,_.NG)(this.onData_,this);f.dataHandler_=R;f=this.xhrReader_;R=(0,_.NG)(this.onStatusChange_,this);f.statusHandler_=R;this.JSC$17055_callbackMap_={};this.callbackOnceMap_={}};
_.X=yS5.prototype;_.X.on=function(f,R){var u=this.JSC$17055_callbackMap_[f];u||(u=[],this.JSC$17055_callbackMap_[f]=u);u.push(R);return this};
_.X.addListener=function(f,R){this.on(f,R);return this};
_.X.removeListener=function(f,R){var u=this.JSC$17055_callbackMap_[f];u&&_.v0(u,R);(f=this.callbackOnceMap_[f])&&_.v0(f,R);return this};
_.X.once=function(f,R){var u=this.callbackOnceMap_[f];u||(u=[],this.callbackOnceMap_[f]=u);u.push(R);return this};
_.X.onData_=function(f){var R=this.JSC$17055_callbackMap_.data;R&&dIK(f,R);(R=this.callbackOnceMap_.data)&&dIK(f,R);this.callbackOnceMap_.data=[]};
var dIK=function(f,R){for(var u={},O=0;O<f.length;u={message$jscomp$969:void 0},O++)u.message$jscomp$969=f[O],R.forEach(function(c){return function(h){try{h(c.message$jscomp$969)}catch(l){}}}(u))};
yS5.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:NxK(this,"readable");break;case 5:case 6:case 4:case 7:case 3:NxK(this,"error");break;case 8:NxK(this,"close");break;case 2:NxK(this,"end")}};
var NxK=function(f,R){var u=f.JSC$17055_callbackMap_[R];u&&u.forEach(function(O){try{O()}catch(c){}});
(u=f.callbackOnceMap_[R])&&u.forEach(function(O){O()});
f.callbackOnceMap_[R]=[]};var L8m=function(){var f={format:"jspb"};f=f===void 0?{}:f;this.suppressCorsPreflight=f.suppressCorsPreflight||_.Ph("suppressCorsPreflight",f)||!1;this.withCredentials=f.withCredentials||_.Ph("withCredentials",f)||!1;this.streamInterceptors=f.streamInterceptors||[];this.unaryInterceptors=f.unaryInterceptors||[];this.workerScope=f.workerScope;this.chunkedServerStreaming=f.useFetchDownloadStreams||!1},jXw=function(f,R,u,O,c,h){h=h===void 0?{}:h;
var l=R.substring(0,R.length-c.name.length),K,q=(K=h)==null?void 0:K.signal;return bL2(function(F){return new Promise(function(w,m){if(q==null?0:q.aborted){var W=new _.yc(1,"Aborted");W.cause=q.reason;m(W)}else{var C={},d=pMK(f,F,l);d.on("error",function(p){return void m(p)});
d.on("metadata",function(p){C=p});
d.on("data",function(p){var J=C;J=J===void 0?{}:J;w(new xO9(p,J))});
q&&q.addEventListener("abort",function(){d.cancel();var p=new _.yc(1,"Aborted");p.cause=q.reason;m(p)})}})},f.unaryInterceptors).call(f,Sxa(c,u,O)).then(function(F){return F.responseMessage})},Ut=function(f,R,u,O,c,h){h=h===void 0?{}:h;
return jXw(f,R,u,O,c,h)};
L8m.prototype.serverStreaming=function(f,R,u,O){var c=this,h=f.substring(0,f.length-O.name.length);return DIe(function(l){var K=l.methodDescriptor,q=l.getMetadata(),F=JSN(c,!1);q=z5m(c,q,F,h+K.getName());var w=Txm(F,K.responseDeserializeFn,!0);l=K.requestSerializeFn(l.requestMessage);F.send(q,"POST",l);return w},this.streamInterceptors).call(this,Sxa(O,R,u))};
var pMK=function(f,R,u){var O=R.methodDescriptor,c=R.getMetadata(),h=JSN(f,!0);f=z5m(f,c,h,u+O.getName());u=Txm(h,O.responseDeserializeFn,!1);wM2(u,c["X-Goog-Encode-Response-If-Executable"]==="base64");R=O.requestSerializeFn(R.requestMessage);h.send(f,"POST",R);return u},JSN=function(f,R){R=f.chunkedServerStreaming&&!R;
return f.workerScope||R?new _.NZ(new JR({worker:f.workerScope,streamBinaryChunks:R})):new _.NZ},z5m=function(f,R,u,O){R["Content-Type"]="application/json+protobuf";
R["X-User-Agent"]="grpc-web-javascript/0.1";var c=R.Authorization;if(c&&h5S.has(c.split(" ")[0])||f.withCredentials)u.JSC$7804_withCredentials_=!0;if(f.suppressCorsPreflight)O=W8N(O,"$httpHeaders",R);else for(f=_.Z(Object.keys(R)),c=f.next();!c.done;c=f.next())c=c.value,u.headers.set(c,R[c]);return O},Txm=function(f,R,u){if(u){u=new Cel(f);
var O=new yS5(u)}return new p2({xhr:f,nodeReadableStream:O},R)},DIe=function(f,R){return R.reduce(function(u,O){return function(c){return O.intercept(c,u)}},f)},bL2=function(f,R){return R.reduce(function(u,O){return function(c){return O.intercept(c,u)}},f)};var HLh=function(f){this.client_=new L8m;this.hostname_=f==void 0?f:f.replace(/\/+$/,"")};
_.X=HLh.prototype;_.X.JSC$17074_depositGoogleCredential=function(f,R,u){return Ut(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",f,R||{},nrw,u)};
_.X.deleteLink=function(f,R,u){return Ut(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",f,R||{},grw,u)};
_.X.JSC$17074_finishOAuth=function(f,R,u){return Ut(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",f,R||{},YxN,u)};
_.X.getLink=function(f,R,u){return Ut(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",f,R||{},vr2,u)};
_.X.startLinkingSession=function(f,R,u){return Ut(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",f,R||{},XM9,u)};var IBa=[0,Vwz,1,ifw,[0,_.ST,[0,YUS,-1]],[0,vsS],[0,rlm,-1]];var M6l=function(){this.storage=new Map},UIt=function(f,R,u,O,c){if(!f.storage.has(R))return null;
f=_.Z(f.storage.get(R));for(R=f.next();!R.done;R=f.next())if(R=R.value,!c||R.linkName===c)if(u&&R.scopes&&Pez(R.scopes,u)||O&&R.capabilities&&Pez(R.capabilities,O))return R;return null},e5w=function(f,R,u){if(!u)f.storage.delete(R);
else if(f.storage.has(R)){var O=f.storage.get(R).filter(function(c){return c.linkName!==u});
O.length>0?f.storage.set(R,O):f.storage.delete(R)}},Pez=function(f,R){R=_.Z(R);
for(var u=R.next();!u.done;u=R.next())if(!f.has(u.value))return!1;return!0};var Gwl=function(){var f=_.Tf("LINK_GAL_DOMAIN");this.alsDomain1p=_.Tf("LINK_GAL_DOMAIN");this.alsDomain3p=f;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},Bxl=function(f,R){f.apiKey=R;
return f};
Gwl.prototype.build=function(){var f={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");f.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");f.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(f.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)f.apiKey=
this.apiKey,f.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");f.oauthToken=this.oauthToken;f.alsDomain=this.alsDomain3p}f.clientXd3=this.clientXd3;f.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(f.authUser=this.authUser);this.bucket!==void 0&&(f.bucket=this.bucket);this.completionUrl!==void 0&&(f.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(f.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(f.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(f.locale=this.locale);f.loggerType=this.loggerType;f.clientEnvironment=this.clientEnvironment;f.colorScheme=this.colorScheme;f.showCloseOption=this.showCloseOption;return f};var aK=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(aK,_.e5);var oGh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(oGh,_.e5);var xIt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(xIt,_.e5);var wa=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(wa,_.e5);var Szz=function(f){return _.p6(f,1)};var $Iz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y($Iz,_.e5);var ecS=_.Ra($Iz),Fm=[1,2,3,4,5];var I9m=function(f){try{return ecS(f)}catch(R){return null}},gGN=function(){},MIK=function(f,R){switch(_.QF(R,Fm)){case 4:return(R=_.JM(R,xIt,4,Fm))&&f.logStateTransition(_.p6(R,1)),!0;
case 5:return(R=_.JM(R,oGh,5,Fm))&&f.logInternalEvent(_.p6(R,1)),!0}return!1},G2e=function(f){switch(f){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.km(f)}};var Tc9=function(f,R){var u=this;this.validator=f;this.messageListener=R;this.dismissCallback=function(){sXh(u,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17103_receiveMessage=function(O){O.type==="message"&&(O=O.event_,O!==null&&(new URL(u.iframe.src)).origin===O.origin&&u.validator(O.data,O.origin)&&!u.messageListener(O.data)&&(u.JSC$17103_resolveCb!==void 0&&u.JSC$17103_resolveCb(O.data),nG2(u)))}},UxS=function(f,R,u){f.uiHandler!==void 0&&sXh(f,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(O,c){f.JSC$17103_resolveCb=O;f.JSC$17103_rejectCb=c;f.iframe=document.createElement("iframe");_.D0(f.iframe,R);f.uiHandler=u.displayContent(f.iframe,f.dismissCallback);_.y0(window,"message",f.JSC$17103_receiveMessage,!1,f)})},sXh=function(f,R){f.JSC$17103_rejectCb!==void 0&&f.JSC$17103_rejectCb(R);
nG2(f)},nG2=function(f){f.uiHandler!==void 0&&f.uiHandler.hideContent();
_.w4(window,"message",f.JSC$17103_receiveMessage,!1,f);f.JSC$17103_resolveCb=void 0;f.JSC$17103_rejectCb=void 0;f.uiHandler=void 0;f.iframe=void 0};var V6N=function(f){if(f===2){var R;f=((R=window)==null?0:R.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return f},POm=function(f){f=V6N(f);
switch(f){case 0:return"light";case 1:return"dark";default:_.km(f)}};var HBh=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Yza=function(f,R){this.JSC$17115_linkingSession=f;this.noticeConfig=R;this.displayInfoMap=new Map;var u=new Map;if(_.at(this.JSC$17115_linkingSession,fBl,7))for(f=_.Ry(this.JSC$17115_linkingSession,fBl,7),f=_.rq(f,r4m,1,_.fR()),f=_.Z(f),R=f.next();!R.done;R=f.next())R=R.value,u.set(_.p6(R,1),_.I1n(_.Ry(R,_.h1B,3)));if(u.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){R=this.noticeConfig.enabledDataUsageNoticeUis;f=R.has(0)?u.get(1):void 0;R=R.has(1)?u.get(2):void 0;u=f!==void 0&&R!==void 0?u.get(3):void 0;var O=this.noticeConfig.nestedOrigins;var c=new $Iz;var h=new aK;c=_.cz(c,2,Fm,h);h=new $Iz;var l=new aK;h=_.cz(h,3,Fm,l);l=[];f!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:f,lastEvent:c,nestedOrigins:O}]),l.push({trustedUrl:f,lastEvent:c,nestedOrigins:O}));R!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:R,lastEvent:h,nestedOrigins:O}]),l.push({trustedUrl:R,lastEvent:h,nestedOrigins:O}));u!==void 0?this.displayInfoMap.set(3,[{trustedUrl:u,lastEvent:h,nestedOrigins:O}]):this.displayInfoMap.set(3,l)}};var vGl=function(f){var R=new M6l;this.galService=f;this.galCache=R};
vGl.prototype.getLink=function(f){var R=f.serviceId;var u=f.scopes;var O=f.capabilities;var c=f.linkName;var h=this,l;return _.k(function(K){if(O!==void 0&&u!==void 0)throw Error("Tj");l=UIt(h.galCache,R,u,O,c);return l!==null?K.return(l):K.return(h.galService.getLink({serviceId:R,sessionId:Math.floor(Math.random()*2147483648),scopes:u,capabilities:O,linkName:c}).then(function(q){q=$x5(q);var F=h.galCache;F.storage.has(R)?F.storage.get(R).push(q):F.storage.set(R,[q]);return q}))})};
vGl.prototype.deleteLink=function(f,R,u){var O=this;return _.k(function(c){e5w(O.galCache,f,u);return c.return(O.galService.deleteLink({serviceId:f,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:R,linkName:u}).then(function(){return!0}))})};var rS5=function(f,R){var u=this;this.validator=f;this.msgHandler=R;this.closedPopupTimeout=this.JSC$17137_rejectCb=this.JSC$17137_resolveCb=this.popup=null;this.JSC$17137_receiveMessage=function(O){if(O!==null&&(O=O.event_,O.source===u.popup)){var c=O.data;if(u.validator(c,O.origin)){var h;(h=u.msgHandler)!=null&&h.call(u,c)||(u.JSC$17137_resolveCb!==null&&u.JSC$17137_resolveCb(c),iLK(u))}}}};
rS5.prototype.open=function(f,R){var u=this;this.popup!==null&&fRm(this);return new Promise(function(O,c){u.JSC$17137_resolveCb=O;u.JSC$17137_rejectCb=c;u.popup=_.zd(window,f,"",R);_.y0(window,"message",u.JSC$17137_receiveMessage,!1,u);RA2(u)})};
var fRm=function(f,R){f.JSC$17137_rejectCb!==null&&f.JSC$17137_rejectCb(R);iLK(f)},iLK=function(f){f.closedPopupTimeout&&(f.closedPopupTimeout.cancel(),f.closedPopupTimeout=null);
f.popup&&f.popup.close();_.w4(window,"message",f.JSC$17137_receiveMessage,!1,f);f.popup=null;f.JSC$17137_resolveCb=null;f.JSC$17137_rejectCb=null},RA2=function(f){f.closedPopupTimeout=_.o_i(100).then(function(){f.popup?f.popup.closed?uk5(f):RA2(f):fRm(f,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},uk5=function(f){f.closedPopupTimeout=_.o_i(100).then(function(){fRm(f,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var OrK=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),cxz=function(f,R,u,O,c,h,l,K,q,F){var w=this;this.serviceId=f;this.sessionId=R;this.galService=u;this.oauthDetails=O;this.galLogger=c;this.interactionMode=h;this.redirectServiceUrl=l;this.consentLanguageKeys=K;this.dynamicUrlParameters=q;this.partnerConfigMinReadTimestamp=F;this.started=!1;this.JSC$17143_dataValidator=function(m,
W){var C=OrK.has(W);C||w.redirectServiceUrl===void 0||(C=w.redirectServiceUrl===W);return C?m.sentinel==="gdi":!1}};
cxz.prototype.complete=function(){var f=this,R;return _.k(function(u){if(f.interactionMode!==1)return u.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));R=QU.getRedirectStateFromUri();return R===null?u.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):u.return(XJ9(f,R))})};
cxz.prototype.start=function(){var f=this,R;return _.k(function(u){if(f.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.bH(f.oauthDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(f.interactionMode===1)return QU.setLocation(_.bH(f.oauthDetails,1)),u.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));f.started=!0;f.galLogger.logStateTransition(5);
R=QU.getPostMessagePopup(f.JSC$17143_dataValidator);return u.return(R.open(_.bH(f.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(O){f.started=!1;var c=f.galLogger;if((O==null?void 0:O.error)!==void 0)throw c.logInternalEvent(59),Error("Uj");if((O==null?void 0:O.redirect_state)===void 0)throw c.logInternalEvent(131),Error("Vj");return XJ9(f,O.redirect_state)}).catch(function(O){f.started=
!1;
return O.errorCode!==void 0?{statusCode:O.errorCode,statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var XJ9=function(f,R){return _.k(function(u){return u.return(hAa(f.galService,{serviceId:f.serviceId,sessionId:f.sessionId,dynamicUrlParameters:f.dynamicUrlParameters,redirectState:R,consentLanguageKeys:f.consentLanguageKeys,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp}).then(function(O){var c={statusCode:1,link:$x5(O.getLink())};TvK(_.wZ(O,3))!==void 0&&(c.callerState=TvK(_.wZ(O,3)));f.galLogger.logInternalEvent(134);return c}))})},QU={getPostMessagePopup:function(f){return new rS5(f)},
getRedirectStateFromUri:function(){var f=_.oj(QU.getLocation()).fragment_;return(new _.fW(f)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(f){_.$3(window.location,_.EO(f))},
createOAuthFlow:function(f,R){return new cxz(f.serviceId,f.sessionId,f.galService,R,f.galLogger,f.interactionMode,f.redirectServiceUrl,f.consentLanguageKeys,f.dynamicUrlParameters,f.partnerConfigMinReadTimestamp)}};var Zr2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Zr2,_.e5);var lRw=_.Ra(Zr2);var kSS=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),KQm=function(f,R,u,O,c,h,l,K,q){var F=this;this.serviceId=f;this.sessionId=R;this.galService=u;this.gsiWebFlowDetails=O;this.colorScheme=c;this.showCloseOption=h;this.galLogger=l;this.interactionMode=K;this.redirectServiceUrl=q;this.started=!1;this.JSC$17155_dataValidator=function(w,m){var W=kSS.has(m);W||F.redirectServiceUrl===
void 0||(W=F.redirectServiceUrl===m);return W?w.sentinel==="gal":!1};
this.logEventProcessor=function(w){return w.result?(w=I9m(w.result))?MIK(F.galLogger,w):!1:!1}};
KQm.prototype.complete=function(){var f=this,R,u;return _.k(function(O){if(f.interactionMode!==1)return O.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));R=WU.getRedirectStateFromUri();if(R===void 0)return f.galLogger.JSC$17095_logErrorEvent(131),O.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return u=qpw(f,R),O.return(Axl(f,u))}catch(c){return O.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
KQm.prototype.start=function(){var f=this,R;return _.k(function(u){if(f.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.bH(f.gsiWebFlowDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(f.interactionMode===1)return WU.setLocation(aR2(f,_.bH(f.gsiWebFlowDetails,1))),u.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
f.started=!0;R=WU.getPostMessagePopup(f.JSC$17155_dataValidator,f.logEventProcessor);return u.return(R.open(aR2(f,_.bH(f.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(O){f.started=!1;if((O==null?void 0:O.result)===void 0)throw f.galLogger.JSC$17095_logErrorEvent(131),Error("Vj");O=qpw(f,O.result);return Axl(f,O)}).catch(function(O){f.started=!1;
return O.errorCode!==void 0?{statusCode:O.errorCode,statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var aR2=function(f,R){f=["result_channel",f.interactionMode===1?"2":"1","color_scheme",POm(f.colorScheme),"show_close_option",f.showCloseOption];return OU5(R,f)},Axl=function(f,R){if(R!==null&&_.at(R,wa,2)){var u,O=R==null?void 0:(u=_.Ry(R,wa,2))==null?void 0:_.p6(u,2);
O&&f.galLogger.JSC$17095_logErrorEvent(G2e(O));return Szz(_.Ry(R,wa,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 f.galService.getLink({serviceId:f.serviceId,sessionId:f.sessionId,consistencyKey:_.bH(R,1)}).then(function(c){c=$x5(c);f.galLogger.logInternalEvent(134);return{statusCode:1,link:c}})},qpw=function(f,R){R=lRw(R);
if(!_.at(R,wa,2)&&_.bH(R,1)==="")throw f.galLogger.JSC$17095_logErrorEvent(5),Error("Wj");return R},WU={getPostMessagePopup:function(f,R){return new rS5(f,R)},
getRedirectStateFromUri:function(){return _.x$(_.oj(WU.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(f){_.$3(window.location,_.EO(f))},
createStreamlinedFlow:function(f,R){return new KQm(f.serviceId,f.sessionId,f.galService,R,f.colorScheme,f.showCloseOption,f.galLogger,f.interactionMode,f.redirectServiceUrl)}};var hMa=function(){var f=_.ms0("GAL");this.storage=f?new _.y4(f):null};var ej=function(){};
_.y(ej,gGN);ej.prototype.logStateTransition=function(){};
ej.prototype.logInternalEvent=function(){};
ej.prototype.JSC$17095_logErrorEvent=function(){};var FQX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(FQX,_.e5);FQX.prototype.getCompletionUrl=function(){return _.bH(this,15)};var GE=function(f,R,u,O,c,h){this.serviceId=f;this.environment=R;this.sessionId=u;this.colorSchemeSelected=O;this.colorThemeDisplayed=c;this.JSC$17168_transport=h;this.currentState=1};
_.y(GE,gGN);GE.prototype.logStateTransition=function(f){var R=wJK(this);R=_.uO(R,3,this.currentState);R=_.uO(R,1,f);this.currentState=f;f=mLm(1);this.dispatch(R,f)};
GE.prototype.logInternalEvent=function(f){f=mLm(f);this.dispatch(wJK(this),f)};
GE.prototype.JSC$17095_logErrorEvent=function(f){var R=wJK(this);R=_.uO(R,1,10);f=mLm(f);this.dispatch(R,f)};
var wJK=function(f){var R=new FQX;R=_.uO(R,1,f.currentState);R=_.FH(R,7,f.serviceId);var u,O;var c=((u=window)==null?0:(O=u.location)==null?0:O.href)?_.oj(window.location.href).JSC$8036_domain_:"NO_PACKAGE_NAME";u=_.FH(R,8,c);u=_.uO(u,6,f.environment);u=_.FH(u,5,"100");u=_.uO(u,11,f.colorSchemeSelected);return _.uO(u,12,f.colorThemeDisplayed)};
GE.prototype.dispatch=function(f,R){R===void 0&&(R=new _.cb);var u=R;f=f.serialize();u=_.FH(u,8,f);_.C0(u,12,this.sessionId);this.JSC$17168_transport.dispatch(R)};var mpS=function(f,R){this.loggerType=f;this.sessionIndex=R!=null?R:0},QAl;
mpS.prototype.create=function(f,R,u,O,c){switch(this.loggerType){case 0:return new ej;case 1:return QAl||(QAl=(new _.KR(555,this.sessionIndex.toString())).build()),new GE(f,R,u,O,c,QAl);default:_.km(this.loggerType,"unknown logger type")}};var EG=[6,2,3,1],qWl=new Map([[4,1],[1,6],[2,2],[3,3]]),VIS={statusCode:7,statusMessage:"Failed to create flow object"},cr5=function(f,R,u,O,c,h,l,K,q,F){this.serviceId=f;this.sessionId=R;this.config=u;this.galService=O;this.JSC$17175_linkingSession=c;this.googleScopes=h;this.callerState=l;this.consentLanguageKeys=K;this.dynamicUrlParameters=q;this.partnerConfigMinReadTimestamp=F;this.currentFlow=0;O=this.JSC$17175_linkingSession;c=new Set;_.at(O,f8w,1)&&c.add(1);_.at(O,ufz,2)&&_.at(O,RMX,6)&&c.add(2);
_.at(O,R5S,3)&&_.at(O,RMX,6)&&c.add(3);_.at(O,iUm,4)&&c.add(6);this.supportedFlows=c;O=u.loggerType;c=u.clientEnvironment;a:{h=u.colorScheme;switch(h){case 0:h=1;break a;case 1:h=2;break a;case 2:h=3;break a;default:_.km(h)}h=void 0}a:{l=u.colorScheme;l=V6N(l);switch(l){case 0:l=1;break a;case 1:l=2;break a;default:_.km(l)}l=void 0}this.galLogger=(new mpS(O,u.authUser)).create(f,c,R,h,l)},EO5=function(f){return new Promise(function(R){var u,O,c,h,l,K,q,F,w,m;
return _.k(function(W){switch(W.nextAddress){case 1:u=u0m(f.currentFlow,f.supportedFlows),O=!1,c=new Yza(f.JSC$17175_linkingSession,f.config.dataUsageNoticeConfig);case 2:if(u===void 0){W.jumpTo(4);break}_.cl(W,5);var C=c,d=u,p=void 0;O?d===1&&(p=C.displayInfoMap.get(2)):d===2||d===3?p=C.displayInfoMap.get(1):d===1&&(p=C.displayInfoMap.get(3));h=p?p:[];l=f.consentLanguageKeys;K=_.Z(h);q=K.next();case 7:if(q.done)return f.currentFlow=u,_.A(W,vM2(WQe(f,l)),11);F=q.value;return _.A(W,Bce(F,f.config.dataUsageNoticeConfig.uiAdapter,
f.config.colorScheme,f.galLogger),10);case 10:w=W.yieldResult;if(w.statusCode!==1)return Z0h(f.serviceId),f.currentFlow=0,R(mg({statusCode:w.statusCode,statusMessage:w.statusMessage},f.callerState)),W.return();w.consentLanguageKeys!==void 0&&(l=w.consentLanguageKeys);q=K.next();W.jumpTo(7);break;case 11:m=W.yieldResult;if(m.statusCode!==10)return m.statusCode!==6&&(Z0h(f.serviceId),f.currentFlow=0),m.statusCode!==1&&f.callerState!==void 0&&(m.callerState=f.callerState),R(m),W.return();_.Bf(W,6);break;
case 5:_.ku(W);case 6:u=u0m(f.currentFlow,f.supportedFlows);O=!0;W.jumpTo(2);break;case 4:Z0h(f.serviceId),f.currentFlow=0,R(mg({statusCode:12,statusMessage:"Linking failed"},f.callerState)),_.KG(W)}})})},kLw=function(f,R,u){f.currentFlow=R;
return iB2(WQe(f,u)).then(function(O){return O.statusCode===10&&f.config.interactionMode===1&&u0m(f.currentFlow,f.supportedFlows)!==void 0?EO5(f):O})},WQe=function(f,R){return{flowParams:{serviceId:f.serviceId,
sessionId:f.sessionId,galService:f.galService,galLogger:f.galLogger,interactionMode:f.config.interactionMode,redirectServiceUrl:f.config.redirectServiceUrl,colorScheme:f.config.colorScheme,consentLanguageKeys:R,dynamicUrlParameters:f.dynamicUrlParameters,showCloseOption:f.config.showCloseOption,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp},currentFlow:f.currentFlow,config:f.config,session:f.JSC$17175_linkingSession,googleScopes:f.googleScopes,callerState:f.callerState}};var Cc5=function(f,R){this.config=f;this.galService=R.getService();this.JSC$17188_galRepository=R.JSC$17225_galRepository};
Cc5.prototype.getLink=function(f,R){return tPl(this,f,R)};
var tPl=function(f,R,u){return f.JSC$17188_galRepository.getLink({serviceId:R,scopes:void 0,capabilities:void 0,linkName:u}).then(function(O){return{statusCode:1,link:O}}).catch(function(O){return{statusCode:ArX(O.code),
statusMessage:O.message}})};
Cc5.prototype.deleteLink=function(f,R){return this.JSC$17188_galRepository.deleteLink(f,this.config.accountLinkingEntryPoint,R).then(function(){return{statusCode:1}}).catch(function(u){return{statusCode:ArX(u.code),
statusMessage:u.message}})};
Cc5.prototype.startLinkingSession=function(f){var R=f.serviceId;var u=f.sessionId;return X55({serviceId:R,sessionId:u!==void 0?u:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:f.loginHint,callerState:f.callerState,consentLanguageKeys:f.consentLanguageKeys,linkName:f.linkName,dynamicUrlParameters:f.dynamicUrlParameters,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp})};var a8m=null,Qhh=new WeakMap;var CAX=function(){};
CAX.prototype.send=function(f,R){tVz(f);return this.makeRequest(f).then(function(u){if(R){var O=new R;if(u!=null){if(R==null)throw Error("Yj");new R;throw Error("$j");}u=O}return u})};var yx5=function(f,R,u,O,c){this.gapiUrl=f;this.gapiKey=R;this.gapiConfigUpdates=u||{};this.gapiAuthParams=O||{};this.defaultApiId=c};
_.y(yx5,CAX);var NW5=function(f){return w52().then(function(R){R=R||window.gapi;dpS(f,R);return ENK(R,{apiKey:f.gapiKey,clientId:f.gapiAuthParams.clientId,scope:f.gapiAuthParams.scope,hostedDomain:f.gapiAuthParams.hostedDomain,fetchBasicProfile:f.gapiAuthParams.fetchBasicProfile}).then(function(){return R})})};
yx5.prototype.makeRequest=function(f){var R=this;return NW5(this).then(function(u){return _.k(function(O){if(O.nextAddress==1)return R.gapiAuthParams.minAuthTokenTimeRemaining===void 0?O.jumpTo(2):_.A(O,WY5(u,R.gapiAuthParams.minAuthTokenTimeRemaining),2);dpS(R,u);return O.return(LQm(u.client.request({root:R.gapiUrl,path:f.path,method:f.httpMethod,body:f.body,params:f.queryParams,headers:f.headers,authType:f.authType,apiId:f.apiId||R.defaultApiId})))})})};
var LQm=function(f){return new Promise(function(R,u){f.then(function(O){R(O.result===!1&&O.body!=null?{data:O.body}:O.result)},function(O){u(O.result===!1&&O.body!=null?{data:O.body}:O.result)})})},dpS=function(f,R){for(var u in f.gapiConfigUpdates)if(f.gapiConfigUpdates.hasOwnProperty(u)){var O=R,c=u,h=f.gapiConfigUpdates[u],l=O.config.get(c);
h!==l&&O.config.update(c,h)}};
yx5.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var B$=function(f,R,u,O,c,h,l,K){this.apiKey=R;this.authUser=u;this.oauthToken=O;this.bucket=c;this.locale=l;this.galSdkEventHandler=K;if(O===void 0){if(R===void 0)throw Error("ak");this.requestService=new yx5(f,R,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":h===void 0||h===!1,"client/xd3":h===!0})}this.galServiceClient=new HLh(f)};
B$.prototype.deleteLink=function(f){var R=f.serviceId;var u=f.sessionId;var O=f.accountLinkingEntryPoint;var c=f.linkName;var h=this,l;return _.k(function(K){var q=(new yD).setHeader(o2(h,u));var F=brz({serviceId:R,linkName:c});q=_.OO(q,2,F);l=_.TR(q,3,O);return K.return(h.makeRequest(h.galServiceClient.deleteLink,l,[1,3],[2,4]))})};
var hAa=function(f,R){var u=R.serviceId;var O=R.sessionId;var c=R.dynamicUrlParameters;var h=R.redirectState;var l=R.consentLanguageKeys;var K=R.partnerConfigMinReadTimestamp;var q;return _.k(function(F){var w=(new No).setHeader(o2(f,O,c));w=_.Vo(w,2,u);q=_.Vo(w,4,h);l!==void 0&&_.Vo(q,5,l);K!==void 0&&_.OO(q,6,K);return F.return(f.makeRequest(f.galServiceClient.JSC$17074_finishOAuth,q,[1,3],[2,4]))})};
B$.prototype.getLink=function(f){var R=f.serviceId;var u=f.sessionId;var O=f.scopes;var c=f.capabilities;var h=f.consistencyKey;var l=f.linkName;var K=this,q;return _.k(function(F){var w=(new L2).setHeader(o2(K,u)),m=brz({serviceId:R,scopes:O,capabilities:c,linkName:l});q=_.OO(w,2,m);h!==void 0&&(w=eqe(),w=_.Vo(w,2,h),_.OO(q,3,w));return F.return(K.makeRequest(K.galServiceClient.getLink,q,[1,3],[2,4]))})};
var rAX=function(f,R){var u=R.serviceId;var O=R.sessionId;var c=R.googleScopes;var h=R.consistencyKey;var l;return _.k(function(K){var q=(new d0).setHeader(o2(f,O));q=_.Vo(q,2,u);var F=Array.from(c.values());q=_.Ne(q,3,F,_.Pt);F=eqe();F=_.Vo(F,2,h);l=_.OO(q,4,F);return K.return(f.makeRequest(f.galServiceClient.JSC$17074_depositGoogleCredential,l,[1,3],[2,4]))})};
B$.prototype.startLinkingSession=function(f){var R=f.serviceId;var u=f.sessionId;var O=f.scopes;var c=f.capabilities;var h=f.loginHint;var l=f.supportedFlows;var K=f.completionUrl;var q=f.usePingPong;var F=f.twoWayLinking;var w=f.accountLinkingEntryPoint;var m=f.callerState;var W=f.consentLanguageKeys;var C=f.googleScopes;var d=f.dataUsageNoticeConfig;var p=f.linkName;var J=f.dynamicUrlParameters;var M=f.partnerConfigMinReadTimestamp;var P=this,g,x;return _.k(function(fh){if(c!==void 0&&O!==void 0)throw Error("Tj");
var V=(new bR).setHeader(o2(P,u,J));g=_.Vo(V,2,R);p!==void 0&&_.Vo(g,14,p);if(c!==void 0){V=g;var ZD=Array.from(c.values());_.Ne(V,5,ZD,_.Pt)}else O!==void 0&&(V=g,ZD=Array.from(O.values()),_.Ne(V,3,ZD,_.Pt));K!==void 0&&_.Vo(g,6,K);q!==void 0&&_.pa(g,15,q);l!==void 0&&(V=g,ZD=Array.from(l.values()),_.Ne(V,4,ZD,_.Cm));if(F!==void 0){if(F&&(!C||C.size===0))throw Error("bk");_.pa(g,8,F)}w!==void 0&&_.TR(g,9,w);h!==void 0&&_.Vo(g,13,h);m!==void 0&&(V=g,ZD=(new TextEncoder).encode(m),_.br(V,12,_.eY(ZD,
!1),_.UE()));W!==void 0&&_.Vo(g,16,W);M!==void 0&&_.OO(g,18,M);if(d!==void 0&&d.size>0||C!==void 0&&C.size>0)x=new cSm,C!==void 0&&C.size>0&&(V=x,ZD=Array.from(C.values()),_.Ne(V,1,ZD,_.Pt)),d!==void 0&&(d.has(0)&&_.Zmn(x,2,_.Cm,1,_.yS),d.has(1)&&_.Zmn(x,2,_.Cm,2,_.yS)),_.OO(g,17,x);return fh.return(P.makeRequest(P.galServiceClient.startLinkingSession,g,[1],[2]))})};
B$.prototype.getMetadata=function(){var f=this,R,u,O;return _.k(function(c){if(c.nextAddress==1)return R={},f.requestService?_.A(c,NW5(f.requestService),3):(R.Authorization="Bearer "+f.oauthToken,c.jumpTo(2));c.nextAddress!=2&&(u=c.yieldResult,R["X-Goog-Api-Key"]=f.apiKey,R["X-Goog-AuthUser"]=f.authUser!==void 0?f.authUser.toString():"0",(O=u.auth.getAuthHeaderValueForFirstParty([]))&&(R.Authorization=O));f.locale&&(R["accept-language"]=f.locale);return c.return(R)})};
B$.prototype.makeRequest=function(f,R,u,O){var c=this,h;return _.k(function(l){if(l.nextAddress==1)return _.A(l,c.getMetadata(),2);h=l.yieldResult;pJX(c,u);return l.return(f.bind(c.galServiceClient)(R,h).finally(function(){pJX(c,O)}))})};
var pJX=function(f,R){f.galSdkEventHandler!==void 0&&R.forEach(function(u){f.galSdkEventHandler.onEvent(u)})},o2=function(f,R,u){var O=new Et;
R=_.br(O,2,_.dN(R),0);R=_.TR(R,5,3);u=_.Ne(R,8,u,_.Pt);f.bucket!==void 0&&_.Vo(u,1,f.bucket);return u},brz=function(f){var R=f.serviceId;
var u=f.scopes;var O=f.capabilities;f=f.linkName;if(O!==void 0&&u!==void 0)throw Error("Tj");var c=new Pie;R=_.Vo(c,1,R);O!==void 0?(u=Array.from(O.values()),_.Ne(R,5,u,_.Pt)):u!==void 0&&(u=Array.from(u.values()),_.Ne(R,3,u,_.Pt));f!==void 0&&_.Vo(R,6,f);return R};var yr5=function(f){this.galService=new B$(f.alsDomain,f.apiKey,f.authUser,f.oauthToken,f.bucket,f.clientXd3,f.locale,f.galSdkEventHandler);this.JSC$17225_galRepository=new vGl(this.galService)};
yr5.prototype.getService=function(){return this.galService};var jA2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(jA2,_.e5);var DpX=function(f){var R=new jA2;return _.uO(R,1,f)};
jA2.prototype.setErrorMessage=function(f){return _.FH(this,2,f)};var JxX=[0,_.gZ,_.xT,_.gZ];var xf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(xf,_.e5);var zAm=[0,[1,2,3],_.$T,[0,$MX,nsX,-1],_.$T,[0,s4m,-1],_.UP0];var TWm=[0,_.GR,1,_.gZ,_.xT,-1,1,_.BCD,_.eT,_.gZ,-1,zAm];var HrS=[0,_.gZ,[0,_.BCD,_.eT,[0,_.xT]],_.ot,[0,_.gZ,-1]];var c$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(c$,_.e5);var IRe=[0,_.xT,_.gZ,-2,_.GR,_.gZ,_.GR,_.gZ,-2,1,_.ot];var MPh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(MPh,_.e5);var PAz=[0,_.GR];var Upt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Upt,_.e5);var eAt=[0,_.gZ,HrS,PAz,IRe,TWm];var vZz=_.rl(Upt,eAt);var GSh=[0,IBa];var Onm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Onm,_.e5);var BWS=[0,[1,3],fzw,_.gZ,fzw];var uR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(uR,_.e5);var oOK=[0,_.gZ];var xph=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(xph,_.e5);var Ot=function(f){return _.JM(f,jA2,2,R2)},SpS=function(f){var R=new xph;
return _.cz(R,2,R2,f)},R2=[1,
2];var $pK=[0,R2,_.$T,oOK,_.$T,JxX,_.ST,BWS,1,_.gZ,GSh];var gOw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(gOw,_.e5);var nOz=function(f){var R=new gOw;return _.cz(R,3,sAe,f)},sAe=[2,
3];var Sj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Sj,_.e5);var VPl=function(f,R){return _.OO(f,2,R)},Yph=function(f,R){return _.OO(f,8,R)},vOm=function(f,R){return _.OO(f,3,R)};var irl=[0,_.gZ,$pK,eAt,_.xtF,[0,[5,6],[0,_.gZ,-2],[0,_.GR,_.gZ,_.xT],[0,zAm],[0,_.xT,_.gZ,-1,_.oCC,_.gZ],_.$T,[0,[0,_.GR],_.gZ,-1],_.$T,[0,[3,4],_.gZ,-1,_.$T,[0,[0,_.gZ,_.ot]],_.$T,[0,[0,[0,[1,2],_.$T,[0],_.$T,[0]]]]]],_.xtF,-1,[0,sAe,_.gZ,_.$T,oOK,_.$T,JxX,_.ST,BWS,[0,IBa]]];var rxm=_.rl(Sj,irl),fmK=_.fj(irl);var RLm=function(){_.d9.call(this)};
_.y(RLm,_.d9);RLm.prototype.init=function(){};
new RLm;var uZX=_.Sg(["data-"]),O9S=_.Sg(["aria-"]),cFt=_.Sg(["aria-"]),$f=function(f,R){this.isLatencyMeasurementExperiment=f===void 0?!1:f;this.enableDialogA11yFix=R===void 0?!1:R;this.JSC$17254_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.wGk(_.Oe.location.href)},rhz=function(f,R){f.onConsentPrimitiveShownCallback=R},XBh=function(f,R){return f.overriddenIframeLoadTimeout?f.overriddenIframeLoadTimeout:R!==void 0?R:5E3},RGl=function(f){if(f.prewarmPromise!==void 0)return f.prewarmPromise;
f.prewarmPromise=new Promise(function(R,u){g0(f,1);hLt(f,Z92(f,!0),lml(f));f.iframe?f.prewarmChannel||kB5(f,f.iframe,R):u(Error("ck"))});
f.prewarmPromise.finally(function(){f.prewarmPromise=void 0});
return f.prewarmPromise};
$f.prototype.showPrimitive=function(){var f=this;if(this.consentPromise!==void 0)return this.consentPromise;var R=Date.now();KGm(this,R);this.consentPromise=new Promise(function(u,O){g0(f,0,R);var c=f.isDarkTheme();f.isLatencyMeasurementExperiment||f.initialLoadingStrategy===1||f.initialLoadingStrategy===2||(f.loadingBar||(f.loadingBar=b0K(getComputedStyle(document.body).direction==="rtl",c),f.loadingBar.style.position="fixed",f.loadingBar.style.zIndex="15000"),document.body.appendChild(f.loadingBar));
hLt(f,Z92(f),lml(f));f.iframe?f.channel||qY2(f,f.iframe,u,O):(AFt(f),O(Error("ck")))});
this.consentPromise.finally(function(){f.consentPromise=void 0});
return this.consentPromise};
var qY2=function(f,R,u,O){var c,h;_.k(function(l){switch(l.nextAddress){case 1:g0(f,3);c=!1;setTimeout(function(){if(!c){AFt(f);amN(f);FGK(f);var K=DpX(7).setErrorMessage("Timeout connecting to iframe");u(Yph(VPl(new Sj,SpS(K)),nOz(K)))}},XBh(f,wBK(f)));
if(!f.prewarmPromise){l.jumpTo(2);break}_.cl(l,3);return _.A(l,f.prewarmPromise,5);case 5:_.Bf(l,2);break;case 3:_.ku(l),h=DpX(4).setErrorMessage("Error while prewarming."),u(Yph(VPl(new Sj,SpS(h)),nOz(h)));case 2:f.prewarmChannel&&f.prewarmChannel.send(fmK(vOm(new Sj,f.consentPrimitiveRequest))),f.channel=_.VF({destination:f.JSC$17254_win,iframe:R,origin:mml(f),channelName:"cpw",onEstablished:function(){c=!0;AFt(f);f.isLatencyMeasurementExperiment||(f.JSC$17254_previousBodyOverflow=document.body.style.overflow,
f.JSC$17254_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,f.JSC$17254_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",f.enableDialogA11yFix&&window.addEventListener("blur",f.focusChangeListener));var K=f.iframe;K.style.bottom="0";K.style.position="fixed";K.style.right="0";K.style.border="none";K.style.left="0";K.style.top=
"0";K.style.zIndex="5000";K.style.pointerEvents="";K.style.visibility="";f.initialLoadingStrategy===2||f.initialLoadingStrategy===3?g0(f,4):g0(f,6);var q;(q=f.onConsentPrimitiveShownCallback)==null||q.call(f)},
onMessage:function(K){K=rxm(K.data);switch(_.p6(K,1)){case 1:amN(f);var q=p5h(_.Ry(K,_.Mm,7));q&&(f.initialLoadingStrategy!==2&&f.initialLoadingStrategy!==3||g0(f,6,q),g0(f,5,q));if(q=p5h(_.Ry(K,_.Mm,6)))g0(f,7,q),g0(f,8);var F,w;((F=_.Ry(K,xph,2))==null?void 0:_.QF(F,R2))!==0&&((w=_.Ry(K,gOw,8))==null?void 0:_.QF(w,sAe))!==0||O(Error("dk"));u(K);break;case 2:FGK(f)}}}),_.KG(l)}})},kB5=function(f,R,u){f.prewarmChannel=_.VF({destination:f.JSC$17254_win,
iframe:R,origin:mml(f),channelName:"pwcp",onEstablished:function(){g0(f,2);u()}})},mml=function(f){var R=_.k3(f.src).toString();
return R&&R.indexOf("://")<0&&R.indexOf("//")!==0?f.origin:_.wGk(R)},Z92=function(f,R){R=R===void 0?!1:R;
var u,O=new Map([["origin",f.origin],["hl",(u=Qmz(f))!=null?u:null]]);R&&O.set("pw","1");R=_.Z([["cpr",f.consentPrimitiveRequest.serialize()]]);for(u=R.next();!u.done;u=R.next()){var c=_.Z(u.value);u=c.next().value;c=c.next().value;O.set(u,c)}f.isDarkTheme()&&O.set("color_scheme","dark");return _.u_(f.src,O)},AFt=function(f){f.isLatencyMeasurementExperiment||f.loadingBar&&document.body.removeChild(f.loadingBar)};
$f.prototype.getSrc=function(){var f=_.gv(this.origin),R;var u=(R=_.Ry(this.consentPrimitiveRequest,MPh,3))==null?void 0:_.Rj(R,1);R="consent.google.com";u=u?"/u/"+encodeURIComponent(u.toString()):"";(f==null?0:f.endsWith("youtube.com"))?R="consent.youtube.com":(f=f==null?void 0:f.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(R="consent.google."+((f[1]?"co.":"")+encodeURIComponent(f[2])));return _.lh("https://"+R+"/signedin"+u+"/landing")};
var hLt=function(f,R,u){f.iframe||(f.iframe=document.createElement("iframe"),f.iframe.style.width="100%",f.iframe.style.height="100%",u!==112496729&&(f.iframe.style.colorScheme="auto"),f.isLatencyMeasurementExperiment&&(f.iframe.style.display="none"),_.D0(f.iframe,R),f.iframe.setAttribute("jsname","C5o1O"),WG9(f.iframe),document.body.appendChild(f.iframe))},WG9=function(f){f.style.bottom="-200vh";
f.style.position="fixed";f.style.right="-200vw";f.style.border="";f.style.left="";f.style.top="";f.style.zIndex="";f.style.pointerEvents="none";f.style.visibility="hidden"},amN=function(f){f.iframe&&(f.isLatencyMeasurementExperiment||(f.JSC$17254_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=f.JSC$17254_previousHtmlOverscroll),f.JSC$17254_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=f.JSC$17254_previousBodyOverscroll),f.JSC$17254_previousBodyOverflow!==
void 0&&(document.body.style.overflow=f.JSC$17254_previousBodyOverflow),f.enableDialogA11yFix&&ER2(f,!1)),WG9(f.iframe))};
$f.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(ER2(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var ER2=function(f,R){var u,O,c=(u=f.iframe)==null?void 0:(O=u.parentElement)==null?void 0:O.children;if(c)for(u=0;u<c.length;u++)O=c[u],O!==f.iframe&&(R?(O.hasAttribute("aria-hidden")&&_.Bz([_.rn(uZX)],O,"data-old-aria-hidden",O.getAttribute("aria-hidden")),_.Bz([_.rn(O9S)],O,"aria-hidden","true")):(O.removeAttribute("aria-hidden"),O.hasAttribute("data-old-aria-hidden")&&(_.Bz([_.rn(cFt)],O,"aria-hidden",O.getAttribute("data-old-aria-hidden")),O.removeAttribute("data-old-aria-hidden"))))},g0=function(f,
R,u){var O;
(O=f.latencyCallback)==null||O.call(f,{latencyType:R,timestampEpochMillis:u!=null?u:Date.now()})};var tnN=function(f,R,u){$f.call(this,R,u===void 0?!1:u);this.consentPrimitiveRequest=f;f=Qmz(this);if(!(0,_.PTB)(f))throw Error("H``"+String(f));this.src=this.getSrc();var O;this.initialLoadingStrategy=(O=_.Ry(this.consentPrimitiveRequest,c$,4))==null?void 0:_.p6(O,4)},CX5;
_.y(tnN,$f);var igm=function(f){var R=_.E("enable_primitive_dialog_aria_hide_siblings");f={request:f,enableDialogA11yFix:R===void 0?!1:R};CX5||(CX5=new tnN(f.request,f.isLatencyMeasurementExperiment||_.p6(f.request,1)===2,f.enableDialogA11yFix));return CX5},Qmz=function(f){var R;
return(R=_.Ry(f.consentPrimitiveRequest,c$,4))==null?void 0:_.bH(R,1)},KGm=function(f,R){if(!_.at(f.consentPrimitiveRequest,xf,5)){var u=f.consentPrimitiveRequest,O=new xf;
_.OO(u,5,O)}var c;if((c=_.Ry(f.consentPrimitiveRequest,xf,5))==null||_.AfP(_.AM(c,8))==null){var h;(h=_.Ry(f.consentPrimitiveRequest,xf,5))!=null&&_.C0(h,8,R)}},lml=function(f){var R;
return(R=_.Ry(f.consentPrimitiveRequest,xf,5))==null?void 0:_.Rj(R,1)};
tnN.prototype.isDarkTheme=function(){var f;return((f=_.Ry(this.consentPrimitiveRequest,c$,4))==null?void 0:_.p6(f,2))===2};
var wBK=function(f){var R;return((R=_.Ry(f.consentPrimitiveRequest,c$,4))==null?void 0:_.Rj(R,5))||void 0},FGK=function(f){f.channel=void 0;
f.prewarmChannel=void 0;f.iframe&&(document.body.contains(f.iframe)&&document.body.removeChild(f.iframe),f.iframe=void 0);CX5=void 0},urS=function(f){return $f.prototype.showPrimitive.call(f).then(function(R){return _.Ry(R,xph,2)})};for(var st={},yFt=(st[64]="ma",st[73]="ogb",st[89]="cr",st[21]="test",st[0]="unkn",st[137]="con",st[155]="hl",st[78]="yt",st[171]="lp",st[172]="ap",st[177]="amo",st[178]="pqe",st[74]="gg",st[1]="gm",st[140]="am",st),dm5=_.Z(Object.keys(yFt)),Nhe=dm5.next();!Nhe.done;Nhe=dm5.next());var LGe=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(LGe,_.e5);var b9m=[0,[2,3,4],_.gZ,gs2,fzw,_.UP0];var pBK=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(pBK,_.e5);var jm5=_.rl(pBK,[0,rlm,_.xT,_.gZ,_.xT,_.gZ,b9m]);var Dmw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Dmw,_.e5);Dmw.prototype.getCommand=function(){return _.p6(this,1)};
var JFt=function(){var f=new Dmw;return _.TR(f,1,0)};var zLt=_.fj([0,rlm,_.xT,[0,_.gZ,_.xT,-1]]);var Th9=new _.Kd("s"),H9w=new _.Kd("t"),Ima=new _.Kd("u"),Mn5=new _.Kd("v"),PXh=function(f,R,u){_.qZ.call(this,Th9);this.mediaKey=f;this.photoUrl=R;this.photoSource=u};
_.y(PXh,_.qZ);var UmK=function(){_.qZ.call(this,H9w)};
_.y(UmK,_.qZ);var eL5=function(f){f=f===void 0?!1:f;_.qZ.call(this,Ima);this.isError=f};
_.y(eL5,_.qZ);var GBX=function(){_.qZ.call(this,Mn5)};
_.y(GBX,_.qZ);var Bh5=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,$me=function(f){if(typeof f=="string"){if(f.charAt(0)==".")return oRm(f.substr(1));if(f.charAt(0)=="["){var R=Bh5.exec(f);f=f.indexOf("=")==-1?void 0:R[3];return xmm(R[1],f)}return SYh(f)}return f},oRm=function(f){return function(R){return R.getAttribute&&_.Pb(R,f)}},xmm=function(f,R){return function(u){return R!==void 0?u.getAttribute&&u.getAttribute(f)==R:u.hasAttribute&&u.hasAttribute(f)}},SYh=function(f){f=f.toUpperCase();
return function(R){return(R=R.tagName)&&R.toUpperCase()==f}},gRX=function(){return!0};var n2=function(f,R){this.JSC$17282_key_=f;this.JSC$17282_value_=R},VD=function(f){throw Error("ek`"+f.JSC$17282_key_);
},smK=function(f,R){return new TypeError("fk`"+R+"`"+f.JSC$17282_key_+"`"+f.JSC$17282_value_+"`"+typeof f.JSC$17282_value_)};
n2.prototype.string=function(f){if(arguments.length==0)var R=nRm(this);else{var u;R=(u=Vna(this))!=null?u:f}return R};
var nRm=function(f){var R=Vna(f);R===null&&VD(f);return R},Vna=function(f){var R=f.JSC$17282_value_;
if(R==null)return null;if(typeof R==="string")return R;throw smK(f,"string");};
n2.prototype.bool=function(f){if(arguments.length==0){var R=this.optionalBool();R===null&&VD(this)}else{var u;R=(u=this.optionalBool())!=null?u:f}return R};
n2.prototype.optionalBool=function(){var f=this.JSC$17282_value_;if(f==null)return null;if(typeof f==="boolean")return f;if(typeof f==="string"){f=f.toLowerCase();if(f==="true"||f==="1")return!0;if(f==="false"||f==="0")return!1}throw smK(this,"boolean");};
n2.prototype.number=function(f){if(arguments.length==0){var R=YYN(this);R===null&&VD(this)}else{var u;R=(u=YYN(this))!=null?u:f}return R};
var YYN=function(f){var R=f.JSC$17282_value_;if(R==null)return null;if(typeof R==="number")return R;if(typeof R==="string"){var u=Number(R);if(!isNaN(u)&&(u!==0||R.trim().length!==0))return u}throw smK(f,"number");};
n2.prototype.toString=function(){return nRm(this)};
n2.prototype.array=function(f){if(arguments.length==0){var R=vRh(this);R===null&&VD(this);return R}R=vRh(this);return R==null?f:R};
var vRh=function(f){var R=f.JSC$17282_value_;if(R==null)return null;Array.isArray(R)||(typeof R!=="string"?R=[R]:(R=R.trim(),R=R==""?[]:R.split(",").map(function(u){return u.trim()})));
return i9K(f,R)},i9K=function(f,R){var u=f.JSC$17282_key_+"[";
return Array.from(R,function(O,c){return new n2(u+c+"]",O)})};
n2.prototype.object=function(f){var R=this.JSC$17282_value_;if(R==null)return f===void 0&&VD(this),f;if(typeof R==="object"&&R.constructor===Object){f={};var u=this.JSC$17282_key_+".",O;for(O in R)f[O]=new n2(u+O,R[O]);return f}throw smK(this,"object");};var Yf=function(f){this.list_=rFm(f)},rFm=function(f){if(f instanceof Yf)f=f.list_;
else if(f[0]instanceof Yf){for(var R=new Set,u=0;u<f.length;u++)for(var O=_.Z(f[u].list_),c=O.next();!c.done;c=O.next())R.add(c.value);f=R}return[].concat(_.yq(f))};
_.X=Yf.prototype;_.X.each=function(f,R,u){((u===void 0?0:u)?jSt:_.Gf)(this.list_,f,R);return this};
_.X.size=function(){return this.list_.length};
_.X.isEmpty=function(){return this.list_.length===0};
_.X.get=function(f){return this.list_[f]||null};
_.X.el=function(){return this.list_[0]||null};
_.X.map=function(f,R){return _.L8(this.list_,f,R)};
_.X.equals=function(f){return this===f||_.Af(this.list_,f.list_)};
_.X.first=function(){return this.list_.length==0?null:new v$(this.list_[0])};
_.X.find=function(f){var R=[];this.each(function(u){u=u.querySelectorAll(String(f));for(var O=0;O<u.length;O++)R.push(u[O])});
return new Yf(R)};
_.X.parent=function(){var f=[];this.each(function(R){(R=R.parentElement||null)&&!_.g7(f,R)&&f.push(R)});
return new Yf(f)};
_.X.children=function(){var f=[];this.each(function(R){R=_.jA(R);for(var u=0;u<R.length;u++)f.push(R[u])});
return new Yf(f)};
_.X.filter=function(f){f=_.Rt(this.list_,$me(f));return new Yf(f)};
_.X.closest=function(f){var R=[],u=$me(f),O=function(c){return _.vR(c)&&u(c)};
this.each(function(c){(c=_.Tx(c,O,!0))&&!_.g7(R,c)&&R.push(c)});
return new Yf(R)};
_.X.next=function(f){return fSe(this,_.T7I,f)};
_.X.prev=function(f){return fSe(this,Rqm,f)};
var fSe=function(f,R,u){var O=[];var c=u?$me(u):gRX;f.each(function(h){(h=R(h))&&c(h)&&O.push(h)});
return new Yf(O)};
Yf.prototype.setClass=function(f){return this.each(function(R){_.MZ(R,f)})};
var RKh=function(f,R){return f.each(function(u){_.sx(u,R)})},uxw=function(f,R){return f.each(function(u){_.$r(u,R)})};
Yf.prototype.toggleClass=function(f,R){return R===!0?RKh(this,f):R===!1?uxw(this,f):this.each(function(u){_.Pb(u,f)?_.$r(u,f):_.sx(u,f)})};
Yf.prototype.setText=function(f){return this.each(function(R){_.Dj(R,f)})};
var OSh=function(f){f.each(function(R){R.removeAttribute("aria-hidden")})};
Yf.prototype.getStyle=function(f){if(this.list_.length>0){var R=this.list_[0],u=R.style[_.wu(f)];return typeof u!=="undefined"?u:R.style[_.g5i(R,f)]||""}};
Yf.prototype.getData=function(f){if(this.list_.length===0)return new n2(f,null);var R=IKm(this.list_[0],f);return new n2(f,R)};
Yf.prototype.focus=function(f){try{f?this.el().focus(f):this.el().focus()}catch(R){}return this};
Yf.prototype.click=function(){var f=_.jF(this.el());if(f.createEvent){var R=f.createEvent("MouseEvents");R.initMouseEvent("click",!0,!0,f.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(R)}else f=f.createEventObject(),f.clientX=0,f.clientY=0,f.screenX=0,f.screenY=0,f.altKey=!1,f.ctrlKey=!1,f.shiftKey=!1,f.button=0,this.el().fireEvent("onclick",f)};
var iR=function(f,R,u,O){function c(K,q,F){var w=q;q&&q.parentNode&&(w=q.cloneNode(!0));K(w,F)}
O=O===void 0?!1:O;if(f.list_.length==1){var h=f.list_[0],l=function(K){return R(K,h)};
u instanceof Yf?u.each(l,void 0,O):Array.isArray(u)?(O?jSt:_.Gf)(u,l):l(u);return f}return f.each(function(K){u instanceof Yf?u.each(function(q){c(R,q,K)}):Array.isArray(u)?_.Gf(u,function(q){c(R,q,K)}):c(R,u,K)})};
_.X=Yf.prototype;_.X.append=function(f){return iR(this,function(R,u){R&&u.appendChild(R)},f)};
_.X.appendTo=function(f){(new Yf([f])).append(this);return this};
_.X.remove=function(){return iR(this,function(f,R){_.Q1(R)},null)};
_.X.empty=function(){return iR(this,function(f,R){_.Lp(R)},null)};
_.X.after=function(f,R){return iR(this,function(u,O){u&&_.pp(u,O)},f,!(R===void 0||R))};
_.X.before=function(f){return iR(this,function(R,u){R&&_.bw(R,u)},f)};
_.X.replaceWith=function(f){return iR(this,function(R,u){R&&_.DXC(R,u)},f)};
_.X.toggle=function(f){return this.each(function(R){_.$$(R,f)})};
_.X.show=function(){return this.toggle(!0)};
_.X.hide=function(){return this.toggle(!1)};
_.X.trigger=function(f,R,u,O){return cdK(this,f,R,u,O)};
var cdK=function(f,R,u,O,c){return f.each(function(h){_.y1n(_.jF(h)).triggerWizEventInternal(h,R,u,O,c)})},v$=function(f,R){f instanceof Yf&&(R=f.list_,f=null);
this.list_=rFm(f!=null?[f]:R)};
_.f6(v$,Yf);_.X=v$.prototype;_.X.children=function(){return new Yf(Array.prototype.slice.call(_.jA(this.list_[0])))};
_.X.each=function(f,R){f.call(R,this.list_[0],0);return this};
_.X.size=function(){return 1};
_.X.el=function(){return this.list_[0]};
_.X.first=function(){return this};var r0=function(f,R){R=R===void 0?window:R;this.hostId=f;this.JSC$17293_win=R;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$17293_previousHtmlOverscroll=this.JSC$17293_previousBodyOverscroll=this.JSC$17293_previousBodyOverflow="";this.eventTarget=new _.mq;this.JSC$17293_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
ZSX=function(f){var R=X9l(X9l(X9l(new hKN(78),"po"),"hppp"),"hhc");
R.authUser=Number(_.Tf("SESSION_INDEX","0"));R.colorScheme=f;return R};
r0.prototype.getOrigin=function(){return this.origin?this.origin:_.Vc(_.nd(_.sF(new _.gu,this.JSC$17293_win.location.protocol),this.JSC$17293_win.location.hostname),this.JSC$17293_win.location.port).toString()};
r0.prototype.getTargetOrigin=function(){return _.Vc(_.nd(_.sF(new _.gu,this.scheme),this.domain),this.port)};
r0.prototype.preloadIframe=function(f){var R=this;if(this.iframeLoadPromise===void 0){var u=document.createElement("iframe");this.iframe=u;I8S(u,f);this.iframeLoadPromise=new Promise(function(O,c){var h=!1,l=function(K){K.stopPropagation();u.removeEventListener("error",l);u.removeEventListener("securitypolicyviolation",l);c(Error("gk",{cause:K}))};
u.addEventListener("error",l);u.addEventListener("securitypolicyviolation",l);setTimeout(function(){h||c(Error("hk"))},3E4);
lS9(R,u,function(){h=!0;u.removeEventListener("error",l);u.removeEventListener("securitypolicyviolation",l);O()})});
ka9(this);f=this.getTargetOrigin().toString();u.setAttribute("allow","camera "+f+"; display-capture "+f);this.parentElement.appendChild(u)}return this.iframeLoadPromise};
var Adl=function(f,R){var u,O;return _.k(function(c){if(c.nextAddress==1)return u=b0K(getComputedStyle(f.parentElement).direction==="rtl"),f.parentElement.appendChild(u),document.activeElement instanceof HTMLElement&&(f.elementToFocusAfterClose=document.activeElement),_.cl(c,2),_.A(c,f.preloadIframe(R),4);if(c.nextAddress!=2){f.parentElement.removeChild(u);f.JSC$17293_previousBodyOverflow=f.parentElement.style.overflow;f.JSC$17293_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
f.JSC$17293_previousBodyOverscroll=f.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";f.parentElement.style.overscrollBehavior="contain";f.parentElement.style.overflow="hidden";var h=f.iframe;h.style.bottom="0";h.style.border="none";h.style.height="100%";h.style.left="0";h.style.position=f.iframePosition;h.style.right="0";h.style.top="0";h.style.width="100%";h.style.zIndex="2202";h.setAttribute("aria-hidden","false");h.setAttribute("aria-modal","true");
f.opened=!0;Kzw(f);return _.Bf(c,0)}O=_.ku(c);f.parentElement.removeChild(u);zMm(f.isDarkTheme());qX2(f,!1);throw Error("ik",{cause:O});})},qX2=function(f,R){R=R===void 0?!0:R;
f.iframe!==void 0&&(aSz(f),document.documentElement.style.overscrollBehavior=f.JSC$17293_previousHtmlOverscroll,f.parentElement.style.overscrollBehavior=f.JSC$17293_previousBodyOverscroll,f.parentElement.style.overflow=f.JSC$17293_previousBodyOverflow,f.elementToFocusAfterClose!==void 0&&(f.elementToFocusAfterClose.focus(),f.elementToFocusAfterClose=void 0),R?ka9(f):(f.parentElement.removeChild(f.iframe),f.iframe=void 0,f.iframeLoadPromise=void 0,f.mainChannel=void 0),f.opened=!1)},aSz=function(f){f.backgroundElementsAriaHiddenIsNull&&
(OSh(f.backgroundElementsAriaHiddenIsNull),f.backgroundElementsAriaHiddenIsNull=void 0);
f.backgroundElementsAriaHiddenIsFalse&&(f.backgroundElementsAriaHiddenIsFalse.each(function(R){R.setAttribute("aria-hidden","false")}),f.backgroundElementsAriaHiddenIsFalse=void 0);
f.backgroundElementsWithoutInert&&(f.backgroundElementsWithoutInert.each(function(R){R.removeAttribute("inert")}),f.backgroundElementsWithoutInert=void 0)},Kzw=function(f){f.backgroundElementsAriaHiddenIsNull=(new v$(f.iframe.parentElement)).children().filter(function(R){return R.getAttribute("aria-hidden")===null&&R!==f.iframe});
f.backgroundElementsAriaHiddenIsNull.each(function(R){R.setAttribute("aria-hidden","true")});
f.backgroundElementsAriaHiddenIsFalse=(new v$(f.iframe.parentElement)).children().filter(function(R){return R.getAttribute("aria-hidden")==="false"&&R!==f.iframe});
f.backgroundElementsAriaHiddenIsFalse.each(function(R){R.setAttribute("aria-hidden","true")});
f.backgroundElementsWithoutInert=(new v$(f.iframe.parentElement)).children().filter(function(R){return!R.hasAttribute("inert")&&R!==f.iframe});
f.backgroundElementsWithoutInert.each(function(R){R.setAttribute("inert","true")})},ka9=function(f){f=f.iframe;
f.style.bottom="-1000px";f.style.position="fixed";f.style.right="-1000px";f.style.border="";f.style.height="";f.style.left="";f.style.top="";f.style.width="";f.style.zIndex="";f.setAttribute("aria-hidden","true");f.setAttribute("aria-modal","false")};
r0.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var hKN=function(f,R){r0.call(this,yFt[f],R);this.options=[];this.style=""};
_.y(hKN,r0);var FzN=function(f){f.style="youtube";return f},w9S=function(f,R){f.eventTarget.listen(Ima,R);
return f},mSa=function(f,R){f.eventTarget.listen(Th9,R);
return f},X9l=function(f,R){f.options.push(R);
return f},QGt=function(f){var R=[f.getOrigin()];
f.ancestorOrigins&&R.push.apply(R,_.yq(f.ancestorOrigins));var u=new _.gu(f.JSC$17293_win.location.href),O=f.startUrl?f.startUrl:f.options.includes("po")?"profile-picture/art":"profile-picture";R=X2(_.YI(f.getTargetOrigin(),O),"origin",R);f.startUrl&&_.Sr(R,"startPath",f.startUrl);f.authUser>0&&_.Sr(R,"authuser",f.authUser);f.pageId!==void 0&&_.Sr(R,"pageId",f.pageId);_.Sr(R,"hostId",f.hostId);f.jsMode!==void 0&&_.Sr(R,"jsmode",f.jsMode);f.options.length>0&&_.Sr(R,"opts",f.options.join(","));try{for(var c=
_.Z(["utm_source","utm_medium","utm_campaign","utm_content"]),h=c.next();!h.done;h=c.next()){var l=h.value;_.x$(u,l)&&_.Sr(R,l,_.x$(u,l))}var K,q=(K=f.hl)!=null?K:_.x$(u,"hl");q!==void 0&&_.Sr(R,"hl",q)}catch(F){if(!(F instanceof URIError))throw F;}f.colorScheme&&_.Sr(R,"theme",f.colorScheme);f.style&&_.Sr(R,"style",f.style);return R},WzX=function(f,R){f.mainChannel=_.VF({destination:f.JSC$17293_win,
iframe:R,origin:f.getTargetOrigin().toString(),channelName:"ow",onMessage:function(u){u=jm5(u.data);if(R===f.iframe)switch(_.p6(u,1)){case 1:f.eventTarget.dispatchEvent(new eL5);qX2(f);break;case 2:f.eventTarget.dispatchEvent(new PXh(_.bH(u,4),_.bH(u,2),_.p6(u,5),_.Ry(u,LGe,6)));break;case 0:var O;f.eventTarget.dispatchEvent(new UmK(_.bH(u,2),(O=_.p6(u,3))!=null?O:0));break;case 3:f.eventTarget.dispatchEvent(new eL5(!0));qX2(f,!1);break;case 4:f.eventTarget.dispatchEvent(new GBX)}}})},lS9=function(f,
R,u){_.VF({destination:f.JSC$17293_win,
iframe:R,origin:_.Vc(_.nd(_.sF(new _.gu,f.scheme),f.domain),f.port).toString(),channelName:"owi",onMessage:function(O){R===f.iframe&&(u!==void 0&&u(),WzX(f,R),f.opened&&f.mainChannel.send(zLt(JFt())),O.reply(),lS9(f,R))}})};
hKN.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?r0.prototype.preloadIframe.call(this,QGt(this).toString()):this.iframeLoadPromise};
hKN.prototype.openPicker=function(f){var R=this;return _.k(function(u){if(u.nextAddress==1)return R.startUrl=f?f:R.options.includes("po")?"profile-picture/art":"profile-picture",_.A(u,Adl(R,QGt(R).toString()),2);if(R.mainChannel){var O=R.mainChannel,c=O.send;var h=JFt();h=_.FH(h,2,R.startUrl);c.call(O,zLt(h))}_.KG(u)})};var Ejt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(Ejt,_.e5);_.X=Ejt.prototype;_.X.getSize=function(){return AR(this,1)};
_.X.setSize=function(f){return _.zR(this,1,f)};
_.X.getWidth=function(){return AR(this,12)};
_.X.getHeight=function(){return AR(this,13)};
_.X.setCenterCrop=function(f){return _.X$(this,20,f)};
_.X.getHtml=function(){return _.dZ(this,4)};
_.X.getToken=function(){return _.w9(this,24)};
_.X.setToken=function(f){return _.FH(this,24,f)};
_.X.getBackgroundColor=function(){return AR(this,87)};
_.X.hasBackgroundColor=function(){return _.Na(_.AM(this,87))!=null};
_.X.getStoryboardLevel=function(){return AR(this,109)};var fX=function(f){this.JSC$17301_value_=void 0;this.childNodes_={};if(f){var R=_.Fyi(f);f=_.g4(f);for(var u=0;u<R.length;u++)this.set(R[u],f[u])}};
fX.prototype.set=function(f,R){tg5(this,f,R,!1)};
fX.prototype.add=function(f,R){tg5(this,f,R,!0)};
var tg5=function(f,R,u,O){for(var c=0;c<R.length;c++){var h=R.charAt(c);f.childNodes_[h]||(f.childNodes_[h]=new fX);f=f.childNodes_[h]}if(O&&f.JSC$17301_value_!==void 0)throw Error("jk`"+R);f.JSC$17301_value_=u},CkK=function(f,R){for(var u=0;u<R.length;u++)if(f=f.childNodes_[R.charAt(u)],!f)return;
return f};
fX.prototype.get=function(f){return(f=CkK(this,f))?f.JSC$17301_value_:void 0};
fX.prototype.getValues=function(){var f=[];ydX(this,f);return f};
var ydX=function(f,R){f.JSC$17301_value_!==void 0&&R.push(f.JSC$17301_value_);for(var u in f.childNodes_)ydX(f.childNodes_[u],R)};
fX.prototype.getKeys=function(f){var R=[];if(f){for(var u=this,O=0;O<f.length;O++){var c=f.charAt(O);if(!u.childNodes_[c])return[];u=u.childNodes_[c]}dSm(u,f,R)}else dSm(this,"",R);return R};
var dSm=function(f,R,u){f.JSC$17301_value_!==void 0&&u.push(R);for(var O in f.childNodes_)dSm(f.childNodes_[O],R+O,u)};
_.X=fX.prototype;_.X.containsKey=function(f){return this.get(f)!==void 0};
_.X.containsValue=function(f){if(this.JSC$17301_value_===f)return!0;for(var R in this.childNodes_)if(this.childNodes_[R].containsValue(f))return!0;return!1};
_.X.clear=function(){this.childNodes_={};this.JSC$17301_value_=void 0};
_.X.remove=function(f){for(var R=this,u=[],O=0;O<f.length;O++){var c=f.charAt(O);if(!R.childNodes_[c])throw Error("kk`"+f);u.push([R,c]);R=R.childNodes_[c]}f=R.JSC$17301_value_;for(delete R.JSC$17301_value_;u.length>0;)if(O=u.pop(),R=O[0],O=O[1],R.childNodes_[O].isEmpty())delete R.childNodes_[O];else break;return f};
_.X.clone=function(){return new fX(this)};
_.X.getCount=function(){return X72(this.getValues())};
_.X.isEmpty=function(){return this.JSC$17301_value_===void 0&&_.dq.isEmpty(this.childNodes_)};var GLm=function(){if(!NIS){var f=NIS=new fX,R;for(R in Lza)f.add(R,Lza[R])}},NIS,Rl=function(f,R){this.types=f;
this.setters=R},Lza={a:new Rl([3,
0],[function(f,R){_.X$(f,21,R)},
function(f,R){_.zR(f,56,R)}]),
al:new Rl([3],[function(f,R){_.X$(f,74,R)}]),
b:new Rl([3,0],[function(f,R){_.X$(f,23,R)},
function(f,R){_.zR(f,38,R)}]),
ba:new Rl([0],[function(f,R){_.zR(f,85,R)}]),
bc:new Rl([0],[function(f,R){_.zR(f,87,R)}]),
br:new Rl([0],[function(f,R){_.zR(f,86,R)}]),
c:new Rl([3,0],[function(f,R){_.X$(f,2,R)},
function(f,R){_.zR(f,39,R)}]),
cc:new Rl([3],[function(f,R){_.X$(f,51,R)}]),
ci:new Rl([3],[function(f,R){_.X$(f,32,R)}]),
ckm:new Rl([3],[function(f,R){_.X$(f,104,R)}]),
cp:new Rl([0],[function(f,R){_.zR(f,92,R)}]),
cr:new Rl([3],[function(f,R){_.X$(f,108,R)}]),
cv:new Rl([0],[function(f,R){_.zR(f,94,R)}]),
d:new Rl([3],[function(f,R){_.X$(f,3,R)}]),
dc:new Rl([5],[function(f,R){_.FH(f,99,R)}]),
df:new Rl([3],[function(f,R){_.X$(f,80,R)}]),
dv:new Rl([3],[function(f,R){_.X$(f,90,R)}]),
e:new Rl([0],[function(f,R){_.zR(f,15,R)}]),
em:new Rl([0],[function(f,R){_.zR(f,107,R)}]),
f:new Rl([4],[function(f,R){_.FH(f,16,R)}]),
fg:new Rl([3],[function(f,R){_.X$(f,34,R)}]),
fh:new Rl([3],[function(f,R){_.X$(f,30,R)}]),
fm:new Rl([3],[function(f,R){_.X$(f,84,R)}]),
fo:new Rl([2],[function(f,R){_.OL(f,79,_.Km(R))}]),
ft:new Rl([3],[function(f,R){_.X$(f,50,R)}]),
fv:new Rl([3],[function(f,R){_.X$(f,31,R)}]),
g:new Rl([3],[function(f,R){_.X$(f,14,R)}]),
gce:new Rl([4],[function(f,R){_.FH(f,112,R)}]),
gd:new Rl([3],[function(f,R){_.X$(f,83,R)}]),
gm:new Rl([3],[function(f,R){_.X$(f,105,R)}]),
h:new Rl([3,0],[function(f,R){_.X$(f,4,R)},
function(f,R){_.zR(f,13,R)}]),
i:new Rl([3],[function(f,R){_.X$(f,22,R)}]),
ic:new Rl([0],[function(f,R){_.zR(f,71,R)}]),
id:new Rl([3],[function(f,R){_.X$(f,70,R)}]),
il:new Rl([3],[function(f,R){_.X$(f,96,R)}]),
ip:new Rl([3],[function(f,R){_.X$(f,54,R)}]),
iv:new Rl([0],[function(f,R){_.C0(f,75,R)}]),
j:new Rl([1],[function(f,R){R=R==null?R:z8m(R);_.OL(f,29,R)}]),
k:new Rl([3,0],[function(f,R){_.X$(f,17,R)},
function(f,R){_.zR(f,42,R)}]),
l:new Rl([0],[function(f,R){_.zR(f,44,R)}]),
lf:new Rl([3],[function(f,R){_.X$(f,65,R)}]),
lo:new Rl([3],[function(f,R){_.X$(f,97,R)}]),
m:new Rl([0],[function(f,R){_.zR(f,63,R)}]),
md:new Rl([3],[function(f,R){_.X$(f,91,R)}]),
mm:new Rl([4],[function(f,R){_.FH(f,81,R)}]),
mo:new Rl([3],[function(f,R){_.X$(f,73,R)}]),
mv:new Rl([3],[function(f,R){_.X$(f,66,R)}]),
n:new Rl([3],[function(f,R){f.setCenterCrop(R)}]),
nc:new Rl([3],[function(f,R){_.X$(f,55,R)}]),
nd:new Rl([3],[function(f,R){_.X$(f,53,R)}]),
ng:new Rl([3],[function(f,R){_.X$(f,95,R)}]),
ngm:new Rl([3],[function(f,R){_.X$(f,106,R)}]),
no:new Rl([3],[function(f,R){_.X$(f,37,R)}]),
ns:new Rl([3],[function(f,R){_.X$(f,40,R)}]),
nt0:new Rl([4],[function(f,R){_.FH(f,36,R)}]),
ntm:new Rl([3],[function(f,R){_.X$(f,114,R)}]),
nu:new Rl([3],[function(f,R){_.X$(f,46,R)}]),
nw:new Rl([3],[function(f,R){_.X$(f,48,R)}]),
o:new Rl([1,3],[function(f,R){R=R==null?R:z8m(R);_.OL(f,7,R)},
function(f,R){_.X$(f,27,R)}]),
p:new Rl([3,0],[function(f,R){_.X$(f,19,R)},
function(f,R){_.zR(f,43,R)}]),
pa:new Rl([3],[function(f,R){_.X$(f,61,R)}]),
pc:new Rl([0],[function(f,R){_.zR(f,88,R)}]),
pd:new Rl([3],[function(f,R){_.X$(f,60,R)}]),
pf:new Rl([3],[function(f,R){_.X$(f,67,R)}]),
pg:new Rl([3],[function(f,R){_.X$(f,72,R)}]),
pi:new Rl([2],[function(f,R){_.OL(f,76,_.Km(R))}]),
pp:new Rl([3],[function(f,R){_.X$(f,52,R)}]),
pt:new Rl([4],[function(f,R){_.FH(f,111,R)}]),
q:new Rl([4],[function(f,R){_.FH(f,28,R)}]),
r:new Rl([3,0],[function(f,R){_.X$(f,6,R)},
function(f,R){_.zR(f,26,R)}]),
ra:new Rl([3],[function(f,R){_.X$(f,103,R)}]),
rf:new Rl([3],[function(f,R){_.X$(f,100,R)}]),
rg:new Rl([3],[function(f,R){_.X$(f,59,R)}]),
rh:new Rl([3],[function(f,R){_.X$(f,49,R)}]),
rj:new Rl([3],[function(f,R){_.X$(f,57,R)}]),
ro:new Rl([2],[function(f,R){_.OL(f,78,_.Km(R))}]),
rp:new Rl([3],[function(f,R){_.X$(f,58,R)}]),
rw:new Rl([3],[function(f,R){_.X$(f,35,R)}]),
rwa:new Rl([3],[function(f,R){_.X$(f,64,R)}]),
rwu:new Rl([3],[function(f,R){_.X$(f,41,R)}]),
s:new Rl([3,0],[function(f,R){_.X$(f,33,R)},
function(f,R){f.setSize(R)}]),
sb:new Rl([0],[function(f,R){_.zR(f,110,R)}]),
sc:new Rl([0],[function(f,R){_.zR(f,89,R)}]),
sg:new Rl([3],[function(f,R){_.X$(f,82,R)}]),
sl:new Rl([0],[function(f,R){_.zR(f,109,R)}]),
sm:new Rl([3],[function(f,R){_.X$(f,93,R)}]),
t:new Rl([4],[function(f,R){f.setToken(R)}]),
tm:new Rl([3],[function(f,R){_.X$(f,113,R)}]),
u:new Rl([3],[function(f,R){_.X$(f,18,R)}]),
ut:new Rl([3],[function(f,R){_.X$(f,45,R)}]),
v:new Rl([0],[function(f,R){_.zR(f,62,R)}]),
vb:new Rl([0],[function(f,R){_.C0(f,68,R)}]),
vf:new Rl([4],[function(f,R){_.FH(f,102,R)}]),
vl:new Rl([0],[function(f,R){_.C0(f,69,R)}]),
vm:new Rl([3],[function(f,R){_.X$(f,98,R)}]),
w:new Rl([0],[function(f,R){_.zR(f,12,R)}]),
x:new Rl([0],[function(f,R){_.zR(f,9,R)}]),
y:new Rl([0],[function(f,R){_.zR(f,10,R)}]),
ya:new Rl([2],[function(f,R){_.OL(f,77,_.Km(R))}]),
z:new Rl([0],[function(f,R){_.zR(f,11,R)}])};
GLm.prototype.parse=function(f){var R=new Ejt,u=new Ejt;if(f=="")f=!0;else{f=f.split("-");for(var O=!0,c=0;c<f.length;c++){var h=f[c];if(h.length==0)O=!1;else{var l=h,K=!1;var q=l;var F=l.charAt(0);F!=F.toLowerCase()&&(K=!0,q=l.charAt(0).toLowerCase()+l.substring(1));var w=NIS;for(F=1;F<=q.length;++F){var m=w,W=q.substring(0,F);if(W.length==0?m.isEmpty():!CkK(m,W))break}q=F==1?null:(q=w.get(q.substring(0,F-1)))?{option:l.substring(0,F-1),value:l.substring(F-1),signed:K,attributes:q}:null;if(q){l=
[];K=[];F=!1;for(w=0;w<q.attributes.types.length;w++){m=q.attributes.types[w];var C=q.value;W=c;if(q.signed&&m==1)for(var d=C.length;d<12&&W<f.length-1;)C+="-"+f[W+1],d=C.length,++W;else if(m==2)for(;W<f.length-1&&f[W+1].match(/^[\d\.]/);)C+="-"+f[W+1],++W;d=q.attributes.setters[w];C=mZX(this,m)(q.option,C,R,u,d);if(C===null){F=!0;c=W;break}else l.push(m),K.push(C)}if(!F)for(q=0;q<K.length;q++)w=l[q],C=K[q],Qfe(this,w)(h,C);O=O&&F}else O=!1}}f=O}return new WqK(R,u,f)};
var uJ=function(f,R,u,O,c,h){c(u,R);f=f.charAt(0);h=h(f==f.toUpperCase());c(O,h)};
_.X=GLm.prototype;_.X.parseAndSetIntOption_=function(f,R,u,O,c){if(R=="")return 0;isFinite(R)&&(R=String(R));R=typeof R==="string"?/^\s*-?0x/i.test(R)?parseInt(R,16):parseInt(R,10):NaN;if(isNaN(R))return 1;uJ(f,R,u,O,c,Number);return null};
_.X.logIntParseError_=function(){};
_.X.parseAndSetFloatOption_=function(f,R,u,O,c){if(R=="")return 0;var h=Number(R);R=h==0&&_.Kh(R)?NaN:h;if(isNaN(R))return 1;uJ(f,R,u,O,c,Number);return null};
_.X.logFloatParseError_=function(){};
_.X.parseAndSetBoolOption_=function(f,R,u,O,c){if(R!="")return 2;uJ(f,!0,u,O,c,Boolean);return null};
_.X.logBoolParseError_=function(){};
_.X.parseAndSetStringOption_=function(f,R,u,O,c){if(R=="")return 0;uJ(f,R,u,O,c,function(h){return h?"1":""});
return null};
_.X.logStringParseError_=function(){};
_.X.parseAndSetUint64Base64Option_=function(f,R,u,O,c){if(R=="")return 0;uJ(f,R,u,O,c,function(h){return h?1:0});
return null};
var mZX=function(f,R){switch(R){case 0:return(0,_.NG)(f.parseAndSetIntOption_,f);case 2:return(0,_.NG)(f.parseAndSetFloatOption_,f);case 3:return(0,_.NG)(f.parseAndSetBoolOption_,f);case 4:return(0,_.NG)(f.parseAndSetStringOption_,f);case 1:return(0,_.NG)(f.parseAndSetUint64Base64Option_,f);default:return function(){}}},Qfe=function(f,R){switch(R){case 0:return(0,_.NG)(f.logIntParseError_,f);
case 2:return(0,_.NG)(f.logFloatParseError_,f);case 3:return(0,_.NG)(f.logBoolParseError_,f);case 4:case 1:return(0,_.NG)(f.logStringParseError_,f);default:return function(){}}},WqK=function(f,R,u){this.valueProto_=f;
this.signatureFlagProto_=R;this.JSC$17313_valid_=u};
WqK.prototype.isValid=function(){return this.JSC$17313_valid_};var MV5=function(f){this.JSC$17314_parser_=null;this.JSC$17314_components_=[];this.JSC$17314_parsedOptions_=null;EIh(this,f)},tDz=function(f){f.JSC$17314_parser_==null&&(f.JSC$17314_parser_=new GLm);
return f.JSC$17314_parser_},EIh=function(f,R){f.JSC$17314_parsedOptions_=R?typeof R==="string"?tDz(f).parse(R):R:tDz(f).parse("")},O5=function(f,R){return f==R?!1:!0};
_.X=MV5.prototype;_.X.JSC$17316_setCrop=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,_.dZ(u,2),_.dZ(R.signatureFlagProto_,2))&&_.X$(u,2,f);return this};
_.X.JSC$17316_setCircleCrop=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,qo(u,51),qo(R.signatureFlagProto_,51))&&_.X$(u,51,f);return this};
_.X.JSC$17316_setImageCrop=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,qo(u,32),qo(R.signatureFlagProto_,32))&&_.X$(u,32,f);return this};
_.X.JSC$17316_setHeight=function(f){var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,u.getHeight(),R.signatureFlagProto_.getHeight())&&_.zR(u,13,f);return this};
_.X.setCenterCrop=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,_.dZ(u,20),_.dZ(R.signatureFlagProto_,20))&&u.setCenterCrop(f);return this};
_.X.JSC$17316_setSmartCrop=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,_.dZ(u,19),_.dZ(R.signatureFlagProto_,19))&&_.X$(u,19,f);return this};
_.X.JSC$17316_setPad=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,qo(u,60),qo(R.signatureFlagProto_,60))&&_.X$(u,60,f);return this};
_.X.JSC$17316_setSmartCropUseFace=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,_.dZ(u,67),_.dZ(R.signatureFlagProto_,67))&&_.X$(u,67,f);return this};
_.X.JSC$17316_setSmartCropNoClip=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,_.dZ(u,52),_.dZ(R.signatureFlagProto_,52))&&_.X$(u,52,f);return this};
_.X.setSize=function(f){var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,u.getSize(),R.signatureFlagProto_.getSize())&&u.setSize(f);return this};
_.X.setToken=function(f){f=f||void 0;var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,u.getToken(),R.signatureFlagProto_.getToken())&&u.setToken(f);return this};
_.X.JSC$17316_setWidth=function(f){var R=this.JSC$17314_parsedOptions_,u=R.valueProto_;O5(f,u.getWidth(),R.signatureFlagProto_.getWidth())&&_.zR(u,12,f);return this};
_.X.clearOptions=function(){EIh(this,"");return this};
_.X.build=function(){this.JSC$17314_components_.length=0;var f=this.JSC$17314_parsedOptions_,R=f.valueProto_;f=f.signatureFlagProto_;cE(this,"s",R.getSize(),f.getSize());cE(this,"w",R.getWidth(),f.getWidth());XJ(this,"c",_.dZ(R,2),_.dZ(f,2));XJ(this,"d",_.dZ(R,3),_.dZ(f,3));cE(this,"h",R.getHeight(),f.getHeight());XJ(this,"s",qo(R,33),qo(f,33));XJ(this,"h",R.getHtml(),f.getHtml());XJ(this,"p",_.dZ(R,19),_.dZ(f,19));XJ(this,"pp",_.dZ(R,52),_.dZ(f,52));XJ(this,"pf",_.dZ(R,67),_.dZ(f,67));XJ(this,"n",
_.dZ(R,20),_.dZ(f,20));cE(this,"r",AR(R,26),AR(f,26));XJ(this,"r",_.dZ(R,6),_.dZ(f,6));XJ(this,"o",qo(R,27),qo(f,27));var u=_.yF(R,7,_.qH);hW(this,"o",u,_.yF(f,7,_.qH));u=_.yF(R,29,_.qH);hW(this,"j",u,_.yF(f,29,_.qH));cE(this,"x",AR(R,9),AR(f,9));cE(this,"y",AR(R,10),AR(f,10));cE(this,"z",AR(R,11),AR(f,11));XJ(this,"g",_.dZ(R,14),_.dZ(f,14));cE(this,"e",AR(R,15),AR(f,15));hW(this,"f",_.w9(R,16),_.w9(f,16));XJ(this,"k",qo(R,17),qo(f,17));XJ(this,"u",qo(R,18),!0);XJ(this,"ut",qo(R,45),!0);XJ(this,"i",
qo(R,22),!0);XJ(this,"a",qo(R,21),qo(f,21));XJ(this,"b",_.dZ(R,23),_.dZ(f,23));cE(this,"b",AR(R,38),AR(f,38));cE(this,"c",AR(R,39),AR(f,39),16,8);hW(this,"q",_.w9(R,28),_.w9(f,28));XJ(this,"fh",qo(R,30),qo(f,30));XJ(this,"fv",qo(R,31),qo(f,31));XJ(this,"fg",_.dZ(R,34),_.dZ(f,34));XJ(this,"ci",qo(R,32),qo(f,32));hW(this,"t",R.getToken(),f.getToken());hW(this,"nt0",_.w9(R,36),_.w9(f,36));XJ(this,"rw",_.dZ(R,35),_.dZ(f,35));XJ(this,"rwu",_.dZ(R,41),_.dZ(f,41));XJ(this,"rwa",_.dZ(R,64),_.dZ(f,64));XJ(this,
"nw",_.dZ(R,48),_.dZ(f,48));XJ(this,"rh",_.dZ(R,49),_.dZ(f,49));XJ(this,"no",_.dZ(R,37),_.dZ(f,37));XJ(this,"ns",qo(R,40),qo(f,40));cE(this,"k",AR(R,42),AR(f,42));cE(this,"p",AR(R,43),AR(f,43));cE(this,"l",AR(R,44),AR(f,44));cE(this,"v",AR(R,62),AR(f,62));XJ(this,"nu",qo(R,46),qo(f,46));XJ(this,"ft",qo(R,50),qo(f,50));XJ(this,"cc",qo(R,51),qo(f,51));XJ(this,"nd",qo(R,53),qo(f,53));XJ(this,"ip",qo(R,54),qo(f,54));XJ(this,"nc",qo(R,55),qo(f,55));cE(this,"a",AR(R,56),AR(f,56));XJ(this,"rj",qo(R,57),
qo(f,57));XJ(this,"rp",qo(R,58),qo(f,58));XJ(this,"rg",qo(R,59),qo(f,59));XJ(this,"pd",qo(R,60),qo(f,60));XJ(this,"pa",qo(R,61),qo(f,61));cE(this,"m",AR(R,63),AR(f,63));cE(this,"vb",a2(R,68),a2(f,68));cE(this,"vl",a2(R,69),a2(f,69));XJ(this,"lf",qo(R,65),qo(f,65));XJ(this,"mv",qo(R,66),qo(f,66));XJ(this,"id",qo(R,70),qo(f,70));cE(this,"ic",AR(R,71),!0);XJ(this,"pg",_.dZ(R,72),_.dZ(f,72));XJ(this,"mo",qo(R,73),qo(f,73));XJ(this,"al",qo(R,74),qo(f,74));cE(this,"iv",a2(R,75),a2(f,75));cE(this,"pi",F2(R,
76),F2(f,76));cE(this,"ya",F2(R,77),F2(f,77));cE(this,"ro",F2(R,78),F2(f,78));cE(this,"fo",F2(R,79),F2(f,79));XJ(this,"df",qo(R,80),qo(f,80));hW(this,"mm",_.w9(R,81),_.w9(f,81));XJ(this,"sg",qo(R,82),qo(f,82));XJ(this,"gd",qo(R,83),qo(f,83));XJ(this,"fm",qo(R,84),qo(f,84));cE(this,"ba",AR(R,85),AR(f,85));cE(this,"br",AR(R,86),AR(f,86));cE(this,"bc",R.getBackgroundColor(),f.getBackgroundColor(),16,8);cE(this,"pc",AR(R,88),AR(f,88),16,8);cE(this,"sc",AR(R,89),AR(f,89),16,8);XJ(this,"dv",qo(R,90),qo(f,
90));XJ(this,"md",qo(R,91),qo(f,91));cE(this,"cp",AR(R,92),AR(f,92));XJ(this,"sm",qo(R,93),qo(f,93));cE(this,"cv",AR(R,94),AR(f,94));XJ(this,"ng",qo(R,95),qo(f,95));XJ(this,"il",qo(R,96),qo(f,96));XJ(this,"lo",qo(R,97),qo(f,97));XJ(this,"vm",qo(R,98),qo(f,98));hW(this,"dc",_.w9(R,99),_.w9(f,99));XJ(this,"rf",qo(R,100),qo(f,100));hW(this,"vf",_.w9(R,102),_.w9(f,102));XJ(this,"ra",_.dZ(R,103),_.dZ(f,103));XJ(this,"ckm",qo(R,104),qo(f,104));XJ(this,"gm",qo(R,105),qo(f,105));XJ(this,"ngm",qo(R,106),qo(f,
106));cE(this,"em",AR(R,107),AR(f,107));XJ(this,"cr",qo(R,108),qo(f,108));cE(this,"sl",R.getStoryboardLevel(),f.getStoryboardLevel());cE(this,"sb",AR(R,110),AR(f,110));hW(this,"pt",_.w9(R,111),_.w9(f,111));hW(this,"gce",_.w9(R,112),_.w9(f,112));XJ(this,"tm",qo(R,113),qo(f,113));XJ(this,"ntm",qo(R,114),qo(f,114));return this.JSC$17314_components_.join("-")};
var cE=function(f,R,u,O,c,h){if(u!=null){var l=c==void 0||c!=10&&c!=16?10:c;u=Number(u).toString(l);c=new YCh;c.append(l==16?"0x":"");l=c.append;h==void 0?h="":(h-=u.length,h=h<=0?"":(0,_.w6h)("0",h));l.call(c,h);c.append(u);CVt(f,R,c.toString(),!!Number(O))}},XJ=function(f,R,u,O){u&&CVt(f,R,"",!!O)},hW=function(f,R,u,O){u&&CVt(f,R,String(u),!!Number(O))},CVt=function(f,R,u,O){O&&(R=R.charAt(0).toUpperCase()+R.substring(1));
f.JSC$17314_components_.push(R+u)};_.f6(t3,MV5);_.X=t3.prototype;_.X.JSC$17316_setCrop=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setCrop.call(this,f)};
_.X.JSC$17316_setHeight=function(f){f=f==null||f<0?void 0:f;f!=null&&this.setSize();return t3.superClass_.JSC$17316_setHeight.call(this,f)};
_.X.JSC$17316_setImageCrop=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setImageCrop.call(this,f)};
_.X.JSC$17316_setCircleCrop=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setCircleCrop.call(this,f)};
_.X.setSize=function(f){_.OE(f)&&(f=Math.max(f.width,f.height));f=f==null||f<0?void 0:f;f!=null&&(this.JSC$17316_setWidth(),this.JSC$17316_setHeight());return t3.superClass_.setSize.call(this,f)};
_.X.JSC$17316_setSmartCrop=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setSmartCrop.call(this,f)};
_.X.JSC$17316_setSmartCropNoClip=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setSmartCropNoClip.call(this,f)};
_.X.JSC$17316_setSmartCropUseFace=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setSmartCropUseFace.call(this,f)};
_.X.setCenterCrop=function(f){f&&Zy(this);return t3.superClass_.setCenterCrop.call(this,f)};
_.X.JSC$17316_setPad=function(f){f&&Zy(this);return t3.superClass_.JSC$17316_setPad.call(this,f)};
_.X.JSC$17316_setWidth=function(f){f=f==null||f<0?void 0:f;f!=null&&this.setSize();return t3.superClass_.JSC$17316_setWidth.call(this,f)};
var yom=function(f){f.clearOptions();var R=f.JSC$17314_parsedOptions_,u=R.valueProto_;O5(!0,_.dZ(u,3),_.dZ(R.signatureFlagProto_,3))&&_.X$(u,3,!0);return f},Zy=function(f){f.setCenterCrop();
f.JSC$17316_setCircleCrop();f.JSC$17316_setCrop();f.JSC$17316_setImageCrop();f.JSC$17316_setPad();f.JSC$17316_setSmartCrop();f.JSC$17316_setSmartCropNoClip();f.JSC$17316_setSmartCropUseFace()};
t3.prototype.build=function(){var f=this.JSC$17314_parsedOptions_.valueProto_;qo(f,18)||qo(f,45)?f.getSize()||this.setSize(0):(f=this.JSC$17314_parsedOptions_.valueProto_,f.getSize()||f.getWidth()||f.getHeight()||(this.setSize(),this.JSC$17316_setHeight(),this.JSC$17316_setWidth(),Zy(this)));return t3.superClass_.build.call(this)};var dZe=/^[^\/]*\/\//,lJ=function(f,R){R=R===void 0?!1:R;this.original_=f;this.originalPrefix_="";(f=this.original_.match(dZe))&&f[0]?(this.originalPrefix_=f[0],f=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):f="http://"+this.original_;this.uri_=_.oj(f,!0);this.isFreeformUrl_=R;this.JSC$17320_valid_=!0;this.obfuscated_=!1},N45=function(f,R){f.JSC$17322_pathPrefix_=f.JSC$17322_pathPrefix_?f.JSC$17322_pathPrefix_+("/"+R):R},k9=function(f){if(f.JSC$17322_components_==
void 0){var R=f.uri_.getPath().substring(1);
f.JSC$17322_pathPrefix_=null;if(f.isFreeformUrl_){f.JSC$17322_components_=[];if((R.match(/=/g)||[]).length>1)return f.JSC$17320_valid_=!1,f.JSC$17322_components_;var u=R.indexOf("=");u!=-1?(f.JSC$17322_components_.push(R.substr(0,u)),f.JSC$17322_components_.push(R.substr(u+1))):f.JSC$17322_components_.push(R);return f.JSC$17322_components_}f.JSC$17322_components_=R.split("/");R=f.JSC$17322_components_.length;R>2&&f.JSC$17322_components_[0]=="u"&&(N45(f,f.JSC$17322_components_[0]+"/"+f.JSC$17322_components_[1]),
f.JSC$17322_components_.shift(),f.JSC$17322_components_.shift(),R-=2);if(R==0||R==4||R>7)return f.JSC$17320_valid_=!1,f.JSC$17322_components_;if(R==2)N45(f,f.JSC$17322_components_[0]);else if(f.JSC$17322_components_[0]=="image")N45(f,f.JSC$17322_components_[0]);else if(R==7||R==3)return f.JSC$17320_valid_=!1,f.JSC$17322_components_;if(R<=3){f.obfuscated_=!0;R==3&&(N45(f,f.JSC$17322_components_[1]),f.JSC$17322_components_.shift(),--R);--R;u=f.JSC$17322_components_[R];var O=u.indexOf("=");O!=-1&&(f.JSC$17322_components_[R]=
u.substr(0,O),f.JSC$17322_components_.push(u.substr(O+1)))}}return f.JSC$17322_components_};
lJ.prototype.isValid=function(){k9(this);return this.JSC$17320_valid_};
lJ.prototype.isObfuscated=function(){k9(this);return this.obfuscated_};
var Lqw=function(f){k9(f);return f.isFreeformUrl_},KX=function(f){k9(f);
f.JSC$17322_pathPrefix_==void 0&&(f.JSC$17322_pathPrefix_=null);return f.JSC$17322_pathPrefix_},bdS=function(f){switch(k9(f).length){case 7:return!0;
case 6:return KX(f)==null;case 5:return!1;case 3:return!0;case 2:return KX(f)==null;case 1:return!1;default:return!1}},q0=function(f,R){if(Lqw(f))a:{switch(R){case 7:R=0;
break;case 4:if(!bdS(f)){f=null;break a}R=1;break;default:f=null;break a}f=k9(f)[R]}else if(f.isObfuscated())a:{var u=KX(f)!=null?1:0;switch(R){case 6:R=u;break;case 4:if(!bdS(f)){f=null;break a}R=1+u;break;default:f=null;break a}f=k9(f)[R]}else a:{u=KX(f)!=null?1:0;switch(R){case 0:R=u;break;case 1:R=1+u;break;case 2:R=2+u;break;case 3:R=3+u;break;case 4:if(!bdS(f)){f=null;break a}R=4+u;break;case 5:R=bdS(f)?1:0;R=4+u+R;break;default:f=null;break a}f=k9(f)[R]}return f};
lJ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=q0(this,4));return this.options_};var eMN=function(){};
eMN.prototype.parse=function(f,R){return new PcN(f,R===void 0?!1:R)};
var PcN=function(f,R){lJ.call(this,f,R===void 0?!1:R)};
_.y(PcN,lJ);_.f6(Cl,t3);var UBX;Cl.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Cl.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var f=Cl.superClass_.build.call(this),R=[];KX(this.parsedImageUrl_)!=null&&R.push(KX(this.parsedImageUrl_));var u=Lqw(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var O=this.parsedImageUrl_;O.obfuscatedData_==void 0&&(O.obfuscatedData_=q0(O,6));R.push(O.obfuscatedData_+(f?"="+f:""))}else if(u){O=R.push;var c=this.parsedImageUrl_;c.freeformUrlPath_===void 0&&(c.freeformUrlPath_=q0(c,
7));O.call(R,c.freeformUrlPath_);f&&R.push(f)}else O=R.push,c=this.parsedImageUrl_,c.obfuscatedGaiaId_==void 0&&(c.obfuscatedGaiaId_=q0(c,0)),O.call(R,c.obfuscatedGaiaId_),O=R.push,c=this.parsedImageUrl_,c.photoId_==void 0&&(c.photoId_=q0(c,1)),O.call(R,c.photoId_),O=R.push,c=this.parsedImageUrl_,c.imageVersion_==void 0&&(c.imageVersion_=q0(c,2)),O.call(R,c.imageVersion_),O=R.push,c=this.parsedImageUrl_,c.signature_==void 0&&(c.signature_=q0(c,3)),O.call(R,c.signature_),f&&R.push(f),f=R.push,O=this.parsedImageUrl_,
O.filename_==void 0&&(O.filename_=q0(O,5)),f.call(R,O.filename_);R=u?R.join("="):R.join("/");R=_.oj(this.protocolPrefix_+this.JSC$17328_domain_+"/"+R+(this.JSC$17328_query_?"?"+this.JSC$17328_query_:"")).toString();R.startsWith("%3a//")&&(R=R.replace("%3a//","://"));return R};var pbz=_.Sg(["viewBox"]),jfh=_.Sg(["width"]),DZw=_.Sg(["height"]),Joe=_.Sg(["fill"]),zIa=_.Sg(["id"]),T4m=_.Sg(["x"]),HdK=_.Sg(["y"]);BJm.prototype.getLength=function(){return this.parsedData.length};
BJm.prototype.write=function(f){for(var R=0,u=this.parsedData.length;R<u;R++)f.put(this.parsedData[R],8)};
var nNm=function(f,R){var u=new BJm(R);f.dataList.push(u);u=f.errorCorrectLevel;var O=1,c=encodeURI(R).toString().replace(/%[0-9a-fA-F]{2}/g,"a");R=c.length+(c.length!=R?3:0);c=0;for(var h=AW.length;c<=h;c++){var l=0;switch(u){case 1:l=AW[c][0];break;case 0:l=AW[c][1];break;case 3:l=AW[c][2];break;case 2:l=AW[c][3]}if(R<=l)break;else O++}if(O>AW.length)throw Error("tk");f.typeNumber=O;f.dataCache=null};
oNa.prototype.isDark=function(f,R){if(f<0||this.moduleCount<=f||R<0||this.moduleCount<=R)throw Error("lk`"+f+"`"+R);return this.modules[f][R]};
for(var VV5=function(f,R,u){f.moduleCount=f.typeNumber*4+17;f.modules=Array(f.moduleCount);for(var O=0;O<f.moduleCount;O++){f.modules[O]=Array(f.moduleCount);for(var c=0;c<f.moduleCount;c++)f.modules[O][c]=null}IqS(f,0,0);IqS(f,f.moduleCount-7,0);IqS(f,0,f.moduleCount-7);O=MDS[f.typeNumber-1];for(c=0;c<O.length;c++)for(var h=0;h<O.length;h++){var l=O[c],K=O[h];if(f.modules[l][K]==null)for(var q=-2;q<=2;q++)for(var F=-2;F<=2;F++)f.modules[l+q][K+F]=q==-2||q==2||F==-2||F==2||q==0&&F==0?!0:!1}for(O=
8;O<f.moduleCount-8;O++)f.modules[O][6]==null&&(f.modules[O][6]=O%2==0);for(O=8;O<f.moduleCount-8;O++)f.modules[6][O]==null&&(f.modules[6][O]=O%2==0);O=f.errorCorrectLevel<<3|u;for(c=O<<10;al(c)-al(1335)>=0;)c^=1335<<al(c)-al(1335);O=(O<<10|c)^21522;for(c=0;c<15;c++)h=!R&&(O>>c&1)==1,c<6?f.modules[c][8]=h:c<8?f.modules[c+1][8]=h:f.modules[f.moduleCount-15+c][8]=h;for(c=0;c<15;c++)h=!R&&(O>>c&1)==1,c<8?f.modules[8][f.moduleCount-c-1]=h:c<9?f.modules[8][15-c-1+1]=h:f.modules[8][15-c-1]=h;f.modules[f.moduleCount-
8][8]=!R;if(f.typeNumber>=7){O=f.typeNumber;for(c=O<<12;al(c)-al(7973)>=0;)c^=7973<<al(c)-al(7973);O=O<<12|c;for(c=0;c<18;c++)h=!R&&(O>>c&1)==1,f.modules[Math.floor(c/3)][c%3+f.moduleCount-8-3]=h;for(c=0;c<18;c++)h=!R&&(O>>c&1)==1,f.modules[c%3+f.moduleCount-8-3][Math.floor(c/3)]=h}if(f.dataCache==null){c=f.typeNumber;h=f.dataList;R=f.errorCorrectLevel;O=PVh(c,R);if(O==void 0)throw Error("sk`"+c+"`"+R);l=O.length/3;R=[];for(K=0;K<l;K++){q=O[K*3];F=O[K*3+1];for(var w=O[K*3+2],m=0;m<q;m++)R.push(new xB5(F,
w))}O=new SW5;for(l=0;l<h.length;l++)K=h[l],O.put(K.mode,4),O.put(K.getLength(),UZw(K.mode,c)),K.write(O);for(l=c=0;l<R.length;l++)c+=R[l].dataCount;if(O.length>c*8)throw Error("mk`"+O.length+"`"+c*8);for(O.length+4<=c*8&&O.put(0,4);O.length%8!=0;)eIm(O,!1);for(;!(O.length>=c*8);){O.put(236,8);if(O.length>=c*8)break;O.put(17,8)}h=c=F=0;l=Array(R.length);K=Array(R.length);for(q=0;q<R.length;q++){m=R[q].dataCount;var W=R[q].totalCount-m;c=Math.max(c,m);h=Math.max(h,W);l[q]=Array(m);for(w=0;w<l[q].length;w++)l[q][w]=
255&O.buffer[w+F];F+=m;w=W;m=new yU([1],0);for(W=0;W<w;W++)m=m.multiply(new yU([1,G0S(W)],0));w=m;m=(new yU(l[q],w.getLength()-1)).mod(w);K[q]=Array(w.getLength()-1);for(w=0;w<K[q].length;w++)W=w+m.getLength()-K[q].length,K[q][w]=W>=0?m.get(W):0}for(w=O=0;w<R.length;w++)O+=R[w].totalCount;O=Array(O);for(w=F=0;w<c;w++)for(q=0;q<R.length;q++)w<l[q].length&&(O[F++]=l[q][w]);for(w=0;w<h;w++)for(q=0;q<R.length;q++)w<K[q].length&&(O[F++]=K[q][w]);f.dataCache=O}R=f.dataCache;O=-1;c=f.moduleCount-1;h=7;l=
0;for(K=f.moduleCount-1;K>0;K-=2)for(K==6&&K--;;){for(q=0;q<2;q++)f.modules[c][K-q]==null&&(F=!1,l<R.length&&(F=(R[l]>>>h&1)==1),B4l(u,c,K-q)&&(F=!F),f.modules[c][K-q]=F,h--,h==-1&&(l++,h=7));c+=O;if(c<0||f.moduleCount<=c){c-=O;O=-O;break}}},IqS=function(f,R,u){for(var O=-1;O<=7;O++)if(!(R+O<=-1||f.moduleCount<=R+O))for(var c=-1;c<=7;c++)u+c<=-1||f.moduleCount<=u+c||(f.modules[R+O][u+c]=0<=O&&O<=6&&(c==0||c==6)||0<=c&&c<=6&&(O==0||O==6)||2<=O&&O<=4&&2<=c&&c<=4?!0:!1)},YWw=function(f){for(var R=0,
u=0,O=0;O<8;O++){VV5(f,!0,O);
var c=f;for(var h=c.moduleCount,l=0,K=0;K<h;K++)for(var q=0;q<h;q++){for(var F=0,w=c.isDark(K,q),m=-1;m<=1;m++)if(!(K+m<0||h<=K+m))for(var W=-1;W<=1;W++)q+W<0||h<=q+W||(m!=0||W!=0)&&w==c.isDark(K+m,q+W)&&F++;F>5&&(l+=3+F-5)}for(K=0;K<h-1;K++)for(q=0;q<h-1;q++)if(F=0,c.isDark(K,q)&&F++,c.isDark(K+1,q)&&F++,c.isDark(K,q+1)&&F++,c.isDark(K+1,q+1)&&F++,F==0||F==4)l+=3;for(K=0;K<h;K++)for(q=0;q<h-6;q++)c.isDark(K,q)&&!c.isDark(K,q+1)&&c.isDark(K,q+2)&&c.isDark(K,q+3)&&c.isDark(K,q+4)&&!c.isDark(K,q+5)&&
c.isDark(K,q+6)&&(l+=40);for(q=0;q<h;q++)for(K=0;K<h-6;K++)c.isDark(K,q)&&!c.isDark(K+1,q)&&c.isDark(K+2,q)&&c.isDark(K+3,q)&&c.isDark(K+4,q)&&!c.isDark(K+5,q)&&c.isDark(K+6,q)&&(l+=40);for(q=F=0;q<h;q++)for(K=0;K<h;K++)c.isDark(K,q)&&F++;c=l+=Math.abs(100*F/h/h-50)/5*10;if(O==0||R>c)R=c,u=O}return u},MDS=[[],
[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]],al=function(f){for(var R=0;f!=0;)R++,f>>>=1;return R},B4l=function(f,R,u){switch(f){case 0:return(R+u)%2==0;
case 1:return R%2==0;case 2:return u%3==0;case 3:return(R+u)%3==0;case 4:return(Math.floor(R/2)+Math.floor(u/3))%2==0;case 5:return R*u%2+R*u%3==0;case 6:return(R*u%2+R*u%3)%2==0;case 7:return(R*u%3+(R+u)%2)%2==0;default:throw Error("nk`"+f);}},UZw=function(f,R){if(1<=R&&R<10)switch(f){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+f);}else if(R<27)switch(f){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+f);}else if(R<41)switch(f){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+f);}else throw Error("pk`"+R);},FJ=function(f){if(f<1)throw Error("qk`"+f);
return oIK[f]},G0S=function(f){for(;f<0;)f+=255;
for(;f>=256;)f-=255;return wo[f]},wo=Array(256),oIK=Array(256),xZS=0;xZS<8;xZS++)wo[xZS]=1<<xZS;
for(var m7=8;m7<256;m7++)wo[m7]=wo[m7-4]^wo[m7-5]^wo[m7-6]^wo[m7-8];for(var SFe=0;SFe<255;SFe++)oIK[wo[SFe]]=SFe;yU.prototype.get=function(f){return this.num[f]};
yU.prototype.getLength=function(){return this.num.length};
yU.prototype.multiply=function(f){for(var R=Array(this.getLength()+f.getLength()-1),u=0;u<this.getLength();u++)for(var O=0;O<f.getLength();O++)R[u+O]^=G0S(FJ(this.get(u))+FJ(f.get(O)));return new yU(R,0)};
yU.prototype.mod=function(f){if(this.getLength()-f.getLength()<0)return this;for(var R=FJ(this.get(0))-FJ(f.get(0)),u=Array(this.getLength()),O=0;O<this.getLength();O++)u[O]=this.get(O);for(O=0;O<f.getLength();O++)u[O]^=G0S(FJ(f.get(O))+R);return(new yU(u,0)).mod(f)};
var $Zz=[[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]],PVh=function(f,R){switch(R){case 1:return $Zz[(f-1)*4];case 0:return $Zz[(f-1)*4+1];case 3:return $Zz[(f-1)*4+2];case 2:return $Zz[(f-1)*4+3]}};
SW5.prototype.get=function(f){return(this.buffer[Math.floor(f/8)]>>>7-f%8&1)==1};
SW5.prototype.put=function(f,R){for(var u=0;u<R;u++)eIm(this,(f>>>R-u-1&1)==1)};
var eIm=function(f,R){var u=Math.floor(f.length/8);f.buffer.length<=u&&f.buffer.push(0);R&&(f.buffer[u]|=128>>>f.length%8);f.length++},AW=[[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]],sht=function(){var f=function(R,u){this.JSC$17348__el=R;this.JSC$17348__htOption=u};
f.prototype.draw=function(R){function u(w,m){w=document.createElementNS("http://www.w3.org/2000/svg",w);for(var W in m)m.hasOwnProperty(W)&&(W==="href"?_.o3X(w,m[W]):_.Bz([_.rn(pbz),_.rn(jfh),_.rn(DZw),_.rn(Joe),_.rn(zIa),_.rn(T4m),_.rn(HdK)],w,W,m[W]));return w}
var O=this.JSC$17348__htOption,c=this.JSC$17348__el,h=R.moduleCount;this.clear();var l=u("svg",{viewBox:"0 0 "+String(h)+" "+String(h),width:"100%",height:"100%",fill:O.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});c.appendChild(l);l.appendChild(u("rect",{fill:O.colorLight,width:"100%",height:"100%"}));l.appendChild(u("rect",{fill:O.colorDark,width:"1",height:"1",id:"template"}));for(var K=0;K<h;K++)for(var q=0;q<h;q++)if(R.isDark(K,q)){var F=u("use",{x:String(K),y:String(q),href:"#template"});
l.appendChild(F)}};
f.prototype.clear=function(){for(;this.JSC$17348__el.hasChildNodes();)this.JSC$17348__el.removeChild(this.JSC$17348__el.lastChild)};
return f}(),gNN=document.documentElement.tagName.toLowerCase()==="svg"?sht:typeof CanvasRenderingContext2D!="undefined"?function(){var f=function(R,u){this._bIsPainted=!1;
$B9();this.JSC$17348__htOption=u;this._elCanvas=document.createElement("canvas");this._elCanvas.width=u.width;this._elCanvas.height=u.height;R.appendChild(this._elCanvas);this.JSC$17348__el=R;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$17348__el.appendChild(this._elImage);this._bSupportDataURI=null};
f.prototype._onMakeImage=function(){var R=this._elCanvas.toDataURL("image/png");this._elImage.src=R;this._elImage.style.display="block";this._elCanvas.style.display="none"};
f.prototype._safeSetDataURI=function(R,u){var O=this;O._fFail=u;O._fSuccess=R;O._bSupportDataURI===null?(R=_.mD("IMG"),u=function(){O._bSupportDataURI=!1;O._fFail&&O._fFail.call(O)},R.onabort=u,R.onerror=u,R.onload=function(){O._bSupportDataURI=!0;
O._fSuccess&&O._fSuccess.call(O)},R.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):O._bSupportDataURI===!0&&O._fSuccess?O._fSuccess.call(O):O._bSupportDataURI===!1&&O._fFail&&O._fFail.call(O)};
f.prototype.draw=function(R){var u=this._oContext,O=this.JSC$17348__htOption,c=R.moduleCount,h=O.width/c,l=O.height/c,K=Math.round(h),q=Math.round(l);this._elImage.style.display="none";this.clear();for(var F=0;F<c;F++)for(var w=0;w<c;w++){var m=R.isDark(F,w),W=w*h,C=F*l;u.strokeStyle=m?O.colorDark:O.colorLight;u.lineWidth=1;u.fillStyle=m?O.colorDark:O.colorLight;u.fillRect(W,C,h,l);u.strokeRect(Math.floor(W)+.5,Math.floor(C)+.5,K,q);u.strokeRect(Math.ceil(W)-.5,Math.ceil(C)-.5,K,q)}this._bIsPainted=
!0};
f.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
f.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
f.prototype.round=function(R){return R?Math.floor(R*1E3)/1E3:R};
return f}():function(){var f=function(R,u){this.JSC$17348__el=R;
this.JSC$17348__htOption=u};
f.prototype.draw=function(R){for(var u=this.JSC$17348__htOption,O=this.JSC$17348__el,c=R.moduleCount,h=Math.floor(u.width/c),l=Math.floor(u.height/c),K=['<table style="border:0;border-collapse:collapse;">'],q=0;q<c;q++){K.push("<tr>");for(var F=0;F<c;F++)K.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+h+"px;height:"+l+"px;background-color:"+(R.isDark(q,F)?u.colorDark:u.colorLight)+';"></td>');K.push("</tr>")}K.push("</table>");R=K.join("");R=_.X0C(_.ZhC,R);_.ey(O,R);
R=O.childNodes[0];c=(u.width-R.offsetWidth)/2;h=(u.height-R.offsetHeight)/2;c>0&&h>0&&(R.style.margin=h+"px "+c+"px")};
f.prototype.clear=function(){this.JSC$17348__el.textContent=""};
return f}();
vNm.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17351__android||this.JSC$17351__android>=3)&&this._oDrawing.makeImage()};
vNm.prototype.clear=function(){this._oDrawing.clear()};
_.Oe.QRCode=vNm;var gIm={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Qd=function(){};
Qd.prototype.stringify=function(f){return _.Oe.JSON.stringify(f,void 0)};
Qd.prototype.parse=function(f){return _.Oe.JSON.parse(f,void 0)};var sfm=function(){_.qZ.call(this,"z")};
_.f6(sfm,_.qZ);var nIl=function(){_.qZ.call(this,"y")};
_.f6(nIl,_.qZ);var VDz=null,YFl=function(){return VDz=VDz||new _.mq},vIX=function(f){_.qZ.call(this,"serverreachability",f)};
_.f6(vIX,_.qZ);var WE=function(f){var R=YFl();R.dispatchEvent(new vIX(R,f))},idm=function(f){_.qZ.call(this,"statevent",f)};
_.f6(idm,_.qZ);var E5=function(f){var R=YFl();R.dispatchEvent(new idm(R,f))},roN=function(f,R,u,O){_.qZ.call(this,"timingevent",f);
this.size=R;this.rtt=u;this.retries=O};
_.f6(roN,_.qZ);var fCh=function(f,R,u){var O=YFl();O.dispatchEvent(new roN(O,f,R,u))},tW=function(f,R){if(typeof f!=="function")throw Error("uk");
return _.Oe.setTimeout(function(){f()},R)};var CX=function(){this.redactEnabled_=!0};
CX.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Ro2=function(f,R,u,O,c,h){f.info(function(){if(f.redactEnabled_)if(h){var l="";for(var K=h.split("&"),q=0;q<K.length;q++){var F=K[q].split("=");if(F.length>1){var w=F[0];F=F[1];var m=w.split("_");l=m.length>=2&&m[1]=="type"?l+(w+"="+F+"&"):l+(w+"=redacted&")}}}else l=null;else l=h;return"XMLHTTP REQ ("+O+") [attempt "+c+"]: "+R+"\n"+u+"\n"+l})},uwz=function(f,R,u,O,c,h,l){f.info(function(){return"XMLHTTP RESP ("+O+") [ attempt "+c+"]: "+R+"\n"+u+"\n"+h+" "+l})},yd=function(f,R,u,O){f.info(function(){return"XMLHTTP TEXT ("+
R+"): "+OWm(f,u)+(O?" "+O:"")})},c_t=function(f,R){f.info(function(){return"TIMEOUT: "+R})};
CX.prototype.debug=function(){};
CX.prototype.info=function(){};
CX.prototype.warning=function(){};
var OWm=function(f,R){if(!f.redactEnabled_)return R;if(!R)return null;try{var u=JSON.parse(R);if(u)for(var O=0;O<u.length;O++)if(Array.isArray(u[O])){var c=u[O];if(!(c.length<2)){var h=c[1];if(Array.isArray(h)&&!(h.length<1)){var l=h[0];if(l!="noop"&&l!="stop"&&l!="close")for(var K=1;K<h.length;K++)h[K]=""}}}return(0,_.d4)(u)}catch(q){return f.debug("Exception parsing expected JS array - probably was not JS"),R}};var N0=function(f,R,u,O,c){this.JSC$17373_channel_=f;this.JSC$17373_channelDebug_=R;this.sid_=u;this.JSC$17373_rid_=O;this.JSC$17373_retryId_=c||1;this.JSC$17373_eventHandler_=new _.uE(this);this.timeout_=45E3;this.JSC$17373_extraHeaders_=null;this.JSC$17373_successful_=!1;this.JSC$17373_postData_=this.JSC$17373_requestUri_=this.JSC$17373_baseUri_=this.JSC$17373_type_=this.JSC$17373_requestStartTime_=this.JSC$17373_watchDogTimeoutTime_=this.JSC$17373_watchDogTimerId_=null;this.JSC$17373_pendingMessages_=
[];this.JSC$17373_xmlHttp_=null;this.JSC$17373_xmlHttpChunkStart_=0;this.JSC$17373_lastError_=this.JSC$17373_verb_=null;this.JSC$17373_lastStatusCode_=-1;this.JSC$17373_cancelled_=!1;this.JSC$17373_readyStateChangeThrottleMs_=0;this.JSC$17373_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Xsa},Xsa=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},hoX=function(f,R){switch(f){case 0:return"Non-200 return code ("+R+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},ZW2={},lCl={};
N0.prototype.setTimeout=function(f){this.timeout_=f};
var K49=function(f,R,u){f.JSC$17373_type_=1;f.JSC$17373_baseUri_=_.uz(R.clone());f.JSC$17373_postData_=u;f.decodeChunks_=!0;ktl(f,null)},ktl=function(f,R){f.JSC$17373_requestStartTime_=Date.now();
qVt(f);f.JSC$17373_requestUri_=f.JSC$17373_baseUri_.clone();X2(f.JSC$17373_requestUri_,"t",f.JSC$17373_retryId_);f.JSC$17373_xmlHttpChunkStart_=0;var u=f.JSC$17373_channel_.JSC$17392_supportsCrossDomainXhrs_;f.fetchResponseState_=new Xsa;f.JSC$17373_xmlHttp_=A_N(f.JSC$17373_channel_,u?R:null,!f.JSC$17373_postData_);f.JSC$17373_readyStateChangeThrottleMs_>0&&(f.JSC$17373_readyStateChangeThrottle_=new _.vJ((0,_.NG)(f.JSC$17377_xmlHttpHandler_,f,f.JSC$17373_xmlHttp_),f.JSC$17373_readyStateChangeThrottleMs_));
f.JSC$17373_eventHandler_.listen(f.JSC$17373_xmlHttp_,"readystatechange",f.JSC$17377_readyStateChangeHandler_);R=f.JSC$17373_extraHeaders_?_.dq.clone(f.JSC$17373_extraHeaders_):{};f.JSC$17373_postData_?(f.JSC$17373_verb_||(f.JSC$17373_verb_="POST"),R["Content-Type"]="application/x-www-form-urlencoded",f.JSC$17373_xmlHttp_.send(f.JSC$17373_requestUri_,f.JSC$17373_verb_,f.JSC$17373_postData_,R)):(f.JSC$17373_verb_="GET",f.JSC$17373_xmlHttp_.send(f.JSC$17373_requestUri_,f.JSC$17373_verb_,null,R));WE(1);
Ro2(f.JSC$17373_channelDebug_,f.JSC$17373_verb_,f.JSC$17373_requestUri_,f.JSC$17373_rid_,f.JSC$17373_retryId_,f.JSC$17373_postData_)};
N0.prototype.JSC$17377_readyStateChangeHandler_=function(f){f=f.target;var R=this.JSC$17373_readyStateChangeThrottle_;R&&_.Ld(f)==3?(this.JSC$17373_channelDebug_.debug("Throttling readystatechange."),R.fire()):this.JSC$17377_xmlHttpHandler_(f)};
N0.prototype.JSC$17377_xmlHttpHandler_=function(f){try{f==this.JSC$17373_xmlHttp_?aCS(this):this.JSC$17373_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(R){this.JSC$17373_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),F4X(this)}finally{}};
var aCS=function(f){var R=_.Ld(f.JSC$17373_xmlHttp_),u=f.JSC$17373_xmlHttp_.JSC$7804_lastErrorCode_,O=f.JSC$17373_xmlHttp_.getStatus();if(!(R<3||R==3&&!F4X(f))){f.JSC$17373_cancelled_||R!=4||u==7||(u==8||O<=0?WE(3):WE(2));ws9(f);var c=f.JSC$17373_xmlHttp_.getStatus();f.JSC$17373_lastStatusCode_=c;u=m2a(f);F4X(f)||f.JSC$17373_channelDebug_.debug(function(){return"No response text for uri "+f.JSC$17373_requestUri_+" status "+c});
f.JSC$17373_successful_=c==200;uwz(f.JSC$17373_channelDebug_,f.JSC$17373_verb_,f.JSC$17373_requestUri_,f.JSC$17373_rid_,f.JSC$17373_retryId_,R,c);if(f.JSC$17373_successful_){if(f.decodeInitialResponse_&&!f.initialResponseDecoded_)if(O=Qn5(f))yd(f.JSC$17373_channelDebug_,f.JSC$17373_rid_,O,"Initial handshake response via X-HTTP-Initial-Response"),f.initialResponseDecoded_=!0,W4l(f,O);else{f.JSC$17373_successful_=!1;f.JSC$17373_lastError_=3;E5(12);f.JSC$17373_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
f.JSC$17373_rid_+")");LX(f);bJ(f);return}f.decodeChunks_?Evw(f,R,u):(yd(f.JSC$17373_channelDebug_,f.JSC$17373_rid_,u,null),W4l(f,u));R==4&&LX(f);f.JSC$17373_successful_&&!f.JSC$17373_cancelled_&&(R==4?t4z(f.JSC$17373_channel_,f):(f.JSC$17373_successful_=!1,qVt(f)))}else Q1h(f.JSC$17373_xmlHttp_),c==400&&u.indexOf("Unknown SID")>0?(f.JSC$17373_lastError_=3,E5(12),f.JSC$17373_channelDebug_.warning("XMLHTTP Unknown SID ("+f.JSC$17373_rid_+")")):(f.JSC$17373_lastError_=0,E5(13),f.JSC$17373_channelDebug_.warning("XMLHTTP Bad status "+
c+" ("+f.JSC$17373_rid_+")")),LX(f),bJ(f)}},Qn5=function(f){return f.JSC$17373_xmlHttp_&&(f=qT(f.JSC$17373_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Kh(f)?f:null},m2a=function(f){if(!Czt(f))return f.JSC$17373_xmlHttp_.getResponseText();
var R=f.JSC$17373_xmlHttp_.getResponse();if(R==="")return"";var u="",O=R.length,c=_.Ld(f.JSC$17373_xmlHttp_)==4;if(!f.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return LX(f),bJ(f),"";f.fetchResponseState_.textDecoder=new _.Oe.TextDecoder}for(var h=0;h<O;h++)f.fetchResponseState_.responseArrivedForFetch=!0,u+=f.fetchResponseState_.textDecoder.decode(R[h],{stream:!(c&&h==O-1)});R.length=0;f.fetchResponseState_.responseBuffer+=u;f.JSC$17373_xmlHttpChunkStart_=0;return f.fetchResponseState_.responseBuffer},
F4X=function(f){return f.JSC$17373_xmlHttp_?f.fetchResponseState_.responseArrivedForFetch?!0:!(!f.JSC$17373_xmlHttp_.getResponseText()&&!f.JSC$17373_xmlHttp_.getResponse()):!1},Czt=function(f){return f.JSC$17373_xmlHttp_?f.JSC$17373_verb_=="GET"&&f.JSC$17373_type_!=2&&f.JSC$17373_channel_.usesFetchStreams_:!1},Evw=function(f,R,u){for(var O=!0,c;!f.JSC$17373_cancelled_&&f.JSC$17373_xmlHttpChunkStart_<u.length;)if(c=y_N(f,u),c==lCl){R==4&&(f.JSC$17373_lastError_=4,E5(14),O=!1);
yd(f.JSC$17373_channelDebug_,f.JSC$17373_rid_,null,"[Incomplete Response]");break}else if(c==ZW2){f.JSC$17373_lastError_=4;E5(15);yd(f.JSC$17373_channelDebug_,f.JSC$17373_rid_,u,"[Invalid Chunk]");O=!1;break}else yd(f.JSC$17373_channelDebug_,f.JSC$17373_rid_,c,null),W4l(f,c);Czt(f)&&f.JSC$17373_xmlHttpChunkStart_!=0&&(f.fetchResponseState_.responseBuffer=f.fetchResponseState_.responseBuffer.slice(f.JSC$17373_xmlHttpChunkStart_),f.JSC$17373_xmlHttpChunkStart_=0);R!=4||u.length!=0||f.fetchResponseState_.responseArrivedForFetch||
(f.JSC$17373_lastError_=1,E5(16),O=!1);f.JSC$17373_successful_=f.JSC$17373_successful_&&O;O?u.length>0&&!f.firstByteReceived_&&(f.firstByteReceived_=!0,R=f.JSC$17373_channel_,R.JSC$17392_backChannelRequest_==f&&R.detectBufferingProxy_&&!R.bpDetectionDone_&&(R.JSC$17392_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+u.length),d25(R),R.bpDetectionDone_=!0,E5(11))):(yd(f.JSC$17373_channelDebug_,f.JSC$17373_rid_,u,"[Invalid Chunked Response]"),LX(f),bJ(f))},y_N=function(f,R){var u=
f.JSC$17373_xmlHttpChunkStart_,O=R.indexOf("\n",u);
if(O==-1)return lCl;u=Number(R.substring(u,O));if(isNaN(u))return ZW2;O+=1;if(O+u>R.length)return lCl;R=R.slice(O,O+u);f.JSC$17373_xmlHttpChunkStart_=O+u;return R};
N0.prototype.cancel=function(){this.JSC$17373_cancelled_=!0;LX(this)};
var qVt=function(f){f.JSC$17373_watchDogTimeoutTime_=Date.now()+f.timeout_;NwS(f,f.timeout_)},NwS=function(f,R){if(f.JSC$17373_watchDogTimerId_!=null)throw Error("vk");
f.JSC$17373_watchDogTimerId_=tW((0,_.NG)(f.JSC$17377_onWatchDogTimeout_,f),R)},ws9=function(f){f.JSC$17373_watchDogTimerId_&&(_.Oe.clearTimeout(f.JSC$17373_watchDogTimerId_),f.JSC$17373_watchDogTimerId_=null)};
N0.prototype.JSC$17377_onWatchDogTimeout_=function(){this.JSC$17373_watchDogTimerId_=null;var f=Date.now();f-this.JSC$17373_watchDogTimeoutTime_>=0?(c_t(this.JSC$17373_channelDebug_,this.JSC$17373_requestUri_),this.JSC$17373_type_!=2&&(WE(3),E5(17)),LX(this),this.JSC$17373_lastError_=2,bJ(this)):(this.JSC$17373_channelDebug_.warning("WatchDog timer called too early"),NwS(this,this.JSC$17373_watchDogTimeoutTime_-f))};
var bJ=function(f){f.JSC$17373_channel_.state_==0||f.JSC$17373_cancelled_||t4z(f.JSC$17373_channel_,f)},LX=function(f){ws9(f);
_.YD(f.JSC$17373_readyStateChangeThrottle_);f.JSC$17373_readyStateChangeThrottle_=null;f.JSC$17373_eventHandler_.removeAll();if(f.JSC$17373_xmlHttp_){var R=f.JSC$17373_xmlHttp_;f.JSC$17373_xmlHttp_=null;R.abort();R.dispose()}};
N0.prototype.getLastError=function(){return this.JSC$17373_lastError_};
var W4l=function(f,R){try{var u=f.JSC$17373_channel_;if(u.state_!=0&&(u.JSC$17392_backChannelRequest_==f||L4t(u.forwardChannelRequestPool_,f)))if(!f.initialResponseDecoded_&&L4t(u.forwardChannelRequestPool_,f)&&u.state_==3){try{var O=u.wireCodec_.JSC$17387_parser_.parse(R)}catch(K){O=null}if(Array.isArray(O)&&O.length==3){R=O;if(R[0]==0)a:if(u.JSC$17392_channelDebug_.debug("Server claims our backchannel is missing."),u.JSC$17392_backChannelTimerId_)u.JSC$17392_channelDebug_.debug("But we are currently starting the request.");
else{if(u.JSC$17392_backChannelRequest_)if(u.JSC$17392_backChannelRequest_.JSC$17373_requestStartTime_+3E3<f.JSC$17373_requestStartTime_)bWt(u),psN(u);else break a;else u.JSC$17392_channelDebug_.warning("We do not have a BackChannel established");jnN(u);E5(18)}else{u.JSC$17392_lastPostResponseArrayId_=R[1];var c=u.JSC$17392_lastPostResponseArrayId_-u.JSC$17392_lastArrayId_;if(0<c){var h=R[2];u.JSC$17392_channelDebug_.debug(h+" bytes (in "+c+" arrays) are outstanding on the BackChannel");h<37500&&
u.enableStreaming_&&u.JSC$17392_backChannelRetryCount_==0&&!u.JSC$17392_deadBackChannelTimerId_&&(u.JSC$17392_deadBackChannelTimerId_=tW((0,_.NG)(u.JSC$17394_onBackChannelDead_,u),6E3))}}if(D2t(u.forwardChannelRequestPool_)<=1&&u.forwardChannelFlushedCallback_){try{u.forwardChannelFlushedCallback_()}catch(K){}u.forwardChannelFlushedCallback_=void 0}}else u.JSC$17392_channelDebug_.debug("Bad POST response data returned"),pX(u,11)}else if((f.initialResponseDecoded_||u.JSC$17392_backChannelRequest_==
f)&&bWt(u),!_.Kh(R)){var l=u.wireCodec_.JSC$17387_parser_.parse(R);u.onInput_(l,f)}WE(4)}catch(K){}};var J_m=function(f,R){this.JSC$17380_mapId=f;this.map=R;this.context=null};var zol=function(f){this.maxPoolSizeConfigured_=f||10;_.Oe.PerformanceNavigationTiming?(f=_.Oe.performance.getEntriesByType("navigation"),f=f.length>0&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(_.Oe.chrome&&_.Oe.chrome.loadTimes&&_.Oe.chrome.loadTimes()&&_.Oe.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17383_maxSize_=f?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17383_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17383_request_=null;this.JSC$17383_pendingMessages_=
[]},Twa=function(f){return f.JSC$17383_request_?!0:f.requestPool_?f.requestPool_.size>=f.JSC$17383_maxSize_:!1},D2t=function(f){return f.JSC$17383_request_?1:f.requestPool_?f.requestPool_.size:0},L4t=function(f,R){return f.JSC$17383_request_?f.JSC$17383_request_==R:f.requestPool_?f.requestPool_.has(R):!1},HWm=function(f,R){f.requestPool_?f.requestPool_.add(R):f.JSC$17383_request_=R},IC5=function(f,R){f.JSC$17383_request_&&f.JSC$17383_request_==R?f.JSC$17383_request_=null:f.requestPool_&&f.requestPool_.has(R)&&
f.requestPool_.delete(R)};
zol.prototype.cancel=function(){this.JSC$17383_pendingMessages_=M42(this);if(this.JSC$17383_request_)this.JSC$17383_request_.cancel(),this.JSC$17383_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var f=_.Z(this.requestPool_.values()),R=f.next();!R.done;R=f.next())R.value.cancel();this.requestPool_.clear()}};
var M42=function(f){if(f.JSC$17383_request_!=null)return f.JSC$17383_pendingMessages_.concat(f.JSC$17383_request_.JSC$17373_pendingMessages_);if(f.requestPool_!=null&&f.requestPool_.size!==0){var R=f.JSC$17383_pendingMessages_;f=_.Z(f.requestPool_.values());for(var u=f.next();!u.done;u=f.next())R=R.concat(u.value.JSC$17373_pendingMessages_);return R}return _.iB(f.JSC$17383_pendingMessages_)},Pz2=function(f,R){f.JSC$17383_pendingMessages_=f.JSC$17383_pendingMessages_.concat(R)};var U2a=function(f,R){var u=new CX;u.debug("TestLoadImage: loading "+f);if(_.Oe.Image){var O=new Image;O.onload=_.mx(js,u,"TestLoadImage: loaded",!0,R,O);O.onerror=_.mx(js,u,"TestLoadImage: error",!1,R,O);O.onabort=_.mx(js,u,"TestLoadImage: abort",!1,R,O);O.ontimeout=_.mx(js,u,"TestLoadImage: timeout",!1,R,O);_.Oe.setTimeout(function(){if(O.ontimeout)O.ontimeout()},1E4);
O.src=f}else R(!1)},eoe=function(f,R){var u=new CX,O=new AbortController,c=setTimeout(function(){O.abort();
js(u,"TestPingServer: timeout",!1,R)},1E4);
fetch(f,{signal:O.signal}).then(function(h){clearTimeout(c);h.ok?js(u,"TestPingServer: ok",!0,R):js(u,"TestPingServer: server error",!1,R)}).catch(function(){clearTimeout(c);
js(u,"TestPingServer: error",!1,R)})},js=function(f,R,u,O,c){try{f.debug(R),c&&(c.onload=null,c.onerror=null,c.onabort=null,c.ontimeout=null),O(u)}catch(h){}};var Gta=function(){this.JSC$17387_parser_=new Qd},Bww=function(f,R,u){var O=u||"";
try{_.wKA(f,function(c,h){var l=c;_.OE(c)&&(l=(0,_.d4)(c));R.push(O+h+"="+encodeURIComponent(l))})}catch(c){throw R.push(O+"type="+encodeURIComponent("_badmap")),c;
}};var Dy=function(f,R,u){return u&&u.internalChannelParams?u.internalChannelParams[f]||R:R},JW=function(f){this.serverVersion_=0;
this.JSC$17392_outgoingMaps_=[];this.JSC$17392_channelDebug_=new CX;this.JSC$17392_hostPrefix_=this.JSC$17392_backChannelUri_=this.JSC$17392_forwardChannelUri_=this.JSC$17392_path_=this.JSC$17392_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17392_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17392_extraHeaders_=null;this.JSC$17392_nextMapId_=this.JSC$17392_nextRid_=0;this.JSC$17392_failFast_=Dy("failFast",!1,f);this.enableStreaming_=this.JSC$17392_deadBackChannelTimerId_=
this.JSC$17392_backChannelTimerId_=this.JSC$17392_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17392_lastPostResponseArrayId_=this.JSC$17392_lastArrayId_=-1;this.JSC$17392_backChannelAttemptId_=this.JSC$17392_backChannelRetryCount_=this.JSC$17392_forwardChannelRetryCount_=0;this.JSC$17392_baseRetryDelayMs_=Dy("baseRetryDelayMs",5E3,f);this.JSC$17392_retryDelaySeedMs_=Dy("retryDelaySeedMs",1E4,f);this.JSC$17392_forwardChannelMaxRetries_=
Dy("forwardChannelMaxRetries",2,f);this.JSC$17392_forwardChannelRequestTimeoutMs_=Dy("forwardChannelRequestTimeoutMs",2E4,f);this.JSC$17392_xmlHttpFactory_=f&&f.xmlHttpFactory||void 0;this.networkTestUrl_=f&&f.networkTestUrl||void 0;this.usesFetchStreams_=f&&f.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17392_supportsCrossDomainXhrs_=f&&f.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new zol(f&&f.concurrentRequestLimit);this.wireCodec_=new Gta;this.fastHandshake_=
f&&f.fastHandshake||!1;this.encodeInitMessageHeaders_=f&&f.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17392_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=f&&f.blockingHandshake||!1;f&&f.disableRedact&&this.JSC$17392_channelDebug_.disableRedact();f&&f.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
f&&f.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;f&&f.longPollingTimeout&&f.longPollingTimeout>0&&(this.longPollingTimeout_=f.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
JW.prototype.JSC$17394_channelVersion_=8;JW.prototype.state_=1;
JW.prototype.connect=function(f,R,u,O){this.JSC$17392_channelDebug_.debug("connect()");E5(0);this.JSC$17392_path_=f;this.JSC$17392_extraParams_=R||{};u&&O!==void 0&&(this.JSC$17392_extraParams_.OSID=u,this.JSC$17392_extraParams_.OAID=O);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17392_channelDebug_.debug("connectChannel_()");f=ovm(this,null,this.JSC$17392_path_);this.JSC$17392_channelDebug_.debug("GetForwardChannelUri: "+f);this.JSC$17392_forwardChannelUri_=f;x2h(this)};
JW.prototype.disconnect=function(){this.JSC$17392_channelDebug_.debug("disconnect()");SVe(this);if(this.state_==3){var f=this.JSC$17392_nextRid_++,R=this.JSC$17392_forwardChannelUri_.clone();_.Sr(R,"SID",this.sid_);_.Sr(R,"RID",f);_.Sr(R,"TYPE","terminate");zV(this,R);f=new N0(this,this.JSC$17392_channelDebug_,this.sid_,f);f.JSC$17373_type_=2;f.JSC$17373_baseUri_=_.uz(R.clone());R=!1;if(_.Oe.navigator&&_.Oe.navigator.sendBeacon)try{R=_.Oe.navigator.sendBeacon(f.JSC$17373_baseUri_.toString(),"")}catch(u){}!R&&
_.Oe.Image&&((new Image).src=f.JSC$17373_baseUri_,R=!0);R||(f.JSC$17373_xmlHttp_=A_N(f.JSC$17373_channel_,null),f.JSC$17373_xmlHttp_.send(f.JSC$17373_baseUri_));f.JSC$17373_requestStartTime_=Date.now();qVt(f)}$29(this)};
var psN=function(f){f.JSC$17392_backChannelRequest_&&(d25(f),f.JSC$17392_backChannelRequest_.cancel(),f.JSC$17392_backChannelRequest_=null)},SVe=function(f){psN(f);
f.JSC$17392_backChannelTimerId_&&(_.Oe.clearTimeout(f.JSC$17392_backChannelTimerId_),f.JSC$17392_backChannelTimerId_=null);bWt(f);f.forwardChannelRequestPool_.cancel();f.JSC$17392_forwardChannelTimerId_&&(typeof f.JSC$17392_forwardChannelTimerId_==="number"&&_.Oe.clearTimeout(f.JSC$17392_forwardChannelTimerId_),f.JSC$17392_forwardChannelTimerId_=null)};
JW.prototype.getState=function(){return this.state_};
var x2h=function(f){Twa(f.forwardChannelRequestPool_)||f.JSC$17392_forwardChannelTimerId_||(f.JSC$17392_forwardChannelTimerId_=!0,_.Wb(f.JSC$17394_onStartForwardChannelTimer_,f),f.JSC$17392_forwardChannelRetryCount_=0)},snw=function(f,R){if(D2t(f.forwardChannelRequestPool_)>=f.forwardChannelRequestPool_.JSC$17383_maxSize_-(f.JSC$17392_forwardChannelTimerId_?1:0))return!1;
if(f.JSC$17392_forwardChannelTimerId_)return f.JSC$17392_channelDebug_.debug("Use the retry request that is already scheduled."),f.JSC$17392_outgoingMaps_=R.JSC$17373_pendingMessages_.concat(f.JSC$17392_outgoingMaps_),!0;if(f.state_==1||f.state_==2||f.JSC$17392_forwardChannelRetryCount_>=(f.JSC$17392_failFast_?0:f.JSC$17392_forwardChannelMaxRetries_))return!1;f.JSC$17392_channelDebug_.debug("Going to retry POST");f.JSC$17392_forwardChannelTimerId_=tW((0,_.NG)(f.JSC$17394_onStartForwardChannelTimer_,
f,R),gvh(f,f.JSC$17392_forwardChannelRetryCount_));f.JSC$17392_forwardChannelRetryCount_++;return!0};
JW.prototype.JSC$17394_onStartForwardChannelTimer_=function(f){if(this.JSC$17392_forwardChannelTimerId_)if(this.JSC$17392_forwardChannelTimerId_=null,this.JSC$17392_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!f){this.JSC$17392_channelDebug_.debug("open_()");this.JSC$17392_nextRid_=Math.floor(Math.random()*1E5);f=this.JSC$17392_nextRid_++;var R=new N0(this,this.JSC$17392_channelDebug_,"",f),u=this.JSC$17392_extraHeaders_;this.initHeaders_&&(u?(u=_.dq.clone(u),_.dq.extend(u,this.initHeaders_)):
u=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(R.JSC$17373_extraHeaders_=u,u=null);var O;if(this.fastHandshake_)a:{for(var c=O=0;c<this.JSC$17392_outgoingMaps_.length;c++){b:{var h=this.JSC$17392_outgoingMaps_[c];if("__data__"in h.map&&(h=h.map.__data__,typeof h==="string")){h=h.length;break b}h=void 0}if(h===void 0)break;O+=h;if(O>4096){O=c;break a}if(O===4096||c===this.JSC$17392_outgoingMaps_.length-1){O=c+1;break a}}O=1E3}else O=1E3;O=nvm(this,R,O);
c=this.JSC$17392_forwardChannelUri_.clone();_.Sr(c,"RID",f);_.Sr(c,"CVER",22);this.httpSessionIdParam_&&_.Sr(c,"X-HTTP-Session-Id",this.httpSessionIdParam_);zV(this,c);u&&(this.encodeInitMessageHeaders_?O="headers="+_.e0(QX2(u))+"&"+O:this.httpHeadersOverwriteParam_&&W8N(c,this.httpHeadersOverwriteParam_,u));HWm(this.forwardChannelRequestPool_,R);this.blockingHandshake_&&_.Sr(c,"TYPE","init");this.fastHandshake_?(_.Sr(c,"$req",O),_.Sr(c,"SID","null"),R.decodeInitialResponse_=!0,K49(R,c,null)):K49(R,
c,O);this.state_=2}}else this.state_==3&&(f?V4a(this,f):this.JSC$17392_outgoingMaps_.length==0?this.JSC$17392_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Twa(this.forwardChannelRequestPool_)||(V4a(this),this.JSC$17392_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var V4a=function(f,R){var u;R?u=R.JSC$17373_rid_:u=f.JSC$17392_nextRid_++;var O=f.JSC$17392_forwardChannelUri_.clone();_.Sr(O,"SID",f.sid_);_.Sr(O,"RID",u);_.Sr(O,"AID",f.JSC$17392_lastArrayId_);zV(f,O);f.httpHeadersOverwriteParam_&&f.JSC$17392_extraHeaders_&&W8N(O,f.httpHeadersOverwriteParam_,f.JSC$17392_extraHeaders_);u=new N0(f,f.JSC$17392_channelDebug_,f.sid_,u,f.JSC$17392_forwardChannelRetryCount_+1);f.httpHeadersOverwriteParam_===null&&(u.JSC$17373_extraHeaders_=f.JSC$17392_extraHeaders_);R&&
(f.JSC$17392_outgoingMaps_=R.JSC$17373_pendingMessages_.concat(f.JSC$17392_outgoingMaps_));R=nvm(f,u,1E3);u.setTimeout(Math.round(f.JSC$17392_forwardChannelRequestTimeoutMs_*.5)+Math.round(f.JSC$17392_forwardChannelRequestTimeoutMs_*.5*Math.random()));HWm(f.forwardChannelRequestPool_,u);K49(u,O,R)},zV=function(f,R){f.JSC$17392_extraParams_&&_.dq.forEach(f.JSC$17392_extraParams_,function(u,O){_.Sr(R,O,u)});
f.handler_&&_.wKA({},function(u,O){_.Sr(R,O,u)})},nvm=function(f,R,u){u=Math.min(f.JSC$17392_outgoingMaps_.length,u);
var O=f.handler_?(0,_.NG)(f.handler_.JSC$17398_badMapError,f.handler_,f):null;a:{for(var c=f.JSC$17392_outgoingMaps_,h=-1;;){var l=["count="+u];h==-1?u>0?(h=c[0].JSC$17380_mapId,l.push("ofs="+h)):h=0:l.push("ofs="+h);for(var K=!0,q=0;q<u;q++){var F=c[q].JSC$17380_mapId,w=c[q].map;F-=h;if(F<0)h=Math.max(0,c[q].JSC$17380_mapId-100),K=!1;else try{Bww(w,l,"req"+F+"_")}catch(m){O&&O(w)}}if(K){O=l.join("&");break a}}O=void 0}f=f.JSC$17392_outgoingMaps_.splice(0,u);R.JSC$17373_pendingMessages_=f;return O},
YV2=function(f){f.JSC$17392_backChannelRequest_||f.JSC$17392_backChannelTimerId_||(f.JSC$17392_backChannelAttemptId_=1,_.Wb(f.JSC$17394_onStartBackChannelTimer_,f),f.JSC$17392_backChannelRetryCount_=0)},jnN=function(f){if(f.JSC$17392_backChannelRequest_||f.JSC$17392_backChannelTimerId_||f.JSC$17392_backChannelRetryCount_>=3)return!1;
f.JSC$17392_channelDebug_.debug("Going to retry GET");f.JSC$17392_backChannelAttemptId_++;f.JSC$17392_backChannelTimerId_=tW((0,_.NG)(f.JSC$17394_onStartBackChannelTimer_,f),gvh(f,f.JSC$17392_backChannelRetryCount_));f.JSC$17392_backChannelRetryCount_++;return!0};
JW.prototype.JSC$17394_onStartBackChannelTimer_=function(){this.JSC$17392_backChannelTimerId_=null;vv9(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17392_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17392_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17392_backChannelRequest_+" "+this.handshakeRttMs_);else{var f=2*this.handshakeRttMs_;this.JSC$17392_channelDebug_.info("BP detection timer enabled: "+f);this.bpDetectionTimerId_=tW((0,_.NG)(this.onBpDetectionTimer_,
this),f)}};
JW.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17392_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17392_backChannelRequest_.JSC$17373_xmlHttp_!=null){var f=this.JSC$17392_backChannelRequest_.JSC$17373_xmlHttp_.getResponseText();f&&this.JSC$17392_channelDebug_.warning("Timer should have been cancelled : "+f)}this.JSC$17392_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;E5(10);psN(this);vv9(this)}else this.JSC$17392_channelDebug_.warning("Invalid operation.")};
var d25=function(f){f.bpDetectionTimerId_!=null&&(f.JSC$17392_channelDebug_.debug("Cancel the BP detection timer."),_.Oe.clearTimeout(f.bpDetectionTimerId_),f.bpDetectionTimerId_=null)},vv9=function(f){f.JSC$17392_channelDebug_.debug("Creating new HttpRequest");
f.JSC$17392_backChannelRequest_=new N0(f,f.JSC$17392_channelDebug_,f.sid_,"rpc",f.JSC$17392_backChannelAttemptId_);f.httpHeadersOverwriteParam_===null&&(f.JSC$17392_backChannelRequest_.JSC$17373_extraHeaders_=f.JSC$17392_extraHeaders_);f.JSC$17392_backChannelRequest_.JSC$17373_readyStateChangeThrottleMs_=0;var R=f.JSC$17392_backChannelUri_.clone();_.Sr(R,"RID","rpc");_.Sr(R,"SID",f.sid_);_.Sr(R,"AID",f.JSC$17392_lastArrayId_);_.Sr(R,"CI",f.enableStreaming_?"0":"1");!f.enableStreaming_&&f.longPollingTimeout_&&
_.Sr(R,"TO",f.longPollingTimeout_);_.Sr(R,"TYPE","xmlhttp");zV(f,R);f.httpHeadersOverwriteParam_&&f.JSC$17392_extraHeaders_&&W8N(R,f.httpHeadersOverwriteParam_,f.JSC$17392_extraHeaders_);f.backChannelRequestTimeoutMs_&&f.JSC$17392_backChannelRequest_.setTimeout(f.backChannelRequestTimeoutMs_);var u=f.JSC$17392_backChannelRequest_,O=f.JSC$17392_hostPrefix_;u.JSC$17373_type_=1;u.JSC$17373_baseUri_=_.uz(R.clone());u.JSC$17373_postData_=null;u.decodeChunks_=!0;ktl(u,O);f.JSC$17392_channelDebug_.debug("New Request created")};
JW.prototype.JSC$17394_onBackChannelDead_=function(){this.JSC$17392_deadBackChannelTimerId_!=null&&(this.JSC$17392_deadBackChannelTimerId_=null,psN(this),jnN(this),E5(19))};
var bWt=function(f){f.JSC$17392_deadBackChannelTimerId_!=null&&(_.Oe.clearTimeout(f.JSC$17392_deadBackChannelTimerId_),f.JSC$17392_deadBackChannelTimerId_=null)},t4z=function(f,R){f.JSC$17392_channelDebug_.debug("Request complete");
var u=null;if(f.JSC$17392_backChannelRequest_==R){bWt(f);d25(f);f.JSC$17392_backChannelRequest_=null;var O=2}else if(L4t(f.forwardChannelRequestPool_,R))u=R.JSC$17373_pendingMessages_,IC5(f.forwardChannelRequestPool_,R),O=1;else return;if(f.state_!=0)if(R.JSC$17373_successful_)O==1?(fCh(R.JSC$17373_postData_?R.JSC$17373_postData_.length:0,Date.now()-R.JSC$17373_requestStartTime_,f.JSC$17392_forwardChannelRetryCount_),x2h(f)):YV2(f);else{var c=R.JSC$17373_lastStatusCode_,h=R.getLastError();if(h==3||
h==0&&c>0)f.JSC$17392_channelDebug_.debug("Not retrying due to error type"),c>200&&(f.errorResponseStatusCode_=R.JSC$17373_lastStatusCode_);else{f.JSC$17392_channelDebug_.debug(function(){return"Maybe retrying, last error: "+hoX(h,f.errorResponseStatusCode_)});
if(O==1&&snw(f,R)||O==2&&jnN(f))return;f.JSC$17392_channelDebug_.debug("Exceeded max number of retries")}u&&u.length>0&&Pz2(f.forwardChannelRequestPool_,u);f.JSC$17392_channelDebug_.debug("Error: HTTP request failed");switch(h){case 1:pX(f,5);break;case 4:pX(f,10);break;case 3:pX(f,6);break;default:pX(f,2)}}},gvh=function(f,R){var u=f.JSC$17392_baseRetryDelayMs_+Math.floor(Math.random()*f.JSC$17392_retryDelaySeedMs_);
f.isActive()||(f.JSC$17392_channelDebug_.debug("Inactive channel"),u*=2);return u*R};
JW.prototype.onInput_=function(f,R){for(var u=0;u<f.length;u++){var O=f[u];this.JSC$17392_lastArrayId_=O[0];O=O[1];if(this.state_==2)if(O[0]=="c"){this.sid_=O[1];this.JSC$17392_hostPrefix_=O[2];var c=O[3];c!=null&&(this.JSC$17394_channelVersion_=c,this.JSC$17392_channelDebug_.info("VER="+this.JSC$17394_channelVersion_));c=O[4];c!=null&&(this.serverVersion_=c,this.JSC$17392_channelDebug_.info("SVER="+this.serverVersion_));O=O[5];O!=null&&typeof O==="number"&&O>0&&(this.backChannelRequestTimeoutMs_=
O*=1.5,this.JSC$17392_channelDebug_.info("backChannelRequestTimeoutMs_="+O));if(O=R.JSC$17373_xmlHttp_){var h=qT(O,"X-Client-Wire-Protocol");h&&(c=this.forwardChannelRequestPool_,!c.requestPool_&&(_.qX(h,"spdy")||_.qX(h,"quic")||_.qX(h,"h2"))&&(c.JSC$17383_maxSize_=c.maxPoolSizeConfigured_,c.requestPool_=new Set,c.JSC$17383_request_&&(HWm(c,c.JSC$17383_request_),c.JSC$17383_request_=null)));this.httpSessionIdParam_&&((O=qT(O,"X-HTTP-Session-Id"))?(this.httpSessionId_=O,_.Sr(this.JSC$17392_forwardChannelUri_,
this.httpSessionIdParam_,O)):this.JSC$17392_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17398_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-R.JSC$17373_requestStartTime_,this.JSC$17392_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));O=R;c=ovm(this,this.JSC$17392_supportsCrossDomainXhrs_?this.JSC$17392_hostPrefix_:null,this.JSC$17392_path_);this.JSC$17392_channelDebug_.debug("GetBackChannelUri: "+
c);this.JSC$17392_backChannelUri_=c;O.initialResponseDecoded_?(this.JSC$17392_channelDebug_.debug("Upgrade the handshake request to a backchannel."),IC5(this.forwardChannelRequestPool_,O),c=O,(h=this.backChannelRequestTimeoutMs_)&&c.setTimeout(h),c.JSC$17373_watchDogTimerId_&&(ws9(c),qVt(c)),this.JSC$17392_backChannelRequest_=O):YV2(this);this.JSC$17392_outgoingMaps_.length>0&&x2h(this)}else O[0]!="stop"&&O[0]!="close"||pX(this,7);else this.state_==3&&(O[0]=="stop"||O[0]=="close"?O[0]=="stop"?pX(this,
7):this.disconnect():O[0]!="noop"&&this.handler_&&this.handler_.JSC$17398_channelHandleArray(O),this.JSC$17392_backChannelRetryCount_=0)}};
var pX=function(f,R){f.JSC$17392_channelDebug_.info("Error code "+R);if(R==2){var u=(0,_.NG)(f.testNetworkCallback_,f),O=f.networkTestUrl_,c=!O;O=new _.gu(O||"//www.google.com/images/cleardot.gif");_.Oe.location&&_.Oe.location.protocol=="http"||_.sF(O,"https");_.uz(O);c?U2a(O.toString(),u):eoe(O.toString(),u)}else E5(2);f.onError_(R)};
JW.prototype.testNetworkCallback_=function(f){f?(this.JSC$17392_channelDebug_.info("Successfully pinged google.com"),E5(2)):(this.JSC$17392_channelDebug_.info("Failed to ping google.com"),E5(1))};
JW.prototype.onError_=function(f){this.JSC$17392_channelDebug_.debug("HttpChannel: error - "+f);this.state_=0;this.handler_&&this.handler_.JSC$17398_channelError(f);$29(this);SVe(this)};
var $29=function(f){f.state_=0;f.nonAckedMapsAtChannelClose_=[];if(f.handler_){var R=M42(f.forwardChannelRequestPool_);if(R.length!=0||f.JSC$17392_outgoingMaps_.length!=0)f.JSC$17392_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+R.length+", outgoing: "+f.JSC$17392_outgoingMaps_.length}),_.uf(f.nonAckedMapsAtChannelClose_,R),_.uf(f.nonAckedMapsAtChannelClose_,f.JSC$17392_outgoingMaps_),f.forwardChannelRequestPool_.JSC$17383_pendingMessages_.length=0,_.iB(f.JSC$17392_outgoingMaps_),
f.JSC$17392_outgoingMaps_.length=0;
f.handler_.JSC$17398_channelClosed()}},iW2=function(f){if(f.state_==0)return f.nonAckedMapsAtChannelClose_;
var R=[];_.uf(R,M42(f.forwardChannelRequestPool_));_.uf(R,f.JSC$17392_outgoingMaps_);return R},ovm=function(f,R,u){var O=_.oj(u);
O.JSC$8036_domain_!=""?(R&&_.nd(O,R+"."+O.JSC$8036_domain_),_.Vc(O,O.JSC$8036_port_)):(O=_.Oe.location,O=ZUN(O.protocol,R?R+"."+O.hostname:O.hostname,+O.port,u));R=f.httpSessionIdParam_;u=f.httpSessionId_;R&&u&&_.Sr(O,R,u);_.Sr(O,"VER",f.JSC$17394_channelVersion_);zV(f,O);return O},A_N=function(f,R,u){if(R&&!f.JSC$17392_supportsCrossDomainXhrs_)throw Error("wk");
R=f.usesFetchStreams_&&!f.JSC$17392_xmlHttpFactory_?new _.NZ(new JR({streamBinaryChunks:u})):new _.NZ(f.JSC$17392_xmlHttpFactory_);R.JSC$7804_withCredentials_=f.JSC$17392_supportsCrossDomainXhrs_;return R};
JW.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var r_S=function(){};
_.X=r_S.prototype;_.X.JSC$17398_channelOpened=function(){};
_.X.JSC$17398_channelHandleArray=function(){};
_.X.JSC$17398_channelError=function(){};
_.X.JSC$17398_channelClosed=function(){};
_.X.isActive=function(){return!0};
_.X.JSC$17398_badMapError=function(){};var f2S=function(){},HE=function(f,R){_.mq.call(this);
this.JSC$17401_channel_=new JW(R);this.JSC$17401_url_=f;this.messageUrlParams_=R&&R.messageUrlParams||null;f=R&&R.messageHeaders||null;R&&R.clientProtocolHeaderRequired&&(f?_.dq.set(f,"X-Client-Protocol","webchannel"):f=_.dq.create("X-Client-Protocol","webchannel"));this.JSC$17401_channel_.JSC$17392_extraHeaders_=f;f=R&&R.initMessageHeaders||null;R&&R.messageContentType&&(f?_.dq.set(f,"X-WebChannel-Content-Type",R.messageContentType):f=_.dq.create("X-WebChannel-Content-Type",R.messageContentType));
R&&R.clientProfile&&(f?_.dq.set(f,"X-WebChannel-Client-Profile",R.clientProfile):f=_.dq.create("X-WebChannel-Client-Profile",R.clientProfile));this.JSC$17401_channel_.initHeaders_=f;(f=R&&R.httpHeadersOverwriteParam)&&!_.Kh(f)&&(this.JSC$17401_channel_.httpHeadersOverwriteParam_=f);this.supportsCrossDomainXhr_=R&&R.supportsCrossDomainXhr||!1;this.sendRawJson_=R&&R.sendRawJson||!1;(R=R&&R.httpSessionIdParam)&&!_.Kh(R)&&(this.JSC$17401_channel_.httpSessionIdParam_=R,_.dq.containsKey(this.messageUrlParams_,
R)&&_.dq.remove(this.messageUrlParams_,R));this.channelHandler_=new TV(this)};
_.f6(HE,_.mq);HE.prototype.open=function(){this.JSC$17401_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17401_channel_.JSC$17392_supportsCrossDomainXhrs_=!0);this.JSC$17401_channel_.connect(this.JSC$17401_url_,this.messageUrlParams_||void 0)};
HE.prototype.close=function(){this.JSC$17401_channel_.disconnect()};
HE.prototype.send=function(f){var R=this.JSC$17401_channel_;if(typeof f==="string"){var u={};u.__data__=f;f=u}else this.sendRawJson_&&(u={},u.__data__=(0,_.d4)(f),f=u);R.JSC$17392_outgoingMaps_.push(new J_m(R.JSC$17392_nextMapId_++,f));R.state_==3&&x2h(R)};
HE.prototype.disposeInternal=function(){this.JSC$17401_channel_.handler_=null;delete this.channelHandler_;this.JSC$17401_channel_.disconnect();delete this.JSC$17401_channel_;HE.superClass_.disposeInternal.call(this)};
var RU9=function(f){sfm.call(this);f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var R=f.__sm__;R?this.data=(this.metadataKey=_.dq.getAnyKey(R))?_.dq.get(R,this.metadataKey):R:this.data=f};
_.f6(RU9,sfm);var uSm=function(f){nIl.call(this);this.status=1;this.errorCode=f};
_.f6(uSm,nIl);var TV=function(f){this.JSC$17408_channel_=f};
_.f6(TV,r_S);TV.prototype.JSC$17398_channelOpened=function(){this.JSC$17408_channel_.dispatchEvent("w")};
TV.prototype.JSC$17398_channelHandleArray=function(f){this.JSC$17408_channel_.dispatchEvent(new RU9(f))};
TV.prototype.JSC$17398_channelError=function(f){this.JSC$17408_channel_.dispatchEvent(new uSm(f))};
TV.prototype.JSC$17398_channelClosed=function(){this.JSC$17408_channel_.dispatchEvent("x")};
var O5m=function(f,R){this.transportChannel_=f;this.JSC$17411_channel_=R},cVN=function(f){return iW2(f.JSC$17411_channel_).map(function(R){var u=f.transportChannel_;
R=R.map;"__data__"in R?(R=R.__data__,u=u.sendRawJson_?(0,_.g_i)(R):R):u=R;return u})};var Il=function(f){Xqm.dispatchEvent(new hUa(Xqm,f))},Xqm=new _.mq,hUa=function(f){_.qZ.call(this,"statevent",f)};
_.y(hUa,_.qZ);var M0=function(f,R,u,O,c){this.JSC$17416_channel_=f;this.JSC$17416_channelDebug_=R;this.sid_=u;this.JSC$17416_rid_=O;this.JSC$17416_retryId_=c||1;this.timeout_=45E3;this.JSC$17416_eventHandler_=new _.uE(this);this.pollingTimer_=new _.R$;this.pollingTimer_.setInterval(250)};
_.X=M0.prototype;_.X.JSC$17418_extraHeaders_=null;_.X.JSC$17418_successful_=!1;_.X.JSC$17418_watchDogTimerId_=null;_.X.JSC$17418_watchDogTimeoutTime_=null;_.X.JSC$17418_requestStartTime_=null;_.X.JSC$17418_type_=null;_.X.JSC$17418_baseUri_=null;_.X.JSC$17418_requestUri_=null;_.X.JSC$17418_postData_=null;_.X.JSC$17418_xmlHttp_=null;_.X.JSC$17418_xmlHttpChunkStart_=0;_.X.trident_=null;_.X.JSC$17418_verb_=null;_.X.JSC$17418_lastError_=null;_.X.JSC$17418_lastStatusCode_=-1;_.X.sendClose_=!0;
_.X.JSC$17418_cancelled_=!1;_.X.JSC$17418_readyStateChangeThrottleMs_=0;_.X.JSC$17418_readyStateChangeThrottle_=null;var Z5w=function(f,R){switch(f){case 0:return"Non-200 return code ("+R+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},l2S={},kgX={};
M0.prototype.setTimeout=function(f){this.timeout_=f};
var qQS=function(f,R,u){f.JSC$17418_type_=1;f.JSC$17418_baseUri_=_.uz(R.clone());f.JSC$17418_postData_=u;f.decodeChunks_=!0;KNm(f,null)},AVX=function(f,R,u,O,c){f.JSC$17418_type_=1;
f.JSC$17418_baseUri_=_.uz(R.clone());f.JSC$17418_postData_=null;f.decodeChunks_=u;c&&(f.sendClose_=!1);KNm(f,O)},KNm=function(f,R){f.JSC$17418_requestStartTime_=Date.now();
a2m(f);f.JSC$17418_requestUri_=f.JSC$17418_baseUri_.clone();X2(f.JSC$17418_requestUri_,"t",f.JSC$17416_retryId_);f.JSC$17418_xmlHttpChunkStart_=0;f.JSC$17418_xmlHttp_=f.JSC$17416_channel_.JSC$17425_createXhrIo(f.JSC$17416_channel_.JSC$17425_shouldUseSecondaryDomains()?R:null);f.JSC$17418_readyStateChangeThrottleMs_>0&&(f.JSC$17418_readyStateChangeThrottle_=new _.vJ((0,_.NG)(f.JSC$17418_xmlHttpHandler_,f,f.JSC$17418_xmlHttp_),f.JSC$17418_readyStateChangeThrottleMs_));f.JSC$17416_eventHandler_.listen(f.JSC$17418_xmlHttp_,
"readystatechange",f.JSC$17418_readyStateChangeHandler_);R=f.JSC$17418_extraHeaders_?_.dq.clone(f.JSC$17418_extraHeaders_):{};f.JSC$17418_postData_?(f.JSC$17418_verb_="POST",R["Content-Type"]="application/x-www-form-urlencoded",f.JSC$17418_xmlHttp_.send(f.JSC$17418_requestUri_,f.JSC$17418_verb_,f.JSC$17418_postData_,R)):(f.JSC$17418_verb_="GET",f.sendClose_&&!_.XA&&(R.Connection="close"),f.JSC$17418_xmlHttp_.send(f.JSC$17418_requestUri_,f.JSC$17418_verb_,null,R));f.JSC$17416_channel_.notifyServerReachabilityEvent(1);
R=f.JSC$17416_channelDebug_;var u=f.JSC$17418_postData_;if(u){var O="";u=u.split("&");for(var c=0;c<u.length;c++){var h=u[c].split("=");if(h.length>1){var l=h[0];h=h[1];var K=l.split("_");O=K.length>=2&&K[1]=="type"?O+(l+"="+h+"&"):O+(l+"=redacted&")}}}else O=null;R.info("XMLHTTP REQ ("+f.JSC$17416_rid_+") [attempt "+f.JSC$17416_retryId_+"]: "+f.JSC$17418_verb_+"\n"+f.JSC$17418_requestUri_+"\n"+O)};
M0.prototype.JSC$17418_readyStateChangeHandler_=function(f){f=f.target;var R=this.JSC$17418_readyStateChangeThrottle_;R&&_.Ld(f)==3?(this.JSC$17416_channelDebug_.debug("Throttling readystatechange."),R.fire()):this.JSC$17418_xmlHttpHandler_(f)};
M0.prototype.JSC$17418_xmlHttpHandler_=function(f){try{if(f==this.JSC$17418_xmlHttp_)a:{var R=_.Ld(this.JSC$17418_xmlHttp_),u=this.JSC$17418_xmlHttp_.JSC$7804_lastErrorCode_,O=this.JSC$17418_xmlHttp_.getStatus();if(_.XA&&!_.hM("420+")){if(R<4)break a}else if(R<3||R==3&&!this.JSC$17418_xmlHttp_.getResponseText())break a;this.JSC$17418_cancelled_||R!=4||u==7||(u==8||O<=0?this.JSC$17416_channel_.notifyServerReachabilityEvent(3):this.JSC$17416_channel_.notifyServerReachabilityEvent(2));FNK(this);var c=
this.JSC$17418_xmlHttp_.getStatus();this.JSC$17418_lastStatusCode_=c;var h=this.JSC$17418_xmlHttp_.getResponseText();h||this.JSC$17416_channelDebug_.debug("No response text for uri "+this.JSC$17418_requestUri_+" status "+c);this.JSC$17418_successful_=c==200;this.JSC$17416_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17416_rid_+") [ attempt "+this.JSC$17416_retryId_+"]: "+this.JSC$17418_verb_+"\n"+this.JSC$17418_requestUri_+"\n"+R+" "+c);if(this.JSC$17418_successful_){R==4&&PE(this);if(this.decodeChunks_){for(f=
!0;!this.JSC$17418_cancelled_&&this.JSC$17418_xmlHttpChunkStart_<h.length;){var l=wqK(this,h);if(l==kgX){R==4&&(this.JSC$17418_lastError_=4,Il(15),f=!1);U5(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,null,"[Incomplete Response]");break}else if(l==l2S){this.JSC$17418_lastError_=4;Il(16);U5(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,h,"[Invalid Chunk]");f=!1;break}else U5(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,l,null),m_9(this,l)}R==4&&h.length==0&&(this.JSC$17418_lastError_=1,
Il(17),f=!1);this.JSC$17418_successful_=this.JSC$17418_successful_&&f;f||(U5(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,h,"[Invalid Chunked Response]"),PE(this),Qze(this))}else U5(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,h,null),m_9(this,h);this.JSC$17418_successful_&&!this.JSC$17418_cancelled_&&(R==4?this.JSC$17416_channel_.JSC$17425_onRequestComplete(this):(this.JSC$17418_successful_=!1,a2m(this)))}else c==400&&h.indexOf("Unknown SID")>0?(this.JSC$17418_lastError_=3,Il(13),this.JSC$17416_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17416_rid_+")")):(this.JSC$17418_lastError_=0,Il(14),this.JSC$17416_channelDebug_.warning("XMLHTTP Bad status "+c+" ("+this.JSC$17416_rid_+")")),PE(this),Qze(this)}else this.JSC$17416_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(K){this.JSC$17416_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var wqK=function(f,R){var u=f.JSC$17418_xmlHttpChunkStart_,O=R.indexOf("\n",u);if(O==-1)return kgX;u=Number(R.substring(u,O));if(isNaN(u))return l2S;O+=1;if(O+u>R.length)return kgX;R=R.slice(O,O+u);f.JSC$17418_xmlHttpChunkStart_=O+u;return R};
M0.prototype.cancel=function(){this.JSC$17418_cancelled_=!0;PE(this)};
var a2m=function(f){f.JSC$17418_watchDogTimeoutTime_=Date.now()+f.timeout_;WNl(f,f.timeout_)},WNl=function(f,R){if(f.JSC$17418_watchDogTimerId_!=null)throw Error("vk");
f.JSC$17418_watchDogTimerId_=da((0,_.NG)(f.JSC$17418_onWatchDogTimeout_,f),R)},FNK=function(f){f.JSC$17418_watchDogTimerId_&&(_.Oe.clearTimeout(f.JSC$17418_watchDogTimerId_),f.JSC$17418_watchDogTimerId_=null)};
M0.prototype.JSC$17418_onWatchDogTimeout_=function(){this.JSC$17418_watchDogTimerId_=null;var f=Date.now();f-this.JSC$17418_watchDogTimeoutTime_>=0?(this.JSC$17416_channelDebug_.info("TIMEOUT: "+this.JSC$17418_requestUri_),this.JSC$17418_type_!=2&&this.JSC$17416_channel_.notifyServerReachabilityEvent(3),PE(this),this.JSC$17418_lastError_=2,Il(18),Qze(this)):(this.JSC$17416_channelDebug_.warning("WatchDog timer called too early"),WNl(this,this.JSC$17418_watchDogTimeoutTime_-f))};
var Qze=function(f){f.JSC$17416_channel_.JSC$17425_isClosed()||f.JSC$17418_cancelled_||f.JSC$17416_channel_.JSC$17425_onRequestComplete(f)},PE=function(f){FNK(f);
_.YD(f.JSC$17418_readyStateChangeThrottle_);f.JSC$17418_readyStateChangeThrottle_=null;f.pollingTimer_.stop();f.JSC$17416_eventHandler_.removeAll();if(f.JSC$17418_xmlHttp_){var R=f.JSC$17418_xmlHttp_;f.JSC$17418_xmlHttp_=null;R.abort();R.dispose()}f.trident_&&(f.trident_=null)};
M0.prototype.getLastError=function(){return this.JSC$17418_lastError_};
var m_9=function(f,R){try{f.JSC$17416_channel_.JSC$17425_onRequestData(f,R),f.JSC$17416_channel_.notifyServerReachabilityEvent(4)}catch(u){}};var U5=function(f,R,u,O){var c=f.info;a:if(u&&u!="y2f%"){try{var h=JSON.parse(u);if(h)for(var l=0;l<h.length;l++)if(Array.isArray(h[l])){var K=h[l];if(!(K.length<2)){var q=K[1];if(Array.isArray(q)&&!(q.length<1)){var F=q[0];if(F!="noop"&&F!="stop")for(var w=1;w<q.length;w++)q[w]=""}}}var m=(0,_.d4)(h);break a}catch(W){f.debug("Exception parsing expected JS array - probably was not JS");m=u;break a}m=void 0}else m=u;c.call(f,"XMLHTTP TEXT ("+R+"): "+m+(O?" "+O:""))};
NT.prototype.debug=function(f){this.info(f)};
NT.prototype.info=function(){};
NT.prototype.warning=function(){};var EwX=function(f,R){this.JSC$17423_channel_=f;this.JSC$17423_channelDebug_=R;this.JSC$17423_parser_=new Qd};
_.X=EwX.prototype;_.X.JSC$17425_extraHeaders_=null;_.X.JSC$17425_request_=null;_.X.receivedIntermediateResult_=!1;_.X.JSC$17425_path_=null;_.X.state_=null;_.X.JSC$17425_lastStatusCode_=-1;_.X.JSC$17425_hostPrefix_=null;_.X.blockedPrefix_=null;
_.X.connect=function(f){this.JSC$17425_path_=f;f=tH5(this.JSC$17423_channel_,this.JSC$17425_path_);Il(3);Date.now();var R=this.JSC$17423_channel_.firstTestResults_;R!=null?(this.JSC$17425_hostPrefix_=R[0],(this.blockedPrefix_=R[1])?(this.state_=1,C0K(this)):(this.state_=2,yVm(this))):(X2(f,"MODE","init"),this.JSC$17425_request_=new M0(this,this.JSC$17423_channelDebug_),this.JSC$17425_request_.JSC$17418_extraHeaders_=this.JSC$17425_extraHeaders_,AVX(this.JSC$17425_request_,f,!1,null,!0),this.state_=
0)};
var C0K=function(f){var R=d_z(f.JSC$17423_channel_,f.blockedPrefix_,"/mail/images/cleardot.gif");_.uz(R);fa9(R.toString(),5E3,(0,_.NG)(f.checkBlockedCallback_,f),3,2E3);f.notifyServerReachabilityEvent(1)};
EwX.prototype.checkBlockedCallback_=function(f){if(f)this.state_=2,yVm(this);else{Il(4);var R=this.JSC$17423_channel_;R.JSC$17426_channelDebug_.debug("Test Connection Blocked");R.JSC$17430_lastStatusCode_=R.connectionTest_.JSC$17425_lastStatusCode_;es(R,9)}f&&this.notifyServerReachabilityEvent(2)};
var yVm=function(f){f.JSC$17423_channelDebug_.debug("TestConnection: starting stage 2");var R=f.JSC$17423_channel_.secondTestResults_;R!=null?(f.JSC$17423_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+R?"Buffered":"Unbuffered"),Il(5),R?(Il(11),GV(f.JSC$17423_channel_,f,!1)):(Il(12),GV(f.JSC$17423_channel_,f,!0))):(f.JSC$17425_request_=new M0(f,f.JSC$17423_channelDebug_),f.JSC$17425_request_.JSC$17418_extraHeaders_=f.JSC$17425_extraHeaders_,R=N5w(f.JSC$17423_channel_,
f.JSC$17425_hostPrefix_,f.JSC$17425_path_),Il(5),X2(R,"TYPE","xmlhttp"),AVX(f.JSC$17425_request_,R,!1,f.JSC$17425_hostPrefix_,!1))};
_.X=EwX.prototype;_.X.JSC$17425_createXhrIo=function(f){return this.JSC$17423_channel_.JSC$17425_createXhrIo(f)};
_.X.abort=function(){this.JSC$17425_request_&&(this.JSC$17425_request_.cancel(),this.JSC$17425_request_=null);this.JSC$17425_lastStatusCode_=-1};
_.X.JSC$17425_isClosed=function(){return!1};
_.X.JSC$17425_onRequestData=function(f,R){this.JSC$17425_lastStatusCode_=f.JSC$17418_lastStatusCode_;if(this.state_==0)if(this.JSC$17423_channelDebug_.debug("TestConnection: Got data for stage 1"),R){try{var u=this.JSC$17423_parser_.parse(R)}catch(O){LNw(this.JSC$17423_channel_,this);return}this.JSC$17425_hostPrefix_=u[0];this.blockedPrefix_=u[1]}else this.JSC$17423_channelDebug_.debug("TestConnection: Null responseText"),LNw(this.JSC$17423_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Il(7),Date.now()):R=="11111"?(Il(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17425_lastStatusCode_=200,this.JSC$17425_request_.cancel(),this.JSC$17423_channelDebug_.debug("Test connection succeeded; using streaming connection"),Il(12),GV(this.JSC$17423_channel_,this,!0)):(Il(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.X.JSC$17425_onRequestComplete=function(){this.JSC$17425_lastStatusCode_=this.JSC$17425_request_.JSC$17418_lastStatusCode_;this.JSC$17425_request_.JSC$17418_successful_?this.state_==0?(this.JSC$17423_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,C0K(this)):(this.state_=2,yVm(this))):this.state_==2&&(this.JSC$17423_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17423_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Il(12),GV(this.JSC$17423_channel_,this,!0)):(this.JSC$17423_channelDebug_.debug("Test connection failed; not using streaming"),Il(11),GV(this.JSC$17423_channel_,this,!1))):(this.JSC$17423_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Il(9):this.state_==2&&Il(10),LNw(this.JSC$17423_channel_,this,this.JSC$17425_request_.getLastError()))};
_.X.JSC$17425_shouldUseSecondaryDomains=function(){return this.JSC$17423_channel_.JSC$17425_shouldUseSecondaryDomains()};
_.X.isActive=function(){return this.JSC$17423_channel_.isActive()};
_.X.notifyServerReachabilityEvent=function(f){this.JSC$17423_channel_.notifyServerReachabilityEvent(f)};var BE=function(f,R,u){this.state_=1;this.JSC$17426_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17426_channelDebug_=new NT;this.JSC$17426_parser_=new Qd;this.firstTestResults_=f||null;this.secondTestResults_=R!=null?R:null;this.asyncTest_=u||!1},b5m=function(f,R){this.JSC$17428_mapId=f;
this.map=R;this.context=null};
_.X=BE.prototype;_.X.JSC$17430_extraHeaders_=null;_.X.JSC$17430_extraParams_=null;_.X.forwardChannelRequest_=null;_.X.JSC$17430_backChannelRequest_=null;_.X.JSC$17430_path_=null;_.X.JSC$17430_forwardChannelUri_=null;_.X.JSC$17430_backChannelUri_=null;_.X.JSC$17430_hostPrefix_=null;_.X.JSC$17430_nextRid_=0;_.X.JSC$17430_nextMapId_=0;_.X.handler_=null;_.X.JSC$17430_forwardChannelTimerId_=null;_.X.JSC$17430_backChannelTimerId_=null;_.X.JSC$17430_deadBackChannelTimerId_=null;_.X.connectionTest_=null;
_.X.useChunked_=null;_.X.JSC$17430_lastArrayId_=-1;_.X.JSC$17430_lastPostResponseArrayId_=-1;_.X.JSC$17430_lastStatusCode_=-1;_.X.JSC$17430_forwardChannelRetryCount_=0;_.X.JSC$17430_backChannelRetryCount_=0;_.X.JSC$17430_channelVersion_=8;var pqm={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},jzt=function(f,R,u,O){_.qZ.call(this,"timingevent",f);this.size=R;this.rtt=u;this.retries=O};
_.f6(jzt,_.qZ);var D_h=function(f){_.qZ.call(this,"serverreachability",f)};
_.f6(D_h,_.qZ);BE.prototype.connect=function(f,R,u,O,c){this.JSC$17426_channelDebug_.debug("connect()");Il(0);this.JSC$17430_path_=R;this.JSC$17430_extraParams_=u||{};O&&c!==void 0&&(this.JSC$17430_extraParams_.OSID=O,this.JSC$17430_extraParams_.OAID=c);this.asyncTest_?(da((0,_.NG)(this.connectTest_,this,f),100),JVh(this)):this.connectTest_(f)};
BE.prototype.disconnect=function(){this.JSC$17426_channelDebug_.debug("disconnect()");zU5(this);if(this.state_==3){var f=this.JSC$17430_nextRid_++,R=this.JSC$17430_forwardChannelUri_.clone();_.Sr(R,"SID",this.sid_);_.Sr(R,"RID",f);_.Sr(R,"TYPE","terminate");ol(this,R);f=new M0(this,this.JSC$17426_channelDebug_,this.sid_,f);f.JSC$17418_type_=2;f.JSC$17418_baseUri_=_.uz(R.clone());(new Image).src=f.JSC$17418_baseUri_.toString();f.JSC$17418_requestStartTime_=Date.now();a2m(f)}T5S(this)};
BE.prototype.connectTest_=function(f){this.JSC$17426_channelDebug_.debug("connectTest_()");this.connectionTest_=new EwX(this,this.JSC$17426_channelDebug_);this.connectionTest_.JSC$17425_extraHeaders_=this.JSC$17430_extraHeaders_;this.connectionTest_.JSC$17423_parser_=this.JSC$17426_parser_;this.connectionTest_.connect(f)};
var JVh=function(f){f.JSC$17426_channelDebug_.debug("connectChannel_()");f.JSC$17430_ensureInState_(1,0);f.JSC$17430_forwardChannelUri_=tH5(f,f.JSC$17430_path_);H5K(f)},zU5=function(f){f.connectionTest_&&(f.connectionTest_.abort(),f.connectionTest_=null);
f.JSC$17430_backChannelRequest_&&(f.JSC$17430_backChannelRequest_.cancel(),f.JSC$17430_backChannelRequest_=null);f.JSC$17430_backChannelTimerId_&&(_.Oe.clearTimeout(f.JSC$17430_backChannelTimerId_),f.JSC$17430_backChannelTimerId_=null);I2t(f);f.forwardChannelRequest_&&(f.forwardChannelRequest_.cancel(),f.forwardChannelRequest_=null);f.JSC$17430_forwardChannelTimerId_&&(_.Oe.clearTimeout(f.JSC$17430_forwardChannelTimerId_),f.JSC$17430_forwardChannelTimerId_=null)},MHt=function(f,R){if(f.state_==0)throw Error("yk");
f.JSC$17426_outgoingMaps_.length==1E3&&f.JSC$17426_parser_.stringify(R);f.JSC$17426_outgoingMaps_.push(new b5m(f.JSC$17430_nextMapId_++,R));f.state_!=2&&f.state_!=3||H5K(f)};
BE.prototype.JSC$17425_isClosed=function(){return this.state_==0};
BE.prototype.getState=function(){return this.state_};
var H5K=function(f){f.forwardChannelRequest_||f.JSC$17430_forwardChannelTimerId_||(f.JSC$17430_forwardChannelTimerId_=da((0,_.NG)(f.JSC$17430_onStartForwardChannelTimer_,f),0),f.JSC$17430_forwardChannelRetryCount_=0)};
BE.prototype.JSC$17430_onStartForwardChannelTimer_=function(f){this.JSC$17430_forwardChannelTimerId_=null;P0m(this,f)};
var P0m=function(f,R){f.JSC$17426_channelDebug_.debug("startForwardChannel_");if(f.state_==1){if(!R){f.JSC$17426_channelDebug_.debug("open_()");f.JSC$17430_nextRid_=Math.floor(Math.random()*1E5);R=f.JSC$17430_nextRid_++;var u=new M0(f,f.JSC$17426_channelDebug_,"",R);u.JSC$17418_extraHeaders_=f.JSC$17430_extraHeaders_;var O=U_K(f),c=f.JSC$17430_forwardChannelUri_.clone();_.Sr(c,"RID",R);_.Sr(c,"CVER","1");ol(f,c);qQS(u,c,O);f.forwardChannelRequest_=u;f.state_=2}}else f.state_==3&&(R?eUl(f,R):f.JSC$17426_outgoingMaps_.length==
0?f.JSC$17426_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):f.forwardChannelRequest_||(eUl(f),f.JSC$17426_channelDebug_.debug("startForwardChannel_ finished, sent request")))},eUl=function(f,R){if(R)if(f.JSC$17430_channelVersion_>6){f.JSC$17426_outgoingMaps_=f.pendingMaps_.concat(f.JSC$17426_outgoingMaps_);
f.pendingMaps_.length=0;var u=f.JSC$17430_nextRid_-1;R=U_K(f)}else u=R.JSC$17416_rid_,R=R.JSC$17418_postData_;else u=f.JSC$17430_nextRid_++,R=U_K(f);var O=f.JSC$17430_forwardChannelUri_.clone();_.Sr(O,"SID",f.sid_);_.Sr(O,"RID",u);_.Sr(O,"AID",f.JSC$17430_lastArrayId_);ol(f,O);u=new M0(f,f.JSC$17426_channelDebug_,f.sid_,u,f.JSC$17430_forwardChannelRetryCount_+1);u.JSC$17418_extraHeaders_=f.JSC$17430_extraHeaders_;u.setTimeout(1E4+Math.round(1E4*Math.random()));f.forwardChannelRequest_=u;qQS(u,O,R)},
ol=function(f,R){f.handler_&&(f=f.handler_.JSC$17437_getAdditionalParams())&&_.dq.forEach(f,function(u,O){_.Sr(R,O,u)})},U_K=function(f){var R=Math.min(f.JSC$17426_outgoingMaps_.length,1E3),u=["count="+R];
if(f.JSC$17430_channelVersion_>6&&R>0){var O=f.JSC$17426_outgoingMaps_[0].JSC$17428_mapId;u.push("ofs="+O)}else O=0;for(var c={},h=0;h<R;c={mapId$jscomp$3:void 0},h++){c.mapId$jscomp$3=f.JSC$17426_outgoingMaps_[h].JSC$17428_mapId;var l=f.JSC$17426_outgoingMaps_[h].map;c.mapId$jscomp$3=f.JSC$17430_channelVersion_<=6?h:c.mapId$jscomp$3-O;try{_.dq.forEach(l,function(K){return function(q,F){u.push("req"+K.mapId$jscomp$3+"_"+F+"="+encodeURIComponent(q))}}(c))}catch(K){u.push("req"+c.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}f.pendingMaps_=f.pendingMaps_.concat(f.JSC$17426_outgoingMaps_.splice(0,R));
return u.join("&")},Ggz=function(f){f.JSC$17430_backChannelRequest_||f.JSC$17430_backChannelTimerId_||(f.JSC$17430_backChannelAttemptId_=1,f.JSC$17430_backChannelTimerId_=da((0,_.NG)(f.JSC$17430_onStartBackChannelTimer_,f),0),f.JSC$17430_backChannelRetryCount_=0)},owS=function(f){if(f.JSC$17430_backChannelRequest_||f.JSC$17430_backChannelTimerId_||f.JSC$17430_backChannelRetryCount_>=3)return!1;
f.JSC$17426_channelDebug_.debug("Going to retry GET");f.JSC$17430_backChannelAttemptId_++;f.JSC$17430_backChannelTimerId_=da((0,_.NG)(f.JSC$17430_onStartBackChannelTimer_,f),B52(f,f.JSC$17430_backChannelRetryCount_));f.JSC$17430_backChannelRetryCount_++;return!0};
BE.prototype.JSC$17430_onStartBackChannelTimer_=function(){this.JSC$17430_backChannelTimerId_=null;this.JSC$17426_channelDebug_.debug("Creating new HttpRequest");this.JSC$17430_backChannelRequest_=new M0(this,this.JSC$17426_channelDebug_,this.sid_,"rpc",this.JSC$17430_backChannelAttemptId_);this.JSC$17430_backChannelRequest_.JSC$17418_extraHeaders_=this.JSC$17430_extraHeaders_;this.JSC$17430_backChannelRequest_.JSC$17418_readyStateChangeThrottleMs_=0;var f=this.JSC$17430_backChannelUri_.clone();_.Sr(f,
"RID","rpc");_.Sr(f,"SID",this.sid_);_.Sr(f,"CI",this.useChunked_?"0":"1");_.Sr(f,"AID",this.JSC$17430_lastArrayId_);ol(this,f);_.Sr(f,"TYPE","xmlhttp");AVX(this.JSC$17430_backChannelRequest_,f,!0,this.JSC$17430_hostPrefix_,!1);this.JSC$17426_channelDebug_.debug("New Request created")};
var GV=function(f,R,u){f.JSC$17426_channelDebug_.debug("Test Connection Finished");f.useChunked_=f.secondTestResults_==null?u:!f.secondTestResults_;f.JSC$17430_lastStatusCode_=R.JSC$17425_lastStatusCode_;f.asyncTest_||JVh(f)},LNw=function(f,R){f.JSC$17426_channelDebug_.debug("Test Connection Failed");
f.JSC$17430_lastStatusCode_=R.JSC$17425_lastStatusCode_;es(f,2)};
BE.prototype.JSC$17425_onRequestData=function(f,R){if(this.state_!=0&&(this.JSC$17430_backChannelRequest_==f||this.forwardChannelRequest_==f))if(this.JSC$17430_lastStatusCode_=f.JSC$17418_lastStatusCode_,this.forwardChannelRequest_==f&&this.state_==3)if(this.JSC$17430_channelVersion_>7){try{var u=this.JSC$17426_parser_.parse(R)}catch(O){u=null}if(Array.isArray(u)&&u.length==3)if(R=u,R[0]==0)a:if(this.JSC$17426_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17430_backChannelTimerId_)this.JSC$17426_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17430_backChannelRequest_)if(this.JSC$17430_backChannelRequest_.JSC$17418_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17418_requestStartTime_)I2t(this),this.JSC$17430_backChannelRequest_.cancel(),this.JSC$17430_backChannelRequest_=null;else break a;else this.JSC$17426_channelDebug_.warning("We do not have a BackChannel established");owS(this);Il(19)}else this.JSC$17430_lastPostResponseArrayId_=R[1],f=this.JSC$17430_lastPostResponseArrayId_-this.JSC$17430_lastArrayId_,0<
f&&(R=R[2],this.JSC$17426_channelDebug_.debug(R+" bytes (in "+f+" arrays) are outstanding on the BackChannel"),R<37500&&this.useChunked_&&this.JSC$17430_backChannelRetryCount_==0&&!this.JSC$17430_deadBackChannelTimerId_&&(this.JSC$17430_deadBackChannelTimerId_=da((0,_.NG)(this.JSC$17430_onBackChannelDead_,this),6E3)));else this.JSC$17426_channelDebug_.debug("Bad POST response data returned"),es(this,11)}else R!="y2f%"&&(this.JSC$17426_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
es(this,11));else this.JSC$17430_backChannelRequest_==f&&I2t(this),_.Kh(R)||(f=this.JSC$17426_parser_.parse(R),this.onInput_(f))};
BE.prototype.JSC$17430_onBackChannelDead_=function(){this.JSC$17430_deadBackChannelTimerId_!=null&&(this.JSC$17430_deadBackChannelTimerId_=null,this.JSC$17430_backChannelRequest_.cancel(),this.JSC$17430_backChannelRequest_=null,owS(this),Il(20))};
var I2t=function(f){f.JSC$17430_deadBackChannelTimerId_!=null&&(_.Oe.clearTimeout(f.JSC$17430_deadBackChannelTimerId_),f.JSC$17430_deadBackChannelTimerId_=null)};
BE.prototype.JSC$17425_onRequestComplete=function(f){this.JSC$17426_channelDebug_.debug("Request complete");if(this.JSC$17430_backChannelRequest_==f){I2t(this);this.JSC$17430_backChannelRequest_=null;var R=2}else if(this.forwardChannelRequest_==f)this.forwardChannelRequest_=null,R=1;else return;this.JSC$17430_lastStatusCode_=f.JSC$17418_lastStatusCode_;if(this.state_!=0)if(f.JSC$17418_successful_)if(R==1){R=f.JSC$17418_postData_?f.JSC$17418_postData_.length:0;f=Date.now()-f.JSC$17418_requestStartTime_;
var u=Xqm;u.dispatchEvent(new jzt(u,R,f,this.JSC$17430_forwardChannelRetryCount_));H5K(this);this.handler_&&this.handler_.JSC$17437_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Ggz(this);else{u=f.getLastError();if(u==3||u==7||u==0&&this.JSC$17430_lastStatusCode_>0)this.JSC$17426_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17426_channelDebug_.debug("Maybe retrying, last error: "+Z5w(u,this.JSC$17430_lastStatusCode_));var O;if(O=R==1)this.forwardChannelRequest_||
this.JSC$17430_forwardChannelTimerId_||this.state_==1||this.JSC$17430_forwardChannelRetryCount_>=2?O=!1:(this.JSC$17426_channelDebug_.debug("Going to retry POST"),this.JSC$17430_forwardChannelTimerId_=da((0,_.NG)(this.JSC$17430_onStartForwardChannelTimer_,this,f),B52(this,this.JSC$17430_forwardChannelRetryCount_)),this.JSC$17430_forwardChannelRetryCount_++,O=!0);if(O||R==2&&owS(this))return;this.JSC$17426_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17426_channelDebug_.debug("Error: HTTP request failed");
switch(u){case 1:es(this,5);break;case 4:es(this,10);break;case 3:es(this,6);break;case 7:es(this,12);break;default:es(this,2)}}};
var B52=function(f,R){var u=5E3+Math.floor(Math.random()*1E4);f.isActive()||(f.JSC$17426_channelDebug_.debug("Inactive channel"),u*=2);return u*R};
BE.prototype.onInput_=function(f){for(var R=0;R<f.length;R++){var u=f[R];this.JSC$17430_lastArrayId_=u[0];u=u[1];this.state_==2?u[0]=="c"?(this.sid_=u[1],this.JSC$17430_hostPrefix_=u[2],u=u[3],u!=null?this.JSC$17430_channelVersion_=u:this.JSC$17430_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17437_channelOpened(),this.JSC$17430_backChannelUri_=N5w(this,this.JSC$17430_hostPrefix_,this.JSC$17430_path_),Ggz(this)):u[0]=="stop"&&es(this,7):this.state_==3&&(u[0]=="stop"?es(this,7):
u[0]!="noop"&&this.handler_&&this.handler_.JSC$17437_channelHandleArray(u),this.JSC$17430_backChannelRetryCount_=0)}};
BE.prototype.JSC$17430_ensureInState_=function(f){if(!_.g7(arguments,this.state_))throw Error("zk`"+this.state_);};
var es=function(f,R){f.JSC$17426_channelDebug_.info("Error code "+R);if(R==2||R==9){var u=null;f.handler_&&(u=null);var O=(0,_.NG)(f.testGoogleComCallback_,f);u||(u=new _.gu("//www.google.com/images/cleardot.gif"),_.uz(u));rrt(u.toString(),1E4,O)}else Il(2);f.onError_(R)};
BE.prototype.testGoogleComCallback_=function(f){f?(this.JSC$17426_channelDebug_.info("Successfully pinged google.com"),Il(2)):(this.JSC$17426_channelDebug_.info("Failed to ping google.com"),Il(1),this.onError_(8))};
BE.prototype.onError_=function(f){this.JSC$17426_channelDebug_.debug("HttpChannel: error - "+f);this.state_=0;this.handler_&&this.handler_.JSC$17437_channelError(f);T5S(this);zU5(this)};
var T5S=function(f){f.state_=0;f.JSC$17430_lastStatusCode_=-1;if(f.handler_)if(f.pendingMaps_.length==0&&f.JSC$17426_outgoingMaps_.length==0)f.handler_.JSC$17437_channelClosed();else{f.JSC$17426_channelDebug_.debug("Number of undelivered maps, pending: "+f.pendingMaps_.length+", outgoing: "+f.JSC$17426_outgoingMaps_.length);var R=_.iB(f.pendingMaps_),u=_.iB(f.JSC$17426_outgoingMaps_);f.pendingMaps_.length=0;f.JSC$17426_outgoingMaps_.length=0;f.handler_.JSC$17437_channelClosed(R,u)}},tH5=function(f,
R){R=d_z(f,null,R);
f.JSC$17426_channelDebug_.debug("GetForwardChannelUri: "+R);return R},N5w=function(f,R,u){R=d_z(f,f.JSC$17425_shouldUseSecondaryDomains()?R:null,u);
f.JSC$17426_channelDebug_.debug("GetBackChannelUri: "+R);return R},d_z=function(f,R,u){var O=_.oj(u);
if(O.JSC$8036_domain_!="")R&&_.nd(O,R+"."+O.JSC$8036_domain_),_.Vc(O,O.JSC$8036_port_);else{var c=window.location;O=ZUN(c.protocol,R?R+"."+c.hostname:c.hostname,+c.port,u)}f.JSC$17430_extraParams_&&_.dq.forEach(f.JSC$17430_extraParams_,function(h,l){_.Sr(O,l,h)});
_.Sr(O,"VER",f.JSC$17430_channelVersion_);ol(f,O);return O};
BE.prototype.JSC$17425_createXhrIo=function(f){if(f)throw Error("wk");f=new _.NZ;f.JSC$7804_withCredentials_=!1;return f};
BE.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
BE.prototype.notifyServerReachabilityEvent=function(f){var R=Xqm;R.dispatchEvent(new D_h(R,f))};
BE.prototype.JSC$17425_shouldUseSecondaryDomains=function(){return!1};
new azw;var x_w=function(){};
_.X=x_w.prototype;_.X.JSC$17437_channelOpened=function(){};
_.X.JSC$17437_channelHandleArray=function(){};
_.X.JSC$17437_channelSuccess=function(){};
_.X.JSC$17437_channelError=function(){};
_.X.JSC$17437_channelClosed=function(){};
_.X.JSC$17437_getAdditionalParams=function(){return{}};
_.X.isActive=function(){return!0};var SQz=function(f){f.front_.length===0&&(f.front_=f.back_,f.front_.reverse(),f.back_=[])};
_.X=uPN.prototype;_.X.enqueue=function(f){this.back_.push(f)};
_.X.peek=function(){SQz(this);return _.Ue(this.front_)};
_.X.getCount=function(){return this.front_.length+this.back_.length};
_.X.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.X.clear=function(){this.front_=[];this.back_=[]};
_.X.contains=function(f){return _.g7(this.front_,f)||_.g7(this.back_,f)};
_.X.remove=function(f){var R=this.front_;var u=Array.prototype.lastIndexOf.call(R,f,R.length-1);u>=0?(_.nh(R,u),R=!0):R=!1;return R||_.v0(this.back_,f)};
_.X.getValues=function(){for(var f=[],R=this.front_.length-1;R>=0;--R)f.push(this.front_[R]);R=this.back_.length;for(var u=0;u<R;++u)f.push(this.back_[u]);return f};var x9=function(f){this.JSC$17441_map_=new _.OT;this.size=0;f&&this.addAll(f)},$_z=function(f){var R=typeof f;
return R=="object"&&f||R=="function"?"o"+_.cG(f):R.charAt(0)+f};
_.X=x9.prototype;_.X.getCount=function(){return this.JSC$17441_map_.size};
_.X.add=function(f){this.JSC$17441_map_.set($_z(f),f);this.size=this.JSC$17441_map_.size};
_.X.addAll=function(f){f=_.g4(f);for(var R=f.length,u=0;u<R;u++)this.add(f[u]);this.size=this.JSC$17441_map_.size};
_.X.removeAll=function(f){f=_.g4(f);for(var R=f.length,u=0;u<R;u++)this.remove(f[u]);this.size=this.JSC$17441_map_.size};
_.X.delete=function(f){f=this.JSC$17441_map_.remove($_z(f));this.size=this.JSC$17441_map_.size;return f};
_.X.remove=function(f){return this.delete(f)};
_.X.clear=function(){this.JSC$17441_map_.clear();this.size=0};
_.X.isEmpty=function(){return this.JSC$17441_map_.size===0};
_.X.has=function(f){return this.JSC$17441_map_.containsKey($_z(f))};
_.X.contains=function(f){return this.JSC$17441_map_.containsKey($_z(f))};
_.X.getValues=function(){return this.JSC$17441_map_.getValues()};
_.X.values=function(){return this.JSC$17441_map_.values()};
_.X.clone=function(){return new x9(this)};
_.X.equals=function(f){return this.getCount()==X72(f)&&gwl(this,f)};
var gwl=function(f,R){var u=X72(R);if(f.getCount()>u)return!1;!(R instanceof x9)&&u>5&&(R=new x9(R));return hq5(f,function(O){var c=R;return c.contains&&typeof c.contains=="function"?c.contains(O):c.containsValue&&typeof c.containsValue=="function"?c.containsValue(O):_.Rk(c)||typeof c==="string"?_.g7(c,O):_.dq.containsValue(c,O)})};
x9.prototype.__iterator__=function(){return this.JSC$17441_map_.__iterator__(!1)};
x9.prototype[Symbol.iterator]=function(){return this.values()};var sz2={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(f){return(this._clampValue(f)-this.min)/(this.max-this.min)},
_clampValue:function(f){return Math.min(this.max,Math.max(this.min,this._calcStep(f)))},
_calcStep:function(f){f=parseFloat(f);if(!this.step)return f;f=Math.round((f-this.min)/this.step);return this.step<1?f/(1/this.step)+this.min:f*this.step+this.min},
_validateValue:function(){var f=this._clampValue(this.value);this.value=this.oldValue=isNaN(f)?this.oldValue:f;return this.value!==f},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var nwN;var VHK;_.NM({_template:function(){if(VHK!==void 0)return VHK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;nwN===void 0&&(nwN=document.createElement("template"));var O=nwN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return VHK=f},
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(){_.su(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(f){f.keyCode===27&&(f.preventDefault(),this.close())},
_track:function(f){if(!this.persistent&&!this.disableSwipe)switch(f.preventDefault(),f.detail.state){case "start":this._trackStart(f);break;case "track":this._trackMove(f);break;case "end":this._trackEnd(f)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var f=this.$.contentContainer.getBoundingClientRect();this._savedWidth=f.width;this._translateOffset=this.position==="left"?f.left:f.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(f){this._trackDetails&&(this._translateDrawer(f.detail.dx+this._translateOffset),this._trackDetails.push({dx:f.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(f){if(this._trackDetails){var R=f.detail.dx+this._translateOffset,u=this.getWidth();R=this.position==="left"?R>=0||R<=-u:R<=0||R>=u;if(!R){var O=this._trackDetails;this._trackDetails=null;this._flingDrawer(f,O);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}u/=2;f.detail.dx<-u?this.opened=this.position==="right":f.detail.dx>u&&(this.opened=this.position==="left");R?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(f,R){for(var u=Date.now(),O=u-100,c,h=0,l=R.length-1;h<=l;){var K=h+l>>1,q=R[K];q.timeStamp>=O?(c=q,l=K-1):h=K+1}return c?(f.detail.dx-c.dx)/(u-c.timeStamp||1):0},
_flingDrawer:function(f,R){R=this._calculateVelocity(f,R);if(!(Math.abs(R)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;f=f.detail.dx+this._translateOffset;var u=this.getWidth(),O=this.position==="left",c=R>0;c?(R=Math.max(R,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(R=Math.min(R,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");R=this._FLING_INITIAL_SLOPE*(!c&&O?-(f+u):c&&!O?u-f:-f)/R;this._styleTransitionDuration(R);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,R)}},
_styleTransitionDuration:function(f){this.style.transitionDuration=f+"ms";this.$.contentContainer.style.transitionDuration=f+"ms";this.$.scrim.style.transitionDuration=f+"ms"},
_styleTransitionTimingFunction:function(f){this.$.contentContainer.style.transitionTimingFunction=f;this.$.scrim.style.transitionTimingFunction=f},
_translateDrawer:function(f){var R=this.getWidth();this.position==="left"?(f=Math.max(-R,Math.min(f,0)),this.$.scrim.style.opacity=1+f/R):(f=Math.max(0,Math.min(f,R)),this.$.scrim.style.opacity=1-f/R);this.translate3d(f+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var f=this._drawerState;f===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;f!==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=""),f!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var f=_.du(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"])');f.length>0?(this._firstTabStop=f[0],this._lastTabStop=f[f.length-1]):
this._lastTabStop=this._firstTabStop=null;(f=this.getAttribute("tabindex"))&&parseInt(f,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(f){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||f.keyCode!==9||(f.shiftKey?this._firstTabStop&&_.du(f).localTarget===this._firstTabStop&&(f.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.du(f).localTarget===this._lastTabStop&&(f.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(f,R){this.toggleClass("visible",f&&!R,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 YQS;var vwz;_.NM({_template:function(){if(vwz!==void 0)return vwz;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;YQS===void 0&&(YQS=document.createElement("template"));var O=YQS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return vwz=f},
is:"tp-yt-paper-progress",behaviors:[sz2],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(f){this.toggleClass("indeterminate",f,this.$.primaryProgress)},
_transformProgress:function(f,R){f.style.transform=f.style.webkitTransform="scaleX("+R/100+")"},
_mainRatioChanged:function(f){this._transformProgress(this.$.primaryProgress,f)},
_progressChanged:function(f,R,u,O,c){f=this._clampValue(f);R=this._clampValue(R);var h=this._calcRatio(f)*100,l=this._calcRatio(R)*100;this._setSecondaryRatio(h);this._transformProgress(this.$.secondaryProgress,h);this._transformProgress(this.$.primaryProgress,l);this.secondaryProgress=f;c?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",R);this.setAttribute("aria-valuemin",u);this.setAttribute("aria-valuemax",O)},
_disabledChanged:function(f){this.setAttribute("aria-disabled",f?"true":"false")},
_hideSecondaryProgress:function(f){return f===0}});var i55;var rVh;var f$N=function(){};
_.X=f$N.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._buttonStateChanged=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._calcRatio=function(){};
_.X._clampValue=function(){};
_.X._calcStep=function(){};
_.X._validateValue=function(){};
_.X._update=function(){};
_.X._setImmediateValue=function(){};
_.X._setExpand=function(){};
_.X._setDragging=function(){};
_.X._setTransiting=function(){};
_.X._setMarkers=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
_.X._setRatio=function(){};
f$N=_.NM({_template:function(){if(rVh!==void 0)return rVh;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;i55===void 0&&(i55=document.createElement("template"));var O=i55;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return rVh=f},
is:"tp-yt-paper-slider",behaviors:[_.mJ,_.tL,_.bLl,sz2],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&&_.zO(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(f,R,u){this.setAttribute("aria-valuemin",R);this.setAttribute("aria-valuemax",u);this.setAttribute("aria-valuenow",f);this._positionKnob(this._calcRatio(f)*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(f){this._setImmediateValue(this._calcStep(this._calcKnobPosition(f)));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(f){return(this.max-this.min)*f/100+this.min},
_onTrack:function(f){f.stopPropagation();switch(f.detail.state){case "start":this._trackStart(f);break;case "track":this._trackX(f);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(f){this.dragging||this._trackStart(f);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,f.detail.dx*(this._isRTL?-1:1)));f=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(f);f=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(f+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var f=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;f.transform=f.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(f){this._expandKnob();f.preventDefault();this.focus()},
_bartrack:function(f){this._allowBarEvent(f)&&this._onTrack(f)},
_barclick:function(f){this._w=this.$.sliderBar.offsetWidth;var R=this.$.sliderBar.getBoundingClientRect();R=(f.detail.x-R.left)/this._w*100;this._isRTL&&(R=100-R);var u=this.ratio;this._setTransiting(!0);this._positionKnob(R);u===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
f.preventDefault();this.focus()},
_bardown:function(f){this._allowBarEvent(f)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(f))},
_knobTransitionEnd:function(f){f.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(f,R,u,O){O||this._setMarkers([]);R=Math.round((u-R)/this.step);R>f&&(R=f);if(R<0||!isFinite(R))R=0;this._setMarkers(Array(R))},
_mergeClasses:function(f){return Object.keys(f).filter(function(R){return f[R]}).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(f){return!this.ignoreBarTouch||f.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(f){this._isRTL?this._incrementKey(f):this._decrementKey(f)},
_rightKey:function(f){this._isRTL?this._decrementKey(f):this._incrementKey(f)},
_incrementKey:function(f){this.disabled||(f.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),f.preventDefault())},
_decrementKey:function(f){this.disabled||(f.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),f.preventDefault())},
_changeValue:function(f){this.value=f.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(f){f.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.L8C._createRipple.call(this)},
_focusedChanged:function(f){f&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=f?"":"none",this._ripple.holdDown=f)}});var RxS;var u1N;var Ss=null,OJm=function(){};
_.X=OJm.prototype;_.X.fit=function(){};
_.X._discoverInfo=function(){};
_.X.resetFit=function(){};
_.X.refit=function(){};
_.X.position=function(){};
_.X.constrain=function(){};
_.X._sizeDimension=function(){};
_.X.__sizeDimension=function(){};
_.X.center=function(){};
_.X.__getNormalizedRect=function(){};
_.X.__getOffscreenArea=function(){};
_.X.__getPosition=function(){};
_.X.notifyResize=function(){};
_.X.assignParentResizable=function(){};
_.X.stopResizeNotificationsFor=function(){};
_.X._subscribeIronResize=function(){};
_.X._unsubscribeIronResize=function(){};
_.X.resizerShouldNotify=function(){};
_.X._onDescendantIronResize=function(){};
_.X._fireResize=function(){};
_.X._onIronRequestResizeNotifications=function(){};
_.X._parentResizableChanged=function(){};
_.X._notifyDescendant=function(){};
_.X._requestResizeNotifications=function(){};
_.X._findParent=function(){};
_.X.toggle=function(){};
_.X.open=function(){};
_.X.close=function(){};
_.X.cancel=function(){};
_.X.invalidateTabbables=function(){};
_.X._ensureSetup=function(){};
_.X._canceledChanged=function(){};
_.X._withBackdropChanged=function(){};
_.X._prepareRenderOpened=function(){};
_.X._finishRenderOpened=function(){};
_.X._finishRenderClosed=function(){};
_.X._preparePositioning=function(){};
_.X._finishPositioning=function(){};
_.X._applyFocus=function(){};
_.X._onCaptureClick=function(){};
_.X._onCaptureFocus=function(){};
_.X._onCaptureEsc=function(){};
_.X._onCaptureTab=function(){};
_.X._onIronResize=function(){};
_.X._onNodesChange=function(){};
_.X.__ensureFirstLastFocusables=function(){};
_.X.__openedChanged=function(){};
_.X.__deraf=function(){};
_.X.__updateScrollObservers=function(){};
_.X.__addScrollListeners=function(){};
_.X.__removeScrollListeners=function(){};
_.X.__isValidScrollAction=function(){};
_.X.__onCaptureScroll=function(){};
_.X.__saveScrollPosition=function(){};
_.X.__restoreScrollPosition=function(){};
_.X._setCanceled=function(){};
OJm=_.NM({_template:function(){if(u1N!==void 0)return u1N;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;RxS===void 0&&(RxS=document.createElement("template"));var O=RxS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);return u1N=f},
is:"tp-yt-paper-toast",behaviors:[_.Bm],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(){_.QJ._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Mj.requestAvailability()},
show:function(f){typeof f=="string"&&(f={text:f});for(var R in f)R.indexOf("_")===0?_.QJ._warn('The property "'+R+'" is private and was not set.'):R in this?this[R]=f[R]:_.QJ._warn('The property "'+R+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(f){f&&f.target===this&&f.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Ss&&Ss!==this&&Ss.close(),Ss=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Ss===this&&(Ss=null);_.Gh._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(f){this.positionTarget=f},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var cOh=new _.Y("disablePersonalizationAction");var V82=new _.Y("showDmaConsentFlowCommand");var YPz=new _.Y("showMmgNoticeCommand");var XeS=new _.Y("saveConsentAction");var hxh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cr(f)};
_.y(hxh,_.e5);var ZJa=_.uqh(hxh);var l$l=new _.Y("updateTopbarAvatarAction");var kpa=new _.Y("channelHandleValidationResultRenderer");var K0N=new _.Y("generateHandleFromNameResultRenderer");var qrh=new _.Y("channelHandleInputRenderer");var AOz=new _.Y("copyLinkRenderer");var a$a=new _.Y("timedCommand");var F0z=new _.Y("clearCookieAction");var wel=new _.Y("getMultiPageMenuAction");var mf2=new _.Y("addToGuideSectionAction"),Qbh=new _.Y("removeFromGuideSectionAction");var W0e=new _.Y("updateNotificationsUnseenCountAction");var EPw=new _.Y("resetChannelUnreadCountCommand");var t72=new _.Y("resetSubscriptionsUnreadDotCommand");var CQw=new _.Y("selectLanguageCommand");var KBz=new _.Y("sendFeedbackAction");var yOt=new _.Y("uploadImageToScottyCommand");var dfm=new _.Y("registerPromoCommand");var NFl=new _.Y("setPushNotificationsEnabledCommand");var L09=new _.Y("desktopTopbarRenderer");var bJS=new _.Y("surveyFollowUpRenderer");var pel=new _.Y("handlesClaimingRadioOptionRenderer");var jbm=new _.Y("hotkeyDialogRenderer");var Df2=new _.Y("modifyReportFormCommand");var JOh=new _.Y("accountLinkCommand");var zx2=new _.Y("accountUnlinkCommand");var TFN=new _.Y("logAccountLinkingEventCommand");var HJt=new _.Y("guideCollapsibleEntryRenderer");var I$h=new _.Y("guideDownloadsEntryRenderer");var $9=new _.Y("guideEntryRenderer");var M7m=new _.Y("getLocationCommand");var PQN=new _.Y("locationCollectionCommand");var Uft=new _.Y("storiesItemViewModel");var exK=new _.Y("addToRemoteQueueAction");var GpX=new _.Y("insertInRemoteQueueAction");var BFm=new _.Y("removeFromRemoteQueueAction");var oPS=new _.Y("notificationRenderer");var Hgt=new _.Y("localWatchHistoryCommand");var xf2=new _.Y("pdgBuyFlowHeaderRenderer");var Sr2=new _.Y("pdgColorSliderRenderer");var $f9=new _.Y("pdgCommentOptionRenderer");var gPK=new _.Y("pdgCommentPreviewRenderer");var sbN=new _.Y("superVodSelectableItemButtonRenderer");var nPl=new _.Y("switchButtonRenderer");var V72=new _.Y("upsellDialogRenderer");var YrN=new _.Y("feedbackQuestionRenderer"),vPS=new _.Y("feedbackOptionRenderer");var iJw=new _.Y("sponsorshipsTierRenderer"),rO5=new _.Y("sponsorshipsPromotionChannelRenderer");var fVz=new _.Y("simpleSurveyMessageRenderer");var K65=new _.Y("invokeInstrumentManagerAction");var Rn9=new _.Y("logYpcFlowDismissCommand");var uUa=new _.Y("logYpcFlowStartCommand");var OuN=new _.Y("unlimitedCreateFamilyEndpoint");var cLa=new _.Y("iconBadgeRenderer");var IWe=new _.Y("collaborativePlaylistVisibilityValidationRule");var Xmm=function(f){_.qZ.call(this,"channelMessage");this.message=f};
_.y(Xmm,_.qZ);var hnl=function(f){_.qZ.call(this,"channelError");this.error=f};
_.y(hnl,_.qZ);var Zum={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"},lVh={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},kh2={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},KJK={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},qT2={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var go=function(f){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 _.OT;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";f&&(this.id=f.id||f.name,this.name=f.name,this.clientName=f.clientName?f.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=f.app,this.type=f.type||"REMOTE_CONTROL",this.username=f.user||"",this.avatar=f.userAvatarUri||"",this.obfuscatedGaiaId=f.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=f.ownerObfuscatedGaiaId||"",this.theme=f.theme||"u",ALw(this,f.capabilities||""),aVz(this,f.compatibleSenderThemes||""),FJh(this,f.experiments||""),
this.remoteControllerUrl=f.remoteControllerUrl||"",this.localChannelEncryptionKey=f.localChannelEncryptionKey||"",this.deviceContext=f.deviceContext,this.brand=f.brand||"",this.model=f.model||"",this.year=f.year||0,this.os=f.os||"",this.osVersion=f.osVersion||"",this.chipset=f.chipset||"",this.mdxDialServerType=f.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=f.pairingType||"unknown",f=f.deviceInfo)&&(f=JSON.parse(f),this.brand=f.brand||"",this.model=f.model||"",this.year=f.year||
0,this.os=f.os||"",this.osVersion=f.osVersion||"",this.chipset=f.chipset||"",this.clientName=f.clientName?f.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=f.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
go.prototype.copy=function(){var f={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&&(f.brand=this.brand);
this.model&&(f.model=this.model);this.year&&(f.year=this.year);this.os&&(f.os=this.os);this.osVersion&&(f.osVersion=this.osVersion);this.chipset&&(f.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(f.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(f.mdxDialServerType=this.mdxDialServerType);f=new go(f);f.connected=this.connected;f.remoteControllerUrl=this.remoteControllerUrl;f.localChannelEncryptionKey=this.localChannelEncryptionKey;f.deviceContext=
this.deviceContext;return f};
go.prototype.equals=function(f){return f?this.id==f.id:!1};
var ALw=function(f,R){f.capabilities.clear();_.Rt(R.split(","),_.mx(_.dq.contains,Zum)).forEach(function(u){f.capabilities.add(u)})},aVz=function(f,R){f.compatibleSenderThemes.clear();
_.Rt(R.split(","),_.mx(_.dq.contains,lVh)).forEach(function(u){f.compatibleSenderThemes.add(u)})},FJh=function(f,R){f.experiments.clear();
R.split(",").forEach(function(u){f.experiments.add(u)})};var wmN=function(f,R){this.action=f;this.params=R||{}};_.f6(OTX,_.d9);_.X=OTX.prototype;_.X.JSC$17477_onTick_=function(){this.JSC$17475_interval_=Math.min(3E5,this.JSC$17475_interval_*2);this.JSC$17477_listener_();this.nextTickTime_&&this.start()};
_.X.start=function(){var f=this.JSC$17475_interval_+15E3*Math.random(),R=this.delay_;R.isActive()||R.start(f);this.nextTickTime_=Date.now()+f};
_.X.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.X.isActive=function(){return this.delay_.isActive()};
_.X.reset=function(){this.delay_.stop();this.JSC$17475_interval_=5E3};_.f6(Ll,x_w);_.X=Ll.prototype;_.X.subscribe=function(f,R,u){return this.pubsub_.subscribe(f,R,u)};
_.X.unsubscribe=function(f,R,u){return this.pubsub_.unsubscribe(f,R,u)};
_.X.unsubscribeByKey=function(f){return this.pubsub_.unsubscribeByKey(f)};
_.X.publish=function(f,R){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.X.dispose=function(){this.JSC$17478_disposed_||(this.JSC$17478_disposed_=!0,_.YD(this.pubsub_),this.disconnect(),_.YD(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17478_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.ll({})})};
_.X.isDisposed=function(){return this.JSC$17478_disposed_};
_.X.connect=function(f,R,u){var O=this,c,h,l,K;return _.k(function(q){if(q.nextAddress==1)return _.Zu(q,2),O.useAsyncBrowserChannelHandler_?_.A(q,O.connectPromise_,2):q.jumpTo(2);_.hu(q);if(O.JSC$17478_disposed_||O.JSC$17478_channel_&&O.JSC$17478_channel_.getState()==2)return q.return();O.sCookie_="";O.reconnectTimer_.stop();O.connectionParams_=f||null;O.connectUi_=R||0;c=O.JSC$17478_pathPrefix_+"/test";h=O.JSC$17478_pathPrefix_+"/bind";l=new BE(u?u.firstTestResults:null,u?u.secondTestResults:null,
O.enableAsyncTest_);if(K=O.JSC$17478_channel_)K.handler_=null;l.handler_=O;O.JSC$17478_channel_=l;if(O.useAsyncBrowserChannelHandler_)return O.connectPromise_=mjm(O).then(function(){return QUt(O,c,h,K,u)}),q.return(O.connectPromise_.then(function(){O.connectPromise_=_.ll()}));
QUt(O,c,h,K,u);return _.lC(q,0)})};
var QUt=function(f,R,u,O,c){WJ2(f);if(f.JSC$17478_channel_){var h=_.Tf("ID_TOKEN"),l=f.JSC$17478_channel_.JSC$17430_extraHeaders_||{};h?l["x-youtube-identity-token"]=h:delete l["x-youtube-identity-token"];f.JSC$17478_channel_.JSC$17430_extraHeaders_=l}EH5(f);O?(O.getState(),f.JSC$17478_channel_.connect(R,u,f.defaultQueryParams_,O.sid_,O.JSC$17430_lastArrayId_)):c?f.JSC$17478_channel_.connect(R,u,f.defaultQueryParams_,c.sessionId,c.arrayId):f.JSC$17478_channel_.connect(R,u,f.defaultQueryParams_)};
Ll.prototype.disconnect=function(f){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.ll())}finally{this.disconnectUi_=f||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),WJ2(this),this.JSC$17478_channel_&&(this.JSC$17478_channel_.getState()==3&&P0m(this.JSC$17478_channel_),this.JSC$17478_channel_.disconnect()),this.disconnectUi_=0}};
Ll.prototype.sendMessage=function(f,R){var u=this,O;return _.k(function(c){switch(c.nextAddress){case 1:_.Zu(c,2);if(!u.useAsyncBrowserChannelHandler_){c.jumpTo(2);break}return _.A(c,u.connectPromise_,2);case 2:_.hu(c);if(u.JSC$17478_disposed_)return c.return();O={_sc:f};R&&_.dq.extend(O,R);if(u.reconnectTimer_.isActive()||(u.JSC$17478_channel_?u.JSC$17478_channel_.getState():0)==2){u.JSC$17478_pendingMessages_.push(O);c.jumpTo(6);break}if(!u.isChannelOpened()){c.jumpTo(6);break}_.Zu(c,8);if(!u.useAsyncBrowserChannelHandler_||
tv9(u,f)){c.jumpTo(8);break}return _.A(c,mjm(u),8);case 8:_.hu(c,0,0,1);u.isChannelOpened()&&(tv9(u,f)||EH5(u),WJ2(u),MHt(u.JSC$17478_channel_,O));_.lC(c,6,1);break;case 6:_.lC(c,0)}})};
var tv9=function(f,R){return f.enableMdxAuthForConnectionOnly_?!0:f.disableMdxAuthForAdMessages_?Object.values(kh2).includes(R):f.disableMdxAuthForNonPlaybackMessages_?!Object.values(KJK).includes(R):f.disableMdxAuthForShortsMessages_?Object.values(qT2).includes(R):!1};
Ll.prototype.JSC$17437_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17478_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)CLa(this);else{var f=this.JSC$17478_pendingMessages_;this.JSC$17478_pendingMessages_=[];var R=f.length;EH5(this);yLe(this,f,R);djN(this)}else djN(this)};
var CLa=function(f){var R,u;_.k(function(O){if(O.nextAddress==1)return _.Zu(O,2),_.A(O,mjm(f),2);_.hu(O);R=f.JSC$17478_pendingMessages_;f.JSC$17478_pendingMessages_=[];u=R.length;yLe(f,R,u);djN(f);return _.lC(O,0)})},yLe=function(f,R,u){for(var O=0;O<u;++O)MHt(f.JSC$17478_channel_,R[O]);
djN(f)},djN=function(f){f.publish("handlerOpened");
f.JSC$17478_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.X=Ll.prototype;_.X.JSC$17437_channelError=function(f){var R=f==2&&this.JSC$17478_channel_.JSC$17430_lastStatusCode_==401;f==4||R||this.reconnectTimer_.start();this.publish("handlerError",f,R);R=Object.keys(pqm).find(function(u){return pqm[u]===f});
this.JSC$17478_channelErrorCounter.increment("BROWSER_CHANNEL",R!=null?R:"UNKNOWN")};
_.X.JSC$17437_channelClosed=function(f,R){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(R)for(var u=R.length,O=0;O<u;++O){var c=R[O].map;c&&this.JSC$17478_pendingMessages_.push(c)}this.JSC$17478_channelClosedCounter.increment("BROWSER_CHANNEL");f&&this.pendingMapsOnClosedCounter.JSC$7937_streamzService.JSC$7795_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",f.length);R&&this.undeliveredMapsOnClosedCounter.JSC$7940_streamzService.JSC$7795_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
R.length)};
_.X.JSC$17437_channelSuccess=function(f,R){R!=null&&f!=null&&this.channelMessageSentCounter.increment()};
_.X.JSC$17437_getAdditionalParams=function(){var f={v:2};this.sCookie_&&(f.gsessionid=this.sCookie_);this.connectUi_!=0&&(f.ui=""+this.connectUi_);this.disconnectUi_!=0&&(f.ui=""+this.disconnectUi_);this.connectionParams_&&_.dq.extend(f,this.connectionParams_);return f};
_.X.JSC$17437_channelHandleArray=function(f){f[0]=="S"?this.sCookie_=f[1]:f[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17478_channel_.disconnect()):this.publish("handlerMessage",new wmN(f[0],f[1]));this.JSC$17478_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.X.isChannelOpened=function(){return!!this.JSC$17478_channel_&&this.JSC$17478_channel_.getState()==3};
var WJ2=function(f){if(f.JSC$17478_channel_){var R=f.JSC$17478_getXsrfToken_(),u=f.JSC$17478_channel_.JSC$17430_extraHeaders_||{};R?u["x-youtube-lounge-xsrf-token"]=R:delete u["x-youtube-lounge-xsrf-token"];f.JSC$17478_channel_.JSC$17430_extraHeaders_=u}},mjm=function(f){if(f.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.ll();
if(!f.enableCachedUpdateAuthorizationHeader_)return Nmm(f);f.updateAuthorizationHeaderPromise_===null&&(f.updateAuthorizationHeaderPromise_=Nmm(f));return f.updateAuthorizationHeaderPromise_},Nmm=function(f){return _.to(f.getAuthorizationHeader_().then(function(R){LJz(f,R)}).thenCatch(function(){}),function(){f.updateAuthorizationHeaderPromise_=null})},LJz=function(f,R){if(f.JSC$17478_channel_){var u=f.JSC$17478_channel_.JSC$17430_extraHeaders_||{};
R&&Object.keys(R).length>0?u=Object.assign({},u,R):delete u.Authorization;f.JSC$17478_channel_.JSC$17430_extraHeaders_=u}},EH5=function(f){f.getAuthorizationHeaderSync_&&!f.useAsyncBrowserChannelHandler_&&LJz(f,f.getAuthorizationHeaderSync_())};
_.X=Ll.prototype;_.X.setLoungeToken=function(f){(this.defaultQueryParams_.loungeIdToken=f)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17478_channel_){var R=this.JSC$17478_channel_.JSC$17430_extraHeaders_||{};f?R["X-YouTube-LoungeId-Token"]=f:delete R["X-YouTube-LoungeId-Token"];this.JSC$17478_channel_.JSC$17430_extraHeaders_=R}};
_.X.getDeviceId=function(){return this.defaultQueryParams_.id};
_.X.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.X.reconnect=function(){var f=this.reconnectTimer_;f.delay_.fire();f.start()};
_.X.safeReconnect_=function(){var f=this.JSC$17478_channel_,R=0;f.JSC$17430_backChannelRequest_&&R++;f.forwardChannelRequest_&&R++;R==0&&this.connect(this.connectionParams_,this.connectUi_)};var TG=function(f,R){var u=f.basePath;f.supportCors&&(u=f.scheme+"://"+f.domain+f.port+f.basePath);return _.S0(u+R,{})};
bv.prototype.sendRequest=function(f,R,u,O,c,h,l){f={format:h?"RAW":"JSON",method:f,context:this,timeout:5E3,withCredentials:!!l,onSuccess:_.mx(this.JSC$17483_onSuccess_,O,!h),onError:_.mx(this.onError_,c),onTimeout:_.mx(this.JSC$17483_onTimeout_,c)};u&&(f.postParams=u,f.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.qv(R,f)};
bv.prototype.JSC$17483_onSuccess_=function(f,R,u,O){R?f(O):f({text:u.responseText})};
bv.prototype.onError_=function(f,R){f(Error("Ak`"+R.status))};
bv.prototype.JSC$17483_onTimeout_=function(f){f(Error("Bk"))};var jz=function(f,R){return!!R&&(f.id==R||f.uuid==R)},buS=function(f){return{name:f.name,
screenId:f.id,loungeToken:f.token,dialId:f.uuid,screenIdType:f.idType}},pm5=function(f){return new pl(f)},jUl=function(f){return Array.isArray(f)?_.L8(f,pm5):[]},Ajz=function(f){if(!f)return"null";
var R=f.token?".."+f.token.slice(-6):"-",u=f.uuid?".."+f.uuid.slice(-6):"-";return'{name:"'+f.name+'",id:'+f.id.substr(0,6)+"..,token:"+(R+",uuid:"+u+",idType:"+f.idType+"}")},Be2=function(f){return Array.isArray(f)?"["+_.L8(f,Ajz).join(",")+"]":"null"};var t25="",zG=null;var D1m=function(f,R){_.mq.call(this);var u=this;this.handler=f();this.handler.subscribe("handlerOpened",this.JSC$17490_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(O,c){u.onError(c)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=R};
_.y(D1m,_.mq);_.X=D1m.prototype;_.X.connect=function(f,R,u){this.handler.connect(f,R,u)};
_.X.disconnect=function(f){this.handler.disconnect(f)};
_.X.reconnect=function(){this.handler.reconnect()};
_.X.getDeviceId=function(){return this.handler.getDeviceId()};
_.X.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.X.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.X.JSC$17490_onOpened=function(){this.dispatchEvent("channelOpened");var f=this.handler,R=this.currentScreenId;_.cT("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!f.JSC$17478_channel_.useChunked_,sessionId:f.JSC$17478_channel_.sid_,arrayId:f.JSC$17478_channel_.JSC$17430_lastArrayId_});_.cT("yt-remote-session-screen-id",R);f=FFa();R=wC9();_.g7(f,R)||f.push(R);EVX(f);WF2()};
_.X.onClosed=function(){this.dispatchEvent("channelClosed")};
_.X.onMessage=function(f){this.dispatchEvent(new Xmm(f))};
_.X.onError=function(f){this.dispatchEvent(new hnl(f?1:0))};
_.X.sendMessage=function(f,R){this.handler.sendMessage(f,R)};
_.X.setLoungeToken=function(f){this.handler.setLoungeToken(f)};
_.X.dispose=function(){this.handler.dispose()};var jIS=function(f,R,u){var O=this;u=u===void 0?function(){return""}:u;
var c=c===void 0?new f2S:c;var h=h===void 0?new _.aV:h;this.pathPrefix=f;this.defaultQueryParams=R;this.getXsrfToken=u;this.JSC$17493_pubsub=h;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new OTX(function(){var l;((l=O.channel)==null?void 0:D2t((new O5m(l,l.JSC$17401_channel_)).JSC$17411_channel_.forwardChannelRequestPool_))===0&&O.connect(O.connectionParams,O.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17493_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17493_channelOpenedCounter=new cZ2;this.JSC$17493_channelClosedCounter=new XC2;this.JSC$17493_channelMessageReceivedCounter=new ZTl;this.JSC$17493_channelErrorCounter=new la2};
jIS.prototype.connect=function(f,R){f=f===void 0?{}:f;R=R===void 0?0:R;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=f,this.connectUi=R,Djm(this),(f=_.Tf("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=f: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 HE(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,JLh(this))};
var JLh=function(f){_.y0(f.channel,"w",function(){f.channelState=3;f.reconnectTimer.reset();f.connectionParams=null;f.connectUi=0;for(var R=_.Z(f.nonAckedMessagesOnChannelClosed),u=R.next();!u.done;u=R.next())u=u.value,f.channel&&f.channel.send(u);f.nonAckedMessagesOnChannelClosed=[];f.publish("webChannelOpened");f.JSC$17493_channelOpenedCounter.increment("WEB_CHANNEL")});
_.y0(f.channel,"x",function(){f.channelState=0;f.reconnectTimer.isActive()||f.publish("webChannelClosed");var R,u=(R=f.channel)==null?void 0:cVN(new O5m(R,R.JSC$17401_channel_));u&&(f.nonAckedMessagesOnChannelClosed=[].concat(_.yq(u)));f.JSC$17493_channelClosedCounter.increment("WEB_CHANNEL")});
_.y0(f.channel,"z",function(R){var u=R.data;u[0]==="gracefulReconnect"?(f.reconnectTimer.start(),f.channel&&f.channel.close()):f.publish("webChannelMessage",new wmN(u[0],u[1]));f.lastStatusCode=R.statusCode;f.JSC$17493_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.y0(f.channel,"y",function(){f.lastStatusCode===401||f.reconnectTimer.start();f.publish("webChannelError");f.JSC$17493_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.X=jIS.prototype;_.X.disconnect=function(f){this.disconnectUi=f===void 0?0:f;this.reconnectTimer.stop();Djm(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.X.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.X.reconnect=function(){var f=this.reconnectTimer;f.delay_.fire();f.start()};
_.X.sendMessage=function(f,R){this.channel&&(Djm(this),f=Object.assign({},{_sc:f},R),this.channel.send(f))};
_.X.setLoungeToken=function(f){f||this.reconnectTimer.stop();f?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=f:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Djm=function(f){var R=f.getXsrfToken();R?f.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=R:delete f.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.X=jIS.prototype;_.X.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.X.publish=function(f){return this.JSC$17493_pubsub.publish.apply(this.JSC$17493_pubsub,[f].concat(_.yq(_.yK.apply(1,arguments))))};
_.X.subscribe=function(f,R,u){return this.JSC$17493_pubsub.subscribe(f,R,u)};
_.X.unsubscribe=function(f,R,u){return this.JSC$17493_pubsub.unsubscribe(f,R,u)};
_.X.unsubscribeByKey=function(f){return this.JSC$17493_pubsub.unsubscribeByKey(f)};
_.X.dispose=function(){this.JSC$17493_disposed||(this.JSC$17493_disposed=!0,_.YD(this.JSC$17493_pubsub),this.disconnect(),_.YD(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.X.isDisposed=function(){return this.JSC$17493_disposed};var pCX=function(f){_.mq.call(this);this.webChannelService=f();this.webChannelService.subscribe("webChannelOpened",this.JSC$17501_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.y(pCX,_.mq);_.X=pCX.prototype;_.X.connect=function(f,R){this.webChannelService.connect(f,R)};
_.X.disconnect=function(f){this.webChannelService.disconnect(f)};
_.X.reconnect=function(){this.webChannelService.reconnect()};
_.X.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.X.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.X.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.X.JSC$17501_onOpened=function(){this.dispatchEvent("channelOpened")};
_.X.onClosed=function(){this.dispatchEvent("channelClosed")};
_.X.onMessage=function(f){this.dispatchEvent(new Xmm(f))};
_.X.onError=function(){this.dispatchEvent(new hnl(this.webChannelService.lastStatusCode===401?1:0))};
_.X.sendMessage=function(f,R){this.webChannelService.sendMessage(f,R)};
_.X.setLoungeToken=function(f){this.webChannelService.setLoungeToken(f)};
_.X.dispose=function(){this.webChannelService.dispose()};var GOX=Date.now(),HU=null,U1a=Array(50),PU=-1,eha=!1;_.f6(UG,_.n4);UG.prototype.getScreens=function(){return this.screens};
UG.prototype.contains=function(f){return!!aaK(this.screens,f)};
UG.prototype.get=function(f){return f?Dg(this.screens,f):null};
var znm=function(f,R){var u=f.get(R.uuid)||f.get(R.id);if(u)return f=u.name,u.id=R.id||u.id,u.name=R.name,u.token=R.token,u.uuid=R.uuid||u.uuid,u.name!=f;f.screens.push(R);return!0},TmN=function(f,R){var u=f.screens.length!=R.length;
f.screens=_.Rt(f.screens,function(h){return!!aaK(R,h)});
for(var O=R.length,c=0;c<O;c++)u=znm(f,R[c])||u;return u},HuX=function(f,R){var u=f.screens.length;
f.screens=_.Rt(f.screens,function(O){return!(O||R?!O!=!R?0:O.id==R.id:1)});
return f.screens.length<u};
UG.prototype.info=function(f){IK(this.JSC$17502_logName_,f)};var IVh=function(f,R,u,O,c){_.n4.call(this);this.JSC$17505_http_=f;this.pairingCode_=R;this.deviceId_=u;this.friendlyName_=O;this.enableShortLivedLoungeToken_=c;this.pollIndex_=0;this.JSC$17505_xhr_=null;this.JSC$17505_timer_=NaN};
_.y(IVh,_.n4);_.X=IVh.prototype;_.X.start=function(){!this.JSC$17505_xhr_&&isNaN(this.JSC$17505_timer_)&&this.poll_()};
_.X.stop=function(){this.JSC$17505_xhr_&&(this.JSC$17505_xhr_.abort(),this.JSC$17505_xhr_=null);isNaN(this.JSC$17505_timer_)||(_.kx(this.JSC$17505_timer_),this.JSC$17505_timer_=NaN)};
_.X.disposeInternal=function(){this.stop();_.n4.prototype.disposeInternal.call(this)};
_.X.poll_=function(){this.JSC$17505_timer_=NaN;this.JSC$17505_xhr_=_.qv(TG(this.JSC$17505_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.NG)(this.JSC$17507_onSuccess_,this),onError:(0,_.NG)(this.onError_,this),onTimeout:(0,_.NG)(this.JSC$17507_onTimeout_,this)})};
_.X.JSC$17507_onSuccess_=function(f,R){this.JSC$17505_xhr_=null;f=R.screen||{};f.dialId=this.deviceId_;f.name=this.friendlyName_;R=-1;this.enableShortLivedLoungeToken_&&f.shortLivedLoungeToken&&f.shortLivedLoungeToken.value&&f.shortLivedLoungeToken.refreshIntervalMs&&(f.screenIdType="shortLived",f.loungeToken=f.shortLivedLoungeToken.value,R=f.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new pl(f),R)};
_.X.onError_=function(f){this.JSC$17505_xhr_=null;f.status&&f.status==404?this.pollIndex_>=Mv2.length?this.publish("pairingFailed",Error("Ck")):(f=Mv2[this.pollIndex_],this.JSC$17505_timer_=_.ZL((0,_.NG)(this.poll_,this),f),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+f.status))};
_.X.JSC$17507_onTimeout_=function(){this.JSC$17505_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var Mv2=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.f6(GG,UG);_.X=GG.prototype;_.X.start=function(){ez(this)&&this.publish("screenChange");!_.Xs("yt-remote-lounge-token-expiration")&&PLN(this);_.kx(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.ZL((0,_.NG)(this.start,this),1E4)};
_.X.add=function(f,R){ez(this);znm(this,f);Ujh(this,!1);this.publish("screenChange");R(f);f.token||PLN(this)};
_.X.remove=function(f,R){var u=ez(this);HuX(this,f)&&(Ujh(this,!1),u=!0);R(f);u&&this.publish("screenChange")};
_.X.updateName=function(f,R,u,O){var c=ez(this),h=this.get(f.id);h?(h.name!=R&&(h.name=R,Ujh(this,!1),c=!0),u(f)):O(Error("Fk"));c&&this.publish("screenChange")};
_.X.disposeInternal=function(){_.kx(this.loungeTokenRefreshTimer_);GG.superClass_.disposeInternal.call(this)};
var PLN=function(f){if(f.screens.length){var R=_.L8(f.screens,function(O){return O.id}),u=TG(f.JSC$17509_http_,"/pairing/get_lounge_token_batch");
f.JSC$17509_http_.sendRequest("POST",u,{screen_ids:R.join(",")},(0,_.NG)(f.handleLoungeTokens_,f),(0,_.NG)(f.handleLoungeTokenError_,f))}};
GG.prototype.handleLoungeTokens_=function(f){ez(this);var R=this.screens.length;f=f&&f.screens||[];for(var u=f.length,O=0;O<u;++O){var c=f[O],h=this.get(c.screenId);h&&(h.token=c.loungeToken,--R)}Ujh(this,!R);R&&IK(this.JSC$17502_logName_,"Missed "+R+" lounge tokens.")};
GG.prototype.handleLoungeTokenError_=function(f){IK(this.JSC$17502_logName_,"Requesting lounge tokens failed: "+f)};
var ez=function(f){if(_.E("deprecate_pair_servlet_enabled"))return TmN(f,[]);var R=jUl(yZ5());R=_.Rt(R,function(u){return!u.uuid});
return TmN(f,R)},Ujh=function(f,R){Nem(_.L8(f.screens,buS));
R&&d1m()};var s5=function(f,R){_.n4.call(this);this.getScreensToCheck_=R;R=(R=_.Xs("yt-remote-online-screen-ids")||"")?R.split(","):[];for(var u={},O=this.getScreensToCheck_(),c=O.length,h=0;h<c;++h){var l=O[h].id;u[l]=_.g7(R,l)}this.screenIdSet_=u;this.JSC$17512_http_=f;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;en9("Initialized with "+(0,_.d4)(this.screenIdSet_))};
_.y(s5,_.n4);s5.prototype.isOnline=function(f){return!!this.screenIdSet_[f]};
s5.prototype.start=function(){var f=parseInt(_.Xs("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.rI()-144E5<f?0:f)?Gha(this):(this.fastCheckEndTime_=_.rI()+3E5,_.cT("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
s5.prototype.isEmpty=function(){return _.dq.isEmpty(this.screenIdSet_)};
s5.prototype.update=function(){en9("Updating availability on schedule.");var f=this.getScreensToCheck_(),R=_.dq.filter(this.screenIdSet_,function(u,O){return u&&!!Dg(f,O)},this);
BmS(this,R)};
var oHt=function(f,R,u){var O=TG(f.JSC$17512_http_,"/pairing/get_screen_availability");f.JSC$17512_http_.sendRequest("POST",O,{lounge_token:R.token},(0,_.NG)(function(c){c=c.screens||[];for(var h=c.length,l=0;l<h;++l)if(c[l].loungeToken==R.token){u(c[l].status=="online");return}u(!1)},f),(0,_.NG)(function(){u(!1)},f))};
s5.prototype.disposeInternal=function(){_.kx(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.n4.prototype.disposeInternal.call(this)};
var BmS=function(f,R){a:if(_.dq.getCount(R)!=_.dq.getCount(f.screenIdSet_))var u=!1;else{u=_.dq.getKeys(R);for(var O=u.length,c=0;c<O;++c)if(!f.screenIdSet_[u[c]]){u=!1;break a}u=!0}u||(en9("Updated online screens: "+(0,_.d4)(f.screenIdSet_)),f.screenIdSet_=R,f.publish("screenChange"));xjS(f)},Gha=function(f){isNaN(f.refreshTimer_)||_.kx(f.refreshTimer_);
f.refreshTimer_=_.ZL((0,_.NG)(f.requestScreenAvailability_,f),f.fastCheckEndTime_>0&&f.fastCheckEndTime_<_.rI()?2E4:1E4)};
s5.prototype.requestScreenAvailability_=function(){_.kx(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var f=STN(this);if(_.dq.getCount(f)){var R=TG(this.JSC$17512_http_,"/pairing/get_screen_availability"),u={lounge_token:_.dq.getKeys(f).join(",")};this.currentRequest_=this.JSC$17512_http_.sendRequest("POST",R,u,(0,_.NG)(this.onScreenAvailability_,this,f),(0,_.NG)(this.onScreenAvailabilityError_,this))}else BmS(this,{}),Gha(this)};
s5.prototype.onScreenAvailability_=function(f,R){this.currentRequest_=null;var u=_.dq.getKeys(STN(this));if(_.Af(u,_.dq.getKeys(f))){R=R.screens||[];u={};for(var O=R.length,c=0;c<O;++c)u[f[R[c].loungeToken]]=R[c].status=="online";BmS(this,u);Gha(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
s5.prototype.onScreenAvailabilityError_=function(f){this.warn_("Screen availability failed: "+f);this.currentRequest_=null;Gha(this)};
var en9=function(f){IK("OnlineScreenService",f)};
s5.prototype.warn_=function(f){IK("OnlineScreenService",f)};
var STN=function(f){var R={};_.Gf(f.getScreensToCheck_(),function(u){u.token?R[u.token]=u.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return R},xjS=function(f){f=_.dq.getKeys(_.dq.filter(f.screenIdSet_,function(R){return R}));
f.sort(_.Zk);f.length?_.cT("yt-remote-online-screen-ids",f.join(","),60):_.hC("yt-remote-online-screen-ids")};_.f6(BU,UG);_.X=BU.prototype;_.X.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.X.add=function(f,R,u){this.localScreenService_.add(f,R,u)};
_.X.remove=function(f,R,u){this.localScreenService_.remove(f,R,u);this.onlineScreenService_.update()};
_.X.updateName=function(f,R,u,O){this.localScreenService_.contains(f)?this.localScreenService_.updateName(f,R,u,O):(f="Updating name of unknown screen: "+f.name,IK(this.JSC$17502_logName_,f),O(Error(f)))};
_.X.getScreens=function(f){return f?this.screens:J1t(this.screens,_.Rt(this.automaticScreens_,function(R){return!this.contains(R)},this))};
_.X.JSC$17517_getOnlineScreens=function(){return _.Rt(this.getScreens(!0),function(f){return this.onlineScreenService_.isOnline(f.id)},this)};
var gHm=function(f,R,u,O,c,h){f.info("getAutomaticScreenByIds "+u+" / "+R);u||(u=f.deviceToScreenId_[R]);var l=f.getScreens(),K=u?Dg(l,u):null;u&&(f.disableAutomaticScreenCache_||K)||(K=Dg(l,R));if(K){K.uuid=R;var q=nX(f,K);oHt(f.onlineScreenService_,q,function(F){c(F?q:null)})}else u?$jt(f,u,(0,_.NG)(function(F){var w=nX(this,new pl({name:O,
screenId:u,loungeToken:F,dialId:R||""}));oHt(this.onlineScreenService_,w,function(m){c(m?w:null)})},f),h):c(null)};
BU.prototype.JSC$17517_getScreenByPollingPairingCode=function(f,R,u,O,c,h){var l=this;this.info("getDialScreenByPairingCode "+f+" / "+R);var K=new IVh(this.JSC$17515_http_,f,R,u,O);K.subscribe("pairingComplete",function(q,F){_.YD(K);c(nX(l,q),F)});
K.subscribe("pairingFailed",function(q){_.YD(K);h(q)});
K.start();return(0,_.NG)(K.stop,K)};
var sU2=function(f,R){for(var u=f.screens.length,O=0;O<u;++O)if(f.screens[O].name==R)return f.screens[O];return null};
BU.prototype.JSC$17517_getScreenByPairingCode=function(f,R,u,O){_.qv(TG(this.JSC$17515_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:f},timeout:5E3,onSuccess:(0,_.NG)(function(c,h){c=new pl(h.screen||{});if(!c.name||sU2(this,c.name)){a:{h=c.name;for(var l=2,K=R(h,l);sU2(this,K);){l++;if(l>20)break a;K=R(h,l)}h=K}c.name=h}u(nX(this,c))},this),
onError:(0,_.NG)(function(c){O(Error("Gk`"+c.status))},this),
onTimeout:(0,_.NG)(function(){O(Error("Hk"))},this)})};
var nHK=function(f,R,u){oHt(f.onlineScreenService_,R,u)};
BU.prototype.disposeInternal=function(){_.YD(this.localScreenService_);_.YD(this.onlineScreenService_);BU.superClass_.disposeInternal.call(this)};
var $jt=function(f,R,u,O){f.info("requestLoungeToken_ for "+R);var c={postParams:{screen_ids:R},method:"POST",context:f,onSuccess:function(h,l){h=l&&l.screens||[];h[0]&&h[0].screenId==R?u(h[0].loungeToken):O(Error("Ik"))},
onError:function(){O(Error("Jk"))}};
_.qv(TG(f.JSC$17515_http_,"/pairing/get_lounge_token_batch"),c)},Vvm=function(f){f.screens=f.localScreenService_.getScreens();
for(var R=_.dq.transpose(f.deviceToScreenId_),u=f.screens.length,O=0;O<u;++O){var c=f.screens[O];c.uuid=R[c.id]||""}f.info("Updated manual screens: "+Be2(f.screens))};
BU.prototype.handleScreenChange_=function(){Vvm(this);this.publish("screenChange");this.onlineScreenService_.update()};
var oVm=function(f){YTl(f);f.localScreenService_=new GG(f.JSC$17515_http_);f.localScreenService_.subscribe("screenChange",(0,_.NG)(f.handleScreenChange_,f));Vvm(f);f.disableAutomaticScreenCache_||(f.automaticScreens_=jUl(_.Xs("yt-remote-automatic-screen-cache")||[]));YTl(f);f.info("Initializing automatic screens: "+Be2(f.automaticScreens_));f.onlineScreenService_=new s5(f.JSC$17515_http_,(0,_.NG)(f.getScreens,f,!0));f.onlineScreenService_.subscribe("screenChange",(0,_.NG)(function(){this.publish("onlineScreenChange")},
f))},nX=function(f,R){var u=f.get(R.id);
u?(u.uuid=R.uuid,R=u):((u=Dg(f.automaticScreens_,R.uuid))?(u.id=R.id,u.token=R.token,R=u):f.automaticScreens_.push(R),f.disableAutomaticScreenCache_||vHX(f));YTl(f);f.deviceToScreenId_[R.uuid]=R.id;_.cT("yt-remote-device-id-map",f.deviceToScreenId_,31536E3);return R},vHX=function(f){f=_.Rt(f.automaticScreens_,function(R){return R.idType!="shortLived"});
_.cT("yt-remote-automatic-screen-cache",_.L8(f,buS))},YTl=function(f){f.deviceToScreenId_=_.Xs("yt-remote-device-id-map")||{}};
BU.prototype.dispose=BU.prototype.dispose;_.f6(oK,_.n4);var Vd=function(f,R){f.screen_=R;f.publish("sessionScreen",f.screen_)},iuX=function(f,R){f.screen_&&(f.screen_.token=R,nX(f.JSC$17519_screenService_,f.screen_));
f.publish("sessionScreen",f.screen_)};
oK.prototype.onSessionStopped=function(f){this.isDisposed()||(f&&(Y9(this,""+f),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
oK.prototype.info=function(f){IK(this.JSC$17519_logName_,f)};
var Y9=function(f,R){IK(f.JSC$17519_logName_,R)};
oK.prototype.JSC$17521_getCastSession=function(){return null};
oK.prototype.setDisplayStatus=function(f){var R=this.receiver_;f?(R.displayStatus=new chrome.cast.ReceiverDisplayStatus(f,[]),R.displayStatus.showStop=!0):R.displayStatus=null;chrome.cast.setReceiverDisplayStatus(R,(0,_.NG)(function(){this.info("Updated receiver status for "+R.friendlyName+": "+f)},this),(0,_.NG)(function(){Y9(this,"Failed to update receiver status for: "+R.friendlyName)},this))};
oK.prototype.disposeInternal=function(){this.setDisplayStatus("");oK.superClass_.disposeInternal.call(this)};var vE=function(f,R,u){oK.call(this,f,R,"CastSession");var O=this;this.config_=u;this.JSC$17524_session_=null;this.JSC$17524_boundSessionUpdate_=(0,_.NG)(this.JSC$17526_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.NG)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.ZL(function(){rLh(O,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17524_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17524_isInitLoungeToken_=!1;this.JSC$17524_lastLoungeTokenRefreshError_="unknown"};
_.y(vE,oK);_.X=vE.prototype;
_.X.setCastSession=function(f){if(this.JSC$17524_session_){if(this.JSC$17524_session_==f)return;Y9(this,"Overriding cast session with new session object");flS(this);this.JSC$17524_isInitLoungeToken_=!1;this.JSC$17524_lastLoungeTokenRefreshError_="unknown";this.JSC$17524_session_.removeUpdateListener(this.JSC$17524_boundSessionUpdate_);this.JSC$17524_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17524_session_=f;this.JSC$17524_session_.addUpdateListener(this.JSC$17524_boundSessionUpdate_);this.JSC$17524_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);ROe(this,"getMdxSessionStatus")};
_.X.launchWithParams=function(f){this.info("launchWithParams no-op for Cast: "+(0,_.d4)(f))};
_.X.stop=function(){if(this.JSC$17524_session_)this.JSC$17524_session_.stop((0,_.NG)(function(){this.onSessionStopped()},this),(0,_.NG)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.X.setDisplayStatus=function(){};
_.X.disposeInternal=function(){this.info("disposeInternal");flS(this);this.JSC$17524_session_&&(this.JSC$17524_session_.removeUpdateListener(this.JSC$17524_boundSessionUpdate_),this.JSC$17524_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17524_session_=null;oK.prototype.disposeInternal.call(this)};
var ONl=function(f,R){_.kx(f.getLoungeTokenTimeoutKey_);f.getLoungeTokenTimeoutKey_=0;R==0?uuX(f):f.getLoungeTokenTimeoutKey_=_.ZL(function(){uuX(f)},R)},uuX=function(f){ROe(f,"getLoungeToken");
_.kx(f.onLoungeTokenTimeoutKey_);f.onLoungeTokenTimeoutKey_=_.ZL(function(){ctt(f,null)},3E4)},ROe=function(f,R){f.info("sendYoutubeMessage_: "+R+" "+(0,_.d4)(void 0));
var u={};u.type=R;f.JSC$17524_session_?f.JSC$17524_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",u,function(){},(0,_.NG)(function(){Y9(this,"Failed to send message: "+R+".")},f)):Y9(f,"Sending yt message without session: "+(0,_.d4)(u))};
vE.prototype.onYoutubeMessage_=function(f,R){if(!this.isDisposed())if(R)if(R=(0,_.bE)(R),_.OE(R))switch(f=""+R.type,R=R.data||{},this.info("onYoutubeMessage_: "+f+" "+(0,_.d4)(R)),f){case "mdxSessionStatus":rLh(this,R);break;case "loungeToken":ctt(this,R);break;default:Y9(this,"Unknown youtube message: "+f)}else Y9(this,"Unable to parse message.");else Y9(this,"No data in message.")};
var XY5=function(f,R){if(R)f.info("onConnectedScreenId_: Received screenId: "+R),f.screen_&&f.screen_.id==R||f.getScreen_(R,function(u){Vd(f,u)},function(){return f.onSessionStopped()},5);
else f.onSessionStopped(Error("Mk"))},ZNl=function(f,R,u){f.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(R));
var O=new pl(R);hOm(f,O,function(c){c?(f.JSC$17524_isInitLoungeToken_=!0,nX(f.JSC$17519_screenService_,O),Vd(f,O),f.JSC$17524_lastLoungeTokenRefreshError_="unknown",ONl(f,u)):(_.IS(Error("Nk`"+JSON.stringify(R))),f.onSessionStopped())},5)},rLh=function(f,R){_.kx(f.sessionStatusTimeoutKey_);
f.sessionStatusTimeoutKey_=0;if(R)f.config_.enableCastLoungeToken&&R.loungeToken?R.deviceId?f.screen_&&f.screen_.uuid==R.deviceId||(R.loungeTokenRefreshIntervalMs?ZNl(f,{name:f.receiver_.friendlyName,screenId:R.screenId,loungeToken:R.loungeToken,dialId:R.deviceId,screenIdType:"shortLived"},R.loungeTokenRefreshIntervalMs):(_.IS(Error("Pk`"+JSON.stringify(R))),XY5(f,R.screenId))):(_.IS(Error("Ok`"+JSON.stringify(R))),XY5(f,R.screenId)):XY5(f,R.screenId);else f.onSessionStopped(Error("Mk"))},ctt=function(f,
R){_.kx(f.onLoungeTokenTimeoutKey_);
f.onLoungeTokenTimeoutKey_=0;var u=null;if(R)if(R.loungeToken){var O;((O=f.screen_)==null?void 0:O.token)==R.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";else u="noLoungeTokenResponse";u?(f.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(R)+", error: "+u)),f.JSC$17524_lastLoungeTokenRefreshError_=u,ONl(f,3E4)):(iuX(f,R.loungeToken),f.JSC$17524_isInitLoungeToken_=!1,f.JSC$17524_lastLoungeTokenRefreshError_="unknown",ONl(f,R.loungeTokenRefreshIntervalMs))};
vE.prototype.getScreen_=function(f,R,u,O){_.kx(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;gHm(this.JSC$17519_screenService_,this.receiver_.label,f,this.receiver_.friendlyName,(0,_.NG)(function(c){c?R(c):O>=0?(Y9(this,"Screen "+f+" appears to be offline. "+O+" retries left."),this.getScreenTimeoutKey_=_.ZL((0,_.NG)(this.getScreen_,this,f,R,u,O-1),300)):u(Error("Qk"))},this),u)};
var hOm=function(f,R,u,O){_.kx(f.JSC$17524_checkScreenAvailabilityTimeoutKey_);f.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;nHK(f.JSC$17519_screenService_,R,function(c){c||O<0?u(c):f.JSC$17524_checkScreenAvailabilityTimeoutKey_=_.ZL(function(){hOm(f,R,u,O-1)},300)})};
vE.prototype.JSC$17521_getCastSession=function(){return this.JSC$17524_session_};
vE.prototype.JSC$17526_onSessionUpdate_=function(f){this.isDisposed()||f||(Y9(this,"Cast session died."),this.onSessionStopped())};
var flS=function(f){_.kx(f.getScreenTimeoutKey_);f.getScreenTimeoutKey_=0;_.kx(f.JSC$17524_checkScreenAvailabilityTimeoutKey_);f.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;_.kx(f.sessionStatusTimeoutKey_);f.sessionStatusTimeoutKey_=0;_.kx(f.onLoungeTokenTimeoutKey_);f.onLoungeTokenTimeoutKey_=0;_.kx(f.getLoungeTokenTimeoutKey_);f.getLoungeTokenTimeoutKey_=0};var iJ=function(f,R,u,O){oK.call(this,f,R,"DialSession");this.config_=O;this.JSC$17528_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17528_theme_=u;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17528_deferredLaunchDeadlineTimer_=NaN;this.JSC$17528_boundSessionUpdate_=(0,_.NG)(this.JSC$17530_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17528_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17528_isInitLoungeToken_=!1;this.JSC$17528_lastLoungeTokenRefreshError_="unknown"};
_.y(iJ,oK);iJ.prototype.setCastSession=function(f){this.JSC$17528_session_=f;this.JSC$17528_session_.addUpdateListener(this.JSC$17528_boundSessionUpdate_)};
iJ.prototype.launchWithParams=function(f){this.connectData_=f;this.deferredLaunch_()};
iJ.prototype.stop=function(){llN(this);if(this.JSC$17528_session_)this.JSC$17528_session_.stop((0,_.NG)(this.onSessionStopped,this,null),(0,_.NG)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
iJ.prototype.disposeInternal=function(){llN(this);this.JSC$17528_session_&&this.JSC$17528_session_.removeUpdateListener(this.JSC$17528_boundSessionUpdate_);this.JSC$17528_session_=null;oK.prototype.disposeInternal.call(this)};
var k99=function(f){var R;return!!(f.config_.enableDialLoungeToken&&((R=f.JSC$17528_session_)==null?0:R.getDialAppInfo))},KZh=function(f){f.cancelPolling_=f.JSC$17519_screenService_.JSC$17517_getScreenByPollingPairingCode(f.reversePairingCode_,f.receiver_.label,f.receiver_.friendlyName,k99(f),function(R,u){f.cancelPolling_=function(){};
f.JSC$17528_isInitLoungeToken_=!0;Vd(f,R);R.idType=="shortLived"&&u>0&&ro(f,u)},function(R){f.cancelPolling_=function(){};
f.onSessionStopped(R)})};
iJ.prototype.JSC$17530_onSessionUpdate_=function(f){this.isDisposed()||f||(Y9(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var qdw=function(f){var R={};R.pairingCode=f.reversePairingCode_;R.theme=f.JSC$17528_theme_;bTh()&&(R.env_useStageMdx=1);return _.As(R)},Atz=function(f){return new Promise(function(R){f.reversePairingCode_=quS();
if(f.connectData_){var u=new chrome.cast.DialLaunchResponse(!0,qdw(f));R(u);KZh(f)}else f.deferredLaunch_=function(){_.kx(f.JSC$17528_deferredLaunchDeadlineTimer_);f.deferredLaunch_=function(){};
f.JSC$17528_deferredLaunchDeadlineTimer_=NaN;var O=new chrome.cast.DialLaunchResponse(!0,qdw(f));R(O);KZh(f)},f.JSC$17528_deferredLaunchDeadlineTimer_=_.ZL(function(){f.deferredLaunch_()},100)})},FZe=function(f,R,u){f.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(R));
var O=new pl(R);return(new Promise(function(c){alK(f,O,function(h){h?(f.JSC$17528_isInitLoungeToken_=!0,nX(f.JSC$17519_screenService_,O),Vd(f,O),ro(f,u)):_.IS(Error("Sk`"+JSON.stringify(R)));c(h)},5)})).then(function(c){return c?new chrome.cast.DialLaunchResponse(!1):Atz(f)})},wYt=function(f,R){var u=f.launchData_.receiver.label,O=f.receiver_.friendlyName;
return(new Promise(function(c){gHm(f.JSC$17519_screenService_,u,R,O,function(h){h&&h.token&&Vd(f,h);c(h)},function(h){Y9(f,"Failed to get DIAL screen: "+h);
c(null)})})).then(function(c){return c&&c.token?new chrome.cast.DialLaunchResponse(!1):Atz(f)})},alK=function(f,R,u,O){_.kx(f.JSC$17528_checkScreenAvailabilityTimeoutKey_);
f.JSC$17528_checkScreenAvailabilityTimeoutKey_=0;nHK(f.JSC$17519_screenService_,R,function(c){c||O<0?u(c):f.JSC$17528_checkScreenAvailabilityTimeoutKey_=_.ZL(function(){alK(f,R,u,O-1)},300)})},ro=function(f,R){f.info("getDialAppInfoWithTimeout_ "+R);
k99(f)&&(_.kx(f.getDialAppInfoTimeoutKey_),f.getDialAppInfoTimeoutKey_=0,R==0?mie(f):f.getDialAppInfoTimeoutKey_=_.ZL(function(){mie(f)},R))},mie=function(f){k99(f)&&f.JSC$17528_session_.getDialAppInfo(function(R){f.info("getDialAppInfo dialLaunchData: "+JSON.stringify(R));
R=R.extraData||{};var u=null;if(R.loungeToken){var O;((O=f.screen_)==null?void 0:O.token)==R.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";u?(f.JSC$17528_lastLoungeTokenRefreshError_=u,ro(f,3E4)):(f.JSC$17528_isInitLoungeToken_=!1,f.JSC$17528_lastLoungeTokenRefreshError_="unknown",iuX(f,R.loungeToken),ro(f,R.loungeTokenRefreshIntervalMs))},function(R){f.info("getDialAppInfo error: "+R);
f.JSC$17528_lastLoungeTokenRefreshError_="noLoungeTokenResponse";ro(f,3E4)})},llN=function(f){_.kx(f.JSC$17528_checkScreenAvailabilityTimeoutKey_);
f.JSC$17528_checkScreenAvailabilityTimeoutKey_=0;_.kx(f.getDialAppInfoTimeoutKey_);f.getDialAppInfoTimeoutKey_=0;f.cancelPolling_();f.cancelPolling_=function(){};
_.kx(f.JSC$17528_deferredLaunchDeadlineTimer_)};var fK=function(f,R){oK.call(this,f,R,"ManualSession");this.JSC$17532_deferredLaunchDeadlineTimer_=_.ZL((0,_.NG)(this.launchWithParams,this,null),150)};
_.y(fK,oK);fK.prototype.stop=function(){this.onSessionStopped()};
fK.prototype.setCastSession=function(){};
fK.prototype.launchWithParams=function(){_.kx(this.JSC$17532_deferredLaunchDeadlineTimer_);this.JSC$17532_deferredLaunchDeadlineTimer_=NaN;var f=Dg(this.JSC$17519_screenService_.getScreens(),this.receiver_.label);if(f)Vd(this,f);else this.onSessionStopped(Error("Tk"))};
fK.prototype.disposeInternal=function(){_.kx(this.JSC$17532_deferredLaunchDeadlineTimer_);this.JSC$17532_deferredLaunchDeadlineTimer_=NaN;oK.prototype.disposeInternal.call(this)};var sG=function(f,R){_.n4.call(this);this.config_=R;this.JSC$17535_screenService_=f;this.JSC$17535_appId_=R.appId||"233637DE";this.JSC$17535_theme_=R.theme||"cl";this.disableDial_=R.disableCastApi||!1;this.forceMirroring_=R.forceMirroring||!1;this.JSC$17535_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.NG)(this.onReceiverAction_,this)};
_.y(sG,_.n4);
sG.prototype.init=function(f,R){chrome.cast.timeout.requestSession=3E4;var u=new chrome.cast.SessionRequest(this.JSC$17535_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.E("desktop_enable_cast_connect")&&(u.androidReceiverCompatible=!0);this.disableDial_||(u.dialRequest=new chrome.cast.DialRequest("YouTube"));var O=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;f=f||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var c=(0,_.NG)(this.onReceiverUpdated_,
this);u=new chrome.cast.ApiConfig(u,(0,_.NG)(this.onSessionEstablished_,this),c,O,f);u.customDialLaunchCallback=(0,_.NG)(this.onDialLaunchRequested_,this);chrome.cast.initialize(u,(0,_.NG)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Iam(),this.JSC$17535_screenService_.subscribe("onlineScreenChange",(0,_.NG)(this.JSC$17537_onScreenChange_,this)),this.customReceivers_=QYz(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.NG)(function(h){this.warn_("Failed to set initial custom receivers: "+(0,_.d4)(h))},this)),this.publish("yt-remote-cast2-availability-change",Rd(this)),R(!0))},this),(0,_.NG)(function(h){this.warn_("Failed to initialize API: "+(0,_.d4)(h));
R(!1)},this))};
sG.prototype.setConnectedScreenStatus=function(f,R){uY("Setting connected screen ID: "+f+" -> "+R);if(this.JSC$17535_session_){var u=this.JSC$17535_session_.screen_;if(!f||u&&u.id!=f)uY("Unsetting old screen status: "+this.JSC$17535_session_.receiver_.friendlyName),O4(this,null)}if(f&&R){if(!this.JSC$17535_session_){f=Dg(this.JSC$17535_screenService_.getScreens(),f);if(!f){uY("setConnectedScreenStatus: Unknown screen.");return}if(f.idType=="shortLived"){uY("setConnectedScreenStatus: Screen with id type to be short lived.");
return}u=WZz(this,f);u||(uY("setConnectedScreenStatus: Connected receiver not custom..."),u=new chrome.cast.Receiver(f.uuid?f.uuid:f.id,f.name),u.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(u),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.NG)(function(O){this.warn_("Failed to set initial custom receivers: "+(0,_.d4)(O))},this)));
uY("setConnectedScreenStatus: new active receiver: "+u.friendlyName);O4(this,new fK(this.JSC$17535_screenService_,u),!0)}this.JSC$17535_session_.setDisplayStatus(R)}else uY("setConnectedScreenStatus: no screen.")};
var WZz=function(f,R){return R?_.et(f.customReceivers_,function(u){return jz(R,u.label)},f):null};
sG.prototype.setLaunchParams=function(f){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17535_session_?this.JSC$17535_session_.launchWithParams(f):this.warn_("Setting connection data without a session")};
sG.prototype.JSC$17537_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17535_session_?(this.JSC$17535_session_.stop(),O4(this,null)):uY("Stopping non-existing session")};
sG.prototype.requestSession=function(){chrome.cast.requestSession((0,_.NG)(this.onSessionEstablished_,this),(0,_.NG)(this.onSessionRequestFailed_,this))};
sG.prototype.disposeInternal=function(){this.JSC$17535_screenService_.unsubscribe("onlineScreenChange",(0,_.NG)(this.JSC$17537_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.v0(_.Ph("yt.mdx.remote.debug.handlers_")||[],zh9);_.YD(this.JSC$17535_session_);_.n4.prototype.disposeInternal.call(this)};
var uY=function(f){IK("Controller",f)};
sG.prototype.warn_=function(f){IK("Controller",f)};
var zh9=function(f){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(f)},Rd=function(f){return f.hasCastReceiver_||!!f.customReceivers_.length||!!f.JSC$17535_session_},O4=function(f,R,u){R!=f.JSC$17535_session_&&(_.YD(f.JSC$17535_session_),(f.JSC$17535_session_=R)?(u?f.publish("yt-remote-cast2-receiver-resumed",R.receiver_):f.publish("yt-remote-cast2-receiver-selected",R.receiver_),R.subscribe("sessionScreen",(0,_.NG)(f.onSessionScreen_,f,R)),R.subscribe("sessionFailed",
function(){return Ehz(f,R)}),R.screen_?f.publish("yt-remote-cast2-session-change",R.screen_):u&&f.JSC$17535_session_.launchWithParams(null)):f.publish("yt-remote-cast2-session-change",null))},Ehz=function(f,R){f.JSC$17535_session_==R&&f.publish("yt-remote-cast2-session-failed")};
_.X=sG.prototype;_.X.onSessionScreen_=function(f,R){this.JSC$17535_session_==f&&(R||O4(this,null),this.publish("yt-remote-cast2-session-change",R))};
_.X.onReceiverAction_=function(f,R){if(!this.isDisposed())if(f)switch(f.friendlyName=chrome.cast.unescape(f.friendlyName),uY("onReceiverAction_ "+f.label+" / "+f.friendlyName+"-- "+R),R){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17535_session_)if(this.JSC$17535_session_.receiver_.label!=f.label)uY("onReceiverAction_: Stopping active receiver: "+this.JSC$17535_session_.receiver_.friendlyName),this.JSC$17535_session_.stop();else{uY("onReceiverAction_: Casting to active receiver.");this.JSC$17535_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17535_session_.screen_);break}switch(f.receiverType){case chrome.cast.ReceiverType.CUSTOM:O4(this,new fK(this.JSC$17535_screenService_,f));break;case chrome.cast.ReceiverType.DIAL:O4(this,new iJ(this.JSC$17535_screenService_,f,this.JSC$17535_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:O4(this,new vE(this.JSC$17535_screenService_,f,this.config_));break;default:this.warn_("Unknown receiver type: "+f.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17535_session_&&
this.JSC$17535_session_.receiver_.label==f.label?this.JSC$17535_session_.stop():this.warn_("Stopping receiver w/o session: "+f.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.X.onDialLaunchRequested_=function(f){if(this.isDisposed())return Promise.reject(Error("Uk"));var R=f.receiver;R.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+R.friendlyName),R.receiverType=chrome.cast.ReceiverType.DIAL);var u=this.JSC$17535_session_?this.JSC$17535_session_.receiver_:null;if(!u||u.label!=R.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+R.friendlyName),Promise.reject(Error("Vk"));if(u&&u.label==R.label&&u.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17535_session_.screen_)return uY("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17535_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+u.receiverType+'" to "dial" for '+R.friendlyName);O4(this,new iJ(this.JSC$17535_screenService_,R,this.JSC$17535_theme_,this.config_))}R=this.JSC$17535_session_;R.launchData_=f;R.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(f=R.launchData_.extraData||{},u=f.screenId||null,k99(R)&&f.loungeToken?f.loungeTokenRefreshIntervalMs?f=FZe(R,{name:R.receiver_.friendlyName,screenId:f.screenId,loungeToken:f.loungeToken,dialId:R.launchData_.receiver.label,screenIdType:"shortLived"},f.loungeTokenRefreshIntervalMs):(_.IS(Error("Rk`"+JSON.stringify(f))),f=wYt(R,u)):f=wYt(R,u)):f=Atz(R);return f};
_.X.onSessionEstablished_=function(f){var R=this;if(!this.isDisposed()&&!this.forceMirroring_){uY("New cast session ID: "+f.sessionId);var u=f.receiver;if(u.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17535_session_)if(u.receiverType==chrome.cast.ReceiverType.CAST)uY("Got resumed cast session before resumed mdx connection."),u.friendlyName=chrome.cast.unescape(u.friendlyName),O4(this,new vE(this.JSC$17535_screenService_,u,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var O=this.JSC$17535_session_.receiver_,c=Dg(this.JSC$17535_screenService_.getScreens(),O.label);c&&jz(c,u.label)&&O.receiverType!=chrome.cast.ReceiverType.CAST&&u.receiverType==chrome.cast.ReceiverType.CAST&&(uY("onSessionEstablished_: manual to cast session change "+u.friendlyName),_.YD(this.JSC$17535_session_),this.JSC$17535_session_=new vE(this.JSC$17535_screenService_,u,this.config_),this.JSC$17535_session_.subscribe("sessionScreen",(0,_.NG)(this.onSessionScreen_,this,this.JSC$17535_session_)),
this.JSC$17535_session_.subscribe("sessionFailed",function(){return Ehz(R,R.JSC$17535_session_)}),this.JSC$17535_session_.launchWithParams(null));
this.JSC$17535_session_.setCastSession(f)}}};
_.X.JSC$17537_getCastSession=function(){return this.JSC$17535_session_?this.JSC$17535_session_.JSC$17521_getCastSession():null};
_.X.onSessionRequestFailed_=function(f){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.d4)(f)),f.code!=chrome.cast.ErrorCode.CANCEL&&O4(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.X.onReceiverUpdated_=function(f){uY("Receiver availability updated: "+f);if(!this.isDisposed()){var R=Rd(this);this.hasCastReceiver_=f==chrome.cast.ReceiverAvailability.AVAILABLE;Rd(this)!=R&&this.publish("yt-remote-cast2-availability-change",Rd(this))}};
var QYz=function(f){var R=f.JSC$17535_screenService_.JSC$17517_getOnlineScreens(),u=f.JSC$17535_session_&&f.JSC$17535_session_.receiver_;f=_.L8(R,function(O){u&&jz(O,u.label)&&(u=null);var c=O.uuid?O.uuid:O.id,h=WZz(this,O);h?(h.label=c,h.friendlyName=O.name):(h=new chrome.cast.Receiver(c,O.name),h.receiverType=chrome.cast.ReceiverType.CUSTOM);return h},f);
u&&(u.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(u=new chrome.cast.Receiver(u.label,u.friendlyName),u.receiverType=chrome.cast.ReceiverType.CUSTOM),f.push(u));return f};
sG.prototype.JSC$17537_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=QYz(this),uY("Updating custom receivers: "+(0,_.d4)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.NG)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Rd(this)))};
sG.prototype.setLaunchParams=sG.prototype.setLaunchParams;sG.prototype.setConnectedScreenStatus=sG.prototype.setConnectedScreenStatus;sG.prototype.stopSession=sG.prototype.JSC$17537_stopSession;sG.prototype.getCastSession=sG.prototype.JSC$17537_getCastSession;sG.prototype.requestSession=sG.prototype.requestSession;sG.prototype.init=sG.prototype.init;sG.prototype.dispose=sG.prototype.dispose;var Xcz=[];var ti2=function(f){f.audioTrackId=null;f.trackData=null;f.playerState=-1;f.hasPrevious=!1;f.hasNext=!1;f.playerTime_=0;f.playerTimeAt_=_.rI();f.seekableStart_=0;f.seekableEnd_=0;f.duration_=0;f.loadedTime=0;f.liveIngestionTime_=NaN;f.isLive_=!1};
_.X=nl.prototype;
_.X.reset=function(f){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;f&&(this.index=f.index,this.listId=f.listId,this.videoId=f.videoId,this.playerState=f.playerState,this.volume=f.volume,this.muted=f.muted,this.audioTrackId=f.audioTrackId,this.trackData=f.trackData,this.hasPrevious=f.hasPrevious,this.hasNext=f.hasNext,this.playerTime_=f.playerTime,this.playerTimeAt_=f.playerTimeAt,this.seekableStart_=f.seekableStart,this.seekableEnd_=f.seekableEnd,this.duration_=f.duration,this.loadedTime=
f.loadedTime,this.liveIngestionTime_=f.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.X.stopPlayer=function(){this.index=-1;this.videoId="";ti2(this)};
_.X.isPlaying=function(){return this.playerState==1};
_.X.isBuffering=function(){return this.playerState==3};
_.X.isAdPlaying=function(){return this.playerState==1081};
var ck=function(f,R){f.playerTime_=R;f.playerTimeAt_=_.rI()},Cxz=function(f){switch(f.playerState){case 1:case 1081:return(_.rI()-f.playerTimeAt_)/1E3+f.playerTime_;
case -1E3:return 0}return f.playerTime_};
nl.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.rI()-this.playerTimeAt_)/1E3:0):this.duration_};
var yt5=function(f,R,u){var O=f.videoId;f.videoId=R;f.index=u;R!=O&&ti2(f)},dil=function(f){var R={};
R.index=f.index;R.listId=f.listId;R.videoId=f.videoId;R.playerState=f.playerState;R.volume=f.volume;R.muted=f.muted;R.audioTrackId=f.audioTrackId;R.trackData=_.dq.unsafeClone(f.trackData);R.hasPrevious=f.hasPrevious;R.hasNext=f.hasNext;R.playerTime=f.playerTime_;R.playerTimeAt=f.playerTimeAt_;R.seekableStart=f.seekableStart_;R.seekableEnd=f.seekableEnd_;R.duration=f.duration_;R.loadedTime=f.loadedTime;R.liveIngestionTime=f.liveIngestionTime_;return R};
nl.prototype.clone=function(){return new nl(dil(this))};var XY=function(f,R){_.n4.call(this);var u=this;this.state_=0;this.connection_=f;this.contextSubscriptions_=[];this.actionQueue_=new uPN;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.NG)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.NG)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.NG)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.NG)(this.onCloudviewAvailabilityChange_,this);var O=0;f?(O=f.getProxyState(),
O!=3&&(f.subscribe("proxyStateChange",this.setState_,this),NSz(this))):O=3;O!=0&&(R?this.setState_(O):_.ZL(function(){u.setState_(O)},0));
(f=k4m())&&LZX(this,f);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.y(XY,_.n4);XY.prototype.getState=function(){return this.state_};
XY.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
XY.prototype.reconnect=function(){this.connection_.reconnect()};
var h7=function(f){return new nl(f.connection_.getPlayerContextData())};
_.X=XY.prototype;_.X.play=function(){Z_(this)?(this.castMedia_?this.castMedia_.play(null,_.Fe,bNl(this,"play")):lY(this,"play"),pYt(this,1,Cxz(h7(this))),this.publish("remotePlayerChange")):kq(this,this.play)};
_.X.pause=function(){Z_(this)?(this.castMedia_?this.castMedia_.pause(null,_.Fe,bNl(this,"pause")):lY(this,"pause"),pYt(this,2,Cxz(h7(this))),this.publish("remotePlayerChange")):kq(this,this.pause)};
_.X.seekTo=function(f){if(Z_(this)){if(this.castMedia_){var R=h7(this),u=new chrome.cast.media.SeekRequest;u.currentTime=f;R.isPlaying()||R.isBuffering()?u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(u,_.Fe,bNl(this,"seekTo",{newTime:f}))}else lY(this,"seekTo",{newTime:f});pYt(this,3,f);this.publish("remotePlayerChange")}else kq(this,_.mx(this.seekTo,f))};
_.X.stop=function(){if(Z_(this)){this.castMedia_?this.castMedia_.stop(null,_.Fe,bNl(this,"stopVideo")):lY(this,"stopVideo");var f=h7(this);f.stopPlayer();KK(this,f);this.publish("remotePlayerChange")}else kq(this,this.stop)};
_.X.setVolume=function(f,R){if(Z_(this)){var u=h7(this);if(this.castSession_){if(u.volume!=f){var O=Math.round(f)/100;this.castSession_.setReceiverVolumeLevel(O,(0,_.NG)(function(){MT("set receiver volume: "+O)},this),(0,_.NG)(function(){this.warn_("failed to set receiver volume.")},this))}u.muted!=R&&this.castSession_.setReceiverMuted(R,(0,_.NG)(function(){MT("set receiver muted: "+R)},this),(0,_.NG)(function(){this.warn_("failed to set receiver muted.")},this))}else{var c={volume:f,
muted:R};u.volume!=-1&&(c.delta=f-u.volume);lY(this,"setVolume",c)}u.muted=R;u.volume=f;KK(this,u)}else kq(this,_.mx(this.setVolume,f,R))};
_.X.setAudioTrack=function(f,R){Z_(this)?(R=R.getLanguageInfo().getId(),lY(this,"setAudioTrack",{videoId:f,audioTrackId:R}),f=h7(this),f.audioTrackId=R,KK(this,f)):kq(this,_.mx(this.setAudioTrack,f,R))};
_.X.addVideo=function(f){Z_(this)?lY(this,"addVideo",{videoId:f}):kq(this,_.mx(this.addVideo,f))};
_.X.addPlaylist=function(f){Z_(this)?lY(this,"addVideos",{listId:f}):kq(this,_.mx(this.addPlaylist,f))};
_.X.addVideos=function(f){f.length==0?this.warn_("Ignore add videos request due to empty list"):Z_(this)?lY(this,"addVideos",{videoIds:f.join(",")}):kq(this,_.mx(this.addVideos,f))};
_.X.JSC$17547_removeVideo=function(f){Z_(this)?lY(this,"removeVideo",{videoId:f}):kq(this,_.mx(this.JSC$17547_removeVideo,f))};
_.X.JSC$17547_insertVideo=function(f){Z_(this)?lY(this,"insertVideo",{videoId:f}):kq(this,_.mx(this.JSC$17547_insertVideo,f))};
_.X.playVideo=function(f,R,u,O,c,h,l){O=O===void 0?null:O;c=c===void 0?null:c;h=h===void 0?null:h;l=l===void 0?null:l;var K=h7(this),q={videoId:f};u!==void 0&&(q.currentIndex=u);yt5(K,f,u||0);R!==void 0&&(ck(K,R),q.currentTime=R);O&&(q.listId=O);c&&(q.playerParams=c);h&&(q.clickTrackingParams=h);l&&(q.locationInfo=(0,_.d4)(l));lY(this,"setPlaylist",q);O||KK(this,K)};
_.X.nextVideo=function(f,R){if(Z_(this)){if(f&&R){var u=h7(this);yt5(u,f,R);KK(this,u)}lY(this,"next")}else kq(this,_.mx(this.nextVideo,f,R))};
_.X.clearPlaylist=function(){if(Z_(this)){lY(this,"clearPlaylist");var f=h7(this);f.reset();KK(this,f);this.publish("remotePlayerChange")}else kq(this,this.clearPlaylist)};
_.X.dispose=function(){if(this.state_!=3){var f=this.state_;this.state_=3;this.publish("proxyStateChange",f,this.state_)}_.n4.prototype.dispose.call(this)};
_.X.disposeInternal=function(){jYe(this);this.connection_=null;this.actionQueue_.clear();LZX(this,null);_.n4.prototype.disposeInternal.call(this)};
var NSz=function(f){_.Gf("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(R){this.contextSubscriptions_.push(this.connection_.subscribe(R,_.mx(this.onProxyEvent_,R),this))},f)},jYe=function(f){_.Gf(f.contextSubscriptions_,function(R){this.connection_.unsubscribeByKey(R)},f);
f.contextSubscriptions_.length=0},Z_=function(f){return f.getState()==1},kq=function(f,R){f.actionQueue_.getCount()<50&&f.actionQueue_.enqueue(R)},pYt=function(f,R,u){var O=h7(f);
ck(O,u);O.playerState!=-1E3&&(O.playerState=R);KK(f,O)},lY=function(f,R,u){f.connection_.sendMessage(R,u)},KK=function(f,R){jYe(f);
f.connection_.setPlayerContextData(dil(R));NSz(f)};
XY.prototype.setState_=function(f){if((f!=this.state_||f==2)&&this.state_!=3&&f!=0){var R=this.state_;this.state_=f;this.publish("proxyStateChange",R,f);if(f==1)for(;!this.actionQueue_.isEmpty();)f=this.actionQueue_,SQz(f),f.front_.pop().apply(this);else f==3&&this.dispose()}};
XY.prototype.onProxyEvent_=function(f,R){this.publish(f,R)};
var LZX=function(f,R){f.castSession_&&(f.castSession_.removeUpdateListener(f.boundCastStatusListener_),f.castSession_.removeMediaListener(f.boundCastMediaListener_),f.onCastMediaChange_(null));f.castSession_=R;if(f.castSession_&&(MT("Setting cast session: "+f.castSession_.sessionId),f.castSession_.addUpdateListener(f.boundCastStatusListener_),f.castSession_.addMediaListener(f.boundCastMediaListener_),f.castSession_.media.length))f.onCastMediaChange_(f.castSession_.media[0])};
XY.prototype.onCastStatusUpdate_=function(f){if(!f)this.onCastMediaChange_(null),LZX(this,null);else if(this.castSession_.receiver.volume){f=this.castSession_.receiver.volume;var R=h7(this),u=Math.round(100*f.level||0);if(R.volume!=u||R.muted!=f.muted)MT("Cast volume update: "+f.level+(f.muted?" muted":"")),R.volume=u,R.muted=!!f.muted,KK(this,R)}};
XY.prototype.onCastMediaChange_=function(f){MT("Cast media: "+!!f);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=f)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),DiK(this),this.publish("remotePlayerChange")};
var DiK=function(f){var R=f.castMedia_.media,u=f.castMedia_.customData;if(R&&u){var O=h7(f);R.contentId!=O.videoId&&MT("Cast changing video to: "+R.contentId);O.videoId=R.contentId;O.playerState=u.playerState;ck(O,f.castMedia_.getEstimatedTime());KK(f,O)}else MT("No cast media video. Ignoring state update.")};
XY.prototype.onCastMediaUpdate_=function(f){if(f)DiK(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
XY.prototype.onCloudviewAvailabilityChange_=function(){var f=k4m();f&&LZX(this,f)};
XY.prototype.warn_=function(f){IK("CP",f)};
var bNl=function(f,R,u){return(0,_.NG)(function(O){this.warn_("Failed to "+R+" with cast v2 channel. Error code: "+O.code);O.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+R+" using MDx browser channel."),lY(this,R,u))},f)};var A7=function(f,R,u,O){O=O===void 0?!1:O;_.n4.call(this);var c=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$17554_http_=f;this.enableConnectWithInitialState_=O;this.listeners_.push(_.f0(window,"beforeunload",function(){c.JSC$17557_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new nl;this.currentScreenId_=R.id;this.currentScreenIdType_=R.idType;this.channelService=JZN(this.JSC$17554_http_,u,this.JSC$17557_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){JtS(c)});
this.channelService.listen("channelClosed",function(){q4("Channel closed");isNaN(c.connectTimerId_)?J3(!0):J3();c.dispose()});
this.channelService.listen("channelError",function(h){J3();isNaN(c.getReconnectTimeout_())?(h==1&&c.currentScreenIdType_=="shortLived"&&c.publish("browserChannelAuthError",h),q4("Channel error: "+h+" without reconnection"),c.dispose()):(c.reconnecting_=!0,q4("Channel error: "+h+" with reconnection in "+c.getReconnectTimeout_()+" ms"),zOh(c,2))});
this.channelService.listen("channelMessage",function(h){TSh(c,h)});
this.channelService.setLoungeToken(R.token);this.subscribe("remoteQueueChange",function(){var h=c.playerContext_.videoId;m1l()&&_.cT("yt-remote-session-video-id",h)})};
_.y(A7,_.n4);
A7.prototype.connect=function(f,R){if(R){var u=R.listId,O=R.videoId,c=R.videoIds,h=R.playerParams,l=R.clickTrackingParams,K=R.index,q={videoId:O},F=R.currentTime,w=R.locationInfo;R=R.loopMode;F!==void 0&&(q.currentTime=F<=5?0:F);h&&(q.playerParams=h);w&&(q.locationInfo=w);l&&(q.clickTrackingParams=l);u&&(q.listId=u);c&&c.length>0&&(q.videoIds=c.join(","));K!==void 0&&(q.currentIndex=K);this.enableConnectWithInitialState_&&(q.loopMode=R||"LOOP_MODE_OFF");u&&(this.playerContext_.listId=u);this.playerContext_.videoId=
O;this.playerContext_.index=K||0;this.playerContext_.state=3;ck(this.playerContext_,F);this.autoplayMode_="UNSUPPORTED";u=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";q4("Connecting with "+u+" and params: "+(0,_.d4)(q));this.channelService.connect({method:u,params:(0,_.d4)(q)},f,Cq5())}else q4("Connecting without params"),this.channelService.connect({},f,Cq5());HNt(this)};
A7.prototype.setLoungeToken=function(f){this.channelService.setLoungeToken(f)};
A7.prototype.dispose=function(){this.isDisposed()||(_.V4("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),zOh(this,3));_.n4.prototype.dispose.call(this)};
A7.prototype.disposeInternal=function(){IlS(this);Mia(this);Px2(this);_.kx(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.kx(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.oSn(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.n4.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Uih=function(f){return _.et(f.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"})},q4=function(f){IK("conn",f)},zOh=function(f,R){f.publish("proxyStateChange",R)},HNt=function(f){f.connectTimerId_=_.ZL(function(){q4("Connecting timeout");
f.JSC$17557_disconnect_(1)},2E4)},IlS=function(f){_.kx(f.connectTimerId_);
f.connectTimerId_=NaN},Px2=function(f){_.kx(f.reconnectedCheckScreenTimeout_);
f.reconnectedCheckScreenTimeout_=NaN},eON=function(f){Mia(f);
f.playingSyncTimerId_=_.ZL(function(){ad(f,"getNowPlaying")},2E4)},Mia=function(f){_.kx(f.playingSyncTimerId_);
f.playingSyncTimerId_=NaN},JtS=function(f){q4("Channel opened");
f.reconnecting_&&(f.reconnecting_=!1,Px2(f),f.reconnectedCheckScreenTimeout_=_.ZL(function(){q4("Timing out waiting for a screen.");f.JSC$17557_disconnect_(1)},15E3))},BSe=function(f,R){var u=null;
if(R){var O=Uih(f);O&&(u={clientName:O.clientName,deviceMake:O.brand,deviceModel:O.model,osVersion:O.osVersion})}_.V4("yt.mdx.remote.remoteClient_",u);R&&(IlS(f),Px2(f));u=f.channelService.isChannelOpened()&&isNaN(f.connectTimerId_);R==u?R&&(zOh(f,1),ad(f,"getSubtitlesTrack")):R?(f.getOtherConnectedRemoteId_()&&f.playerContext_.reset(),zOh(f,1),ad(f,"getNowPlaying"),G9h(f)):f.JSC$17557_disconnect_(1)},ohX=function(f,R){var u=R.params.videoId;
delete R.params.videoId;u==f.playerContext_.videoId&&(_.dq.isEmpty(R.params)?f.playerContext_.trackData=null:f.playerContext_.trackData=R.params,f.publish("remotePlayerChange"))},xiz=function(f,R,u){var O=R.params.videoId||R.params.video_id,c=parseInt(R.params.currentIndex,10);
f.playerContext_.listId=R.params.listId||f.playerContext_.listId;yt5(f.playerContext_,O,c);f.publish("remoteQueueChange",u)},SdN=function(f,R){R.params=R.params||{};
xiz(f,R,"NOW_PLAYING_MAY_CHANGE");f.onStateChange_(R);f.publish("autoplayDismissed")};
A7.prototype.onStateChange_=function(f){var R=parseInt(f.params.currentTime||f.params.current_time,10);ck(this.playerContext_,isNaN(R)?0:R);R=parseInt(f.params.state,10);R=isNaN(R)?-1:R;R==-1&&this.playerContext_.playerState==-1E3&&(R=-1E3);this.playerContext_.playerState=R;R=Number(f.params.loadedTime);this.playerContext_.loadedTime=isNaN(R)?0:R;R=Number(f.params.duration);this.playerContext_.duration_=isNaN(R)?0:R;R=this.playerContext_;var u=Number(f.params.liveIngestionTime);R.liveIngestionTime_=
u;R.isLive_=isNaN(u)?!1:!0;R=this.playerContext_;u=Number(f.params.seekableStartTime);f=Number(f.params.seekableEndTime);R.seekableStart_=isNaN(u)?0:u;R.seekableEnd_=isNaN(f)?0:f;this.playerContext_.playerState==1?eON(this):Mia(this);this.publish("remotePlayerChange")};
A7.prototype.onAdStateChange_=function(f){if(this.playerContext_.playerState!=-1E3){var R=1085;switch(parseInt(f.params.adState,10)){case 1:R=1081;break;case 2:R=1084;break;case 0:R=1083}this.playerContext_.playerState=R;f=parseInt(f.params.currentTime,10);ck(this.playerContext_,isNaN(f)?0:f);this.publish("remotePlayerChange")}};
var $iK=function(f,R){var u=R.params.muted=="true";f.playerContext_.volume=parseInt(R.params.volume,10);f.playerContext_.muted=u;f.publish("remotePlayerChange")},ght=function(f,R){f.autoplayVideoId_=R.params.videoId;
f.publish("nowAutoplaying",parseInt(R.params.timeout,10))},sYl=function(f,R){f.autoplayVideoId_=R.params.videoId||null;
f.publish("autoplayUpNext",f.autoplayVideoId_)},nhl=function(f,R){f.autoplayMode_=R.params.autoplayMode;
f.publish("autoplayModeChange",f.autoplayMode_);f.autoplayMode_=="DISABLED"&&f.publish("autoplayDismissed")},ViX=function(f,R){var u=R.params.hasNext=="true";
f.playerContext_.hasPrevious=R.params.hasPrevious=="true";f.playerContext_.hasNext=u;f.publish("previousNextChange")};
A7.prototype.isCapabilitySupportedOnConnectedDevices_=function(f){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var R=_.Z(this.connectedDevices_),u=R.next();!u.done;u=R.next())if(!u.value.capabilities.has(f))return!1;return!0};
var TSh=function(f,R){R=R.message;R.params?q4("Received: action="+R.action+", params="+(0,_.d4)(R.params)):q4("Received: action="+R.action+" {}");switch(R.action){case "loungeStatus":R=(0,_.bE)(R.params.devices);f.connectedDevices_=_.L8(R,function(O){return new go(O)});
R=!!_.et(f.connectedDevices_,function(O){return O.type=="LOUNGE_SCREEN"});
BSe(f,R);R=f.isCapabilitySupportedOnConnectedDevices_("mlm");f.publish("multiStateLoopEnabled",R);break;case "loungeScreenDisconnected":DWX(f.connectedDevices_,function(O){return O.type=="LOUNGE_SCREEN"});
BSe(f,!1);break;case "remoteConnected":var u=new go((0,_.bE)(R.params.device));_.et(f.connectedDevices_,function(O){return O.equals(u)})||_.se(f.connectedDevices_,u);
break;case "remoteDisconnected":u=new go((0,_.bE)(R.params.device));DWX(f.connectedDevices_,function(O){return O.equals(u)});
break;case "gracefulDisconnect":break;case "playlistModified":xiz(f,R,"QUEUE_MODIFIED");break;case "nowPlaying":SdN(f,R);break;case "onStateChange":f.onStateChange_(R);break;case "onAdStateChange":f.onAdStateChange_(R);break;case "onVolumeChanged":$iK(f,R);break;case "onSubtitlesTrackChanged":ohX(f,R);break;case "nowAutoplaying":ght(f,R);break;case "autoplayDismissed":f.publish("autoplayDismissed");break;case "autoplayUpNext":sYl(f,R);break;case "onAutoplayModeChanged":nhl(f,R);break;case "onHasPreviousNextChanged":ViX(f,
R);break;case "requestAssistedSignIn":f.publish("assistedSignInRequested",R.params.authCode);break;case "onLoopModeChanged":f.publish("loopModeChange",R.params.loopMode);break;default:q4("Unrecognized action: "+R.action)}};
_.X=A7.prototype;_.X.getProxyState_=function(){var f=3;this.isDisposed()||(f=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(f=1):f=2);return f};
_.X.JSC$17557_disconnect_=function(f){q4("Disconnecting with "+f);_.V4("yt.mdx.remote.remoteClient_",null);IlS(this);this.publish("beforeDisconnect",f);f==1&&J3();this.channelService.disconnect(f);this.dispose()};
_.X.getPlayerContextData_=function(){var f=this.playerContext_;this.clientVideoId_&&(f=this.playerContext_.clone(),yt5(f,this.clientVideoId_,f.index));return dil(f)};
_.X.setPlayerContextData_=function(f){var R=this,u=new nl(f);u.videoId&&u.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=u.videoId,_.kx(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.ZL(function(){if(R.clientVideoId_){var c=R.clientVideoId_;R.clientVideoId_=null;R.playerContext_.videoId!=c&&ad(R,"getNowPlaying")}},5E3));
var O=[];this.playerContext_.listId==u.listId&&this.playerContext_.videoId==u.videoId&&this.playerContext_.index==u.index||O.push("remoteQueueChange");this.playerContext_.playerState==u.playerState&&this.playerContext_.volume==u.volume&&this.playerContext_.muted==u.muted&&Cxz(this.playerContext_)==Cxz(u)&&(0,_.d4)(this.playerContext_.trackData)==(0,_.d4)(u.trackData)||O.push("remotePlayerChange");this.playerContext_.reset(f);_.Gf(O,function(c){this.publish(c)},this)};
_.X.getOtherConnectedRemoteId_=function(){var f=this.channelService.getDeviceId(),R=_.et(this.connectedDevices_,function(u){return u.type=="REMOTE_CONTROL"&&u.id!=f});
return R?R.id:""};
_.X.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.X.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.X.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.X.JSC$17557_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var G9h=function(f){_.kx(f.idleDisconnectTimerId_);f.idleDisconnectTimerId_=_.ZL(function(){f.JSC$17557_disconnect_(1)},864E5)},ad=function(f,R,u){u?q4("Sending: action="+R+", params="+(0,_.d4)(u)):q4("Sending: action="+R);
f.channelService.sendMessage(R,u)};
A7.prototype.sendMessageWithUserAction_=function(f,R){ad(this,f,R);G9h(this)};
A7.prototype.JSC$17557_getXsrfToken_=function(){var f=_.wU.get("SAPISID","")||_.wU.get("__Secure-1PAPISID",void 0)||"",R=_.wU.get("__Secure-3PAPISID","")||"";if(!f&&!R)return"";f=_.fE(_.CR(f),2);R=_.fE(_.CR(R),2);return _.fE(_.CR(","+f+","+R),2)};
A7.prototype.subscribe=A7.prototype.subscribe;A7.prototype.unsubscribeByKey=A7.prototype.unsubscribeByKey;A7.prototype.getProxyState=A7.prototype.getProxyState_;A7.prototype.disconnect=A7.prototype.JSC$17557_disconnect_;A7.prototype.getPlayerContextData=A7.prototype.getPlayerContextData_;A7.prototype.setPlayerContextData=A7.prototype.setPlayerContextData_;A7.prototype.getOtherConnectedRemoteId=A7.prototype.getOtherConnectedRemoteId_;A7.prototype.getReconnectTimeout=A7.prototype.getReconnectTimeout_;
A7.prototype.getAutoplayMode=A7.prototype.getAutoplayMode_;A7.prototype.getAutoplayVideoId=A7.prototype.getAutoplayVideoId_;A7.prototype.reconnect=A7.prototype.JSC$17557_reconnect_;A7.prototype.sendMessage=A7.prototype.sendMessageWithUserAction_;A7.prototype.getXsrfToken=A7.prototype.JSC$17557_getXsrfToken_;A7.prototype.isCapabilitySupportedOnConnectedDevices=A7.prototype.isCapabilitySupportedOnConnectedDevices_;var Ydh=function(f){UG.call(this,"ScreenServiceProxy");this.instance_=f;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.NG)(this.JSC$17560_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.NG)(this.onOnlineScreenChange_,this)))};
_.y(Ydh,UG);_.X=Ydh.prototype;_.X.getScreens=function(f){return this.instance_.$_gs(f)};
_.X.contains=function(f){return!!this.instance_.$_c(f)};
_.X.get=function(f){return this.instance_.$_g(f)};
_.X.start=function(){this.instance_.$_st()};
_.X.add=function(f,R,u){this.instance_.$_a(f,R,u)};
_.X.remove=function(f,R,u){this.instance_.$_r(f,R,u)};
_.X.updateName=function(f,R,u,O){this.instance_.$_un(f,R,u,O)};
_.X.disposeInternal=function(){for(var f=this.subscriptionKeys_.length,R=0;R<f;++R)this.instance_.$_ubk(this.subscriptionKeys_[R]);this.subscriptionKeys_.length=0;this.instance_=null;UG.prototype.disposeInternal.call(this)};
_.X.JSC$17560_onScreenChange_=function(){this.publish("screenChange")};
_.X.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
BU.prototype.$_st=BU.prototype.start;BU.prototype.$_gspc=BU.prototype.JSC$17517_getScreenByPairingCode;BU.prototype.$_gsppc=BU.prototype.JSC$17517_getScreenByPollingPairingCode;BU.prototype.$_c=BU.prototype.contains;BU.prototype.$_g=BU.prototype.get;BU.prototype.$_a=BU.prototype.add;BU.prototype.$_un=BU.prototype.updateName;BU.prototype.$_r=BU.prototype.remove;BU.prototype.$_gs=BU.prototype.getScreens;BU.prototype.$_gos=BU.prototype.JSC$17517_getOnlineScreens;BU.prototype.$_s=BU.prototype.subscribe;
BU.prototype.$_ubk=BU.prototype.unsubscribeByKey;var OiK=function(f){LFa();if(!zG||!zG.get("yt-remote-disable-remote-module-for-dev")){f=_.Tf("MDX_CONFIG")||f;DOa();WF2();FY||(FY=new bv(f?f.loungeApiHost:void 0),bTh()&&(FY.basePath="/api/loungedev"));wf||(wf=_.Ph("yt.mdx.remote.deferredProxies_")||[],_.V4("yt.mdx.remote.deferredProxies_",wf));vhX();var R=mr();if(!R){var u=new BU(FY,f?f.disableAutomaticScreenCache||!1:!1);_.V4("yt.mdx.remote.screenService_",u);R=mr();var O={};f&&(O={appId:f.appId,disableDial:f.disableDial,theme:f.theme,loadCastApiSetupScript:f.loadCastApiSetupScript,
disableCastApi:f.disableCastApi,enableDialLoungeToken:f.enableDialLoungeToken,enableCastLoungeToken:f.enableCastLoungeToken,forceMirroring:f.forceMirroring});_.V4("yt.mdx.remote.enableConnectWithInitialState_",f?f.enableConnectWithInitialState||!1:!1);Oam(u,function(h){h?Qh()&&qmS(Qh(),"YouTube TV"):u.subscribe("onlineScreenChange",function(){fl("yt-remote-receiver-availability-change")})},O)}if(f&&!_.Ph("yt.mdx.remote.initialized_")){_.V4("yt.mdx.remote.initialized_",!0);
Wk("Initializing: "+(0,_.d4)(f));E4.push(_.Z8("yt-remote-cast2-api-ready",function(){fl("yt-remote-api-ready")}));
E4.push(_.Z8("yt-remote-cast2-availability-change",function(){fl("yt-remote-receiver-availability-change")}));
E4.push(_.Z8("yt-remote-cast2-receiver-selected",function(){iNK();fl("yt-remote-auto-connect","cast-selector-receiver")}));
E4.push(_.Z8("yt-remote-cast2-receiver-resumed",function(){fl("yt-remote-receiver-resumed","cast-selector-receiver")}));
E4.push(_.Z8("yt-remote-cast2-session-change",rtl));E4.push(_.Z8("yt-remote-connection-change",function(h){h?qmS(Qh(),"YouTube TV"):fnS()||(qmS(null,null),lvh())}));
E4.push(_.Z8("yt-remote-cast2-session-failed",function(){fl("yt-remote-connection-failed")}));
O=RT5();f.isAuto&&(O.id+="#dial");var c=f.capabilities||[];c.length>0&&(O.capabilities=c);O.name=f.device;O.app=f.app;(f=f.theme)&&(O.theme=f);Wk(" -- with channel params: "+(0,_.d4)(O));O?(_.cT("yt-remote-session-app",O.app),_.cT("yt-remote-session-name",O.name)):(_.hC("yt-remote-session-app"),_.hC("yt-remote-session-name"));_.V4("yt.mdx.remote.channelParams_",O);R.start();Qh()||ulw()}}},X1a=function(){var f=mr().instance_.$_gos();
var R=cil();R&&t7()&&(aaK(f,R)||f.push(R));return AZt(f)},hT2=function(){var f=X1a(),R=cil();
R||(R=fnS());return _.et(f,function(u){return R&&jz(R,u.key)?!0:!1})},cil=function(){var f=Qh();
if(!f)return null;var R=mr().getScreens();return Dg(R,f)},rtl=function(f){Wk("remote.onCastSessionChange_: "+Ajz(f));
if(f){var R=cil();R&&R.id==f.id?(qmS(R.id,"YouTube TV"),f.idType=="shortLived"&&(f=f.token)&&(R=t7())&&R.setLoungeToken(f)):(R&&ZiK(),lnm(f,1))}else t7()&&ZiK()},ZiK=function(){Kam()?$k().stopSession():Sz("stopSession called before API ready.");
var f=t7();f&&(f.disconnect(1),kCK(null))},KuS=function(){var f=t7();
return f&&f.getProxyState()!=3?new XY(t7(),void 0):null},Wk=function(f){IK("remote",f)},mr=function(){if(!q1l){var f=_.Ph("yt.mdx.remote.screenService_");
q1l=f?new Ydh(f):null}return q1l},Qh=function(){return _.Ph("yt.mdx.remote.currentScreenId_")},AiN=function(f){_.V4("yt.mdx.remote.currentScreenId_",f)},iNK=function(){_.V4("yt.mdx.remote.connectData_",null)},t7=function(){return _.Ph("yt.mdx.remote.connection_")},kCK=function(f){var R=t7();
iNK();f||AiN("");_.V4("yt.mdx.remote.connection_",f);wf&&(_.Gf(wf,function(u){u(f)}),wf.length=0);
R&&!f?fl("yt-remote-connection-change",!1):!R&&f&&fl("yt-remote-connection-change",!0)},fnS=function(){var f=m1l();
if(!f)return null;var R=mr();if(!R)return null;R=R.getScreens();return Dg(R,f)},lnm=function(f,R){AiN(f.id);
f=new A7(FY,f,RT5(),_.Ph("yt.mdx.remote.enableConnectWithInitialState_")||!1);f.connect(R,_.Ph("yt.mdx.remote.connectData_"));f.subscribe("beforeDisconnect",function(u){fl("yt-remote-before-disconnect",u)});
f.subscribe("beforeDispose",function(){t7()&&kCK(null)});
f.subscribe("browserChannelAuthError",function(){var u=cil();u&&u.idType=="shortLived"&&(Kam()?$k().handleBrowserChannelAuthError():Sz("refreshLoungeToken called before API ready."))});
kCK(f)},ulw=function(){var f=fnS();
f?(Wk("Resume connection to: "+Ajz(f)),lnm(f,0)):(J3(),lvh(),Wk("Skipping connecting because no session screen found."))},FY=null,wf=null,q1l=null,vhX=function(){var f=RT5();
if(_.dq.isEmpty(f)){f=wC9();var R=_.Xs("yt-remote-session-name")||"",u=_.Xs("yt-remote-session-app")||"";f={device:"REMOTE_CONTROL",id:f,name:R,app:u,mdxVersion:3};f.authuser=String(_.Tf("SESSION_INDEX","0"));(R=_.Tf("DELEGATED_SESSION_ID"))&&(f.pageId=String(R));_.V4("yt.mdx.remote.channelParams_",f)}},RT5=function(){return _.Ph("yt.mdx.remote.channelParams_")||{}},E4=[];var ana=new _.Mx("yt-menu"),Fuz=function(){},mk5=function(f,R,u){f=R=="right-click"?u.rightClickMenuPopupHint:u.menuPopupHint;
if(!(w12(R)>10))return R=R||"default",ana.set(R+"-impression",w12(R)+1),f},w12=function(f){return parseInt(ana.get((f||"default")+"-impression")||0,10)};
_.ik(Fuz);var QCa=function(){this.contexts_=new WeakMap;this.JSC$17566_networkService_=this.activeContext_=null},Wut=function(f,R,u){var O=f.contexts_.get(R);
O||(O=new p7m(f.JSC$17566_networkService_),f.contexts_.set(R,O));f.activeContext_=O;u&&f.activeContext_.reset();f.activeContext_.start();return f.activeContext_};var CK=function(){};
CK.prototype.enqueue=function(){var f=this,R;return _.k(function(u){if(f.isCounterfactual())return(R=f.getCounterfactualData())&&f.shouldLogCounterfactualImpression()&&f.sendImpressionEndpoints(R),u.return();f.doEnqueue();_.KG(u)})};
CK.prototype.sendImpressionEndpoints=function(f){_.xN.getInstance().triggerOptionalAction("yt-service-request",{},f[0])};var yh=function(f,R){this.renderer=f;this.page=R};
_.y(yh,CK);yh.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
yh.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
yh.prototype.shouldLogCounterfactualImpression=function(){return!0};
yh.prototype.doEnqueue=function(){var f=_.nL(this.page);f&&f.pause();this.renderer.impressionCommand&&_.xN.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.D2(_.xN.getInstance(),[this.renderer.promoCommand],this.page)};var Eam=function(f,R){this.renderer=f;this.resolver=_.BM();this.JSC$17578_enforcementCounter=new _.F1E;R?this.JSC$17578_playerManager=_.nL(R):this.JSC$17578_playerManager=null;_.AN(1,!0)};
_.y(Eam,CK);_.X=Eam.prototype;_.X.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var f=[];this.renderer.impressionEndpoints.forEach(function(R){(R=_.H7(R))&&f.push(R)});
return f}};
_.X.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.X.shouldLogCounterfactualImpression=function(){var f=_.VC5();f?(this.JSC$17578_enforcementCounter.increment("POPUP"),_.AN(3)):_.AN(2);return f};
_.X.cancel=function(){this.resolver.promise.cancel()};
_.X.doEnqueue=function(){var f=this;_.VC5()?(this.JSC$17578_enforcementCounter.increment("POPUP"),_.AN(3),tot(this)):this.JSC$17578_playerManager?(this.resolver.promise.then(function(){tot(f)}),C5N(this.resolver,this.JSC$17578_playerManager)):_.AN(2)};
var C5N=function(f,R){var u=_.BM();R.getPlayerPromise().then(function(O){u.resolve(O)});
u.promise.then(function(O){O.addEventListener("onAbnormalityDetected",f.resolve);_.to(f.promise,function(){O.removeEventListener("onAbnormalityDetected",f.resolve)})});
f.promise.thenCatch(function(){u.promise.cancel()})},tot=function(f){_.AN(3);
var R={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:f.renderer}};R=_.xN.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:R},{});Promise.all(R).then(function(){yim();f.JSC$17578_playerManager&&f.JSC$17578_playerManager.pause()})},yim=function(){F$K(function(f,R){_.aKl(f,R);
f===0?_.AN(7):_.AN(4)})};var dkm=function(f,R){this.renderer=f;this.page=R;this.resolver=_.BM()};
_.y(dkm,CK);_.X=dkm.prototype;_.X.cancel=function(){this.resolver.promise.cancel()};
_.X.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.X.isCounterfactual=function(){return!this.renderer.isVisible};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var f=this;this.resolver.promise.then(function(){var u={popup:{mealbarPromoRenderer:f.renderer},popupType:"MEALBAR"};_.xN.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:u},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var R=_.nL(this.page);R&&Ntz(this.resolver,R)}break;default:this.resolver.resolve()}};
var Ntz=function(f,R){var u=_.BM();R.getPlayerPromise().then(function(O){u.resolve(O)});
u.promise.then(function(O){O.addEventListener("onAdEnd",f.resolve);_.to(f.promise,function(){O.removeEventListener("onAdEnd",f.resolve)})});
f.promise.thenCatch(function(){u.promise.cancel()})};var Lue=function(f,R){this.renderer=f;this.page=R};
_.y(Lue,CK);_.X=Lue.prototype;_.X.cancel=function(){this.JSC$17586_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17586_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17586_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.X.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.X.isCounterfactual=function(){return!this.renderer.isVisible};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var f=this,R,u;((R=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(u=R.playbackUpsellDialogTriggerConditionData)==null?void 0:u.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17586_downloadedVideosCountSelectorUnsubscriber=_.aC(_.sP(),kAN,function(O,c){O>c&&(bil(f),f.cancel())}):bil(this)};
var bil=function(f){var R={popup:{upsellDialogRenderer:f.renderer},popupType:"MODAL"};_.xN.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:R},{});(f=_.nL(f.page))&&f.pause()};var df={},p1a=(df.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",df.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",df.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",df.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",df.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",df.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",df.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",df),jC5=function(f,R){this.renderer=f;this.targetManager=
R};
_.y(jC5,CK);_.X=jC5.prototype;_.X.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17593_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17593_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17593_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.X.getCounterfactualData=function(){if(this.isCounterfactual()){var f;return(f=this.renderer.promoConfig)==null?void 0:f.impressionEndpoints}};
_.X.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var f=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17593_downloadedVideosCountSelectorUnsubscriber=_.aC(_.sP(),kAN,function(R,u){f.renderer.targetId&&R>u&&(clS(f.targetManager,f.renderer.targetId,Dkt(f)),f.cancel())});
break;default:clS(this.targetManager,this.renderer.targetId,Dkt(this))}};
var Dkt=function(f){var R;if((R=f.renderer.suggestedPosition)==null?0:R.type)var u=p1a[f.renderer.suggestedPosition.type];u||(u="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:f.renderer},popupType:"HINT",position:u}}};var Jit=function(){this.previousPage=null},zTS;
Jit.prototype.registerPromoCommand=function(f,R){Tt9(this,void 0,void 0,_.t(f.roadblock,V72),void 0,void 0,R)};
var Tt9=function(f,R,u,O,c,h,l){f.previousPage!==l&&f.pendingTooltipPromo&&f.pendingTooltipPromo.cancel();f.previousPage=l;c?(f.pendingEnforcementPromo&&f.pendingEnforcementPromo.cancel(),f.pendingEnforcementPromo=new Eam(c,l),f.pendingEnforcementPromo.enqueue()):h?(f.pendingCommandWrapperPromo=new yh(h,l),f.pendingCommandWrapperPromo.enqueue()):O?(f.pendingRoadblockPromo&&f.pendingRoadblockPromo.cancel(),f.pendingRoadblockPromo=new Lue(O,l),f.pendingRoadblockPromo.enqueue()):R?(f.pendingMealbarPromo&&
f.pendingMealbarPromo.cancel(),f.pendingMealbarPromo=new dkm(R,l),f.pendingMealbarPromo.enqueue()):u&&(f.pendingTooltipPromo&&f.pendingTooltipPromo.cancel(),f.pendingTooltipPromo=new jC5(u,_.Q3()),f.pendingTooltipPromo.enqueue())},Hih=function(){zTS||(zTS=new Jit);
return zTS};var mst=!1;var k$X=function(f,R){var u=_.Tf("SESSION_INDEX");this.actionToken_=f;this.commonToken_=R;this.sessionIndex_=u},lMl=function(f){var R=_.BM(),u=_.Ph("payments.business.integration.bootstrap"),O=_.Ph("payments.business.integration"),c=O.Style.create().withMaterialDesignStyle(),h=O.mashupMode.popup("instrument-manager");
u.asMashupMode(h).usingUserIndex(f.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(c).inStandaloneContext(O.standaloneContextAuthId.forUserId()).instrumentManager(f.actionToken_,f.commonToken_.length>0?f.commonToken_:void 0,function(l){var K=l.instrumentId;K?R.resolve(K):(K=_.Ph("payments.business.integration.scenario.InstrumentManager"),R.reject(l.errorCode&&l.errorCode===K.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(l){_.IS(l);
R.reject("instrumentManagerLoadError")});
return R.promise};var ra=function(f,R,u){this.payloadName="transactionFlowFailed";this.payload={errorType:f,serializedTransactionFlowLoggingParams:R,isUserDismiss:u===void 0?!1:u}};
_.V4("yt.ypc.shared.YpcTransactionFlowError",ra);var N4=function(){return _.w_.apply(this,arguments)||this};
_.y(N4,_.w_);N4.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
N4.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
N4.prototype.onErrorMessageDismiss=N4.prototype.onErrorMessageDismiss;_.B([_.I({readOnly:!0,observer:"errorRendererChanged"}),_.S("design:type",Object)],N4.prototype,"errorRenderer",void 0);_.B([_.Kf("yt-live-chat-error-message-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],N4.prototype,"onErrorMessageDismiss",null);N4=_.B([_.mt()],N4);var Inw=[N4.prototype];var Moz;var P5K;var UkN=new _.Mx("yt-live-chat"),eT5=new Map;eT5.set("timestamp_toggle","show-timestamps");eT5.set("reactions_toggle","allow-reactions");var LK=function(){return _.U.apply(this,arguments)||this};
_.y(LK,_.U);_.X=LK.prototype;_.X.menuItemIdentifierChanged=function(){var f;(f=this.data)!=null&&f.menuItemIdentifier&&(f=eT5.get(this.data.menuItemIdentifier))&&(_.E("enable_lwe_web_mute")?(f=UkN.get(f),this.isToggled=!(f===void 0?!this.data.isToggled:!f)):this.isToggled=UkN.get(f))};
_.X.onFocus=function(){this.toggleButton.focus()};
_.X.onTap=function(){var f=this.data.command;f&&this.componentBehavior.resolveCommand(f)};
_.X.computeText=function(f,R,u){return this.componentBehavior.getSimpleString(f?u:R)};
_.X.computeIcon=function(f,R,u){return(f=f?u:R)&&f.iconType?_.li(f.iconType):""};
LK.prototype.onTap=LK.prototype.onTap;LK.prototype.onFocus=LK.prototype.onFocus;LK.prototype.menuItemIdentifierChanged=LK.prototype.menuItemIdentifierChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],LK.prototype,"componentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LK.prototype,"data",void 0);
_.B([_.I({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.S("design:type",String)],LK.prototype,"icon",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],LK.prototype,"isToggled",void 0);_.B([_.a4("tp-yt-paper-toggle-button"),_.S("design:type",Object)],LK.prototype,"toggleButton",void 0);_.B([_.qM("data.menuItemIdentifier"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LK.prototype,"menuItemIdentifierChanged",null);
_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LK.prototype,"onFocus",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LK.prototype,"onTap",null);LK=_.B([_.DO({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],LK);
_.G(LK,"yt-live-chat-toggle-renderer",function(){if(P5K===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Moz===void 0&&(Moz=document.createElement("template"));var O=Moz;u.call(R,O.content.cloneNode(!0),f.content.firstChild);P5K=f}f=P5K;return f},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var GCm=new _.Vi("NAVIGATION_PROGRESS_TOKEN");_.zf("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Bta={},dsS=(Bta.CSI=function(f,R){var u={};u[f]=R;f=_.MW(_.$2n)(u);Object.keys(f).length>0&&_.ja(f)},Bta.ECATCHER=function(f){return function(R,u){_.Tf(f)[R]=u}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),Bta);var oam={},xkm={},S1z=(xkm[PQN.name]=!0,xkm),bY=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;f.tabGesturesIsActive=!1;f.actionRouterIsRoot=!0;f.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"};f.pageTitle="";f.titleSuffix="YouTube";f.unseenNotificationCount=
0;f.hasNavigated=!1;f.hasSetScrollTopForNavigation=!1;f.pagePreparer=null;f.zwiebackInitJobId=0;f.dataUpdatePromise=null;f.loadDepsPromise=_.ll();f.hasPendingNavigation=!1;f.pendingPlayerOnResponseReceivedActions=[];return f};
_.y(bY,_.w_);bY.prototype.attached=function(){$kX(this);document.addEventListener("yt-navigate-cache",_.ks(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var f=pK();f.init();f.dispatchElement=this.hostElement};
var $kX=function(f,R){R=R===void 0?0:R;var u=_.vh().resolve(_.Y8(_.mf));if(u)gam(f,u);else{if(R>=5)throw Error("Wk");setTimeout(function(){$kX(f,R+1)},0)}},gam=function(f,R){R.addEventListener("yt-navigate-start",_.ks(f,f.onYtNavigateStart));
R.addEventListener("yt-navigate-finish",_.ks(f,f.onYtNavigateFinish));R.addEventListener("yt-navigate-error",_.ks(f,f.onYtNavigateError));R.addEventListener("yt-page-data-fetched",_.ks(f,f.onYtPageDataFetched))};
_.X=bY.prototype;_.X.detached=function(){var f=_.vh().resolve(_.mf);f.removeEventListener("yt-navigate-start",_.ks(this,this.onYtNavigateStart));f.removeEventListener("yt-navigate-finish",_.ks(this,this.onYtNavigateFinish));f.removeEventListener("yt-navigate-error",_.ks(this,this.onYtNavigateError));f.removeEventListener("yt-page-data-fetched",_.ks(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ks(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.X.setPageOffset=function(f,R){f?_.OJ(this.hostElement,"yt-set-page-offset",[f,R]):_.TL(Error("Xk"))};
_.X.setPageOffsetForNavigation=function(f,R){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(f,R))};
_.X.onYtNavigateSetPageOffset=function(f,R){this.setPageOffsetForNavigation(R.page,R.offset)};
_.X.getPageOffset=function(){var f=_.b(this.hostElement).querySelector("#page-manager").getCurrentPage(),R=0;f&&(R=_.OJ(this.hostElement,"yt-get-page-offset",[f])[0]);return R};
_.X.onYtHistoryPop=function(f,R){if(_.Hh("DISABLE_WARM_LOADS"))f.preventDefault(),window.location.reload();else{var u=_.vh().resolve(_.mf);u.hasPendingNavigation()&&f.preventDefault();u.cancelPendingNavigation();_.c_(this.hostElement,"yt-pending-navigation-cancelled");R.errorMsg&&(f=R.errorMsg.split(" - "),R=Error(f[0]),f.length==2&&f[1]&&(_.MB(R,f[1]),_.Ih(R)),window.location.reload())}};
_.X.onYtHistoryLoad=function(f,R){var u=this;if(_.Hh("DISABLE_WARM_LOADS"))window.location.reload();else{(f=R.endpoint)&&Object.keys(f).length||(f=null);var O=R.historyEntry,c=_.vh().resolve(_.mf),h=_.vh().resolve(_.sz),l=null;O&&O.rootData&&(l=O.rootData);var K=l&&sC5(l);!l||K||l.filler?f?(c.navigate(f,!0),naS(this,f)):(R.legacyBorder||K||(R.JSC$26553_savedComponentState==null&&l==null?_.Ih(new _.ts("Incomplete history entry",R.forward)):_.H5(new _.ts("Malformed history entry",R.JSC$26553_savedComponentState,
R.forward,l))),window.location.reload()):(_.r_2({isHot:!0}),_.ja({webInfo:{navigationReason:"h"}}),_.k77(),_.JH("srt"),_.JH("pdc"),this.cancelPendingTasks(),Vo2(this,R.forward,l),l.player&&(l.player.loaded=!1),naS(this,f),_.hZH(c,f||{},l,2,{},!1,R).then(function(){u.setPageOffset(h.getCurrentPage(),O.scrollTop||0)}))}};
_.X.initHistoryManager=function(f){if(!this.hasNavigated){this.hasNavigated=!0;var R=_.b(this.hostElement).querySelector("#page-manager").getCurrentData();f=isNaN(f)?this.getPageOffset():f;var u=_.vh().resolve(_.mf).currentEndpoint;this.replaceState(u,R,f)}};
_.X.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.X.onYtNavigateStart=function(f,R){this.cancelPendingTasks();R.noProgressBar||(f=_.vh().resolve(_.Y8(GCm)))&&f.start();f=this.hasPendingNavigation?null:this.data;var u=_.vh().resolve(_.sz),O,c,h;_.E("kevlar_use_vimio_behavior")&&!((O=R.endpoint)==null?0:(c=O.commandMetadata)==null?0:(h=c.webCommandMetadata)==null?0:h.ignoreNavigation)&&(O=u.getCurrentPage())&&O.disconnectVisibilityRoot();u.prepareForNavigation(R.pageType,R.endpoint);_.E("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.vT(1,
"pcl"),_.iU(this.pagePreparer,u.preparePage.bind(u,R.pageType,R.endpoint)));O=this.getPageOffset();this.initHistoryManager(O);R.reload||this.hasPendingNavigation?this.replaceState(R.endpoint,f,O):(f==null?void 0:f.page)==="watch"&&R.pageType==="watch"&&_.E("kevlar_replace_watch_to_watch_history_state")?this.replaceState(R.endpoint,f,O):(f==null?void 0:f.page)!=="shorts"||R.pageType!=="shorts"||R.endpoint.reelWatchEndpoint.sequenceParams||_.E("short_to_short_back_nav_killswitch")?R.type!="navigate-back"&&
R.type!="navigate-forward"&&(R.pageType==="shorts"&&_.ul(this.hostElement,"yt-shorts-reset"),this.saveAndPush(R.url,R.endpoint,f,O)):this.replaceState(R.endpoint,f,0);this.hasPendingNavigation=!0};
var Y1l=function(f){f.hasPendingNavigation=!1;(f=_.vh().resolve(_.Y8(GCm)))&&f.finish()};
bY.prototype.onYtNavigateError=function(f,R){Y1l(this);f=this.get("endpoint.commandMetadata.webCommandMetadata.url",R);var u=_.oS(window.location.href);f&&!u.pbjreload&&(R=R.navigationErrorReason||"10",_.E("kevlar_parent_on_pbjreload")&&(u={csn:_.z4()},this.get("data.endpoint.clickTrackingParams")&&(u.itct=this.data.endpoint.clickTrackingParams),_.VP(f,u)),_.G$(_.x8(f,{pbjreload:R})))};
bY.prototype.onYtNavigateCache=function(f,R){var u=this,O=R.url,c=R.endpoint,h=R.data;f=!!R.miniplayer;R=!!R.skipHistory;if(O&&c&&h){var l=this.getPageOffset(),K=this.data||null;R||this.saveAndPush(O,c,K,l);O=_.hZH(_.vh().resolve(_.mf),c,h,f?4:3,{},f);f&&O.then(function(){u.dataUpdatePromise&&u.dataUpdatePromise.then(function(){var q=_.vh().resolve(_.sz);u.setPageOffset(q.getCurrentPage(),0)})})}};
bY.prototype.onYtNavigateFinish=function(f,R){var u=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){vam(u,R.fromHistory)})};
var vam=function(f,R){Y1l(f);if(f.pendingPlayerOnResponseReceivedActions){for(var u=_.Z(f.pendingPlayerOnResponseReceivedActions),O=u.next();!O.done;O=u.next())_.qO(O.value,f.hostElement);f.pendingPlayerOnResponseReceivedActions=[]}u=_.vh().resolve(_.sz);!R&&f.hasNavigated&&((R=u.getCurrentPage())?R.is==="ytd-shorts"||f.tabGesturesIsActive||f.setPageOffsetForNavigation(R,0):_.Ih(Error("Yk")));_.P2(function(){_.P2(function(){_.JH("pda")})})};
bY.prototype.onYtNavigate=function(f){if(!f.detail.endpoint){var R=new _.ts("Error: Missing yt-navigate endpoint from target:",f.target,f.target.nodeName);_.TL(R)}if(R=_.E("cold_missing_history"))R=pK(),R.init(!1),R=!(R.browserHistory.boundHistoryReplaceState&&R.browserHistory.boundHistoryPushState);if(R){_.zf("DISABLE_WARM_LOADS",!0);R=new _.ts("Failed to initialize history manager",this.getDebugString());var u=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
u?_.Ih(R):_.TL(R)}R=f.detail.endpoint;var O,c;_.E("debug_forward_web_query_parameters")&&((O=R.commandMetadata)==null?0:(c=O.webCommandMetadata)==null?0:c.url)&&(R=JSON.parse(JSON.stringify(R)),R.commandMetadata.webCommandMetadata.url=_.BeP(R.commandMetadata.webCommandMetadata.url,window.location.search));f={type:0,command:R,form:{params:f.detail.params,tempData:f.detail.tempData||{},requestType:f.detail.type,createScreenConfig:f.detail.createScreenConfig,reload:f.detail.reload?f.detail.reload:!1,
requestForm:f.detail}};_.E("kevlar_yt_navigate_command_handler")?(O=_.vh().resolve(_.rv),f.form.skipDefaultElement=!0,O.resolveCommand(R,{form:f.form})):this.handleNavigate(f)};
bY.prototype.handleNavigate=function(f){this.hasSetScrollTopForNavigation=!1;var R=_.vh().resolve(_.mf),u=f.form||{};R.navigate(f.command,u.reload,u.params,u.tempData,u.requestType,u.createScreenConfig,u.ignoreConfirmation,u.requestForm)&&naS(this,f.command,u.tempData)};
bY.prototype.onYtPageDataFetched=function(f,R){try{_.ZFC().reset();this.data=R.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.vh().resolve(_.sz).updatePageData(this.data);var u=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);u&&Nuw(u);var O=this.get("response.responseContext.serviceTrackingParams",this.data);O&&Nuw(O);var c=
this.get("playerResponse.onResponseReceivedActions",this.data);c&&(c=iiK(this,c));c&&_.ZW(this.hostElement,c,this.hostElement);var h=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),l=this.get("response.responseContext.consistencyTokenJar",this.data);if(h||l){var K=_.W90(),q=(0,_.dq.getValues)(K.tokenJars);h&&K.replace(q,h);l&&K.replace(q,l)}}catch(F){_.TL(F)}};
var naS=function(f,R,u){try{f.onYtEndpointChangeHandler(R,u)}catch(O){_.TL(O)}};
_.X=bY.prototype;_.X.onYtEndpointChangeHandler=function(){};
_.X.setPageTitle=function(f){f=(this.pageTitle=f)?f+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+f};
_.X.onYtUpdateTitle=function(f,R){this.setPageTitle(R)};
_.X.setUnseenNotificationCount=function(f){this.unseenNotificationCount=f;this.setPageTitle(this.pageTitle)};
_.X.handleUpdateNotificationsUnseenCountAction=function(f){_.t(f,W0e)&&((f=_.t(f,W0e).unseenCount)?this.setUnseenNotificationCount(f):this.setUnseenNotificationCount(0))};
_.X.handleClearCookieAction=function(f){var R;(f=(R=_.t(f,F0z))==null?void 0:R.cookieName)&&_.hae(f)};
_.X.onYtUpdateUnseenNotificationCount=function(f,R){this.setUnseenNotificationCount(R)};
_.X.loadData=function(f){var R=this;this.loadDepsPromise.then(function(){var u=_.vh().resolve(_.Y8(_.mf));u||_.TL(Error("Zk"));if(f&&f.response){if(!f.endpoint){var O=_.G4(window.document.location.href)||"/",c="";if(O==="/"||O.startsWith("/?"))c="WEB_PAGE_TYPE_BROWSE";f.endpoint={commandMetadata:{webCommandMetadata:{url:O,webPageType:c,rootVe:3854}}}}_.hZH(u,f.endpoint,f,5,{})}else f.endpoint?u.navigate(f.endpoint):u.navigate(_.Ai);_.JA.cancelJob(R.zwiebackInitJobId);R.zwiebackInitJobId=_.JA.addLowPriorityJob(Q$m)})};
var pK=function(){return _.vh().resolve(_.Ke)};
bY.prototype.getDebugString=function(){return pK().getDebugString()};
bY.prototype.getThirdPartyManipulationSuspected=function(){return pK().getThirdPartyManipulationSuspected()};
bY.prototype.replaceState=function(f,R,u){pK().saveAndReplace(f,R,u)};
bY.prototype.saveAndPush=function(f,R,u,O){pK().saveAndPush(f,R,u,O)};
var sC5=function(f){return _.t(f.endpoint,_.$7)||_.t(f.endpoint,_.Ey)?!0:!f||isNaN(f.expirationTime)?!1:(0,_.iZ)()>f.expirationTime},Vo2=function(f,R,u){var O=f.get("response.trackingParams",u),c=_.Jj(),h=_.z4();
if(O&&c&&h&&(O=f.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",u),!O&&u.rootVe&&(O=u.rootVe),c=R?"forwardButton":"backButton",R=f.get("playerResponse.topbar.desktopTopbarRenderer."+c+".buttonRenderer.command.clickTrackingParams",f.data),f=f.get("response.topbar.desktopTopbarRenderer."+c+".buttonRenderer.command.clickTrackingParams",f.data),R=(f=R||f)?_.t4(f):void 0,f=_.wR(),c=[_.ll(u)],_.O1(f,O,R,{dataPromises:c,csnToClone:u.csn}),u.graftedVes))for(u=
_.Z(u.graftedVes),O=u.next();!O.done;O=u.next())_.c1(f,O.value)};
bY.prototype.onStoreGraftedVeAction=function(f){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(f)):_.Ih(Error("$k"))};
var iiK=function(f,R){return R.filter(function(u){for(var O in u)if(S1z[O])return f.pendingPlayerOnResponseReceivedActions.push(u),!0;return!1})};
_.Vy.Object.defineProperties(bY.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
bY.prototype.onStoreGraftedVeAction=bY.prototype.onStoreGraftedVeAction;bY.prototype.loadData=bY.prototype.loadData;bY.prototype.onYtUpdateUnseenNotificationCount=bY.prototype.onYtUpdateUnseenNotificationCount;bY.prototype.handleClearCookieAction=bY.prototype.handleClearCookieAction;bY.prototype.handleUpdateNotificationsUnseenCountAction=bY.prototype.handleUpdateNotificationsUnseenCountAction;bY.prototype.setUnseenNotificationCount=bY.prototype.setUnseenNotificationCount;
bY.prototype.onYtUpdateTitle=bY.prototype.onYtUpdateTitle;bY.prototype.setPageTitle=bY.prototype.setPageTitle;bY.prototype.onYtEndpointChangeHandler=bY.prototype.onYtEndpointChangeHandler;bY.prototype.onYtPageDataFetched=bY.prototype.onYtPageDataFetched;bY.prototype.handleNavigate=bY.prototype.handleNavigate;bY.prototype.onYtNavigate=bY.prototype.onYtNavigate;bY.prototype.onYtNavigateFinish=bY.prototype.onYtNavigateFinish;bY.prototype.onYtNavigateCache=bY.prototype.onYtNavigateCache;
bY.prototype.onYtNavigateError=bY.prototype.onYtNavigateError;bY.prototype.onYtNavigateStart=bY.prototype.onYtNavigateStart;bY.prototype.cancelPendingTasks=bY.prototype.cancelPendingTasks;bY.prototype.initHistoryManager=bY.prototype.initHistoryManager;bY.prototype.onYtHistoryLoad=bY.prototype.onYtHistoryLoad;bY.prototype.onYtHistoryPop=bY.prototype.onYtHistoryPop;bY.prototype.onYtNavigateSetPageOffset=bY.prototype.onYtNavigateSetPageOffset;bY.prototype.setPageOffset=bY.prototype.setPageOffset;
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],bY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bY.prototype,"data",void 0);_.B([_.Kf("yt-navigate-set-page-offset"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bY.prototype,"onYtNavigateSetPageOffset",null);
_.B([_.Kf("yt-history-pop"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bY.prototype,"onYtHistoryPop",null);_.B([_.Kf("yt-history-load"),_.S("design:type",Function),_.S("design:paramtypes",[Event,_.bzC]),_.S("design:returntype")],bY.prototype,"onYtHistoryLoad",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],bY.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-update-title"),_.S("design:type",Function),_.S("design:paramtypes",[Event,String]),_.S("design:returntype")],bY.prototype,"onYtUpdateTitle",null);_.B([_.Kf("yt-update-unseen-notification-count"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Number]),_.S("design:returntype")],bY.prototype,"onYtUpdateUnseenNotificationCount",null);bY=_.B([_.mt()],bY);oam.YtdAppBehavior=[_.fq.YtActionHandlerBehavior,bY.prototype];var jf=function(){var f=_.w_.apply(this,arguments)||this;f._noAccessors=!0;return f};
_.y(jf,_.w_);jf.prototype.ready=function(){var f=this;_.b(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){f.onChange_()})};
jf.prototype.dataChanged_=function(){_.b(this.hostElement).querySelector("#checkbox").checked=!1};
jf.prototype.onChange_=function(){var f=_.b(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.ul(this.hostElement,"yt-dismissal-reason-"+f,this.data.feedbackToken)};
jf.prototype.dataChanged_=jf.prototype.dataChanged_;_.B([_.I(),_.S("design:type",Object)],jf.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jf.prototype,"dataChanged_",null);jf=_.B([_.mt()],jf);var riX=[jf.prototype];var D_=function(){var f=_.w_.apply(this,arguments)||this;f.timeoutJobId=0;f.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return f};
_.y(D_,_.w_);D_.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
D_.prototype.startTimeout=function(){var f=this,R=this.data&&this.data.displayDurationSeconds;R&&!this.timeoutJobId&&(this.timeoutJobId=_.dJ(_.JA,function(){_.OJ(f.hostElement,"yt-close-popup-action",[f.is]);f.timeoutJobId=0},R*1E3))};
D_.prototype.cancelTimeout=function(){_.JA.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
D_.prototype.ytdHatsSurveyBehaviorDataChanged=D_.prototype.ytdHatsSurveyBehaviorDataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],D_.prototype,"ytActionHandlerBehavior",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],D_.prototype,"ytdHatsSurveyBehaviorDataChanged",null);D_=_.B([_.mt()],D_);var fXm=[_.fq.YtActionHandlerBehavior,D_.prototype];var R7l=function(f,R){return f.SHARED_RENDERERS_.hasOwnProperty(R)?"yt":f.prefix},J7={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}};J7.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.E("kevlar_mealbar_above_player"),modern:_.E("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
J7.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};J7.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};J7.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
J7.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)"}};
J7.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};
J7.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};
J7.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};
J7.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};J7.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"}};
J7.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};J7.TOAST={component:null,properties:{}};var us2=new function(f,R,u){this.supportedPopups=f;this.navigationEndpointPopupMap=R;this.popupTypeMap=u;this.supportedPopups=f;this.navigationEndpointPopupMap=R;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:_.E("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"}),Okl=new function(){this.prefix="ytd";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$17645_popupConfig=J7;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 cC2=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.bg.getInstance()},zu=function(f,R){var u=f.pageNameToElement.get(R);
if(!u){switch(R){case "watch":var O=_.E("web_watch_force_learning_journey_for_testing")?_.Yd("ytd-watch-learning-journey"):_.E("kevlar_watch_fixie")?_.Yd("ytd-watch-fixie"):_.E("kevlar_watch_grid")?_.Yd("ytd-watch-grid"):_.Yd("ytd-watch-flexy");break;case "learning_journey_watch":O=_.Yd("ytd-watch-learning-journey");break;case "shorts":O=_.Yd("ytd-shorts");break;case "search":O=_.Yd("ytd-search");break;case "channel":O=_.Yd("ytd-browse");O.pageSubtype="channels";break;case "trending":O=_.Yd("ytd-browse");
O.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":O=
_.Yd("ytd-browse");O.pageSubtype=R;break;case "browse":O=_.Yd("ytd-browse");break;default:_.Ih(new _.ts("Error getting page element for type",R))}u=O;f.pageNameToElement.set(R,u)}return u};
cC2.prototype.preparePage=function(f,R,u){u&&(f=_.Fr(u)||f);if(f!=="watch"){var O=this.elementPoolPopulator,c=f;c!=O.targetPage_&&O.pendingPages_.indexOf(c)>-1&&(O.targetPage_&&(O.pendingPages_.unshift(O.targetPage_),O.abort()),Zfh(O,c),_.Ndl(O,c))}if((O=zu(this,f))||!_.t(u,_.oh)){O.isAttached||O===R||(O.hidden=!0);if(!(O.data||f==="watch"&&_.E("swatcheroo_page_pool_dont_provide_filler_data"))){var h;if(f=(h=_.Tf("FILLER_DATA",{})[f])==null?void 0:h.response)O.data=f}return O}};var XTm=function(f){this.JSC$28446_clientRoot=f;this.playlistHandlerActionMap={"yt-add-to-playlist-command":j$K,"yt-end-playlist-command":DsS,"yt-recover-playlist-command":za9,"yt-refresh-playlist-command":Iv5,"yt-playlist-remove-videos-action":Tue};_.SV(_.xN.getInstance(),this.playlistHandlerActionMap,this.JSC$28446_clientRoot);Q4N()},h7m;var Tu=function(f,R,u){this.apiKey=f;this.endpoint=R;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=R==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||R==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
R==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||R==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new f2S};
_.X=Tu.prototype;
_.X.start=function(f){if(this.state===0)if(this.isOnline()){f.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=f.supportsHttpHeadersOverwriteParam);f.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=f.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.DW("voice_assistant");_.zT("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=f.languageCode||"en-US";this.supportsCrossDomainXhr=f.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=f.youtubeAssistantRequest||null;this.listeningHandler=f.listeningHandler||this.listeningHandler;this.audioDetectedHandler=f.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=f.stopHandler||this.stopHandler;this.completeHandler=f.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=f.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=f.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
f.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=f.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=f.accessToken;this.additionalHeaders=f.additionalHeaders||{};var R;this.prefetchResponseTimeoutMs=(R=f.prefetchResponseTimeoutMs)!=null?R:this.prefetchResponseTimeoutMs;ZkX(this);this.startAudio();lXN(this)}else this.errorHandler("OFFLINE")};
_.X.stop=function(f){var R=f===void 0?{}:f;f=R.logCancel===void 0?!0:R.logCancel;var u=R.logMicClosed===void 0?!0:R.logMicClosed;var O=R.handleError===void 0?!0:R.handleError;R=R.handleStop===void 0?!0:R.handleStop;this.state!==0&&(f&&Hk("voz_cx"),Id(this,{logMicClosed:u,handleStop:R}),O&&this.errorHandler("ABORTED"))};
_.X.getState=function(){return this.state};
_.X.isSupported=function(){return!0};
_.X.stopAudio=function(f){(f===void 0||f)&&Hk("voz_mf")};
_.X.startAudio=function(){Hk("voz_vp");return _.ll(null)};
var kMz=function(f,R){f.channelOpen&&(f.state!==2&&(f.state=2,Hk("voz_ss"),f.listeningHandler()),R=new Uint8Array(R),R='{ "audioIn": "'+_.fE(R)+'" }',f.channel.send(R))},Id=function(f,R){var u=R===void 0?{}:R;
R=u.logMicClosed===void 0?!0:u.logMicClosed;u=u.handleStop===void 0?!0:u.handleStop;f.vozEndOfDataTimeout>-1&&(clearTimeout(f.vozEndOfDataTimeout),f.vozEndOfDataTimeout=-1);Kfz(f);f.stopAudio(R);f.channel&&(f.channelOpen=!1,f.manuallyClosedChannel=!0,f.channel.close(),f.channel=void 0);f.transcribedSpeechResults=[];f.state=0;u&&f.stopHandler()},ZkX=function(f){var R={httpHeadersOverwriteParam:f.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},f.additionalHeaders,f.accessToken&&f.isUsingVoz?{Authorization:"Bearer "+f.accessToken}:{"x-goog-api-key":f.apiKey}),supportsCrossDomainXhr:f.supportsCrossDomainXhr};f.channel=new HE(f.endpoint,R);f.channel.open();_.y0(f.channel,"w",function(){var u=f.channel,O=u.send,c=f.isUsingVoz?"PLACEHOLDER":"example";c={config:{dialogStateIn:{languageCode:f.languageCode},deviceConfig:{deviceId:c,deviceModelId:c},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!f.isUsingVoz)c.config.requestType=4;else if(f.isUsingVoz&&f.youtubeAssistantRequest){var h=JSON.stringify(f.youtubeAssistantRequest);c.config.internalIn={youtubeAssistantS3InputJson:h}}O.call(u,c);f.channelOpen=!0;f.manuallyClosedChannel=!1});
_.y0(f.channel,"x",function(){f.manuallyClosedChannel||(f.channelOpen=!1,f.channel=void 0,Id(f))});
_.y0(f.channel,"z",function(u){if(u.data){Kfz(f);for(var O=0;O<u.data.length;O++){var c=f,h=u.data[O],l=h.speechResults;if(l)a:{var K=[];h=[];var q=!1;l=_.Z(l);for(var F=l.next();!F.done;F=l.next()){F=F.value;if(F.noSpeech){Id(c);c.errorHandler("NO_SPEECH");break a}F.transcript!==void 0&&F.stability!==void 0&&(F.stability<c.confidenceThreshold&&(q=!0),q?h.push(F.transcript):K.push(F.transcript))}if(K.length!==0||h.length!==0)K=K.join(" "),h=h.join(" "),c.receivedEndOfUtterance&&!c.isUsingVoz?c.isUsingVoz||
c.completeHandler([K,h]):(q=c,l=K,F=h,Hk("voz_sf"),q.transcriptionUpdateHandler(l,F),q.transcribedSpeechResults=[l,F]),c.receivedEndOfUtterance&&(Hk("voz_eou"),c.transcriptionCompleteHandler([K,h]),c.isUsingVoz&&(c.prefetchResponseTimeoutMs===0?Id(c,{logMicClosed:!1,handleStop:!0}):c.prefetchResponseTimeoutMs>0&&qqt(c)))}else c.isUsingVoz&&(h==null?0:h.internalOut)?(h=JSON.parse(h.internalOut.youtubeAssistantS3OutputJson),h.userHasOptedInToVaa||h.vaaConsent?c.vaaConsentUpdateHandler(!!h.userHasOptedInToVaa,
!!h.vaaConsent):(ACl(c),h&&(K=c.transcribedSpeechResults,Hk("voz_rqf"),c.completeHandler(K,h)))):h.eventType==="END_OF_UTTERANCE"?c.receivedEndOfUtterance=!0:(Hk("voz_err"),c.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Ih(Error("al")))}}});
_.y0(f.channel,"y",function(u){Id(f);switch(u.status){case 1:u="WEBCHANNEL_NETWORK_ERROR";break;case 2:u="WEBCHANNEL_SERVER_ERROR";break;default:u="WEBCHANNEL_UNKNOWN_ERROR"}f.errorHandler(u);f.logError(Error(u))})};
Tu.prototype.logError=function(f){_.TL(f)};
Tu.prototype.isOnline=function(){return!0};
var qqt=function(f){ACl(f);f.prefetchResponseSetTimeoutId=setTimeout(function(){Id(f,{logMicClosed:!1,handleStop:!0})},f.prefetchResponseTimeoutMs)},ACl=function(f){f.prefetchResponseSetTimeoutId>-1&&(clearTimeout(f.prefetchResponseSetTimeoutId),f.prefetchResponseSetTimeoutId=-1)},lXN=function(f){Kfz(f);
f.noResponseReceivedTimeout=window.setTimeout(function(){Id(f);f.errorHandler("NO_SPEECH")},11E3)},Kfz=function(f){f.noResponseReceivedTimeout>-1&&(window.clearTimeout(f.noResponseReceivedTimeout),f.noResponseReceivedTimeout=-1)},Hk=function(f){_.JH(f,void 0,"voice_assistant")};var M4=function(){Tu.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.y(M4,Tu);M4.prototype.isSupported=function(){return MdS()};
M4.prototype.startAudio=function(){var f=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.NO(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(O){aXw(f,O)};
this.processor.connect(this.audioContext.destination);var R=function(O){f.stream=O;if(!f.audioContext)return _.ll(null);O=f.audioContext.createMediaStreamSource(O);f.processor&&O.connect(f.processor);return _.ll(null)},u={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?R(this.stream):navigator.mediaDevices.getUserMedia(u).then(R).catch(function(O){Id(f);O.name&&O.name==="NotAllowedError"?f.errorHandler("NO_MICROPHONE_PERMISSION"):(f.errorHandler("AUDIO_ERROR"),f.logError(O));return _.NO(null)});
return Tu.prototype.startAudio.call(this)};
M4.prototype.stopAudio=function(f){f=f===void 0?!0:f;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(R){R.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Tu.prototype.stopAudio.call(this,f)};
M4.prototype.isOnline=function(){return navigator.onLine};
var aXw=function(f,R){if(f.audioContext)if(window.OfflineAudioContext){var u=f.audioContext.sampleRate,O=R.inputBuffer.getChannelData(0);R=new window.OfflineAudioContext(1,O.length,16E3);for(var c=R.createBuffer(1,O.length,u),h=c.getChannelData(0),l=0,K=0;K<O.length;K++)h[K]=O[K],l+=h[K]*h[K];!f.audioDetected&&Math.sqrt(l/O.length)>.01&&(f.audioDetected=!0,f.audioDetectedHandler());O=R.createBufferSource();O.buffer=c;O.connect(R.destination);O.start(0);R.oncomplete=function(q){q=q.renderedBuffer.getChannelData(0);
for(var F=Math.floor(16384E3/u),w=new Int16Array(F),m=0;m<F;++m)w[m]=Math.max(-1,Math.min(1,q[m]))*32767;kMz(f,w.buffer)};
R.startRendering()}else Ffw(f,R)},Ffw=function(f,R){var u=f.audioContext.sampleRate,O=R.inputBuffer.getChannelData(0),c=Math.floor((u+8E3)/16E3);
u=O.length/c;R=new Float32Array(u);for(var h=0;h<u;++h)R[h]=O[h*c];O=new Int16Array(u);for(c=0;c<u;++c)O[c]=Math.max(-1,Math.min(1,R[c]))*32767;kMz(f,O.buffer)};var wTK={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var m7w=function(){this.JSC$17710_audioEnabled=!0;this.audioFeedbackHolder={}};
m7w.prototype.isPlaying=function(f){return f.currentTime>0&&!f.paused&&!f.ended&&f.readyState>2};
var Qr5=function(f){for(var R=_.Z(Object.values(wTK)),u=R.next();!u.done;u=R.next())u=u.value,f.audioFeedbackHolder[u]=new Audio,f.audioFeedbackHolder[u].src="/s/search/audio/"+u+".mp3",f.audioFeedbackHolder[u].load()},Pk=function(f,R){if(f.JSC$17710_audioEnabled!==!1&&R in f.audioFeedbackHolder){for(var u=_.Z(Object.values(f.audioFeedbackHolder)),O=u.next();!O.done;O=u.next())O=O.value,f.isPlaying(O)&&O.pause();
f.audioFeedbackHolder[R].currentTime=0;f.audioFeedbackHolder[R].play().catch(function(){})}};var Wf2=function(f,R){var u=this;this.store=f;this.service=R;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 m7w;var O;(O=this.audioPlayer)==null||Qr5(O)};
_.X=Wf2.prototype;_.X.getService=function(){return this.service};
_.X.isEnabled=function(){return!!this.service};
_.X.isSupported=function(){var f;return(f=this.service)==null?void 0:f.isSupported()};
_.X.start=function(){var f=this,R,u,O,c,h,l,K,q,F,w,m,W,C;return _.k(function(d){switch(d.nextAddress){case 1:f.store.dispatch(tQ9("",""));if(!navigator.onLine)return f.setState("offline"),d.return();window.addEventListener("offline",f.handleOfflineEvent);f.stream=null;if(!f.permissionsSupported){d.jumpTo(2);break}_.cl(d,3);return _.A(d,Ed9(f),5);case 5:R=d.yieldResult;if(!R)return(u=f.audioPlayer)==null||Pk(u,"failure"),d.return();f.service.stream=f.stream;f.setState("listening");_.Bf(d,2);break;
case 3:_.ku(d),f.permissionsSupported=!1;case 2:O={context:_.aW7(_.fB())},O.youtubeAssistantParams={searchParams:{inlineSearchResponse:f.enableInlineSearchResponse}},c=function(p,J){f.store.dispatch(CiX("transcribing"));f.store.dispatch(tQ9(p,J))},h=function(){var p;
(p=f.audioPlayer)==null||Pk(p,"open");f.setState("listening")},l=function(){f.setState("transcribing")},K=function(p){f.setErrorState(p)},q=function(p,J){var M;
(M=f.audioPlayer)==null||Pk(M,"success");J&&(_.E("kevlar_voice_search_inline_search")&&(f.responseProcessor=_.vh().resolve(_.fbe),f.responseProcessor&&(M=J.navigationAction,p=J.prefetchedSearchResponse,M&&p&&(M=(new _.ypI).JSC$11001_getStoreKey(M),_.Ga(f.responseProcessor,p,M)))),f.JSC$17728_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",J))},F=function(){window.removeEventListener("offline",f.handleOfflineEvent)},w=_.yH7(!1),m=w.Authorization!=null,W=f.enableFirstPartyAuth||
f.enableFPAForSignedInUsers&&m?w:{"X-Goog-Visitor-Id":w["X-Goog-Visitor-Id"]},C={completeHandler:q,
errorHandler:K,listeningHandler:h,audioDetectedHandler:l,stopHandler:F,transcriptionUpdateHandler:c,youtubeAssistantRequest:O,languageCode:tGm(),additionalHeaders:W,supportsCrossDomainXhr:f.enableFirstPartyAuth||f.enableFPAForSignedInUsers&&m,supportsHttpHeadersOverwriteParam:!f.disableHttpHeadersOverwrite},f.service.start(C),_.KG(d)}})};
_.X.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.X.reset=function(){this.store.dispatch(_.OP({type:"RESET_VOICE_SEARCH_STATE"}))};
_.X.setState=function(f){this.store.dispatch(CiX(f))};
_.X.setErrorState=function(f){switch(f){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var R;(R=this.audioPlayer)==null||Pk(R,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Ed9(this);else{var u;(u=this.audioPlayer)==null||Pk(u,"failure");this.setState("permission-denied")}break;case "ABORTED":var O;(O=this.audioPlayer)==null||Pk(O,"no_input");break;default:var c;(c=this.audioPlayer)==
null||Pk(c,"no_input");this.setState("timeout")}};
var Ed9=function(f){var R,u;return _.k(function(O){switch(O.nextAddress){case 1:return _.A(O,navigator.permissions.query({name:"microphone"}),2);case 2:R=O.yieldResult;if(R.state==="granted")return O.return(!0);if(R.state==="denied")return f.setState("permission-denied"),O.return(!1);f.setState("permission");u={audio:{sampleSize:16,channelCount:1},video:!1};_.cl(O,3);return _.A(O,navigator.mediaDevices.getUserMedia(u),5);case 5:return f.stream=O.yieldResult,O.return(!0);case 3:return _.ku(O),f.setState("permission-denied"),
O.return(!1)}})},tGm=function(){var f=_.Tf("INNERTUBE_CONTEXT_HL"),R=_.Tf("INNERTUBE_CONTEXT_GL");
return f.indexOf("-")>-1?f:f+"-"+R};var CUm=function(f,R,u){Wf2.call(this,R,u);this.JSC$17728_actionRouter=f;this.enableInlineSearchResponse=_.E("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.E("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.E("kevlar_voice_search_enable_fpa_signedin_users")},yC5;
_.y(CUm,Wf2);
var d7K=function(){if(!yC5){var f="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.E("kevlar_voice_search_auth_enabled")||_.E("kevlar_voice_search_use_yt_endpoint")?f="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.E("kevlar_voice_search_use_fp_endpoint")&&(f="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");yC5=
new CUm(_.xN.getInstance(),_.sP(),new M4(_.Tf("VOZ_API_KEY"),f,.5))}return yC5};var Njm=function(f){this.JSC$17732_clientRoot=f;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17732_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)]]));f=_.Z(this.eventListeners);for(var R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;u=_.Z(u);for(var O=u.next();!O.done;O=u.next()){var c=
_.Z(O.value);O=c.next().value;c=c.next().value;R.addEventListener(O,c)}}_.SV(_.xN.getInstance(),this.autonavPauseActionMap,this.JSC$17732_clientRoot)},LfK,bk9=function(f){return _.E("kevlar_autonav_popup_filtering")?(f=_.gY(f))?f.hasAttribute("prevent-autonav"):!0:!0};
_.X=Njm.prototype;_.X.onIronOverlayOpened=function(f){bk9(f)&&(this.autonavPauseReasons.overlayOpen=!0,U4(this))};
_.X.onIronOverlayClosed=function(f){bk9(f)&&(this.autonavPauseReasons.overlayOpen=!1,U4(this))};
_.X.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;U4(this)};
_.X.onYtAutonavPauseBlur=function(){var f=this;_.JA.addJob(function(){f.isInBackground()||(f.autonavPauseReasons.inputBoxFocus=!1,U4(f))},8,0)};
_.X.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;U4(this)};
_.X.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;U4(this)};
_.X.onYtAutonavPauseScroll=function(){var f=_.vh().resolve(_.sz);f.isOnWatch()&&(f=f.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=f.getBoundingClientRect().top<-200,U4(this))};
_.X.onYtAutonavPauseUserEngagement=function(f){var R=this;if(_.E("user_engagement_enable_autoplay_pause_feature")){var u=Number(f.lowEngagementThresholdMs);isNaN(u)||u<=0||f.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.vh().resolve(_.LL),_.OW()<u?_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.whl()?(this.userEngagementCsn=_.z4(),_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
R.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,U4(this)):_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.bUt(Error("bl`"+JSON.stringify(f)))};
_.X.onYtAutonavPausePlayer=function(f){this.autonavPauseReasons.requestedByPlayer=!!f.detail;U4(this)};
_.X.onYtAutonavVisibilityChanged=function(){var f=this,R,u,O;return _.k(function(c){if(c.nextAddress==1)return(R=_.Vm())?_.A(c,R.getPlayerPromise(),2):c.return();u=c.yieldResult;O=u.isMuted()||u.getVolume()===0;f.autonavPauseReasons.backgroundAndMute=f.isInBackground()&&O;U4(f);_.KG(c)})};
_.X.onYtAutonavPausePlayerEnded=function(){_.vh().resolve(_.LL);var f=144E5;_.E("user_engagement_enable_autoplay_pause_feature")||_.E("is_part_of_any_user_engagement_experiment")||(f=45E5);this.autonavPauseReasons.longIdle=_.OW()>f;pT5(this);U4(this)};
_.X.onYtUserActivity=function(){var f=this;this.autonavPauseReasons.userEngagement&&(_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",f.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,U4(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",f.userEngagementCsn);_.zL()}),this.autonavPauseReasons.youthereLactExperiment=!1,U4(this));
this.autonavPauseReasons.longIdle&&!_.E("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,U4(this))};
_.X.isInBackground=function(){var f=window.document.visibilityState;return!(!f||f==="visible")};
var U4=function(f){for(var R=!1,u=_.Z(Object.values(f.autonavPauseReasons)),O=u.next();!O.done;O=u.next())O=O.value,R=R||O;R?_.sd.getInstance().pause(f.autonavPauseReasons):(f=_.sd.getInstance(),f.autonavState_==3?(f.setState(2,!1,!1),f.autonavPauseReason_=void 0):f.autonavState_==1&&(f.disabledAutonavPauseReason_=void 0))},pT5=function(f){var R=!1;
if(_.E("enable_autoplay_pause_by_lact")){_.vh().resolve(_.LL);R=_.RV("autoplay_pause_by_lact_sec")*1E3;var u=_.RV("autoplay_pause_by_lact_sampling_fraction");(R=_.OW()>=R&&Math.random()<u)&&!_.whl()&&(_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),R=!1)}R!==f.autonavPauseReasons.youthereLactExperiment&&(f.autonavPauseReasons.youthereLactExperiment=R)&&(f.userEngagementCsn=_.z4(),_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",f.userEngagementCsn)}));
f.autonavPauseReasons.userEngagement&&_.dJ(_.JA,function(){_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",f.userEngagementCsn)})};
Njm.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.gM("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.zL(),this.autonavPauseReasons.youthereLactExperiment=!1,U4(this));this.autonavPauseReasons.userEngagement&&(_.gM("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,U4(this))};
Njm.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var ef=function(){var f=_.U.apply(this,arguments)||this;f.miniGuideVisible=!1;f.guideOpened=_.E("disable_initial_guide_state_fix")?!1:f.canFitPersistentGuide(f.initialBodyClientWidth);f.guideUserStateOpened=f.getInitialGuideUserStateOpened();f.isFullscreenShorts=!1;f.miniGuideWidthThreshold=_.RV("kevlar_mini_guide_width_threshold",791);f.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");f.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
f.persistentGuideBlockedPagePathRegex=new RegExp(f.persistentGuideBlockedPagesPatterns.join("|"));f.animationTransitionDuration=0;f.lateDataResolver=_.BM();f.initialGuideDataFetchFailed=!1;f.initialLoad=!0;f.guideRenderers=new Set;f.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return f};
_.y(ef,_.U);_.X=ef.prototype;_.X.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.X.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.X.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.X.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.X.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.X.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.X.ready=function(){_.vh().addProvider({provide:_.PX,useValue:this.hostElement})};
_.X.attached=function(){var f=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ks(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ks(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ks(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ks(this,this.onYtGuideShow));_.su(this,function(){f.animationTransitionDuration=200})};
_.X.detached=function(){document.removeEventListener("yt-navigate-finish",_.ks(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ks(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ks(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ks(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ks(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ks(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ks(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.X.getData=function(){return this.data};
_.X.load=function(){var f=this,R,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=f.lateDataResolver.resolve.bind(f),h.return(f.lateDataResolver.promise);if(window.ytInitialGuideData)return R=_.BM(),R.resolve(window.ytInitialGuideData),h.return(R.promise);O=!1;_.cl(h,2);return _.A(h,f.fetchGuideData(),4);case 4:u=h.yieldResult;_.Bf(h,3);break;case 2:c=_.ku(h),c.message==="Returned error"&&(O=!0);
case 3:if(u)return h.return(u);f.onYtGuideClose();O||(f.initialGuideDataFetchFailed=!0);return h.return(f.lateDataResolver.promise)}})};
_.X.fetchGuideData=function(){var f=this,R,u,O,c,h,l,K;return _.k(function(q){if(q.nextAddress==1)return R=_.vh(),f.guidePromise||(u=R.resolve(_.JN),f.guidePromise=_.e6(u,TY9)),_.A(q,f.guidePromise,2);if(q.nextAddress!=3)return O=q.yieldResult,c=R.resolve(_.oe),_.A(q,c(),3);(h=q.yieldResult)&&((l=O)==null?void 0:(K=l.responseContext)==null?void 0:K.maxAgeSeconds)!==0&&h.put("service:guide:fallback",new _.hU({innertubeResponse:O}));return q.return(O)})};
_.X.initializeGuideDataIfEmpty=function(){var f=this,R,u;return _.k(function(O){if(O.nextAddress==1){if(!f.initialGuideDataFetchFailed||f.data)return O.return();_.cl(O,2);return _.A(O,f.fetchGuideData(),4)}if(O.nextAddress!=2)return(R=O.yieldResult)&&f.lateDataResolver.resolve(R),_.Bf(O,0);u=_.ku(O);_.Ih(u);_.KG(O)})};
_.X.initializeGuideData=function(){var f=this,R;return _.k(function(u){switch(u.nextAddress){case 1:return _.qS(v8t(),{mainAppWeb:_.BL()}),_.cl(u,2),_.A(u,f.load(),4);case 4:f.data=u.yieldResult;_.Bf(u,3);break;case 2:_.ku(u),_.Ad(v8t(),"FAILURE");case 3:R=f.data&&f.data.items&&f.data.items.length>0?"SUCCESS":"FAILURE",_.Ad(v8t(),R),_.KG(u)}})};
_.X.setGuideData=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1)return R.disabled?c.return():R.data?(f.data=R.data,R.guideRenderers.add(f),c.return()):_.A(c,R.initializeGuideData(),2);R.graftGuideToPage();u=_.Hh("IS_HOMEPAGE_COLD")?"eop":void 0;_.E("disable_element_pool_populator")?R.setGuideDataAfterInit(f):(O=new _.vT(1,u),_.iU(O,R.setGuideDataAfterInit.bind(R,f)));_.KG(c)})};
_.X.setGuideDataAfterInit=function(f){f.data=this.data;f.markDirty();this.guideRenderers.add(f);_.P2(function(){_.JH("gle")});
_.su(this,function(){_.JH("gpe")})};
_.X.graftGuideToPage=function(){if(this.data){var f=this.data&&this.data.trackingParams;f&&(f=_.t4(f),_.Xl(_.wR(),f))}};
_.X.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ks(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.X.onDrawerOpenedChanged=function(f,R){!R.value&&this.guideOpened&&(this.guideOpened=!1)};
_.X.onYtGuideToggle=function(f){var R=this.guideOpened;this.guideOpened=!R;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var u=_.Qu();_.W_(0,109,!this.guideUserStateOpened);u.save()}this.updateGuideDrawerElementState();if(this.guideElement){var O;this.guideOpened&&((O=f.detail)==null?0:O.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ks(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.ks(this,
this.onAppDrawerTransitioned))}R||this.initializeGuideDataIfEmpty()};
_.X.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ks(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.YM(this.guideElement)};
_.X.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ks(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Wit(this.guideOpened))};
_.X.guidePersistentAndVisibleChanged=function(){_.c_(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.X.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.OP({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.X.miniGuideVisibleChanged=function(){_.c_(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.X.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Wit(this.guideOpened)),this.initialLoad=!1);_.c_(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.X.activeEndpointChanged=function(){_.c_(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.X.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.X.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()};
_.X.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var f=this.canFitPersistentGuide(this.cachedClientWidth);f?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=f}this.updateGuideDrawerElementState()};
_.X.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.X.getGuideOpened=function(){return this.guideOpened};
_.X.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.X.getActiveEndpoint=function(){return this.activeEndpoint};
_.X.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.X.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&&_.ul(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.X.computeGuidePersistentAndVisible=function(){var f=this;_.UU(this,"computeGuidePersistentAndVisible",function(){f.guidePersistentAndVisible=f.guideOpened&&f.guidePersistent;f.guideIsVisibleButNotPersistent=!(!f.guideOpened||f.guidePersistent)})};
_.X.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.X.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.X.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.X.startLoadingWatch=function(){this.closeGuide()};
_.X.startLoadingShorts=function(){_.E("web_hide_guide_on_shorts")&&this.closeGuide()};
_.X.onYtNavigateFinish=function(f,R){if(!_.O0||R){this.activeEndpoint=R.endpoint;this.pageType=R.pageType;this.pageUrl=R.response.url;var u,O;f=(O=_.t((u=R.endpoint)==null?void 0:u.commandMetadata,_.vc))==null?void 0:O.url;!this.pageUrl&&f&&(this.pageUrl=f);_.E("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.X.getVisibleGuideRenderer=function(){for(var f=_.Z(this.guideRenderers),R=f.next();!R.done;R=f.next())if(R=R.value,this.miniGuideVisible&&R.is==="ytd-mini-guide-renderer"||this.guideOpened&&R.is==="ytd-guide-renderer")return R;return null};
_.X.markGuideRendererDirty=function(f){if(f){typeof f.markDirty==="function"&&f.markDirty();f=_.Z([].concat(_.yq(_.b(f).children)));for(var R=f.next();!R.done;R=f.next())this.markGuideRendererDirty(R.value)}};
_.X.persistentGuideEnabled=function(f,R){if(!R||f==="watch"||f==="settings"||f==="shorts"&&this.isFullscreenShorts||_.E("reels_web_disable_persistent_guide_shorts")&&f==="shorts")return!1;var u=_.Kt(R)||"";return _.E("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(O){return u===O}):!this.persistentGuideBlockedPagePathRegex.test(u)};
_.X.canFitPersistentGuide=function(f){var R=_.RV("kevlar_persistent_guide_width_threshold",1312);return R===-1||_.E("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:f>R};
_.X.canFitMiniGuide=function(f){return this.miniGuideWidthThreshold===-1?!1:f>this.miniGuideWidthThreshold};
_.X.onResize=function(){var f=this;_.UU(this,"calculateGuideState",function(){f.onResizeDebounced()})};
_.X.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.X.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.X.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.X.getInitialGuideUserStateOpened=function(){return!_.Qu().getFlag(109)};
_.Vy.Object.defineProperties(ef.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Tf("initialBodyClientWidth")||window.innerWidth}}});
ef.prototype.onResize=ef.prototype.onResize;ef.prototype.observeForMiniGuideVisible=ef.prototype.observeForMiniGuideVisible;ef.prototype.computeGuidePersistentAndVisible=ef.prototype.computeGuidePersistentAndVisible;ef.prototype.cachedClientWidthChanged=ef.prototype.cachedClientWidthChanged;ef.prototype.resetGuide=ef.prototype.resetGuide;ef.prototype.activeEndpointChanged=ef.prototype.activeEndpointChanged;ef.prototype.guideOpenedChanged=ef.prototype.guideOpenedChanged;
ef.prototype.miniGuideVisibleChanged=ef.prototype.miniGuideVisibleChanged;ef.prototype.guideIsVisibleButNotPersistentChanged=ef.prototype.guideIsVisibleButNotPersistentChanged;ef.prototype.guidePersistentAndVisibleChanged=ef.prototype.guidePersistentAndVisibleChanged;ef.prototype.onGuideElementChanged=ef.prototype.onGuideElementChanged;ef.prototype.onGuidePersistentChanged=ef.prototype.onGuidePersistentChanged;ef.prototype.onRenderGuideChanged=ef.prototype.onRenderGuideChanged;
ef.prototype.onActiveEndpointChanged=ef.prototype.onActiveEndpointChanged;ef.prototype.onMiniGuideVisibleChanged=ef.prototype.onMiniGuideVisibleChanged;ef.prototype.onGuideIsVisibleButNotPersistentChanged=ef.prototype.onGuideIsVisibleButNotPersistentChanged;ef.prototype.onGuidePersistendAndVisibleChanged=ef.prototype.onGuidePersistendAndVisibleChanged;_.B([_.z(_.Lu),_.S("design:type",Object)],ef.prototype,"ironResizableBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ef.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],ef.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ef.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],ef.prototype,"disabled",void 0);
_.B([_.I(),_.S("design:type",Boolean)],ef.prototype,"guidePersistentAndVisible",void 0);_.B([_.qM("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onGuidePersistendAndVisibleChanged",null);_.B([_.I(),_.S("design:type",Boolean)],ef.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.qM("guideIsVisibleButNotPersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.B([_.I(),_.S("design:type",Object)],ef.prototype,"miniGuideVisible",void 0);_.B([_.qM("miniGuideVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onMiniGuideVisibleChanged",null);_.B([_.I(),_.S("design:type",Boolean)],ef.prototype,"forceMiniGuideClose",void 0);
_.B([_.I(),_.S("design:type",Object)],ef.prototype,"activeEndpoint",void 0);_.B([_.qM("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onActiveEndpointChanged",null);_.B([_.I(),_.S("design:type",Boolean)],ef.prototype,"renderGuide",void 0);_.B([_.qM("renderGuide"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onRenderGuideChanged",null);
_.B([_.I(),_.S("design:type",Object)],ef.prototype,"guideOpened",void 0);_.B([_.I(),_.S("design:type",Boolean)],ef.prototype,"guidePersistent",void 0);_.B([_.qM("guidePersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onGuidePersistentChanged",null);_.B([_.I(),_.S("design:type",Object)],ef.prototype,"guideUserStateOpened",void 0);_.B([_.I(),_.S("design:type",String)],ef.prototype,"pageUrl",void 0);
_.B([_.I(),_.S("design:type",String)],ef.prototype,"pageType",void 0);_.B([_.I(),_.S("design:type",Number)],ef.prototype,"cachedClientWidth",void 0);_.B([_.I(),_.S("design:type",Object)],ef.prototype,"guideElement",void 0);_.B([_.I({selector:_.AF}),_.S("design:type",Object)],ef.prototype,"isFullscreenShorts",void 0);_.B([_.qM("guideElement"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onGuideElementChanged",null);
_.B([_.qM("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"guidePersistentAndVisibleChanged",null);_.B([_.QR("guideIsVisibleButNotPersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.B([_.qM("miniGuideVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"miniGuideVisibleChanged",null);_.B([_.QR("guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"guideOpenedChanged",null);_.B([_.qM("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"activeEndpointChanged",null);
_.B([_.QR("pageUrl"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"resetGuide",null);_.B([_.QR("cachedClientWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"cachedClientWidthChanged",null);_.B([_.qM("guideOpened","guidePersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"computeGuidePersistentAndVisible",null);
_.B([_.QR("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"observeForMiniGuideVisible",null);_.B([_.Kf("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ef.prototype,"onResize",null);ef=_.B([_.e({disableElementRegistration:!0,is:"yt-guide-manager"})],ef);var jrm=_.G(ef,"yt-guide-manager",void 0,{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var Gu=function(){var f=_.U.apply(this,arguments)||this;f.JSC$17742_keyboardInUse=!1;f.boundHandleCapturedKeydownEvent=function(R){f.handleCapturedKeydownEvent(R)};
return f};
_.y(Gu,_.U);_.X=Gu.prototype;_.X.attached=function(){this.listenToDocument(document)};
_.X.listenToDocument=function(f){f.addEventListener("keydown",_.ks(this,this.onKeyDownEvent));f.addEventListener("keyup",_.ks(this,this.onKeyUpEvent));f.addEventListener("mousedown",_.ks(this,this.onMouseDownEvent));_.E("desktop_keyboard_capture_keydown_killswitch")||f.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);f.addEventListener("yt-page-data-updated",_.ks(this,this.onPageUpdate))};
_.X.detached=function(){this.unlistenFromDocument(document)};
_.X.unlistenFromDocument=function(f){f.removeEventListener("keydown",_.ks(this,this.onKeyDownEvent));f.removeEventListener("keyup",_.ks(this,this.onKeyUpEvent));f.removeEventListener("mousedown",_.ks(this,this.onMouseDownEvent));_.E("desktop_keyboard_capture_keydown_killswitch")||f.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);f.removeEventListener("yt-page-data-updated",_.ks(this,this.onPageUpdate))};
_.X.ready=function(){_.vh().addProvider({provide:_.Oc,useValue:this})};
_.X.isKeyBoardInUse=function(){return this.JSC$17742_keyboardInUse};
_.X.handleCapturedKeydownEvent=function(f){if(f.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(f)};
_.X.onMouseDownEvent=function(){this.JSC$17742_keyboardInUse=!1};
_.X.onPageUpdate=function(){if(_.E("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.E("web_shorts_keyboard_shortcut_usage_log")){_.vx.clear();for(var f=_.Z(_.Vs),R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;u=_.dx(u);_.vx.set(R,u);_.ea(_.z4(),_.Jj(),u)}_.iF.clear();f=_.Z(_.Y2);for(R=f.next();!R.done;R=f.next())u=_.Z(R.value),R=u.next().value,u=u.next().value,u=_.dx(u),_.iF.set(R,u),_.ea(_.z4(),_.Jj(),u);_.GT(_.z4(),_.Jj(),[].concat(_.yq(_.iF.values()),
_.yq(_.vx.values())));_.op(_.z4(),[].concat(_.yq(_.iF.values()),_.yq(_.vx.values())))}};
_.X.onMiniplayerActiveChange=function(){var f;(f=_.vh().resolve(_.MS).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(f.document):this.unlistenFromDocument(f.document))};
_.X.ignoreKeyEvent=function(f){if(f.ctrlKey||f.altKey)if(_.E("kevlar_macro_markers_keyboard_shortcut")){if(f.keyCode!==37&&f.keyCode!==39)return!0}else return!0;var R=_.$S(f)||[];return _.Wwe(R)?!0:f.defaultPrevented?(Kl(f.keyCode,f.shiftKey,this.isShortsPage),!0):f.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(f):!1};
_.X.isSpacebarClick=function(f){var R=f||window.event;var u;R.composedPath&&typeof R.composedPath==="function"?u=R.composedPath():u=R.path;u&&u.length?R=u[0]:(R=R||window.event,R=R.target||R.srcElement,R.nodeType==3&&(R=R.parentNode));return R&&f.keyCode===32&&(f=R.tagName==="BUTTON"||R.tagName==="A"||R.tagName==="INPUT",R=(R=R.getAttribute("role"))&&(R==="option"||R==="button"||R.indexOf("menuitem")===0),f||R)?!0:!1};
_.X.onKeyDownEvent=function(f){if(!this.ignoreKeyEvent(f)&&(f.keyCode===191&&(f.shiftKey||f.metaKey?f.repeat!=null&&f.repeat||(this.openHotkeyDialog(),Kl(f.keyCode,f.shiftKey,this.isShortsPage)):(this.focusSearchBox(),f.preventDefault())),!f.metaKey)){var R=_.vh().resolve(_.MS);switch(f.keyCode){case 9:this.JSC$17742_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(f);break;case 84:R.pipController.getWindow()&&window.focus();this.toggleTheaterMode(f.keyCode,f.shiftKey);break;case 73:R.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(f.keyCode,f.shiftKey);break;case 70:if(this.isShortsPage&&_.E("web_fullscreen_shorts")){_.t02();break}this.isMiniplayerActive()?R.pipController.getWindow()&&(R.close(!0),window.focus()):this.passEventToPlayer(f);break;case 27:this.closeMiniplayer(f.keyCode,f.shiftKey)||this.passEventToPlayer(f);break;case 13:f.shiftKey&&_.E("web_ephemeral_actions")&&_.vh().resolve(_.kL).activate(f);break;default:this.passEventToPlayer(f)}}};
_.X.onKeyUpEvent=function(f){if(!this.ignoreKeyEvent(f))if(_.E("web_speedmaster_spacebar_control")&&f.keyCode===32)this.handlePlayerSpaceKey(f,!0);else{var R=this.getPlayerManager();R&&(R=R.getPlayer())&&R.handleGlobalKeyUp(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code)}};
_.X.getPlayerManager=function(){var f=_.Vm(),R=_.vh().resolve(_.Y8(_.sz));return f&&R&&R.isOnWatch()?f:null};
_.X.passEventToPlayer=function(f,R){var u=this,O,c,h;return _.k(function(l){if(l.nextAddress==1)return!_.E("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&u.isMiniplayerActive()?O=_.vh().resolve(_.MS).getPlayerElement():u.inlinePreviewIsActive?(c=_.c_(u.hostElement,"yt-get-inline-preview-player-action"))&&c[0]&&(O=c[0]):O=_.Vm(),O?_.A(l,O.getPlayerPromise(),3):l.jumpTo(0);h=l.yieldResult;R?h.handleGlobalKeyUp(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat):h.handleGlobalKeyDown(f.keyCode,
f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat);f.keyCode!==38&&f.keyCode!==40&&Kl(f.keyCode,f.shiftKey,u.isShortsPage);_.KG(l)})};
_.X.focusSearchBox=function(){_.ul(this.hostElement,"yt-focus-searchbox")};
_.X.openHotkeyDialog=function(){_.ul(this.hostElement,"yt-open-hotkey-dialog")};
_.X.isMiniplayerActive=function(){return _.vh().resolve(_.MS).isMiniplayerActive()};
_.X.closeMiniplayer=function(f,R){return this.isMiniplayerActive()?(_.vh().resolve(_.MS).close(),Kl(f,R,this.isShortsPage),!0):!1};
_.X.toggleTheaterMode=function(f,R){var u=_.IA(_.sP().getState()),O=this.getPlayerManager(),c=_.E("disable_theater_mode_keyboard")||_.Hh("START_IN_FULL_WINDOW_MODE");O&&!c&&(u=!u,_.iE()&&_.E("external_fullscreen")&&(u=!0),_.OJ(this.hostElement,"yt-toggle-theater-mode",[u]),Kl(f,R,this.isShortsPage))};
_.X.toggleMiniplayer=function(f,R){var u=this.getPlayerManager();if(this.isMiniplayerActive()){var O;((O=_.vh().resolve(_.Y8(_.sz)))==null?0:O.isOnWatch())?_.vh().resolve(_.MS).close(!0):_.WS(_.vh().resolve(_.MS));Kl(f,R,this.isShortsPage)}else u&&(_.OJ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Kl(f,R,this.isShortsPage))};
_.X.handlePlayerSpaceKey=function(f,R){var u=!!_.Vm()||this.isMiniplayerActive();u=_.E("disable_space_scroll_fix")||u;_.E("global_spacebar_pause")&&!this.isKeyBoardInUse()&&u&&(f.preventDefault(),this.passEventToPlayer(f,R))};
Gu.prototype.onMiniplayerActiveChange=Gu.prototype.onMiniplayerActiveChange;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Gu.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Gu.prototype,"ytdReduxBehavior",void 0);_.B([_.I({selector:_.FZD}),_.S("design:type",Boolean)],Gu.prototype,"inlinePreviewIsActive",void 0);_.B([_.I({selector:_.mWS}),_.S("design:type",Boolean)],Gu.prototype,"isShortsPage",void 0);
_.B([_.I({selector:_.Jh}),_.S("design:type",Boolean)],Gu.prototype,"miniplayerIsActive",void 0);_.B([_.qM("miniplayerIsActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gu.prototype,"onMiniplayerActiveChange",null);Gu=_.B([_.e({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Gu);_.G(Gu,"yt-hotkey-manager",void 0,{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var Bk=function(){var f=_.U.apply(this,arguments)||this;f.loopStateEntityKey_=null;f.playlistLoopStateEntity_=null;f.isShuffleNextPlaylist=!1;f.PLAYER_EVENTS_=new Map;f.playerListenersSetup_=!1;f.videoSkipJob_=0;f.canAutoAdvance_=!1;f.playerManager_=null;f.TEST_ONLY={};return f};
_.y(Bk,_.U);_.X=Bk.prototype;_.X.ready=function(){_.vh().addProvider({provide:_.Ji,useValue:this.hostElement})};
_.X.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_)};
_.X.attached=function(){document.addEventListener("yt-navigate-start",_.ks(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ks(this,this.onYtNavigateFinish_))};
_.X.detached=function(){document.removeEventListener("yt-navigate-start",_.ks(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ks(this,this.onYtNavigateFinish_))};
_.X.updatePlaylistEventListeners=function(f,R){R&&!this.playerListenersSetup_?(this.playerManager_=f,this.registerPlaylistEventListeners_(f)):!R&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(f))};
_.X.setPlayer=function(f){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=f};
_.X.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.X.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.X.registerPlaylistEventListeners_=function(f){var R=this;f.getPlayerPromise().then(function(u){R.playerListenersSetup_||(R.ytPlayerListenerBehavior.listenToPlayerEvents(u,R.PLAYER_EVENTS_),R.playerListenersSetup_=!0)})};
_.X.removePlaylistEventListeners_=function(f){var R=this;f.getPlayerPromise().then(function(u){R.playerListenersSetup_&&(R.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u,R.PLAYER_EVENTS_),R.playerListenersSetup_=!1)})};
_.X.setPlaylistComponent=function(f){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ks(this,this.onPlaylistYtNavigate_)),f&&(f.data&&this.playlistComponent.data&&f.data.playlistId==this.playlistComponent.data.playlistId?(f.loopOn=this.playlistComponent.loopOn,f.shuffleOn=this.playlistComponent.shuffleOn):(f.loopOn=!1,f.shuffleOn=!1),this.isShuffleNextPlaylist&&(f.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=f;this.playlistComponent.addEventListener("yt-navigate",
_.ks(this,this.onPlaylistYtNavigate_))};
_.X.setAutoplayRenderer=function(f){this.autoplayData=f};
_.X.setPlaylistData=function(f){this.currentPlaylistData_=f;_.ul(this.hostElement,"yt-playlist-data-updated");_.dq.isEmpty(f)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(f)};
_.X.setPlayerPlaybackControlData=function(f){this.playerManager_&&this.playerManager_.updatePlayerComponents(f.playlistPanelRenderer)};
_.X.getPlaylistData=function(){return this.currentPlaylistData_};
_.X.getTempData_=function(f,R){if(this.playlistComponent==null)return null;f={};this.playlistComponent.shuffleOn&&(f.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(f.loop_on=this.playlistComponent.loopOn);R&&(f.autonav="1",_.vh().resolve(_.LL),R=_.OW(),R>0&&(f.lact=R),this.playerManager_&&(R=this.playerManager_.getPlayer())&&R.shouldSendVisibilityState()&&(R=R.getVisibilityState(),R!=0&&(f.vis=R)));_.E("enable_unknown_lact_fix_on_html5")&&(_.vh().resolve(_.LL),f.lact=
_.OW());return f};
_.X.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.X.setLoopStateEntityKey_=function(f){var R;this.loopStateEntityKey_=((R=this.getPlaylistLoopData_(f))==null?void 0:R.playlistLoopStateEntityKey)||null};
_.X.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.X.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.X.skipVideo=function(){var f=this,R=_.E("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||R)R=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.mQ(_.JA,function(){f.onPlaylistNext();f.videoSkipJob_=0},R)};
_.X.cancelVideoSkip=function(){this.videoSkipJob_&&(_.JA.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.X.isInBackground_=function(){var f=window.document.visibilityState;return!(!f||f=="visible")};
_.X.onPlaylistIndex_=function(f){this.playlistComponent&&(f=this.playlistComponent.data.contents[f].playlistPanelVideoRenderer.navigationEndpoint,_.ul(this.hostElement,"yt-navigate",{endpoint:f,tempData:this.getTempData_(f)}))};
_.X.onPlayerStateChange_=function(f){if(f=f==0&&this.playlistComponent&&this.canAutoAdvance_)f=_.sd.getInstance(),f=!(f.autonavState_===3?f.autonavPauseReason_&&f.autonavPauseReason_.inputBoxFocus===!0:f.autonavState_===1&&f.disabledAutonavPauseReason_&&f.disabledAutonavPauseReason_.inputBoxFocus===!0);f&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.X.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.X.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.X.navigateToAutoplayWatchEndpoint_=function(f,R,u){var O=this.playlistComponent.data.currentIndex,c=this.getNumPlayableVideos_();f=="NORMAL"&&R=="autoplayVideo"&&O+1>=c&&u||!(f=this.getVideoEndpoint_(f,R))||(u=this.getTempData_(f,u),_.ul(this.hostElement,"yt-navigate",{endpoint:f,tempData:u}))};
_.X.getNumPlayableVideos_=function(){for(var f=0,R=_.Z(this.playlistComponent.data.contents||[]),u=R.next();!u.done;u=R.next())u.value.playlistPanelVideoRenderer&&(f+=1);return f};
_.X.getVideoEndpoint_=function(f,R){if(this.autoplayData&&this.autoplayData.sets)for(var u=0,O=this.autoplayData.sets.length;u<O;u++){var c=this.autoplayData.sets[u];if(c.mode==f){if(c[R])return c[R];break}}else f=new _.ts("AutoplayData is undefined in playlist manager","Mode: "+f+" endpoint: "+R),_.Ih(f)};
_.X.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.X.onPlaylistYtNavigate_=function(f){if(f.detail.endpoint){f.stopPropagation();var R=f.detail;R.tempData=this.getTempData_(f.detail.endpoint);_.ul(this.hostElement,"yt-navigate",R)}};
_.X.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.X.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.X.playlistLoopStateEntityChanged_=function(f){var R=this,u,O,c;return _.k(function(h){if(h.nextAddress==1){if(!f)return h.return();u=f.state==="PLAYLIST_LOOP_STATE_ONE";return R.playerManager_?_.A(h,R.playerManager_.getPlayerPromise(),3):h.jumpTo(2)}h.nextAddress!=2&&(O=h.yieldResult,O.setLoopVideo(u));c=f.state==="PLAYLIST_LOOP_STATE_ALL";R.playlistComponent&&(R.playlistComponent.loopOn=c);_.KG(h)})};
_.X.getPlaylistLoopData_=function(f){var R,u;if(f=f==null?void 0:(R=f.playlistButtons)==null?void 0:(u=R.menuRenderer)==null?void 0:u.topLevelButtons)for(R=_.Z(f),u=R.next();!u.done;u=R.next())if(u=u.value,u.playlistLoopButtonRenderer)return u.playlistLoopButtonRenderer};
_.X.getLoopStateCommand_=function(f){var R=this.getPlaylistData(),u;R=((u=this.getPlaylistLoopData_(R))==null?void 0:u.states)||[];var O;f=(O=_.t(R[f?1:2],_.IYf))==null?void 0:O.button;var c;return(c=_.t(f,_.z9))==null?void 0:c.command};
_.X.onPlayerLoopChange_=function(f){this.playlistLoopStateEntity_&&(f?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(f=this.getLoopStateCommand_(f))&&this.ytComponentBehavior.resolveCommand(f)};
_.X.onSleepTimerSettingsChanged_=function(f){this.canAutoAdvance_=f!=="End of video"};
Bk.prototype.onPlaylistLoopStateEntityChanged=Bk.prototype.onPlaylistLoopStateEntityChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Bk.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],Bk.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Bk.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Bk.prototype,"loopStateEntityKey_",void 0);
_.B([_.I({selectorArgs:["loopStateEntityKey_"],selector:_.p4n}),_.S("design:type",Object)],Bk.prototype,"playlistLoopStateEntity_",void 0);_.B([_.qM("playlistLoopStateEntity_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bk.prototype,"onPlaylistLoopStateEntityChanged",null);Bk=_.B([_.e({disableElementRegistration:!0,is:"yt-playlist-manager"})],Bk);_.G(Bk,"yt-playlist-manager",void 0,{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var D7a,JC5=function(){if(D7a!==void 0)return D7a;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return D7a=f};var $q=function(){var f=_.U.apply(this,arguments)||this;f.lastCallback=null;f.getAccountLinkPromises={};f.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);f.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return f};
_.y($q,_.U);_.X=$q.prototype;_.X.getLocation=function(){return window.location.href};
_.X.getCompletionUrl=function(){return _.na(this.getLocation())};
_.X.containsRedirectState=function(f){return(f=_.NS(_.hZ7(f)))?(new URLSearchParams(f)).get("redirect_state")!==null:!1};
_.X.createGalConfig=function(f,R){var u=new Gwl;f=u=R?this.getPopupOrRedirectSetting(u,_.Tf("LINK_API_KEY"),_.Tf("LINK_API_KEY_REDIRECT"),f):Bxl(u,_.Tf("LINK_API_KEY"));f.authUser=_.Tf("SESSION_INDEX")||0;f.supportedFlows=new Set([4]);return f.build()};
_.X.getPopupOrRedirectSetting=function(f,R,u,O){this.isGalInteractionPopupMode(O)?(f.interactionMode=0,f=Bxl(f,R)):(f.interactionMode=1,R=this.getCompletionUrl(),f.completionUrl=R,f=Bxl(f,u));return f};
_.X.isGalInteractionPopupMode=function(f){if(this.redirectModeProviderAllowlist.has(f))switch(f){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.E("main_web_redirect_integration_riot");default:return!1}return!0};
_.X.getStatusEntityKeyForProviderId=function(f){return _.l$(f+":all","accountLinkStatusEntity")};
_.X.findNestedPropValue=function(f,R){var u=!1,O=null;JSON.stringify(f,function(c,h){u||c!==R||(u=!0,O=h);return u?null:h});
return O};
_.X.findAccountLinkButtonViewModel=function(f,R){var u=null,O=!1;JSON.stringify(f,function(c,h){O||h.accountLinkStatusEntityKey!==R||h.accountLinkStatusSecondaryEntityKey||(O=!0,u=h);return O?null:h});
return u};
_.X.executeLinkingSuccessOrFailureCommands=function(f,R,u){var O=null,c;(R==null?0:(c=R.url)==null?0:c.includes("account_sharing"))?O=R==null?void 0:R.response:O=R==null?void 0:R.response;(R=this.findAccountLinkButtonViewModel(O,f))?(f=u?this.findNestedPropValue(R,"onSuccessCommand"):this.findNestedPropValue(R,"onFailureCommand"))?_.q5([f],this.hostElement):_.UC(Error("cl")):_.UC(Error("dl`"+f))};
_.X.handleInitializeRequest=function(f,R){var u=this,O=dB5(this.createGalConfig(f,!0));this.containsRedirectState(this.getLocation())?KYK(f,O.config,O.galService).then(function(c){var h=u.getStatusEntityKeyForProviderId(f);if(c.statusCode===1)R&&u.executeLinkingSuccessOrFailureCommands(h,R,!0),c=u.getLocation().indexOf("#"),c!==-1&&window.history.pushState(null,"",u.getLocation().substring(0,c));else return R&&u.executeLinkingSuccessOrFailureCommands(h,R,!1),Promise.reject(Error(c.statusMessage))}).catch(function(c){_.Ih(c);
_.Jr("gamingAccountLinkStatusChanged",{serviceId:f,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(c)}):this.getAccountLinkPromises[f]=O.startLinkingSession({serviceId:f})};
_.X.handleAccountLinkCommand=function(f){_.t(f,JOh)&&this.handleLinkRequest(_.t(f,JOh))};
_.X.handleLinkRequest=function(f){var R=this,u=f.thirdPartyId;if(u)if(this.isGalInteractionPopupMode(u)){var O=function(){R.closeAndFire("ytd-gaming-account-link-setting-renderer",f.onFailureCommand)},c=function(){R.closeAndFire("ytd-gaming-account-link-setting-renderer",f.onSuccessCommand)};
this.lastCallback=c;this.getAccountLinkPromises[u].then(function(h){EO5(h).then(function(l){l.statusCode===1?c():O()})}).catch(function(){O()})}else this.getAccountLinkPromises[u].then(function(h){EO5(h).then(function(l){if(l.statusCode!==1)return Promise.reject(Error(l.statusMessage))})}).catch(function(h){_.Ih(h);
_.Jr("gamingAccountLinkStatusChanged",{serviceId:u,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(h)})};
_.X.closeAndFire=function(f,R){_.OJ(this.hostElement,"yt-close-popup-action",[f]);R&&_.q5([R],this.hostElement)};
_.X.handleAccountUnlinkCommand=function(f){_.t(f,zx2)&&this.handleUnlinkRequest(_.t(f,zx2))};
_.X.handleUnlinkRequest=function(f){var R=this,u=f.thirdPartyId;if(u){var O=function(){R.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",f.onFailureCommand)},c=function(){R.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",f.onSuccessCommand)};
this.lastCallback=c;var h=dB5(this.createGalConfig(u,!1));this.unlinkUserGal(h,u).then(function(l){l.statusCode===1?c():O()}).catch(function(){O()})}};
_.X.unlinkUserGal=function(f,R){return f.deleteLink(R)};
_.X.handleLogAccountLinkingEventCommand=function(f){_.E("enable_gel_log_commands")&&_.t(f,TFN)&&(f=_.t(f,TFN).event)&&_.Jr("gamingAccountLinkStatusChanged",f)};
_.Vy.Object.defineProperties($q,{template:{configurable:!0,enumerable:!0,get:function(){return JC5()}}});
_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],$q.prototype,"ytOpenPopupBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],$q.prototype,"ytActionHandlerBehavior",void 0);$q=_.B([_.e({disableElementRegistration:!0,is:"ytd-third-party-manager"})],$q);_.G($q,"ytd-third-party-manager",function(){return JC5()},{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var z7l,Tjw=function(){return z7l!==void 0?z7l:z7l=document.createElement("template")};
document.head.appendChild(Tjw().content);var Hkw,IXe=function(){if(Hkw!==void 0)return Hkw;var f=document.createElement("template");_.N(f,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");f.content.insertBefore(Tjw().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Hkw=f};var MG2=_.Sg(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),gf=function(){var f=_.U.apply(this,arguments)||this;f.currentPage=void 0;f.renderLoadingStateJobId=0;f.updatePageDataJobId=0;f.pageDisposeJobsets=new WeakMap;f.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"};f.applyZoomTransition=_.uZ("web_page_transition_type")==="zoom";f.applySlideTransition=_.uZ("web_page_transition_type")==="slide";f.TEST_ONLY=void 0;return f};
_.y(gf,_.U);_.X=gf.prototype;_.X.ready=function(){var f=_.vh();f.addProvider({provide:_.sz,useValue:this});f.addProvider({provide:_.$yl,useValue:this})};
_.X.created=function(){this.pagePool=new cC2;this.contextSwitcher=new QCa};
_.X.attached=function(){_.ul(this.hostElement,"attached");var f=_.vh().resolve(_.Y8(_.DM));f&&(this.contextSwitcher.JSC$17566_networkService_=f);this.viewTransitionManager=_.vh().resolve(_.Y8(_.Q7));this.setupPageTransitionAnimation()};
_.X.getPageOffset=function(f){return f.getScrollTop()};
_.X.setPageOffset=function(f,R){try{f.setScrollTop(R)}catch(u){}};
_.X.setPageOffsetForNavigation=function(f,R){_.ul(this.hostElement,"yt-navigate-set-page-offset",{page:f,offset:R===void 0?0:R})};
_.X.pauseActiveContext=function(){var f=this.contextSwitcher;f.activeContext_&&f.activeContext_.pause()};
_.X.getModuleNameForType=function(f){return f==="watch"?_.E("kevlar_watch_fixie")?"watchFixie":_.E("kevlar_watch_grid")?"watchGrid":"watchFlexy":f==="shorts"||f==="search"?f:"browse"};
_.X.attachPage=function(f){var R,u=!_.E("pc_is_attached_ks")&&(f==null?void 0:(R=f.polymerController)==null?void 0:R.isAttached);if(!f.isAttached&&!u)try{_.b(this.hostElement).appendChild(f)}catch(c){var O;_.Ih(new _.ts("Error attaching page element for component",{origin:(O=this.currentPage)==null?void 0:O.is,component:f.is}))}};
_.X.setActivePage=function(f){var R=this,u=!1,O=function(){var c=R.isOnWatch(),h=R.currentPage;if(f)if(f!==R.currentPage){h&&(h.hidden=!0,h.active=!1,h.removeAttribute("role"));R.currentPage=f;var l,K=_.Fr((l=R.data)==null?void 0:l.endpoint);h&&_.ul(R.hostElement,"yt-page-type-changed",{oldPageType:h.is,newPageType:f.is,newPageSubtype:K});_.xs().dispatch(_.OP({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:f.is}));_.xs().dispatch(_.OP({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:K||""}));f.hidden=
!1;R.attachPage(f);f.active=!0;f.setAttribute("role","main");h&&R.setPageOffsetForNavigation(f,0);_.E("kevlar_remove_page_dom_on_switch")&&!c&&h&&_.b(R.hostElement).removeChild(h)}else u=!0;else c=new _.ts("Unable to set active page",h?h.is:"unknown origin",(K=R.data)==null?void 0:K.endpoint),_.TL(c)};
this.viewTransitionManager?B_w(this.viewTransitionManager,O,this.viewTransitionConfigForSetActivePage(this.currentPage,f)):O();return u};
_.X.viewTransitionConfigForSetActivePage=function(f,R){return _.E("web_thumbnail_to_watch_transition")&&(f==null?void 0:f.is)==="ytd-browse"&&this.isWatchPage(R)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(f==null?void 0:f.is)==="ytd-browse"&&(R==null?void 0:R.is)==="ytd-browse"&&f!==R?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.X.updatePageData=function(f){var R=this,u=this.data;this.updatePageDataJobId&&_.JA.cancelJob(this.updatePageDataJobId);this.data=f;return new _.ah(function(O){var c=function(){f.filler?R.performDataUpdate(f,u):X2N(function(){R.performDataUpdate(f,u)});
var q=_.TC();_.H1(q,"cr")||q.processSignal("cr");O()},h=function(){f&&f.page==="watch"?R.updatePageDataJobId=_.mQ(_.JA,c):c()};
if(_.E("kevlar_enable_mss_page_modules_client")&&f){var l=_.vh().resolve(_.UX),K=R.getModuleNameForType(f.page);(l=ept(l,[K]))?l.then(h):h()}else h()})};
_.X.isDownloadsPage=function(f){var R,u;return(f==null?void 0:(R=f.endpoint)==null?void 0:(u=R.browseEndpoint)==null?void 0:u.browseId)==="FEdownloads"};
_.X.setPlayerSyncInterval=function(f){var R;return _.k(function(u){if(u.nextAddress==1)return _.A(u,_.vh().resolve(_.fr),2);R=u.yieldResult;R.setUpPositionSyncInterval(f);_.KG(u)})};
_.X.performDataUpdate=function(f,R){_.E("kevlar_early_popup_close")||_.OJ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var u=!f.filler;u&&(_.JH("lps"),_.E("config_age_report_killswitch")||TUl());var O=rM(f),c,h=!1;if(_.E("kevlar_remove_page_dom_on_switch")){var l=R&&rM(R);O===l&&(c=this.getCurrentPage())}c||(c=zu(this.pagePool,O));u&&lOz(this.pagePool.elementPoolPopulator,O);u&&!this.renderLoadingStateJobId&&(h=this.setActivePage(c));if(c){l=O==="watch";var K=
O==="shorts",q=O==="learning_journey_watch";_.E("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(c);if(l||K||q)c.playerData=f.playerResponse;if(K){f.reelWatchSequenceResponse?c.reelWatchSequenceResponse=f.reelWatchSequenceResponse:f.cachedReelWatchSequenceResponse?c.reelWatchSequenceResponse=f.cachedReelWatchSequenceResponse:_.E("web_enable_cached_reel_sequence_fix")&&c.cachedReelWatchSequenceResponse&&!c.reelWatchSequenceResponse&&(c.reelWatchSequenceResponse=c.cachedReelWatchSequenceResponse);
c.currentEndpoint=f.endpoint;var F;c.isPreviousPageShorts=!!(R==null?0:(F=R.endpoint)==null?0:F.reelWatchEndpoint);f.cachedReelWatchSequenceResponse=f.reelWatchSequenceResponse||f.cachedReelWatchSequenceResponse||(R==null?void 0:R.cachedReelWatchSequenceResponse);c.cachedReelWatchSequenceResponse=f.cachedReelWatchSequenceResponse}F=this.isDownloadsPage(f);var w=this.isDownloadsPage(R);F&&!w?this.setPlayerSyncInterval(6E5):!F&&w&&this.setPlayerSyncInterval();_.E("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(f,c,u,l,K,q);os9(_.vh().resolve(_.MS),R,f);_.Yi(_.vh().resolve(_.LL));_.E("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(c);u?(u=typeof c.loadPage,u==="function"?(c.pageContext=Wut(this.contextSwitcher,c,c.data!==f.response),u=function(){c.loadPage(f.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&c.is==="ytd-browse"&&h&&this.isDifferentBrowseId(f==null?void 0:f.endpoint,R==null?void 0:R.endpoint)?
this.applySlideTransition?B_w(this.viewTransitionManager,u,{transitionName:"slide"}):B_w(this.viewTransitionManager,u,{transitionName:"zoom"}):u()):_.H5(new _.ts("b/38014653 ",[O,
c.is,c.nodeName,u,c.isAttached,R&&rM(R),this.hostElement.children.length])),_.JH("pdl")):(c.hidden=!0,f.response.filler=!0,c.data=f.response,this.attachPage(c));_.ul(this.hostElement,"yt-page-data-updated",{pageType:O})}_.dJ(_.JA,function(){_.E("logging_avoid_blocking_during_navigation")&&_.if7().transition("none");var m=Hih(),W=c;if(f){var C=Faz(f),d=wcw(f),p;a:{if(f.playerResponse){var J=f.playerResponse,M;if((p=J.auxiliaryUi)==null?0:(M=p.messageRenderers)==null?0:M.upsellDialogRenderer){p=J.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(f.response&&(p=f.response,(J=p.overlay)==null?0:J.upsellDialogRenderer)){p=p.overlay.upsellDialogRenderer;break a}p=void 0}var P;var g;M=(P=f.playerResponse)==null?void 0:(g=P.auxiliaryUi)==null?void 0:g.messageRenderers;P=(M==null?void 0:M.enforcementMessageViewModel)||(M==null?void 0:M.bkaEnforcementMessageViewModel);P=(P==null?void 0:P.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?P:void 0;var x;a:{if(f.response&&(g=f.response,(x=g.overlay)==null?0:x.commandWrapperPromoRenderer)){x=
g.overlay.commandWrapperPromoRenderer;break a}x=void 0}Tt9(m,C,d,p,P,x,W)}})};
_.X.preparePrefetchRequest=function(f,R,u,O,c,h){var l,K,q,F,w,m,W,C,d,p,J,M,P,g,x;return _.k(function(fh){if(fh.nextAddress==1)return!u||!(O||c||h)||_.E("kevlar_disable_background_prefetch")&&_.MW(_.SVD)()===0?fh.return():(l=_.nL(R))?_.A(fh,l.getPlayerPromise(),2):fh.return();K=fh.yieldResult;q=_.vh().resolve(_.Y8(_.DM));if(!q)return fh.return();if(c)return F=_.c9(_.wj),w2m(F,(w=f.endpoint)==null?void 0:w.reelWatchEndpoint,R.reelWatchSequenceResponse,K,q),fh.return();C=(m=f.response)==null?void 0:
(W=m.responseContext)==null?void 0:W.webResponseContextExtensionData;if(!C)return fh.return();P=(d=f.response)==null?void 0:(p=d.contents)==null?void 0:(J=p.twoColumnWatchNextResults)==null?void 0:(M=J.autoplay)==null?void 0:M.autoplay;g=_.vh().resolve(_.Ji);x=_.c9(_.wj);mM9(x,C,K,q,g,P);_.KG(fh)})};
_.X.movePlayerToWatch=function(f){var R=this,u,O;return _.k(function(c){u=zu(R.pagePool,"watch");O=u.getPlayerContainer();f.appendTo(O);_.KG(c)})};
_.X.movePlayerToShorts=function(f){var R=this,u,O,c;return _.k(function(h){u=zu(R.pagePool,"shorts");O=u.getPlayerContainer();(c=f)==null||c.appendTo(O,void 0,!0);_.KG(h)})};
_.X.getPlayerFromWatch=function(){var f=zu(this.pagePool,"watch");return _.nL(f)};
_.X.getPlayerFromShorts=function(){var f=zu(this.pagePool,"shorts");return _.nL(f)};
_.X.startLoadingWatch=function(){var f=zu(this.pagePool,"watch");this.renderLoadingStateJobId?(_.JA.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(f)};
_.X.startLoadingShorts=function(){var f=zu(this.pagePool,"shorts");this.setActivePage(f)};
_.X.startLoadingLearningJourney=function(){var f=zu(this.pagePool,"learning_journey_watch");this.setActivePage(f)};
_.X.getCurrentPage=function(){return this.currentPage};
_.X.getDestinationPageType=function(){return this.destinationPageType};
_.X.getCurrentData=function(){return this.data};
_.X.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.X.isOnShorts=function(){var f;return((f=this.currentPage)==null?void 0:f.is)==="ytd-shorts"};
_.X.isWatchPage=function(f){return!!f&&(f.is==="ytd-watch-flexy"||f.is==="ytd-watch-fixie"||f.is==="ytd-watch-grid")};
_.X.preparePage=function(f,R){var u=this,O=function(){var l=u.pagePool.preparePage(f,u.currentPage,R);l&&u.attachPage(l)},c=function(l){_.MB(l,R);
_.Ih(l)};
if(_.E("kevlar_enable_mss_page_modules_client")){var h=this.getModuleNameForType(f);if(h=ept(_.vh().resolve(_.UX),[h])){h.then(O.bind(this)).catch(c.bind(this));return}}try{O()}catch(l){c(l)}};
_.X.lazyPrepareCriticalPages=function(f,R){f=_.Fr(R)||f;_.E("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(f).then(this.maybePrepareWatchPage.bind(this,f)):this.maybePrepareWatchPage(f)};
_.X.maybePrepareWatchPage=function(f){f!=="watch"&&_.dJ(_.JA,this.preparePage.bind(this,"watch"))};
_.X.downloadPageModules=function(f){f=this.getModuleNameForType(f);var R=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);R.delete(f);var u=_.vh().resolve(_.UX);u.JSC$16301_loadModules(f);return u.JSC$16301_loadModules.apply(u,_.yq(R))};
_.X.renderPageLoadingState=function(f,R){this.preparePage(f,R);var u=zu(this.pagePool,f);u.loadingData&&(u.loadingData.endpoint=R);u.loading=!0;this.setActivePage(u);f==="watch"&&_.ul(this.hostElement,"yt-guide-close")};
_.X.prepareForNavigation=function(f,R){var u=this;if(this.currentPage&&this.data){var O=_.Fr(R)||f;this.destinationPageType=O;rM(this.data)==O&&_.ul(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(f==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.JA.cancelJob(this.renderLoadingStateJobId);_.vh().resolve(_.MS).deactivate(R);var c=this.data;this.renderLoadingStateJobId=_.Cr(_.JA,function(){if(u.data!=c){var h=zu(u.pagePool,f);u.setActivePage(h)}else u.renderPageLoadingState(f,
R);u.renderLoadingStateJobId=0},150)}};
_.X.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var f=new _.vT(1);this.currentPage.pageDisposeJobs.forEach(function(R){_.iU(f,R)});
this.pageDisposeJobsets.set(this.currentPage,f)}};
_.X.flushPageDisposeJobset=function(f){var R=this.pageDisposeJobsets.get(f);R&&(R.flushJobs(),this.pageDisposeJobsets.delete(f))};
_.X.onYtStopOldPlayer=function(f,R){R=R===void 0?!1:R;var u,O=_.Xt("kevlar_new_stop_old_player_logic_pages");if(_.E("kevlar_check_current_page_on_stop_old_player")&&(O.length===0||this.currentPage&&O.includes(this.currentPage.is)))if(this.data&&(u=rM(this.data)),rM(f)===u&&this.currentPage&&rM(this.currentPage.data)!==u)var c=_.nL(this.currentPage);else u=rM(this.data),c=zu(this.pagePool,u),c=_.nL(c);else this.data&&(u=rM(this.data),c=zu(this.pagePool,u),c=_.nL(c));if(c)if(f=rM(f),O=zu(this.pagePool,
f),O=_.nL(O),c==O)R&&!_.E("kevlar_disable_preemptive_player_reset")&&c.resetForNewPlayback();else if(R=u==="watch"&&f!=="watch",!R||f==="shorts"||_.dAi()&&!bQa(this.data)&&f!=="yts-products"&&f!="mini_app"&&f!="playables")u=_.vh().resolve(_.MS),R&&u.isMiniplayerActive()&&u.pipController.getWindow()||c.stop()};
_.X.setupPageTransitionAnimation=function(){var f=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){VU(this.viewTransitionManager,"slide",{beforeTransition:function(){f.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){f.hostElement.style.viewTransitionName=""}});
VU(this.viewTransitionManager,"zoom",{beforeTransition:function(){f.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){f.hostElement.style.viewTransitionName=""}});
var R=_.RV("web_page_transition_exit_ms"),u=_.RV("web_page_transition_wait_ms"),O=_.RV("web_page_transition_enter_ms");if(!isNaN(R)||!isNaN(u)||!isNaN(O))if(R=HQh(MG2,R,u,O))u=document.createElement("style"),u.textContent=_.Nln(R),document.head.appendChild(u)}};
_.X.isDifferentBrowseId=function(f,R){f=_.t(f,_.wY);R=_.t(R,_.wY);return(f==null?void 0:f.browseId)!==(R==null?void 0:R.browseId)};
_.Vy.Object.defineProperties(gf,{template:{configurable:!0,enumerable:!0,get:function(){return IXe()}}});
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],gf.prototype,"ytActionHandlerBehavior",void 0);gf=_.B([_.e({disableElementRegistration:!0,is:"ytd-page-manager"})],gf);_.G(gf,"ytd-page-manager",function(){return IXe()},{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var s4=function(f,R,u){u=u===void 0?!1:u;_.d9.call(this);this.draggableElement=f;this.callbacks=R;this.allowClicks=u;this.dragOccurred=!1;this.internalDragger=new _.Tt(this.draggableElement);this.dragDelay=new _.iq(this.delayedDrag.bind(this));PU9(this);this.allowClicks&&(_.I1f(this.internalDragger,5),f.addEventListener("click",_.ks(this,this.validateClick),{capture:!0}))};
_.y(s4,_.d9);var PU9=function(f){_.y0(f.internalDragger,"earlycancel",function(){f.allowClicks&&(f.dragOccurred=!1)});
_.y0(f.internalDragger,"start",function(R){var u,O;(O=(u=f.callbacks).onStartDrag)==null||O.call(u,R);!R.defaultPrevented&&f.allowClicks&&(f.dragOccurred=!0)});
_.y0(f.internalDragger,"beforedrag",function(R){R.preventDefault();f.lastOffset=new _.b_(R.clientX-f.internalDragger.startX,R.clientY-f.internalDragger.startY);f.dragDelay.start()});
_.y0(f.internalDragger,"end",function(){f.dragDelay.stop();var R,u;(u=(R=f.callbacks).onEndDrag)==null||u.call(R);f.lastOffset=void 0})};
s4.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
s4.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.ks(this,this.validateClick),{capture:!0})};
s4.prototype.validateClick=function(f){this.dragOccurred&&(this.dragOccurred=!1,f.stopPropagation(),f.preventDefault())};var nK=function(f,R){_.d9.call(this);this.JSC$17767_resizeContainer=f;this.callbacks=R;this.aspectRatio=16/9;this.JSC$17767_resizers=[];f=_.Z(this.JSC$17767_resizeContainer.children);for(R=f.next();!R.done;R=f.next())U72(this,R.value)};
_.y(nK,_.d9);nK.prototype.disposeInternal=function(){for(var f=_.Z(this.JSC$17767_resizers),R=f.next();!R.done;R=f.next())R.value.dispose();f=_.Z(this.JSC$17767_resizeContainer.children);for(R=f.next();!R.done;R=f.next())R.value.setAttribute("disabled","");this.JSC$17767_resizers.length=0};
nK.prototype.setSize=function(f){this.currentMiniplayerSize=f};
nK.prototype.setAspectRatio=function(f){this.aspectRatio=f};
nK.prototype.update=function(f,R){for(var u=_.Z(this.JSC$17767_resizeContainer.children),O=u.next();!O.done;O=u.next()){O=O.value;var c=O.getAttribute("alignment");_.X4(O,"disabled",c===f||c===R)}};
var U72=function(f,R){var u=R.getAttribute("alignment"),O=new s4(R,{onStartDrag:function(c){if(R.hasAttribute("disabled"))c.preventDefault();else{f.dragStartSize=f.currentMiniplayerSize;var h,l;(l=(h=f.callbacks).onStartResize)==null||l.call(h)}},
onDrag:function(c){if(f.dragStartSize){u!=="north"&&u!=="west"||c.scale(-1);var h=u==="north"||u==="south";c=h?c.y:c.x;h&&f.aspectRatio>=1?c*=f.aspectRatio:!h&&f.aspectRatio<1&&(c/=f.aspectRatio);f.callbacks.onResize(f.dragStartSize+c)}}});
f.JSC$17767_resizers.push(O)};var e7X,GMm=function(){return e7X!==void 0?e7X:e7X=document.createElement("template")};
document.head.appendChild(GMm().content);var Bjl;var odt=_.nf(function(f){var R=_.sW(),u=f.onDrag,O=f.onDragStart,c=f.onDragEnd,h=_.sU(f,{allowClicks:!1,dragThreshold:5}),l=h.dragThreshold,K=h.allowClicks;f=h.children;h=h.className;var q=void 0,F=void 0,w=new _.b_(0,0),m=!1;_.bt(function(){q=new _.Tt(R.value);F=new _.iq(C);W(q,F);if(K()){_.I1f(q,l());var p;(p=R.value)==null||p.addEventListener("click",d,{capture:!0})}_.jN(function(){var J;(J=q)==null||J.dispose();if(K()){var M;(M=R.value)==null||M.removeEventListener("click",d,{capture:!0})}})});
var W=function(p,J){_.y0(p,"earlycancel",function(){K()&&(m=!1)});
_.y0(p,"start",function(M){O==null||O(M);M.defaultPrevented||K()&&(m=!0)});
_.y0(p,"beforedrag",function(M){q&&F&&(M.preventDefault(),w=new _.b_(M.clientX-q.startX,M.clientY-q.startY),F.start())});
_.y0(p,"end",function(){J.stop();c==null||c();w=new _.b_(0,0)})},C=function(){w&&u(w)},d=function(p){m&&(m=!1,p.stopPropagation(),p.preventDefault())};
return _.a("yt-draggable",{el:R,class:_.KL("ytDraggableComponentHost",h)},f)},"kg");var x7m=_.nf(function(f){var R=_.Z(_.qK(0,void 0,"CvAwBd")),u=R.next().value,O=R.next().value;R=function(c){var h={},l={};return _.a(odt,{className:_.KL("ytdMiniplayerComponentResizer",(h.ytdMiniplayerComponentResizerDisabled=function(){return c===f.horizontalAlignment()||c===f.verticalAlignment()},h.ytdMiniplayerComponentResizerNorth=c==="north",h.ytdMiniplayerComponentResizerEast=c==="east",h.ytdMiniplayerComponentResizerSouth=c==="south",h.ytdMiniplayerComponentResizerWest=c==="west",h)),
onDragStart:function(){O(f.currentMiniplayerSize());if(f.onResizeStart)f.onResizeStart()},
onDrag:function(K){c!=="north"&&c!=="west"||K.scale(-1);var q;K=(q=c==="north"||c==="south")?K.y:K.x;var F=f.currentAspectRatio();q&&F>=1?K*=F:!q&&F<1&&(K/=F);q=K;f.onResize(u()+q)}},_.a("div",{class:_.KL("ytdMiniplayerComponentResizerCorner",(l.ytdMiniplayerComponentResizerNorthCorner=c==="north",l.ytdMiniplayerComponentResizerEastCorner=c==="east",l.ytdMiniplayerComponentResizerSouthCorner=c==="south",l.ytdMiniplayerComponentResizerWestCorner=c==="west",l))}))};
return _.a("div",{class:"ytdMiniplayerComponentResizers"},R("north"),R("east"),R("south"),R("west"))},"lg");var Sqz=16/9,$7a=_.nf(function(){var f=_.sW(),R=_.Z(_.qK(new _.K8(NaN,NaN),void 0,"UYv80c")),u=R.next().value,O=R.next().value;R=_.Z(_.qK(!1,void 0,"L9O3Tc"));var c=R.next().value,h=R.next().value;R=_.Z(_.qK(!1,void 0,"nw5gMc"));var l=R.next().value,K=R.next().value;R=_.Z(_.qK(!1,void 0,"X4YUZc"));var q=R.next().value,F=R.next().value;R=_.Z(_.qK(!1,void 0,"jOjwyc"));var w=R.next().value,m=R.next().value;R=_.Z(_.qK(!1,void 0,"EmWIj"));var W=R.next().value,C=R.next().value;R=_.Z(_.qK(!1,void 0,"pdZbNb"));
var d=R.next().value,p=R.next().value;R=_.Z(_.qK(Sqz,void 0,"vdAiue"));var J=R.next().value,M=R.next().value,P=_.Z(_.qK(!1,void 0,"agiiqf"));R=P.next().value;var g=P.next().value;P=_.Z(_.qK(!1,void 0,"z3vkHe"));var x=P.next().value,fh=P.next().value;P=_.Z(_.qK(void 0,void 0,"FMEjz"));var V=P.next().value,ZD=P.next().value;P=_.Z(_.qK(_.Tf("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var mP=P.next().value,NX=P.next().value;P=_.Z(_.qK("south",void 0,"R5stie"));var jt=P.next().value,Jn=P.next().value;
P=_.Z(_.qK(400,void 0,"CJeuke"));var zq=P.next().value,St=P.next().value,Gq=_.vh().resolve(_.MS).miniplayerPropSignalMap[0],LC=Gq.data,wN=Gq.externalPlaylistData;P=Gq.toastData;var GI=Gq.playabilityStatus,ak=Gq.isReadyToResume,kC=Gq.isDisabled,Rw=Gq.watchWhile,KC=Gq.playerVe,qe=Gq.expandVe,LE=Gq.closeVe,k5=Gq.readyToResumeVe,yA=Gq.readyToResumeCloseVe,HG=Gq.repositionVe,GX=Gq.resizeVe;Gq=_.Z(_.m8(ak));var bf=Gq.next().value,$C=Gq.next().value,Bl=!1,qt=!1,Y5;_.bt(function(){O(_.WL());f.value.addEventListener("animationend",
function(BG){BG.target===f.value&&(C(!1),p(!1))});
PEm(f.value)});
_.gJ("yt-window-resized",function(BG){BG&&O(BG)});
var tf=function(){Y5&&M(Y5.getVideoAspectRatio())},lK=function(){if(Y5){var BG=Y5.getPlayerState()===1;
bf()&&BG&&$C(!1)}},CC=function(){var BG=qe();
if(BG){var bK=_.z4(3);bK&&_.Sa(bK,BG)}},Eh=function(){var BG=LE(),bK=yA();
BG&&_.Sa(_.z4(3),BG);ak()&&bK&&_.Sa(_.z4(3),bK)};
_.gJ("yt-activate-miniplayer",function(BG){var bK;return _.k(function(vt){if(vt.nextAddress==1)return c()?vt.return():_.A(vt,(bK=_.vh().resolve(_.MS).getPlayerElement())==null?void 0:bK.getPlayerPromise(),2);Y5=vt.yieldResult;if(!Y5)return vt.return();!x()&&_.E("kevlar_watch_while_v2")&&(Jn(BG&&!_.E("kevlar_watch_while_bottom_align")?"north":"south"),NX(_.Tf("HTML_DIR")==="rtl"?"west":"east"));var iK=Y5;iK.addEventListener("onVideoDataChange",tf);iK.addEventListener("onStateChange",lK);iK.addEventListener("onExpandMiniplayer",
CC);iK.addEventListener("onCloseMiniplayer",Eh);M(Y5.getVideoAspectRatio());h(!0);C(!0);_.KG(vt)})});
_.gJ("yt-deactivate-miniplayer",function(BG){return _.k(function(bK){if(!c())return bK.return();h(!1);$C(!1);p(BG);C(!0);m(!1);K(!1);if(Y5){var vt=Y5;vt.removeEventListener("onVideoDataChange",tf);vt.removeEventListener("onStateChange",lK);vt.removeEventListener("onExpandMiniplayer",CC);vt.removeEventListener("onCloseMiniplayer",Eh)}_.KG(bK)})});
var k_=function(){return!(Rw()&&_.E("kevlar_watch_while_modern"))},kM=function(){var BG;
return!((BG=wN())==null||!BG.contents)},Uh=function(){var BG=zq();
var bK=u();bK=Math.min(Math.min(bK.width,bK.height)-32,720);var vt=J(),iK=k_(),Ob=kM()&&l(),Ek=Math.min(BG,bK);BG=new _.K8(192,iK?116:192);vt=wLl(new _.K8(Ob?Sqz:vt,1),new _.K8(Ek,iK?Ek-76:Ek));BG.width<=vt.width&&BG.height<=vt.height||(F65(vt,BG),vt.width=Math.min(vt.width,bK),vt.height=Math.min(vt.height,bK));return new _.K8(vt.width,_.Jd(192,vt.height+o75(iK,Ob),720))},Wl=function(){var BG=Uh(),bK=k_(),vt=kM()&&l();
return new _.K8(BG.width,BG.height-o75(bK,vt))},Kv=function(){var BG=function(bK){bK.target===f.value&&w()&&(m(!1),f.value.removeEventListener("transitionend",BG))};
f.value.addEventListener("transitionend",BG);m(!0);K(!l())};
_.pc(function(){var BG=KC(),bK=_.z4(3),vt=_.Jj(3);if(bK&&vt&&BG){_.ea(bK,vt,BG);vt=HG();var iK=GX(),Ob=qe(),Ek=LE(),cf=yA();Ob&&Ek&&cf&&(_.GT(bK,BG,[Ob,Ek,cf]),_.op(bK,[Ob,Ek]));vt&&iK&&_.GT(bK,BG,[vt,iK])}});
_.pc(function(){var BG=bf(),bK=k5();if(bK&&(BG===void 0?0:BG)){BG=_.z4(0);var vt=_.Jj(0);BG&&vt&&(_.ea(BG,vt,bK),_.op(BG,[bK]))}});
Gq={};return _.a("ytd-miniplayer",{el:f,class:_.KL("ytdMiniplayerComponentHost",(Gq.ytdMiniplayerComponentVisible=function(){return c()||W()},Gq.ytdMiniplayerComponentAnimatingSnap=q,Gq.ytdMiniplayerComponentAnimatingPlaylistExpand=w,Gq.ytdMiniplayerComponentAnimatingFade=W,Gq),function(){if(W()){var BG=jt();
var bK=c(),vt=d();BG=bK?BG==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":vt?BG==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":BG==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else BG="";return BG}),
style:_.Qm({top:function(){return jt()==="north"?"16px":""},
right:function(){return mP()==="east"?"16px":""},
bottom:function(){return jt()==="south"?"16px":""},
left:function(){return mP()==="west"?"16px":""},
width:function(){return Uh().width+"px"},
height:function(){return Uh().height+"px"},
transform:function(){var BG=V();return BG?"translate("+BG.x+"px, "+BG.y+"px)":""}})},_.a("div",{class:"ytdMiniplayerComponentContent"},_.a(odt,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(BG){var bK=BuS(mP(),jt(),u(),Uh(),V()),vt=Wl();Math.abs(BG.clientY-(bK.y+vt.height))>15?(g(!0),BG=_.z4(3),bK=HG(),Bl||(Bl=!0,BG&&bK&&_.op(BG,[bK])),BG&&bK&&_.Sa(BG,bK)):BG.preventDefault()},
onDrag:function(BG){ZD(BG)},
onDragEnd:function(){var BG=Us2(BuS(mP(),jt(),u(),Uh(),V()),u(),Uh()),bK=G42(mP(),jt(),u(),Uh()),vt=G42(BG.horizontalAlignment,BG.verticalAlignment,u(),Uh());vt=new _.b_(vt.x-bK.x,vt.y-bK.y);var iK;bK=bK.y+(((iK=V())==null?void 0:iK.y)||0)+Uh().height/2;var Ob=function(){mP()===BG.horizontalAlignment&&jt()===BG.verticalAlignment||fh(!0);NX(BG.horizontalAlignment);Jn(BG.verticalAlignment);ZD(void 0)},Ek=function(cf){cf.target===f.value&&q()&&(F(!1),Ob(),f.value.removeEventListener("transitionend",
Ek))};
g(!1);jt()==="south"&&bK>u().height?(Ob(),_.vh().resolve(_.MS).close()):(f.value.addEventListener("transitionend",Ek),F(!0),ZD(vt))}},_.a(_.Q,{cond:c,
then:function(){return _.a(_.skh,{isDisabled:kC,playabilityStatus:GI,size:Wl})}}),_.a(_.Q,{cond:k_,
then:function(){return _.a(_.$tz,{isReadyToResume:bf,data:LC,expanded:l,onExpandClick:Kv,playlistData:wN})}}),_.a(_.Q,{cond:R,
then:function(){return _.a("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.a(_.Q,{cond:function(){return kM()&&l()||w()},
then:function(){return _.a(_.FXC,{className:"ytdMiniplayerComponentPlaylistPanel",data:wN,hideHeaderText:!0,withinMiniplayer:!0})}}),_.a("div",{class:"ytdMiniplayerComponentToast"},_.a(_.nCh,{toastData:P}))),_.a(x7m,{onResize:function(BG){St(_.Jd(192,BG,720))},
onResizeStart:function(){var BG=_.z4(3),bK=GX();qt||(qt=!0,BG&&bK&&_.op(BG,[bK]));BG&&bK&&_.Sa(BG,bK)},
currentAspectRatio:J,currentMiniplayerSize:zq,horizontalAlignment:mP,verticalAlignment:jt}))},"mg");_.E("ytd_miniplayer_to_wiz")&&_.ii($7a,"ytd-miniplayer",{});_.ii(_.nCh,"ytd-miniplayer-toast",{props:{toastData:_.SG}});var gdm=16/9,srm=new _.K8(400,400/gdm),Vh=function(){var f=_.U.apply(this,arguments)||this;f.active=!1;f.hasNoData=!1;f.enabled=!1;f.expanded=!1;f.readyToResume=!1;f.isDisabled=!1;f.externalPlaylistData={};f.premiumBadges=[];f.watchWhile=!1;f.playerState=null;f.verticalAttachment="south";f.horizontalAttachment=_.Tf("HTML_DIR")==="rtl"?"west":"east";f.isAnimatingFade=!1;f.isAnimatingSnap=!1;f.isAnimatingExpand=!1;f.isDragging=!1;f.playerHidden=!1;f.hasPlaylistData=!1;f.closed=!1;f.expandedClosed=!1;
f.isForReadyToResume=!1;f.watchResponse=null;f.player=null;f.playerVe=null;f.expandVe=null;f.closeVe=null;f.readyToResumeCloseVe=null;f.disabledInitialStateIsPlaying=!1;f.PLAYER_EVENTS=new Map;f.aspectRatio=gdm;f.currentMiniplayerSize=400;f.userSetSize=!1;f.userSetPosition=!1;f.userHasDragged=!1;f.maxMiniplayerSize=720;f.transform=new _.b_(0,0);f.windowDimensions=new _.K8(NaN,NaN);f.dimensions=srm;f.screenLayer=3;f.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return f};
_.y(Vh,_.U);_.X=Vh.prototype;_.X.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.X.ready=function(){this.setUpDragging();this.setUpResizing()};
_.X.attached=function(){this.onWindowResized(_.WL());this.hostElement.addEventListener("animationend",_.ks(this,this.resetFadingAnimation))};
_.X.detached=function(){this.hostElement.removeEventListener("animationend",_.ks(this,this.resetFadingAnimation))};
_.X.resetFadingAnimation=function(f){f.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.X.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.X.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.X.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var f=_.z4(this.screenLayer);this.readyToResumeCloseVe&&f&&_.op(f,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.X.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var f=_.z4(0),R=_.Jj(0);f&&R&&(_.ea(f,R,this.readyToResumeVe),_.op(f,[this.readyToResumeVe]))}};
_.X.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var f=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=f===-1||f===1||f===3)&&this.player.pauseVideo()}};
_.X.activate=function(f,R){R=R===void 0?!1:R;var u=this,O;return _.k(function(c){if(c.nextAddress==1)return u.setInitialActivatePositioning(R),u.enabled=!0,u.active=!0,u.expanded=!1,u.closed=!1,u.expandedClosed=!1,u.watchWhileHidden||(u.isAnimatingFade=!0),_.vh().resolve(_.Ji).setPlaylistComponent(u.JSC$17778_playlistPanel),f.appendTo(u.playerContainer),_.A(c,f.getPlayerPromise(),2);O=c.yieldResult;O.setSizeStyle(!1,!0);u.ytPlayerListenerBehavior.listenToPlayerEvents(O,u.PLAYER_EVENTS);u.player=O;
u.watchWhile&&_.E("kevlar_watch_while_minimum_size")&&u.setMiniplayerSize(192);u.setAspectRatio(u.player.getVideoAspectRatio());u.onIsDisabledChanged();_.KG(c)})};
_.X.setInitialActivatePositioning=function(f){if(!this.userSetPosition&&_.E("kevlar_watch_while_v2")){this.verticalAttachment=f&&!_.E("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Tf("HTML_DIR")==="rtl"?"west":"east";var R;(R=this.JSC$17778_resizers)==null||R.update(this.horizontalAttachment,this.verticalAttachment)}};
_.X.deactivate=function(f,R){var u=this;return _.k(function(O){if(!u.active)return O.return();f||(u.expanded?u.expandedClosed=!0:u.closed=!0);u.active=!1;u.isForReadyToResume=!1;R&&_.E("kevlar_watch_while_counterfactual")||(u.isAnimatingFade=!0);u.player&&u.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u.player,u.PLAYER_EVENTS);u.player=null;_.KG(O)})};
_.X.onMetadataTap=function(f){this.expandVe&&(f===void 0||f)&&(f=_.z4(this.screenLayer))&&_.Sa(f,this.expandVe);_.WS(_.vh().resolve(_.MS))};
_.X.onDisabledTap=function(f){f.target===_.b(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.X.onPlaylistExpandTap=function(f){if(this.hasPlaylistData){f=_.$S(f)||[];f=_.Z(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;if(R===this.hostElement)break;if(R.classList&&R.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.X.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.ks(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.X.animatedResizePlaylist=function(f){f.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.ks(this,this.animatedResizePlaylist)))};
_.X.getExpandIcon=function(f){return f?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.X.onPlayerVideoDataChange=function(){var f,R=(f=this.player)==null?void 0:f.getVideoAspectRatio();R&&R!==this.aspectRatio&&this.setAspectRatio(R)};
_.X.setAspectRatio=function(f){if(this.active){this.aspectRatio=f;this.updateDimensionsAndResize();var R;(R=this.JSC$17778_resizers)==null||R.setAspectRatio(f)}};
_.X.updateDimensionsAndResize=function(){var f=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),R=this.expanded?gdm:this.aspectRatio,u=new _.K8(192,this.showInfoBar?116:192);f=wLl(new _.K8(R,1),new _.K8(f,this.showInfoBar?f-76:f));u.width<=f.width&&u.height<=f.height||(F65(f,u),f.width=Math.min(f.width,this.maxMiniplayerSize),f.height=Math.min(f.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&R<=1?Math.max(f.width,f.height)+76:Math.max(f.width,f.height)));this.dimensions=
new _.K8(f.width,this.clamp(f.height+this.getNonPlayerHeight()));this.resize()};
_.X.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var f=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=f.height+"px";var R;(R=this.player)==null||R.setInternalSize(f.width,f.height)};
_.X.getPlayerSize=function(f){var R=Math.max(0,f.height-this.getNonPlayerHeight());return new _.K8(f.width,R)};
_.X.getNonPlayerHeight=function(){var f=0;this.showInfoBar&&(f+=76);this.expanded&&(f+=285);return f};
_.X.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.vh().resolve(_.MS).close()};
_.X.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.X.logClosingClick=function(){this.closeVe&&_.Sa(_.z4(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Sa(_.z4(this.screenLayer),this.readyToResumeCloseVe)};
_.X.onPlayerExpandMiniplayer=function(){if(this.expandVe){var f=_.z4(this.screenLayer);f&&_.Sa(f,this.expandVe)}};
_.X.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var f=this.playerState===1;this.continueWatching&&f&&(this.continueWatching=!1);this.premiumBadges.length&&f&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.X.getScreenLayer=function(){return this.screenLayer};
_.X.logMiniplayer=function(){var f=_.z4(this.screenLayer),R=_.Jj(this.screenLayer);f&&R&&this.playerVe&&(_.ea(f,R,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.GT(f,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.op(f,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.GT(f,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.X.computePlaylistData=function(f,R){return R};
_.X.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.X.computeExpandButtonHidden=function(f,R,u){return!f||!R||u};
_.X.computePlaylistIndexHidden=function(f,R){return!f||R};
_.X.computePlaylistPanelHidden=function(f,R){return!R&&!f};
_.X.computeExpandButtonLabel=function(f){return f?_.Fa("MINIPLAYER_COLLAPSE_LABEL"):_.Fa("MINIPLAYER_EXPAND_LABEL")};
_.X.computeDisabledStateCloseButtonLabel=function(){return _.Fa("MINIPLAYER_CLOSE",void 0,"Close")};
_.X.onWindowResized=function(f){f&&(f=this.windowDimensions=f,this.maxMiniplayerSize=Math.min(Math.min(f.width,f.height)-32,720),this.updateDimensionsAndResize())};
_.X.setUpResizing=function(){var f=this;this.JSC$17778_resizers||(this.JSC$17778_resizers=new nK(this.JSC$17778_resizeContainer,{onStartResize:function(){f.handleResizeStart()},
onResize:function(R){f.handleResize(R)}}),this.JSC$17778_resizers.setSize(this.currentMiniplayerSize),this.JSC$17778_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.X.handleResizeStart=function(){var f=_.z4(this.screenLayer);this.userSetSize||(this.userSetSize=!0,f&&this.resizeVe&&_.op(f,[this.resizeVe]));f&&this.resizeVe&&_.Sa(f,this.resizeVe)};
_.X.handleResize=function(f){this.setMiniplayerSize(f);this.updateDimensionsAndResize()};
_.X.setUpDragging=function(){var f=this;this.JSC$17778_dragger||(this.JSC$17778_dragger=new s4(this.draggableContainer,{onStartDrag:function(R){!f.isSafeToDrag(R)||f.isAnimatingSnap?R.preventDefault():f.handleDragStart()},
onDrag:function(R){f.transform=R;f.setTransform(f.transform)},
onEndDrag:function(){f.handleDragEnd()}},!0))};
_.X.handleDragStart=function(){this.isDragging=!0;var f=_.z4(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,f&&this.repositionVe&&_.op(f,[this.repositionVe]));f&&this.repositionVe&&_.Sa(f,this.repositionVe)};
_.X.handleDragEnd=function(){this.isDragging=!1;var f=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&f>this.windowDimensions.height&&_.vh().resolve(_.MS).close();this.animateSnapToCorner()};
_.X.animateSnapToCorner=function(){var f=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),R=this.getNearestAttachments();R=this.getGlobalPositionFromAttachments(R.horizontalAttachment,R.verticalAttachment);f=new _.b_(R.x-f.x,R.y-f.y);this.isAnimatingSnap=!0;this.setTransform(f);this.hostElement.addEventListener("transitionend",_.ks(this,this.endSnapAnimation))};
_.X.endSnapAnimation=function(f){f.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.ks(this,this.endSnapAnimation)),this.endDrag())};
_.X.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.X.setTransform=function(f){this.hostElement.style.transform=f?"translate("+f.x+"px, "+f.y+"px)":""};
_.X.getGlobalPositionFromAttachments=function(f,R){return new _.b_(f==="west"?16:this.windowDimensions.width-this.dimensions.width-16,R==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.X.updateAttachments=function(){var f=this.getNearestAttachments();if(this.horizontalAttachment!==f.horizontalAttachment||this.verticalAttachment!==f.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=f.horizontalAttachment;this.verticalAttachment=f.verticalAttachment;var R;(R=this.JSC$17778_resizers)==null||R.update(this.horizontalAttachment,this.verticalAttachment)};
_.X.getNearestAttachments=function(){var f=this.getCurrentGlobalPosition();return{horizontalAttachment:f.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:f.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.X.getCurrentGlobalPosition=function(){var f=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return eal(f,this.transform)};
_.X.isSafeToDrag=function(f){var R=this.playerContainer.getBoundingClientRect();return Math.abs(f.clientY-(R.y+R.height))>15};
_.X.setMiniplayerSize=function(f){this.currentMiniplayerSize=this.clamp(f);var R;(R=this.JSC$17778_resizers)==null||R.setSize(this.currentMiniplayerSize)};
_.X.clamp=function(f){return _.Jd(192,f,720)};
_.X.registerViewTransitionTasks=function(){var f=this,R=_.vh().resolve(_.Y8(_.Q7));if(R){var u={beforeTransition:function(){f.hostElement&&(f.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){f.hostElement&&(f.hostElement.style.viewTransitionName="")}};
VU(R,"slide",u);VU(R,"zoom",u)}};
_.Vy.Object.defineProperties(Vh.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.E("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.Fa("CONTINUE_WATCHING",void 0,"Continue watching")};var f;if((f=this.externalPlaylistData)==null?0:f.contents)return this.externalPlaylistData.titleText;var R;return(R=this.data)==null?void 0:R.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.externalPlaylistData)==null?0:f.contents){var R;return(R=_.riq(this.externalPlaylistData))==null?void 0:R.title}var u;return(u=this.data)==null?void 0:u.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var f,R,u,O;return((f=this.externalPlaylistData)==null?void 0:f.currentIndex)!==void 0&&((R=this.externalPlaylistData)==null?0:R.totalVideos)&&!((u=this.data)==null?0:(O=u.playlistData)==null?0:O.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.sHn(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.E("kevlar_watch_while_counterfactual")}}});
Vh.prototype.onIsDisabledChanged=Vh.prototype.onIsDisabledChanged;Vh.prototype.readyToResumeVeChanged=Vh.prototype.readyToResumeVeChanged;Vh.prototype.premiumBrandingChanged=Vh.prototype.premiumBrandingChanged;Vh.prototype.onPlayerVeChange=Vh.prototype.onPlayerVeChange;Vh.prototype.hasPlaylistDataChanged=Vh.prototype.hasPlaylistDataChanged;_.B([_.z(_.xi.YtPlayerListenerBehavior),_.S("design:type",_.SX)],Vh.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Vh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Vh.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Vh.prototype,"ytdReduxBehavior",void 0);_.B([_.a4("#draggable"),_.S("design:type",HTMLDivElement)],Vh.prototype,"draggableContainer",void 0);
_.B([_.a4("#resize-container"),_.S("design:type",HTMLDivElement)],Vh.prototype,"JSC$17778_resizeContainer",void 0);_.B([_.a4("#video-container"),_.S("design:type",HTMLDivElement)],Vh.prototype,"videoContainer",void 0);_.B([_.a4("#player-container"),_.S("design:type",HTMLDivElement)],Vh.prototype,"playerContainer",void 0);_.B([_.a4("#playlist"),_.S("design:type",HTMLDivElement)],Vh.prototype,"JSC$17778_playlistPanel",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"active",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"hasNoData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"enabled",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"expanded",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"readyToResume",void 0);
_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"isDisabled",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"externalPlaylistData",void 0);_.B([_.I(),_.S("design:type",Array)],Vh.prototype,"premiumBadges",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"toastData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"watchWhile",void 0);_.B([_.I(),_.S("design:type",Boolean)],Vh.prototype,"premiumBranding",void 0);
_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"playerState",void 0);_.B([_.I(),_.S("design:type",Boolean)],Vh.prototype,"continueWatching",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],Vh.prototype,"verticalAttachment",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],Vh.prototype,"horizontalAttachment",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"isAnimatingFade",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"isAnimatingSnap",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"isAnimatingExpand",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"isDragging",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"playerHidden",void 0);
_.B([_.I({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.S("design:type",Object)],Vh.prototype,"playlistData",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.S("design:type",Object)],Vh.prototype,"hasPlaylistData",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"closed",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Vh.prototype,"expandedClosed",void 0);
_.B([_.I({selector:_.Atl}),_.S("design:type",Boolean)],Vh.prototype,"isSingleOptionSurveyActive",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.ze}),_.S("design:type",Boolean)],Vh.prototype,"isWatchPage",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("watchWhile"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"showInfoBar",null);_.B([_.T("premiumBadges","showInfoBar"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"showOverlayPremiumBadges",null);
_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"watchResponse",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"miniplayerRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"playabilityStatus",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"playerVe",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"expandVe",void 0);_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"closeVe",void 0);
_.B([_.I(),_.S("design:type",Object)],Vh.prototype,"readyToResumeCloseVe",void 0);_.B([_.I(),_.S("design:type",_.Dv)],Vh.prototype,"readyToResumeVe",void 0);_.B([_.I(),_.S("design:type",_.Dv)],Vh.prototype,"resizeVe",void 0);_.B([_.I(),_.S("design:type",_.Dv)],Vh.prototype,"repositionVe",void 0);_.B([_.qM("hasPlaylistData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vh.prototype,"hasPlaylistDataChanged",null);
_.B([_.qM("playerVe"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vh.prototype,"onPlayerVeChange",null);_.B([_.qM("premiumBranding"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vh.prototype,"premiumBrandingChanged",null);_.B([_.qM("readyToResumeVe"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vh.prototype,"readyToResumeVeChanged",null);
_.B([_.qM("isDisabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vh.prototype,"onIsDisabledChanged",null);_.B([_.T("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"miniplayerSubtitle",null);_.B([_.T("data.miniplayerTitle","externalPlaylistData"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"miniplayerTitle",null);
_.B([_.T("externalPlaylistData","continueWatching"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"playlistIndexMessage",null);_.B([_.I({reflectToAttribute:!0}),_.T("playabilityStatus"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"showErrorScreen",null);_.B([_.I({reflectToAttribute:!0}),_.T("watchWhile"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vh.prototype,"watchWhileHidden",null);
_.E("ytd_miniplayer_to_wiz")||_.G(Vh,"ytd-miniplayer",function(){if(Bjl===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
f.content.insertBefore(GMm().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);Bjl=f}f=Bjl;return f},{mode:2});var ndz;var Yq=function(){var f=_.U.apply(this,arguments)||this;f.useListItemStyles=_.E("web_list_item_style_for_menu_items");f.systemIcons=_.E("kevlar_system_icons");return f};
_.y(Yq,_.U);_.X=Yq.prototype;_.X.ready=function(){this.hostElement.addEventListener("tap",_.ks(this,this.onEndpointTapExtra))};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){var f;(f=_.b(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.X.onEndpointTapExtra=function(f){_.ul(this.hostElement,"iron-activate");var R=this.data.navigationEndpoint;R&&_.t(R,_.eR0)&&(f.stopPropagation(),_.ZW(this.hostElement,[R],this.hostElement))};
_.X.computeIcon=function(f){return f&&f.iconType?_.li(f.iconType):""};
_.X.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.forceUpdateStylesOnLegacyBrowsers=function(){_.E("kevlar_legacy_browsers")&&_.ZO(this.hostElement)};
Yq.prototype.forceUpdateStylesOnLegacyBrowsers=Yq.prototype.forceUpdateStylesOnLegacyBrowsers;Yq.prototype.onFocus=Yq.prototype.onFocus;_.B([_.z(_.S$),_.S("design:type",Object)],Yq.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.Q9I.YtConditionalRendererBehavior),_.S("design:type",Object)],Yq.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],Yq.prototype,"ytEndpointBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Yq.prototype,"data",void 0);_.B([_.I({computed:"computeIcon(data.icon)",value:""}),_.S("design:type",String)],Yq.prototype,"icon",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Yq.prototype,"useIcons",void 0);_.B([_.I({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Yq.prototype,"hasSeparator",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Yq.prototype,"useListItemStyles",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Yq.prototype,"systemIcons",void 0);_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yq.prototype,"onFocus",null);_.B([_.qM("useIcons","hasSeparator"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yq.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(Yq,"ytd-menu-navigation-item-renderer",function(){if(ndz===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);ndz=f}f=ndz;return f},{mode:1});var VG5;var YqS=_.S8(_.Fa("DOWNLOAD",{},"Download")),vdX=_.S8(_.Fa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),ikt=_.S8(_.Fa("RETRY",{},"Retry")),rC2=_.S8(_.Fa("PAUSE_DOWNLOADING",{},"Pause downloading")),fsh=_.S8(_.Fa("RESUME_DOWNLOAD",{},"Resume download")),vk=function(){var f=_.U.apply(this,arguments)||this;f.primaryText=YqS;f.primaryIconType="OFFLINE_DOWNLOAD";f.hasSecondaryContent=!1;f.hasSeparator=!1;f.transferState="TRANSFER_STATE_UNKNOWN";f.isVideoDeletedByUser=!1;f.isHidden=!1;f.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return f};
_.y(vk,_.U);_.X=vk.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){this.primaryEntry.focus()};
_.X.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.X.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.X.getRemoveAction=function(){return"ACTION_REMOVE"};
_.X.sendOfflineAction=function(f){var R=this.data.serviceEndpoint;if(R){var u=_.t(R,_.kO);u&&f&&(u.action=f);this.ytComponentBehavior.resolveCommand(R)}};
_.X.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=YqS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=YqS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=ikt;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=vdX;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=fsh;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=vdX;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
rC2;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=vdX;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=vdX;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=YqS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.X.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.X.isSecondaryEntryHidden=function(f,R){return f?!0:!R};
_.X.computeHasSeparator=function(){var f;return!((f=this.data)==null||!f.hasSeparator)};
vk.prototype.showHideButton=vk.prototype.showHideButton;vk.prototype.onTransferStateChange=vk.prototype.onTransferStateChange;vk.prototype.onFocus=vk.prototype.onFocus;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],vk.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],vk.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],vk.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],vk.prototype,"primaryText",void 0);_.B([_.I(),_.S("design:type",String)],vk.prototype,"primaryIconType",void 0);_.B([_.I(),_.S("design:type",String)],vk.prototype,"primaryAction",void 0);_.B([_.I(),_.S("design:type",Object)],vk.prototype,"secondaryText",void 0);_.B([_.I(),_.S("design:type",String)],vk.prototype,"secondaryIconType",void 0);
_.B([_.I(),_.S("design:type",String)],vk.prototype,"secondaryAction",void 0);_.B([_.I(),_.S("design:type",Object)],vk.prototype,"hasSecondaryContent",void 0);_.B([_.I({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.S("design:type",Object)],vk.prototype,"hasSeparator",void 0);_.B([_.I({selector:_.Te,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.S("design:type",String)],vk.prototype,"transferState",void 0);
_.B([_.I({selector:_.TSe,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.S("design:type",Object)],vk.prototype,"isVideoDeletedByUser",void 0);_.B([_.I(),_.S("design:type",Object)],vk.prototype,"isHidden",void 0);_.B([_.I({selector:_.bNt,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.S("design:type",Object)],vk.prototype,"offlineabilityState",void 0);_.B([_.a4("#primary-entry"),_.S("design:type",Object)],vk.prototype,"primaryEntry",void 0);
_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vk.prototype,"onFocus",null);_.B([_.QR("transferState","isVideoDeletedByUser"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vk.prototype,"onTransferStateChange",null);_.B([_.QR("offlineabilityState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vk.prototype,"showHideButton",null);
_.G(vk,"ytd-menu-service-item-download-renderer",function(){if(VG5===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);VG5=f}f=VG5;return f},{mode:1});var RV2;var iY=function(){var f=_.U.apply(this,arguments)||this;f.useIcons=!1;f.systemIcons=_.E("kevlar_system_icons");f.useListItemStyles=_.E("web_list_item_style_for_menu_items");return f};
_.y(iY,_.U);_.X=iY.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){var f;(f=_.b(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.X.onTap=function(){_.c_(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var f=this.data.serviceEndpoint,R=this.data.command;if(f){var u,O=(u=this.data)==null?void 0:u.trackingParams;u=!!_.t(f,_.eok);O&&u&&_.sP().dispatch(_.OP({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:O}}));this.ytComponentBehavior.resolveCommand(f)||_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}})}R&&(this.ytComponentBehavior.resolveCommand(R)||_.ZW(this.hostElement,
[R],this.hostElement))};
_.X.computeIcon=function(f){return f&&f.iconType?_.li(f.iconType):""};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.computeHasSeparator=function(){var f;return!((f=this.data)==null||!f.hasSeparator)};
_.X.forceUpdateStylesOnLegacyBrowsers=function(){_.E("kevlar_legacy_browsers")&&_.ZO(this.hostElement)};
_.X.computeIsSelected=function(){var f;return!((f=this.data)==null||!f.isSelected)};
iY.prototype.forceUpdateStylesOnLegacyBrowsers=iY.prototype.forceUpdateStylesOnLegacyBrowsers;iY.prototype.onTap=iY.prototype.onTap;iY.prototype.onFocus=iY.prototype.onFocus;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],iY.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],iY.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.Q9I.YtConditionalRendererBehavior),_.S("design:type",Object)],iY.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],iY.prototype,"data",void 0);_.B([_.I({computed:"computeIcon(data.icon)",value:""}),_.S("design:type",String)],iY.prototype,"icon",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iY.prototype,"useIcons",void 0);
_.B([_.I({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.S("design:type",Boolean)],iY.prototype,"hasSeparator",void 0);_.B([_.I({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.S("design:type",Boolean)],iY.prototype,"isSelected",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iY.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],iY.prototype,"useListItemStyles",void 0);
_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iY.prototype,"onFocus",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],iY.prototype,"onTap",null);_.B([_.qM("useIcons","hasSeparator"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iY.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(iY,"ytd-menu-service-item-renderer",function(){if(RV2===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);RV2=f}f=RV2;return f},{mode:2});var u7m;var rf=function(){return _.U.apply(this,arguments)||this};
_.y(rf,_.U);_.X=rf.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onDataChanged=function(){var f=this;_.su(this,function(){f.postbox.openDialog();f.focus();_.ul(f.hostElement,"yt-refit")})};
_.X.focus=function(){this.postbox.focus()};
_.X.closePopup=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
_.X.onYtCommentboxDismiss=function(){this.closePopup()};
rf.prototype.onYtCommentboxDismiss=rf.prototype.onYtCommentboxDismiss;rf.prototype.onDataChanged=rf.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rf.prototype,"data",void 0);_.B([_.I({value:function(){return _.Fa("SBOX_INAPPROPRIATE_CANCEL")}}),
_.S("design:type",String)],rf.prototype,"closeButtonAriaLabel",void 0);_.B([_.a4("#postbox"),_.S("design:type",Object)],rf.prototype,"postbox",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rf.prototype,"onDataChanged",null);_.B([_.Kf("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rf.prototype,"onYtCommentboxDismiss",null);
rf=_.B([_.e({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],rf);
_.G(rf,"ytd-backstage-post-dialog-popup-renderer",function(){if(u7m!==void 0)return u7m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return u7m=f},{mode:1});var OqK;var f_=function(){return _.U.apply(this,arguments)||this};
_.y(f_,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],f_.prototype,"data",void 0);f_=_.B([_.e({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],f_);
_.G(f_,"ytd-sender-id-section-renderer",function(){if(OqK!==void 0)return OqK;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return OqK=f},{mode:1});var ceX;var Xdm;var hVw;var RT=function(){return _.U.apply(this,arguments)||this};
_.y(RT,_.U);RT.prototype.closePopup=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],RT.prototype,"data",void 0);RT=_.B([_.DO({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],RT);
_.G(RT,"yt-community-post-section-renderer",function(){if(hVw===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Xdm===void 0&&(Xdm=document.createElement("template"));var O=Xdm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);hVw=f}f=hVw;return f},{mode:2});var Zq2;var lsm;var k5t;var K9N;var qcl;var Aem;var u9=function(){return _.U.apply(this,arguments)||this};
_.y(u9,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],u9.prototype,"data",void 0);u9=_.B([_.DO({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],u9);
_.G(u9,"yt-share-start-time-with-context-renderer",function(){if(Aem===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;qcl===void 0&&(qcl=document.createElement("template"));var O=qcl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Aem=f}f=Aem;return f},{mode:2});var Og=function(){return _.U.apply(this,arguments)||this};
_.y(Og,_.U);Og.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Og.prototype,"data",void 0);Og=_.B([_.DO({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Og);
_.G(Og,"yt-share-panel-title-v15-renderer",function(){if(K9N===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;k5t===void 0&&(k5t=document.createElement("template"));var O=k5t;u.call(R,O.content.cloneNode(!0),f.content.firstChild);K9N=f}f=K9N;return f},{mode:2});var ca=function(){return _.U.apply(this,arguments)||this};
_.y(ca,_.U);ca.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ca.prototype,"data",void 0);ca=_.B([_.DO({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ca);
_.G(ca,"yt-share-panel-header-renderer",function(){if(lsm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Zq2===void 0&&(Zq2=document.createElement("template"));var O=Zq2;u.call(R,O.content.cloneNode(!0),f.content.firstChild);lsm=f}f=lsm;return f},{mode:2});var ast;var F9l;var Xv=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-open-popup-action":"onOpen"};return f};
_.y(Xv,_.U);_.X=Xv.prototype;_.X.attached=function(){this.onOpen()};
_.X.updateTimeSecs=function(f){this.currentTimeSecs=f};
_.X.computeTimeString=function(f){f=f.toString();var R=Math.floor(Number(f)/3600),u=Math.floor(Number(f)%3600%60);return(R>0?R+":":"")+_.rZ(Math.floor(Number(f)%3600/60),R>0?2:1)+":"+_.rZ(u,2)};
_.X.computeTimeStringA11y=function(f){f=_.Il2({seconds:f});var R=f.hours===void 0?0:f.hours,u=f.minutes===void 0?0:f.minutes,O=f.seconds===void 0?0:f.seconds;f=[];if(R>0){var c=aL2().format({hours:R});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.PW)||R>9999)c=c.replace(R.toString(),_.MiX(R)),_.PW==="km"&&(c=c.replace(".",","));f.push(c)}u>0&&f.push(aL2().format({minutes:u}));O>0&&f.push(aL2().format({seconds:O}));R="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");u=_.PW==
"am"?"{0}\u1363 ":_.PW=="fa"?"{0}\u060c\u200f ":_.PW=="my"?"{0} - ":_.PW=="ne"?"{0},":_.PW=="th"?"{0} ":_.PW=="ur"?"{0}\u060c ":_.PW=="ar"||_.PW=="ar-XB"?"{0} \u0648":_.PW=="ja"||_.PW=="zh-CN"||_.PW=="zh-HK"||_.PW=="zh-TW"?"{0}\u3001":"{0}, ";O=_.PW=="am"?"\u1363 ":_.PW=="fa"?"\u060c\u200f ":_.PW=="my"?" - ":_.PW=="th"?" ":_.PW=="ur"?"\u060c ":_.PW=="ar"||_.PW=="ar-XB"?" \u0648":_.PW=="ja"||_.PW=="zh-CN"||_.PW=="zh-HK"||_.PW=="zh-TW"?"\u3001":", ";c=_.PW=="am"?" \u12a5\u1293 {0}":_.PW=="as"?" \u0986\u09f0\u09c1 {0}":
_.PW=="az"?" v\u0259 {0}":_.PW=="bn"?" \u098f\u09ac\u0982 {0}":_.PW=="cs"?" a\u00a0{0}":_.PW=="de"?" und {0}":_.PW=="el"?" \u03ba\u03b1\u03b9 {0}":_.PW=="eu"?" eta {0}":_.PW=="fa"?"\u060c \u0648 {0}":_.PW=="fil"?", at {0}":_.PW=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.PW=="hi"?", \u0914\u0930 {0}":_.PW=="hu"?" \u00e9s {0}":_.PW=="hy"?" \u0587 {0}":_.PW=="id"?", dan {0}":_.PW=="iw"?" \u05d5-{0}":_.PW=="ja"?"\u3001{0}":_.PW=="ka"?" \u10d3\u10d0 {0}":_.PW=="km"?" \u1793\u17b7\u1784 {0}":_.PW=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.PW=="ko"?" \ubc0f {0}":_.PW=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.PW=="lt"?" ir {0}":_.PW=="lv"?" un {0}":_.PW=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.PW=="mr"?" \u0906\u0923\u093f {0}":_.PW=="ms"?" dan {0}":_.PW=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.PW=="ne"?" \u0930 {0}":_.PW=="or"?", \u0b13 {0}":_.PW=="pa"?" \u0a05\u0a24\u0a47 {0}":_.PW=="ro"?" \u0219i {0}":_.PW=="si"?", \u0dc3\u0dc4 {0}":_.PW=="sk"?" a {0}":_.PW=="sl"?" in {0}":_.PW=="sq"?" dhe {0}":_.PW=="sv"?" och {0}":
_.PW=="sw"?" na {0}":_.PW=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.PW=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.PW=="th"?" \u0e41\u0e25\u0e30{0}":_.PW=="tr"?" ve {0}":_.PW=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.PW=="uz"?" va {0}":_.PW=="vi"?" v\u00e0 {0}":_.PW=="zh-HK"?"\u53ca{0}":_.PW=="zu"?", ne-{0}":_.PW=="af"||_.PW=="nl"?" en {0}":_.PW=="ar"||_.PW=="ar-XB"?" \u0648{0}":_.PW=="be"||_.PW=="uk"?" \u0456 {0}":_.PW=="en-GB"||_.PW=="en-IN"?" and {0}":_.PW=="en"||_.PW=="en-XA"?
", and {0}":_.PW=="et"||_.PW=="fi"?" ja {0}":_.PW=="fr"||_.PW=="fr-CA"?" et {0}":_.PW=="zh-CN"||_.PW=="zh-TW"?"\u548c{0}":_.PW=="da"||_.PW=="is"||_.PW=="no"?" og {0}":_.PW=="es"||_.PW=="es-419"||_.PW=="es-US"?" y {0}":_.PW=="kk"||_.PW=="lo"||_.PW=="mn"?", {0}":_.PW=="bg"||_.PW=="mk"||_.PW=="ru"||_.PW=="sr"?" \u0438 {0}":_.PW=="gl"||_.PW=="it"||_.PW=="pt-BR"||_.PW=="pt-PT"?" e {0}":" i {0}";var h=_.PW=="am"?"{0} \u12a5\u1293 {1}":_.PW=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.PW=="az"?"{0} v\u0259 {1}":
_.PW=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.PW=="de"?"{0} und {1}":_.PW=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.PW=="eu"?"{0} eta {1}":_.PW=="fa"?"{0} \u0648 {1}":_.PW=="fil"?"{0} at {1}":_.PW=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.PW=="hi"?"{0} \u0914\u0930 {1}":_.PW=="hu"?"{0} \u00e9s {1}":_.PW=="hy"?"{0} \u0587 {1}":_.PW=="iw"?"{0} \u05d5-{1}":_.PW=="ja"?"{0}\u3001{1}":_.PW=="ka"?"{0} \u10d3\u10d0 {1}":_.PW=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.PW=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.PW=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.PW=="ko"?"{0} \ubc0f {1}":_.PW=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.PW=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.PW=="lt"?"{0} ir {1}":_.PW=="lv"?"{0} un {1}":_.PW=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.PW=="mn"?"{0}, {1}":_.PW=="mr"?"{0} \u0906\u0923\u093f {1}":_.PW=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.PW=="ne"?"{0} \u0930 {1}":_.PW=="or"?"{0} \u0b13 {1}":_.PW=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.PW=="ro"?"{0} \u0219i {1}":_.PW==
"si"?"{0} \u0dc3\u0dc4 {1}":_.PW=="sl"?"{0} in {1}":_.PW=="sq"?"{0} dhe {1}":_.PW=="sv"?"{0} och {1}":_.PW=="sw"?"{0} na {1}":_.PW=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.PW=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.PW=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.PW=="tr"?"{0} ve {1}":_.PW=="ur"?"{0} \u0627\u0648\u0631 {1}":_.PW=="uz"?"{0} va {1}":_.PW=="vi"?"{0} v\u00e0 {1}":_.PW=="zh-HK"?"{0}\u53ca{1}":_.PW=="zu"?"{0} ne-{1}":_.PW=="af"||_.PW=="nl"?"{0} en {1}":_.PW=="ar"||_.PW==
"ar-XB"?"{0} \u0648{1}":_.PW=="be"||_.PW=="uk"?"{0} \u0456 {1}":_.PW=="cs"||_.PW=="sk"?"{0} a\u00a0{1}":_.PW=="et"||_.PW=="fi"?"{0} ja {1}":_.PW=="fr"||_.PW=="fr-CA"?"{0} et {1}":_.PW=="id"||_.PW=="ms"?"{0} dan {1}":_.PW=="zh-CN"||_.PW=="zh-TW"?"{0}\u548c{1}":_.PW=="da"||_.PW=="is"||_.PW=="no"?"{0} og {1}":_.PW=="es"||_.PW=="es-419"||_.PW=="es-US"?"{0} y {1}":_.PW=="bg"||_.PW=="mk"||_.PW=="ru"||_.PW=="sr"?"{0} \u0438 {1}":_.PW=="en"||_.PW=="en-GB"||_.PW=="en-IN"||_.PW=="en-XA"?"{0} and {1}":_.PW==
"gl"||_.PW=="it"||_.PW=="pt-BR"||_.PW=="pt-PT"?"{0} e {1}":"{0} i {1}";_.PW==="sq"?(c=c.replace("dhe","e"),h=h.replace("dhe","e")):_.PW==="th"?(O=O.replace("{0}"," {0}"),h=h.replace("{0}","{0} "),h=h.replace("{1}"," {1}")):_.PW==="ne"?O=",":_.PW==="zh-CN"?O="":R.includes(_.PW)&&(O=" ");return f.length<2?f.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(_.PW)?f.length===2?
h.replace("{0}",f[0]).replace("{1}",f[1]):u.replace("{0}",f[0])+f.slice(1,-1).join(O)+c.replace("{0}",f[f.length-1]):f.join(O)};
_.X.getTimeParam=function(){return xs5(this.timeString)};
_.X.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var f={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},R;_.Zn(_.wR(),(R=this.data)==null?void 0:R.trackingParams,f,7)};
_.X.onChangeStartAtTimestamp=function(){for(var f=this.startAtTimestamp.value.split(":"),R=0,u=1,O=f.length-1;O>=0;O--)R+=Number(f[O])*u,u*=60;this.updateTimeSecs(R);this.setTimestamp()};
_.X.onOpen=function(){var f=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var R=_.Vm();R?R.getPlayerPromise().then(function(u){u=u.getCurrentTime();f.updateTimeSecs(u)}):qLh()&&this.updateTimeSecs(qLh())};
_.X.setTimestamp=function(){var f=Math.floor(this.currentTimeSecs);_.OJ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!f,timestamp:f||""}])};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Xv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Xv.prototype,"data",void 0);_.B([_.I({value:!1,notify:!0}),_.S("design:type",Boolean)],Xv.prototype,"isStartAtChecked",void 0);_.B([_.I(),_.S("design:type",Number)],Xv.prototype,"currentTimeSecs",void 0);
_.B([_.I({computed:"computeTimeString(currentTimeSecs)"}),_.S("design:type",String)],Xv.prototype,"timeString",void 0);_.B([_.I({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.S("design:type",String)],Xv.prototype,"timeStringA11y",void 0);_.B([_.a4("#start-at-timestamp"),_.S("design:type",Object)],Xv.prototype,"startAtTimestamp",void 0);Xv=_.B([_.DO({is:"yt-start-at-renderer",disableElementRegistration:!0})],Xv);
_.G(Xv,"yt-start-at-renderer",function(){if(F9l===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;ast===void 0&&(ast=document.createElement("template"));var O=ast;u.call(R,O.content.cloneNode(!0),f.content.firstChild);F9l=f}f=F9l;return f},{mode:2});var wde;var mA2;var QD2=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),W9t=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),El9=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var t$X={};t$X.YtBindingExpressionsBehavior={identity:_.B0,msg:function(f,R){R=R===void 0?{}:R;return _.Fa(f,R,f)},
msgPlural:function(f,R){return _.wA(f,R)},
getMusicIconFromType:function(f){if(_.E("music_web_enable_icon_wil"))f=_.li(f);else if(W9t.has(f))f="yt-sys-icons:"+W9t.get(f);else{var R=QD2.get(f)||_.li(f).split(":")[1];R=_.pVl(R);var u;f=((u=El9.get(f))!=null?u:"yt-sys-icons:")+R}return f}};var CdS;var ye9;var dA5;var N22=document.head,L9K=N22.appendChild,bql;if(dA5===void 0){var pdh=document.createElement("template");_.N(pdh,'\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>');dA5=pdh}bql=dA5;L9K.call(N22,bql.content);var h$=function(){var f=_.U.apply(this,arguments)||this;f.screenLayer=7;return f};
_.y(h$,_.U);h$.prototype.getScreenLayer=function(){return this.screenLayer};
h$.prototype.onTap=function(f){f&&f.detail&&(f.detail.x||f.detail.y)&&_.b(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.hH(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(f=this.getScreenLayer(),_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:f}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Vy.Object.defineProperties(h$.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()}}});
h$.prototype.onTap=h$.prototype.onTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],h$.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],h$.prototype,"data",void 0);_.B([_.T("data.title"),_.S("design:type",Object),_.S("design:paramtypes",[])],h$.prototype,"title",null);
_.B([_.T("data.serviceName"),_.S("design:type",String),_.S("design:paramtypes",[])],h$.prototype,"icon",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],h$.prototype,"onTap",null);h$=_.B([_.DO({is:"yt-share-target-renderer",disableElementRegistration:!0})],h$);
_.G(h$,"yt-share-target-renderer",function(){if(ye9===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;CdS===void 0&&(CdS=document.createElement("template"));var O=CdS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);ye9=f}f=ye9;return f},{mode:2});var jDm;var DAe;var Zd=function(){var f=_.U.apply(this,arguments)||this;f.SHARE_TARGET_WIDTH=70;f.SHARE_TARGET_MARGIN_RIGHT=8;f.PAGE_SCROLL_SPEED=9;f.actionMap={"yt-share-panel-reset-action":"onReset_"};return f};
_.y(Zd,_.U);_.X=Zd.prototype;_.X.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.X.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.b(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.b(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.X.onReset_=function(){if(_.b(this.hostElement).querySelector("#list")){var f=_.b(this.hostElement).querySelector("#list");var R=_.b(this.hostElement).querySelector("#list");var u=R.offsetLeft,O=R.offsetParent;O||_.n5A(R)!="fixed"||(O=_.jF(R).documentElement);if(O){if(_.co&&!_.hM(58)){var c=_.uiA(O);u+=c.left}else Number(_.LX7)>=8&&!(Number(_.LX7)>=9)&&(c=_.uiA(O),u-=c.left);R=_.fkE(O)?O.clientWidth-(u+R.offsetWidth):u}else R=u;KiS(f,R);this.updateScrollButtons_()}};
_.X.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.X.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.X.onScrollWheel_=function(f){f.stopPropagation();f.preventDefault();var R=kWe(_.b(this.hostElement).querySelector("#list"));f=Math.abs(f.deltaX)>Math.abs(f.deltaY)?f.deltaX:f.deltaY;KiS(_.b(this.hostElement).querySelector("#list"),R+f);this.updateScrollButtons_()};
_.X.smoothScrollByOnePage_=function(f){var R=_.b(this.hostElement).querySelector("#list"),u=(Math.floor(R.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,O=kWe(R),c=u*(f?1:-1),h=this.PAGE_SCROLL_SPEED,l=this.updateScrollButtons_.bind(this),K=0,q;(function w(){K+=h;q=K/u*2;KiS(R,O+c*(q<1?q*q:-q*q+4*q-2));K<u?window.requestAnimationFrame(w):l()})()};
_.X.updateScrollButtons_=function(){var f=kWe(_.b(this.hostElement).querySelector("#list")),R=_.b(this.hostElement).querySelector("#list").scrollWidth-_.b(this.hostElement).querySelector("#list").clientWidth;_.b(this.hostElement).querySelector("#scroll-button-back").hidden=f<=0;_.b(this.hostElement).querySelector("#scroll-button-forward").hidden=f>=R};
Zd.prototype.onScrollWheel_=Zd.prototype.onScrollWheel_;Zd.prototype.onDataChanged_=Zd.prototype.onDataChanged_;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Zd.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(t$X.YtBindingExpressionsBehavior),_.S("design:type",Object)],Zd.prototype,"ytBindingExpressionsBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zd.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zd.prototype,"onDataChanged_",null);_.B([_.Kf("wheel"),_.S("design:type",Function),_.S("design:paramtypes",[WheelEvent]),_.S("design:returntype")],Zd.prototype,"onScrollWheel_",null);
Zd=_.B([_.DO({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Zd);
_.G(Zd,"yt-third-party-share-target-section-renderer",function(){if(DAe===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;jDm===void 0&&(jDm=document.createElement("template"));var O=jDm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);DAe=f}f=DAe;return f},{mode:2});var l9=function(){return _.U.apply(this,arguments)||this};
_.y(l9,_.U);l9.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"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],l9.prototype,"data",void 0);l9=_.B([_.DO({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],l9);
_.G(l9,"yt-third-party-network-section-renderer",function(){if(mA2===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;wde===void 0&&(wde=document.createElement("template"));var O=wde;u.call(R,O.content.cloneNode(!0),f.content.firstChild);mA2=f}f=mA2;return f},{mode:2});_.ii(_.nf(function(f){return _.a("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.a("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.a(_.y5,{data:function(){return f.data().firstPartyItems}},{listItemViewModel:_.bp})))},"ng"),"first-party-network-section-view-model",{props:{data:_.SG}});var Jee=_.Sg(["data:image/svg+xml;charset=UTF-8;base64,",""]),kB=function(){var f=_.U.apply(this,arguments)||this;f.screenLayer=7;f.qrCodeEnabled=_.E("web_enable_sharing_qr_code");f.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return f};
_.y(kB,_.U);_.X=kB.prototype;_.X.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.X.attached=function(){this.JSC$17830_scroller&&(this.JSC$17830_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17830_scroller.attached&&typeof this.JSC$17830_scroller.attached==="function"&&this.JSC$17830_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.X.onDataChanged=function(){var f=this,R;(R=this.data)!=null&&R.contents&&(this.hostElement.setAttribute("links-only","true"),_.X4(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.su(this,function(){_.ul(f.hostElement,"yt-refit");f.focusSharePanelHeader()}))};
_.X.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.X.handleSetTimestamp=function(f){var R=this.shortUrl();f.isSet&&(R=_.U2(R,"t",f.timestamp));this.maybeRenderQrCode(R)};
_.X.shortUrl=function(){var f,R=(f=this.data)==null?void 0:f.contents;if(R)for(f=0;f<R.length;f++){var u=void 0,O=void 0;if((u=R[f])==null?0:(O=u.thirdPartyNetworkSection)==null?0:O.copyLinkContainer){var c=O=u=void 0;return(c=_.t((u=R[f])==null?void 0:(O=u.thirdPartyNetworkSection)==null?void 0:O.copyLinkContainer,AOz))==null?void 0:c.shortUrl}}};
_.X.maybeRenderQrCode=function(f){var R=this,u,O,c,h,l,K,q,F,w;return _.k(function(m){if(m.nextAddress==1){u=_.b(R.hostElement).querySelector("#qr-code");if(!R.qrCodeEnabled||!f)return u&&(u.style.display="none"),m.return();O=_.eCt(_.vh().resolve(_.kr),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});c=document.createElement("div");return typeof O==="function"?(O(c),m.jumpTo(2)):_.A(m,O,3)}m.nextAddress!=2&&(h=m.yieldResult,h(c));q=(l=c)==null?void 0:(K=l.firstChild)==null?void 0:K.firstChild;
F=document.createElement("img");w=_.dQ(Jee,btoa(q.outerHTML));F.onload=function(){var W={canvas:u,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:F},C=new oNa;nNm(C,f);VV5(C,!1,YWw(C));var d=C.modules,p=Object.assign({},gIm,W);d=structuredClone(d);W=d.length;var J,M=(J=p.canvas)!=null?J:document.createElement("canvas");J=p.cellSize;C=p.logo;var P,g=(P=p.logoSize)!=null?P:Math.floor(W/4);W%2!==g%2&&g++;var x=p.logoPadding,fh=p.backgroundColor;P=W*J;var V=
p.width,ZD=0;V&&(ZD=p.padding,ZD=Math.ceil(ZD*P/(V-ZD*2)),M.style.width=V+"px",M.style.height=V+"px");M.width!==P+ZD*2&&(M.width=P+ZD*2);M.height!==P+ZD*2&&(M.height=P+ZD*2);P=M.getContext("2d");p.autoClear&&P.clearRect(0,0,M.width,M.height);P.fillStyle=fh;P.beginPath();P.roundRect(0,0,M.width,M.height,p.borderRadius);P.fill();P.save();P.translate(ZD,ZD);if(C)for(M=Math.floor(W-g)/2-x,x=Math.floor(W+g)/2+x,fh=M;fh<x;fh++)for(V=M;V<x;V++)d[fh][V]=!1;for(M=0;M<W;M++)for(x=0;x<W;x++)(M<7&&x<7||M<7&&
x>=W-7||M>=W-7&&x<7)&&(d[M][x]=!1);var mP;M=(mP=p.markerColor)!=null?mP:p.color;i0X(P,0,0,J,M);i0X(P,J*(W-7),0,J,M);i0X(P,0,J*(W-7),J,M);switch(p.cellStyle){case 0:mP=d;d=mP.length;M=p.cellSize;P.beginPath();for(x=0;x<d;x++)for(fh=0;fh<d;fh++)mP[x][fh]&&P.rect(x*M,fh*M,M,M);P.fillStyle=p.color;P.fill();break;case 1:mP=d;d=mP.length;M=p.cellSize;x=M*p.relativeCircleSize;P.fillStyle=p.color;P.beginPath();for(p=0;p<d;p++)for(fh=0;fh<d;fh++)mP[p][fh]&&(P.beginPath(),P.ellipse((p+.5)*M,(fh+.5)*M,x/2,x/
2,0,0,2*Math.PI),P.fill());P.fill();break;case 2:mP=d;d=mP.length;M=p.cellSize;P.fillStyle=p.color;p=[[1,1],[-1,1],[-1,-1],[1,-1]];P.beginPath();for(x=0;x<d;x++)for(fh=0;fh<d;fh++)if(mP[x][fh])P.roundRect(x*M,fh*M,M,M,M/2),x+1<d&&mP[x+1][fh]&&P.rect(x*M+M/2,fh*M,M,M),fh+1<d&&mP[x][fh+1]&&P.rect(x*M,fh*M+M/2,M,M);else{V=x*M+M/2;ZD=fh*M+M/2;for(var NX=0;NX<4;NX++){var jt=_.Z(p[NX]),Jn=jt.next().value;jt=jt.next().value;x+Jn>=0&&x+Jn<d&&fh+jt>=0&&fh+jt<d&&mP[x+Jn][fh]&&mP[x][fh+jt]&&mP[x+Jn][fh+jt]&&
(Jn=NX*Math.PI/2,jt=M/2,P.moveTo(V+jt*Math.cos(Jn),ZD+jt*Math.sin(Jn)),P.arc(V,ZD,M/2,Jn,Jn+Math.PI/2,!1),P.lineTo(V+jt*(Math.cos(Jn)-Math.sin(Jn)),ZD+jt*(Math.cos(Jn)+Math.sin(Jn))),P.lineTo(V+jt*Math.cos(Jn),ZD+jt*Math.sin(Jn)))}}P.fill()}C&&P.drawImage(C,(W-g)*J/2,(W-g)*J/2,g*J,g*J);P.restore();u.style.removeProperty("display")};
F.src=_.F3(w);_.KG(m)})};
_.X.hasCommunityPostRenderer=function(){var f,R,u,O;return!!((f=this.data)==null?0:(R=f.header)==null?0:(u=R.sharePanelHeaderRenderer)==null?0:(O=u.communityPost)==null?0:O.communityPostSectionRenderer)};
_.X.onTapClose=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.X.getScreenLayer=function(){return this.screenLayer};
_.X.logSharePanelPage=function(){if(!_.E("enable_share_panel_navigation_logging_fix_on_web")){var f;if((f=this.data)!=null&&f.trackingParams){f=this.data.trackingParams;var R=this.parentClickTrackingParams;R=R?_.t4(R):void 0;var u=_.wR();_.O1(u,21760,R,{layer:7,parentLayer:0});u.graftServerVe(f,void 0,7);_.sP().dispatch(_.OP({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
kB.prototype.onDataChanged=kB.prototype.onDataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],kB.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],kB.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],kB.prototype,"data",void 0);_.B([_.I({value:_.Fa("SBOX_INAPPROPRIATE_CANCEL")}),_.S("design:type",String)],kB.prototype,"closeButtonAriaLabel",void 0);_.B([_.a4("yt-share-panel-header-renderer"),_.S("design:type",HTMLElement)],kB.prototype,"header",void 0);_.B([_.I({selector:function(f){return f.share.parentClickTrackingParams}}),
_.S("design:type",String)],kB.prototype,"parentClickTrackingParams",void 0);_.B([_.I(),_.S("design:type",Object)],kB.prototype,"qrCodeEnabled",void 0);_.B([_.a4("#scroller"),_.S("design:type",Object)],kB.prototype,"JSC$17830_scroller",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kB.prototype,"onDataChanged",null);kB=_.B([_.e({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],kB);
_.G(kB,"ytd-unified-share-panel-renderer",function(){if(ceX!==void 0)return ceX;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ceX=f},{mode:1});var zVa;var K_=function(){var f=_.U.apply(this,arguments)||this;f.modernModal=_.E("kevlar_sign_in_modal_modernization");return f};
_.y(K_,_.U);K_.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
K_.prototype.computeShouldHideOldButtons=function(){var f;return!((f=this.data)==null?0:f.button)};
_.Vy.Object.defineProperties(K_.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var f,R;if(this.modernModal&&((f=this.data)==null?0:(R=f.button)==null?0:R.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var u,O;return(u=this.data)==null?void 0:(O=u.button)==null?void 0:O.buttonRenderer}}});
_.B([_.I(),_.S("design:type",Object)],K_.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],K_.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],K_.prototype,"modernModal",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],K_.prototype,"buttonRendererData",null);
K_=_.B([_.e({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],K_);
_.G(K_,"ytd-modal-with-title-and-button-renderer",function(){if(zVa!==void 0)return zVa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zVa=f},{mode:1});var T2N;var q8=function(){return _.U.apply(this,arguments)||this};
_.y(q8,_.U);q8.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("page-changed",this.page))};
q8.prototype.pageChangedForBinding=q8.prototype.pageChangedForBinding;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],q8.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],q8.prototype,"page",void 0);_.B([_.qM("page"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],q8.prototype,"pageChangedForBinding",null);
q8=_.B([_.e({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],q8);
_.G(q8,"ytd-account-item-section-header-renderer",function(){if(T2N!==void 0)return T2N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return T2N=f},{mode:1});var Hq5;var A$=function(){return _.U.apply(this,arguments)||this};
_.y(A$,_.U);A$.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"}}}};
A$.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],A$.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],A$.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Function)],A$.prototype,"onAccountItemTap",void 0);
A$=_.B([_.e({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],A$);
_.G(A$,"ytd-account-item-section-renderer",function(){if(Hq5!==void 0)return Hq5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Hq5=f},{mode:1});var IsN;var M$t;var aT=function(){return _.U.apply(this,arguments)||this};
_.y(aT,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aT.prototype,"data",void 0);aT=_.B([_.e({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],aT);
_.G(aT,"ytd-accounts-dialog-header-renderer",function(){if(M$t!==void 0)return M$t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return M$t=f},{mode:1});var Pdt;var Fv=function(){return _.U.apply(this,arguments)||this};
_.y(Fv,_.U);Fv.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Fv.prototype,"data",void 0);Fv=_.B([_.e({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Fv);
_.G(Fv,"ytd-google-account-header-renderer",function(){if(Pdt!==void 0)return Pdt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Pdt=f},{mode:1});var wL=function(){return _.U.apply(this,arguments)||this};
_.y(wL,_.U);wL.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"}}}};
wL.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("page-changed",this.page))};
wL.prototype.pageChangedForBinding=wL.prototype.pageChangedForBinding;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wL.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],wL.prototype,"page",void 0);
_.B([_.qM("page"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wL.prototype,"pageChangedForBinding",null);wL=_.B([_.e({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],wL);
_.Ox()(wL,"ytd-account-section-list-renderer",function(){if(IsN===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);IsN=f}f=IsN;return f},{allowedProps:["data"],
mode:1});var UA5;var mb=function(){var f=_.U.apply(this,arguments)||this;f.enableHandlesAccountMenuSwitcher=_.E("enable_handles_account_menu_switcher");return f};
_.y(mb,_.U);mb.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
mb.prototype.dataChanged=mb.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mb.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],mb.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.B([_.a4("#avatar"),_.S("design:type",Object)],mb.prototype,"avatar",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mb.prototype,"dataChanged",null);mb=_.B([_.e({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],mb);
_.Ox()(mb,"ytd-active-account-header-renderer",function(){if(UA5===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);UA5=f}f=UA5;return f},{allowedProps:["data"],
mode:1});var eVl;var G55;var Qr=function(){return _.U.apply(this,arguments)||this};
_.y(Qr,_.U);Qr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Qr.prototype.onBackTap=function(){_.ul(this.hostElement,"yt-menu-back-tapped")};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Qr.prototype,"data",void 0);Qr=_.B([_.e({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Qr);
_.Ox()(Qr,"ytd-simple-menu-header-renderer",function(){if(G55===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);G55=f}f=G55;return f},{allowedProps:["data"],
mode:2});var B2S;var Wa=function(){return _.U.apply(this,arguments)||this};
_.y(Wa,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Wa.prototype,"data",void 0);Wa=_.B([_.e({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Wa);
_.G(Wa,"ytd-comment-video-thumbnail-header-renderer",function(){if(B2S!==void 0)return B2S;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return B2S=f},{mode:1});var olh;var Eg=function(){return _.U.apply(this,arguments)||this};
_.y(Eg,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Eg.prototype,"data",void 0);Eg=_.B([_.e({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Eg);
_.G(Eg,"ytd-abuse-type-selector-renderer",function(){if(olh!==void 0)return olh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return olh=f},{mode:1});var xA9;var t$=function(){return _.U.apply(this,arguments)||this};
_.y(t$,_.U);t$.prototype.attached=function(){var f=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){f.additionalContextInput.focusTextInput()})};
t$.prototype.handleAdditionalContextChanged=function(){var f=this;_.UU(this,"ytd-report-channel-additional-context-update",function(){f.ytdReduxBehavior.dispatch(_.OP({type:"ADDITIONAL_CONTEXT_UPDATED",payload:f.additionalContext}))},300)};
t$.prototype.updateAdditionalContextFromBinding=function(f){this.additionalContext=f.detail.value};
t$.prototype.handleAdditionalContextChanged=t$.prototype.handleAdditionalContextChanged;_.B([_.z(_.zH),_.S("design:type",Object)],t$.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",String)],t$.prototype,"additionalContext",void 0);_.B([_.I({selector:function(f){return f.reportChannelAbuse.additionalContext}}),
_.S("design:type",String)],t$.prototype,"additionalContextRedux",void 0);_.B([_.I(),_.S("design:type",Object)],t$.prototype,"data",void 0);_.B([_.a4("yt-text-input-form-field-renderer"),_.S("design:type",Object)],t$.prototype,"additionalContextInput",void 0);_.B([_.qM("additionalContext"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t$.prototype,"handleAdditionalContextChanged",null);
t$=_.B([_.e({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],t$);
_.G(t$,"ytd-report-channel-modal-additional-context-renderer",function(){if(xA9!==void 0)return xA9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return xA9=f},{mode:1});var Scm;var C_=function(){var f=_.U.apply(this,arguments)||this;f.nextButtonDisabled=null;f.submitEndpoint=null;f.navigationEndpoint=null;f.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return f};
_.y(C_,_.U);_.X=C_.prototype;_.X.computeNextButtonData=function(f,R,u){var O={};R&&(O.navigationEndpoint=R);u&&(O.serviceEndpoint=u);f&&f.buttonRenderer&&_.dq.extend(O,f.buttonRenderer);return O};
_.X.handleReportChannelModalDisableNextButtonAction=function(f){this.setNextButtonIsDisabled(f)};
_.X.handleReportFormEndpointUpdateAction=function(f){this.setNextButtonIsDisabled(!!f.disableSubmitButton);this.resetEndpointData();f.submitEndpoint?this.submitEndpoint=f.submitEndpoint:f.submitNavigationEndpoint&&(this.navigationEndpoint=f.submitNavigationEndpoint)};
_.X.handleSignalActionSubmitForm=function(){var f,R=Object.keys(((f=this.reportChannelAbuseForm)==null?void 0:f.selectedVideoIds)||{}),u;f=((u=this.reportChannelAbuseForm)==null?void 0:u.additionalContext)||"";var O;u=((O=this.reportChannelAbuseForm)==null?void 0:O.impersonatedChannelUrl)||"";var c;if((c=this.data)==null?0:c.submitEndpoint){R={impersonated_channel_url:u,text:f,video_ids:R};var h;_.vh().resolve(_.rv).resolveCommand((h=this.data)==null?void 0:h.submitEndpoint,{form:Object.assign({},
R,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.X.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.X.onYtServiceRequestError=function(f){this.setNextButtonIsDisabled(!1);_.f9(this.hostElement,f.detail.error.message)};
_.X.setNextButtonIsDisabled=function(f){this.set("data.nextButton.buttonRenderer.isDisabled",f)};
_.X.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
C_.prototype.onYtServiceRequestError=C_.prototype.onYtServiceRequestError;C_.prototype.onYtServiceRequestCompleted=C_.prototype.onYtServiceRequestCompleted;_.B([_.I(),_.S("design:type",Object)],C_.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],C_.prototype,"nextButtonDisabled",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],C_.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],C_.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],C_.prototype,"submitEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],C_.prototype,"navigationEndpoint",void 0);_.B([_.I({selector:function(f){return f.reportChannelAbuse}}),
_.S("design:type",Object)],C_.prototype,"reportChannelAbuseForm",void 0);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],C_.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],C_.prototype,"onYtServiceRequestError",null);
C_=_.B([_.e({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],C_);
_.G(C_,"ytd-report-channel-modal-footer-renderer",function(){if(Scm!==void 0)return Scm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Scm=f},{mode:1});var $Am;var yr=function(){var f=_.U.apply(this,arguments)||this;f.boundOnTapDismissButton=function(){f.closePopup()};
return f};
_.y(yr,_.U);yr.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
yr.prototype.handleDataChanged=function(){_.Vb(this.hostElement)};
yr.prototype.closePopup=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
yr.prototype.handleDataChanged=yr.prototype.handleDataChanged;_.B([_.I(),_.S("design:type",Object)],yr.prototype,"boundOnTapDismissButton",void 0);_.B([_.I(),_.S("design:type",Object)],yr.prototype,"data",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yr.prototype,"handleDataChanged",null);yr=_.B([_.e({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],yr);
_.G(yr,"ytd-report-channel-modal-header-renderer",function(){if($Am!==void 0)return $Am;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return $Am=f},{mode:1});var gl5;var dL=function(){var f=_.U.apply(this,arguments)||this;f.autoValidate=!1;f.invalid=!1;f.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return f};
_.y(dL,_.U);_.X=dL.prototype;_.X.attached=function(){var f=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){f.channelUrlInput.focusTextInput()})};
_.X.disableNextButton=function(f){_.OJ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[f])};
_.X.handleImpersonatedChannelUrlChanged=function(){var f=this;this.disableNextButton(!0);this.invalid=!1;_.UU(this,"ytd-report-channel-impersonated-channel-update",function(){var R=f.impersonatedChannelUrl.trim();f.ytdReduxBehavior.dispatch(_.OP({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:R}));var u;((u=f.data)==null?0:u.submitEndpoint)&&R&&_.vh().resolve(_.rv).resolveCommand(f.data.submitEndpoint,{form:{impersonated_channel_url:R,element:f.hostElement}})},500)};
_.X.handleModifyReportFormCommand=function(f){this.invalid=this.get("modifyReportFormCommand.action",f)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.X.updateInvalidFromBinding=function(f){this.invalid=f.detail.value};
_.X.updateImpersonatedChannelUrlFromBinding=function(f){this.impersonatedChannelUrl=f.detail.value};
dL.prototype.handleImpersonatedChannelUrlChanged=dL.prototype.handleImpersonatedChannelUrlChanged;_.B([_.z(_.zH),_.S("design:type",Object)],dL.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],dL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dL.prototype,"autoValidate",void 0);_.B([_.I(),_.S("design:type",Object)],dL.prototype,"invalid",void 0);
_.B([_.I(),_.S("design:type",String)],dL.prototype,"impersonatedChannelUrl",void 0);_.B([_.I({selector:function(f){return f.reportChannelAbuse.impersonatedChannelUrl}}),
_.S("design:type",String)],dL.prototype,"impersonatedChannelUrlRedux",void 0);_.B([_.I(),_.S("design:type",Object)],dL.prototype,"data",void 0);_.B([_.a4("#text-input"),_.S("design:type",Object)],dL.prototype,"channelUrlInput",void 0);_.B([_.qM("impersonatedChannelUrl"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dL.prototype,"handleImpersonatedChannelUrlChanged",null);
dL=_.B([_.e({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],dL);
_.G(dL,"ytd-report-channel-modal-impersonation-renderer",function(){if(gl5!==void 0)return gl5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return gl5=f},{mode:1});var sD9;var nle;var N8=function(){return _.U.apply(this,arguments)||this};
_.y(N8,_.U);N8.prototype.onCheckboxToggled=function(f){var R,u,O=(u=_.t((R=this.data)==null?void 0:R.video,_.HY))==null?void 0:u.videoId;O&&this.ytdReduxBehavior.dispatch(f.target.checked?_.OP({type:"VIDEO_SELECTED",payload:O}):_.OP({type:"VIDEO_UNSELECTED",payload:O}))};
N8.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Vy.Object.defineProperties(N8.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var f,R=(f=this.data)==null?void 0:f.video;if(!R)return{};var u;f=(u=_.t(R,_.HY))==null?void 0:u.navigationEndpoint;if(!f)return R;_.t(f==null?void 0:f.commandMetadata,_.vc)&&(_.t(f.commandMetadata,_.vc).ignoreNavigation=!0);return R}}});
_.B([_.I({reflectToAttribute:!0,selector:function(f,R){return R in f.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.S("design:type",Boolean)],N8.prototype,"checked",void 0);_.B([_.I(),_.S("design:type",Object)],N8.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],N8.prototype,"video",null);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],N8.prototype,"ytdReduxBehavior",void 0);N8=_.B([_.e({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],N8);
_.G(N8,"ytd-selectable-video-renderer",function(){if(nle!==void 0)return nle;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return nle=f},{mode:1});var L_=function(){var f=_.U.apply(this,arguments)||this;f.monitorScroll=!0;return f};
_.y(L_,_.U);L_.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],L_.prototype,"data",void 0);L_=_.B([_.e({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],L_);
_.G(L_,"ytd-selectable-video-list-renderer",function(){if(sD9!==void 0)return sD9;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return sD9=f},{mode:1});var V$S;_.j6("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var b9=function(){return _.U.apply(this,arguments)||this};
_.y(b9,_.U);b9.prototype.onChange=function(f){if(f=_.gY(f).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.E("kevlar_command_handler_migration_killswitch"))_.ZW(this.hostElement,f,this.hostElement);else{f=_.Z(f);for(var R=f.next();!R.done;R=f.next())this.ytComponentBehavior.resolveCommand(R.value)}};
b9.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
b9.prototype.updateDataToggledFromBinding=function(f){this.set("data.toggled",f.detail.value)};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],b9.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],b9.prototype,"data",void 0);_.B([_.I({computed:"isEnabled(data)"}),_.S("design:type",Boolean)],b9.prototype,"enabled",void 0);b9=_.B([_.e({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],b9);
_.G(b9,"ytd-toggle-item-renderer",function(){if(V$S!==void 0)return V$S;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return V$S=f},{mode:1});var Yce;var vlN;var iqm;var p_=function(){var f=_.U.apply(this,arguments)||this;f.setVisible=!1;f.boundOnSubmitButtonClick=function(){f.onSubmitButtonClick()};
f.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return f};
_.y(p_,_.U);p_.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}}}}}};
p_.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
p_.prototype.onSubmitButtonClick=function(){var f;((f=this.data)==null?0:f.submitEndpoint)&&!_.E("enable_ytc_refunds_submit_form_signal_action")&&_.hH(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
p_.prototype.handleSignalActionSubmitForm=function(){var f;((f=this.data)==null?0:f.submitEndpoint)&&_.hH(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Vy.Object.defineProperties(p_.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.hiddenByDefault)&&!this.setVisible}}});
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],p_.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],p_.prototype,"setVisible",void 0);_.B([_.I(),_.S("design:type",Object)],p_.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],p_.prototype,"surveyFeedbackData",void 0);_.B([_.I(),_.S("design:type",Object)],p_.prototype,"boundOnSubmitButtonClick",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data","setVisible"),_.S("design:type",Object),_.S("design:paramtypes",[])],p_.prototype,"visibilityHidden",null);p_=_.B([_.DO({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],p_);
_.G(p_,"yt-flow-footer-renderer",function(){if(iqm===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;vlN===void 0&&(vlN=document.createElement("template"));var O=vlN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);iqm=f}f=iqm;return f},{mode:2});var jC=function(){return _.U.apply(this,arguments)||this};
_.y(jC,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],jC.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jC.prototype,"data",void 0);_.B([_.I({selector:function(f){return f.ypc.surveyFeedbackData}}),
_.S("design:type",Object)],jC.prototype,"surveyFeedbackData",void 0);jC=_.B([_.e({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],jC);
_.G(jC,"ytd-flow-footer-renderer",function(){if(Yce!==void 0)return Yce;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Yce=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var re2;var fZX;var Dd=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return f};
_.y(Dd,_.U);_.X=Dd.prototype;_.X.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.DB("multiPageMenuSectionItems")}}};
_.X.handleHideEnclosingAction_=function(f){if(this.data&&this.data.items)for(var R=0;R<this.data.items.length;R++){var u=this.data.items[R].notificationRenderer;if(u&&u.notificationId==f.hideEnclosingAction.notificationId){this.splice("data.items",R,1);_.OJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.X.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.X4(this.hostElement,"hidden",!0)};
_.X.updateMenu_=function(f){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&f&&!f.doNotRefreshInbox){f=this.data.continuations;for(var R=0;R<f.length;R++)if(f[R].invalidationContinuationData){var u=void 0;var O=(u=f[R].invalidationContinuationData)==null?void 0:u.continuation;break}f=_.dq.clone(this.data.continuationUpdateEndpoint||null);f.continuation=O;f.click_tracking_params=this.data.trackingParams;_.hH(this.hostElement,[f])}};
_.X.onServiceRequestCompleted_=function(f,R){if(this.data&&(f=R.actions)){R=0;for(var u=f.length;R<u;R++){var O=_.t(f[R],_.sGf);if(!O)break;if((O.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||O.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&O.continuationItems&&this.data.items){var c=this.data.items.length-1;this.data.items[c].continuationItemRenderer&&this.splice.apply(this,["data.items",c,1].concat(O.continuationItems))}}}};
Dd.prototype.onServiceRequestCompleted_=Dd.prototype.onServiceRequestCompleted_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Dd.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Dd.prototype,"data",void 0);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],Dd.prototype,"onServiceRequestCompleted_",null);Dd=_.B([_.DO({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Dd);
_.Ox()(Dd,"yt-multi-page-menu-section-renderer",function(){if(fZX===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;re2===void 0&&(re2=document.createElement("template"));var O=re2;u.call(R,O.content.cloneNode(!0),f.content.firstChild);fZX=f}f=fZX;return f},{allowedProps:["data"],
mode:2});var Rgl;var uGX;var J$=function(){return _.U.apply(this,arguments)||this};
_.y(J$,_.U);J$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Vy.Object.defineProperties(J$.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.progress)==null?0:this.data.progress*100}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],J$.prototype,"data",void 0);_.B([_.T("data.progress"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],J$.prototype,"showProgressBar",null);
_.B([_.T("data.progress"),_.S("design:type",Number),_.S("design:paramtypes",[])],J$.prototype,"progress",null);J$=_.B([_.DO({is:"yt-flow-header-renderer",disableElementRegistration:!0})],J$);
_.G(J$,"yt-flow-header-renderer",function(){if(uGX===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Rgl===void 0&&(Rgl=document.createElement("template"));var O=Rgl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);uGX=f}f=uGX;return f},{mode:2});var OIS;var cEN;var zn=function(){return _.U.apply(this,arguments)||this};
_.y(zn,_.U);zn.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zn.prototype,"data",void 0);zn=_.B([_.DO({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],zn);
_.G(zn,"yt-post-confirmation-flow-step-renderer",function(){if(cEN===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;OIS===void 0&&(OIS=document.createElement("template"));var O=OIS;u.call(R,O.content.cloneNode(!0),f.content.firstChild);cEN=f}f=cEN;return f},{mode:2});var XX5;var hg2;var Tn=function(){return _.U.apply(this,arguments)||this};
_.y(Tn,_.U);
Tn.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Tn.prototype,"data",void 0);Tn=_.B([_.DO({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Tn);
_.G(Tn,"yt-refund-confirmation-flow-step-renderer",function(){if(hg2===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;XX5===void 0&&(XX5=document.createElement("template"));var O=XX5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);hg2=f}f=hg2;return f},{mode:2});_.RI(Smz);_.RI($sw);var g7K=_.WJ({avatarViewModel:_.NC});_.RI(s$m);var n72=_.WJ({commentInteractionViewModel:$sw,sharedSubscriptionViewModel:s$m,buttonViewModel:_.TS});_.RI(Vdm);_.RI(Ymw);_.RI(v7l);_.RI(iaN);_.RI(rjS);var fWz=_.WJ({profileIdentityInfoViewModel:_.uVN,profileInfoViewModel:rjS});_.RI(R4a);_.hS(R4a,"yt-profile-card-view-model",{propNames:["data"]});var Ha=function(){var f=_.U.apply(this,arguments)||this;f.enableFocusFix=_.E("music_web_enable_focus_on_setting_menu_fix")&&_.Hh("IS_MOBILE_WEB",!1);f.covered=!1;f.hideMenu=!1;f.isCommentNotificationOnProfileCard=!1;f.scrolledByTouch=!1;f.disableBackdropFilter=_.E("web_disable_backdrop_filter");f.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return f};
_.y(Ha,_.U);_.X=Ha.prototype;
_.X.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"}}}};
_.X.ready=function(){var f=this;this.JSC$17939_containerElement.addEventListener("scroll",function(){f.ytRendererBehavior.markDirty()})};
_.X.attributeChanged=function(f,R){f==="menu-style"&&_.OJ(this.hostElement,"yt-multi-page-menu-closed-action",[R])};
_.X.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ks(this,this.focusOnStampFinished))};
_.X.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ks(this,this.focusOnStampFinished))};
_.X.reset=function(){this.closeJobId&&(_.JA.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.X.focusOnStampFinished=function(f){f.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ks(this,this.focusOnStampFinished)),this.doFocus())};
_.X.doFocus=function(){var f=_.h5A(this.sectionsElement);f.length&&f[0].focus()};
_.X.computeMenuStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.X.computeIsCommentNotificationOnProfileCard=function(f){return _.E("enable_profile_cards_on_comments")&&f.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.X.computeHideMenu=function(f,R){return f||!(!R||!R.showLoadingSpinner)};
_.X.onPopupClosed=function(){this.isPopUpOpen=!1;_.OJ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.X.onPopupOpened=function(f,R){this.isPopUpOpen=!0;R.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.ul(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.OP({type:"CHANNEL_REPORT_RESET"})))};
_.X.onYtNavigate=function(f,R){this.shouldCloseOnNavigateEvent(R.endpoint)&&_.OJ(this.hostElement,"yt-close-all-popups-action")};
_.X.handleEndpoint=function(f){f=_.t(f,_.pN);!this.isCommentNotificationOnProfileCard&&f&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17939_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.X.handleActions=function(f){for(var R=0,u=f.length;R<u;R++){var O=_.t(f[R],wel);O&&this.handleGetMultiPageMenuAction(O);(O=_.t(f[R],_.sGf))&&this.handleAppendContinuationItemsAction(O)}};
_.X.onServiceRequestSentOrCompleted=function(f,R){f.detail&&f.detail.endpoint&&this.handleEndpoint(f.detail.endpoint);R.actions&&this.handleActions(R.actions)};
_.X.handleGetMultiPageMenuAction=function(f){var R=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.b(this.submenuElement).appendChild(R);(f=f.menu.multiPageMenuRenderer)&&this.logSubmenu(f);R.data=f;R.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.X.handleAppendContinuationItemsAction=function(f){if(this.data&&f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&f.continuationItems&&this.data.sections){var R=this.data.sections.length-1;this.data.sections[R].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),R--);if(this.data.sections[R].multiPageMenuNotificationSectionRenderer&&f.continuationItems){f=_.Z(f==null?void 0:f.continuationItems);for(var u=f.next();!u.done;u=f.next())if(u=u.value,_.t(u,oPS)){var O=
void 0,c=void 0,h=void 0,l=void 0,K=void 0;((O=this)==null?0:(c=O.data)==null?0:(h=c.sections)==null?0:(l=h[R])==null?0:(K=l.multiPageMenuNotificationSectionRenderer)==null?0:K.items)&&this.push("data.sections."+R+".multiPageMenuNotificationSectionRenderer.items",u)}else if(_.t(u,_.H6C)||_.t(u,_.OX))this.push("data.sections",u),R++}}};
_.X.logSubmenu=function(f){if(!_.E("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var R=this.ytRendererBehavior.getScreenLayer(),u=_.z4(R),O=_.Jj(R);if((f=f.trackingParams)&&u&&O){var c=_.t4(f);_.E("combine_ve_grafts")?_.wR().graftServerVe(f,O,R):_.ea(u,O,c)}}};
_.X.emptySubmenuContainer=function(){for(var f=_.b(this.submenuElement);f.firstChild;)f.removeChild(f.firstChild)};
_.X.onMenuBackTap=function(f){_.ul(this.hostElement,"yt-submenu-closed");f.stopPropagation()};
_.X.onSubmenuClosed=function(f){_.gY(f)!==this.hostElement&&(this.covered=!1,_.ul(this.hostElement,"yt-refit"),f.stopPropagation())};
_.X.onRetrieveLocation=function(f,R){R.hasComments&&(R.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),f.stopPropagation())};
_.X.shouldCloseOnNavigateEvent=function(f){if(!f)return!0;if(_.t(f,_.zoY)||_.t(f,_.Twt)||_.t(f,_.J_C)||_.t(f,_.oh))return!1;var R;return((R=_.t(f==null?void 0:f.commandMetadata,_.vc))==null?0:R.ignoreNavigation)?!1:!0};
_.X.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.X.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.X.refitAfterRender=function(){var f=this;_.su(this,function(){_.ul(f.hostElement,"yt-refit")})};
Ha.prototype.refitAfterRender=Ha.prototype.refitAfterRender;Ha.prototype.onRetrieveLocation=Ha.prototype.onRetrieveLocation;Ha.prototype.onSubmenuClosed=Ha.prototype.onSubmenuClosed;Ha.prototype.onMenuBackTap=Ha.prototype.onMenuBackTap;Ha.prototype.onServiceRequestSentOrCompleted=Ha.prototype.onServiceRequestSentOrCompleted;Ha.prototype.onYtNavigate=Ha.prototype.onYtNavigate;Ha.prototype.onPopupOpened=Ha.prototype.onPopupOpened;Ha.prototype.onPopupClosed=Ha.prototype.onPopupClosed;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],Ha.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Ha.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ha.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],Ha.prototype,"enableFocusFix",void 0);_.B([_.I(),_.S("design:type",Object)],Ha.prototype,"covered",void 0);_.B([_.I({computed:"computeHideMenu(covered, data)"}),_.S("design:type",Object)],Ha.prototype,"hideMenu",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.S("design:type",String)],Ha.prototype,"menuStyle",void 0);
_.B([_.I({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.S("design:type",Object)],Ha.prototype,"isCommentNotificationOnProfileCard",void 0);_.B([_.I(),_.S("design:type",Boolean)],Ha.prototype,"isPopUpOpen",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ha.prototype,"scrolledByTouch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Ha.prototype,"disableBackdropFilter",void 0);
_.B([_.a4("#sections"),_.S("design:type",HTMLElement)],Ha.prototype,"sectionsElement",void 0);_.B([_.a4("#spinner"),_.S("design:type",HTMLElement)],Ha.prototype,"spinnerElement",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],Ha.prototype,"headerElement",void 0);_.B([_.a4("#container"),_.S("design:type",HTMLElement)],Ha.prototype,"JSC$17939_containerElement",void 0);_.B([_.a4("#submenu"),_.S("design:type",HTMLElement)],Ha.prototype,"submenuElement",void 0);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ha.prototype,"onPopupClosed",null);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Ha.prototype,"onPopupOpened",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Ha.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-service-request-completed"),_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],Ha.prototype,"onServiceRequestSentOrCompleted",null);_.B([_.Kf("yt-menu-back-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ha.prototype,"onMenuBackTap",null);
_.B([_.Kf("yt-submenu-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ha.prototype,"onSubmenuClosed",null);_.B([_.Kf("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Ha.prototype,"onRetrieveLocation",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ha.prototype,"refitAfterRender",null);
Ha=_.B([_.e({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Ha);
_.G(Ha,"ytd-multi-page-menu-renderer",function(){if(eVl!==void 0)return eVl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return eVl=f},{mode:1});var ZIt;var IT=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return f};
_.y(IT,_.U);_.X=IT.prototype;_.X.created=function(){this.showTooltips=!0};
_.X.computeAccessibility_=function(f){return this.get("accessibility.accessibilityData",f)||null};
_.X.onTap=function(){var f=_.c_(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(f&&f.length===1&&f[0])_.OJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var R;if((R=this.data)==null?0:R.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var u;((u=this.data)==null?0:u.menuRequest)&&_.hH(this.hostElement,[this.data.menuRequest])}}};
_.X.handleTopbarMenuClosedAction=function(f){var R,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(f)===((R=this.data)==null?void 0:(u=R.icon)==null?void 0:u.iconType)&&this.toggleIconState(!1)};
_.X.toggleIconState=function(f){_.E("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=f)};
_.X.handleUpdateTopbarAvatarAction=function(f){var R;f=(R=_.t(f,l$l))==null?void 0:R.avatarUrl;var u,O;R=(u=this.data)==null?void 0:(O=u.avatar)==null?void 0:O.thumbnails;f&&R&&(u={thumbnails:[Object.assign({},R[0],{url:f})]},this.set("data.avatar",u))};
_.Vy.Object.defineProperties(IT.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.b(this.hostElement).querySelector("#button")}}});
IT.prototype.onTap=IT.prototype.onTap;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],IT.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.ZAi.YtButtonBehavior),_.S("design:type",Object)],IT.prototype,"ytButtonBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IT.prototype,"data",void 0);
_.B([_.a4("yt-icon-button#button"),_.S("design:type",Object)],IT.prototype,"iconButton",void 0);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IT.prototype,"onTap",null);IT=_.B([_.e({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],IT);
_.G(IT,"ytd-topbar-menu-button-renderer",function(){if(ZIt!==void 0)return ZIt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ZIt=f},{mode:1});var lZ9;var M8=function(){return _.U.apply(this,arguments)||this};
_.y(M8,_.U);M8.prototype.getSelected=function(){return this.reasons.selected};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],M8.prototype,"data",void 0);_.B([_.a4("#reasons"),_.S("design:type",Object)],M8.prototype,"reasons",void 0);M8=_.B([_.e({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],M8);
_.G(M8,"ytd-ad-feedback-content",function(){if(lZ9!==void 0)return lZ9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return lZ9=f},{mode:1});var kHN;var Pa=function(){return _.U.apply(this,arguments)||this};
_.y(Pa,_.U);_.X=Pa.prototype;_.X.onPopupOpened=function(){_.OJ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.X.computeConfirmButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.confirmLabel}};
_.X.computeCancelButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.cancelLabel}};
_.X.onConfirmTap=function(){var f=this.content.getSelected();f!==void 0&&(f=this.data.reasons[f].endpoint)&&(_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}}),_.OJ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.X.sendFeedbackSubmitToastAction=function(){var f;(f=this.data)!=null&&f.completionMessage&&_.OJ(this.hostElement,"yt-open-popup-action",[_.YZ(this.data.completionMessage),this])};
_.X.onCancelTap=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
Pa.prototype.onPopupOpened=Pa.prototype.onPopupOpened;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Pa.prototype,"data",void 0);_.B([_.a4("#content"),_.S("design:type",Object)],Pa.prototype,"content",void 0);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Pa.prototype,"onPopupOpened",null);
Pa=_.B([_.e({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Pa);
_.G(Pa,"ytd-ad-feedback-renderer",function(){if(kHN!==void 0)return kHN;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return kHN=f},{mode:1});var K_m;var Ug=function(){return _.U.apply(this,arguments)||this};
_.y(Ug,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ug.prototype,"data",void 0);Ug=_.B([_.e({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Ug);
_.G(Ug,"ytd-ad-info-dialog-content",function(){if(K_m!==void 0)return K_m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return K_m=f},{mode:1});var q7X;var eC=function(){return _.U.apply(this,arguments)||this};
_.y(eC,_.U);eC.prototype.computeConfirmButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.confirmLabel}};
eC.prototype.onConfirmTap=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
eC.prototype.computeShouldShowTitle=function(){var f;return!((f=this.data)==null||!f.title)};
eC.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
eC.prototype.onPopupClosed=eC.prototype.onPopupClosed;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],eC.prototype,"data",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],eC.prototype,"onPopupClosed",null);eC=_.B([_.e({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],eC);
_.G(eC,"ytd-ad-info-dialog-renderer",function(){if(q7X!==void 0)return q7X;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return q7X=f},{mode:1});var AEa;var Gn=function(){var f=_.U.apply(this,arguments)||this;f.actionButtonClass="action-button";f.dismissButtonId="dismiss-button";f.dialogDismiss=!0;return f};
_.y(Gn,_.U);_.X=Gn.prototype;_.X.computeInPlayer=function(f){return(f==null?void 0:f.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.X.computedLogo=function(){var f,R;return this.isDarkTheme()?(f=this.data)==null?void 0:f.logoDark:(R=this.data)==null?void 0:R.logo};
_.X.computedHeaderImage=function(){var f,R;return this.isDarkTheme()?(f=this.data)==null?void 0:f.headerImageDark:(R=this.data)==null?void 0:R.headerImage};
_.X.computeLogoIconId=function(){var f,R,u,O=(f=this.computedLogo())==null?void 0:(R=f.sources)==null?void 0:(u=R[0])==null?void 0:u.height;return O&&O%31===0?"logo-icon-with-padding":"logo-icon"};
_.X.computeLogoIconHeight=function(){var f,R,u,O=(f=this.computedLogo())==null?void 0:(R=f.sources)==null?void 0:(u=R[0])==null?void 0:u.height;return O&&O%31===0?"31":"24"};
_.X.onPopupClosed=function(){_.vh().resolve(_.ON).dispose()};
_.X.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.X.onShow=function(){this.inPlayer&&_.AN(6)};
_.X.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var f=0;f<this.data.impressionEndpoints.length;f++){var R=_.t(this.data.impressionEndpoints[f],_.TW);R&&this.ytComponentBehavior.resolveCommand(R)}};
_.X.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.OJ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Vy.Object.defineProperties(Gn.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var f,R;return!((f=this.data)==null||!f.headerImageDark)&&!((R=this.data)==null||!R.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.secondaryButton)}}});
Gn.prototype.onPopupClosed=Gn.prototype.onPopupClosed;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Gn.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.eG.YtVisibilityBehavior),_.S("design:type",Object)],Gn.prototype,"ytVisibilityBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gn.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],Gn.prototype,"actionButtonClass",void 0);_.B([_.I(),_.S("design:type",Object)],Gn.prototype,"dismissButtonId",void 0);_.B([_.I(),_.S("design:type",Object)],Gn.prototype,"dialogDismiss",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Gn.prototype,"hasHeaderImage",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Gn.prototype,"hasPremiumButton",null);
_.B([_.I({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.S("design:type",Boolean)],Gn.prototype,"inPlayer",void 0);_.B([_.a4("#dismiss-button"),_.S("design:type",HTMLElement)],Gn.prototype,"dismissButton",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Gn.prototype,"onPopupClosed",null);Gn=_.B([_.e({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Gn);
_.G(Gn,"ytd-enforcement-message-view-model",function(){if(AEa!==void 0)return AEa;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return AEa=f},{mode:1});var aZK;var F_l;var Ba=function(){var f=_.U.apply(this,arguments)||this;f.TEST_ONLY={immediateValidation:function(){f.immediateValidation()},
onValidationResponse:function(R){f.onValidationResponse(R)},
onGenerateHandleFromNameResponse:function(R){f.onGenerateHandleFromNameResponse(R)}};
return f};
_.y(Ba,_.U);_.X=Ba.prototype;_.X.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.X.validate=function(){this.immediateValidation()};
_.X.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.X.setHandleInputValue=function(f){this.handleDir=this.getHandleDir(f);this.handleInput.value=f;this.validationState={status:"PENDING"};this.immediateValidation()};
_.X.getHandleDir=function(f){var R=f===""&&!1;return(R=_.r1H.test.call(_.r1H,f))?"rtl":"ltr"};
_.X.onDataChanged=function(){var f,R;this.handleDir=this.getHandleDir((R=(f=this.data)==null?void 0:f.handle)!=null?R:"");var u;this.validationState=((u=this.data)==null?0:u.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var O;((O=this.data)==null?0:O.validateOnInit)&&this.immediateValidation()};
_.X.stopPropagation=function(f){f.stopPropagation()};
_.X.onInput=function(){var f;this.handleDir=this.getHandleDir((f=this.handleInput.value)!=null?f:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.X.onFocusout=function(f){this.handleInput.contains(f.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.X.delayedValidation=function(){var f,R;this.debouncedValidation((R=(f=this.data)==null?void 0:f.validationDelayMs)!=null?R:1E3)};
_.X.immediateValidation=function(){this.debouncedValidation(0)};
_.X.debouncedValidation=function(f){var R=this;_.UU(this,"debouncedValidation",function(){var u,O=R.staticValidation((u=R.handleInput.value)!=null?u:"");if(O!==void 0)R.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:O};else{var c;if((c=R.data)!=null&&c.validateChannelHandleCommand){R.validationState={status:"LOADING"};var h;R.ytComponentBehavior.resolveCommand(R.data.validateChannelHandleCommand,{form:{handle:(h=R.handleInput.value)!=null?h:""},commandController:{onSuccess:function(l,
K){R.onValidationResponse(K)},
onServerError:function(l,K){R.onValidationServerError(K)}}})}else R.handleUnexpectedValidationError(new _.ts("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",R.data))}},f)};
_.X.staticValidation=function(f){var R;if(((R=this.data)==null?void 0:R.channelHandleStaticValidationParams)!==void 0){R=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(f)&&R.validValueRegexpErrorMessage!==void 0)return R.validValueRegexpErrorMessage;if(R.minLength!==void 0&&f.length<R.minLength&&R.minLengthErrorMessage!==void 0)return R.minLengthErrorMessage;if(R.maxLength!==void 0&&f.length>R.maxLength&&R.maxLengthErrorMessage!==void 0)return R.maxLengthErrorMessage}};
_.X.onValidationResponse=function(f){var R=_.t(f.result,kpa);R===void 0?this.handleUnexpectedValidationError(new _.ts("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",f)):this.handleValidationResultRenderer(R)};
_.X.onValidationServerError=function(f){this.handleUnexpectedValidationError(new _.ts("ValidateChannelHandle request failed.",f))};
_.X.handleValidationResultRenderer=function(f){if(f.handle===void 0)this.handleUnexpectedValidationError(new _.ts("ChannelHandleValidationResultRenderer does not contain handle.",f));else if(f.handle===this.handleInput.value)switch(f.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:f.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:f.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.ts("Unrecognized ChannelHandleValidationResult",f));break;default:_.km(f.result)}};
_.X.handleUnexpectedValidationError=function(f){var R;this.validationState={status:"UNKNOWN",handle:(R=this.handleInput.value)!=null?R:""};_.Ih(f)};
_.X.stopEventPropagation=function(f){f.stopPropagation()};
_.X.updateHandleOnChannelNameInputChange=function(f){if(!this.wasEdited){var R,u;this.debouncedGenerateHandleFromName(f,(u=(R=this.data)==null?void 0:R.validationDelayMs)!=null?u:1E3)}};
_.X.debouncedGenerateHandleFromName=function(f,R){var u=this;_.UU(this,"debouncedGenerateHandleFromName",function(){var O;(O=u.data)!=null&&O.validateChannelHandleCommand?u.ytComponentBehavior.resolveCommand(u.data.validateChannelHandleCommand,{form:{name:f},commandController:{onSuccess:function(c,h){u.onGenerateHandleFromNameResponse(h)},
onServerError:function(c,h){_.Ih(new _.ts("Error calling GenerateHandleFromName",h))}}}):_.Ih(new _.ts("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",u.data))},R)};
_.X.onGenerateHandleFromNameResponse=function(f){this.wasEdited||((f=_.t(f.result,K0N))?this.setHandleInputValue(f.handle):_.Ih(new _.ts("Invalid results when generate handle from name")))};
_.Vy.Object.defineProperties(Ba.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var f;if(f=this.validationState)f=this.validationState,f=f.status==="OK"||f.status==="UNKNOWN";if(f)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.validationState)==null?void 0:f.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 f,R=(f=this.channelHandleEntity)==null?void 0:f.handleEdit;this.handleDir=this.getHandleDir(R!=null?R:"");return R}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var f,R;if(((f=this.data)==null?void 0:(R=f.channelHandleStaticValidationParams)==null?void 0:R.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Ba.prototype.stopEventPropagation=Ba.prototype.stopEventPropagation;Ba.prototype.onDataChanged=Ba.prototype.onDataChanged;Ba.prototype.applyHandleEdit=Ba.prototype.applyHandleEdit;Ba.prototype.onValueChanged=Ba.prototype.onValueChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Ba.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Ba.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ba.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Ba.prototype,"wasEdited",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],Ba.prototype,"handleDir",void 0);_.B([_.a4("#handle-input"),_.S("design:type",Object)],Ba.prototype,"handleInput",void 0);_.B([_.I(),_.T("validationState"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ba.prototype,"value",null);
_.B([_.qM("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ba.prototype,"onValueChanged",null);_.B([_.T("validationState"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ba.prototype,"errorIndicator",null);_.B([_.I({reflectToAttribute:!0}),_.T("errorIndicator"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ba.prototype,"borderErrorIndicator",null);
_.B([_.I({selectorArgs:["data.channelHandleEntityKey"],selector:function(f,R){return _.kZ(f.entities,"channelHandle",R)}}),
_.S("design:type",Object)],Ba.prototype,"channelHandleEntity",void 0);_.B([_.T("channelHandleEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ba.prototype,"handleEdit",null);_.B([_.qM("handleEdit"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ba.prototype,"applyHandleEdit",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ba.prototype,"onDataChanged",null);
_.B([_.T("data.channelHandleStaticValidationParams.validValueRegexp"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ba.prototype,"validValueRegexp",null);_.B([_.Kf("yt-service-request-sent"),_.Kf("yt-service-request-completed"),_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Ba.prototype,"stopEventPropagation",null);Ba=_.B([_.e({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Ba);
_.G(Ba,"ytd-channel-handle-input-renderer",function(){if(F_l!==void 0)return F_l;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return F_l=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var oT=function(){var f=_.U.apply(this,arguments)||this;f.data=null;f.errorMessage=null;f.isLoading=!0;f.hideContainer=!1;f.enableNewChannelCreationOnIdForAll=_.E("enable_new_channel_creation_for_id4all");f.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"};f.testOnly={setErrorMessage:function(R){f.resetErrorState();
f.setErrorState(R)}};
return f};
_.y(oT,_.U);_.X=oT.prototype;_.X.created=function(){this.logScreenVe()};
_.X.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")};
_.X.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var f;((f=this.zeroStepErrorMessageEntity)==null?0:f.value)&&this.set("errorMessage",_.S8(this.zeroStepErrorMessageEntity.value))};
_.X.onCreateTap=function(){var f=this;if(this.data&&this.data.channelCreationEndpoint){var R,u;if(!((R=this.data.createChannelButton)==null?0:(u=R.buttonRenderer)==null?0:u.isDisabled)){var O;if((O=this.nameInput)!=null&&O.value){this.setLoadingState();var c,h;R=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(c=this.handleInput)==null?void 0:c.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((h=this.handleInput)==null?void 0:h.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:R,commandController:{onSuccess:function(l,K){f.onChannelCreationEndpointSuccess(K);f.obakeImageSource&&_.Jr("channelCreatedWithObakeImage",{imageSourceType:f.obakeImageSource})},
onServerError:function(){f.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.X.endpointRequiresServiceRequestAction=function(f){return!!_.t(f,_.jg)||!!_.t(f,l$l)};
_.X.isNavigateAction=function(f){var R;return!!_.t(f,_.Uo)||!!_.t((R=_.t(f,a$a))==null?void 0:R.command,_.Uo)};
_.X.isPlaylistAction=function(f){return!!_.t(f,_.ji)||!!_.t(f,_.IY)};
_.X.onChannelCreationEndpointSuccess=function(f){if(f.createChannelError){var R;this.setErrorState((R=f.createChannelError)==null?void 0:R.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.E("enable_secondary_channel_creation_form")&&f.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(f.navigationEndpoint);if(f.actions){R=_.Z(f.actions);for(var u=R.next();!u.done;u=R.next())if(u=u.value,this.endpointRequiresServiceRequestAction(u)&&this.ytComponentBehavior.resolveCommand(u),
this.isNavigateAction(u)){var O=void 0;u=_.t((O=_.t(u,a$a))==null?void 0:O.command,_.Uo);O=void 0;this.isPlaylistAction((O=u)==null?void 0:O.endpoint)&&(_.OJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),O=void 0,this.ytComponentBehavior.resolveCommand((O=u)==null?void 0:O.endpoint))}}f.actions&&f.actions.some(function(c){var h;return _.t(c,_.Uo)||_.t((h=_.t(c,a$a))==null?void 0:h.command,_.Uo)})||_.OJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.X.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.X.onCancelTap=function(){var f,R,u;if(!((f=this.data)==null?0:(R=f.cancelButton)==null?0:(u=R.buttonRenderer)==null?0:u.isDisabled)){var O,c,h;f=(O=this.data)==null?void 0:(c=O.cancelButton)==null?void 0:(h=c.buttonRenderer)==null?void 0:h.command;if(!f||!_.t(f,_.mw7)){var l;this.nameInput&&((l=this.data)==null?0:l.name)&&(this.nameInput.value=this.data.name);var K;this.handleInput&&((K=this.data)==null?0:K.channelHandleInput)&&(this.handleInput.data=_.t(this.data.channelHandleInput,qrh));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.X.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.X.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.X.onClearProfilePhotoTap=function(){var f,R,u;((f=this.data)==null?0:(R=f.clearProfilePhotoButton)==null?0:(u=R.buttonRenderer)==null?0:u.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.X.onEditAvatarTap=function(){var f,R,u;((f=this.data)==null?0:(R=f.editAvatarButton)==null?0:(u=R.buttonRenderer)==null?0:u.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.X.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)};
_.X.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var f;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((f=this.data)==null?0:f.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.X.setErrorState=function(f){this.resetErrorState();if(f)this.set("errorMessage",f);else{var R;if((R=this.zeroStepErrorMessageEntity)==null?0:R.value)this.set("errorMessage",_.S8(this.zeroStepErrorMessageEntity.value));else{var u;((u=this.data)==null?0:u.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.X.fetchImageBlobWithAlr=function(f,R){R=R===void 0?5:R;var u=this,O,c,h,l,K;return _.k(function(q){switch(q.nextAddress){case 1:return _.A(q,fetch(f,{method:"GET",mode:"cors"}),2);case 2:O=q.yieldResult;if(O.ok){q.jumpTo(3);break}if(R===0)throw Error();c=u.addJitter(Math.pow(2,5-R));return _.A(q,new Promise(function(F){setTimeout(F,c*1E3)}),4);
case 4:return q.return(u.fetchImageBlobWithAlr(f,R-1));case 3:if(!O.headers.get("content-type").split(";").some(function(F){return F.trim()==="text/plain"})){q.jumpTo(5);
break}h=u;l=h.fetchImageBlobWithAlr;return _.A(q,O.text(),6);case 6:return q.return(l.call(h,q.yieldResult,R-1));case 5:return _.A(q,O.blob(),7);case 7:return K=q.yieldResult,q.return(K)}})};
_.X.addJitter=function(f){var R=f*.3*Math.random();Math.random()>.5&&(R*=-1);return f+R};
_.X.openProfilePicturePicker=function(){var f=this,R,u,O,c,h;return _.k(function(l){if(l.nextAddress==1){R=f.data.scottyUploadUrl;if(!R)return l.return();u=document.documentElement.hasAttribute("dark");O=document.body.style.colorScheme;u&&(document.body.style.colorScheme="dark");c=w9S(mSa(FzN(ZSX(u?"dark":"light")),function(K){var q,F,w,m,W;return _.k(function(C){if(C.nextAddress==1)return q=_.U2(yom(new Cl(K.photoUrl,!1)).build(),"alr","yes"),f.obakeImageSource=f.pictureChangeSourceToObakeImageSourceType(K.photoSource),
_.cl(C,2),f.setLoadingState(),_.A(C,f.fetchImageBlobWithAlr(q),4);if(C.nextAddress!=2)return F=C.yieldResult,w=new FileReader,w.addEventListener("load",function(){var d,p,J,M,P,g;return _.k(function(x){if(x.nextAddress==1){if(F.size>15728640)return f.setErrorState((d=f.data)==null?void 0:d.imageSizeErrorMessage),_.Ih(Error("hl")),x.return();if(!w.result)return f.setErrorState((p=f.data)==null?void 0:p.genericImageLoadErrorMessage),_.Ih(Error("il")),x.return();J=w.result;_.cl(x,2);return _.A(x,ual(F,
R),4)}if(x.nextAddress!=2)return M=x.yieldResult,f.handleImageUpdatedAction(J,M),f.resetErrorState(),_.Bf(x,0);P=_.ku(x);f.setErrorState((g=f.data)==null?void 0:g.uploadErrorMessage);if(P instanceof Error)_.TL(P);else{var fh=new _.ts(JSON.stringify(P));_.TL(fh)}_.KG(x)})}),w.readAsDataURL(F),_.Bf(C,0);
m=_.ku(C);f.setErrorState((W=f.data)==null?void 0:W.genericImageLoadErrorMessage);m instanceof Error?_.TL(m):_.H5(new _.ts(JSON.stringify(m)));_.KG(C)})}),function(){f.hideContainer=!1;
document.body.style.colorScheme=O});
_.cl(l,2);return _.A(l,c.openPicker(),4)}if(l.nextAddress!=2)return _.Bf(l,0);_.ku(l);f.setErrorState((h=f.data)==null?void 0:h.selectImageErrorMessage);_.KG(l)})};
_.X.pictureChangeSourceToObakeImageSourceType=function(f){switch(f){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.X.logScreenVe=function(){_.O1(_.wR(),124448)};
_.X.graftServerVe=function(){var f=_.Jj(),R,u,O=(R=this.data)==null?void 0:(u=R.loggingDirectives)==null?void 0:u.trackingParams;O&&f&&(this.channelCreationFormVe=_.wR().graftServerVe(O,f),f={visualElement:this.channelCreationFormVe},_.aF().reportShown(f))};
_.X.isNameChanged=function(f){var R;return((R=this.data)==null?void 0:R.name)!==f};
_.X.isHandleChanged=function(f){var R,u=_.t((R=this.data)==null?void 0:R.channelHandleInput,qrh);return u&&f?u.handle!==f:!1};
_.X.handleImageUpdatedAction=function(f,R){this.hideContainer=!1;this.previewDataUrl=f;this.encryptedBlobId=R};
_.X.handleImageSelectionErrorAction=function(f){this.hideContainer=!1;this.setErrorState(f)};
_.X.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.X.showContainer=function(){this.hideContainer=!1};
_.X.maybeWipeZeroStepErrorMessage=function(){var f,R=(f=this.data)==null?void 0:f.zeroStepErrorMessageEntityKey,u;R&&((u=this.zeroStepErrorMessageEntity)==null?0:u.value)&&this.ytdReduxBehavior.dispatch(_.aA("stringEntity",R,{key:R,value:""}))};
_.Vy.Object.defineProperties(oT.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 f;return((f=this.photoThumbnail)==null?0:f.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 f;return!((f=this.data)==null||!f.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.descriptionInfo}}});
oT.prototype.dataChanged=oT.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],oT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],oT.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oT.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],oT.prototype,"errorMessage",void 0);
_.B([_.I(),_.S("design:type",Object)],oT.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",String)],oT.prototype,"previewDataUrl",void 0);_.B([_.I(),_.S("design:type",Number)],oT.prototype,"obakeImageSource",void 0);_.B([_.I(),_.S("design:type",Object)],oT.prototype,"hideContainer",void 0);_.B([_.a4("#title-input"),_.S("design:type",Object)],oT.prototype,"nameInput",void 0);_.B([_.a4("#handle-input"),_.S("design:type",Object)],oT.prototype,"handleInput",void 0);
_.B([_.I(),_.S("design:type",Boolean)],oT.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.B([_.I({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.fTh}),_.S("design:type",Object)],oT.prototype,"zeroStepErrorMessageEntity",void 0);_.B([_.T("data","data.isDefaultProfilePhoto","previewDataUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],oT.prototype,"photoThumbnail",null);
_.B([_.T("data","data.isDefaultProfilePhoto","photoThumbnail"),_.S("design:type",Object),_.S("design:paramtypes",[])],oT.prototype,"userSetPhotoThumbnailUrl",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oT.prototype,"hideProfilePhotoButtonLayer",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oT.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.B([_.QR("data","zeroStepErrorMessageEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oT.prototype,"dataChanged",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.descriptionInfo","zeroStepErrorMessageEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],oT.prototype,"description",null);oT=_.B([_.e({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],oT);
_.G(oT,"ytd-channel-creation-dialog-renderer",function(){if(aZK!==void 0)return aZK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return aZK=f},{mode:1});var wXz;var xB=function(){var f=_.U.apply(this,arguments)||this;f.isLoading=!1;f.isDisabled=!1;return f};
_.y(xB,_.U);xB.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
xB.prototype.updateDisabled=function(){var f;this.isDisabled=this.isLoading||((f=this.handleInput)==null?void 0:f.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
xB.prototype.onSaveClick=function(){var f=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var R;((R=this.data)==null?void 0:R.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=f.data)==null?0:u.nextEndpoint){var O;f.ytComponentBehavior.resolveCommand((O=f.data)==null?void 0:O.nextEndpoint)}else f.isLoading=
!1,f.closeDialog()},
onServerError:function(){f.isLoading=!1;f.handleInput.validate();var u;f.errorMessage=(u=f.data)==null?void 0:u.errorMessage}}}))}};
xB.prototype.closeDialog=function(){_.OJ(this.hostElement,"yt-close-popup-action",[this.is])};
xB.prototype.updateDisabled=xB.prototype.updateDisabled;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xB.prototype,"data",void 0);_.B([_.a4("#handle-input"),_.S("design:type",Object)],xB.prototype,"handleInput",void 0);_.B([_.qM("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xB.prototype,"updateDisabled",null);
xB=_.B([_.e({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],xB);
_.G(xB,"ytd-channel-handle-edit-dialog-renderer",function(){if(wXz!==void 0)return wXz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wXz=f},{mode:1});var mD5;var SC=function(){return _.U.apply(this,arguments)||this};
_.y(SC,_.U);SC.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],SC.prototype,"data",void 0);SC=_.B([_.e({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],SC);
_.G(SC,"ytd-channel-switcher-footer-renderer",function(){if(mD5!==void 0)return mD5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return mD5=f},{mode:1});var Q62;var W_w;var $B=function(){return _.U.apply(this,arguments)||this};
_.y($B,_.U);$B.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
$B.prototype.onIronChange=$B.prototype.onIronChange;_.B([_.I(),_.S("design:type",Object)],$B.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Function)],$B.prototype,"onDontAskAgainChanged",void 0);_.B([_.a4("#checkbox"),_.S("design:type",Object)],$B.prototype,"checkbox",void 0);_.B([_.Kf("iron-change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$B.prototype,"onIronChange",null);
$B=_.B([_.e({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],$B);
_.G($B,"ytd-identity-prompt-footer-renderer",function(){if(W_w!==void 0)return W_w;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return W_w=f},{mode:1});var gL=function(){var f=_.U.apply(this,arguments)||this;f.dontAskAgain=!1;f.showPopup=!1;f.boundDontAskAgainChanged=function(R){f.dontAskAgainChanged(R)};
f.boundOnAccountItemTap=function(R){f.onAccountItemTap(R)};
return f};
_.y(gL,_.U);_.X=gL.prototype;
_.X.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]]"}}}}}};
_.X.ready=function(){var f=this;_.b(this.hostElement).querySelector("#container").addEventListener("scroll",function(){f.ytRendererBehavior.markDirty()})};
_.X.dontAskAgainChanged=function(f){this.dontAskAgain=f};
_.X.onAccountItemTap=function(f){if(f){var R={};this.dontAskAgain&&(R={dont_ask_again:this.dontAskAgain});_.G$(f,R)}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.X.redirectOnlyAccount=function(f){f.sections&&f.sections.length>0&&(f=_.t(f.sections[0],_.$mk),(f==null?0:f.contents)&&(f==null?void 0:f.contents.length)<=1?(f=_.oS(window.location.href),(f==null?0:f.next)&&_.t2n(f.next)?_.G$(f.next):_.G$("/")):this.showPopup=!0)};
gL.prototype.dataChanged=gL.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],gL.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Object)],gL.prototype,"dontAskAgain",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],gL.prototype,"showPopup",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Object)],gL.prototype,"boundDontAskAgainChanged",void 0);_.B([_.I({reflectToAttribute:!1}),_.S("design:type",Object)],gL.prototype,"boundOnAccountItemTap",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gL.prototype,"dataChanged",null);
gL=_.B([_.e({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],gL);
_.G(gL,"ytd-channel-switcher-renderer",function(){if(Q62!==void 0)return Q62;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Q62=f},{mode:1});var Eit;var sg=function(){return _.U.apply(this,arguments)||this};
_.y(sg,_.U);_.Vy.Object.defineProperties(sg.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.B([_.I(),_.S("design:type",Object)],sg.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],sg.prototype,"steps",null);sg=_.B([_.e({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],sg);
_.G(sg,"ytd-channel-transfer-stepper-renderer",function(){if(Eit!==void 0)return Eit;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Eit=f},{mode:1});var tXl;var n_=function(){var f=_.U.apply(this,arguments)||this;f.data=null;f.isError=!1;f.isLoading=!1;return f};
_.y(n_,_.U);_.X=n_.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.X.computeProfileName=function(f){return f?f.givenNameValue+" "+f.familyNameValue:""};
_.X.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)};
_.X.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)};
n_.prototype.onYtServiceRequestError=n_.prototype.onYtServiceRequestError;n_.prototype.onYtServiceRequestSent=n_.prototype.onYtServiceRequestSent;n_.prototype.dataChanged=n_.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],n_.prototype,"data",void 0);
_.B([_.I({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.S("design:type",String)],n_.prototype,"profileName",void 0);_.B([_.I(),_.S("design:type",Object)],n_.prototype,"isError",void 0);_.B([_.I(),_.S("design:type",Object)],n_.prototype,"isLoading",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n_.prototype,"dataChanged",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],n_.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],n_.prototype,"onYtServiceRequestError",null);n_=_.B([_.e({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],n_);
_.G(n_,"ytd-channel-warm-welcome-cont-renderer",function(){if(tXl!==void 0)return tXl;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return tXl=f},{mode:1});var Cgm;var Vr=function(){var f=_.U.apply(this,arguments)||this;f.data=null;return f};
_.y(Vr,_.U);Vr.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Vr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Vr.prototype,"data",void 0);Vr=_.B([_.e({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Vr);
_.G(Vr,"ytd-channel-warm-welcome-renderer",function(){if(Cgm!==void 0)return Cgm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Cgm=f},{mode:1});var yEm;var YB=function(){return _.U.apply(this,arguments)||this};
_.y(YB,_.U);_.Vy.Object.defineProperties(YB.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.authorThumbnail)||{}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],YB.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],YB.prototype,"thumbnailDetails",null);YB=_.B([_.e({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],YB);
_.G(YB,"ytd-comment-preview-renderer",function(){if(yEm!==void 0)return yEm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return yEm=f},{mode:1});var dDX;var va=function(){return _.U.apply(this,arguments)||this};
_.y(va,_.U);va.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Vy.Object.defineProperties(va.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.submitButton}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],va.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],va.prototype,"submitButton",null);va=_.B([_.e({is:"ytd-notice-renderer",disableElementRegistration:!0})],va);
_.G(va,"ytd-notice-renderer",function(){if(dDX!==void 0)return dDX;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return dDX=f},{mode:1});var N3w;var i9=function(){return _.U.apply(this,arguments)||this};
_.y(i9,_.U);i9.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],i9.prototype,"data",void 0);i9=_.B([_.e({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],i9);
_.G(i9,"ytd-preview-comment-dialog-content",function(){if(N3w!==void 0)return N3w;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return N3w=f},{mode:1});var L_a;var rL=function(){return _.U.apply(this,arguments)||this};
_.y(rL,_.U);rL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
rL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],rL.prototype,"data",void 0);rL=_.B([_.e({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],rL);
_.G(rL,"ytd-preview-comment-dialog-renderer",function(){if(L_a!==void 0)return L_a;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return L_a=f},{mode:1});var bIl;var pXN=_.E("web_button_rework")&&_.Hh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),f3=function(){var f=_.U.apply(this,arguments)||this;f.selectedAmountIndex=1;f.privacyCheckboxValue=!1;f.useAmsterdamStyle=pXN;f.amountPlaceholderIndex=-1;return f};
_.y(f3,_.U);_.X=f3.prototype;_.X.onAmountClick=function(f){this.selectedAmountIndex=_.b(this.hostElement).querySelector("#amounts").indexForElement(f.currentTarget)};
_.X.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.OJ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.X.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.OJ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.OJ(this.hostElement,"yt-close-popup-action",[this.is]);var f;(f=_.Vm())==null||f.getPlayerPromise().then(function(R){R.pauseVideo()})}};
_.X.donationCallback=function(f){f.success?(this.hostElement.hasAttribute("live-chat")&&f.response&&f.response.data&&f.response.data.actions&&_.OJ(this.hostElement,"yt-live-chat-open-popup",[f.response.data.actions[0]]),_.OJ(this.hostElement,"yt-close-popup-action",[this.is]),_.OJ(this.hostElement,"yt-live-chat-close-buy-flow")):f.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(f.errorMessageRenderer)};
_.X.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.b(this.hostElement).querySelector("#custom-amount-input").focus()};
_.X.updateConfirmationDialogTextWithAmount=function(f){var R=this.getConfirmDialogRuns();R&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(R),"text"],this.getFormattedAmount(f))};
_.X.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.X.getAmountPlaceholderIndex=function(f){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=f.findIndex(function(R){return R.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.X.getFormattedAmount=function(f){var R;return(new _.UP(4,((R=this.data)==null?void 0:R.currencyCode)||"")).format(f)};
_.X.isAmountValid=function(f){if(f==="")return!1;f=Number(f)*1E6;var R=this.get("minAmountMicros",this.data),u=this.get("maxAmountMicros",this.data);return R&&f<R||u&&f>u?!1:!0};
_.X.setInputError=function(){this.shouldShowValidationError?_.b(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.b(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.X.setInitialCheckboxValue=function(){var f;this.privacyCheckboxValue=!((f=this.data)==null||!f.privacyCheckboxInitialState)};
_.X.updateCustomAmountInputFromBinding=function(f){this.customAmountInput=f.detail.value};
_.X.updatePrivacyCheckboxValueFromBinding=function(f){this.privacyCheckboxValue=f.detail.value};
_.Vy.Object.defineProperties(f3.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var f=this,R,u;return((R=this.data)==null?void 0:(u=R.suggestedAmounts)==null?void 0:u.map(function(O,c){return{buttonRenderer:{style:f.selectedAmountIndex===c?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:O.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 f;return!((f=this.data)==null||!f.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 f=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(f&&this.amountMicros!==null)return Object.assign({},f,{ypcGetCartEndpoint:Object.assign({},f.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 f=this.get("confirmLargeAmount",this.data);if(f&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),f}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f=this.get("donateButton.buttonRenderer",this.data);if(f)return Object.assign({},f,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
f3.prototype.setInitialCheckboxValue=f3.prototype.setInitialCheckboxValue;f3.prototype.setInputError=f3.prototype.setInputError;f3.prototype.setFocusOnCustomAmountInput=f3.prototype.setFocusOnCustomAmountInput;_.B([_.z(Inw),_.S("design:type",Object)],f3.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],f3.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],f3.prototype,"selectedAmountIndex",void 0);_.B([_.I(),_.S("design:type",String)],f3.prototype,"customAmountInput",void 0);_.B([_.I(),_.S("design:type",Object)],f3.prototype,"privacyCheckboxValue",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],f3.prototype,"useAmsterdamStyle",void 0);_.B([_.qM("customAmount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f3.prototype,"setFocusOnCustomAmountInput",null);_.B([_.T("data","selectedAmountIndex"),_.S("design:type",Array),_.S("design:paramtypes",[])],f3.prototype,"suggestedAmountButtons",null);
_.B([_.T("data","selectedAmountIndex"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],f3.prototype,"isCustomAmountSelected",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],f3.prototype,"showPrivacyCheckbox",null);_.B([_.T("data","selectedAmountIndex","customAmount"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"amountMicros",null);
_.B([_.T("isCustomAmountSelected","customAmountInput"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"customAmount",null);_.B([_.T("customAmount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],f3.prototype,"shouldShowValidationError",null);_.B([_.T("customAmount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],f3.prototype,"isDonateButtonEnabled",null);
_.B([_.T("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"donateCommand",null);_.B([_.T("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"donateCommandWithConfirmation",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"largeDonationThreshold",null);
_.B([_.T("customAmount","donateCommand","amountMicros"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"confirmLargeAmountCommand",null);_.B([_.T("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.S("design:type",Object),_.S("design:paramtypes",[])],f3.prototype,"donateButtonRenderer",null);_.B([_.qM("shouldShowValidationError"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f3.prototype,"setInputError",null);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f3.prototype,"setInitialCheckboxValue",null);f3=_.B([_.e({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],f3);
_.G(f3,"ytd-donation-amount-picker-renderer",function(){if(bIl!==void 0)return bIl;var f=document.createElement("template");_.N(f,'\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" 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="[[msg(\'CLOSE\')]]" 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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return bIl=f},{mode:1});var j6K;var RJ=function(){return _.U.apply(this,arguments)||this};
_.y(RJ,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.B([_.I({}),_.S("design:type",Object)],RJ.prototype,"data",void 0);RJ=_.B([_.e({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],RJ);
_.G(RJ,"ytd-donation-post-transaction-content",function(){if(j6K!==void 0)return j6K;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return j6K=f},{mode:1});var DDt;var uW=function(){return _.U.apply(this,arguments)||this};
_.y(uW,_.U);uW.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.B([_.I({}),_.S("design:type",Object)],uW.prototype,"data",void 0);uW=_.B([_.e({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],uW);
_.G(uW,"ytd-donation-post-transaction-renderer",function(){if(DDt!==void 0)return DDt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return DDt=f},{mode:1});var JEX;var zgm;var OR=function(){return _.U.apply(this,arguments)||this};
_.y(OR,_.U);OR.prototype.computeIsStreamingProvider=function(f){return!!f.isStreamingShelf};
OR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],OR.prototype,"data",void 0);_.B([_.I({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],OR.prototype,"isStreamingProvider",void 0);
OR=_.B([_.e({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],OR);
_.G(OR,"ytd-media-provider-renderer",function(){if(zgm!==void 0)return zgm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zgm=f},{mode:1});var T35;var cZ=function(){return _.U.apply(this,arguments)||this};
_.y(cZ,_.U);cZ.prototype.observeLightsourcePalette=function(){var f,R=(f=this.data)==null?void 0:f.vibrantsourceColorPaletteData;R&&_.be(this.hostElement,R)};
cZ.prototype.observeLightsourcePalette=cZ.prototype.observeLightsourcePalette;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],cZ.prototype,"data",void 0);
_.B([_.qM("data.vibrantsourceColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cZ.prototype,"observeLightsourcePalette",null);cZ=_.B([_.e({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],cZ);
_.G(cZ,"ytd-streaming-pop-up-dialog",function(){if(T35!==void 0)return T35;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return T35=f},{mode:1});var X6=function(){return _.U.apply(this,arguments)||this};
_.y(X6,_.U);X6.prototype.onPopupOpened_=function(){var f;((f=this.data)==null?0:f.serviceEndpoint)&&_.vh().resolve(_.rv).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
X6.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
X6.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"}}}}};
X6.prototype.onPopupOpened_=X6.prototype.onPopupOpened_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.Pp),_.S("design:type",Object)],X6.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],X6.prototype,"data",void 0);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],X6.prototype,"onPopupOpened_",null);X6=_.B([_.e({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],X6);
_.G(X6,"ytd-brandconnect-popup-renderer",function(){if(JEX!==void 0)return JEX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return JEX=f},{mode:1});var HI2;var hG=function(){return _.U.apply(this,arguments)||this};
_.y(hG,_.U);_.X=hG.prototype;_.X.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){for(var f=0;f<this.getOptionRenderers().length;f++)this.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+f+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.X.updateSubmitButton=function(f){this.set("data.submitButton.buttonRenderer.isDisabled",!f)};
_.X.computeAlt=function(f){return _.$Z(f)};
_.X.onDismissTap=function(){_.OJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.getOptionRenderers=function(f){return(f=f||this.data)&&f.options?f.options.reduce(function(R,u){u.checkboxSurveyOptionRenderer&&R.push(u.checkboxSurveyOptionRenderer);return R},[]):[]};
_.X.onOptionChange=function(f){var R=this,u=!1;if(f.detail.checked)for(var O=this.getOptionRenderers().find(function(K){return K.value===f.detail.value}),c=this.getOptionRenderers(),h=0;h<c.length;h++){var l=c[h];
this.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked");l.checked&&((O==null?0:O.isExclusiveOption)?!l.isExclusiveOption:l.isExclusiveOption)?this.set("data.options."+h+".checkboxSurveyOptionRenderer.checked",!1):l.checked&&(u=!0)}else u=this.getOptionRenderers().some(function(K,q){R.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked");return K.checked});
this.updateSubmitButton(u)};
_.X.onSubmitTap=function(){var f=this.getOptionRenderers().filter(function(h){return h.checked});
if(f.length!==0){var R=f.map(function(h){return h.responseEndpoint});
f=[];for(var u=1;u<R.length;u++){var O=void 0,c=(O=_.t(R[u],_.DS))==null?void 0:O.feedbackToken;c&&f.push(c)}R=[R[0]];f.length&&R.push({extra_feedback_tokens:f});_.hH(this.hostElement,R);_.OJ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);f=this.data&&this.data.submitActions||[];if(_.E("kevlar_command_handler_migration_killswitch"))_.ZW(this.hostElement,f,this.hostElement);else for(f=_.Z(f),R=f.next();!R.done;R=f.next())this.ytComponentBehavior.resolveCommand(R.value)}};
hG.prototype.onOptionChange=hG.prototype.onOptionChange;hG.prototype.dataChanged=hG.prototype.dataChanged;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],hG.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],hG.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.B([_.z(fXm),_.S("design:type",Object)],hG.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],hG.prototype,"data",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hG.prototype,"dataChanged",null);
_.B([_.Kf("ytd-checkbox-survey-option-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hG.prototype,"onOptionChange",null);hG=_.B([_.e({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],hG);
_.G(hG,"ytd-checkbox-survey-renderer",function(){if(HI2!==void 0)return HI2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return HI2=f},{mode:1});var IZX;var MX2;var ZJ=function(){return _.U.apply(this,arguments)||this};
_.y(ZJ,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(riX),_.S("design:type",Object)],ZJ.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ZJ.prototype,"data",void 0);ZJ=_.B([_.e({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],ZJ);
_.G(ZJ,"ytd-dismissal-reason-text-renderer",function(){if(MX2!==void 0)return MX2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return MX2=f},{mode:1});var PgK;var lW=function(){return _.U.apply(this,arguments)||this};
_.y(lW,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.B([_.z(riX),_.S("design:type",Object)],lW.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],lW.prototype,"data",void 0);lW=_.B([_.e({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],lW);
_.G(lW,"ytd-dismissal-reason-video-renderer",function(){if(PgK!==void 0)return PgK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return PgK=f},{mode:1});var kX=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(kX,_.U);_.X=kX.prototype;_.X.created=function(){this.selectedFeedbackTokens=new x9};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.X.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.X.onDismissalReasonSelected=function(f,R){_.ul(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(R);this.hasReasonsSelected=!0};
_.X.onDismissalReasonDeselected=function(f,R){_.ul(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(R);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.X.onCancelTap=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
_.X.onSubmitTap=function(){var f=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(f={feedback_tokens:f},_.vh().resolve(_.rv).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},f,{element:this.hostElement})}));_.OJ(this.hostElement,"yt-close-popup-action")};
kX.prototype.onDismissalReasonDeselected=kX.prototype.onDismissalReasonDeselected;kX.prototype.onDismissalReasonSelected=kX.prototype.onDismissalReasonSelected;kX.prototype.dataChanged=kX.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kX.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Boolean)],kX.prototype,"hasReasonsSelected",void 0);_.B([_.I(),_.S("design:type",x9)],kX.prototype,"selectedFeedbackTokens",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],kX.prototype,"darkerDarkTheme",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kX.prototype,"dataChanged",null);
_.B([_.Kf("yt-dismissal-reason-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,String]),_.S("design:returntype")],kX.prototype,"onDismissalReasonSelected",null);_.B([_.Kf("yt-dismissal-reason-deselected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,String]),_.S("design:returntype")],kX.prototype,"onDismissalReasonDeselected",null);kX=_.B([_.e({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],kX);
_.G(kX,"ytd-dismissal-follow-up-renderer",function(){if(IZX!==void 0)return IZX;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return IZX=f},{mode:1});var UDm;var K3=function(){return _.U.apply(this,arguments)||this};
_.y(K3,_.U);_.X=K3.prototype;_.X.onCheckedChange=function(){this.multiselect||_.ul(this.hostElement,"yt-feedback-single-select-changed");_.b(this.hostElement).querySelector("#freeform").focus();_.ul(this.hostElement,"yt-refit")};
_.X.showTextBox=function(f,R){return f&&R};
_.X.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))};
_.X.updateDataCheckedFromBinding=function(f){this.set("data.checked",f.detail.value)};
_.X.updateDataResultTextFromBinding=function(f){this.set("data.resultText",f.detail.value)};
K3.prototype.dataChanged=K3.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],K3.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],K3.prototype,"multiselect",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K3.prototype,"dataChanged",null);
K3=_.B([_.e({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],K3);
_.G(K3,"ytd-feedback-option-renderer",function(){if(UDm!==void 0)return UDm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return UDm=f},{mode:1});var ege;var qJ=function(){return _.U.apply(this,arguments)||this};
_.y(qJ,_.U);qJ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
qJ.prototype.onSingleSelectCheckedChanged=function(f){f=_.gY(f);for(var R=0;R<this.data.options.length;R++)if(f.data!==_.t(this.data.options[R],vPS)){var u="data.options."+R+".feedbackOptionRenderer.checked";this.notifyPath(u);this.set(u,!1)}};
qJ.prototype.onSingleSelectCheckedChanged=qJ.prototype.onSingleSelectCheckedChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],qJ.prototype,"data",void 0);
_.B([_.Kf("yt-feedback-single-select-changed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],qJ.prototype,"onSingleSelectCheckedChanged",null);qJ=_.B([_.e({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],qJ);
_.G(qJ,"ytd-feedback-question-renderer",function(){if(ege!==void 0)return ege;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ege=f},{mode:1});var GHm;var AG=function(){return _.U.apply(this,arguments)||this};
_.y(AG,_.U);AG.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
AG.prototype.getSelectedFeedbackResults=function(){for(var f={},R=0;R<this.data.questions.length;R++)for(var u=_.t(this.data.questions[R],YrN),O=0;O<u.options.length;O++){var c=_.t(u.options[O],vPS);c&&c.checked&&(f[c.optionKey]=c.resultText)}return f};
AG.prototype.onKeyUp=function(){var f=this;_.Oz(_.JA,function(){_.ul(f.hostElement,"yt-refit")});
_.JA.start()};
AG.prototype.submitSurvey=function(){var f=this.getSelectedFeedbackResults();Object.keys(f).length>0&&this.data.submitFeedbackEndpoint&&(f={survey_results:f,is_feedback_token_unencrypted:!0},_.vh().resolve(_.rv).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},f,{element:this.hostElement})}))};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],AG.prototype,"data",void 0);AG=_.B([_.e({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],AG);
_.G(AG,"ytd-feedback-survey-renderer",function(){if(GHm!==void 0)return GHm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return GHm=f},{mode:1});var B3K;var oiK;var aJ=function(){return _.U.apply(this,arguments)||this};
_.y(aJ,_.U);aJ.prototype.computeAlt=function(f){return _.$Z(f)};
aJ.prototype.submitResponse=function(){var f,R;(f=this.data)!=null&&f.feedbackToken&&((R=this.data)==null?void 0:R.nextStageIndex)!==void 0&&(_.c_(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.c_(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
aJ.prototype.onClick=function(){this.submitResponse()};
aJ.prototype.onClick=aJ.prototype.onClick;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],aJ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],aJ.prototype,"vertical",void 0);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aJ.prototype,"onClick",null);
aJ=_.B([_.e({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],aJ);
_.G(aJ,"ytd-single-select-answer-option-renderer",function(){if(oiK!==void 0)return oiK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return oiK=f},{mode:1});var xDt;var F6=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return f};
_.y(F6,_.U);F6.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
F6.prototype.dataChanged=function(){var f,R;this.vertical=((R=(f=this.data)==null?void 0:f.answerOrientation)!=null?R:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
F6.prototype.submitFeedback=function(f){var R;((R=this.data)==null?0:R.responseEndpoint)&&f&&_.hH(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[f]}])};
F6.prototype.dataChanged=F6.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],F6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],F6.prototype,"eventForwardingBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],F6.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],F6.prototype,"vertical",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],F6.prototype,"darkerDarkTheme",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F6.prototype,"dataChanged",null);F6=_.B([_.e({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],F6);
_.G(F6,"ytd-single-select-question-renderer",function(){if(xDt!==void 0)return xDt;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return xDt=f},{mode:1});var w$=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return f};
_.y(w$,_.U);_.X=w$.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.jumpToStage(0)};
_.X.jumpToStage=function(f){var R,u;if((R=this.data)==null?0:(u=R.stages)==null?0:u[f])this.currentStage=this.data.stages[f],this.refitAfterRender()};
_.X.computeAlt=function(f){return _.$Z(f)};
_.X.computeSimpleMessage=function(f){var R;return(R=_.t(f,fVz))==null?void 0:R.messageText};
_.X.computeHideDismiss=function(f){var R;return(R=_.t(f,bJS))==null?void 0:R.hideParentDismissButton};
_.X.onDismissTap=function(){_.OJ(this.hostElement,"yt-close-popup-action");_.t(this.currentStage,fVz)||this.data.dismissalEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.refitAfterRender=function(){var f=this;_.su(this,function(){_.ul(f.hostElement,"yt-refit")})};
w$.prototype.dataChanged=w$.prototype.dataChanged;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],w$.prototype,"eventForwardingBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],w$.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.z(fXm),_.S("design:type",Object)],w$.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],w$.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],w$.prototype,"currentStage",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],w$.prototype,"dataChanged",null);w$=_.B([_.e({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],w$);
_.G(w$,"ytd-multi-stage-survey-renderer",function(){if(B3K!==void 0)return B3K;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return B3K=f},{mode:1});var S7S;var mV=function(){return _.U.apply(this,arguments)||this};
_.y(mV,_.U);mV.prototype.computeAlt=function(f){return _.$Z(f)};
mV.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.vh().resolve(_.rv).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.OJ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.BQh(!1)))};
mV.prototype.onTap=function(){this.vertical&&this.submitResponse()};
mV.prototype.onTap=mV.prototype.onTap;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],mV.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],mV.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],mV.prototype,"vertical",void 0);
_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mV.prototype,"onTap",null);mV=_.B([_.e({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],mV);
_.G(mV,"ytd-single-option-survey-option-renderer",function(){if(S7S!==void 0)return S7S;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return S7S=f},{mode:1});var $De;var Q9=function(){return _.U.apply(this,arguments)||this};
_.y(Q9,_.U);_.X=Q9.prototype;_.X.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){var f,R;this.vertical=(((f=this.data)==null?void 0:(R=f.surveyOrientation)==null?void 0:R.type)||"HORIZONTAL")==="VERTICAL"};
_.X.computeAlt=function(f){return _.$Z(f)};
_.X.onDismissTap=function(){_.OJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.vh().resolve(_.rv).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.BQh(!1))};
Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],Q9.prototype,"eventForwardingBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(fXm),_.S("design:type",Object)],Q9.prototype,"ytdHatsSurveyBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Q9.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Q9.prototype,"vertical",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Q9.prototype,"dataChanged",null);Q9=_.B([_.e({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Q9);
_.G(Q9,"ytd-single-option-survey-renderer",function(){if($De!==void 0)return $De;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return $De=f},{mode:1});var gim;var WZ=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(WZ,_.U);WZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
WZ.prototype.onDismissTap=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
WZ.prototype.onNavigate=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
WZ.prototype.onNavigate=WZ.prototype.onNavigate;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],WZ.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WZ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],WZ.prototype,"darkerDarkTheme",void 0);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WZ.prototype,"onNavigate",null);WZ=_.B([_.e({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],WZ);
_.G(WZ,"ytd-survey-follow-up-renderer",function(){if(gim!==void 0)return gim;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return gim=f},{mode:1});var s6m;var nim;var VXm;var ER=function(){var f=_.U.apply(this,arguments)||this;f.polymer2="Element"in Polymer;return f};
_.y(ER,_.U);_.X=ER.prototype;_.X.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.X.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.X.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.X.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("minutes-changed",this.minutes))};
_.X.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("seconds-changed",this.seconds))};
_.X.updateMinutesFromBinding=function(f){this.minutes=f.detail.value};
_.X.updateSecondsFromBinding=function(f){this.seconds=f.detail.value};
ER.prototype.secondsChangedForBinding=ER.prototype.secondsChangedForBinding;ER.prototype.minutesChangedForBinding=ER.prototype.minutesChangedForBinding;ER.prototype.secondsChanged=ER.prototype.secondsChanged;_.B([_.I(),_.S("design:type",String)],ER.prototype,"minutes",void 0);_.B([_.I(),_.S("design:type",String)],ER.prototype,"seconds",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],ER.prototype,"polymer2",void 0);
_.B([_.a4("#seconds"),_.S("design:type",Object)],ER.prototype,"secondsEl",void 0);_.B([_.qM("seconds"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ER.prototype,"secondsChanged",null);_.B([_.qM("minutes"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ER.prototype,"minutesChangedForBinding",null);
_.B([_.qM("seconds"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ER.prototype,"secondsChangedForBinding",null);ER=_.B([_.DO({is:"yt-timestamp-input",disableElementRegistration:!0})],ER);
_.G(ER,"yt-timestamp-input",function(){if(VXm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;nim===void 0&&(nim=document.createElement("template"));var O=nim;u.call(R,O.content.cloneNode(!0),f.content.firstChild);VXm=f}f=VXm;return f},{mode:2});var tG=function(){return _.U.apply(this,arguments)||this};
_.y(tG,_.U);_.X=tG.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18111_scroller.dialogElement=this.hostElement.parentNode};
_.X.dataChanged=function(){var f=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.YG().getPlayerPromise().then(function(R){R=R.getCurrentTime();f.minutes=Math.floor(R/60).toString();f.seconds=(Math.floor(R)%60).toString()})};
_.X.onTapSubmit=function(f){f.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(f={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(f.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(f.minutes=this.minutes,f.seconds=this.seconds),_.vh().resolve(_.rv).resolveCommand(this.serviceEndpoint,{form:Object.assign({},f,{element:this.hostElement})}))};
_.X.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.X.onYtServiceRequestCompleted=function(f,R){R=R.actions;if(Array.isArray(R))for(var u=0,O=R.length;u<O;u++)_.t(R[u],_.dS)&&(f.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(R[u]))};
_.X.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.X.toggleSubmitButton=function(f){this.set("submitButton.isDisabled",!f)};
_.X.handleInput=function(){var f=this.issueType,R=this.affiliation,u=this.minutes,O=this.seconds;u=!this.showTimestamp||!!u&&!!O;this.toggleSubmitButton(!!this.descriptionText&&!!f&&!!R&&u)};
_.X.computeServiceEndpoint=function(f){return this.get("submitButton.buttonRenderer.serviceEndpoint",f)};
_.X.computeSubmitButton=function(f){(f=this.get("submitButton.buttonRenderer",f))&&(f=Object.assign({},f,{serviceEndpoint:void 0}));return f};
_.X.computeShowTimestamp=function(f){return!!f};
_.X.onValueChangedForIssueType=function(f){this.issueType=f.detail.value};
_.X.onValueChangedForAffiliation=function(f){this.affiliation=f.detail.value};
_.X.updateDescriptionTextFromBinding=function(f){this.descriptionText=f.detail.value};
_.X.updateFullNameTextFromBinding=function(f){this.fullNameText=f.detail.value};
_.X.updateMinutesFromBinding=function(f){this.minutes=f.detail.value};
_.X.updateSecondsFromBinding=function(f){this.seconds=f.detail.value};
tG.prototype.handleInput=tG.prototype.handleInput;tG.prototype.onYtServiceRequestError=tG.prototype.onYtServiceRequestError;tG.prototype.onYtServiceRequestCompleted=tG.prototype.onYtServiceRequestCompleted;tG.prototype.onYtServiceRequestSent=tG.prototype.onYtServiceRequestSent;tG.prototype.dataChanged=tG.prototype.dataChanged;_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],tG.prototype,"ytOpenPopupBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.B([_.a4("#scroller"),_.S("design:type",Object)],tG.prototype,"JSC$18111_scroller",void 0);_.B([_.a4("#description"),_.S("design:type",HTMLInputElement)],tG.prototype,"description",void 0);_.B([_.a4("#full-name"),_.S("design:type",Object)],tG.prototype,"fullName",void 0);_.B([_.I(),_.S("design:type",Object)],tG.prototype,"data",void 0);
_.B([_.I({computed:"computeShowTimestamp(data.timestampLabel)"}),_.S("design:type",Boolean)],tG.prototype,"showTimestamp",void 0);_.B([_.I({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.S("design:type",Object)],tG.prototype,"serviceEndpoint",void 0);_.B([_.I({computed:"computeSubmitButton(data)"}),_.S("design:type",Object)],tG.prototype,"submitButton",void 0);_.B([_.I(),_.S("design:type",String)],tG.prototype,"descriptionText",void 0);
_.B([_.I(),_.S("design:type",Number)],tG.prototype,"issueType",void 0);_.B([_.I(),_.S("design:type",Number)],tG.prototype,"affiliation",void 0);_.B([_.I(),_.S("design:type",String)],tG.prototype,"fullNameText",void 0);_.B([_.I(),_.S("design:type",String)],tG.prototype,"minutes",void 0);_.B([_.I(),_.S("design:type",String)],tG.prototype,"seconds",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tG.prototype,"dataChanged",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],tG.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],tG.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],tG.prototype,"onYtServiceRequestError",null);_.B([_.qM("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tG.prototype,"handleInput",null);tG=_.B([_.e({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],tG);
_.G(tG,"ytd-legal-report-details-form-renderer",function(){if(s6m!==void 0)return s6m;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return s6m=f},{mode:1});var Y7a;var C3=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return f};
_.y(C3,_.U);C3.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
C3.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var f=this.formRenderer.getForm();f&&this.data.submitEndpoint&&(_.vh().resolve(_.rv).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},f,{element:this.hostElement})}),_.OJ(this.hostElement,"yt-close-popup-action"))}};
C3.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.OJ(this.hostElement,"yt-close-popup-action"))};
C3.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
C3.prototype.onPopupClosed=C3.prototype.onPopupClosed;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],C3.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],C3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);
_.B([_.a4("yt-form-renderer"),_.S("design:type",Object)],C3.prototype,"formRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],C3.prototype,"data",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C3.prototype,"onPopupClosed",null);C3=_.B([_.e({is:"ytd-form-popup-content",disableElementRegistration:!0})],C3);
_.G(C3,"ytd-form-popup-content",function(){if(Y7a!==void 0)return Y7a;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Y7a=f},{mode:1});var viN;var y9=function(){return _.U.apply(this,arguments)||this};
_.y(y9,_.U);y9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
y9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y9.prototype.onPopupOpened=function(){_.ul(this.hostElement,"yt-invalidate-popup-tabbables")};
y9.prototype.onYtServiceRequestCompleted=function(f,R){R.data&&R.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.ul(this.hostElement,"yt-invalidate-popup-tabbables"))};
y9.prototype.onYtServiceRequestCompleted=y9.prototype.onYtServiceRequestCompleted;y9.prototype.onPopupOpened=y9.prototype.onPopupOpened;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],y9.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],y9.prototype,"data",void 0);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y9.prototype,"onPopupOpened",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],y9.prototype,"onYtServiceRequestCompleted",null);y9=_.B([_.e({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],y9);
_.G(y9,"ytd-form-popup-renderer",function(){if(viN!==void 0)return viN;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return viN=f},{mode:1});var iIm;var d$=function(){var f=_.U.apply(this,arguments)||this;f.isLoading=!1;return f};
_.y(d$,_.U);_.X=d$.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");hDe(this.hostElement)};
_.X.onYtServiceRequestSent=function(){this.isLoading=!0};
_.X.onYtServiceRequestCompleted=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.X.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ZW(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.X.closePopupHandler=function(){this.fireOnCloseActions()};
_.X.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var f=this.get("data.headerImage.thumbnails");f&&(f=_.rR(f,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+f+")")}};
_.X.onYtNavigate=function(f){(f=_.gY(f))&&f.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
d$.prototype.onYtNavigate=d$.prototype.onYtNavigate;d$.prototype.onHeaderImageChanged=d$.prototype.onHeaderImageChanged;d$.prototype.closePopupHandler=d$.prototype.closePopupHandler;d$.prototype.onYtServiceRequestCompleted=d$.prototype.onYtServiceRequestCompleted;d$.prototype.onYtServiceRequestSent=d$.prototype.onYtServiceRequestSent;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],d$.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],d$.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],d$.prototype,"isLoading",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLDivElement)],d$.prototype,"header",void 0);_.B([_.a4("#confirm-button"),_.S("design:type",_.Wd)],d$.prototype,"confirmButton",void 0);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],d$.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],d$.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],d$.prototype,"closePopupHandler",null);_.B([_.qM("data.headerImage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],d$.prototype,"onHeaderImageChanged",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],d$.prototype,"onYtNavigate",null);
d$=_.B([_.e({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],d$);
_.G(d$,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(iIm!==void 0)return iIm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return iIm=f},{mode:1});var rE2;var NJ=function(){var f=_.U.apply(this,arguments)||this;f.isLoading=!1;return f};
_.y(NJ,_.U);_.X=NJ.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);hDe(this.hostElement)};
_.X.onYtServiceRequestCompleted=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.X.onYtServiceRequestError=function(f){_.f9(this.hostElement,f.detail.error.message)};
_.X.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.X.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.OJ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.X.onDataChanged=function(){this.isLoading=!1;var f=this.get("data.headerImage.thumbnails");f&&(f=_.rR(f,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+f+")");f=_.z4();var R=_.Jj(),u=this.get("data.trackingParams");u&&R&&f&&_.ea(f,R,_.t4(u))};
_.Vy.Object.defineProperties(NJ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
NJ.prototype.onDataChanged=NJ.prototype.onDataChanged;NJ.prototype.onDomChange=NJ.prototype.onDomChange;NJ.prototype.onYtServiceRequestError=NJ.prototype.onYtServiceRequestError;NJ.prototype.onYtServiceRequestCompleted=NJ.prototype.onYtServiceRequestCompleted;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],NJ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],NJ.prototype,"isLoading",void 0);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NJ.prototype,"hasDescription",null);_.B([_.a4("tp-yt-paper-dialog-scrollable"),_.S("design:type",Object)],NJ.prototype,"scrollable",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],NJ.prototype,"header",void 0);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NJ.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NJ.prototype,"onYtServiceRequestError",null);
_.B([_.Kf("dom-change"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NJ.prototype,"onDomChange",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NJ.prototype,"onDataChanged",null);NJ=_.B([_.e({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],NJ);
_.G(NJ,"ytd-gaming-account-link-setting-renderer",function(){if(rE2!==void 0)return rE2;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return rE2=f},{mode:1});var fAm;var Rum;var L3=function(){var f=_.U.apply(this,arguments)||this;f.isHeader=!1;f.getEndpointForm=function(){return lWm(f.data)};
return f};
_.y(L3,_.U);_.X=L3.prototype;_.X.triggerHintActions=function(){var f=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var R=_.c_(f.hostElement,"yt-get-opened-popups-action");!(R&&R.length===1?R[0]:[]).some(function(u){u=u.openPopupAction.popupType;return u==="SURVEY"||u==="MEALBAR"||u==="HINT"})&&f.data.hintActions&&f.guideOpened&&(_.ZW(f.hostElement,f.data.hintActions,f.hostElement),f.data.hintActions=void 0)})};
_.X.getBadgeIconType=function(f){return f&&f.liveBroadcasting?"live":null};
_.X.onDown=function(){this.interaction.triggerDown()};
_.X.onUp=function(){this.interaction.triggerUp()};
_.X.onTap=function(f){if(this.data.serviceEndpoint){var R;_.E("shorts_controller_retrieve_seedless_sequence_v2")&&((R=_.t(this.data.serviceEndpoint,_.Ey))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Zv5(this.data.serviceEndpoint,this);f.preventDefault()}else this.data.navigationEndpoint&&!_.$G(_.$S(f),this.hostElement,["A".toString()])&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.X.computeActive=function(f,R){if(!f)return!1;var u=f.navigationEndpoint;f=f.serviceEndpoint;if(!u&&!f||!R)return!1;if(u){f=(f=_.Fr(R))&&["subscriptions","filteredsubscriptions"].includes(f);if(_.t(u,_.wY)&&_.t(R,_.wY)&&!f){var O=_.t(u,_.wY).browseId;R=_.t(R,_.wY).browseId;return O!==void 0&&R!==void 0&&(O===R||O==="VLWL"&&R==="FEwatch_later"||O==="FEwatch_later"&&R==="VLWL")}var c;u=(c=_.t(u.commandMetadata,_.vc))==null?void 0:c.url;R=(O=_.t(R.commandMetadata,_.vc))==null?void 0:O.url;return!(!u||
!R||u!==R&&u!==_.Kt(R))}return this.isActiveShortsTab(f,R)};
_.X.isActiveShortsTab=function(f,R){R=!!_.t(R,_.Ey)||!!_.t(R,_.Dl);return(!!_.t(f,_.Ey)||!!_.t(f,_.Dl))&&R};
_.X.computeIsPrimary=function(f){return!!f};
_.Vy.Object.defineProperties(L3.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 f=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&f)return f}}});
L3.prototype.onTap=L3.prototype.onTap;L3.prototype.onUp=L3.prototype.onUp;L3.prototype.onDown=L3.prototype.onDown;L3.prototype.triggerHintActions=L3.prototype.triggerHintActions;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],L3.prototype,"componentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],L3.prototype,"rendererBehavior",void 0);_.B([_.z(_.V3.YtTaskEmitterBehavior),_.S("design:type",Object)],L3.prototype,"taskEmitterBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],L3.prototype,"activeEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],L3.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],L3.prototype,"guideOpened",void 0);_.B([_.I(),_.S("design:type",String)],L3.prototype,"type",void 0);_.B([_.a4("yt-interaction"),_.S("design:type",Object)],L3.prototype,"interaction",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],L3.prototype,"isHeader",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data","activeEndpoint"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],L3.prototype,"active",null);_.B([_.I({reflectToAttribute:!0}),_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],L3.prototype,"isPrimary",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.count","data.presentationStyle","data.badges.*"),_.S("design:type",String),_.S("design:paramtypes",[])],L3.prototype,"lineEndStyle",null);
_.B([_.T("lineEndStyle"),_.S("design:type",Object),_.S("design:paramtypes",[])],L3.prototype,"ariaLabel",null);_.B([_.qM("data.hintActions","guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L3.prototype,"triggerHintActions",null);_.B([_.Kf("down"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L3.prototype,"onDown",null);
_.B([_.Kf("up"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L3.prototype,"onUp",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],L3.prototype,"onTap",null);L3=_.B([_.e({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],L3);
_.G(L3,"ytd-guide-entry-renderer",function(){if(Rum!==void 0)return Rum;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Rum=f},{mode:1});var bW=function(){var f=_.U.apply(this,arguments)||this;f.userToggled=!1;return f};
_.y(bW,_.U);_.X=bW.prototype;_.X.getItemsPath=function(){return"data.expandableItems"};
_.X.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.X.onExpanderItemTapped=function(f){var R=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.E("kevlar_guide_expandable_items_killswitch")&&_.su(this,function(){_.YM(R.expandableItems)});
f.preventDefault()};
_.X.onCollapserItemTapped=function(f){var R=this;this._setExpanded(!1);this.userToggled=!0;f.preventDefault();this.expandableItems&&!_.E("kevlar_guide_collapsible_items_killswitch")&&_.su(this,function(){_.Vb(R.hostElement)})};
_.X.observeActiveEndpoint=function(){for(var f=this.activeEndpoint,R=this.data,u=this.expandableItems.children,O=0,c=u.length;O<c;O++)u[O].activeEndpoint=f;R&&R.autoExpandCommand&&f&&!this.userToggled&&(u=this.data.autoExpandCommand,R=!(!_.t(u,_.wY)||!_.t(f,_.wY)||_.t(u,_.wY).browseId!==_.t(f,_.wY).browseId),f=this.get("commandMetadata.webCommandMetadata.url",f),u=this.get("commandMetadata.webCommandMetadata.url",u),R=R||!!(f&&u&&f.includes(u)),this._setExpanded(R),R&&this.ytLazyListBehavior.fillRemainingListItems())};
bW.prototype.observeActiveEndpoint=bW.prototype.observeActiveEndpoint;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],bW.prototype,"ytLazyListBehavior",void 0);_.B([_.a4("#expandable-items"),_.S("design:type",HTMLElement)],bW.prototype,"expandableItems",void 0);
_.B([_.I(),_.S("design:type",Object)],bW.prototype,"data",void 0);_.B([_.I({readOnly:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],bW.prototype,"expanded",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],bW.prototype,"initialCount",void 0);_.B([_.I(),_.S("design:type",Object)],bW.prototype,"activeEndpoint",void 0);_.B([_.qM("data","activeEndpoint","canShowMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bW.prototype,"observeActiveEndpoint",null);
bW=_.B([_.e({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],bW);
_.G(bW,"ytd-guide-collapsible-entry-renderer",function(){if(fAm!==void 0)return fAm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return fAm=f},{mode:_.c7("kevlar_poly_si_batch_j079")?1:2});var uC2;var Oea;var p3=function(){var f=_.U.apply(this,arguments)||this;f.allVideosCount=0;f.renderGuideEntry=!1;return f};
_.y(p3,_.U);p3.prototype.observeRenderEntry=function(){var f;this.renderGuideEntry=!((f=this.data)==null||!f.alwaysShow)||!!this.allVideosCount};
p3.prototype.observeRenderEntry=p3.prototype.observeRenderEntry;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],p3.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],p3.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],p3.prototype,"activeEndpoint",void 0);_.B([_.I({selector:_.Cxl}),_.S("design:type",Object)],p3.prototype,"allVideosCount",void 0);
_.B([_.I(),_.S("design:type",Object)],p3.prototype,"renderGuideEntry",void 0);_.B([_.QR("allVideosCount","data.alwaysShow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],p3.prototype,"observeRenderEntry",null);p3=_.B([_.e({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],p3);
_.G(p3,"ytd-guide-downloads-entry-renderer",function(){if(Oea===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);Oea=f}f=Oea;return f},{mode:1});var j3=function(){var f=_.U.apply(this,arguments)||this;f.youtab=_.E("web_enable_youtab");f.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return f};
_.y(j3,_.U);_.X=j3.prototype;_.X.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]]"}}}}}};
_.X.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var f=this.sectionItems.children,R=0,u=f.length;R<u;R++)f[R].activeEndpoint=this.activeEndpoint}};
_.X.handleAddToGuideSectionAction=function(f){var R=_.t(f,mf2);if(R&&this.data&&(f=R.items,R=R.handlerData,f&&R&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(R)>-1)){R=0;for(var u=f.length;R<u;R++)f[R].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,f[R])}};
_.X.handleRemoveFromGuideSectionAction=function(f){var R=_.t(f,Qbh);R&&this.data&&(f=R.guideEntryId,R=R.handlerData,f&&R&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(R)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(f,this.data.sectionItems),this.removeFromCollapsedSection(f,this.data.sectionItems)))};
_.X.removeFromExpandedSection=function(f,R){f=this.getEntryIndexMatchingId(f,R);f!==-1&&this.splice("data.sectionItems",f,1)};
_.X.removeFromCollapsedSection=function(f,R){var u=R.findIndex(function(O){return!!_.t(O,HJt)});
u&&u!==-1&&R[u]&&_.t(R[u],HJt)&&(R=_.t(R[u],HJt).expandableItems)&&(f=this.getEntryIndexMatchingId(f,R),f!==-1&&this.splice("data.sectionItems."+u+".guideCollapsibleEntryRenderer.expandableItems",f,1))};
_.X.getEntryIndexMatchingId=function(f,R){var u=this;return R.findIndex(function(O){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",O)===f})};
j3.prototype.activeEndpointChanged=j3.prototype.activeEndpointChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],j3.prototype,"actionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#section-items"),_.S("design:type",HTMLDivElement)],j3.prototype,"sectionItems",void 0);
_.B([_.a4("#header-entry"),_.S("design:type",Object)],j3.prototype,"headerEntry",void 0);_.B([_.I(),_.S("design:type",Object)],j3.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],j3.prototype,"activeEndpoint",void 0);_.B([_.I(),_.S("design:type",Object)],j3.prototype,"youtab",void 0);_.B([_.qM("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],j3.prototype,"activeEndpointChanged",null);
j3=_.B([_.e({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],j3);
_.G(j3,"ytd-guide-collapsible-section-entry-renderer",function(){if(uC2===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);uC2=f}f=uC2;return f},{mode:1});var cUX;var XOX;var DJ=function(){var f=_.U.apply(this,arguments)||this;f.modernTypography=_.E("web_modern_typography");f.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 f};
_.y(DJ,_.U);_.X=DJ.prototype;
_.X.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}}}}};
_.X.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var f=_.c_(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);f&&f.length===1&&f[0]&&_.c_(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.X.handleResetChannelUnreadCountCommand=function(f){var R;(f=(R=_.t(f,EPw))==null?void 0:R.channelId)&&this.data&&this.data.items&&(R=this.getPathToEntryMatchingId(f))&&(this.set(R+".guideEntryRenderer.count",0),this.set(R+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.X.handleResetSubscriptionsUnreadDotCommand=function(f){var R,u=(R=_.t(f,t72))==null?void 0:R.targetId,O;u&&(O=this.data)!=null&&O.items&&(f=this.data.items.findIndex(function(c){var h;return((h=c.guideEntryRenderer)==null?void 0:h.targetId)===u}),f<0||this.set("data.items."+f+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.X.getPathToEntryMatchingId=function(f){if(this.data&&this.data.items){var R=this.getEntryIndexMatchingId(f,this.data.items);if(R>-1)return"data.items."+R;for(var u=0;u<this.data.items.length;u++)if(R=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[u]))if(R=this.getEntryIndexMatchingId(f,R),R>-1)return"data.items."+u+".guideCollapsibleEntryRenderer.expandableItems."+R}};
_.X.handleAddToGuideSectionAction=function(f){var R=this;if(_.t(f,mf2)){var u=_.t(f,mf2).items;f=_.t(f,mf2).handlerData;var O,c;u&&f&&((O=this.data)==null?void 0:(c=O.handlerDatas)==null?void 0:c.indexOf(f))>-1&&(u=u.filter(function(h){return(h=R.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h))&&!R.isGuideItemPresent(h)}),this.unshift.apply(this,["data.items"].concat(_.yq(u))))}};
_.X.isGuideItemPresent=function(f){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(f,this.data.items)!==-1)return!0;var R=this.data.items.find(function(u){return!!u.guideCollapsibleEntryRenderer});
if((R==null?0:R.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(f,R.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.X.getEntryIndexMatchingId=function(f,R){var u=this;return R.findIndex(function(O){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",O)===f})};
_.X.handleRemoveFromGuideSectionAction=function(f){if(_.t(f,Qbh)){var R=_.t(f,Qbh).guideEntryId;f=_.t(f,Qbh).handlerData;var u,O;R&&f&&((u=this.data)==null?void 0:(O=u.handlerDatas)==null?void 0:O.indexOf(f))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(R,this.data.items),this.removeFromCollapsedSection(R,this.data.items))}};
_.X.removeFromExpandedSection=function(f,R){f=this.getEntryIndexMatchingId(f,R);f!==-1&&this.splice("data.items",f,1)};
_.X.removeFromCollapsedSection=function(f,R){var u=R.findIndex(function(O){return!!O.guideCollapsibleEntryRenderer});
u!==-1&&(R=R[u].guideCollapsibleEntryRenderer.expandableItems)&&(f=this.getEntryIndexMatchingId(f,R),f!==-1&&this.splice("data.items."+u+".guideCollapsibleEntryRenderer.expandableItems",f,1))};
_.X.activeEndpointChanged=function(){for(var f=_.b(this.hostElement).querySelector("#items").children,R=0,u=f.length;R<u;R++)f[R].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.X.guideOpenedChanged=function(){for(var f=_.b(this.hostElement).querySelector("#items").children,R=0,u=f.length;R<u;R++)f[R].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
DJ.prototype.guideOpenedChanged=DJ.prototype.guideOpenedChanged;DJ.prototype.activeEndpointChanged=DJ.prototype.activeEndpointChanged;DJ.prototype.persistentGuideChanged=DJ.prototype.persistentGuideChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],DJ.prototype,"ytLazyListBehavior",void 0);_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],DJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],DJ.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],DJ.prototype,"modernTypography",void 0);_.B([_.I(),_.S("design:type",String)],DJ.prototype,"type",void 0);_.B([_.I({value:20}),_.S("design:type",Number)],DJ.prototype,"initialCount",void 0);_.B([_.I({value:10}),_.S("design:type",Number)],DJ.prototype,"targetFramerate",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],DJ.prototype,"autoFill",void 0);_.B([_.I({value:50}),_.S("design:type",Number)],DJ.prototype,"renderDelay",void 0);
_.B([_.qM("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DJ.prototype,"persistentGuideChanged",null);_.B([_.QR("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DJ.prototype,"activeEndpointChanged",null);_.B([_.QR("guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DJ.prototype,"guideOpenedChanged",null);
DJ=_.B([_.e({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],DJ);
_.G(DJ,"ytd-guide-section-renderer",function(){if(XOX!==void 0)return XOX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return XOX=f},{mode:_.c7("kevlar_poly_si_batch_j073")?1:2});var huh;var JG=function(){return _.U.apply(this,arguments)||this};
_.y(JG,_.U);_.Vy.Object.defineProperties(JG.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],JG.prototype,"rendererBehaviors",void 0);_.B([_.I(),_.S("design:type",Object)],JG.prototype,"data",void 0);_.B([_.I(),_.T("data.signInButton.buttonRenderer.style"),_.S("design:type",Object),_.S("design:paramtypes",[])],JG.prototype,"alignByText",null);JG=_.B([_.e({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],JG);
_.G(JG,"ytd-guide-signin-promo-renderer",function(){if(huh===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);huh=f}f=huh;return f},{mode:1});var zN=function(){var f=_.U.apply(this,arguments)||this;f.showFooter=!1;return f};
_.y(zN,_.U);zN.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}}}}};
zN.prototype.attached=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1){R=_.vh().resolve(_.Y8(_.PX));if(!R)return u.jumpTo(0);R.setGuideData(f.hostElement);return _.A(u,0,3)}f.ytLazyListBehavior.initialCount=2;return u.return()})};
zN.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
zN.prototype.dataChanged=zN.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],zN.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r3.YtLazyListBehavior),_.S("design:type",Object)],zN.prototype,"ytLazyListBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],zN.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],zN.prototype,"showFooter",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],zN.prototype,"autoFill",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zN.prototype,"dataChanged",null);zN=_.B([_.e({is:"ytd-guide-renderer",disableElementRegistration:!0})],zN);
_.G(zN,"ytd-guide-renderer",function(){if(cUX!==void 0)return cUX;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return cUX=f},{mode:_.c7("kevlar_poly_si_batch_j073")?1:2});var Zeh;var TN=function(){var f=_.U.apply(this,arguments)||this;f.systemIcons=_.E("kevlar_system_icons");f.frostedGlass=_.E("web_frosted_glass");f.getEndpointForm=function(){return lWm(f.data)};
return f};
_.y(TN,_.U);_.X=TN.prototype;_.X.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.X.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.$Z(this.data.formattedTitle))};
_.X.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.X.onDown=function(){this.interaction.triggerDown()};
_.X.onUp=function(){this.interaction.triggerUp()};
_.X.onTap=function(f){if(this.data.serviceEndpoint){var R;_.E("shorts_controller_retrieve_seedless_sequence_v2")&&((R=_.t(this.data.serviceEndpoint,_.Ey))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Zv5(this.data.serviceEndpoint,this);f.preventDefault()}else{var u;((u=this.data)==null?0:u.navigationEndpoint)&&!_.$G(_.$S(f),this.hostElement,["A".toString()])&&_.ul(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.X.computeActive=function(f,R){if(!f)return!1;var u=f.navigationEndpoint;f=f.serviceEndpoint;if(!u&&!f||!R)return!1;if(u){f=_.t(u,_.wY);var O=_.t(R,_.wY);if(f&&O)return f.browseId===O.browseId&&f.params===O.params;var c;u=(c=_.t(u.commandMetadata,_.vc))==null?void 0:c.url;var h;R=(h=_.t(R.commandMetadata,_.vc))==null?void 0:h.url;return!(!u||!R||u!==R&&u!==_.Kt(R))}return this.isActiveShortsTab(f,R)};
_.X.isActiveShortsTab=function(f,R){R=!!_.t(R,_.Ey)||!!_.t(R,_.Dl);return(!!_.t(f,_.Ey)||!!_.t(f,_.Dl))&&R};
_.X.computeTitle=function(f,R){return R?"":_.$Z(f)};
_.Vy.Object.defineProperties(TN.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
TN.prototype.onTap=TN.prototype.onTap;TN.prototype.onUp=TN.prototype.onUp;TN.prototype.onDown=TN.prototype.onDown;TN.prototype.onActiveStateChange=TN.prototype.onActiveStateChange;TN.prototype.dataChanged=TN.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],TN.prototype,"ytComponentBehavior",void 0);
_.B([_.z(_.jv),_.S("design:type",Object)],TN.prototype,"ironButtonState",void 0);_.B([_.I(),_.S("design:type",Object)],TN.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],TN.prototype,"activeEndpoint",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],TN.prototype,"noLabels",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.S("design:type",Boolean)],TN.prototype,"isActive",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],TN.prototype,"systemIcons",void 0);_.B([_.a4("yt-interaction"),_.S("design:type",Object)],TN.prototype,"interaction",void 0);_.B([_.T("isActive"),_.S("design:type",Object),_.S("design:paramtypes",[])],TN.prototype,"ariaSelected",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],TN.prototype,"frostedGlass",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TN.prototype,"dataChanged",null);_.B([_.qM("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TN.prototype,"onActiveStateChange",null);_.B([_.Kf("down"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TN.prototype,"onDown",null);
_.B([_.Kf("up"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TN.prototype,"onUp",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],TN.prototype,"onTap",null);TN=_.B([_.e({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],TN);
_.G(TN,"ytd-mini-guide-entry-renderer",function(){if(Zeh!==void 0)return Zeh;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Zeh=f},{mode:_.c7("kevlar_poly_si_batch_j063")?1:2});var lAm;var HZ=function(){var f=_.U.apply(this,arguments)||this;f.allVideosCount=0;f.noLabels=_.E("kevlar_mini_guide_no_labels");f.frostedGlass=_.E("web_frosted_glass");return f};
_.y(HZ,_.U);_.X=HZ.prototype;_.X.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.X.visibleChanged=function(){if(this.visible&&!this.data){var f=_.vh().resolve(_.Y8(_.PX));f&&f.setGuideData(this.hostElement)}};
_.X.dataChanged=function(){var f=[],R;if((R=this.data)!=null&&R.items){R=_.Z(this.data.items);for(var u=R.next();!u.done;u=R.next()){u=u.value;var O=void 0;if((O=u.guideSectionRenderer)==null?0:O.items)for(O=void 0,u=_.Z((O=u.guideSectionRenderer)==null?void 0:O.items),O=u.next();!O.done;O=u.next())if(O=O.value,O.guideEntryRenderer)O=O.guideEntryRenderer,O.isPrimary&&f.push({guideEntryRenderer:O});else if(O.guideCollapsibleSectionEntryRenderer){var c=void 0;((c=_.t(O.guideCollapsibleSectionEntryRenderer.headerEntry,
$9))==null?0:c.isPrimary)&&f.push({guideEntryRenderer:_.t(O.guideCollapsibleSectionEntryRenderer.headerEntry,$9)});if(O=O.guideCollapsibleSectionEntryRenderer.sectionItems)for(O=_.Z(O),c=O.next();!c.done;c=O.next()){var h=c.value;c=_.t(h,I$h);var l=void 0;((l=_.t(h,$9))==null?0:l.isPrimary)?f.push({guideEntryRenderer:_.t(h,$9)}):c&&(h=void 0,_.t((h=c)==null?void 0:h.entryRenderer,$9)&&(c.alwaysShow||this.allVideosCount)&&f.push({guideEntryRenderer:_.t(c.entryRenderer,$9)}))}}}}this.miniGuideItems=
f};
_.X.activeEndpointChanged=function(){for(var f=this.items.children,R=0;R<f.length;R++)f[R].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
HZ.prototype.activeEndpointChanged=HZ.prototype.activeEndpointChanged;HZ.prototype.dataChanged=HZ.prototype.dataChanged;HZ.prototype.visibleChanged=HZ.prototype.visibleChanged;_.B([_.z(_.zH),_.S("design:type",Object)],HZ.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],HZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],HZ.prototype,"ytComponentBehavior",void 0);_.B([_.a4("#items"),_.S("design:type",Object)],HZ.prototype,"items",void 0);_.B([_.I(),_.S("design:type",Object)],HZ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],HZ.prototype,"visible",void 0);
_.B([_.I(),_.S("design:type",Object)],HZ.prototype,"miniGuideItems",void 0);_.B([_.I({selector:_.Cxl}),_.S("design:type",Object)],HZ.prototype,"allVideosCount",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HZ.prototype,"noLabels",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HZ.prototype,"frostedGlass",void 0);_.B([_.QR("visible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HZ.prototype,"visibleChanged",null);
_.B([_.QR("data","allVideosCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HZ.prototype,"dataChanged",null);_.B([_.QR("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],HZ.prototype,"activeEndpointChanged",null);HZ=_.B([_.e({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],HZ);
_.G(HZ,"ytd-mini-guide-renderer",function(){if(lAm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);lAm=f}f=lAm;return f},{mode:1});var klX;var Kp9=/^[\x00-\x7F]+$/,IJ=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(IJ,_.U);_.Vy.Object.defineProperties(IJ.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var f,R=_.$Z((f=this.data)==null?void 0:f.handle);if(R)return _.S8("@"+R)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var f=_.$Z(this.displayHandle),R,u=_.$Z((R=this.data)==null?void 0:R.handleUrl);if(f&&u)return _.S8(u+f)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var f=_.$Z(this.displayHandle);if(f&&!Kp9.test(f)){var R;return(R=this.data)==null?void 0:R.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var f=_.$Z(this.displayHandleUrl),R,u=_.$Z((R=this.data)==null?void 0:R.urlInfoText);if(f&&u)return _.S8(u+" "+f)}}});
_.B([_.I(),_.S("design:type",Object)],IJ.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],IJ.prototype,"displayHandle",null);_.B([_.T("displayHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],IJ.prototype,"displayHandleUrl",null);_.B([_.T("displayHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],IJ.prototype,"warningText",null);
_.B([_.T("displayHandleUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],IJ.prototype,"urlInfoTextWithUrl",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],IJ.prototype,"darkerDarkTheme",void 0);IJ=_.B([_.e({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],IJ);
_.G(IJ,"ytd-handles-claiming-confirm-dialog-content",function(){if(klX!==void 0)return klX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return klX=f},{mode:1});var ql5;var MJ=function(){var f=_.U.apply(this,arguments)||this;f.okButtonOverride={style:"mono",type:"outline",size:"M"};return f};
_.y(MJ,_.U);MJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MJ.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],MJ.prototype,"okButtonOverride",void 0);_.B([_.I(),_.S("design:type",Object)],MJ.prototype,"data",void 0);MJ=_.B([_.e({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],MJ);
_.G(MJ,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(ql5!==void 0)return ql5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ql5=f},{mode:1});var AUm;var aAh=/^[\x00-\x7F]+$/,PZ=function(){var f=_.U.apply(this,arguments)||this;f.isLoading=!1;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(PZ,_.U);PZ.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var f;this.selectedHandle=(f=this.handleInput)==null?void 0:f.value;this.onSelectedHandleChanged(this.selectedHandle);_.c_(this.hostElement,"yt-refit-popups-action")}};
_.Vy.Object.defineProperties(PZ.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.S8("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.S8(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!aAh.test(this.selectedHandle)){var f;return(f=this.data)==null?void 0:f.warningText}}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],PZ.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],PZ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],PZ.prototype,"selectedHandle",void 0);_.B([_.I(),_.S("design:type",Object)],PZ.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Function)],PZ.prototype,"onSelectedHandleChanged",void 0);_.B([_.a4("#channel-handle-input"),_.S("design:type",Object)],PZ.prototype,"handleInput",void 0);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],PZ.prototype,"handleUrlPrefix",null);_.B([_.T("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],PZ.prototype,"displayHandle",null);_.B([_.T("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],PZ.prototype,"displayHandleUrl",null);_.B([_.T("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],PZ.prototype,"warningText",null);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],PZ.prototype,"darkerDarkTheme",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);PZ=_.B([_.e({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],PZ);
_.G(PZ,"ytd-handles-claiming-edit-dialog-content",function(){if(AUm!==void 0)return AUm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return AUm=f},{mode:1});var Fp5;var UR=function(){var f=_.U.apply(this,arguments)||this;f.actionButtonOverride={style:"mono",type:"filled",size:"M"};f.cancelButtonOverride={style:"mono",type:"text",size:"M"};f.selectButtonDisabled=!1;f.isLoading=!1;f.hasSelectedHandleEventListener=!1;f.selectedHandleChanged=function(R){f.selectedHandle=R};
return f};
_.y(UR,_.U);_.X=UR.prototype;_.X.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.X.onDataChanged=function(){var f,R;this.selectedHandle=(R=_.t((f=this.data)==null?void 0:f.inputField,qrh))==null?void 0:R.handle};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onCancel=function(){this.selectedHandle="";_.OJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onSelectHandle=function(){var f=this;if(this.selectedHandle!==void 0){var R;((R=this.data)==null?void 0:R.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,O){if(O.newHandleUpdateStatus!==void 0&&O.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&O.newHandleUpdateStatus.errorMessage)_.f9(f.hostElement,_.$Z(O.newHandleUpdateStatus.errorMessage)),
f.isLoading=!1;else{var c;if((c=f.data)==null?0:c.onChannelUpdateSuccess){u=f.data.onChannelUpdateSuccess;var h,l;if(O=(h=_.t(u,_.dS))==null?void 0:(l=h.popup)==null?void 0:l.handlesClaimingConfirmDialogRenderer)O.handle=_.S8(f.selectedHandle);f.ytComponentBehavior.resolveCommand(u);_.OJ(f.hostElement,"yt-close-popup-action",[f.is])}else f.isLoading=!1}},
onServerError:function(){var u;f.content&&((u=f.content)==null?0:u.handleInput)&&f.content.handleInput.validate();f.isLoading=!1;_.f9(f.hostElement,_.Fa("TRY_AGAIN_LATER"))}}}))}};
_.X.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
UR.prototype.onDataChanged=UR.prototype.onDataChanged;UR.prototype.onSelectedHandleChanged=UR.prototype.onSelectedHandleChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"actionButtonOverride",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"cancelButtonOverride",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",String)],UR.prototype,"selectedHandle",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"selectButtonDisabled",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"hasSelectedHandleEventListener",void 0);_.B([_.I(),_.S("design:type",Object)],UR.prototype,"handleInput",void 0);
_.B([_.qM("selectedHandle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UR.prototype,"onSelectedHandleChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UR.prototype,"onDataChanged",null);_.B([_.a4("ytd-handles-claiming-edit-dialog-content"),_.S("design:type",Object)],UR.prototype,"content",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);UR=_.B([_.e({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],UR);
_.G(UR,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Fp5!==void 0)return Fp5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Fp5=f},{mode:1});var wOt;var e3=function(){return _.U.apply(this,arguments)||this};
_.y(e3,_.U);_.Vy.Object.defineProperties(e3.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.handle){var R;return _.S8("@"+_.$Z((R=this.data)==null?void 0:R.handle))}}}});
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],e3.prototype,"formattedHandle",null);_.B([_.I(),_.S("design:type",Object)],e3.prototype,"data",void 0);e3=_.B([_.e({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],e3);
_.G(e3,"ytd-handles-claiming-radio-option-renderer",function(){if(wOt!==void 0)return wOt;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wOt=f},{mode:1});var m$2;var Q3e=/^[\x00-\x7F]+$/,GN=function(){var f=_.U.apply(this,arguments)||this;f.initialRadioIndex="-1";f.isLoading=!1;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.maybeSubmitFeedback=function(){f.feedbackSurveyRenderer.submitSurvey()};
return f};
_.y(GN,_.U);GN.prototype.updateSelectedHandleIndexFromBinding=function(f){this.selectedRadioIndex=+f.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(f)};
GN.prototype.selectedHandleChanged=function(f){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var R;this.selectedHandle=(R=this.handleInput)==null?void 0:R.value;this.onSelectedHandleChanged(f)}};
_.Vy.Object.defineProperties(GN.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var f;return this.ytRendererBehavior.getSimpleString((f=this.data)==null?void 0:f.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.S8("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.S8(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Q3e.test(this.selectedHandle)){var f;return(f=this.data)==null?void 0:f.warningText}}}});
_.B([_.I(),_.S("design:type",Object)],GN.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],GN.prototype,"initialRadioIndex",void 0);_.B([_.I(),_.S("design:type",Number)],GN.prototype,"selectedRadioIndex",void 0);_.B([_.I(),_.S("design:type",String)],GN.prototype,"selectedHandle",void 0);_.B([_.I(),_.S("design:type",Object)],GN.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Function)],GN.prototype,"onSelectedHandleChanged",void 0);
_.B([_.I(),_.S("design:type",Function)],GN.prototype,"onSelectedRadioIndexChanged",void 0);_.B([_.a4("#channel-handle-input"),_.S("design:type",Object)],GN.prototype,"handleInput",void 0);_.B([_.a4("ytd-feedback-survey-renderer"),_.S("design:type",Object)],GN.prototype,"feedbackSurveyRenderer",void 0);_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],GN.prototype,"radioButtonLength",null);
_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],GN.prototype,"handleUrlPrefix",null);_.B([_.T("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],GN.prototype,"displayHandle",null);_.B([_.T("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],GN.prototype,"displayHandleUrl",null);_.B([_.T("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],GN.prototype,"warningText",null);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],GN.prototype,"darkerDarkTheme",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);GN=_.B([_.e({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],GN);
_.G(GN,"ytd-handles-claiming-select-dialog-content",function(){if(m$2!==void 0)return m$2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return m$2=f},{mode:1});var WpK;var BZ=function(){var f=_.U.apply(this,arguments)||this;f.actionButtonOverride={style:"mono",type:"filled",size:"M"};f.cancelButtonOverride={style:"mono",type:"text",size:"M"};f.initialRadioIndex="-1";f.selectButtonDisabled=!1;f.isLoading=!1;f.selectedRadioIndexChanged=function(R){f.selectedRadioIndex=Number(R.detail.value)};
f.selectedHandleChanged=function(R){f.selectedHandle=R.detail.value};
f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(BZ,_.U);_.X=BZ.prototype;_.X.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.X.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.X.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.c_(this.hostElement,"yt-refit-popups-action")};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.OJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onSelectHandle=function(){var f=this;if(this.selectedHandle!==void 0){var R;((R=this.data)==null?void 0:R.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,O){if(O.newHandleUpdateStatus!==void 0&&O.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&O.newHandleUpdateStatus.errorMessage)_.f9(f.hostElement,_.$Z(O.newHandleUpdateStatus.errorMessage)),
f.isLoading=!1;else{var c;if((c=f.data)==null?0:c.onChannelUpdateSuccess){u=f.data.onChannelUpdateSuccess;O=_.t(u,_.dS);var h;if(O==null?0:(h=O.popup)==null?0:h.handlesClaimingConfirmDialogRenderer)O.popup.handlesClaimingConfirmDialogRenderer.handle=_.S8(f.selectedHandle);f.ytComponentBehavior.resolveCommand(u);_.OJ(f.hostElement,"yt-close-popup-action",[f.is])}else f.isLoading=!1}},
onServerError:function(){if(f.selectedRadioIndex===f.radioButtonLength){var u;f.content&&((u=f.content)==null?0:u.handleInput)&&f.content.handleInput.validate()}f.isLoading=!1;_.f9(f.hostElement,_.Fa("TRY_AGAIN_LATER"))}}}))}};
_.X.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var f,R;this.selectedHandle=(f=this.content)==null?void 0:(R=f.handleInput)==null?void 0:R.value}else this.selectedRadioIndex>=0&&((f=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(f==null?void 0:f.handle):this.selectedHandle=void 0)};
_.X.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.X.getRadioItem=function(f){if(this.radioButtonLength>f&&f>=0)return _.t(this.data.radioButton[f],pel)};
_.Vy.Object.defineProperties(BZ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.radioButton)||[]).length}}});
BZ.prototype.onSelectedHandleChanged=BZ.prototype.onSelectedHandleChanged;BZ.prototype.onSelectedHandleIndexChanged=BZ.prototype.onSelectedHandleIndexChanged;BZ.prototype.onDataChanged=BZ.prototype.onDataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],BZ.prototype,"actionButtonOverride",void 0);_.B([_.I(),_.S("design:type",Object)],BZ.prototype,"cancelButtonOverride",void 0);
_.B([_.I(),_.S("design:type",Object)],BZ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],BZ.prototype,"initialRadioIndex",void 0);_.B([_.I(),_.S("design:type",Number)],BZ.prototype,"selectedRadioIndex",void 0);_.B([_.I(),_.S("design:type",String)],BZ.prototype,"selectedHandle",void 0);_.B([_.I(),_.S("design:type",Object)],BZ.prototype,"selectButtonDisabled",void 0);_.B([_.I(),_.S("design:type",Object)],BZ.prototype,"isLoading",void 0);
_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],BZ.prototype,"radioButtonLength",null);_.B([_.a4("ytd-handles-claiming-select-dialog-content"),_.S("design:type",Object)],BZ.prototype,"content",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BZ.prototype,"onDataChanged",null);
_.B([_.qM("selectedRadioIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BZ.prototype,"onSelectedHandleIndexChanged",null);_.B([_.qM("selectedHandle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BZ.prototype,"onSelectedHandleChanged",null);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],BZ.prototype,"darkerDarkTheme",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);BZ=_.B([_.e({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],BZ);
_.G(BZ,"ytd-handles-claiming-select-dialog-renderer",function(){if(WpK!==void 0)return WpK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return WpK=f},{mode:1});var Ecz;var tM5;var oJ=function(){return _.U.apply(this,arguments)||this};
_.y(oJ,_.U);oJ.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oJ.prototype,"data",void 0);oJ=_.B([_.e({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],oJ);
_.G(oJ,"ytd-hotkey-dialog-section-option-renderer",function(){if(tM5!==void 0)return tM5;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return tM5=f},{mode:1});var CPh;var xX=function(){return _.U.apply(this,arguments)||this};
_.y(xX,_.U);xX.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],xX.prototype,"data",void 0);xX=_.B([_.e({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],xX);
_.G(xX,"ytd-hotkey-dialog-section-renderer",function(){if(CPh!==void 0)return CPh;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return CPh=f},{mode:1});var S3=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(S3,_.U);S3.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],S3.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],S3.prototype,"darkerDarkTheme",void 0);S3=_.B([_.e({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],S3);
_.G(S3,"ytd-hotkey-dialog-content",function(){if(Ecz!==void 0)return Ecz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Ecz=f},{mode:1});var yUX;var $X=function(){return _.U.apply(this,arguments)||this};
_.y($X,_.U);$X.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var f=document.querySelector("ytd-hotkey-dialog-content #scrollable");f&&(f.dialogElement=this.hostElement.parentElement)};
$X.prototype.onCloseTap=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],$X.prototype,"data",void 0);$X=_.B([_.e({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],$X);
_.G($X,"ytd-hotkey-dialog-renderer",function(){if(yUX!==void 0)return yUX;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return yUX=f},{mode:1});var d$2;var g$=function(){return _.U.apply(this,arguments)||this};
_.y(g$,_.U);g$.prototype.onYtServiceRequestError=function(){if(this.blocked){var f;var R=(f=this.data)==null?void 0:f.defaultServiceEndpoint}else{var u;R=(u=this.data)==null?void 0:u.toggledServiceEndpoint}var O;(R=(O=_.t(R,_.UUI))==null?void 0:O.onFailureAction)&&this.ytComponentBehavior.resolveCommand(R);this.updateBlockState(!this.blocked)};
g$.prototype.onYtToggleButton=function(f){this.updateBlockState(f.detail.toggled)};
g$.prototype.updateBlockState=function(f){if(f!==this.blocked){var R=this.blockedEntityKey;R&&this.ytdReduxBehavior.dispatch(_.aA("blockStateEntity",R,{key:R,blocked:f}));this.set("data.isToggled",f)}};
_.Vy.Object.defineProperties(g$.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)}}});
g$.prototype.onYtToggleButton=g$.prototype.onYtToggleButton;g$.prototype.onYtServiceRequestError=g$.prototype.onYtServiceRequestError;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],g$.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],g$.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],g$.prototype,"blockedEntityKey",void 0);
_.B([_.I({selectorArgs:["blockedEntityKey"],selector:function(f,R){return _.kZ(f.entities,"blockStateEntity",R)}}),
_.S("design:type",Object)],g$.prototype,"blockStateEntity",void 0);_.B([_.T("data","blockStateEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],g$.prototype,"blocked",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],g$.prototype,"onYtServiceRequestError",null);
_.B([_.Kf("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],g$.prototype,"onYtToggleButton",null);g$=_.B([_.e({is:"ytd-block-button",disableElementRegistration:!0})],g$);
_.G(g$,"ytd-block-button",function(){if(d$2!==void 0)return d$2;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return d$2=f},
{mode:1});var NpS;var LpS;var sR=function(){return _.U.apply(this,arguments)||this};
_.y(sR,_.U);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],sR.prototype,"data",void 0);sR=_.B([_.e({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],sR);
_.G(sR,"ytd-kids-blocklist-picker-item-renderer",function(){if(LpS!==void 0)return LpS;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return LpS=f},{mode:1});var n3=function(){return _.U.apply(this,arguments)||this};
_.y(n3,_.U);n3.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],n3.prototype,"data",void 0);n3=_.B([_.e({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],n3);
_.G(n3,"ytd-kids-blocklist-picker-content",function(){if(NpS!==void 0)return NpS;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return NpS=
f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var beN;var V9=function(){var f=_.U.apply(this,arguments)||this;f.hasAnyRequestSucceeded=!1;f.hasAnyRequestFailed=!1;f.numPendingRequests=0;return f};
_.y(V9,_.U);_.X=V9.prototype;_.X.attached=function(){this.hostElement.setAttribute("dialog","")};
_.X.onDoneButtonTap=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.X.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.X.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.X.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.X.onPopupClosed=function(f){var R,u;if(((R=f.detail)==null?void 0:(u=R.popup)==null?void 0:u.is)==="tp-yt-paper-dialog"){var O;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((O=this.data)==null?0:O.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.YZ(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
V9.prototype.onPopupClosed=V9.prototype.onPopupClosed;V9.prototype.onYtServiceRequestError=V9.prototype.onYtServiceRequestError;V9.prototype.onYtServiceRequestCompleted=V9.prototype.onYtServiceRequestCompleted;V9.prototype.onYtServiceRequestSent=V9.prototype.onYtServiceRequestSent;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],V9.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],V9.prototype,"data",void 0);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V9.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V9.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V9.prototype,"onYtServiceRequestError",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],V9.prototype,"onPopupClosed",null);V9=_.B([_.e({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],V9);
_.G(V9,"ytd-kids-blocklist-picker-renderer",function(){if(beN!==void 0)return beN;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return beN=f},{mode:1});var pOa;var j3N;var YX=function(){return _.U.apply(this,arguments)||this};
_.y(YX,_.U);YX.prototype.setTip=function(f){var R=this;this.data&&(this.tip=mk5(Fuz.getInstance(),f,this.data),_.su(this,function(){_.ul(R.hostElement,"yt-refit")}))};
YX.prototype.clearTip=function(){this.tip=void 0};
YX.prototype.computeHidden=function(f){return!f};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],YX.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.S("design:type",Boolean)],YX.prototype,"hidden",void 0);_.B([_.I(),_.S("design:type",Object)],YX.prototype,"tip",void 0);YX=_.B([_.e({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],YX);
_.G(YX,"ytd-menu-popup-tip-renderer",function(){if(j3N!==void 0)return j3N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);
return j3N=f},{mode:1});var D$N;var vZ=function(){var f=_.U.apply(this,arguments)||this;f.useIcons=!1;f.systemIcons=_.E("kevlar_system_icons");f.useListItemStyles=_.E("web_list_item_style_for_menu_items");return f};
_.y(vZ,_.U);_.X=vZ.prototype;_.X.onFocus=function(){var f;(f=_.b(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.X.onTap=function(){var f=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(f&&_.t(f,_.kE))this.componentBehavior.resolveCommand(f),this.updateToggledStateInEntity();else if(f){this.componentBehavior.resolveCommand(f)||_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}});var R;((R=_.t(f,_.AH))==null?void 0:R.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.X.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.X.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.X.updateToggledStateInEntity=function(){var f=this.data.toggleMenuServiceItemEntityKey,R=!this.data.isToggled;f&&this.ytdReduxBehavior.dispatch(_.aA("toggleMenuServiceItemEntity",f,{key:f,isToggled:R}))};
_.X.computeIcon=function(f,R,u){return(f=f?u:R)&&f.iconType?_.li(f.iconType):""};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.isIconActive=function(f){return!_.E("toggle_menu_active_icon_killswitch")&&f};
_.Vy.Object.defineProperties(vZ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?0:f.isToggled)?(R=this.data)==null?void 0:R.toggledText:(u=this.data)==null?void 0:u.defaultText}}});
vZ.prototype.toggledStateEntityChanged=vZ.prototype.toggledStateEntityChanged;vZ.prototype.onYtServiceRequestCompleted=vZ.prototype.onYtServiceRequestCompleted;vZ.prototype.onTap=vZ.prototype.onTap;vZ.prototype.onFocus=vZ.prototype.onFocus;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],vZ.prototype,"componentBehavior",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],vZ.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],vZ.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vZ.prototype,"useIcons",void 0);_.B([_.I({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.S("design:type",String)],vZ.prototype,"icon",void 0);
_.B([_.I({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(f,R){return _.kZ(f.entities,"toggleMenuServiceItemEntity",R)}}),
_.S("design:type",Object)],vZ.prototype,"toggleMenuServiceItemEntity",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vZ.prototype,"systemIcons",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],vZ.prototype,"useListItemStyles",void 0);_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vZ.prototype,"onFocus",null);
_.B([_.T("data.isToggled"),_.S("design:type",Object),_.S("design:paramtypes",[])],vZ.prototype,"toggleButtonText",null);_.B([_.Kf("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vZ.prototype,"onTap",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vZ.prototype,"onYtServiceRequestCompleted",null);
_.B([_.qM("toggleMenuServiceItemEntity.isToggled","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vZ.prototype,"toggledStateEntityChanged",null);vZ=_.B([_.e({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],vZ);
_.G(vZ,"ytd-toggle-menu-service-item-renderer",function(){if(D$N!==void 0)return D$N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return D$N=f},{mode:1});var JUz;var iW=function(){return _.U.apply(this,arguments)||this};
_.y(iW,_.U);iW.prototype.onFocus=function(){var f;(f=_.b(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.Vy.Object.defineProperties(iW.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.EO(this.data.iconUrl)}}});
iW.prototype.onFocus=iW.prototype.onFocus;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],iW.prototype,"rendererBehavior",void 0);_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],iW.prototype,"ytEndpointBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],iW.prototype,"data",void 0);_.B([_.Kf("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iW.prototype,"onFocus",null);
_.B([_.T("data.iconUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],iW.prototype,"imageSource",null);iW=_.B([_.e({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],iW);
_.G(iW,"ytd-menu-custom-icon-item-renderer",function(){if(JUz!==void 0)return JUz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return JUz=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});_.ii(_.bp,"yt-list-item-view-model",{props:{data:_.SG,isMenuItem:_.SG,isCompact:_.SG,onTap:_.v7,trailingAccessory:_.v7,hideSelectionTextChevron:_.SG,disabled:_.SG,inPopup:_.SG,disableHorizontalPadding:_.SG,isOverlay:_.SG}});var r$=function(){var f=_.U.apply(this,arguments)||this;f.disableBackdropFilter=_.E("web_disable_backdrop_filter");return f};
_.y(r$,_.U);_.X=r$.prototype;
_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.X.computeAriaLabel=function(f){return f};
_.X.onPopupOpened=function(){this.items.selected=0;for(var f=_.Z(_.b(this.items).children),R=f.next();!R.done;R=f.next())R.value.popupPositionTarget=this.positionTarget;if(f=this.popupTip||void 0)f.setTip(this.source||""),this.source=void 0;this.veData&&(f=_.z4())&&_.op(f,[this.veData])};
_.X.onPopupClosed=function(){var f=this.popupTip||void 0;f&&f.clearTip()};
_.X.onIronActivate=function(f){this.shouldPersist(f)||_.OJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(f=_.z4())&&_.Sa(f,this.veData)};
_.X.shouldPersist=function(f){var R,u;if(((R=f.detail)==null?void 0:R.selected)===void 0||(u=this.data)==null||!u.items)return!1;var O,c;return!((c=(O=this.data.items[f.detail.selected])==null?void 0:O.toggleMenuServiceItemRenderer)==null||!c.persistentOnMenuPopup)};
_.X.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(f){return f.menuNavigationItemRenderer?!!f.menuNavigationItemRenderer.icon:f.menuServiceItemRenderer?!!f.menuServiceItemRenderer.icon:f.menuConditionalServiceItemRenderer?!!f.menuConditionalServiceItemRenderer.icon:f.menuConditionalNavigationItemRenderer?!!f.menuConditionalNavigationItemRenderer.icon:f.toggleMenuServiceItemRenderer?!!f.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
r$.prototype.onPopupClosed=r$.prototype.onPopupClosed;r$.prototype.onPopupOpened=r$.prototype.onPopupOpened;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],r$.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],r$.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],r$.prototype,"veData",void 0);_.B([_.I({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.S("design:type",String)],r$.prototype,"ariaLabel",void 0);_.B([_.I({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],r$.prototype,"useIcons",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],r$.prototype,"disableBackdropFilter",void 0);_.B([_.a4("#items"),_.S("design:type",Object)],r$.prototype,"items",void 0);_.B([_.a4("ytd-menu-popup-tip-renderer"),_.S("design:type",Object)],r$.prototype,"popupTip",void 0);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r$.prototype,"onPopupOpened",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r$.prototype,"onPopupClosed",null);r$=_.B([_.e({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],r$);
_.G(r$,"ytd-menu-popup-renderer",function(){if(pOa!==void 0)return pOa;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return pOa=f},{mode:1});var zuK;var TpX=_.nf(function(f){f=_.sU(f,{icon:void 0});var R=f.data;f=f.icon;var u=function(){return R().iconBadgeText},O={},c=_.KL("yt-spec-icon-badge-shape",function(){a:switch(R().iconBadgeType){case "notification":var h="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":h="yt-spec-icon-badge-shape--type-cart";break a;default:h=""}return h},function(){a:switch(R().iconBadgeStyle){case "overlay":var h="yt-spec-icon-badge-shape--style-overlay";
break a;default:h=""}return h},(O["yt-spec-icon-badge-shape--text-size-small"]=function(){var h=u();
return!!((h==null?0:h.length)&&h.length>2)},O));
return _.a("yt-icon-badge-shape",null,_.a(_.Q,{cond:f,then:function(h){return _.a("div",{class:c},_.a("div",{class:"yt-spec-icon-badge-shape__icon"},_.a(_.WM,{icon:h})),_.a(_.Q,{cond:u,then:function(l){return _.a("div",{class:"yt-spec-icon-badge-shape__badge"},l)}}))}}))},"og");
TpX.idomCompat=!0;_.ii(TpX,"yt-icon-badge-shape",{props:{data:_.SG,icon:_.SG}});var fV=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};f.unseenCount=0;f.isOverlay=!1;return f};
_.y(fV,_.U);_.X=fV.prototype;_.X.attached=function(){var f=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(R){f.onServiceWorkerMessage(R)})};
_.X.onDataChanged=function(){this.isAttached&&!this.JSC$18242_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18242_lastData=this.data};
_.X.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.X.computeIcon=function(){var f,R;return(f=this.data)==null?void 0:(R=f.icon)==null?void 0:R.iconType};
_.X.onServiceWorkerMessage=function(f){f.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.X.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.t(this.data.updateUnseenCountEndpoint,_.AH)&&_.t(this.data.updateUnseenCountEndpoint,_.AH).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.X.handleUpdateNotificationsUnseenCountAction=function(f){var R=this;f=_.t(f,W0e);f!=null&&f.unseenCount&&f.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(f.unseenCount),_.JA.addLowPriorityJob(function(){R.data.updateUnseenCountEndpoint&&R.ytComponentBehavior.resolveCommand(R.data.updateUnseenCountEndpoint)},f.timeoutMs))};
_.X.onClick=function(){_.ul(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var f=_.c_(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),R=this.data.menuRequest;f&&f.length===1&&f[0]?_.OJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):R&&this.ytComponentBehavior.resolveCommand(R)};
_.X.handleTopbarMenuClosedAction=function(f){f==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.X.toggleIconState=function(f){this.iconButton&&(this.iconButton.pressed=f)};
_.X.sendUnseenCountRequest=function(f){var R=this;_.dJ(_.JA,function(){R.ytComponentBehavior.resolveCommand(f)})};
_.X.updateCountUI=function(f){this.set("unseenCount",f<9?f:"9+")};
_.Vy.Object.defineProperties(fV.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
fV.prototype.handleUpdateNotificationsUnseenCountAction=fV.prototype.handleUpdateNotificationsUnseenCountAction;fV.prototype.onDataChanged=fV.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],fV.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.S$),_.S("design:type",Object)],fV.prototype,"ytdOpenPopupBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],fV.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],fV.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],fV.prototype,"unseenCount",void 0);_.B([_.I(),_.S("design:type",Object)],fV.prototype,"isOverlay",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],fV.prototype,"showTooltips",void 0);_.B([_.a4("yt-icon-button"),_.S("design:type",Object)],fV.prototype,"iconButton",void 0);
_.B([_.T("unseenCount"),_.S("design:type",Object),_.S("design:paramtypes",[])],fV.prototype,"showNotificationCount",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fV.prototype,"onDataChanged",null);_.B([_.Kf("yt-update-notifications-unseen-count-action"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],fV.prototype,"handleUpdateNotificationsUnseenCountAction",null);
fV=_.B([_.e({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],fV);
_.G(fV,"ytd-notification-topbar-button-renderer",function(){if(zuK!==void 0)return zuK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return zuK=f},{mode:_.c7("kevlar_poly_si_batch_j025")?1:2});var Hel;var RH=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return f};
_.y(RH,_.U);RH.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}}}}}};
RH.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
RH.prototype.onDarkModeToggled=function(f){this.dark=f};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],RH.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],RH.prototype,"data",void 0);_.B([_.I({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],RH.prototype,"dark",void 0);
RH=_.B([_.e({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],RH);
_.G(RH,"yt-pdg-buy-flow-header-renderer",function(){if(Hel!==void 0)return Hel;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Hel=f},{mode:1});var IA5;var MMN;var un=function(){var f=_.U.apply(this,arguments)||this;f.immediateValue=0;f.isDarkTheme=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(un,_.U);_.X=un.prototype;_.X.created=function(){_.Mj.requestAvailability()};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.dataChanged=function(){var f=_.b(this.hostElement).querySelector("#color-slider");f.immediateValue&&this.updateSliderKnobAndGradientStyles(f.immediateValue);this.data.notches[0].knobColorArgb&&_.ZO(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.ML(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Tf("HTML_DIR")==="rtl"&&_.b(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.X.onSliderImmediateChange=function(){var f=_.b(this.hostElement).querySelector("#color-slider");f.dragging&&(f.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(f.immediateValue),this.updateSliderKnobAndGradientStyles(f.immediateValue)),this.updateSliderAria())};
_.X.onSliderChange=function(){var f=_.b(this.hostElement).querySelector("#color-slider");f.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(f.immediateValue),this.updateSliderKnobAndGradientStyles(f.immediateValue));this.updateSliderAria()};
_.X.updateSliderAria=function(){var f=_.b(this.hostElement).querySelector("#color-slider"),R=_.b(this.hostElement).querySelector("#color-slider");R=_.$Z(this.data.notches[R.immediateValue].tierValue);_.H0()&&_.ul(this.hostElement,"iron-announce",{text:R});f.setAttribute("aria-valuetext",R)};
_.X.updateSuperThanksSelectedTierEntity=function(f){if(f!==this.immediateValue){var R,u,O=this==null?void 0:(R=this.data)==null?void 0:(u=R.superThanksSelectedTierEntity)==null?void 0:u.key;O&&O.length>0&&this.ytdReduxBehavior.dispatch(_.aA("superThanksSelectedTierEntity",O,{key:O,index:f}))}};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.updateSliderKnobAndGradientStyles=function(f){this.immediateValue=f;f=this.data.notches[f];if(f==null?0:f.knobColorArgb)var R={"--ytd-pdg-color-slider-knob-color":_.ML(f.knobColorArgb)};(f==null?0:f.linearGradientCssStyle)&&R!==null&&(R=Object.assign({},R,{"--ytd-pdg-color-slider-active-color":f==null?void 0:f.linearGradientCssStyle}));R!==null&&_.ZO(this.hostElement,R)};
un.prototype.onSliderChange=un.prototype.onSliderChange;un.prototype.onSliderImmediateChange=un.prototype.onSliderImmediateChange;un.prototype.dataChanged=un.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],un.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],un.prototype,"immediateValue",void 0);_.B([_.I(),_.S("design:type",Number)],un.prototype,"maxMarkers",void 0);
_.B([_.I({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Fnt}),_.S("design:type",Object)],un.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],un.prototype,"isDarkTheme",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],un.prototype,"ytdReduxBehavior",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],un.prototype,"dataChanged",null);
_.B([_.Kf("immediate-value-change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],un.prototype,"onSliderImmediateChange",null);_.B([_.Kf("change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],un.prototype,"onSliderChange",null);un=_.B([_.e({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],un);
_.G(un,"ytd-pdg-color-slider-renderer",function(){if(MMN!==void 0)return MMN;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return MMN=f},{mode:1});var PPe;var U$l;var OM=null;
_.NM({is:"ytd-comment-input",_template:function(){if(U$l!==void 0)return U$l;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return U$l=f},
behaviors:[_.Rtn.YtHostElementBehavior,_.mJ,_.M7.YtComponentBehavior,_.rj.YtRendererstamperBehavior,_.HHI.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 _.Hd}},
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",_.ks(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;_.Z$();this.focus()},
detached:function(){document.removeEventListener("tap",_.ks(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(f){f=f.detail;f=f.isCustomEmoji?f.shortcuts[0]:f.emojiId;var R=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(R,f);this.maybeUpdateTextDirection_();_.ul(this.hostElement,"input")},
getInputRange_:function(){var f=_.Qo();if(f){f=f.getBrowserRangeObject();for(var R=f.commonAncestorContainer;R;){if(R===this.getEditableTextArea_())return f;R=R.parentNode}}f=this.getEditableTextArea_();f=_.JO(f,f.childNodes.length);f.select();return f.getBrowserRangeObject()},
insertTextWithEmojis_:function(f,R,u){(R=this.emojiManager.createDocumentFragment(R,!0,!1,u===void 0?!0:u))&&R.childNodes.length!==0&&(f.collapsed||f.deleteContents(),u=R.lastChild,f.insertNode(R),_.lWC(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var f=_.Qo();if(f){var R=f.JSC$9247_getStartNode(),u=f.JSC$9247_getEndNode();if(kTX(R)&&kTX(u)){var O=f.JSC$9247_getStartOffset(),c;if(_.ZY&&R.nodeType===Node.ELEMENT_NODE&&(c=_.CBl(R)))_.JO(c,0).select();else{c=Yk(R)?R:_.Tx(R,Yk);var h=Yk(u)?u:_.Tx(u,Yk);if(c||h)if(f.isCollapsed()){if(R.nodeType===Node.TEXT_NODE){f=!0;O===R.length&&(f=!1);if(OM==="end"||OM==="right")f=!1;R=R.parentNode;f=[].concat(_.yq(R.parentNode.childNodes)).indexOf(R)+(f?0:1);_.JO(R.parentNode,f).select()}}else c?
c.previousSibling&&c.previousSibling.length>0?_.zp(u,f.JSC$9247_getEndOffset(),c.previousSibling,c.previousSibling.length-1).select():(R=document.createTextNode("\u200b"),c.parentNode.insertBefore(R,c),_.zp(u,f.JSC$9247_getEndOffset(),R,0).select()):h&&(h.nextSibling&&h.nextSibling.length>0?_.zp(R,f.JSC$9247_getStartOffset(),h.nextSibling,1).select():(u=document.createTextNode("\u200b"),h.parentNode.insertBefore(u,h.nextSibling),_.zp(R,f.JSC$9247_getStartOffset(),u,u.length).select()));OM=null}}else OM=
null}else OM=null},
leftKeyPressed_:function(){OM="left"},
rightKeyPressed_:function(){OM="right"},
endKeyPressed_:function(){OM="end"},
maybeDeleteChip_:function(){var f=w_z(!0);if(f){var R=_.Qo(),u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();_.LJ(u,R,f,f.childNodes.length).select()}},
maybeBackspaceChip_:function(){var f=w_z(!1);if(f){var R=_.Qo(),u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();_.LJ(u,R,f,0).select()}},
maybeBackspaceChipWordMode_:function(f){var R=_.Qo();if(R.isCollapsed()){var u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();var O=m5S(u,R,!0);O&&(_.LJ(u,R,O,0).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(f){var R=_.Qo();if(R.isCollapsed()){var u=R.JSC$9247_getStartNode();R=R.JSC$9247_getStartOffset();var O=m5S(u,R,!1);O&&(_.LJ(u,R,O,O.childNodes.length).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
onContentClick:function(f){f.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(f){f.defaultPrevented||f.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Yk(f.target)&&f.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.b(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.b(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(f,R){f=qJm(f,this.emojiManager,R).cloneNode(!0);for(R=f.firstChild;R;)if(R.nodeType!==1)R=R.nextSibling;else switch(R.tagName){case "BR":var u=_.dB();_.DXC(u,R);R=u.nextSibling;break;case "DIV":(u=R.lastChild)&&R.nextSibling&&_.pp(_.dB(),u);R.previousSibling&&(R.previousSibling.nodeType===1||R.previousSibling.nodeType===3&&!R.previousSibling.textContent.endsWith("\n"))&&_.bw(_.dB(),R);u&&u.nodeName==="BR"&&_.Q1(u);u=R;R.hasChildNodes()?(R=R.firstChild,
_.Jnl(u)):(R=R.nextSibling,_.Q1(u));break;default:R=R.nextSibling}return Qpl(f)},
setTextAreaValue:function(f){f||(f="");var R=this.getEditableFormattedString_();R.text="";this.getEditableTextArea_().innerText="";typeof f==="string"&&(f={runs:[{text:f}]});R.text=f},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();OM=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var f=this.getEditableTextArea_();f&&(_.JO(f,f.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Tf("HTML_DIR")==="rtl"){var f=this.getEditableTextArea_(),R=this.getTextAreaValue()!==""?"auto":"rtl";f.setAttribute("dir",R)}},
handleInputEvent_:function(){var f=null;if(this.isEmojiButtonDisplayed){var R=this.getInputRange_();R&&(f=this.emojiInput.retrieveTextBeforeRange(R))}this.insertText_(f,!0);this.updateCharCount_();f=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=f.scrollHeight>f.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var f=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:f})},
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(f){this.isEmojiButtonDisplayed&&(f.preventDefault(),f.stopImmediatePropagation(),f=f.clipboardData.getData("text/plain"),this.insertText_(f,!1,!1),_.ul(this.hostElement,"input"))},
insertText_:function(f,R,u){R=R===void 0?!1:R;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&f){var O=this.getInputRange_().cloneRange();this.emojiManager&&O&&(R&&this.emojiInput.offsetStartOfRangeBy(O,f.length),this.insertTextWithEmojis_(O,f,u),Kxl(this.getEditableTextArea_().lastChild)||(O=this.getInputRange_().cloneRange()),O&&(this.emojiInput.updateSuggestions(O,f),this.updateSuggestionOffset_(O)))}},
getSimpleString:_.$Z,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(f){return f?"focused":"not-focused"},
computePlaceholderText_:function(f){return this.getSimpleString(f)},
computeEditableText_:function(f){return this.getSimpleString(f)},
onPrefilledContentDismissed_:function(f){f.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(f,R){f?this.fire("yt-autonav-pause-focus"):R!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(f){var R=this.getEditableTextArea_();[].concat(_.yq(f.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(O){R.appendChild(document.createTextNode(O))})});
f.preventDefault()},
preventDefault_:function(f){f.preventDefault()},
onSuggestionInsert_:function(f){this.insertTextWithEmojis_(f.detail.range,f.detail.text)},
onEmojiSuggestionClick_:function(f){this.emojiInput.insertSuggestion(f.detail)},
updateSuggestionOffset_:function(f){if(this.emojiInput&&_.b(this.emojiInput).querySelector("#dropdown")){var R=this.getEditableTextArea_().getBoundingClientRect().bottom,u=f.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(R-u)+5;R=this.getEditableTextArea_().getBoundingClientRect().left;f=f.getBoundingClientRect().left-R;_.b(this.emojiInput).querySelector("#dropdown").style.marginLeft=f+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Mx("yt-post"));return this.localStorage}});var cy=function(){var f=_.U.apply(this,arguments)||this;f.currentCommentOptionIndex=0;f.isEmojiPickerDisplayed=!1;f.emojiManager=_.Hd;f.isUgcEmpty=!1;f.userGeneratedCommentChangedHandler=function(){_.ul(f.hostElement,"ytd-pdg-user-generated-comment-changed");f.isEmojiYtdCommentInputEnabled&&(f.isUgcEmpty=!f.ytdCommentInputEl.getTextAreaValue())};
f.pasteHandler=function(R){R.preventDefault();R.stopImmediatePropagation();var u;if(R=(u=R.clipboardData)==null?void 0:u.getData("text/plain"))u=document.getSelection().getRangeAt(0),u.collapsed||u.deleteContents(),R=document.createTextNode(R),u.insertNode(R),u.selectNodeContents(R),u.collapse(!1),R=window.getSelection(),R.removeAllRanges(),R.addRange(u)};
f.onDocumentClick=function(R){if(f.isEmojiPickerDisplayed){var u,O,c;!(R.target instanceof Node)||(u=R.composedPath())!=null&&u.includes(f.editableTextEl)||(O=R.composedPath())!=null&&O.includes(f.emojiButtonEl)||(c=R.composedPath())!=null&&c.includes(f.emojiPickerEl)||(f.isEmojiPickerDisplayed=!1)}};
return f};
_.y(cy,_.U);_.X=cy.prototype;_.X.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.X.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.X.detached=function(){var f;(f=this.contentEl)==null||f.removeEventListener("input",this.userGeneratedCommentChangedHandler);var R;(R=this.contentEl)==null||R.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.X.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.X.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var f;this.contentEl.textContent=this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.X.reloadEmojis=function(){this.emojiPickerEl&&_.t(this.emojiPicker,_.VAl)&&this.emojiPickerEl.updateEmojiCategories()};
_.X.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.ZO(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.X.handleBackgroundColorStyling=function(){var f;if((f=this.currentCommentOption)==null?0:f.commentBackgroundColorArgb){var R;_.ZO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.ML((R=this.currentCommentOption)==null?void 0:R.commentBackgroundColorArgb)})}else _.ZO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.X.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var f;(f=this.contentEl)==null||f.focus()}};
_.X.onEditButtonClick=function(f){var R=document.getSelection();R&&this.contentEl&&(f.stopPropagation(),f.preventDefault(),R.selectAllChildren(this.contentEl),R.collapseToEnd())};
_.X.onContentDrop=function(f){var R=this;if(f.dataTransfer){f=_.Z(f.dataTransfer.items);for(var u=f.next();!u.done;u=f.next())u=u.value,u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(O){var c;(c=R.contentEl)==null||c.appendChild(document.createTextNode(O))})}};
_.X.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.X.getUserGeneratedCommentText=function(){var f,R=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(f=this.contentEl)==null?void 0:f.textContent;return R?R.trim():""};
_.X.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.X.onEmojiSelect=function(f){this.ytdCommentInputEl.onEmojiSelect(f)};
_.Vy.Object.defineProperties(cy.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.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 f;return!((f=this.currentCommentOption)==null||!f.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if(_.t((f=this.currentCommentOption)==null?void 0:f.chipRenderer,_.Z5k)){var R;return _.t((R=this.currentCommentOption)==null?void 0:R.chipRenderer,_.Z5k)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var f,R;return((f=this.data)==null?0:f.commentOptionRenderers)?_.t((R=this.data)==null?void 0:R.commentOptionRenderers[this.superThanksSelectedTierEntity.index],$f9):void 0}var u,O;return((u=this.data)==null?0:u.commentOptionRenderers)?_.t((O=this.data)==null?void 0:O.commentOptionRenderers[this.currentCommentOptionIndex],$f9):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var f;return this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var f;return this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.commentDialog,_.BIA))==null?void 0:R.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.commentDialog,_.BIA))==null?void 0:R.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=_.t((f=this.data)==null?void 0:f.commentDialog,_.BIA))==null?void 0:R.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(R=_.t((f=this.data)==null?void 0:f.commentDialog,_.BIA))==null?void 0:R.emojiPicker;if(!_.t(u,_.VAl)||!_.t(u,_.VAl).categories)return!1;f=function(h){return h.emojiPickerCategoryRenderer?h.emojiPickerCategoryRenderer.emojiIds&&h.emojiPickerCategoryRenderer.emojiIds.length>0:h.emojiPickerUpsellCategoryRenderer?h.emojiPickerUpsellCategoryRenderer.emojis&&h.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var O,c;return((O=_.t(u,_.VAl))==null?0:(c=O.categories)==null?0:c.find(f))?!0:!1}}});
cy.prototype.onEmojiSelect=cy.prototype.onEmojiSelect;cy.prototype.dataChanged=cy.prototype.dataChanged;cy.prototype.currentCommentOptionChanged=cy.prototype.currentCommentOptionChanged;_.B([_.z(_.zH),_.S("design:type",Object)],cy.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],cy.prototype,"rendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.a4("#content-dom-if"),_.S("design:type",_.bu)],cy.prototype,"contentDomIfEl",void 0);_.B([_.a4("#content-no-emojis"),_.S("design:type",HTMLElement)],cy.prototype,"contentEl",void 0);_.B([_.a4("#container"),_.S("design:type",HTMLElement)],cy.prototype,"containerEl",void 0);_.B([_.a4("#comment-chip-container"),_.S("design:type",HTMLElement)],cy.prototype,"paidCommentChipContainerEl",void 0);_.B([_.a4("#text-input"),_.S("design:type",HTMLElement)],cy.prototype,"editableTextEl",void 0);
_.B([_.a4("#emoji-button"),_.S("design:type",HTMLElement)],cy.prototype,"emojiButtonEl",void 0);_.B([_.a4("#emoji-picker > yt-emoji-picker-renderer"),_.S("design:type",Object)],cy.prototype,"emojiPickerEl",void 0);_.B([_.a4("#text-input > ytd-comment-input"),_.S("design:type",Object)],cy.prototype,"ytdCommentInputEl",void 0);_.B([_.I(),_.S("design:type",Object)],cy.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],cy.prototype,"currentCommentOptionIndex",void 0);
_.B([_.I({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Fnt}),_.S("design:type",Object)],cy.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.I(),_.S("design:type",Object)],cy.prototype,"isEmojiPickerDisplayed",void 0);_.B([_.I(),_.S("design:type",Object)],cy.prototype,"emojiManager",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],cy.prototype,"isUgcEmpty",void 0);
_.B([_.qM("currentCommentOption"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cy.prototype,"currentCommentOptionChanged",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cy.prototype,"dataChanged",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cy.prototype,"isEmojiYtdCommentInputEnabled",null);
_.B([_.T("data.title"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"title",null);_.B([_.T("data.authorText"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"channelName",null);_.B([_.T("data.commentOptionRenderers","currentCommentOption"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cy.prototype,"shouldShowPaidCommentChipRenderer",null);
_.B([_.T("data.commentOptionRenderers","currentCommentOption"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"paidCommentChipRenderer",null);_.B([_.T("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"currentCommentOption",null);
_.B([_.T("data.defaultCommentText","superThanksSelectedTierEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"commentText",null);_.B([_.T("data.placeholderText"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"placeholderText",null);_.B([_.T("data.commentDialog.commentDialogRenderer.editableText"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"editableText",null);
_.B([_.T("data.commentDialog.commentDialogRenderer.emojiButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"emojiButton",null);_.B([_.T("data.commentDialog.commentDialogRenderer.emojiPicker"),_.S("design:type",Object),_.S("design:paramtypes",[])],cy.prototype,"emojiPicker",null);
_.B([_.T("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],cy.prototype,"isEmojiButtonDisplayed",null);_.B([_.Kf("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],cy.prototype,"onEmojiSelect",null);cy=_.B([_.e({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],cy);
_.G(cy,"ytd-pdg-comment-preview-renderer",function(){if(PPe!==void 0)return PPe;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return PPe=f},{mode:2});var eum;var XL=function(){var f=_.U.apply(this,arguments)||this;f.selected=!1;return f};
_.y(XL,_.U);_.X=XL.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.X.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.X.dataChanged=function(){this.data&&(_.OU(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.ZO(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.ML(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.ML(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.X.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.X.onClick=function(){this.logClick()};
_.X.onKeyboardSelect=function(){_.ul(this.hostElement,"tap");this.onClick()};
_.X.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XL.prototype.onClick=XL.prototype.onClick;XL.prototype.selectedChanged=XL.prototype.selectedChanged;XL.prototype.dataChanged=XL.prototype.dataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],XL.prototype,"componentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.mJ),_.S("design:type",Object)],XL.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.z(_.GJ),_.S("design:type",Object)],XL.prototype,"ironSelectableBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],XL.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],XL.prototype,"shownThumbnail",void 0);_.B([_.I(),_.S("design:type",Object)],XL.prototype,"basePriceText",void 0);_.B([_.I(),_.S("design:type",Object)],XL.prototype,"purchaseCommand",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],XL.prototype,"selected",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XL.prototype,"dataChanged",null);_.B([_.qM("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XL.prototype,"selectedChanged",null);_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XL.prototype,"onClick",null);
XL=_.B([_.e({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],XL);
_.G(XL,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(eum!==void 0)return eum;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return eum=f},{mode:1});var h2=function(){var f=_.U.apply(this,arguments)||this;f.selectedItemIndex=0;f.buyButtonDisabled=!1;return f};
_.y(h2,_.U);_.X=h2.prototype;
_.X.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]]"}}}}}};
_.X.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var f;var R=(f=_.t(this.data.colorSlider,Sr2))==null?void 0:f.notches[this.selectedItemIndex].purchaseCommand}else{var u;R=(u=_.t(this.data.selectableItemButtons[this.selectedItemIndex],sbN))==null?void 0:u.purchaseCommand}if(R){f=_.t(R,_.eOH);f.productData||(f.productData={});var O;f.productData={pdgData:{commentMessageText:(O=this.commentPreviewRenderer)==null?void 0:O.getUserGeneratedCommentText()}};
_.ul(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(R)}}};
_.X.dataChanged=function(){if(this.data){_.Hd.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.axA(_.Hd,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Hd.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var f;this.buyButtonDisabled=!((f=_.t(this.data.commentPreview,gPK))==null||!f.placeholderText);this.updatePriceSelectorStatus();var R;if((R=this.data)==null?0:R.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;f=[];this.data.preloadImages&&(f=this.data.preloadImages);
f=f.map(function(u){return _.rR(u.thumbnails,1920)});
f=_.Z(f);for(R=f.next();!R.done;R=f.next())(R=R.value)&&_.pvX(R).thenCatch(function(){_.Ih(Error("jl"))})}};
_.X.superThanksSelectedTierEntityChanged=function(){var f;(this==null?void 0:(f=this.superThanksSelectedTierEntity)==null?void 0:f.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.X.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.X.updatePriceSelectorStatus=function(){this.isColorSlider?(_.b(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.b(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.b(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.b(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.X.closeBuyFlow=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.X.onUserGeneratedContentChanged=function(){var f;this.buyButtonDisabled=!((f=this.commentPreviewRenderer)==null?0:f.getUserGeneratedCommentText())};
_.X.updateSelectedItemIndexFromBinding=function(f){this.selectedItemIndex=f.detail.value};
_.Vy.Object.defineProperties(h2.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.disclaimerText)}}});
h2.prototype.onUserGeneratedContentChanged=h2.prototype.onUserGeneratedContentChanged;h2.prototype.closeBuyFlow=h2.prototype.closeBuyFlow;h2.prototype.selectedItemIndexChanged=h2.prototype.selectedItemIndexChanged;h2.prototype.superThanksSelectedTierEntityChanged=h2.prototype.superThanksSelectedTierEntityChanged;h2.prototype.dataChanged=h2.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],h2.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],h2.prototype,"selectedItemIndex",void 0);_.B([_.I(),_.S("design:type",Boolean)],h2.prototype,"isColorSlider",void 0);
_.B([_.I(),_.S("design:type",Object)],h2.prototype,"buyButtonDisabled",void 0);_.B([_.I({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Fnt}),_.S("design:type",Object)],h2.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.a4("ytd-pdg-comment-preview-renderer"),_.S("design:type",Object)],h2.prototype,"commentPreviewRenderer",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],h2.prototype,"dataChanged",null);_.B([_.qM("superThanksSelectedTierEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],h2.prototype,"superThanksSelectedTierEntityChanged",null);_.B([_.qM("selectedItemIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],h2.prototype,"selectedItemIndexChanged",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],h2.prototype,"closeBuyFlow",null);_.B([_.Kf("ytd-pdg-user-generated-comment-changed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],h2.prototype,"onUserGeneratedContentChanged",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],h2.prototype,"isDisclaimerTextShown",null);
h2=_.B([_.e({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],h2);
_.G(h2,"yt-super-vod-buy-flow-content-renderer",function(){if(IA5!==void 0)return IA5;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return IA5=f},{mode:1});var Glm;var Zo=function(){var f=_.U.apply(this,arguments)||this;f.lottieAnimationRef={};return f};
_.y(Zo,_.U);_.X=Zo.prototype;_.X.created=function(){_.Mj.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ks(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.X.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.ul(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.X.detached=function(){this.autoCloseJobId&&_.JA.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ks(this,this.onPopupIronOverlayOpened))};
_.X.dataChanged=function(){var f=this;this.data&&this.data.autoCloseDelay&&(_.OJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Oz(_.JA,function(){f.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.ZO(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.X.onDOMLoadedLottie=function(){var f=this,R,u,O=Number((R=this.data)==null?void 0:(u=R.autoCloseDelay)==null?void 0:u.seconds)||0;this.fadeOutJobId=_.Oz(_.JA,function(){f.lottiePlayerEl.classList.add("fadeout")},(O-.25)*1E3);
this.autoCloseJobId=_.Oz(_.JA,function(){f.closePopup()},O*1E3)};
_.X.openPopup=function(){this.ironOverlayBehavior.open()};
_.X.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.OJ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ZW(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.vh().resolve(_.rv).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.JA.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.JA.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.X.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var f,R;(f=this.lottieAnimationRef)==null||(R=f.lottieEl)==null||R.destroy();f=this.data.lottie;var u,O;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:f.url+"_"+Math.random(),path:f.url,autoplay:!0,loop:(O=(u=f.settings)==null?void 0:u.loop)!=null?O:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Vy.Object.defineProperties(Zo.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var f,R;return!!((f=this.data)==null?0:(R=f.lottie)==null?0:R.url)}}});
Zo.prototype.maybeInitializeLottie=Zo.prototype.maybeInitializeLottie;Zo.prototype.dataChanged=Zo.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zo.prototype,"rendererBehavior",void 0);_.B([_.z(_.Bm),_.S("design:type",Object)],Zo.prototype,"ironOverlayBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zo.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Zo.prototype,"lottiePlayerProps",void 0);
_.B([_.I(),_.S("design:type",Object)],Zo.prototype,"lottieAnimationRef",void 0);_.B([_.a4("ytd-lottie-player"),_.S("design:type",HTMLElement)],Zo.prototype,"lottiePlayerEl",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zo.prototype,"dataChanged",null);_.B([_.T("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Zo.prototype,"hasLottieAnimation",null);
_.B([_.qM("data.lottie.url"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zo.prototype,"maybeInitializeLottie",null);Zo=_.B([_.e({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Zo);
_.G(Zo,"ytd-desktop-image-overlay-renderer",function(){if(Glm!==void 0)return Glm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Glm=f},{mode:1});var Bpm;var ln=function(){return _.U.apply(this,arguments)||this};
_.y(ln,_.U);_.X=ln.prototype;_.X.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"}}}}};
_.X.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",_.ks(this,this.closePopup))};
_.X.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ks(this,this.closePopup))};
_.X.dataChanged=function(){_.c_(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.t(this.data.header,xf2)&&(this.hasBackgroundBanner=!!_.t(this.data.header,xf2).backgroundBanner)};
_.X.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ks(this,this.closePopup))};
_.X.closePopup=function(){this.data&&this.data.onCloseCommand&&_.hH(this.hostElement,[this.data.onCloseCommand])};
ln.prototype.handleBuyflowSelectionSubmitted=ln.prototype.handleBuyflowSelectionSubmitted;ln.prototype.dataChanged=ln.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ln.prototype,"data",void 0);
_.B([_.I({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],ln.prototype,"hasBackgroundBanner",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ln.prototype,"dataChanged",null);_.B([_.Kf("yt-pdg-buy-flow-selection-submitted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ln.prototype,"handleBuyflowSelectionSubmitted",null);
ln=_.B([_.e({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ln);
_.G(ln,"ytd-pdg-buy-flow-renderer",function(){if(Bpm!==void 0)return Bpm;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Bpm=f},{mode:1});var ocl;var kp=function(){var f=_.U.apply(this,arguments)||this;f.isOpen=!1;f.isPlaylistCreated=!1;return f};
_.y(kp,_.U);_.X=kp.prototype;_.X.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.X.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.ul(this.hostElement,"yt-refit")};
_.X.onCreateTap=function(){var f=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.hH(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(R,u){if(!_.E("killswitch_ep_in_create_playlist_response")&&(u==null?0:u.actions))for(R=_.Z(u.actions),u=R.next();!u.done;u=R.next())u=u.value,_.t(u,_.jg)&&f.ytComponentBehavior.resolveCommand(u)}}]),this.isPlaylistCreated=!0)};
_.X.onKeydown=function(f){if(f.keyCode===13)this.onCreateTap()};
_.X.onServiceRequestCompleted=function(f){f.stopPropagation();_.OJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.X.computePrivacyBadge=function(f){return f?[{metadataBadgeRenderer:f}]:[]};
kp.prototype.onServiceRequestCompleted=kp.prototype.onServiceRequestCompleted;kp.prototype.onKeydown=kp.prototype.onKeydown;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],kp.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],kp.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],kp.prototype,"isOpen",void 0);
_.B([_.I(),_.S("design:type",Object)],kp.prototype,"isPlaylistCreated",void 0);_.B([_.I({value:{REQUIRED_LABEL:_.Fa("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Fa("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.S("design:type",Object)],kp.prototype,"addToStrings",void 0);_.B([_.I({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.S("design:type",Array)],kp.prototype,"privacyBadge",void 0);
_.B([_.a4("#privacy-input"),_.S("design:type",Object)],kp.prototype,"privacyInput",void 0);_.B([_.a4("#name-input"),_.S("design:type",Object)],kp.prototype,"nameInput",void 0);_.B([_.Kf("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],kp.prototype,"onKeydown",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],kp.prototype,"onServiceRequestCompleted",null);
kp=_.B([_.e({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],kp);
_.G(kp,"ytd-add-to-playlist-create-renderer",function(){if(ocl!==void 0)return ocl;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ocl=f},{mode:1});var x$t;var Slz;var KV=function(){var f=_.U.apply(this,arguments)||this;f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.y(KV,_.U);KV.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
KV.prototype.onCheckboxChange=function(f){var R=this;this.data&&_.UU(this,"yt-playlist-checkbox-changed",function(){var u=_.gY(f).checked?R.data.addToPlaylistServiceEndpoint:R.data.removeFromPlaylistServiceEndpoint;u&&_.vh().resolve(_.rv).resolveCommand(u,{form:{element:R.hostElement}});_.E("dl_playlist_killswitch")||R.transferState!=="TRANSFER_STATE_UNKNOWN"&&R.transferState!=="TRANSFER_STATE_FAILED"&&R.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:R.data.playlistId,action:"ACTION_SYNC"}})},
100)};
KV.prototype.computeIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
KV.prototype.dataChanged=KV.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],KV.prototype,"data",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],KV.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],KV.prototype,"ytComponentBehavior",void 0);_.B([_.a4("#checkbox"),_.S("design:type",HTMLInputElement)],KV.prototype,"checkbox",void 0);
_.B([_.I({selector:_.HW,selectorArgs:["data.playlistId"]}),_.S("design:type",String)],KV.prototype,"transferState",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KV.prototype,"dataChanged",null);KV=_.B([_.e({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],KV);
_.G(KV,"ytd-playlist-add-to-option-renderer",function(){if(Slz!==void 0)return Slz;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Slz=f},{mode:1});_.RI(Wx5);_.hS(Wx5,"ytd-menu-title-renderer",{propNames:["data"]});var q6=function(){var f=_.U.apply(this,arguments)||this;f.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Fa("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};f.closeButtonAriaLabel=_.Fa("SBOX_INAPPROPRIATE_CANCEL");f.dialog=_.E("desktop_add_to_playlist_renderer_dialog_popup");return f};
_.y(q6,_.U);_.X=q6.prototype;_.X.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"}}}};
_.X.onPopupOpened=function(){_.c2(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.X.onPopupClosed=function(){_.c2(this.playlists,"scrollable",!1)};
_.X.computeAriaLabel=function(){var f;if(this==null?0:(f=this.data)==null?0:f.actions){f=_.Z(this.data.actions);for(var R=f.next();!R.done;R=f.next())if(R=R.value,R.menuTitleRenderer)return _.$Z(R.menuTitleRenderer.title)}};
_.X.onTapClose=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Vy.Object.defineProperties(q6.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if(this==null?0:(f=this.data)==null?0:f.actions){f=_.Z(this.data.actions);for(var R=f.next();!R.done;R=f.next())if(R=R.value,R.menuTitleRenderer)return R.menuTitleRenderer}return!1}}});
q6.prototype.onPopupClosed=q6.prototype.onPopupClosed;q6.prototype.onPopupOpened=q6.prototype.onPopupOpened;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],q6.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],q6.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],q6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],q6.prototype,"addToStrings",void 0);_.B([_.I({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.S("design:type",String)],q6.prototype,"ariaLabel",void 0);_.B([_.I(),_.S("design:type",String)],q6.prototype,"closeButtonAriaLabel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],q6.prototype,"dialog",void 0);
_.B([_.a4("#playlists"),_.S("design:type",HTMLElement)],q6.prototype,"playlists",void 0);_.B([_.a4("ytd-add-to-playlist-create-renderer"),_.S("design:type",Object)],q6.prototype,"createRenderer",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],q6.prototype,"menuTitleRenderer",null);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],q6.prototype,"onPopupOpened",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],q6.prototype,"onPopupClosed",null);q6=_.B([_.e({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],q6);
_.G(q6,"ytd-add-to-playlist-renderer",function(){if(x$t!==void 0)return x$t;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return x$t=f},{mode:1});var $$m;var A2=function(){var f=_.U.apply(this,arguments)||this;f.isPlaylistEditComplete=!1;f.isCollabEngagementDisabled=!1;f.closeButtonAriaLabel=_.Fa("SBOX_INAPPROPRIATE_CANCEL");f.saveButton={title:_.Fa("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"};f.onValueChanged=function(){f.updateSaveButtonState();f.computeCollabEngagementDisabled()};
return f};
_.y(A2,_.U);_.X=A2.prototype;_.X.attached=function(){this.JSC$18298_scroller&&(this.JSC$18298_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18298_scroller.attached&&typeof this.JSC$18298_scroller.attached==="function"&&this.JSC$18298_scroller.attached())};
_.X.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.X.onPopupClosed=function(){this.reset()};
_.X.close=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.X.onClickSave=function(){var f=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var R=[];this.nameInput.value!==null&&R.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&R.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var u=Number(this.privacyInput.value);isNaN(u)||R.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:u})}this.votingInput.value!==null&&(u=this.votingInput.value)&&R.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:u});if(R.length>0){var O;_.t((O=this.data)==null?void 0:O.updateSettingsEndpoint,_.ji).actions=R;var c;if((c=this.data)==null?0:c.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){f.close()}}}),this.isPlaylistEditComplete=!0}}};
_.X.computePrivacyBadge=function(f){return f?[{metadataBadgeRenderer:f}]:[]};
_.X.computeEditorData=function(f){var R,u;return f==null?void 0:(R=f.sections)==null?void 0:(u=R[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer};
_.X.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.X.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}}}}}};
_.X.computeAriaLabel=function(){var f,R,u,O=(f=this.data)==null?void 0:(R=f.sections)==null?void 0:(u=R[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer;return _.$Z(O==null?void 0:O.title)};
_.X.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"}))};
_.X.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.X.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.X.isNameChanged=function(){var f,R,u;return(((f=this.editorData)==null?void 0:(R=f.name)==null?void 0:(u=R.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.nameInput.value||"")};
_.X.isDescriptionChanged=function(){var f,R,u;return(((f=this.editorData)==null?void 0:(R=f.description)==null?void 0:(u=R.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.descriptionInput.value||"")};
_.X.isPrivacyChanged=function(){var f,R,u,O,c,h,l,K;return((l=(f=this.editorData)==null?void 0:(R=f.privacy)==null?void 0:(u=R.dropdownFormFieldRenderer)==null?void 0:(O=u.dropdown)==null?void 0:(c=O.dropdownRenderer)==null?void 0:(h=c.entries)==null?void 0:h.find(function(q){var F;return q==null?void 0:(F=q.privacyDropdownItemRenderer)==null?void 0:F.isSelected}))==null?void 0:(K=l.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.privacyInput.value};
_.X.isVotingChanged=function(){var f,R,u,O,c,h,l,K;return((l=(f=this.editorData)==null?void 0:(R=f.voting)==null?void 0:(u=R.dropdownFormFieldRenderer)==null?void 0:(O=u.dropdown)==null?void 0:(c=O.dropdownRenderer)==null?void 0:(h=c.entries)==null?void 0:h.find(function(q){var F;return q==null?void 0:(F=q.privacyDropdownItemRenderer)==null?void 0:F.isSelected}))==null?void 0:(K=l.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.votingInput.value};
A2.prototype.onPopupClosed=A2.prototype.onPopupClosed;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],A2.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],A2.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],A2.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],A2.prototype,"data",void 0);_.B([_.I({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.S("design:type",Array)],A2.prototype,"privacyBadge",void 0);_.B([_.I({computed:"computeEditorData(data)"}),_.S("design:type",Object)],A2.prototype,"editorData",void 0);_.B([_.I(),_.S("design:type",Object)],A2.prototype,"isPlaylistEditComplete",void 0);_.B([_.I(),_.S("design:type",Object)],A2.prototype,"isCollabEngagementDisabled",void 0);
_.B([_.I({value:{REQUIRED_LABEL:_.Fa("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Fa("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.S("design:type",Object)],A2.prototype,"addToStrings",void 0);_.B([_.I({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.S("design:type",String)],A2.prototype,"ariaLabel",void 0);_.B([_.I(),_.S("design:type",String)],A2.prototype,"closeButtonAriaLabel",void 0);
_.B([_.I(),_.S("design:type",Object)],A2.prototype,"saveButton",void 0);_.B([_.a4("#name-input"),_.S("design:type",Object)],A2.prototype,"nameInput",void 0);_.B([_.a4("#description-input"),_.S("design:type",Object)],A2.prototype,"descriptionInput",void 0);_.B([_.a4("#privacy-input"),_.S("design:type",Object)],A2.prototype,"privacyInput",void 0);_.B([_.a4("#voting-input"),_.S("design:type",Object)],A2.prototype,"votingInput",void 0);
_.B([_.a4("#scroller"),_.S("design:type",Object)],A2.prototype,"JSC$18298_scroller",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A2.prototype,"onPopupClosed",null);_.B([_.I(),_.S("design:type",Object)],A2.prototype,"onValueChanged",void 0);A2=_.B([_.e({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],A2);
_.G(A2,"ytd-playlist-settings-editor-renderer",function(){if($$m===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);$$m=f}f=$$m;return f},{mode:1});var gcm;_.j6("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var aH=function(){return _.U.apply(this,arguments)||this};
_.y(aH,_.U);_.X=aH.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.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 f=this.get("data.nextButton.buttonRenderer.navigationEndpoint");f&&(this.nextNavigationEndpoint=f,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.X.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 f={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",f)}}};
_.X.onPopupOpened=function(f){f.detail!==this&&f.detail!==this.hostElement||!_.E("enable_premium_voluntary_pause")||_.OJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.X.onNextButtonTap=function(){var f=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);f&&this.ytdOpenPopupBehavior.openPopup(f)};
_.X.updateSelectedResponseIndexFromBinding=function(f){this.selectedResponseIndex=f.detail.value};
aH.prototype.onPopupOpened=aH.prototype.onPopupOpened;aH.prototype.onSelectedResponseIndexChange=aH.prototype.onSelectedResponseIndexChange;aH.prototype.dataChanged=aH.prototype.dataChanged;_.B([_.z(_.S$),_.S("design:type",Object)],aH.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],aH.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],aH.prototype,"selectedResponseIndex",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aH.prototype,"dataChanged",null);_.B([_.qM("selectedResponseIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aH.prototype,"onSelectedResponseIndexChange",null);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],aH.prototype,"onPopupOpened",null);aH=_.B([_.e({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],aH);
_.G(aH,"ytd-red-cancel-survey-renderer",function(){if(gcm!==void 0)return gcm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return gcm=f},{mode:1});var s3m;var FL=function(){var f=_.U.apply(this,arguments)||this;f.closeButtonAriaLabel=_.Fa("SBOX_INAPPROPRIATE_CANCEL");return f};
_.y(FL,_.U);FL.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
FL.prototype.onClickClose=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],FL.prototype,"rendererStamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],FL.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],FL.prototype,"closeButtonAriaLabel",void 0);FL=_.B([_.e({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],FL);
_.G(FL,"ytd-search-filter-options-dialog-renderer",function(){if(s3m!==void 0)return s3m;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return s3m=f},{mode:1});var ncS;var Cle=function(){return function(f){f=f.availabilityType;return f===void 0||f==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||f==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var wD=function(){var f=_.U.apply(this,arguments)||this;f.qualityOptions=[];f.upsellOptions=[];f.showUpsellSection=!1;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.rememberSettingsChecked=!1;return f};
_.y(wD,_.U);_.X=wD.prototype;_.X.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}}}}};
_.X.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.X.updateQualityOptions=function(){if(this.formats===void 0)_.OJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var f=[],R=[];this.showUpsellSection=!1;for(var u=_.Z(this.formats),O=u.next();!O.done;O=u.next())(O=O.value)&&(O.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?R.push(O):f.push(O));f.length&&(this.qualityOptions=taw(f));R.length&&(this.showUpsellSection=!0,this.upsellOptions=taw(R))}};
_.X.updateRememberString=function(){if(this.downloadQualityPickerEntity)var f=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var R;f=(R=this.data)==null?void 0:R.premiumRememberSettingString}else{var u;f=(u=this.data)==null?void 0:u.rememberSettingString}f=f===void 0?_.Fa("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):f;this.rememberSettingsCheckboxRenderer={title:_.fg(f),disabled:!1}};
_.X.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Vy.Object.defineProperties(wD.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var f;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(f=this.data)==null?void 0:f.qualityFormats}}});
wD.prototype.updateRememberString=wD.prototype.updateRememberString;wD.prototype.updateQualityOptions=wD.prototype.updateQualityOptions;wD.prototype.dataChanged=wD.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],wD.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],wD.prototype,"data",void 0);
_.B([_.z(_.zH),_.S("design:type",Object)],wD.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Boolean)],wD.prototype,"selectedUpsellQuality",void 0);_.B([_.I({computed:"computeIcon_(data.premiumIcon)",value:""}),_.S("design:type",String)],wD.prototype,"premiumIcon",void 0);_.B([_.I({selector:K$S,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.S("design:type",Object)],wD.prototype,"downloadQualityPickerEntity",void 0);
_.B([_.I(),_.S("design:type",Array)],wD.prototype,"qualityOptions",void 0);_.B([_.I(),_.S("design:type",Array)],wD.prototype,"upsellOptions",void 0);_.B([_.I(),_.S("design:type",Object)],wD.prototype,"showUpsellSection",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],wD.prototype,"darkerDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],wD.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.B([_.a4("#remember-settings"),_.S("design:type",HTMLInputElement)],wD.prototype,"rememberSettingsCheckbox",void 0);_.B([_.I(),_.S("design:type",Object)],wD.prototype,"rememberSettingsChecked",void 0);_.B([_.I(),_.S("design:type",Function)],wD.prototype,"onRememberSettingsCheckedChanged",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wD.prototype,"dataChanged",null);
_.B([_.qM("downloadQualityPickerEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wD.prototype,"updateQualityOptions",null);_.B([_.qM("selectedUpsellQuality"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wD.prototype,"updateRememberString",null);wD=_.B([_.e({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],wD);
_.G(wD,"ytd-download-quality-selector-content",function(){if(ncS!==void 0)return ncS;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return ncS=f},{mode:1});var VMK;var ms=function(){var f=_.U.apply(this,arguments)||this;f.selectedUpsellQuality=!1;f.qualityOptions=[];f.darkerDarkTheme=_.E("web_darker_dark_theme");f.useUpsellDismissAlternate=_.E("use_not_now_dl_upsell_dismiss_cta");f.shouldShowAlternateUpsellDimiss=!1;f.rememberSettings=!1;f.rememberSettingsChecked=!1;f.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};f.rememberSettingsCheckedChanged=function(R){f.rememberSettingsChecked=R};
return f};
_.y(ms,_.U);_.X=ms.prototype;
_.X.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fg(_.Fa("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fg(_.Fa("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fg(_.Fa("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fg(_.Fa("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.X.updateQualityOptions=function(){this.formats===void 0?_.OJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=taw(this.formats)};
_.X.onQualityOptionsSelect=function(f){if(this.qualityOptions&&f){f!==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 R=_.Z(this.qualityOptions.entries()),u=R.next();!u.done;u=
R.next()){u=_.Z(u.value);var O=u.next().value;u=u.next().value;var c=void 0,h=void 0;if(((c=u)==null?void 0:(h=c.settingsRadioOptionRenderer)==null?void 0:h.id)===f){this.selectedQualityIndex=O;f=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((f=this.formats[O])==null?void 0:f.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.X.onClickSubmit=function(){var f;if((f=this.downloadButtonRenderer)==null||!f.isDisabled){var R,u;f=(u=(R=this.data)==null?void 0:R.onSubmitEndpoint)!=null?u:{};var O,c;if(this.formats&&(((O=_.t(f,_.kO))==null?0:O.videoId)||((c=_.t(f,_.Kr))==null?0:c.playlistId))){var h,l,K,q,F,w;R={formatType:(q=(h=this.formats)==null?void 0:(l=h[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:l.format)!=null?q:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(F=this.getOfflineEndpoint(f))==null?void 0:(w=F.actionParams)==null?void 0:w.settingsAction)};this.getOfflineEndpoint(f).actionParams=R;this.ytComponentBehavior.resolveCommand(f)}_.OJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.X.onClickUpsell=function(){var f;if((f=this.upsellButtonRenderer)==null||!f.isDisabled){var R,u;f=(u=(R=this.data)==null?void 0:R.upsellEndpoint)!=null?u:{};this.ytComponentBehavior.resolveCommand(f);_.OJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);R="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var O,c,h,l;R=(l=(O=this.formats)==null?void 0:(c=O[(h=this.selectedQualityIndex)!=null?h:0])==null?void 0:c.format)!=null?l:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:R}})}};
_.X.onClickClose=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.X.getOfflineSettingsAction=function(f,R){return f?R===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":R:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.X.getOfflineEndpoint=function(f){return _.t(f,_.kO)?_.t(f,_.kO):_.t(f,_.Kr)};
_.Vy.Object.defineProperties(ms.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.fg(_.Fa("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var f;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(f=this.data)==null?void 0:f.qualityFormats}}});
ms.prototype.updateQualityOptions=ms.prototype.updateQualityOptions;ms.prototype.dataChanged=ms.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],ms.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Number)],ms.prototype,"selectedQualityIndex",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"selectedUpsellQuality",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],ms.prototype,"ytdReduxBehavior",void 0);
_.B([_.I({selector:K$S,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.S("design:type",Object)],ms.prototype,"downloadQualityPickerEntity",void 0);_.B([_.I(),_.S("design:type",Array)],ms.prototype,"qualityOptions",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],ms.prototype,"darkerDarkTheme",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],ms.prototype,"useUpsellDismissAlternate",void 0);
_.B([_.I(),_.S("design:type",Object)],ms.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"downloadButtonRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"upsellButtonRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"cancelButtonRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"upsellCancelButtonRenderer",void 0);_.B([_.I(),_.S("design:type",Object)],ms.prototype,"rememberSettings",void 0);
_.B([_.I(),_.S("design:type",Object)],ms.prototype,"rememberSettingsChecked",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ms.prototype,"dataChanged",null);_.B([_.qM("downloadQualityPickerEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ms.prototype,"updateQualityOptions",null);ms=_.B([_.e({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],ms);
_.G(ms,"ytd-download-quality-selector-renderer",function(){if(VMK!==void 0)return VMK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return VMK=f},{mode:1});var Ylh;var QY=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(QY,_.U);QY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
QY.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],QY.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],QY.prototype,"darkerDarkTheme",void 0);_.B([_.I({computed:"computeIcon_(data.infoIcon)"}),_.S("design:type",Object)],QY.prototype,"infoIcon",void 0);
_.B([_.I({computed:"computeIcon_(data.warningIcon)"}),_.S("design:type",Object)],QY.prototype,"warningIcon",void 0);QY=_.B([_.e({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],QY);
_.G(QY,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Ylh!==void 0)return Ylh;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Ylh=f},{mode:1});var vc2;var Wy=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(Wy,_.U);Wy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Wy.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"}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Wy.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Wy.prototype,"darkerDarkTheme",void 0);Wy=_.B([_.e({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Wy);
_.G(Wy,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(vc2!==void 0)return vc2;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return vc2=f},{mode:1});var iea;var EM=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(EM,_.U);EM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EM.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"}}}}};
EM.prototype.onServiceRequestSentOrCompleted=function(f,R){R&&R.actions&&R.actions.length>0&&_.OJ(this.hostElement,"yt-close-popup-action",[this.is])};
EM.prototype.onServiceRequestSentOrCompleted=EM.prototype.onServiceRequestSentOrCompleted;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],EM.prototype,"darkerDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],EM.prototype,"data",void 0);
_.B([_.Kf("yt-service-request-completed"),_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],EM.prototype,"onServiceRequestSentOrCompleted",null);EM=_.B([_.e({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],EM);
_.G(EM,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(iea!==void 0)return iea;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return iea=f},{mode:1});var rUK;var t2=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.submitButtonDisabled=!0;return f};
_.y(t2,_.U);_.X=t2.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.X.onDataChanged=function(){var f,R,u;if(((f=this.data)==null?void 0:(R=f.confirmButton)==null?void 0:(u=R.buttonRenderer)==null?void 0:u.isDisabled)!==void 0){var O,c,h;this.submitButtonDisabled=(O=this.data)==null?void 0:(c=O.confirmButton)==null?void 0:(h=c.buttonRenderer)==null?void 0:h.isDisabled}};
_.X.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.X.updateSubmitButtonDisabledFromBinding=function(f){this.submitButtonDisabled=f.detail.value};
_.X.updateSubmitButtonDisabledFromConfirmCheckbox=function(f){this.submitButtonDisabled=!f.detail.value};
t2.prototype.onDataChanged=t2.prototype.onDataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],t2.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],t2.prototype,"darkerDarkTheme",void 0);
_.B([_.I(),_.S("design:type",Object)],t2.prototype,"submitButtonDisabled",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t2.prototype,"onDataChanged",null);t2=_.B([_.e({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],t2);
_.G(t2,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(rUK!==void 0)return rUK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return rUK=f},{mode:1});var f7K;var CV=function(){return _.U.apply(this,arguments)||this};
_.y(CV,_.U);_.Vy.Object.defineProperties(CV.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var f,R,u;return((f=this.data)==null?void 0:f.title)+" "+((R=this.data)==null?void 0:R.metadataPrimary)+" "+((u=this.data)==null?void 0:u.metadataSecondary)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],CV.prototype,"data",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],CV.prototype,"ariaLabel",null);CV=_.B([_.e({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],CV);
_.G(CV,"ytd-compact-product-list-item-renderer",function(){if(f7K!==void 0)return f7K;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return f7K=f},{mode:1});var Rt5;var yY=function(){return _.U.apply(this,arguments)||this};
_.y(yY,_.U);yY.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]]"}}}}}};
_.Vy.Object.defineProperties(yY.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],yY.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yY.prototype,"data",void 0);yY=_.B([_.e({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],yY);
_.G(yY,"ytd-compact-product-list-renderer",function(){if(Rt5!==void 0)return Rt5;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Rt5=f},{mode:1});var u_m;var dD=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(dD,_.U);_.X=dD.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.X.getBackgroundUrl=function(){var f=this.get("data.headerImage.thumbnails");return f?"url("+_.rR(f,this.hostElement.clientWidth)+")":""};
_.X.onDataChanged=function(){var f=this.getBackgroundUrl();f&&(this.header.style.backgroundImage=f);f=_.z4();var R=_.Jj(),u=this.get("data.trackingParams");u&&R&&f&&_.ea(f,R,_.t4(u));f=_.Z(this.hostElement.querySelectorAll("yt-img-shadow"));for(R=f.next();!R.done;R=f.next())R.value.onShow()};
_.X.onPopupClosed=function(f){_.gY(f).localName==="ytd-membership-post-cancel-renderer"&&_.OJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
dD.prototype.onPopupClosed=dD.prototype.onPopupClosed;dD.prototype.onDataChanged=dD.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],dD.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],dD.prototype,"darkerDarkTheme",void 0);
_.B([_.a4("#header"),_.S("design:type",HTMLDivElement)],dD.prototype,"header",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dD.prototype,"onDataChanged",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],dD.prototype,"onPopupClosed",null);dD=_.B([_.e({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],dD);
_.G(dD,"ytd-membership-post-cancel-renderer",function(){if(u_m!==void 0)return u_m;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return u_m=f},{mode:1});var OYS;var N6=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(N6,_.U);N6.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
N6.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],N6.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],N6.prototype,"darkerDarkTheme",void 0);_.B([_.a4("ytd-feedback-survey-renderer"),_.S("design:type",Object)],N6.prototype,"feedbackSurveyRenderer",void 0);N6=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],N6);
_.G(N6,"ytd-sponsorship-confirm-cancel-content",function(){if(OYS!==void 0)return OYS;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return OYS=f},{mode:1});var cqK;var LV=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.maybeSubmitFeedback=function(){f.content&&f.content.maybeSubmitFeedback()};
return f};
_.y(LV,_.U);_.X=LV.prototype;_.X.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.X.onYtPopupOpened=function(f,R){R===this&&this.data&&this.data.onOpenCommands&&_.ZW(this.hostElement,this.data.onOpenCommands,this.hostElement);_.OJ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.X.onYtPopupClosed=function(f,R){(R&&R.canceled===!0||R&&R.canceled===!1&&R.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ZW(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestCompleted=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.X.onYtServiceRequestError=function(f){_.f9(this.hostElement,f.detail.error.message)};
_.X.onDataChanged=function(){if(this.isAttached){var f=this.backgroundUrl;f&&(_.b(this.hostElement).querySelector("#header").style.backgroundImage=f)}};
_.Vy.Object.defineProperties(LV.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return f?"url("+_.rR(f,this.hostElement.clientWidth)+")":""}}});
LV.prototype.onDataChanged=LV.prototype.onDataChanged;LV.prototype.onYtServiceRequestError=LV.prototype.onYtServiceRequestError;LV.prototype.onYtServiceRequestCompleted=LV.prototype.onYtServiceRequestCompleted;LV.prototype.onYtPopupClosed=LV.prototype.onYtPopupClosed;LV.prototype.onYtPopupOpened=LV.prototype.onYtPopupOpened;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],LV.prototype,"data",void 0);_.B([_.I({value:function(){return _.Fa("SBOX_INAPPROPRIATE_CANCEL")}}),
_.S("design:type",String)],LV.prototype,"closeButtonAriaLabel",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],LV.prototype,"darkerDarkTheme",void 0);_.B([_.a4("#scrollable"),_.S("design:type",Object)],LV.prototype,"scrollable",void 0);_.B([_.a4("ytd-sponsorship-confirm-cancel-content"),_.S("design:type",Object)],LV.prototype,"content",void 0);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],LV.prototype,"onYtPopupOpened",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],LV.prototype,"onYtPopupClosed",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],LV.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],LV.prototype,"onYtServiceRequestError",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LV.prototype,"onDataChanged",null);
LV=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],LV);
_.G(LV,"ytd-sponsorship-confirm-cancel-renderer",function(){if(cqK!==void 0)return cqK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return cqK=f},{mode:_.c7("kevlar_poly_si_batch_j081")?1:2});var XP9;var bn=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(bn,_.U);bn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bn.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],bn.prototype,"darkerDarkTheme",void 0);bn=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],bn);
_.G(bn,"ytd-sponsorships-celebration-content",function(){if(XP9!==void 0)return XP9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return XP9=
f},{mode:1});var ht9;var ZYw=_.Sg(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),pV=function(){var f=_.U.apply(this,arguments)||this;f.scriptsAppended=!1;f.buttonOverrides={type:"tonal",style:"overlay-dark"};return f};
_.y(pV,_.U);_.X=pV.prototype;
_.X.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:_.E("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onDataChanged=function(){var f;(f=this.header)==null||f.style.setProperty("background-color",this.backgroundColor);if(f=this.headerImageUrl){var R;(R=this.header)==null||R.style.setProperty("background-image",f)}R=_.z4(4);f=_.Jj(4);var u=this.get("data.trackingParams");if(u&&f&&R){var O=_.t4(u);_.ea(R,f,O);_.E("combine_ve_grafts")?_.wR().graftServerVe(u,f,4):_.ea(R,f,O)}R=_.Z(this.hostElement.querySelectorAll("yt-img-shadow"));for(f=R.next();!f.done;f=R.next())f.value.onShow();if(R=this.get("data.gtmId"))_.Ck(R,
_.Tf("GL","")),this.setupConversionTracking()};
_.X.setupConversionTracking=function(){if(!this.scriptsAppended){var f=document.createElement("script");var R=_.Ia(ZYw.join(""));_.Pz(f,R);document.head.appendChild(f);f=document.createElement("noscript");f.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(f);this.scriptsAppended=!0}};
_.X.onPopupClosed=function(f){if(_.gY(f).localName==="ytd-sponsorships-celebration-renderer"){_.OJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var R;this.data&&((R=this.data)==null?0:R.dismissCommand)&&_.KU.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Vy.Object.defineProperties(pV.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.ML(f)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return f?"url("+_.rR(f,this.hostElement.getBoundingClientRect().width)+")":""}}});
pV.prototype.onPopupClosed=pV.prototype.onPopupClosed;pV.prototype.onDataChanged=pV.prototype.onDataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pV.prototype,"data",void 0);_.B([_.a4("#header"),_.S("design:type",HTMLElement)],pV.prototype,"header",void 0);
_.B([_.I(),_.S("design:type",Object)],pV.prototype,"scriptsAppended",void 0);_.B([_.I(),_.S("design:type",Object)],pV.prototype,"buttonOverrides",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pV.prototype,"onDataChanged",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],pV.prototype,"onPopupClosed",null);
pV=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],pV);
_.G(pV,"ytd-sponsorships-celebration-renderer",function(){if(ht9!==void 0)return ht9;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return ht9=f},{mode:1});var l7N;var jx=function(){var f=_.U.apply(this,arguments)||this;f.isToggleChecked=!1;return f};
_.y(jx,_.U);jx.prototype.onDataChanged=function(){var f;this.isToggleChecked=((f=this.data)==null?void 0:f.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
jx.prototype.close=function(){var f;((f=this.data)==null?0:f.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
jx.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var f,R=_.t((f=this.data)==null?void 0:f.switchButton,nPl);R&&(this.isToggleChecked&&R.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(R.switchOnInnertubeCommand),!this.isToggleChecked&&R.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(R.switchOffInnertubeCommand))};
jx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jx.prototype.onDataChanged=jx.prototype.onDataChanged;_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],jx.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],jx.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],jx.prototype,"isToggleChecked",void 0);_.B([_.I({value:_.Fa("CLOSE")}),_.S("design:type",String)],jx.prototype,"closeButtonAriaLabel",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jx.prototype,"onDataChanged",null);jx=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],jx);
_.G(jx,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(l7N!==void 0)return l7N;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return l7N=f},{mode:1});var kU9;var Do=function(){return _.U.apply(this,arguments)||this};
_.y(Do,_.U);_.X=Do.prototype;_.X.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"}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.detached=function(){this.playerElement.stop()};
_.X.onYtServiceRequestCompleted=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.X.onYtServiceRequestError=function(f){_.f9(this.hostElement,f.detail.error.message)};
_.X.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.X.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.X.getTier=function(f,R){return!f||!f.tiers||R<0?null:_.t(f.tiers[R],iJw)};
_.X.moreThanOne=function(f){return!!(f&&f.length>1)};
_.X.tierOverviewTap=function(f){var R=this;this.selectedTier=f.model.index;_.su(this,function(){_.ul(R.hostElement,"yt-refit")})};
_.X.computeSelectedClass=function(f,R){return this.isSelected(f,R)?"selected":""};
_.X.computeButtonAriaPressed=function(f,R){return this.isSelected(f,R)?"true":"false"};
_.X.isSelected=function(f,R){return f===R};
_.X.onDataChanged=function(){_.b(this.hostElement).querySelector("#header-overlay").style.visibility="";_.b(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 f=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),
R=f.next();!R.done;R=f.next())R.value.onShow();var u;this.set("selectedTier",(u=this.get("data.targetTierIndex"))!=null?u:0);var O;(f=(O=this.data)==null?void 0:O.onVisible)&&this.ytComponentBehavior.resolveCommand(f)};
_.X.initializeVe=function(f){var R=_.z4(),u=_.Jj(),O=this.get("data.trackingParams");u&&R&&(this.screenLayer=4,R=_.MW(_.AVq)(void 0,69877,{clientScreenNonce:R,visualElement:u},void 0,void 0,void 0),_.Hc(R,69877,4),u=_.Jj(4),O&&u&&(O=_.t4(O),_.ea(R,u,O),f&&(this.offerVideoVe=_.dx(74659),_.ea(R,O,this.offerVideoVe))))};
_.X.setHeaderBackground=function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.b(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.ML(f);if(f=this.getHeaderImage())f=_.rR(f,screen.width),_.b(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+f+")"};
_.X.getHeaderImage=function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&f?f:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.X.setupVideoPlayer=function(f){var R=this,u,O,c,h;return _.k(function(l){if(l.nextAddress==1)return u=R.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),O=R.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.E("kevlar_player_update_killswitch")?R.playerElement.update({args:{autoplay:u,video_id:f,player_params:O}}):R.playerElement.loadVideoWithPlayerVars({autoplay:u,video_id:f,player_params:O}),
_.A(l,R.playerElement.getPlayerPromise(),2);c=l.yieldResult;c.addEventListener("onStateChange",function(K){R.onPlayerStateChange(K)});
c.setScreenLayer(R.screenLayer);(h=_.z4(4))&&R.offerVideoVe&&_.B_(h,R.offerVideoVe);u&&(R.pauseOtherPlayers(),R.playerElement.focusOnPlayer(),R.playerElement.getPlayer().hideControls(),_.dJ(_.JA,function(){R.fadeOutHeaderOverlay()},4E3));
_.KG(l)})};
_.X.onPlayerStateChange=function(f){f===1?this.backgroundPlayerElement&&(f=this.backgroundPlayerElement.player_.getPlayerState(),f!==1&&f!==3||this.backgroundPlayerElement.pause()):f===0&&(_.b(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.b(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.X.fadeOutHeaderOverlay=function(){_.b(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.X.onHeaderTap=function(){if(this.offerVideo){_.b(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var f;((f=this.playerElement.player_)==null?void 0:f.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(f=_.z4(4))&&this.offerVideoVe&&_.Sa(f,this.offerVideoVe)}};
_.X.getBackgroundImageLayerClass=function(f){return f?"background-image-layer-with-video":""};
_.X.getHeaderClass=function(f){return f?"header-with-video":""};
_.X.getHeaderOverlayClass=function(f){return f?"header-overlay-with-video":""};
_.X.getTitleContainerClass=function(f,R){return f?"title-container-with-video":R?"title-container-without-video-flexible":"title-container-without-video"};
_.X.tierTitleDisplayStatus=function(f){return this.moreThanOne(f)?"hide":"show"};
_.X.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.vh().resolve(_.MS).getPlayerElement():this.backgroundPlayerElement=_.Vm();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var f=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=f===1||f===3;this.backgroundPlayerElement.pause()}};
_.X.isMiniplayerActive=function(){return _.vh().resolve(_.MS).isMiniplayerActive()};
_.X.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("selected-tier-changed",this.selectedTier))};
Do.prototype.selectedTierChangedForBinding=Do.prototype.selectedTierChangedForBinding;Do.prototype.onDataChanged=Do.prototype.onDataChanged;Do.prototype.onYtPopupClosed=Do.prototype.onYtPopupClosed;Do.prototype.onYtPopupOpened=Do.prototype.onYtPopupOpened;Do.prototype.onYtServiceRequestError=Do.prototype.onYtServiceRequestError;Do.prototype.onYtServiceRequestCompleted=Do.prototype.onYtServiceRequestCompleted;
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Do.prototype,"data",void 0);_.B([_.I({value:0}),_.S("design:type",Number)],Do.prototype,"selectedTier",void 0);
_.B([_.I({value:""}),_.S("design:type",String)],Do.prototype,"offerVideo",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Do.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.B([_.I({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.cG(this)}}),
_.S("design:type",String)],Do.prototype,"playerId",void 0);_.B([_.a4("tp-yt-paper-dialog-scrollable"),_.S("design:type",Object)],Do.prototype,"scrollable",void 0);_.B([_.a4("ytd-sponsorships-tier-renderer"),_.S("design:type",Object)],Do.prototype,"tierRenderer",void 0);_.B([_.a4("#player"),_.S("design:type",Object)],Do.prototype,"playerElement",void 0);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Do.prototype,"onYtServiceRequestCompleted",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Do.prototype,"onYtServiceRequestError",null);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Do.prototype,"onYtPopupOpened",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Do.prototype,"onYtPopupClosed",null);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Do.prototype,"onDataChanged",null);
_.B([_.qM("selectedTier"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Do.prototype,"selectedTierChangedForBinding",null);Do=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Do);
_.G(Do,"ytd-sponsorships-offer-renderer",function(){if(kU9!==void 0)return kU9;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return kU9=f},{mode:_.c7("kevlar_poly_si_batch_j077")?1:2});var Khm;var J2=function(){var f=_.U.apply(this,arguments)||this;f.buttonOverrides={type:"filled",style:"mono"};return f};
_.y(J2,_.U);J2.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}}}}}};
J2.prototype.backgroundColorChanged=function(){var f,R,u,O=(R=_.t((f=this.data)==null?void 0:f.content,rO5))==null?void 0:(u=R.backgroundColor)==null?void 0:u.backgroundColor;O&&(f=_.I1(O),_.b(this.hostElement).querySelector("#banner").style.backgroundColor=f,_.b(this.hostElement).querySelector("#abstract-art").style.backgroundColor=f)};
J2.prototype.attached=function(){this.JSC$18384_scroller&&(this.JSC$18384_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18384_scroller.attached&&typeof this.JSC$18384_scroller.attached==="function"&&this.JSC$18384_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
J2.prototype.backgroundColorChanged=J2.prototype.backgroundColorChanged;_.B([_.I(),_.S("design:type",Object)],J2.prototype,"data",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#scroller"),_.S("design:type",Object)],J2.prototype,"JSC$18384_scroller",void 0);_.B([_.I(),_.S("design:type",Object)],J2.prototype,"buttonOverrides",void 0);
_.B([_.qM("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],J2.prototype,"backgroundColorChanged",null);J2=_.B([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],J2);
_.G(J2,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Khm!==void 0)return Khm;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Khm=f},{mode:_.c7("kevlar_poly_si_batch_j077")?1:2});var qiK;var Aqe;var zr=function(){return _.U.apply(this,arguments)||this};
_.y(zr,_.U);zr.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
zr.prototype.computeIsInitiallyChecked=function(f){return f===1};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],zr.prototype,"data",void 0);_.B([_.a4("#checkbox"),_.S("design:type",Object)],zr.prototype,"checkbox",void 0);zr=_.B([_.e({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],zr);
_.G(zr,"ytd-subscription-toggle-option-renderer",function(){if(Aqe!==void 0)return Aqe;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Aqe=f},{mode:1});var Tr=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return f};
_.y(Tr,_.U);Tr.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"}}}};
Tr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Tr.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var f=_.b(this.hostElement).querySelector("#options").selected;f=this.data.options[f].subscriptionRadioOptionRenderer.serviceEndpoint;var R=_.b(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");R&&f&&f.modifyChannelNotificationPreferenceEndpoint&&(R=R.getValue())&&(f.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[R]);_.vh().resolve(_.rv).resolveCommand(f,{form:{element:this.hostElement}});
_.OJ(this.hostElement,"yt-close-popup-action")};
_.Vy.Object.defineProperties(Tr.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var f=this.data.options,R=0;R<f.length;R++){var u=f[R].subscriptionRadioOptionRenderer;if(u&&u.selected)return R}return null}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Tr.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],Tr.prototype,"eventForwardingBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Tr.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Tr.prototype,"darkerDarkTheme",void 0);_.B([_.T("data.options"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tr.prototype,"initialIndex",null);Tr=_.B([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Tr);
_.G(Tr,"ytd-subscription-notification-options-renderer",function(){if(qiK!==void 0)return qiK;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return qiK=f},{mode:1});var a7m;var Hy=function(){return _.U.apply(this,arguments)||this};
_.y(Hy,_.U);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Hy.prototype,"data",void 0);Hy=_.B([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Hy);
_.G(Hy,"ytd-tvfilm-offer-groups-renderer",function(){if(a7m!==void 0)return a7m;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return a7m=f},{mode:1});var Fha;var IH=function(){var f=_.U.apply(this,arguments)||this;f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(IH,_.U);_.X=IH.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.X.computeThumbnailClass=function(f){return f.thumbnailOverlays?f.isShow?"thumbnail-show":"thumbnail-movie":f.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.X.computeCommerceSectionClass=function(f){return f.offers&&f.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.X.computeTitleClass=function(f){return f.offers&&f.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.X.onDataChanged=function(){[].concat(_.yq(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(f){f.onShow()})};
IH.prototype.onDataChanged=IH.prototype.onDataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IH.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],IH.prototype,"darkerDarkTheme",void 0);
_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IH.prototype,"onDataChanged",null);IH=_.B([_.e({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],IH);
_.G(IH,"ytd-ypc-offers-overlay-renderer",function(){if(Fha!==void 0)return Fha;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Fha=f},{mode:_.c7("kevlar_poly_si_batch_j028")?1:2});var wPe;var mCa=function(){this.usedMethods=new Set};
mCa.prototype.add=function(f){this.usedMethods.add(f)};
mCa.prototype.reset=function(){this.usedMethods.clear()};var Eym=function(f,R){this.query=f;this.previousSearchQuery=R;this.id=QWz++;if(!Wht){R=_.Tf("SBOX_SETTINGS");f="https://"+((R==null?void 0:R.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var u=R==null?void 0:R.REQUEST_LANGUAGE;u&&(f+="&hl="+u);(u=R==null?void 0:R.REQUEST_DOMAIN)&&(f+="&gl="+u);f+="&client=youtube&gs_ri=youtube";(u=R==null?void 0:R.SUGG_EXP_ID)&&(f+="&sugexp="+encodeURIComponent(u));(u=R==null?void 0:R.PSUGGEST_TOKEN)&&(f+="&tok="+u);(R=
R==null?void 0:R.SESSION_INDEX)&&(f+="&authuser="+R);_.E("desktop_enable_visual_suggest")&&(f+="&h=180&w=320&ytvs=1");Wht=f}},tbt=function(f){var R="q="+encodeURIComponent(f.query);
f.previousSearchQuery&&(R+="&pq="+encodeURIComponent(f.previousSearchQuery));return R},yqe=function(){var f=_.Tf("SBOX_SETTINGS"),R={};
if(f==null?0:f.SEND_VISITOR_DATA)R["X-Goog-Visitor-Id"]=f==null?void 0:f.VISITOR_DATA;return R},dCw=function(f){var R=Wht;
R+="&gs_id="+f.id.toString(36);R+="&q="+encodeURIComponent(f.query);R+="&cp="+f.query.length;f.previousSearchQuery&&(R+="&pq="+encodeURIComponent(f.previousSearchQuery));(f=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(R+="&video_id="+f);return R},QWz=0,Wht="";var NGh=_.oR.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Lhm=_.oR.SEARCH_ENTITY_SUGGESTION_MOVIE,bYN=_.oR.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,pPS=_.oR.SEARCH_ENTITY_SUGGESTION_TV_SHOW,jW2=function(f,R){this.text=f;this.bold=R},DC5=function(f,R,u){this.input=R;
this.index=u;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=f[0];this.type=f[1];this.subtypes=f[2];var O;this.displayText=iv((O=f[3])==null?void 0:O.b);var c;this.ignoredPrefix=iv((c=f[3])==null?void 0:c.a);var h,l;this.hasNewVideo=((h=f[3])==null?void 0:(l=h.zam)==null?void 0:l.toString())==="true"?!0:!1;var K;this.visualSuggestUrl=(K=f[3])==null?void 0:K.zai;var q;this.entityType=iv((q=f[3])==null?void 0:q.zap);var F;this.entityName=iv((F=f[3])==null?void 0:F.zao);var w;R=iv((w=
f[3])==null?void 0:w.zaf);var m;this.entityMid=(m=f[3])==null?void 0:m.zae;w=d5h(this.subtypes,this.entityMid);if(R&&w){if(R){m="";switch(w){case "YOUTUBE_ENTITY_TYPE_SONG":m=bYN;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":m=NGh;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":m=pPS;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":m=Lhm}w=w==="YOUTUBE_ENTITY_TYPE_SONG"||w==="YOUTUBE_ENTITY_TYPE_ALBUM"?m+" \u2022  \u2022 "+R:R}else w="";this.entitySubtitle=w}var W;this.externalChannelId=(W=f[3])==null?void 0:W.zav},Jqt=
function(f){var R=[],u,O=(u=f.displayText)!=null?u:f.text;
if(f.type===33)return R.push(new jW2(O,!1)),R;if(O.length>=f.input.length&&O.substring(0,f.input.length)===f.input)R.push(new jW2(f.input,!1)),R.push(new jW2(O.substring(f.input.length),!0));else{var c=new Set(f.input.split(/\s/)),h=O.split(/\s/);R=h.map(function(l,K){return new jW2(l.trim()+(K===h.length-1?"":" "),!c.has(l))})}return R};var ztK=function(f){this.rawResponse=["",[],{}];this.suggestions=[];try{var R=JSON.parse(NAm(f));if(typeof R==="object"&&R!==null)this.rawResponse=R;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(O){console.log("Suggest: Failed to parse SuggestResponse!");return}var u=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(O,c){return new DC5(O,u,c)})};var TG5=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new mCa;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18420_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},HYK,I7m=function(){HYK||(HYK=new TG5);
return HYK};
TG5.prototype.updateSuggestions=function(f){var R=this;this.availableSuggestions.forEach(function(u){R.previousSuggestions[u]=!0});
this.availableSuggestions=f.map(function(u){var O=u.type.toString();u.subtypes.length>0&&(O+="i"+u.subtypes.join("i"),O+="k"+u.suggestionSources.COMPLETE_SERVER.toString());return O})};
var Mbl=function(f,R){var u=Date.now();f.firstEditTime<0&&(f.firstEditTime=u);R&&(f.lastQueryBuildTime=u);f.lastEditTime=u};
TG5.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18420_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var PSm=function(f){var R="";f.availableSuggestions.forEach(function(c){delete f.previousSuggestions[c]});
for(var u=_.Z(Object.keys(f.previousSuggestions)),O=u.next();!O.done;O=u.next())O=O.value,f.previousSuggestions[O]&&(R+=(R?"j":"")+O);return R},UCm=function(f,R){var u=[];
R&&(u[1]=R.toString());u[0]="youtube";u[7]=Date.now()-f.startTime;u[6]=f.sessionNumber;f.zeroPrefixSuggestionCount>=0&&(u[33]=f.zeroPrefixSuggestionCount);u[13]=f.outOfSyncResponseCount;if(f.availableSuggestions.length>0){for(var O=R="",c=0,h=_.Z(f.availableSuggestions),l=h.next();!l.done;l=h.next())l=l.value,l!==O&&(c>1&&(R+="l"+c),R+=(O?"j":"")+l,c=0,O=l),c+=1;c>1&&(R+="l"+c);u[3]=R}u[35]=PSm(f);f.selectedSuggestionIndex>=0&&(u[2]=f.selectedSuggestionIndex);var K;if(R=(K=_.Tf("SBOX_SETTINGS"))==
null?void 0:K.SUGG_EXP_ID)u[19]=f.normalize(R),K=0,f.experimentTriggeredBeforeFinal&&(K|=1),f.experimentTriggeredFinal&&(K|=2),u[20]=K;u[26]=Array.from(f.inputMethodsTracker.usedMethods).join("j");if(f.JSC$18420_totalRoundTripTime>0){u[15]=f.JSC$18420_totalRoundTripTime;u[14]=f.maxRoundTripTime;K=[];for(c=R=0;c<10;c++)O=f.roundTripTimeHistogram[c],O===0?R++:(R>1?K.push(c+"-"+O):R===1?K.push("0j"+O):K.push(O.toString()),R=0);K=K.join("j");u[16]=K}f.zeroPrefixRoundTripTime>0&&(u[36]=f.zeroPrefixRoundTripTime);
f.lastQueryBuildTime>0&&(u[18]=f.lastQueryBuildTime-f.startTime);f.firstEditTime>0&&(u[4]=f.firstEditTime-f.startTime);f.lastEditTime>0&&(u[5]=f.lastEditTime-f.startTime);return u.join(".")};
TG5.prototype.normalize=function(f){return f.replaceAll(".","-")};
var etm=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var M6=function(){var f=_.U.apply(this,arguments)||this;f.microphoneSpinnerActive=!1;f.noAnimations=!1;f.boundExitClick=function(){f.onExitButtonClick()};
f.speechOverlayClassName="";f.isLevelAnimating=!1;f.playCloseDialogAudioFeedback=!0;f.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return f};
_.y(M6,_.U);_.X=M6.prototype;_.X.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.X.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=d7K()};
_.X.dataChanged=function(){this.logDialog()};
_.X.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var f;(f=this.manager.audioPlayer)!=null&&(f.JSC$17710_audioEnabled=!1)}this.manager.stop();(f=this.manager.audioPlayer)!=null&&(f.JSC$17710_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.X.handleSpeechQueryCompleteAction=function(f){var R=f.navigationAction;R&&(f.trackingParams&&_.wR().graftServerVe(f.trackingParams,this.dialogVe,5),_.ul(this.hostElement,"yt-navigate",{endpoint:R,tempData:this.getNavigationParams(R),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.X.onExitButtonClick=function(){this.closeDialog()};
_.X.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var f;if((f=this.manager)!=null){var R;(R=f.audioPlayer)==null||Pk(R,"failure");f.setState("microphone-off");f.stop()}}else(f=this.manager)==null||f.start()};
_.X.transcriptionChanged=function(){var f,R;(((f=this.transcription)==null?0:f.low)||((R=this.transcription)==null?0:R.high))&&this.setState("transcribing",this.transcription)};
_.X.stateChanged=function(){this.setState(this.state,this.transcription)};
_.X.logDialog=function(){var f;(f=this.data)!=null&&f.trackingParams&&(f=_.wR(),_.O1(f,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=f.graftServerVe(this.data.trackingParams,void 0,5))};
_.X.getNavigationParams=function(f){var R={};if(_.E("web_yt_searchbox")){var u=I7m();u.inputMethodsTracker.add(6);u=UCm(u,15);R.gs_l=u;var O;R.oq=((O=_.t(f,_.m6))==null?void 0:O.query)||""}else if(f=window.ytvoicesearchloggingparams){if(f=f())R.oq=f.oq,R.gs_l=f.gs_l}else _.UC(Error("kl"));return R};
_.X.closeDialog=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.X.setState=function(f,R){if(this.data){var u=this.data,O={};switch(f){case "listening":O={headerText:u.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "timeout":O={headerText:u.promptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,microphoneAriaLabel:u.promptMicrophoneLabel};break;case "microphone-off":O={headerText:u.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,
microphoneAriaLabel:u.promptMicrophoneLabel};break;case "transcribing":(R==null?0:R.low)||(R==null?0:R.high)?O={transcriptionLow:R==null?void 0:R.low,transcriptionHigh:R==null?void 0:R.high,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel}:O={headerText:u.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "processing":O={headerText:u.loadingHeader,microphoneState:"processing",microphoneAriaLabel:u.microphoneButtonAriaLabel};
break;case "offline":O={headerText:u.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:u.connectionErrorMicrophoneLabel,microphoneAriaLabel:u.connectionErrorMicrophoneLabel};break;case "permission":O={headerText:u.permissionsHeader,bodyLine1:u.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:u.permissionsSubtext};break;case "permission-denied":O={headerText:u.disabledHeader,bodyLine1:u.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:u.disabledSubtext}}O.className=
f;this.speechOverlayState=O;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.X.setMicrophoneState=function(f){var R=this.isLevelAnimating;this.isLevelAnimating=f==="speaking";!R&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=f==="processing"&&!this.noAnimations};
_.X.setClass=function(f){this.speechOverlayClassName&&_.c2(this.hostElement,this.speechOverlayClassName,!1);f&&(this.speechOverlayClassName=f,_.c2(this.hostElement,f,!0))};
_.X.runLevelAnimation=function(){var f=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var R=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("+R+")");_.JA.addJob(function(){f.runLevelAnimation()},3,u)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
M6.prototype.stateChanged=M6.prototype.stateChanged;M6.prototype.transcriptionChanged=M6.prototype.transcriptionChanged;M6.prototype.onPopupClosed=M6.prototype.onPopupClosed;M6.prototype.dataChanged=M6.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],M6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],M6.prototype,"rendererStamperBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],M6.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],M6.prototype,"eventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],M6.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],M6.prototype,"speechOverlayState",void 0);
_.B([_.I(),_.S("design:type",Object)],M6.prototype,"microphoneSpinnerActive",void 0);_.B([_.I({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.S("design:type",Object)],M6.prototype,"noAnimations",void 0);_.B([_.I({selector:function(f){var R;return(R=f.voiceSearch)==null?void 0:R.transcription}}),
_.S("design:type",Object)],M6.prototype,"transcription",void 0);_.B([_.I({selector:function(f){var R;return(R=f.voiceSearch)==null?void 0:R.overlay}}),
_.S("design:type",String)],M6.prototype,"state",void 0);_.B([_.I(),_.S("design:type",Object)],M6.prototype,"boundExitClick",void 0);_.B([_.a4("#microphone-levels"),_.S("design:type",HTMLElement)],M6.prototype,"level",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M6.prototype,"dataChanged",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M6.prototype,"onPopupClosed",null);
_.B([_.QR("transcription"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M6.prototype,"transcriptionChanged",null);_.B([_.QR("state"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M6.prototype,"stateChanged",null);M6=_.B([_.e({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],M6);
_.G(M6,"ytd-voice-search-dialog-renderer",function(){if(wPe!==void 0)return wPe;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return wPe=f},{mode:1});var GUe;var Py=function(){var f=_.U.apply(this,arguments)||this;f.isOverlay=!1;f.hidden=!1;return f};
_.y(Py,_.U);_.X=Py.prototype;_.X.onPopupClosed=function(){this.toggleIconState(!1)};
_.X.computeIcon=function(){var f,R,u;return(R=_.t((f=this.data)==null?void 0:f.icon,cLa))==null?void 0:(u=R.icon)==null?void 0:u.iconType};
_.X.computeIconBadgeShape=function(){var f;return{iconBadgeType:"cart",iconBadgeText:(f=this.iconBadgeEntity)==null?void 0:f.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.X.onClick=function(){var f;(f=this.data)!=null&&f.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.X.computeHidden=function(f){return!f};
_.X.toggleIconState=function(f){this.iconButton&&(this.iconButton.pressed=f)};
Py.prototype.onPopupClosed=Py.prototype.onPopupClosed;_.B([_.z(_.zH),_.S("design:type",Object)],Py.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Py.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Py.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Py.prototype,"isOverlay",void 0);
_.B([_.I({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.S("design:type",Object)],Py.prototype,"hidden",void 0);_.B([_.I({selectorArgs:["data.iconBadgeEntityKey"],selector:function(f,R){return _.kZ(f.entities,"iconBadgeEntity",R)}}),
_.S("design:type",Object)],Py.prototype,"iconBadgeEntity",void 0);_.B([_.a4("yt-icon-button"),_.S("design:type",HTMLButtonElement)],Py.prototype,"iconButton",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Py.prototype,"onPopupClosed",null);Py=_.B([_.e({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Py);
_.G(Py,"ytd-icon-badge-topbar-button-renderer",function(){if(GUe!==void 0)return GUe;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return GUe=f},{mode:1});var BGz;var UM=function(){var f=_.U.apply(this,arguments)||this;f.premiumOptions=[];f.darkerDarkTheme=_.E("web_darker_dark_theme");return f};
_.y(UM,_.U);UM.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Vy.Object.defineProperties(UM.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],UM.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Array)],UM.prototype,"premiumOptions",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],UM.prototype,"darkerDarkTheme",void 0);_.B([_.T("premiumOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],UM.prototype,"hasPremiumOptions",null);
UM=_.B([_.e({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],UM);
_.G(UM,"ytd-offline-promo-content",function(){if(BGz!==void 0)return BGz;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return BGz=f},{mode:1});var oy5;var ex=function(){var f=_.U.apply(this,arguments)||this;f.premiumOptions=[];return f};
_.y(ex,_.U);ex.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var f;this.premiumOptions=yHN((f=this.data)==null?void 0:f.formats)};
ex.prototype.onClickSubmit=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var f;(f=_.Vm())==null||f.pause()};
ex.prototype.attached=function(){this.JSC$18440_scroller&&(this.JSC$18440_scroller.dialogElement=this.hostElement.parentNode)};
_.Vy.Object.defineProperties(ex.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
ex.prototype.dataChanged=ex.prototype.dataChanged;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ex.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],ex.prototype,"data",void 0);
_.B([_.I({computed:"computeIcon_(data.headersIcon)",value:""}),_.S("design:type",String)],ex.prototype,"headersIcon",void 0);_.B([_.I(),_.S("design:type",Array)],ex.prototype,"premiumOptions",void 0);_.B([_.a4("#scroller"),_.S("design:type",Object)],ex.prototype,"JSC$18440_scroller",void 0);_.B([_.T("headersIcon"),_.S("design:type",Object),_.S("design:paramtypes",[])],ex.prototype,"showIcon",null);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ex.prototype,"dataChanged",null);ex=_.B([_.e({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],ex);
_.G(ex,"ytd-offline-promo-renderer",function(){if(oy5!==void 0)return oy5;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return oy5=f},{mode:1});var xCK;var Gr=function(){var f=_.U.apply(this,arguments)||this;f.playbackPauseInterval=NaN;f.isLoading=!1;f.hasError=!1;f.dialogClass="";f.youtubeLabel=_.Fa("LOGO_ALT_LABEL",{},"YouTube Home");f.logoName="yt-logos-ext:yt-logo-updated";f.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return f};
_.y(Gr,_.U);_.X=Gr.prototype;_.X.onDataChange=function(){var f;if(this.showEOMV1Text=!((f=this.data)==null||!f.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.X.attached=function(){this.pausePlayer()};
_.X.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.X.handleLangSelect=function(f){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[f.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.X.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.X.handleSaveConsent=function(f){var R=this;this.showLoadingSpinner();this.showLoadingSpinner();r1N(_.t(f,XeS)).catch(function(u){_.Ih(new _.ts("Something went wrong when save consent "+(u.message?u.message:u)+"."));R.hideLoadingSpinner();R.showErrorMessage()})};
_.X.handleDisablePersonalization=function(f){var R=this;this.showLoadingSpinner();fLz(_.t(f,cOh)).then(function(){R.dialog.close();R.resumePlayer()}).catch(function(u){_.Ih(new _.ts("Something went wrong when disable personalization "+(u.message?u.message:u)+"."));
R.hideLoadingSpinner();R.showErrorMessage()})};
_.X.showLoadingSpinner=function(){var f=this;this.showSpinnerJobId=_.JA.addLowPriorityJob(function(){f.isLoading=!0},500)};
_.X.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.JA.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.X.showErrorMessage=function(){var f=this;this.hasError=!0;_.JA.addLowPriorityJob(function(){f.hasError=!1},2E3)};
_.X.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.lZ(function(){try{var f=_.Vm();f&&f.pause()}catch(R){}},100))};
_.X.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var f=_.Vm();f&&f.play()}catch(R){}};
_.Vy.Object.defineProperties(Gr.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.eomV1Text)return[];f=[];for(var R=["SHIELD","WARNING","BAR_CHART"],u=this.data.eomV1Text.essentialCookieMsg.items,O=0;O<R.length&&O<u.length;O++)f.push({icon:R[O],text:u[O]});return f}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.eomV1Text)return[];f=[];for(var R=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],u=this.data.eomV1Text.nonEssentialCookieMsg.items,O=0;O<R.length&&O<u.length;O++)f.push({icon:R[O],text:u[O]});return f}}});
Gr.prototype.onDataChange=Gr.prototype.onDataChange;_.B([_.I(),_.S("design:type",Object)],Gr.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Gr.prototype,"showEOMV1Text",void 0);_.B([_.I(),_.S("design:type",Object)],Gr.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Object)],Gr.prototype,"hasError",void 0);_.B([_.I(),_.S("design:type",Number)],Gr.prototype,"showSpinnerJobId",void 0);_.B([_.I(),_.S("design:type",Object)],Gr.prototype,"dialogClass",void 0);
_.B([_.a4("#dialog"),_.S("design:type",Object)],Gr.prototype,"dialog",void 0);_.B([_.a4("#cb-header"),_.S("design:type",HTMLElement)],Gr.prototype,"header",void 0);_.B([_.a4("#lang-select"),_.S("design:type",HTMLElement)],Gr.prototype,"langSelect",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Gr.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Gr.prototype,"ytComponentBehavior",void 0);
_.B([_.I(),_.S("design:type",String)],Gr.prototype,"youtubeLabel",void 0);_.B([_.I(),_.S("design:type",Object)],Gr.prototype,"logoName",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gr.prototype,"onDataChange",null);_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],Gr.prototype,"eomEssentialCookieMsgItems",null);
_.B([_.T("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],Gr.prototype,"eomNonEssentialCookieMsgItems",null);Gr=_.B([_.e({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Gr);
_.G(Gr,"ytd-consent-bump-v2-lightbox",function(){if(xCK!==void 0)return xCK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return xCK=f},{mode:1});var Si5;var By=function(){return _.U.apply(this,arguments)||this};
_.y(By,_.U);By.prototype.ready=function(){if(!_.Q4()||QFh)var f=!0;else QFh=!0,f=!1;f||(f=document.querySelector("ytd-app"),f||(f=document.body),this.internalLightBox=_.b(f).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.B([_.I(),_.S("design:type",Object)],By.prototype,"data",void 0);_.B([_.a4("#lightbox"),_.S("design:type",Object)],By.prototype,"lightBox",void 0);By=_.B([_.e({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],By);
_.G(By,"ytd-consent-bump-v2-renderer",function(){if(Si5!==void 0)return Si5;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return Si5=f},{mode:1});var $C9;var gye;var sWX;var oH=function(){var f=_.U.apply(this,arguments)||this;f.ephemeralActionsEnabled=_.E("web_ephemeral_actions");return f};
_.y(oH,_.U);_.X=oH.prototype;_.X.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&IOh(this.toastManager,this.toastType)};
_.X.open=function(f){this.toast&&(this.ephemeralAction&&_.vh().resolve(_.kL).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=f!=null?f:0,this.toastManager.enqueue(this.toast,f)):this.toast.open())};
_.X.close=function(f){var R;(R=this.toast)==null||R.close();this.toastManager&&f===1&&IOh(this.toastManager,f)};
_.X.refit=function(){var f;(f=this.toast)==null||f.refit()};
_.X.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var f;(f=this.toast)==null||f.close()}};
_.X.setVerticalOffset=function(f){this.toast&&(this.toast.verticalOffset=f,this.toast.fit())};
_.X.computeButtonClass_=function(f){return f?"toast-button":""};
_.X.computeText_=function(f){return _.$Z(f)};
_.X.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Uc("toast-opened-changed",this.toastOpened))};
_.X.updateToastOpenedFromBinding=function(f){this.toastOpened=f.detail.value};
_.Vy.Object.defineProperties(oH.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var f,R,u=(f=this.data)==null?void 0:(R=f.actionButton)==null?void 0:R.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.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var f=[],R;((R=this.data)==null?0:R.responseText)&&f.push(_.$Z(this.data.responseText));var u;((u=this.data)==null?0:u.subText)&&f.push(_.$Z(this.data.subText));var O,c;if((O=this.data)==null?0:(c=O.actionButton)==null?0:c.buttonRenderer){var h,l;f.push(((h=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(l=h.accessibilityData)==null?void 0:l.label)||_.$Z(this.data.actionButton.buttonRenderer.text))}return f.filter(function(K){return K}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var f,R;return(R=(f=this.toast)==null?void 0:f.opened)!=null?R:!1}}});
oH.prototype.toastOpenedChangedForBinding=oH.prototype.toastOpenedChangedForBinding;oH.prototype.toastOpenedChanged=oH.prototype.toastOpenedChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],oH.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],oH.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],oH.prototype,"duration",void 0);
_.B([_.I(),_.S("design:type",Number)],oH.prototype,"toastType",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],oH.prototype,"useCloseButton",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],oH.prototype,"closeToastOnActionButtonClick",void 0);_.B([_.I({value:function(){return _.Fa("SBOX_INAPPROPRIATE_CANCEL")}}),
_.S("design:type",String)],oH.prototype,"closeButtonAriaLabel",void 0);_.B([_.I(),_.S("design:type",Boolean)],oH.prototype,"toastOpened",void 0);_.B([_.I(),_.S("design:type",Boolean)],oH.prototype,"hasOpened",void 0);_.B([_.I(),_.S("design:type",Object)],oH.prototype,"ephemeralActionsEnabled",void 0);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],oH.prototype,"command",null);
_.B([_.T("ephemeralActionsEnabled","labelText","command","duration"),_.S("design:type",Object),_.S("design:paramtypes",[])],oH.prototype,"ephemeralAction",null);_.B([_.T("ephemeralAction"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oH.prototype,"hasEphemeralAction",null);_.B([_.a4("#toast"),_.S("design:type",Object)],oH.prototype,"toast",void 0);_.B([_.I({value:function(){return{style:"call-to-action-inverse"}}}),
_.S("design:type",Object)],oH.prototype,"buttonOverrides",void 0);_.B([_.I({value:{style:"mono-inverse"}}),_.S("design:type",Object)],oH.prototype,"closeButtonOverrides",void 0);_.B([_.I({value:function(){return _.vh().resolve(_.Y8(_.P1f))}}),
_.S("design:type",Object)],oH.prototype,"toastManager",void 0);_.B([_.T("data.responseText","data.subText","data.actionButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],oH.prototype,"labelText",null);_.B([_.qM("toastOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oH.prototype,"toastOpenedChanged",null);
_.B([_.qM("toastOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oH.prototype,"toastOpenedChangedForBinding",null);oH=_.B([_.DO({is:"yt-notification-action-renderer",disableElementRegistration:!0})],oH);
_.G(oH,"yt-notification-action-renderer",function(){if(sWX===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;gye===void 0&&(gye=document.createElement("template"));var O=gye;u.call(R,O.content.cloneNode(!0),f.content.firstChild);sWX=f}f=sWX;return f},{mode:2});var Oj=function(){var f=_.U.apply(this,arguments)||this;f.duration=4E3;f.downloadingCount=0;f.downloadedCount=0;f.downloadingOnlySmartDownloads=!1;f.sessionTotalDownloads=0;f.sessionDownloaded=0;f.previousSessionsDownloaded=0;f.totalDownloadPercentage=0;f.currentDownloadProgress=0;f.currentDownloadPercentage=0;f.isLeaderTab=!0;f.isFullScreen=!1;f.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};f.boundBeforeUnload=function(R){f.isLeaderTab&&f.downloadingCount>0&&(R.preventDefault(),
R.returnValue=!0)};
return f};
_.y(Oj,_.U);_.X=Oj.prototype;
_.X.open=function(){this.updateDownloadState();if(this.data){var f=this.sessionDownloaded+1,R=this.sessionTotalDownloads>1?_.Fa("VIDEOS_DOWNLOADING_RATIO",{downloaded:f.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+f+"/"+this.sessionTotalDownloads):_.Fa("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(R=this.sessionTotalDownloads>1?_.Fa("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:f.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
f+"/"+this.sessionTotalDownloads):_.Fa("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));f=this.isLeaderTab?_.Fa("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.$Z(this.data.responseText)!==R||_.$Z(this.data.subText)!==f)this.set("data.responseText",_.S8(R)),this.set("data.subText",_.S8(f)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.X.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.X.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.X.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.X.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var f=this.downloadedCount-this.previousSessionsDownloaded;f<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-f);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.X.handleFullscreenChange=function(f){(this.isFullScreen=f)||this.updatePopup()};
Oj.prototype.updateCurrentDownloadProgress=Oj.prototype.updateCurrentDownloadProgress;Oj.prototype.updatePopup=Oj.prototype.updatePopup;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Oj.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],Oj.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Oj.prototype,"actionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"duration",void 0);_.B([_.I({selector:function(f){return _.CLX(f.entities).length}}),
_.S("design:type",Object)],Oj.prototype,"downloadingCount",void 0);_.B([_.I({selector:kAN}),_.S("design:type",Object)],Oj.prototype,"downloadedCount",void 0);_.B([_.I({selector:function(f){var R=_.CLX(f.entities);return lL5(f.entities,R)}}),
_.S("design:type",Object)],Oj.prototype,"downloadingOnlySmartDownloads",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"sessionTotalDownloads",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"sessionDownloaded",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"previousSessionsDownloaded",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"totalDownloadPercentage",void 0);
_.B([_.I({selector:function(f){var R;f=(R=_.CLX(f.entities))!=null?R:[];return f.length>0?_.KJB(f.slice(-1)):0}}),
_.S("design:type",Object)],Oj.prototype,"currentDownloadProgress",void 0);_.B([_.I(),_.S("design:type",Object)],Oj.prototype,"currentDownloadPercentage",void 0);_.B([_.I({selector:_.LZq}),_.S("design:type",Object)],Oj.prototype,"isLeaderTab",void 0);_.B([_.a4("yt-notification-action-renderer"),_.S("design:type",Object)],Oj.prototype,"notificationActionRenderer",void 0);
_.B([_.QR("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Oj.prototype,"updatePopup",null);_.B([_.QR("currentDownloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Oj.prototype,"updateCurrentDownloadProgress",null);Oj=_.B([_.e({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Oj);
_.G(Oj,"ytd-video-download-toast-renderer",function(){if($C9!==void 0)return $C9;var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return $C9=f},{mode:1});var nyh;var Vb5;var cA=function(){return _.U.apply(this,arguments)||this};
_.y(cA,_.U);cA.prototype.computeIsRedLogo=function(f,R){!f&&R&&(f=R);return f==="YOUTUBE_RED_LOGO"||f==="YOUTUBE_PREMIUM_LOGO"};
cA.prototype.computeLogoName=function(f){f=this.componentBehavior.computeIcon_(f);return f===""?"yt-logos-ext:yt-logo-updated":f};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],cA.prototype,"componentBehavior",void 0);_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.S("design:type",Boolean)],cA.prototype,"isRedLogo",void 0);_.B([_.I({computed:"computeLogoName(data)"}),_.S("design:type",String)],cA.prototype,"logoName",void 0);_.B([_.I({value:{}}),_.S("design:type",Object)],cA.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],cA.prototype,"logoType",void 0);cA=_.B([_.e({disableElementRegistration:!0,is:"ytd-logo"})],cA);
_.G(cA,"ytd-logo",function(){if(Vb5!==void 0)return Vb5;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return Vb5=f},{mode:_.c7("kevlar_poly_si_batch_j074")?1:2});var Xj=function(){var f=_.U.apply(this,arguments)||this;f.animationRef={};return f};
_.y(Xj,_.U);_.X=Xj.prototype;_.X.attached=function(){document.addEventListener("yt-navigate-finish",_.ks(this,this.logYoodle))};
_.X.detached=function(){document.removeEventListener("yt-navigate-finish",_.ks(this,this.logYoodle))};
_.X.logYoodle=function(){var f,R;if((f=this.data)==null?0:(R=f.loggingDirectives)==null?0:R.trackingParams)this.ytRendererBehavior.markDirty(),_.wR().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.X.computeHideImg=function(f,R){return!!f||!!R};
_.X.computeHideYtdLogo=function(f,R){return!f||!!R};
_.X.computeHideLottie=function(f){return!f};
_.X.computeIsRedLogo=function(f){return f==="YOUTUBE_RED_LOGO"||f==="YOUTUBE_PREMIUM_LOGO"};
_.X.renderLogoEntity=function(){var f=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),R=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),u=this.getLogoTitleText(this.data),O=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==f&&(this.url=f);this.animatedUrl!==R&&(this.animatedUrl=R);this.logoTitleText!==u&&(this.logoTitleText=u);this.lottieUrl!==O&&(this.lottieUrl=O,this.lottiePlayerProps=this.computeLottiePlayerProps(O))};
_.X.getSanitizedThumbnail=function(f){return f&&f.thumbnails?_.VLl(f.thumbnails,122)||"":""};
_.X.getThumbnailUrl=function(f,R){if(!R)return"";var u,O;f=f?(u=R.darkThemeLogo)==null?void 0:u.thumbnail:(O=R.lightThemeLogo)==null?void 0:O.thumbnail;return this.getSanitizedThumbnail(f)};
_.X.getAnimatedThumbnailUrl=function(f,R){return R?this.getSanitizedThumbnail(f?R.darkThemeAnimatedLogo:R.lightThemeAnimatedLogo):""};
_.X.getLogoTitleText=function(f){if(f)return _.$Z(f.tooltipText)};
_.X.computeLogoIcon=function(f,R){if(R){var u,O;return f?(u=R.darkThemeLogo)==null?void 0:u.icon:(O=R.lightThemeLogo)==null?void 0:O.icon}};
_.X.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.X.getLottieUrl=function(f,R){var u,O,c,h;return f?R==null?void 0:(u=R.darkThemeLogo)==null?void 0:(O=u.lottieAnimation)==null?void 0:O.url:R==null?void 0:(c=R.lightThemeLogo)==null?void 0:(h=c.lottieAnimation)==null?void 0:h.url};
_.X.computeLottiePlayerProps=function(f){if(f){var R;if((R=this.animationRef)==null?0:R.lottieEl){var u;(u=this.animationRef)==null||u.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:f,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.X.onLottieError=function(){this.data&&this.lottieUrl&&_.ul(this.hostElement,"yoodle-error")};
_.X.onImgError=function(){this.data&&!this.lottieUrl&&_.ul(this.hostElement,"yoodle-error")};
Xj.prototype.playAnimation=Xj.prototype.playAnimation;Xj.prototype.renderLogoEntity=Xj.prototype.renderLogoEntity;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Xj.prototype,"data",void 0);_.B([_.I({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.S("design:type",Boolean)],Xj.prototype,"hideImg",void 0);
_.B([_.I({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.S("design:type",Boolean)],Xj.prototype,"hideYtdLogo",void 0);_.B([_.I({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.S("design:type",Boolean)],Xj.prototype,"hideLottie",void 0);_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.S("design:type",Boolean)],Xj.prototype,"isRedLogo",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Xj.prototype,"useDarkThemeYoodle",void 0);_.B([_.I(),_.S("design:type",String)],Xj.prototype,"url",void 0);_.B([_.I(),_.S("design:type",String)],Xj.prototype,"animatedUrl",void 0);_.B([_.I(),_.S("design:type",String)],Xj.prototype,"logoTitleText",void 0);_.B([_.I({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.S("design:type",Object)],Xj.prototype,"logoIcon",void 0);_.B([_.I(),_.S("design:type",Object)],Xj.prototype,"logoType",void 0);
_.B([_.I(),_.S("design:type",String)],Xj.prototype,"lottieUrl",void 0);_.B([_.I(),_.S("design:type",Object)],Xj.prototype,"lottiePlayerProps",void 0);_.B([_.I(),_.S("design:type",Object)],Xj.prototype,"animationRef",void 0);_.B([_.qM("data"),_.qM("useDarkThemeYoodle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xj.prototype,"renderLogoEntity",null);
_.B([_.Kf("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Xj.prototype,"playAnimation",null);Xj=_.B([_.e({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Xj);
_.G(Xj,"ytd-yoodle-renderer",function(){if(nyh!==void 0)return nyh;var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return nyh=f},{mode:_.c7("kevlar_poly_si_batch_j074")?1:2});var YiS;var vyz;var hQ=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return f};
_.y(hQ,_.U);_.X=hQ.prototype;_.X.onYoodleError=function(){_.E("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.X.computeLogoName=function(f){f=this.componentBehavior.computeIcon_(f);return f===""?"yt-logos-ext:yt-logo-updated":f};
_.X.computeTitle=function(f,R,u){return u&&(R==null?0:R.tooltipText)?_.$Z(R.tooltipText):_.$Z(f)};
_.X.computeAriaLabel=function(f,R,u){return u&&(R==null?0:R.tooltipText)?_.$Z(f):""};
_.X.computeShowYoodle=function(f,R,u){return!f||!R&&!!u&&!_.dq.isEmpty(u)};
_.X.onNavigateHomeAction=function(){if(_.E("kevlar_miniplayer_navigate_home_from_app_killswitch")){var f;(f=_.b(this.hostElement).querySelector(".yt-simple-endpoint"))==null||f.click()}};
_.X.computeLogoHref=function(f,R,u){var O;(u==null?0:u.onTapCommand)?O=this.componentBehavior.computeHref_(u.onTapCommand):f&&(O=this.componentBehavior.computeHref_(f));return O?O:R};
_.X.computeCommand=function(f,R){return(R==null?void 0:R.onTapCommand)||f};
_.X.getEndpointForm=function(){if(_.E("kevlar_topbar_disable_cache_only_home")){var f=_.vh().resolve(_.zM),R=wRz(f.getState())||"";f=_.x92(f.getState())||"";return{disableCache:R==="ytd-browse"&&f==="home"}}return{disableCache:!0}};
hQ.prototype.onYoodleError=hQ.prototype.onYoodleError;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],hQ.prototype,"componentBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],hQ.prototype,"ytdReduxBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],hQ.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],hQ.prototype,"countryCode",void 0);_.B([_.I({selectorArgs:["data.overrideEntityKey"],selector:function(f,R){return _.kZ(f.entities,"logoEntity",R)}}),
_.S("design:type",Object)],hQ.prototype,"logoEntity",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.S("design:type",Boolean)],hQ.prototype,"showYoodle",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],hQ.prototype,"yoodleError",void 0);_.B([_.I({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.S("design:type",String)],hQ.prototype,"titleText",void 0);
_.B([_.I({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.S("design:type",String)],hQ.prototype,"ariaLabelText",void 0);_.B([_.I({value:"/"}),_.S("design:type",String)],hQ.prototype,"defaultEndpointUrl",void 0);_.B([_.I({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.S("design:type",String)],hQ.prototype,"endpointUrl",void 0);
_.B([_.I({computed:"computeCommand(data.endpoint, logoEntity)"}),_.S("design:type",String)],hQ.prototype,"command",void 0);_.B([_.I(),_.S("design:type",Object)],hQ.prototype,"logoType",void 0);_.B([_.I({}),_.S("design:type",Boolean)],hQ.prototype,"useDarkThemeYoodle",void 0);_.B([_.Kf("yoodle-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hQ.prototype,"onYoodleError",null);hQ=_.B([_.e({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],hQ);
_.G(hQ,"ytd-topbar-logo-renderer",function(){if(vyz!==void 0)return vyz;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return vyz=f},{mode:_.c7("kevlar_poly_si_batch_j027")?1:2});var iYt=0;var rqt=_.oR.SEARCH_APPEND_LABEL,f5K=_.oR.SUGGESTION_NEW_VIDEOS_TEXT,RBX=_.oR.SUGGESTION_THUMBNAIL_LABEL,uWN=_.nf(function(f){function R(qt){var Y5,tf;return _.k(function(lK){if(lK.nextAddress==1)return Y5=new Request(qt),_.cl(lK,2),_.A(lK,fetch(Y5,{credentials:"include"}),4);if(lK.nextAddress!=2)return Rw(!0),_.Bf(lK,0);tf=_.ku(lK);_.Ih(tf);_.KG(lK)})}
var u=f.isHighlighted;var O=f.suggestion;var c=f.onClickCallback;var h=f.onHoverUpdateCallback;var l=f.labels;var K=f.queryBuilderFunction;var q=f.onRemoveCallback;var F=f.suggestionIndex;var w=f.generateUniqueId;var m=f.highlightedId;var W=f.useScrollMargin;var C=f.isKeyboardMode;var d=null,p=null,J=_.sW(),M=_.sW(),P=_.n0(function(qt){qt&&_.za(237477,qt,p,function(Y5){p=Y5})}),g=_.n0(function(qt){qt&&_.za(237477,qt,p,function(Y5){p=Y5})}),x=_.Ff(function(qt){if((qt==null?void 0:qt.button)===2)return qt.preventDefault(),
!1;
var Y5=_.z4();Y5&&d&&_.$E(Y5,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var tf;c(qt,O().text,O().index,O().entityMid,qt==null?void 0:(tf=qt.detail)==null?void 0:tf.wasSelectedByKeyboard);return!1}),fh=function(){return O().type===35},V=function(){return _.E("desktop_enable_single_suggestion_highlight")},ZD=function(){return _.RV("desktop_suggestions_panel_row_height")||0},mP=function(){var qt;
return _.E("desktop_enable_new_video_metadata")&&((qt=O())==null?void 0:qt.hasNewVideo)===!0},NX=function(){return _.E("desktop_enable_visual_suggest")},jt=function(){var qt;
if(qt=_.E("desktop_enable_entity_suggest")){var Y5=O();qt=!!d5h(Y5.subtypes);Y5=!!Y5.entityMid;qt=qt||Y5}return qt},Jn=function(){return O().entitySubtitle},zq=function(){return V()?(u==null?void 0:u())||LE()&&!(C==null?0:C()):(u==null?void 0:u())||LE()},St=function(){var qt=_.Tf("SBOX_SETTINGS");
return fh()&&!(qt==null?0:qt.HIDE_REMOVE_LINK)},Gq=function(){return Jqt(O())},LC,wN=!((LC=_.vh().resolve(_.Y8(_.oF)))==null||!LC()),GI=function(){return fh()?_.E("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},ak=function(){return l==null?void 0:l().SUGGESTION_DISMISS_LABEL},kC=function(){return l==null?void 0:l().SUGGESTION_DISMISSED_LABEL};
LC=_.Z(_.qK(!1,void 0,"DYKome"));f=LC.next().value;var Rw=LC.next().value;LC=_.Z(_.qK(!1,void 0,"H8xu6b"));var KC=LC.next().value,qe=LC.next().value,LE=KC,k5=_.Ff(function(){K(M.value.innerText);return!1}),yA=_.Ff(function(qt){qt.preventDefault();
return!1}),HG=_.Ff(function(qt){var Y5=O().text,tf=_.Tf("SBOX_SETTINGS"),lK="https://"+(tf.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
lK+="&delq="+encodeURIComponent(Y5);(Y5=tf==null?void 0:tf.PSUGGEST_TOKEN)&&(lK+="&tok="+Y5);(tf=tf==null?void 0:tf.SESSION_INDEX)&&(lK+="&authuser="+tf);R(lK);qt.preventDefault();(qt=_.z4())&&p&&_.$E(qt,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");q(F==null?void 0:F());return!1}),GX=_.Ff(function(){if(V()&&(C==null?0:C()))return!1;
qe(!0);h(!0);return!1}),bf=_.Ff(function(){qe(!1);
h(!1);return!1});
LC=_.Z(_.qK("",void 0,"H3zPCe"));var $C=LC.next().value,Bl=LC.next().value;_.NW(function(){St()&&Bl(w==null?void 0:w(F==null?void 0:F()));J.value&&_.za(12453,J.value,d,function(qt){d=qt})});
return _.a(_.Q,{cond:f,then:function(){var qt={};return _.a("div",{class:_.KL("ytSuggestionComponentRemovedText",(qt.ytSuggestionComponentLargerRemovedText=function(){return NX()},qt)),
style:function(){return ZD()>0?"height: "+ZD()+"px;":""},
role:"button"},kC)},
else:function(){var qt={},Y5={};return _.a("div",{class:_.KL("ytSuggestionComponentSuggestion",(qt.ytSuggestionComponentSuggestionHover=function(){return!V()},qt.ytSuggestionComponentHighlighted=zq,qt.ytSuggestionComponentPersonalizedSuggestion=fh,qt.ytSuggestionComponentMweb=!1,qt.ytSuggestionComponentLargerSuggestion=function(){return mP()||NX()},qt.ytSuggestionComponentThumbnailSuggestion=function(){return NX()},qt.ytSuggestionComponentRoundedSuggestion=function(){return _.E("desktop_enable_scrollable_suggestions_panel")&&
_.E("desktop_enable_suggestions_panel_padding")},qt.ytSuggestionComponentThumbnailPadding=function(){return NX()&&!fh()},qt)),
style:function(){return ZD()>0?"height: "+ZD()+"px;":""},
role:"presentation","on:mousedown":x,"on:mouseover":GX,"on:mouseout":bf,el:J},_.a("div",{class:_.KL("ytSuggestionComponentText",(Y5.ytSuggestionComponentScrollMargin=W,Y5)),"aria-label":function(){return mP()?O().text+" "+f5K:O().text},
id:function(){return w==null?void 0:w(F==null?void 0:F())},
"on:mousedown":x,role:"option"},_.a(_.Q,{cond:function(){return O().type!==33},
then:function(){return _.a(_.WM,{icon:GI,className:"ytSuggestionComponentIcon"})}}),_.a("div",{class:"ytSuggestionComponentLeftContainer"},_.a("span",{el:M,
role:"button",tabindex:0},_.a(_.EC,{each:Gq},function(tf){return tf.bold?_.a("span",{class:"ytSuggestionComponentBold"},tf.text):_.a("span",null,tf.text)})),_.a(_.Q,{cond:function(){return jt()&&!!O().entitySubtitle||mP()},
then:function(){return _.a("div",{class:"ytSuggestionComponentMetadataContainer"},_.a(_.Q,{cond:function(){return jt()&&!!O().entitySubtitle},
then:function(){return _.a("div",{class:"ytSuggestionComponentEntitySubtitle"},Jn)}}),_.a(_.Q,{cond:function(){return mP()},
then:function(){return _.a("div",{class:"ytSuggestionComponentNewVideoContainer"},_.a("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.a("div",{class:"ytSuggestionComponentNewVideoText"},f5K))}}))}}))),_.a("div",{class:"ytSuggestionComponentRightContainer"},_.a(_.Q,{cond:function(){return NX()&&O().visualSuggestUrl!==void 0},
then:function(){var tf={};return _.a("div",{class:"ytSuggestionComponentThumbnailContainer"},_.a("img",{"aria-label":RBX,class:_.KL("ytSuggestionComponentVisualSuggestThumbnail",(tf.ytSuggestionComponentCircularFrame=function(){return jt()&&O().subtypes.includes(790)},tf.ytSuggestionComponentEntitySuggestThumbnail=function(){return jt()},tf)),
src:function(){return O().visualSuggestUrl}}))}}),_.a(_.yM,null,_.a(_.t1,{when:function(){return NX()&&St()}},function(){var tf={};
return _.a("button",{class:_.KL("ytSuggestionComponentRemoveLinkClearButton",(tf.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return $C()&&$C()===(m==null?void 0:m())},tf.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!zq()},tf)),
el:g,"on:mousedown":HG,"aria-label":ak,id:function(){return $C()}},_.a(_.WM,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.a(_.t1,{when:function(){return!(NX()&&O().visualSuggestUrl!==void 0)&&St()}},function(){var tf={};
return _.a("a",{class:_.KL("ytSuggestionComponentRemoveLink",(tf.ytSuggestionComponentRemoveLinkDark=wN,tf.ytSuggestionComponentRemoveLinkSelected=function(){return $C()&&$C()===(m==null?void 0:m())},tf)),
el:P,"on:mousedown":HG,"aria-label":ak,tabindex:0,role:"button",id:function(){return $C()}},ak)}),_.a(_.t1,{when:function(){return!1}},function(){return _.a("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":k5,"on:mousedown":yA,role:"button","aria-label":rqt},_.a(_.WM,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"pg");var OOm=_.nf(function(){return _.a("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.a("button",{class:"ytdTextInputAssistantButton","on:click":_.Ff(function(){I7m().inputMethodsTracker.add(3);var f,R=(f=_.Tf("SBOX_SETTINGS"))==null?void 0:f.REQUEST_LANGUAGE;if(R)return _.Um("//www.google.com/textinputassistant/14/"+R+"_tia.js"),!1})},_.a("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"qg");var cg5=function(){this.cache=new Map},Xp5=function(f){for(var R=_.Z(f.cache.entries()),u=R.next();!u.done;u=R.next()){var O=_.Z(u.value);
u=O.next().value;O=O.next().value;O.suggestions.some(function(c){return c.type===35})&&f.cache.delete(u)}};var hB2=_.oR.SEARCH,ZOe=_.oR.SEARCH_CLEAR_LABEL,l5l=new _.Vi("FAKE_SUGGEST_RESPONSE");_.ii(_.nf(function(f){function R(){qt||(qt=setTimeout(function(){tf()},1E3))}
function u(EE,wH,Wt){if(EE.trim()){Bl=EE;_.zf("REFINEMENTS_TUPLE",void 0);bf=!0;var a8;wH=UCm(LE,wH);var hf=(a8=f.searchEndpoint)==null?void 0:a8.call(f);a8=kC.value.value;hf||(hf=zGt);var QK;(QK=_.t(hf.commandMetadata,_.vc))!=null&&QK.url||(QK=Error("ll`"+JSON.stringify(hf)),_.TL(QK),hf=zGt);QK=_.dq.unsafeClone(hf);hf=_.UW(_.t(QK.commandMetadata,_.vc).url,"search_query",EE);_.GP(location.href,"sv")==="1"&&(_.t(QK,_.m6).params="EgOAAgE%3D",hf=_.UW(hf,"sv","1"));_.t(QK,_.m6)&&(_.t(QK,_.m6).query=EE);
hf=hf.replace(/%20/g,"+");_.t(QK.commandMetadata,_.vc).url=hf;Wt=_.E("desktop_enable_entity_suggest")?{entityMid:Wt}:{};_.vh().resolve(_.rv).resolveCommand(QK,{form:{tempData:Object.assign({},{gs_l:wH,oq:a8!=null?a8:EE},Wt)}});tf();kC.value.value=EE;kC.value.blur();LE.reset()}}
function O(EE){return _.k(function(wH){return wH.return(new Promise(function(Wt){var a8=new XMLHttpRequest;a8.open("GET",dCw(EE),!0);a8.withCredentials=!0;var hf=_.Tf("SBOX_SETTINGS");(hf==null?0:hf.SEND_VISITOR_DATA)&&a8.setRequestHeader("X-Goog-Visitor-Id",hf==null?void 0:hf.VISITOR_DATA);a8.onload=function(){Wt(a8.responseText)};
a8.onerror=function(){_.Ih(Error("ml"));Wt(null)};
setTimeout(function(){a8.abort()},1E4);
a8.send(null)}))})}
function c(EE){var wH,Wt,a8,hf;return _.k(function(QK){switch(QK.nextAddress){case 1:return wH={credentials:"include",headers:yqe()},window.AbortController&&(Wt=new AbortController,setTimeout(function(){Wt.abort("ytsbox-suggest-timeout")},1E4),wH.signal=Wt.signal),_.cl(QK,2),_.A(QK,fetch(dCw(EE),wH),4);
case 4:a8=QK.yieldResult.text();_.Bf(QK,3);break;case 2:return hf=_.ku(QK),hf!=="ytsbox-abort-last"&&hf!=="ytsbox-suggest-timeout"&&_.Ih(hf),QK.return(null);case 3:return QK.return(a8)}})}
function h(EE){var wH,Wt,a8;return _.k(function(hf){switch(hf.nextAddress){case 1:if(wH=_.vh().resolve(_.Y8(l5l)))return hf.return(wH);Wt=Date.now();R();return _.E("yt_searchbox_xhr")?_.A(hf,O(EE),5):_.A(hf,c(EE),4);case 4:a8=hf.yieldResult;hf.jumpTo(3);break;case 5:a8=hf.yieldResult;case 3:if(a8){qt&&(clearTimeout(qt),qt=null);var QK=LE,FT=Wt,Me=EE.query.length===0;FT=Date.now()-FT;Me?QK.zeroPrefixRoundTripTime=FT:(QK.JSC$18420_totalRoundTripTime+=FT,QK.maxRoundTripTime=Math.max(QK.maxRoundTripTime,
FT),Me=Math.floor(FT/100),Me>=etm.length?++QK.roundTripTimeHistogram[9]:++QK.roundTripTimeHistogram[etm[Me]])}return hf.return(a8)}})}
function l(EE){var wH,Wt,a8;return _.k(function(hf){if(hf.nextAddress==1)return(wH=qe.cache.get(tbt(EE)))?hf.return(wH):_.A(hf,h(EE),2);Wt=hf.yieldResult;if(Wt===null)return hf.return(null);a8=new ztK(Wt);EE.query.length===0&&a8.suggestions.length===0||qe.cache.set(tbt(EE),a8);return hf.return(a8)})}
function K(EE){var wH,Wt;return _.k(function(a8){if(a8.nextAddress==1){$C=!1;var hf=Bl;hf=_.X$5()==="search"?(_.GP(location.href,"search_query")||_.GP(location.href,"q"))===hf:!1;wH=new Eym(EE,hf?Bl:null);return _.A(a8,l(wH),2)}Wt=a8.yieldResult;if(Wt===null)return a8.return();wH.query.length===0&&(LE.zeroPrefixSuggestionCount=Wt.suggestions.length);if(wH.id<=Y5)return LE.outOfSyncResponseCount++,a8.return();if(document.activeElement!==kC.value)return a8.return();Y5=wH.id;var QK=LE,FT=Wt.rawResponse[2]||
{};QK.experimentTriggeredBeforeFinal||(QK.experimentTriggeredBeforeFinal=QK.experimentTriggeredFinal);QK.experimentTriggeredFinal=!!FT.e;LE.updateSuggestions(Wt.suggestions);J(-1);LC([]);Wt.suggestions!==C()&&Ct(Wt.suggestions.length);d(Wt.suggestions);mP(Wt.suggestions.length>0&&Wt.suggestions[0].type===33);KC&&(KC.hidden=Wt.suggestions.length===0,ZD()?(KC.style.minWidth="",QK=KC.style,FT=(hf=C()[0])==null?void 0:hf.ignoredPrefix,QK.marginLeft=(FT?Math.min(FT.length*6,Rw.value.offsetWidth):0).toString()+
"px"):(KC.style.minWidth=Rw.value.offsetWidth+"px",KC.style.marginLeft="0"),Gd());_.KG(a8)})}
function q(){if(!bf)return!1;var EE=_.Tf("REFINEMENTS_TUPLE");return EE?(EE=EE[1].map(function(wH,Wt){return new DC5([wH,0,[71]],kC.value.value,Wt)}),C()!==EE&&Ct(EE.length),LC([]),d(EE),LE.updateSuggestions(EE),bf=!1,KC.hidden=EE.length===0,$C=EE.length>0,!0):!1}
function F(){var EE=kC.value.value;(typeof EE==="string"||EE instanceof String)&&EE!==""?x(!0):x(!1)}
function w(){if(_.X$5()==="search"){var EE=window.location.href;try{var wH=_.GP(EE,"search_query")||_.GP(EE,"q")||""}catch(Wt){wH=""}wH&&(kC.value.value=wH,x(!0))}}
var m=_.Z(_.qK([],void 0,"kGFAjf")),W=m.next().value;m=m.next().value;var C=W,d=m;W=_.Z(_.qK(-1,void 0,"mLGL9e"));var p=W.next().value,J=W.next().value;W=_.Z(_.qK(-1,void 0,"u2rYdc"));var M=W.next().value,P=W.next().value;W=_.Z(_.qK(!1,void 0,"W9DFC"));var g=W.next().value,x=W.next().value;W=_.Z(_.qK(!1,void 0,"Ip4dNc"));var fh=W.next().value,V=W.next().value;m=_.Z(_.qK(!1,void 0,"ZNKSQb"));W=m.next().value;m=m.next().value;var ZD=W,mP=m;m=_.Z(_.qK(!1,void 0,"JBrGLd"));W=m.next().value;var NX=m.next().value;
m=_.Z(_.qK(!1,void 0,"P2pD6e"));var jt=m.next().value,Jn=m.next().value;m=_.Z(_.qK(1,void 0,"SjP20c"));var zq=m.next().value,St=m.next().value;m=_.Z(_.qK([],void 0,"h4dRaf"));var Gq=m.next().value,LC=m.next().value;m=_.Z(_.qK(!1,void 0,"TUTzaf"));var wN=m.next().value,GI=m.next().value;m=_.E("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var ak=_.sW(),kC=_.sW(),Rw=_.sW(),KC,qe=new cg5,LE=I7m(),k5=_.vh().resolve(_.Y8(_.oF)),
yA=function(){var EE;return((EE=f.forceDarkMode)==null?void 0:EE.call(f))||!(k5==null||!k5())},HG=function(){return _.E("desktop_enable_scrollable_suggestions_panel")},GX="i"+iYt++,bf=!1,$C=!1,Bl="",qt=null,Y5=-1,tf=function(){LC([]);
d([]);mP(!1);KC&&(KC.hidden=!0);qt&&(clearTimeout(qt),qt=null);J(-1)},lK=function(EE,wH){EE.preventDefault();
GI(!0);KC&&(KC.hidden=!1);var Wt=p();EE=C();var a8=Gq();wH=Lxa(wH);Wt+=wH;for(Wt>=EE.length?Wt=-1:Wt<-1&&(Wt=EE.length-1);Wt!==-1&&(a8.includes(Wt)||Wt>=EE.length||Wt<0);)Wt+=wH,Wt>=EE.length&&(Wt=-1);J(Wt);p()>=0&&(kC.value.value=C()[p()].text,P(0),F(),EE=p(),a8=M(),(a8=document.getElementById(Ek[EE][a8]))&&HG()&&(EE===C().length-1?KC.scrollTop=KC.scrollHeight:a8.scrollIntoView({block:"nearest",inline:"start"})))},CC=_.Ff(function(EE){if(!(EE.relatedTarget instanceof Element&&EE.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){V(!0);
var wH;(wH=f.focusCallback)==null||wH.call(f,!0);q()||($C?KC.hidden=!1:(_.ul(ak.value,"yt-autonav-pause-focus",{}),K(EE.target.value)))}}),Eh=_.Ff(function(EE){if(!(EE.relatedTarget instanceof Element&&EE.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){V(!1);
var wH;(wH=f.focusCallback)==null||wH.call(f,!1);KC.scrollTop=0;KC.hidden=!0;_.ul(ak.value,"yt-autonav-pause-blur",{})}}),k_=function(EE){EE=Lxa(EE);
var wH;((wH=Ek[p()])==null?0:wH[M()+EE])&&P(M()+EE)},kM=_.Ff(function(EE){var wH=EE.target;
switch(EE.keyCode){case 13:EE.preventDefault();var Wt;if((Wt=Ek[p()])==null?0:Wt[M()]){var a8;(a8=document.getElementById(Ek[p()][M()]))==null||a8.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}EE=EE.shiftKey?4:3;Wt=LE;a8=p();Wt.selectedSuggestionIndex=a8;u(wH.value,EE);break;case 27:KC&&(KC.hidden=!0);break;case 40:lK(EE,40);break;case 38:lK(EE,38);break;case 39:k_(39);break;case 37:k_(37);break;case 229:LE.inputMethodsTracker.add(4);break;default:LE.inputMethodsTracker.add(1),
Mbl(LE)}return!1}),Uh=_.Ff(function(EE){K(EE.target.value);
F();HG()&&KC&&(KC.scrollTop=0);return!1}),Wl=_.Ff(function(){LE.inputMethodsTracker.add(2);
Mbl(LE);return!1});
_.NW(function(){if(KC){LE.reset();if(window.ResizeObserver){var EE=new ResizeObserver(function(){ZD()||(KC.style.minWidth=Rw.value.offsetWidth+"px")});
EE.observe(Rw.value);(new ResizeObserver(function(){Gd()})).observe(KC);
_.jN(function(){EE.disconnect()})}w();
window.addEventListener("yt-navigate-finish",w);window.addEventListener("yt-focus-searchbox",function(){kC.value.focus()});
var wH;NX((wH=_.Tf("SBOX_SETTINGS"))==null?void 0:wH.HAS_ON_SCREEN_KEYBOARD)}else _.TL(new _.ts("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Kv=_.Ff(function(EE){EE.preventDefault();u(kC.value.value,12);return!1}),BG=_.Ff(function(EE){EE.preventDefault();
var wH,Wt;(wH=kC)==null||(Wt=wH.value)==null||Wt.focus();var a8,hf;((a8=kC)==null?void 0:(hf=a8.value)==null?void 0:hf.value)!==""&&(kC.value.value="",kC.value.dispatchEvent(new Event("input")));return!1}),bK=_.Ff(function(){var EE=mxS(kC.value.value,C().filter(function(wH){return wH.type!==35}).map(function(wH){return{label:wH.text}}));
_.OJ(ak.value,"yt-open-popup-action",[{openPopupAction:EE},document.body]);return!1}),vt=_.Ff(function(){kC.value.focus();
return!1}),iK=function(EE,wH,Wt,a8,hf){LE.selectedSuggestionIndex=Wt;
u(wH,hf?3:1,a8)},Ob=function(EE){kC.value.value=EE;
kC.value.dispatchEvent(new Event("input"));LE.inputMethodsTracker.add(5);Mbl(LE,!0)},Ek=[[]],cf=function(EE){var wH="searchbox-suggestion"+_.j4(_.dV);
Ek[EE].push(wH);return wH},Ct=function(EE){if(C()){Ek=[[]];
for(var wH=0;wH<EE;wH++)Ek.push([])}},Gd=function(){if(HG()){var EE=KC,wH=EE.scrollTop;
EE=EE.scrollHeight-EE.clientHeight;Jn(wH>=EE);wH=Math.abs(EE-wH);wH<=40?St(1-(40-wH)/40):St(1)}},AZ=function(){return"opacity: "+zq()*100+"%"},tn=_.Ff(function(){Gd();
return!1}),MX=_.Ff(function(){GI(!1);
return!1}),o7,ml={},X5={},Dp={},A9={};
return _.a("yt-searchbox",{class:_.KL("ytSearchboxComponentHost",(ml.ytSearchboxComponentMweb=!1,ml.ytSearchboxComponentDesktop=!0,ml["yt-searchbox-filled-query"]=function(){return g()},ml["ytd-masthead"]=function(){return!fh()},ml.ytSearchboxComponentHostDark=yA,ml)),
role:"search",el:ak,"client-ve-type":10349},_.a("div",{el:Rw,"on:click":vt,class:_.KL("ytSearchboxComponentInputBox",(X5.ytSearchboxComponentInputBoxDark=yA,X5.ytSearchboxComponentInputBoxHasFocus=fh,X5))},_.a("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Kv},_.a(_.Q,{cond:fh,then:function(){return _.a("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.a(_.WM,{icon:"SEARCH"}))}}),_.a("input",{el:kC,
class:_.KL("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":GX,"aria-expanded":!((o7=KC)==null?0:o7.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Eh,"on:focus":CC,"on:input":Uh,"on:keydown":kM,"on:paste":Wl,placeholder:f.placeholderText,"aria-activedescendant":function(){var EE;return(EE=Ek[p()])==null?void 0:EE[M()]},
"aria-autocomplete":"list",role:"combobox"})),_.a(_.Q,{cond:W,then:function(){return _.a("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.a(OOm,null))}}),_.a(_.Q,{cond:g,
then:function(){return _.a("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.a("button",{class:"ytSearchboxComponentClearButton","on:click":BG,"aria-label":f.clearButtonAriaLabel||ZOe},_.a(_.WM,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.a(_.CL,{model:{}})))}})),_.a("button",{class:_.KL("ytSearchboxComponentSearchButton",(Dp.ytSearchboxComponentSearchButtonDark=yA,Dp)),
"on:click":Kv,"aria-label":hB2,title:f.placeholderText},_.a(_.WM,{icon:"SEARCH"})),_.a(_.Q,{cond:function(){if(MdS()&&_.E("mweb_voice_search")&&f.voiceSearchButton)return f.voiceSearchButton()},
then:function(EE){var wH={};return _.a("div",{class:_.KL("ytSearchboxComponentVoiceSearchWrapper",(wH.ytSearchboxComponentHideVoiceSearchButton=function(){return g()},wH))},_.a(_.y5,{data:EE},{buttonRenderer:function(Wt){return _.a(_.BP,{data:Wt.data,
onButtonClickCallback:function(){}})}}))}}),_.a("div",{el:_.nU(function(EE){return void(KC=EE)}),
id:GX,class:_.KL("ytSearchboxComponentSuggestionsContainer",(A9.ytSearchboxComponentSuggestionsContainerDark=yA,A9["yt-searchbox-suggestions-container"]=!1,A9.ytSearchboxComponentSuggestionsContainerScrollable=HG(),A9.ytSearchboxComponentSuggestionsContainerAnimated=m,A9)),"on:scroll":tn,"on:mousemove":MX,role:"listbox",hidden:!0},_.a(_.EC,{each:C},function(EE,wH){return _.a(uWN,{suggestion:EE,isHighlighted:function(){return wH()===p()},
onClickCallback:iK,onHoverUpdateCallback:function(Wt){if(_.E("desktop_enable_single_suggestion_highlight")){var a8=wH();Wt&&(P(0),J(a8))}},
onRemoveCallback:function(Wt){Xp5(qe);Wt===void 0||Wt<0||Gq().includes(Wt)||LC([].concat(_.yq(Gq()),[Wt]))},
labels:f.labels,queryBuilderFunction:Ob,suggestionIndex:wH,generateUniqueId:cf,highlightedId:function(){var Wt;return(Wt=Ek[p()])==null?void 0:Wt[M()]},
useScrollMargin:HG(),isKeyboardMode:wN})}),_.a(_.Q,{cond:function(){return!ZD()&&C().find(function(EE){return EE.type!==35})&&_.E("searchbox_reporting")},
then:function(){return _.a("button",{class:"ytSearchboxComponentReportButton","on:mousedown":bK},_.Fa("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.a(_.Q,{cond:function(){return!jt()&&HG()},
then:function(){return _.a("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.a("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:AZ}))}})))},"rg"),"yt-searchbox",{props:{searchEndpoint:_.SG,
placeholderText:_.SG,labels:_.SG,voiceSearchButton:_.SG,focusCallback:_.v7,clearButtonAriaLabel:_.SG,forceDarkMode:_.SG}});var Zh=function(){var f=_.U.apply(this,arguments)||this;f.menuButtonTargetId="topbar-guide-menu";f.narrow=!1;f.menuStrings={BACK_ALT_LABEL:_.Fa("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Fa("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Fa("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Fa("SBOX_PLACEHOLDER",void 0,"Search")};f.pageDarkTheme=document.documentElement.hasAttribute("dark");f.watchPageScrollTop=0;f.theater=!1;f.fullscreen=!1;f.desktopUnifiedSearchPanelMode=_.E("desktop_enable_unified_search_panel");
f.cinematicTheaterMode=_.E("web_cinematic_theater_mode");f.ytSearchboxFocused=!1;f.searchboxLabels=_.Tf("SBOX_LABELS");f.topbarIsAboveChipbar=!1;f.isDarkThemeForced=!1;f.areGhostCardsHidden=!1;f.guideKeyboardToggle=!1;f.voiceSearchManager=d7K();f.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};f.setYtSearchboxFocused=function(R){f.ytSearchboxFocused=R};
return f};
_.y(Zh,_.U);_.X=Zh.prototype;_.X.computeSimpleText=function(f){return _.$Z(f)};
_.X.onDarkChanged=function(){for(var f=_.Z(this.buttons||[]),R=f.next();!R.done;R=f.next())R.value.isOverlay=!!this.dark;f=_.Z(this.buttonRenderers||[]);for(R=f.next();!R.done;R=f.next())R.value.overrides=this.computeButtonOverride()};
_.X.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.X.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var f=_.H1(_.TC(),"aa");_.c2(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||f||(this.isDarkThemeForced=this.dark=!0);this.logoType?(f=this.hostElement.querySelector("#masthead-logo"))&&(_.E("polymer_on_demand_shady_dom")?f.setAttribute("slot","masthead-logo-old"):_.Q1(f)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ks(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ks(this,this.onSetTheaterModeEnabled))};
_.X.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ks(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ks(this,this.onSetTheaterModeEnabled))};
_.X.dataChanged=function(){var f=this.data;f&&(this.voiceEnabled=f.voiceSearchButton?d7K().isSupported():!1,_.dCk(_.Q3(),this.menuButtonTargetId,this.guideButton),f.onReceivedActions&&f.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ZW(this.hostElement,f.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&f&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.c2(this.hostElement,"dark",!1),_.c2(this.hostElement,"theater",!1),
(f=this.hostElement.querySelector("#masthead-logo"))&&(_.E("polymer_on_demand_shady_dom")?f.setAttribute("slot","masthead-logo-old"):_.Q1(f))))};
_.X.computeCenterHidden=function(){var f;return this.data&&!((f=this.data.searchbox)==null?0:f.fusionSearchboxRenderer)};
_.X.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.c2(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.X.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.X.onWatchScroll=function(f){this.watchPageScrollTop=f.detail||0;this.updateMastheadBackgroundOpacity()};
_.X.onFullscreenChangeAction=function(f){f||(this.watchPageScrollTop=0);this.fullscreen=f;this.updateMastheadBackgroundOpacity()};
_.X.onSetTheaterModeEnabled=function(f){this.theater=f.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.X.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.X.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.X.setBackgroundOpacity=function(f){f=this.calculateBackgroundOpacity(f);this.background.style.opacity=""+f};
_.X.calculateBackgroundOpacity=function(f){var R=this.theater&&this.cinematicTheaterMode?.6:0,u=this.hostElement.clientHeight/2;return Math.min(Math.max(f,0),u)/u*(1-R)+R};
_.X.shouldShowCinematicMastHead=function(){var f=_.E("kevlar_watch_grid")&&!_.E("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(f||this.pageDarkTheme)};
_.X.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.X.focusGuide=function(){this.guideButton.focus()};
_.X.onGuideToggleTap=function(){_.ul(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.X.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.X.onGuideToggleHover=function(){_.ul(this.hostElement,"yt-guide-hover")};
_.X.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.X.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.X.closeOnOutsideClickCondition=function(f){for(f=_.$S(f);f[0];){var R=f.shift();if(R instanceof Element&&R.id==="kbd")return!1}return!0};
_.X.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.X.pausePlayer=function(){var f;(f=_.Vm())==null||f.pause();this.pauseMiniplayer()};
_.X.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var f;(f=_.vh().resolve(_.MS).getPlayerElement())==null||f.pause()}};
_.X.isMiniplayerActive=function(){return _.vh().resolve(_.MS).isMiniplayerActive()};
_.X.updateNarrowFromBinding=function(f){this.narrow=f.detail.value};
_.X.onYtSendFeedbackAction=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Vy.Object.defineProperties(Zh.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var f;return(f=this.data)==null?void 0:f.voiceSearchButton}}}});
Zh.prototype.narrowChanged=Zh.prototype.narrowChanged;Zh.prototype.onWatchPageChange=Zh.prototype.onWatchPageChange;Zh.prototype.onRendererStamperFinished=Zh.prototype.onRendererStamperFinished;Zh.prototype.dataChanged=Zh.prototype.dataChanged;Zh.prototype.onDarkChanged=Zh.prototype.onDarkChanged;_.B([_.z(_.Lu),_.S("design:type",Object)],Zh.prototype,"ironResizableBehavior",void 0);_.B([_.z(_.bjN),_.S("design:type",Object)],Zh.prototype,"ytdExpandableInputBehavior",void 0);
_.B([_.z(_.U7.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Zh.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],Zh.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Zh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.zH),_.S("design:type",Object)],Zh.prototype,"ytdReduxBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"narrow",void 0);_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"logoType",void 0);_.B([_.I(),_.S("design:type",Boolean)],Zh.prototype,"voiceEnabled",void 0);
_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"menuStrings",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],Zh.prototype,"dark",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zh.prototype,"pageDarkTheme",void 0);_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"watchPageScrollTop",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.ze}),_.S("design:type",Boolean)],Zh.prototype,"isWatchPage",void 0);
_.B([_.I({reflectToAttribute:!0,selector:_.alB}),_.S("design:type",Boolean)],Zh.prototype,"isShortsPage",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zh.prototype,"theater",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],Zh.prototype,"fullscreen",void 0);_.B([_.I({reflectToAttribute:!0,selector:_.WZl}),_.S("design:type",String)],Zh.prototype,"frostedGlassMode",void 0);_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"ytSearchboxFocused",void 0);
_.B([_.F4("#buttons > *"),_.S("design:type",Array)],Zh.prototype,"buttons",void 0);_.B([_.F4("ytd-button-renderer"),_.S("design:type",Array)],Zh.prototype,"buttonRenderers",void 0);_.B([_.a4("#background"),_.S("design:type",HTMLDivElement)],Zh.prototype,"background",void 0);_.B([_.a4("#guide-button"),_.S("design:type",Object)],Zh.prototype,"guideButton",void 0);_.B([_.a4("#logo"),_.S("design:type",Object)],Zh.prototype,"logo",void 0);
_.B([_.I({computed:"computeButtonOverride(dark)"}),_.S("design:type",Object)],Zh.prototype,"buttonOverrides",void 0);_.B([_.QR("dark"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zh.prototype,"onDarkChanged",null);_.B([_.I({value:function(){return this.onVoiceTap.bind(this)}}),
_.S("design:type",Function)],Zh.prototype,"boundOnTapVoiceButton",void 0);_.B([_.I(),_.S("design:type",Object)],Zh.prototype,"topbarIsAboveChipbar",void 0);_.B([_.I(),_.S("design:type",String),_.S("design:paramtypes",[])],Zh.prototype,"guideIcon",null);_.B([_.T("voiceEnabled"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Zh.prototype,"shouldShowVoiceSearchButton",null);_.B([_.T("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zh.prototype,"voiceSearchButton",null);
_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zh.prototype,"dataChanged",null);_.B([_.Kf("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zh.prototype,"onRendererStamperFinished",null);_.B([_.QR("isWatchPage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zh.prototype,"onWatchPageChange",null);
_.B([_.QR("narrow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zh.prototype,"narrowChanged",null);Zh=_.B([_.e({disableElementRegistration:!0,is:"ytd-masthead"})],Zh);
_.G(Zh,"ytd-masthead",function(){if(YiS!==void 0)return YiS;var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return YiS=f},{mode:_.c7("kevlar_poly_si_batch_j036")?1:2});var kKK;var Kme={},qHe={},Agw={},a5N={},Fm2=(a5N.OFFLINE=(Kme["publicytnetworkstatus-online"]="BACK_ONLINE",Kme),a5N.ONLINE=(qHe["publicytnetworkstatus-offline"]="OFFLINE",qHe),a5N.BACK_ONLINE=(Agw["publicytnetworkstatus-offline"]="OFFLINE",Agw.TIMER_TRIGGER="ONLINE",Agw),a5N),lD=function(){var f=_.U.apply(this,arguments)||this;f.currentState="ONLINE";f.scheduledJobId=0;f.bannerString="";f.bannerVe=null;f.networkStatusManagerInstance=new _.$M;return f};
_.y(lD,_.U);_.X=lD.prototype;_.X.attached=function(){var f=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){f.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){f.stateChangeHandler("publicytnetworkstatus-offline")})};
_.X.detached=function(){var f=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){f.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){f.stateChangeHandler("publicytnetworkstatus-offline")})};
_.X.enterState=function(f){var R=this;this.scheduledJobId&&_.JA.cancelJob(this.scheduledJobId);f==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):f==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Fa("NO_INTERNET_CONNECTION",void 0,"No internet connection")):f==="BACK_ONLINE"&&(this.bannerString=_.Fa("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.dJ(_.JA,function(){R.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=f};
_.X.stateChangeHandler=function(f){(f=Fm2[this.currentState][f])&&this.enterState(f)};
_.X.logVisibility=function(f){var R=_.z4();this.createBannerVe(f);R&&this.bannerVe&&(f?_.op(R,[this.bannerVe]):_.xE(R,[this.bannerVe]))};
_.X.createBannerVe=function(f){!this.bannerVe&&f&&(this.bannerVe=_.dx(37929),_.Xl(_.wR(),this.bannerVe))};
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",String)],lD.prototype,"currentState",void 0);_.B([_.I(),_.S("design:type",Object)],lD.prototype,"scheduledJobId",void 0);_.B([_.I(),_.S("design:type",Object)],lD.prototype,"bannerString",void 0);lD=_.B([_.e({disableElementRegistration:!0,is:"ytd-network-status-banner"})],lD);
_.G(lD,"ytd-network-status-banner",function(){if(kKK!==void 0)return kKK;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return kKK=
f},{mode:1});var wpe;var k4=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};f.hidden=!0;f.frostedGlass=_.E("web_frosted_glass");return f};
_.y(k4,_.U);k4.prototype.computeHidden=function(f){return f&&f.status?!1:!0};
k4.prototype.handleUpdatePermissionRoleCommand=function(f){if(f=_.t(f,_.kgI))if(f=_.t(f.renderer,_.l2A))this.data=f};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],k4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],k4.prototype,"componentBehavior",void 0);_.B([_.I({value:!0,computed:"computeHidden(data)"}),_.S("design:type",Object)],k4.prototype,"hidden",void 0);_.B([_.I(),_.S("design:type",Object)],k4.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],k4.prototype,"frostedGlass",void 0);
k4=_.B([_.e({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],k4);
_.G(k4,"ytd-permission-role-bottom-bar-renderer",function(){if(wpe!==void 0)return wpe;var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);return wpe=f},{mode:1});var mEh;var QEh;var bvS={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Kb=function(){return _.U.apply(this,arguments)||this};
_.y(Kb,_.U);_.X=Kb.prototype;_.X.attached=function(){this.JSC$18521_scroller&&(this.JSC$18521_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18521_scroller.attached&&typeof this.JSC$18521_scroller.attached==="function"&&this.JSC$18521_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.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 f=_.b(this.hostElement);f.querySelector("tp-yt-paper-radio-group").selected="";var R=f.querySelector("#reason-text");R&&(R.value="");f.querySelector("#description-text").value=""}};
_.X.canSubmit=function(f,R){_.ul(this.hostElement,"yt-invalidate-popup-tabbables");return!(f&&R)};
_.X.onCancel=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.X.onSubmit=function(){var f=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(h){return h.active}).map(function(h){return h.innerText.trim()}),R=this.hostElement.querySelector("tp-yt-paper-radio-group"),u=R.selectedItem,O=u.name;
u=u.innerText.trim();var c=R.querySelector("#reason-text");R=void 0;c&&(R=c.value);(c=this.descriptionText.value)&&(c=c.trim());p_N(this.data.searchQuery,f,O,u,c,R);_.OJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.X.sendFormSubmitToast=function(){var f=_.vW(_.Fa("SBOX_INAPPROPRIATE_TOAST"));_.OJ(this.hostElement,"yt-open-popup-action",[f,this])};
_.X.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(f){return f.active})};
_.X.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Kb.prototype.onIronSelect=Kb.prototype.onIronSelect;Kb.prototype.onIronChange=Kb.prototype.onIronChange;Kb.prototype.dataChanged=Kb.prototype.dataChanged;_.B([_.I(),_.S("design:type",Object)],Kb.prototype,"data",void 0);_.B([_.I({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.S("design:type",Boolean)],Kb.prototype,"submitDisabled",void 0);_.B([_.I(),_.S("design:type",Boolean)],Kb.prototype,"suggestionSelected",void 0);
_.B([_.I(),_.S("design:type",Boolean)],Kb.prototype,"catagorySelected",void 0);_.B([_.a4("#scroller"),_.S("design:type",Object)],Kb.prototype,"JSC$18521_scroller",void 0);_.B([_.a4("#description-text"),_.S("design:type",Object)],Kb.prototype,"descriptionText",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kb.prototype,"dataChanged",null);
_.B([_.Kf("iron-change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kb.prototype,"onIronChange",null);_.B([_.Kf("iron-select"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kb.prototype,"onIronSelect",null);Kb=_.B([_.e({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Kb);
_.G(Kb,"ytd-search-suggestion-report-dialog",function(){if(QEh!==void 0)return QEh;var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return QEh=f},{mode:1});var qz=function(f){var R=f.openPopupAction;var u=f.target;var O=f.container;var c=f.popupContainerConfig;var h=f.getElement;f=f.removeWhenClosed===void 0?!1:f.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=R;this.target=u;this.container=O;this.popupContainerConfig=c;this.getElement=h;this.JSC$18527_popupConfig=this.popupContainerConfig.JSC$17645_popupConfig[this.openPopupAction.popupType];this.rendererName=(R=this.getName())?_.TRh(R,R7l(this.popupContainerConfig,
R)):"";_.E("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=f);this.createPopup()};
qz.prototype.updatePopup=function(f){this.openPopupAction=f;this.JSC$18527_popupConfig=this.popupContainerConfig.JSC$17645_popupConfig[this.openPopupAction.popupType];Wm2(this);_.E("reorder_popup_updates_killswitch")&&EQz(this);_.E("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var ygh=function(f,R,u){f.target=u;var O;u=((O=f.target.polymerController)!=null?O:f.target).popupPositionTarget||f.target;f.JSC$18527_popupConfig.targetContainer&&(u=f.container);f.popup.positionTarget=u;f.popupContent.positionTarget=u;_.E("reorder_popup_updates_killswitch")||EQz(f);f.JSC$18527_popupConfig.forceFocus&&(f.popupContent.style.outline="none");f.popupContent.tabIndex=-1;f.JSC$18527_popupConfig.narrowProperties&&(f.popup.style.position="static");f.JSC$18527_popupConfig.preventAutonav&&
f.popup.setAttribute("prevent-autonav",!0);f.JSC$18527_popupConfig.forceCloseOnOutsideClick&&f.popup.setAttribute("force-close-on-outside-click",!0);tEK(f,R);Csw(f,f.JSC$18527_popupConfig.styles);f.isRtl()&&Csw(f,f.JSC$18527_popupConfig.rtlStyles);if(!f.openPopupAction.shouldStopParentSignal){var c;R=(c=f.target.polymerController)!=null?c:f.target;(f.popupContent.startForwardingEvents||f.popupContainerConfig.forwardingEnabledPopups.has(f.rendererName))&&R.parentComponent!==f.popupContent&&f.popupContent!==
f.target&&f.target!==document.body&&(f.popupContent.startForwardingEvents?f.popupContent.startForwardingEvents(f.popupContainerConfig.forwardedEvents,f.target):(f.JSC$18527_eventForwarder||(f.JSC$18527_eventForwarder=new _.KS(f.popupContent)),f.JSC$18527_eventForwarder.start(f.popupContainerConfig.forwardedEvents,f.target)))}};
qz.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var tEK=function(f,R){dEm(f,R&&f.JSC$18527_popupConfig.narrowProperties?f.JSC$18527_popupConfig.narrowProperties:f.JSC$18527_popupConfig.properties);f.isRtl()&&dEm(f,f.JSC$18527_popupConfig.rtlProperties);EQz(f)};
qz.prototype.createPopup=function(){var f=this.JSC$18527_popupConfig.component;if(this.popupContent=NbX(this,this.rendererName)){if(f){this.popup=NbX(this,f);var R=this.popupContent;_.E("web_enable_wrapper_for_cow_component_in_popup")&&(R=document.createElement("div"),R.appendChild(this.popupContent));_.E("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18527_popupConfig.slotName&&R.setAttribute("slot",this.JSC$18527_popupConfig.slotName);f=this.popup;var u=this.container.tagName.toLowerCase(),
O=_.sy(R);_.OeX(_.VC(f),_.ij(R,u,O));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.E("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.b(this.container).appendChild(this.popup)}};
var Wm2=function(f){var R,u,O=(R=f.openPopupAction.accessibilityData)==null?void 0:(u=R.accessibilityData)==null?void 0:u.label;O&&(f.popup.ariaLabel=O);var c;((c=f.popupContent.polymerController)!=null?c:f.popupContent).data=(0,_.dq.unsafeClone)(f.openPopupAction.popup[f.getName()]);f.popupContent.duration=Lmz(f);f.popupContent.positionType=f.openPopupAction.position;var h=f.openPopupAction.properties;h&&Object.keys(h).forEach(function(l){f.popupContent[l]=h[l]})},dEm=function(f,R){if(R)for(var u=
_.Z(Object.keys(R)),O=u.next();!O.done;O=u.next())O=O.value,f.popup[O]=R[O]},EQz=function(f){if(f.openPopupAction.position){var R=f.JSC$18527_popupConfig.positionalProperties&&f.JSC$18527_popupConfig.positionalProperties[f.openPopupAction.position],u=f.JSC$18527_popupConfig.rtlPositionalProperties&&f.JSC$18527_popupConfig.rtlPositionalProperties[f.openPopupAction.position];
R=f.isRtl()&&u?u:R;R.shiftedHorizontalOffset&&(u=f.popup.style.display,f.popup.style.display="block",f.popupContent&&f.popup.positionTarget&&f.popupContent.clientWidth>f.popup.positionTarget.clientWidth&&(R.horizontalOffset=f.popup.positionTarget.clientWidth/2-R.shiftedHorizontalOffset),f.popup.style.display=u);dEm(f,R)}},Csw=function(f,R){if(R)for(var u=_.Z(Object.keys(R)),O=u.next();!O.done;O=u.next())O=O.value,f.popup.style[O]=R[O]};
qz.prototype.getName=function(){return _.DK(this.openPopupAction.popup,"renderer")||_.DK(this.openPopupAction.popup,"dialog")||_.DK(this.openPopupAction.popup,"model")||void 0};
var Lmz=function(f){f=f.openPopupAction.durationHintMs;return f===0?f:Math.max(4E3,f||4E3)};
qz.prototype.isRtl=function(){return _.Tf("HTML_DIR")==="rtl"};
var NbX=function(f,R){f=f.getElement(R,f.target);f==null&&_.Ih(new _.ts("popup getElement returned null",R));return f};var bOw={};
bOw.YtPopupContainerBehavior=[_.M7.YtComponentBehavior,_.fq.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},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.fv(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Rp(this.hostElement)},
closePopup:function(f){var R=this.createCacheKey(void 0,f);this.popups_[R]&&this.handleClosePopupAction_(void 0,f)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.JA.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.JA.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(f){f.opened&&f.keepBelowPlayer&&this.ensurePopupBelowPlayer(f)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var f in this.popups_){var R=this.popups_[f];if(R.popup.scrollAction==="refit"){var u=R.popup.positionTarget.getBoundingClientRect(),O=R.popup;u=u.top;var c=R;if(!c.naturalHeight){c.popup.hidden=!1;c.popup.style.position="fixed";c.popup.style.top="0px";c.popup.style.left="0px";var h=c.popup.getBoundingClientRect();c.naturalHeight=h.bottom-h.top;c.popup.refit()}O.hidden=!(u>=c.naturalHeight+60);R.popupContent.clientHeight===0&&R.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(f){this.popupContainerConfig=f},
handleOpenPopupAction:function(f,R){var u=f.openPopupAction,O=_.vh().resolve(_.Y8(_.P1f))&&u.popupType==="TOAST";O&&!u.uniqueId&&(u.uniqueId=_.bM());if(!_.E("popup_container_parent_target_killswitch")){var c;R=(c=this.getParentTarget(R))!=null?c:R}var h=this.ensurePopup_(u,R);return new _.ah(function(l){h.then(function(K){if(!K)return l();this.maybeCreateNarrowMediaQuery_();var q=this.createCacheKey(K.rendererName,K.openPopupAction.uniqueId);if(u.showOncePerUniqueId){if(this.shownPopupKeys_.has(q))return l();
this.shownPopupKeys_.add(q)}q=this.popups_[q];var F=!(!q||!q.openPopupAction.beReused);F=!!u.reusePopup||F;if(K.popup.opened&&!F){O&&!K.openPopupAction.replacePopup||this.handleClosePopupAction_(K.rendererName,K.openPopupAction.uniqueId);F=u.popupType==="DIALOG"&&!_.E("popup_container_dialog_reopen_killswitch");if(!O&&!F&&q&&q.target==R&&!K.openPopupAction.replacePopup)return l();_.su(K.popup,function(){this.completeOpenPopupAction_(u,R,K);l()}.bind(this))}else K.popup.opened?K.updatePopup(u):this.completeOpenPopupAction_(u,
R,K),l()}.bind(this))}.bind(this))},
getParentTarget:function(f){if(f&&f instanceof HTMLElement)for(var R=_.Z(Object.entries(this.popups_)),u=R.next();!u.done;u=R.next())if(u=_.Z(u.value),u.next(),u=u.next().value,u.popup.tagName==="TP-YT-IRON-DROPDOWN"&&u.popup.opened&&f.closest(u.rendererName))return u.target},
completeOpenPopupAction_:function(f,R,u){_.E("reorder_popup_updates_killswitch")?(ygh(u,this.narrowMediaQuery_.queryMatches,R),u.updatePopup(f)):(u.updatePopup(f),ygh(u,this.narrowMediaQuery_.queryMatches,R));f=u.popup;f.addEventListener("iron-overlay-opened",_.ks(this,this.onPopupIronOverlayOpened_));f.addEventListener("iron-overlay-closed",_.ks(this,this.onPopupIronOverlayClosed_));f.addEventListener("iron-overlay-canceled",_.ks(this,this.onPopupIronOverlayCanceled_));f.addEventListener("yt-refit",
_.ks(this,this.refitPopup_));f.addEventListener("yt-invalidate-popup-tabbables",_.ks(this,this.handleInvalidatePopupTabbables_));f.open()},
getPopupDurationMs_:function(f){return f.durationHintMs===0?f.durationHintMs:Math.max(4E3,f.durationHintMs||4E3)},
handleClosePopupAction_:function(f,R){var u=_.E("web_popup_cache_key_killswitch")||!!R;if(f||u){var O=this.createCacheKey(f,R);f=(f=this.popups_[O])&&f.popup}else f=_.kwE(_.ev);if(f&&f.close){if(R=_.vh().resolve(_.Y8(_.Oc)))f.restoreFocusOnClose=R.isKeyBoardInUse();f.close();this.removePopup_(f,O)}},
handleClosePopupCommand_:function(f){f.closePopupCommand&&f.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,f.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(f){var R={},u;for(u in this.popups_)if(R={key$jscomp$1163:R.key$jscomp$1163},R.key$jscomp$1163=u,!f||!f.some(function(h){return function(l){return l==h.key$jscomp$1163}}(R))){var O=this.popups_[R.key$jscomp$1163],c=O.popup;
_.vh().resolve(_.Y8(_.P1f))&&O.openPopupAction.popupType==="TOAST"||(c&&c.close&&c.close(),this.removePopup_(c,R.key$jscomp$1163))}},
handleClosePopupsAction_:function(f){f.forEach(function(R){var u=this.popups_[R];u&&((u=u.popup)&&u.close&&u.close(),this.removePopup_(u,R))}.bind(this))},
handleGetPopupOpenedAction_:function(f,R){return(R=this.createCacheKey(f,R))&&this.popups_[R]?this.popups_[f].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var f=[],R;for(R in this.popups_){var u=this.popups_[R];u.popup.opened&&f.push(u)}return f},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(f,R){_.E("ytpopup_disable_default_html_caching")&&f&&f.removeWhenClosed&&(_.b(this.hostElement).removeChild(f),R&&this.popups_[R]&&delete this.popups_[R])},
shouldReusePopup_:function(f){return!(!f||!f.reusePopup)||!(!f||!f.beReused)},
ensurePopup_:function(f,R){this.maybeCreateNarrowMediaQuery_();var u=_.DK(f.popup,"renderer")||_.DK(f.popup,"dialog")||_.DK(f.popup,"model");if(!u)return _.ll();u=_.TRh(u,R7l(this.popupContainerConfig,u));return _.ll(this.getAndMaybeCreatePopup_(f,u,R))},
getAndMaybeCreatePopup_:function(f,R,u){var O=this.createCacheKey(R,f.uniqueId);if(this.popups_[O])return this.popups_[O];f=new qz({openPopupAction:f,target:u,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(R)});return this.popups_[O]=f},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(f){return _.E("ytpopup_disable_default_html_caching")?f&&f.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",_.ks(this,this.openPopupQueryMatchesChanged_)),_.b(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(f){f=f.detail.value;for(var R in this.popups_)tEK(this.popups_[R],f)},
onPopupIronOverlayClosed_:function(f){var R=f.currentTarget,u=_.d$P(R);u=u.length>0?u[0]:R;if(u.is!=="ytd-reel-watch-while-dialog-renderer"||f.target.is!=="tp-yt-iron-dropdown"){f.detail.popup=R;f.detail.popupRenderer=u;var O,c={context:{openingElement:((O=this.popups_[(u==null?void 0:u.is)||""])==null?void 0:O.target)||void 0}};Object.assign(c,f.detail);var h;_.ul((h=u.hostElement)!=null?h:u,"yt-popup-closed",c);R.removeEventListener("yt-refit",_.ks(this,this.refitPopup_));R.removeEventListener("yt-invalidate-popup-tabbables",
_.ks(this,this.handleInvalidatePopupTabbables_));R.removeEventListener("iron-overlay-canceled",_.ks(this,this.onPopupIronOverlayCanceled_));R.removeEventListener("iron-overlay-closed",_.ks(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(R)}},
onPopupIronOverlayCanceled_:function(f,R){var u=f.currentTarget,O=_.d$P(u);O=O.length>0?O[0]:u;if(O.is!=="ytd-reel-watch-while-dialog-renderer"||f.target.is!=="tp-yt-iron-dropdown"){var c;_.ul((c=O.hostElement)!=null?c:O,"yt-popup-canceled",f.detail);c=R?_.$S(R):null;(!R||["click","tap"].includes(R.type))&&!u.hasAttribute("force-close-on-outside-click")&&u.positionTarget&&c&&c.includes(u.positionTarget)&&f.preventDefault();u.restoreFocusOnClose=_.mJ.keyboardEventMatchesKeys(R,"esc")}},
onPopupIronOverlayOpened_:function(f){f=f.currentTarget;var R=_.d$P(f);R=R.length>0?R[0]:f;var u,O;_.ul((u=R.hostElement)!=null?u:R,"yt-popup-opened",(O=R.hostElement)!=null?O:R);f.keepBelowPlayer&&(this.ensurePopupBelowPlayer(f,!0),this.dynamicallyPositionedElements_.add(f));u=_.vh().resolve(_.Y8(_.Oc));O=!!R.querySelector("#toast");u&&u.isKeyBoardInUse()&&!O&&(typeof R.focusFirstItem==="function"?R.focusFirstItem():(R=_.h5A(f),R.length&&R[0].focus()));f.removeEventListener("iron-overlay-opened",
_.ks(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(f){f=f.currentTarget;f.refit&&f.refit()},
refitPopups_:function(){for(var f in this.popups_)this.popups_[f].refit()},
handleInvalidatePopupTabbables_:function(f){f=f.currentTarget;f.invalidateTabbables&&f.invalidateTabbables()},
createCacheKey:function(f,R){return _.E("web_popup_cache_key_killswitch")?R?f+"#"+R:f:R?"#"+R:f},
openSheet:function(f,R){var u=f==null?void 0:f.openPopupActionCommand;!u&&(f==null?0:f.viewModel)&&(u={openPopupAction:{popup:{sheetViewModel:f.viewModel},popupType:"CONTEXTUAL_SHEET"}});u&&this.handleOpenPopupAction(u,R)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var f=this;return _.k(function(R){return R.return(f.handleGetOpenedPopupsAction_().filter(function(u){var O;return((O=u.openPopupAction)==null?void 0:O.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(f,R,u){if(_.E("web_dialog_utils_killswitch")){var O=f==null?void 0:f.openPopupActionCommand,c=(u==null?0:u.ariaLabel)?{accessibilityData:{accessibilityData:{label:u.ariaLabel}}}:void 0;!O&&(f==null?0:f.viewModel)&&(O={openPopupAction:Object.assign({},{popup:{dialogViewModel:f.viewModel},popupType:(u==null?0:u.isModal)?"MODAL":"DIALOG"},c&&c)});O&&this.handleOpenPopupAction(O,R)}else{if(c=f==null?void 0:f.viewModel){var h=u=u===void 0?{}:u;u=h.ariaLabel;c={popup:{dialogViewModel:c},
popupType:h.isModal?"MODAL":"DIALOG"};h={accessibilityData:{label:u}};u&&(c.accessibilityData=h);c={openPopupAction:c}}else c=void 0;(c=(O=c)!=null?O:f==null?void 0:f.openPopupActionCommand)&&this.handleOpenPopupAction(c,R)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var f=this;return _.k(function(R){return R.return(f.handleGetOpenedPopupsAction_().filter(function(u){var O;return((O=u.openPopupAction)==null?void 0:O.popupType)==="DIALOG"}).length>0)})}}];var pp2;var jEm;var DEK=_.Sg(["about:blank"]),AQ=function(){var f=_.U.apply(this,arguments)||this;f.isMuted=!1;f.pageLoadTimeoutId=void 0;return f};
_.y(AQ,_.U);_.X=AQ.prototype;_.X.dataChanged=function(){var f=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var R=this.data.url,u=_.z2(R);_.E("enable_yt_ata_iframe_authuser")?(u=_.z2(R),_.D0(this.iframe,jp9(u))):_.D0(this.iframe,u);this.pageLoadTimeoutId=_.dJ(_.LS(),function(){return void f.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.VF({destination:window,iframe:this.iframe,origin:_.wGk(u.toString()),channelName:"ataiframe",onMessage:_.bsh(hxh,function(O){ZJa(O.data)?(O=_.CE(O.data,1,_.yS,_.fR()),O.length!==1?_.Ih(Error("nl")):(O=O[0],O===3?(f.isMuted=!0,f.logStateChanged({adMuteRequested:!0})):O===1&&f.close())):_.Ih(Error("ol"))}),
onEstablished:function(){f.cancelPageLoadTimeout();f.logStateChanged({pageLoadSucceeded:!0})}})}};
_.X.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.LS().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.X.logStateChanged=function(f){var R;if((R=this.data)==null?0:R.trackingParams)f={adsClientData:{aboutThisAdData:f}},_.wR().stateChanged(this.data.trackingParams,f)};
_.X.close=function(){_.OJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.handlesPopupClosed=function(f,R){var u=this,O,c;return _.k(function(h){if(h.nextAddress==1)return _.Tf("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.OJ(u.hostElement,"on-about-this-ad-popup-closed",[u.isMuted,R]),h.jumpTo(0)):f&&D5l(f)?_.A(h,JHN(f),4):(u.isMuted&&_.OJ(u.hostElement,"yt-mute-ad-action",[u.is,u]),h.jumpTo(0));if(O=h.yieldResult){var l=c=new _.QG(O),K=u.isMuted;l.getOptions().includes("onAboutThisAdPopupClosed")?_.o2A(l,"onAboutThisAdPopupClosed",{isMuted:K,layoutId:R}):_.rW("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.KG(h)})};
_.X.onPopupClosed=function(f){var R=this,u,O;return _.k(function(c){u=_.R0(DEK);_.D0(R.iframe,u);R.cancelPageLoadTimeout();if(!R.data)return c.jumpTo(0);R.ytRendererBehavior.markDirty();O=f.detail.context.openingElement;return _.A(c,R.handlesPopupClosed(O,R.data.layoutId),0)})};
_.X.detached=function(){this.cancelPageLoadTimeout()};
_.X.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
AQ.prototype.onPopupClosed=AQ.prototype.onPopupClosed;AQ.prototype.dataChanged=AQ.prototype.dataChanged;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.B([_.a4("#iframe"),_.S("design:type",HTMLIFrameElement)],AQ.prototype,"iframe",void 0);_.B([_.I(),_.S("design:type",Object)],AQ.prototype,"data",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AQ.prototype,"dataChanged",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype",Promise)],AQ.prototype,"onPopupClosed",null);AQ=_.B([_.DO({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],AQ);
_.G(AQ,"yt-about-this-ad-renderer",function(){if(jEm===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;pp2===void 0&&(pp2=document.createElement("template"));var O=pp2;u.call(R,O.content.cloneNode(!0),f.content.firstChild);jEm=f}f=jEm;return f},{mode:2});var Jgh;var zBm;var aQ=function(f){var R=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=R.message;"stack"in R&&(this.stack=R.stack);this.maxFileSizeMB=f;Object.setPrototypeOf(this,aQ.prototype)};
_.y(aQ,Error);var Tba=function(f,R){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=f;this.minHeight=R;Object.setPrototypeOf(this,Tba.prototype)};
_.y(Tba,Error);var HON=function(f){this.requirements=f;this.JSC$18555_maxFileSize=f.maxFileSizeMB*1024*1024},I5m=function(f,R){if(R.size>f.JSC$18555_maxFileSize)throw new aQ(f.requirements.maxFileSizeMB);
};var MEh=function(f,R){this.canvas=f;this.imageEditorBuilder=R};
MEh.prototype.addEventListeners=function(f){var R=function(c){Psz(f,c)};
this.JSC$18561_mouseDownEvent=R;var u=function(c){UEh(f,c)};
this.JSC$18561_mouseMoveEvent=u;var O=function(){eBm(f)};
this.JSC$18561_mouseUpEvent=O;this.canvas.addEventListener("mousedown",R);this.canvas.addEventListener("mousemove",u);document.addEventListener("mouseup",O)};
MEh.prototype.removeEventListeners=function(){this.JSC$18561_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18561_mouseDownEvent);this.JSC$18561_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18561_mouseMoveEvent);this.JSC$18561_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18561_mouseUpEvent)};
var GKm=function(f,R){f.removeEventListeners();return new Promise(function(u){var O=new Image;O.crossOrigin="anonymous";O.onload=function(){var c=f.imageEditorBuilder(f.canvas,O);f.addEventListeners(c);u(c)};
O.src=R})},Fj=function(f,R,u,O,c,h,l,K){this.canvas=f;
this.image=R;this.requiredRatio=u;this.minImageCropDimension=O;this.minOutputImageResolution=c;this.component=h;this.styleFocusedCorner=K===void 0?!0:K;this.action=2;this.focusedCorner=this.resizeCorner=0;f=this.canvas.getContext("2d");if(!f)throw Error("pl");this.ctx=f;this.canvasMargin=l!=null?l:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;l=this.image;f=this.canvasInnerWidth/l.width;l.height*f>912&&(f=l.width/l.height*912/l.width);l=f;this.scaledImageWidth=this.canvas.width%2?
TAe(this.image.width*l):z4h(this.image.width*l);this.scaledImageHeight=Math.round(this.image.height*l);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18564_overlayMarginBottom=this.JSC$18564_overlayMarginTop=this.canvasMargin;this.JSC$18564_overlayMarginRight=this.JSC$18564_overlayMarginLeft=this.horizontalMargin;this.JSC$18564_overlayWidth=this.scaledImageWidth;this.JSC$18564_overlayHeight=this.scaledImageHeight;
f=this.image.width/this.image.height;f>this.requiredRatio?(this.JSC$18564_overlayWidth=this.canvas.width%2?TAe(this.scaledImageHeight*this.requiredRatio):z4h(this.scaledImageHeight*this.requiredRatio),this.JSC$18564_overlayMarginRight=this.JSC$18564_overlayMarginLeft=(this.canvas.width-this.JSC$18564_overlayWidth)/2):f<this.requiredRatio&&(this.JSC$18564_overlayHeight=this.canvas.height%2?TAe(this.scaledImageWidth/this.requiredRatio):z4h(this.scaledImageWidth/this.requiredRatio),this.JSC$18564_overlayMarginBottom=
this.JSC$18564_overlayMarginTop=(this.canvas.height-this.JSC$18564_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*l,this.scaledImageWidth);Bb5(this)};
Fj.prototype.getContext=function(){return this.ctx};
var Psz=function(f,R){R={x:Math.round(R.pageX-f.canvas.getBoundingClientRect().left),y:Math.round(R.pageY-f.canvas.getBoundingClientRect().top)};f.dragStart=R;oQm(f,R)!==0?(f.action=1,xEh(f,R),f.resizeCorner=oQm(f,R)):R.x>f.JSC$18564_overlayMarginLeft&&R.x<f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth&&R.y>f.JSC$18564_overlayMarginTop&&R.y<f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight&&(f.action=0)},SHa=function(f,R){switch(R){case 1:return{x:f.JSC$18564_overlayMarginLeft,
y:f.JSC$18564_overlayMarginTop};case 2:return{x:f.JSC$18564_overlayMarginLeft,y:f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight};case 3:return{x:f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth,y:f.JSC$18564_overlayMarginTop};case 4:return{x:f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth,y:f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight};default:throw Error("ql");}},gQh=function(f,R){if(f.focusedCorner!==0){f.dragStart=SHa(f,f.focusedCorner);
f.action=1;f.resizeCorner=f.focusedCorner;var u=f.dragStart.x,O=f.dragStart.y;switch(R){case 0:f.focusedCorner===1||f.focusedCorner===4?(u-=10,O-=10):(u-=10,O+=10);break;case 1:f.focusedCorner===1||f.focusedCorner===4?(u+=10,O+=10):(u+=10,O-=10);break;case 2:u=f.focusedCorner===1||f.focusedCorner===4?u-10:u+10;O-=10;break;case 3:u=f.focusedCorner===1||f.focusedCorner===4?u+10:u-10;O+=10;break;default:throw Error("rl");}$Em(f,{x:u,y:O});Bb5(f);f.action=2;f.dragStart=void 0}},UEh=function(f,R){R={x:Math.round(R.pageX-
f.canvas.getBoundingClientRect().left),
y:Math.round(R.pageY-f.canvas.getBoundingClientRect().top)};xEh(f,R);switch(f.action){case 1:$Em(f,R);break;case 0:f.dragStart&&(f.JSC$18564_overlayMarginLeft=Math.max(f.horizontalMargin,Math.min(f.JSC$18564_overlayMarginLeft-(f.dragStart.x-R.x),f.horizontalMargin+f.scaledImageWidth-f.JSC$18564_overlayWidth)),f.JSC$18564_overlayMarginRight=f.canvas.width-f.JSC$18564_overlayMarginLeft-f.JSC$18564_overlayWidth,f.JSC$18564_overlayMarginTop=Math.max(f.canvasMargin,Math.min(f.JSC$18564_overlayMarginTop-
(f.dragStart.y-R.y),f.scaledImageHeight-f.JSC$18564_overlayHeight+f.canvasMargin)),f.JSC$18564_overlayMarginBottom=f.canvas.height-(f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight));break;default:return}Bb5(f);f.dragStart=R},eBm=function(f){f.action=2;
f.dragStart=void 0;document.body.style.cursor="auto"},xEh=function(f,R){switch(oQm(f,R)){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:f.action!==1&&(document.body.style.cursor="auto")}},oQm=function(f,R){var u=f.JSC$18564_overlayMarginLeft-5,O=f.JSC$18564_overlayMarginTop-5,c=f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth-5;
f=f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-5;return sEt(R,{x:u,y:O})?1:sEt(R,{x:c,y:O})?3:sEt(R,{x:u,y:f})?2:sEt(R,{x:c,y:f})?4:0},sEt=function(f,R){return f.x>=R.x&&f.x<=R.x+10&&f.y>=R.y&&f.y<=R.y+10},$Em=function(f,R){if(f.dragStart)switch(f.resizeCorner){case 2:Math.abs((f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth-R.x)/(R.y-f.JSC$18564_overlayMarginTop))>=f.requiredRatio?nQh(f,R.x):VEm(f,R.y);
break;case 1:Math.abs((f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth-R.x)/(f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-R.y))>=f.requiredRatio?YHa(f,R.x):VEm(f,R.y);break;case 4:Math.abs((R.x-f.JSC$18564_overlayMarginLeft)/(R.y-f.JSC$18564_overlayMarginTop))>=f.requiredRatio?nQh(f,R.x):vQw(f,R.y);break;case 3:Math.abs((R.x-f.JSC$18564_overlayMarginLeft)/(f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-R.y))>=f.requiredRatio?YHa(f,R.x):vQw(f,R.y);break;default:throw Error("sl");
}},nQh=function(f,R){var u=f.JSC$18564_overlayMarginTop;
f.JSC$18564_overlayMarginBottom=iOe(f,R);f.JSC$18564_overlayHeight=f.canvas.height-f.JSC$18564_overlayMarginBottom-u;f.JSC$18564_overlayWidth=Math.round(f.JSC$18564_overlayHeight*f.requiredRatio);rgl(f)},YHa=function(f,R){var u=f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight;
f.JSC$18564_overlayMarginTop=iOe(f,R);f.JSC$18564_overlayHeight=u-f.JSC$18564_overlayMarginTop;f.JSC$18564_overlayWidth=Math.round(f.JSC$18564_overlayHeight*f.requiredRatio);rgl(f)},rgl=function(f){switch(f.resizeCorner){case 2:case 1:f.JSC$18564_overlayMarginLeft=f.canvas.width-f.JSC$18564_overlayMarginRight-f.JSC$18564_overlayWidth;
break;case 4:case 3:f.JSC$18564_overlayMarginRight=f.canvas.width-f.JSC$18564_overlayMarginLeft-f.JSC$18564_overlayWidth;break;default:throw Error("sl");}},VEm=function(f,R){var u=f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth;
f.JSC$18564_overlayMarginLeft=fFa(f,R);f.JSC$18564_overlayWidth=u-f.JSC$18564_overlayMarginLeft;f.JSC$18564_overlayHeight=Math.round(f.JSC$18564_overlayWidth/f.requiredRatio);Ry9(f)},vQw=function(f,R){var u=f.JSC$18564_overlayMarginLeft;
f.JSC$18564_overlayMarginRight=fFa(f,R);f.JSC$18564_overlayWidth=f.canvas.width-f.JSC$18564_overlayMarginRight-u;f.JSC$18564_overlayHeight=Math.round(f.JSC$18564_overlayWidth/f.requiredRatio);Ry9(f)},Ry9=function(f){switch(f.resizeCorner){case 2:case 4:f.JSC$18564_overlayMarginBottom=f.canvas.height-f.JSC$18564_overlayMarginTop-f.JSC$18564_overlayHeight;
break;case 1:case 3:f.JSC$18564_overlayMarginTop=f.canvas.height-f.JSC$18564_overlayMarginBottom-f.JSC$18564_overlayHeight;break;default:throw Error("sl");}},iOe=function(f,R){switch(f.resizeCorner){case 2:R=f.canvas.height-(f.JSC$18564_overlayMarginTop+uh5(f,R));
break;case 4:R=f.canvas.height-(f.JSC$18564_overlayMarginTop+Oyt(f,R));break;case 1:R=f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-uh5(f,R);break;case 3:R=f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-Oyt(f,R);break;default:throw Error("sl");}return Math.max(R,f.canvasMargin)},uh5=function(f,R){R=f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth-Math.max(R,f.horizontalMargin);
R=R<0?f.JSC$18564_overlayWidth:Math.max(R,f.minOverlayWidth);return Math.round(R/f.requiredRatio)},Oyt=function(f,R){R=f.canvas.width-Math.max(f.canvas.width-R,f.horizontalMargin)-f.JSC$18564_overlayMarginLeft;
R=R<0?f.JSC$18564_overlayWidth:Math.max(R,f.minOverlayWidth);return Math.round(R/f.requiredRatio)},fFa=function(f,R){switch(f.resizeCorner){case 2:R=f.canvas.width-f.JSC$18564_overlayMarginRight-c82(f,R);
break;case 4:R=f.canvas.width-f.JSC$18564_overlayMarginLeft-c82(f,R);break;case 1:R=f.canvas.width-f.JSC$18564_overlayMarginRight-Xnw(f,R);break;case 3:R=f.canvas.width-f.JSC$18564_overlayMarginLeft-Xnw(f,R);break;default:throw Error("sl");}return Math.max(R,f.horizontalMargin)},c82=function(f,R){R=f.canvas.height-Math.max(f.canvas.height-R,f.canvasMargin)-f.JSC$18564_overlayMarginTop;
return R<0?f.JSC$18564_overlayWidth:Math.max(Math.round(R*f.requiredRatio),f.minOverlayWidth)},Xnw=function(f,R){R=f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-Math.max(R,f.canvasMargin);
return R<0?f.JSC$18564_overlayWidth:Math.max(Math.round(R*f.requiredRatio),f.minOverlayWidth)},Bb5=function(f){f.ctx.clearRect(0,0,f.canvas.width,f.canvas.height);
f.ctx.drawImage(f.image,0,0,f.image.width,f.image.height,f.horizontalMargin,f.canvasMargin,f.canvas.width-2*f.horizontalMargin,f.scaledImageHeight);f.ctx.fillStyle="rgba(0, 0, 0, 0.7)";f.ctx.fillRect(f.horizontalMargin,f.JSC$18564_overlayMarginTop,f.JSC$18564_overlayMarginLeft-f.horizontalMargin,f.JSC$18564_overlayHeight);f.ctx.fillRect(f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth,f.JSC$18564_overlayMarginTop,f.JSC$18564_overlayMarginRight-f.horizontalMargin,f.JSC$18564_overlayHeight);f.ctx.fillRect(f.horizontalMargin,
f.canvasMargin,f.scaledImageWidth,f.JSC$18564_overlayMarginTop-f.canvasMargin);f.ctx.fillRect(f.horizontalMargin,f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight,f.scaledImageWidth,f.JSC$18564_overlayMarginBottom-f.canvasMargin);f.drawOverlay();f.component&&_.ul(f.component,"image-updated")};
Fj.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18564_overlayMarginLeft,this.JSC$18564_overlayMarginTop,this.JSC$18564_overlayWidth,this.JSC$18564_overlayHeight);hy9(this)};
var hy9=function(f){var R=f.JSC$18564_overlayMarginLeft-5,u=f.JSC$18564_overlayMarginTop-5,O=f.JSC$18564_overlayMarginLeft+f.JSC$18564_overlayWidth-5,c=f.JSC$18564_overlayMarginTop+f.JSC$18564_overlayHeight-5;f.ctx.fillStyle="#FFF";f.ctx.fillRect(R,u,10,10);f.ctx.strokeRect(R,u,10,10);f.ctx.fillRect(O,u,10,10);f.ctx.strokeRect(O,u,10,10);f.ctx.fillRect(R,c,10,10);f.ctx.strokeRect(R,c,10,10);f.ctx.fillRect(O,c,10,10);f.ctx.strokeRect(O,c,10,10);if(f.focusedCorner!==0&&f.styleFocusedCorner){f.ctx.lineWidth=
4;f.ctx.strokeStyle="#3EA6FF";switch(f.focusedCorner){case 1:--R;--u;break;case 2:--R;u=c-1;break;case 3:R=O-1;--u;break;case 4:R=O-1;u=c-1;break;default:return}f.ctx.strokeRect(R,u,12,12)}};
Fj.prototype.crop=function(f,R){R=R===void 0?!0:R;var u=this.image.width/this.scaledImageWidth,O=document.createElement("canvas"),c=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],h=this.JSC$18564_overlayWidth*u,l=this.JSC$18564_overlayHeight*u;O.width=Math.max(h,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);O.height=Math.max(l,c);f&&(O.width=Math.min(O.width,O.height),O.height=Math.min(O.width,O.height));
f=O.getContext("2d");if(!f)throw Error("gl");c=(this.JSC$18564_overlayMarginLeft-this.horizontalMargin)*u;u*=this.JSC$18564_overlayMarginTop-this.canvasMargin;R||(f.fillStyle="white",f.fillRect(0,0,O.width,O.height));f.drawImage(this.image,c,u,h,l,0,0,O.width,O.height);return O};var Zy2=function(f,R,u,O,c){Fj.call(this,f,R,u,O,void 0,c,8,!1)};
_.y(Zy2,Fj);Zy2.prototype.drawOverlay=function(){var f=this.getContext(),R=this.JSC$18564_overlayWidth,u=this.JSC$18564_overlayHeight,O=this.JSC$18564_overlayMarginTop,c=this.JSC$18564_overlayMarginLeft;f.lineWidth=2;f.strokeStyle="#3EA6FF";f.beginPath();f.arc(c+R/2,O+u/2,R/2,0,2*Math.PI);f.stroke();f.strokeRect(c,O,R,u);hy9(this)};
var lFS={maxFileSizeMB:15,minWidth:98,minHeight:98},kYS=["image/png","image/jpeg","image/gif"],w8=function(){var f=_.U.apply(this,arguments)||this;f.fileSelectorFocusListener=null;f.errorMessage=null;f.isLoading=!0;f.hideContainer=!0;f.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return f};
_.y(w8,_.U);_.X=w8.prototype;_.X.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.X.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.X.computePlaylistThumbnail=function(f){return f==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.X.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.OJ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.X.setErrorState=function(f){this.resetErrorState();f&&(this.errorMessage=f)};
_.X.showPopup=function(){var f=this;this.hideContainer=!1;_.dJ(_.JA,function(){_.ul(f.hostElement,"yt-refit")});
this.isLoading=!1};
_.X.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.X.closePopup=function(){this.resetFileSelector();_.OJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onCancelTap=function(){this.isPlaylistThumbnail||_.OJ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.X.openFileSelector=function(){var f=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.dJ(_.JA,function(){setTimeout(function(){if(!f.fileSelector.files||f.fileSelector.files.length===0)f.onCancelTap();f.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(R){R instanceof Error?_.TL(R):_.H5(new _.ts(JSON.stringify(R)))}};
_.X.handleFileSelection=function(){var f=this,R,u,O,c,h,l;return _.k(function(K){switch(K.nextAddress){case 1:_.cl(K,2);if(!f.fileSelector.files||!f.imageEditorCanvas)return f.onCancelTap(),K.return();R=f.fileSelector.files[0];I5m(f.imageChecker,R);_.cl(K,4);return _.A(K,cHS(R),6);case 6:f.mimeType=K.yieldResult;_.Bf(K,5,2);break;case 4:_.ku(K,2),_.OJ(f.hostElement,"yt-image-selection-error-action",[(u=f.data)==null?void 0:u.genericImageLoadErrorMessage]),f.onCancelTap();case 5:O=new FileReader;O.addEventListener("load",
function(){var q,F;return _.k(function(w){if(w.nextAddress==1){if(!O.result)return _.Ih(Error("il")),w.return();q=O.result;F=new Image;F.src=q;F.onload=function(){try{var m=f.imageChecker;if(F.width<m.requirements.minWidth||F.height<m.requirements.minHeight)throw new Tba(m.requirements.minWidth,m.requirements.minHeight);}catch(C){if(C instanceof Tba){var W;_.OJ(f.hostElement,"yt-image-selection-error-action",[(W=f.data)==null?void 0:W.imageDimensionErrorMessage]);f.logImageDimensionErrorVe()}else C instanceof
Error?_.TL(C):(m=new _.ts(JSON.stringify(C)),_.TL(m));f.onCancelTap()}f.showPopup()};
F.onerror=function(){var m;_.OJ(f.hostElement,"yt-image-selection-error-action",[(m=f.data)==null?void 0:m.genericImageLoadErrorMessage]);f.onCancelTap()};
return _.A(w,GKm(f.imageEditorCanvas,q),2)}f.imageEditor=w.yieldResult;f.updatePositionOfAllCorners();f.addEventListeners(f.imageEditor);_.KG(w)})},!1);
O.readAsDataURL(R);_.Bf(K,0);break;case 2:c=_.ku(K),c instanceof aQ?_.OJ(f.hostElement,"yt-image-selection-error-action",[(h=f.data)==null?void 0:h.imageSizeErrorMessage]):(c instanceof Error?_.TL(c):_.H5(new _.ts(JSON.stringify(c))),_.OJ(f.hostElement,"yt-image-selection-error-action",[(l=f.data)==null?void 0:l.genericImageLoadErrorMessage])),f.onCancelTap(),_.KG(K)}})};
_.X.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var f=_.Fy(_.wR(),{veType:232707,visualElement:_.dx(232707)});f&&(f={visualElement:f},_.aF().reportShown(f))}};
_.X.handleImageSelectionErrorAction=function(f){this.isPlaylistThumbnail&&_.iln(this.hostElement,f)};
_.X.convertToImageFormatBundle=function(f){var R=this,u,O,c;return _.k(function(h){switch(h.nextAddress){case 1:return u=f.toDataURL(R.outputMimeType,1),_.A(h,X_2(u),2);case 2:O=h.yieldResult;_.cl(h,3);I5m(R.imageChecker,O);_.Bf(h,4);break;case 3:c=_.ku(h);if(!(c instanceof aQ))throw c;_.Ih(new _.ts("Output size is bigger than input size for image",R.mimeType,R.outputMimeType,O.size));u=f.toDataURL("image/jpeg",.95);return _.A(h,X_2(u),6);case 6:O=h.yieldResult;case 4:return h.return({dataUrl:u,imageFile:O})}})};
_.X.handleUploadImageToScottyCommand=function(f){var R=this,u,O,c,h,l,K,q,F,w,m;return _.k(function(W){switch(W.nextAddress){case 1:if(!R.imageEditor||!_.t(f,yOt))return W.return();u=_.t(f,yOt).scottyUploadUrl;if(!u){var C=new _.ts("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.TL(C);return W.return()}_.cl(W,2);R.setLoadingState();O=R.imageEditor.crop(!1,!1);return _.A(W,R.convertToImageFormatBundle(O),4);case 4:return c=W.yieldResult,_.A(W,ual(c.imageFile,u),5);case 5:h=
W.yieldResult;((l=R.data)==null?0:l.onUploadEndpoint)?(K=R.buildUploadServiceEndpoint(h),R.ytComponentBehavior.resolveCommand(K),q=_.t(K,_.ji),((F=q)==null?0:F.params)?R.closePopup():R.resetFileSelector()):(_.OJ(R.hostElement,"yt-image-updated-action",[c.dataUrl,h]),R.closePopup());_.Bf(W,0);break;case 2:w=_.ku(W),R.setErrorState((m=R.data)==null?void 0:m.uploadErrorMessage),w instanceof Error?_.TL(w):(C=new _.ts(JSON.stringify(w)),_.TL(C)),_.KG(W)}})};
_.X.buildUploadServiceEndpoint=function(f){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",f),this.data.onUploadEndpoint):null};
_.X.dataChanged=function(){var f=this,R;return _.k(function(u){if(u.nextAddress==1){if(!f.data||!f.canvasElement)return u.return();f.data.imageRatio&&f.data.minImageCropWidth||_.H5(new _.ts("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));R=function(O,c){return f.data.imageType==="IMAGE_TYPE_AVATAR"?new Zy2(O,c,f.data.imageRatio,[f.data.minImageCropWidth,f.data.minImageCropWidth/f.data.imageRatio],f.hostElement):new Fj(O,c,f.data.imageRatio,[f.data.minImageCropWidth,
f.data.minImageCropWidth/f.data.imageRatio],void 0,f.hostElement,8,!1)};
f.imageEditorCanvas=new MEh(f.canvasElement,R);return f.data.url?_.A(u,GKm(f.imageEditorCanvas,f.data.url),3):(f.hideContainer=!0,f.openFileSelector(),u.jumpTo(0))}f.imageEditor=u.yieldResult;f.showPopup();f.addEventListeners(f.imageEditor);_.KG(u)})};
_.X.addEventListeners=function(f){this.removeEventListeners();var R=function(c){Psz(f,c)};
this.JSC$18572_mouseDownEvent=R;var u=function(c){UEh(f,c)};
this.JSC$18572_mouseMoveEvent=u;var O=function(){eBm(f)};
this.JSC$18572_mouseUpEvent=O;this.topLeftCorner.addEventListener("mousedown",R);this.topLeftCorner.addEventListener("mousemove",u);this.topLeftCorner.addEventListener("mouseup",O);this.topRightCorner.addEventListener("mousedown",R);this.topRightCorner.addEventListener("mousemove",u);this.topRightCorner.addEventListener("mouseup",O);this.bottomLeftCorner.addEventListener("mousedown",R);this.bottomLeftCorner.addEventListener("mousemove",u);this.bottomLeftCorner.addEventListener("mouseup",O);this.bottomRightCorner.addEventListener("mousedown",
R);this.bottomRightCorner.addEventListener("mousemove",u);this.bottomRightCorner.addEventListener("mouseup",O)};
_.X.removeEventListeners=function(){this.JSC$18572_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18572_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18572_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18572_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18572_mouseDownEvent));this.JSC$18572_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18572_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18572_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18572_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18572_mouseMoveEvent));this.JSC$18572_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18572_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18572_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18572_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18572_mouseUpEvent))};
_.X.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var f=document.activeElement;f&&f.shadowRoot&&f.shadowRoot.activeElement;)f=f.shadowRoot.activeElement;switch(f){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};
_.X.updatePositionOfCorner=function(f,R){var u=f.y-R.offsetHeight/2+4;R.style.left=f.x-R.offsetWidth/2+16+"px";R.style.top=u+"px"};
_.X.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var f=_.Z([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),R=f.next();!R.done;R=f.next()){R=R.value;var u=SHa(this.imageEditor,R.corner);this.updatePositionOfCorner(u,R.div)}};
_.X.onLeft=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(gQh(this.imageEditor,0),this.updatePositionOfAllCorners(),f.preventDefault())};
_.X.onRight=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(gQh(this.imageEditor,1),this.updatePositionOfAllCorners(),f.preventDefault())};
_.X.onUp=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(gQh(this.imageEditor,2),this.updatePositionOfAllCorners(),f.preventDefault())};
_.X.onDown=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(gQh(this.imageEditor,3),this.updatePositionOfAllCorners(),f.preventDefault())};
_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Vy.Object.defineProperties(w8.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&kYS.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var f,R,u;((R=this.data)==null?0:R.imageRatio)&&((u=this.data)==null?0:u.minImageCropWidth)?f={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:f=lFS;return new HON(f)}}});
w8.prototype.updatePositionOfAllCorners=w8.prototype.updatePositionOfAllCorners;w8.prototype.dataChanged=w8.prototype.dataChanged;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],w8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],w8.prototype,"ytComponentBehavior",void 0);_.B([_.z(_.mJ),_.S("design:type",Object)],w8.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.a4("#canvas"),_.S("design:type",HTMLCanvasElement)],w8.prototype,"canvasElement",void 0);_.B([_.a4("#file-selector"),_.S("design:type",HTMLInputElement)],w8.prototype,"fileSelector",void 0);_.B([_.a4("#top-left-corner"),_.S("design:type",HTMLDivElement)],w8.prototype,"topLeftCorner",void 0);_.B([_.a4("#top-right-corner"),_.S("design:type",HTMLDivElement)],w8.prototype,"topRightCorner",void 0);
_.B([_.a4("#bottom-left-corner"),_.S("design:type",HTMLDivElement)],w8.prototype,"bottomLeftCorner",void 0);_.B([_.a4("#bottom-right-corner"),_.S("design:type",HTMLDivElement)],w8.prototype,"bottomRightCorner",void 0);_.B([_.I(),_.S("design:type",Object)],w8.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],w8.prototype,"errorMessage",void 0);_.B([_.I(),_.S("design:type",Object)],w8.prototype,"isLoading",void 0);_.B([_.I(),_.S("design:type",Object)],w8.prototype,"hideContainer",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.S("design:type",Boolean)],w8.prototype,"isPlaylistThumbnail",void 0);_.B([_.QR("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],w8.prototype,"dataChanged",null);_.B([_.Kf("image-updated"),_.Kf("yt-refit"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],w8.prototype,"updatePositionOfAllCorners",null);
w8=_.B([_.DO({is:"yt-image-editor-renderer",disableElementRegistration:!0})],w8);
_.G(w8,"yt-image-editor-renderer",function(){if(zBm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Jgh===void 0&&(Jgh=document.createElement("template"));var O=Jgh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);zBm=f}f=zBm;return f},{mode:2});var KIe;var qZm;var m5=function(){return _.U.apply(this,arguments)||this};
_.y(m5,_.U);m5.prototype.updateMinutesFromBinding=function(f){this.handleMinutesChanged&&this.handleMinutesChanged(f)};
m5.prototype.updateSecondsFromBinding=function(f){this.handleSecondsChanged&&this.handleSecondsChanged(f)};
m5.prototype.updateDescriptionFromBinding=function(f){this.handleDescriptionChanged&&this.handleDescriptionChanged(f)};
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],m5.prototype,"ytComponentBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],m5.prototype,"data",void 0);_.B([_.I(),_.S("design:type",String)],m5.prototype,"minutes",void 0);_.B([_.I(),_.S("design:type",String)],m5.prototype,"seconds",void 0);_.B([_.I(),_.S("design:type",String)],m5.prototype,"description",void 0);_.B([_.I(),_.S("design:type",Function)],m5.prototype,"handleMinutesChanged",void 0);
_.B([_.I(),_.S("design:type",Function)],m5.prototype,"handleSecondsChanged",void 0);_.B([_.I(),_.S("design:type",Function)],m5.prototype,"handleDescriptionChanged",void 0);_.B([_.I(),_.S("design:type",Number)],m5.prototype,"characterLimit",void 0);_.B([_.I(),_.S("design:type",Number)],m5.prototype,"textNumRows",void 0);m5=_.B([_.DO({is:"yt-report-details-form-content",disableElementRegistration:!0})],m5);
_.G(m5,"yt-report-details-form-content",function(){if(qZm===void 0){var f=document.createElement("template");_.N(f,'\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>');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;KIe===void 0&&(KIe=document.createElement("template"));var O=KIe;u.call(R,O.content.cloneNode(!0),f.content.firstChild);qZm=f}f=qZm;return f},{mode:2});var A8l;var aFX;var Qf=function(){var f=_.U.apply(this,arguments)||this;f.updateMinutesFromBinding=function(R){f.minutes=R.detail.value};
f.updateSecondsFromBinding=function(R){f.seconds=R.detail.value};
f.updateDescriptionFromBinding=function(R){f.description=R.detail.value};
return f};
_.y(Qf,_.U);_.X=Qf.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.X.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"}}}};
_.X.ready=function(){_.b(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.X.onSubmitYtAction=function(f){var R=f.detail;R.actionName==="yt-service-request"&&(R=R.args[1],R.flagEndpoint&&(f.stopPropagation(),this.refireAction(R)))};
_.X.refireAction=function(f){var R={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(R.vss_id=this.vssId);_.hH(this.hostElement,[f,R]);this.submitDisabled=!0};
_.X.dataChanged=function(){var f=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var R=_.Vm();R&&R.getPlayerPromise().then(function(u){var O=u.getOption("cc","track")||u.getOption("captions","track");O&&(f.vssId=O.vss_id);u=u.getCurrentTime();f.minutes=Math.floor(u/60).toString();f.seconds=(Math.floor(u)%60).toString()})};
_.X.updateSubmitButtonState=function(){var f;((f=this.data)==null?0:f.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==="")};
_.X.onYtServiceRequestCompleted=function(){_.OJ(this.hostElement,"yt-close-popup-action")};
_.X.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Vy.Object.defineProperties(Qf.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.textNumRows)||4}}});
Qf.prototype.onYtServiceRequestError=Qf.prototype.onYtServiceRequestError;Qf.prototype.onYtServiceRequestCompleted=Qf.prototype.onYtServiceRequestCompleted;Qf.prototype.updateSubmitButtonState=Qf.prototype.updateSubmitButtonState;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);
_.B([_.I({observer:"dataChanged"}),_.S("design:type",Object)],Qf.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Boolean)],Qf.prototype,"submitDisabled",void 0);_.B([_.I(),_.S("design:type",String)],Qf.prototype,"minutes",void 0);_.B([_.I(),_.S("design:type",String)],Qf.prototype,"seconds",void 0);_.B([_.I(),_.S("design:type",String)],Qf.prototype,"description",void 0);_.B([_.I(),_.S("design:type",String)],Qf.prototype,"vssId",void 0);
_.B([_.I({value:_.Tf("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.S("design:type",Boolean)],Qf.prototype,"isMusic",void 0);_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],Qf.prototype,"characterLimit",null);_.B([_.T("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],Qf.prototype,"textNumRows",null);
_.B([_.QR("minutes","seconds","description","submitDisabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qf.prototype,"updateSubmitButtonState",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qf.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qf.prototype,"onYtServiceRequestError",null);Qf=_.B([_.DO({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Qf);
_.G(Qf,"yt-report-details-form-renderer",function(){if(aFX===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;A8l===void 0&&(A8l=document.createElement("template"));var O=A8l;u.call(R,O.content.cloneNode(!0),f.content.firstChild);aFX=f}f=aFX;return f});var FIe;var wnm;var mFN;var QMl;var WA=function(){return _.U.apply(this,arguments)||this};
_.y(WA,_.U);
WA.prototype.onCheckedChanged_=function(){if(this.data){var f=_.b(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.OJ(this.hostElement,"yt-additional-detail-checkbox-update",[f]):this.data.identifier==="yt-hide-user-checkbox"?_.OJ(this.hostElement,"yt-hide-user-checkbox-update",[f]):f&&this.data.enableCommand?_.OJ(this.hostElement,"yt-modify-report-form-command",[_.t(this.data.enableCommand,Df2)]):!f&&this.data.disableCommand&&_.OJ(this.hostElement,
"yt-modify-report-form-command",[_.t(this.data.enableCommand,Df2)])}};
WA.prototype.onLabelTap_=function(f){f.target.tagName!="A"&&(_.b(this.hostElement).querySelector("#checkbox").checked=!_.b(this.hostElement).querySelector("#checkbox").checked)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],WA.prototype,"data",void 0);WA=_.B([_.DO({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],WA);
_.G(WA,"yt-boolean-form-field-v2-renderer",function(){if(QMl===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;mFN===void 0&&(mFN=document.createElement("template"));var O=mFN;u.call(R,O.content.cloneNode(!0),f.content.firstChild);QMl=f}f=QMl;return f});var Ej=function(){var f=_.U.apply(this,arguments)||this;f.canShowAdditionalDetailCheckbox=!1;f.canShowCheckbox=!1;f.keepDropdownFocusedAfterSelection=!0;return f};
_.y(Ej,_.U);Ej.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}}}}};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Ej.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],Ej.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.I(),_.S("design:type",Object)],Ej.prototype,"canShowCheckbox",void 0);_.B([_.I(),_.S("design:type",Object)],Ej.prototype,"keepDropdownFocusedAfterSelection",void 0);
Ej=_.B([_.DO({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Ej);
_.G(Ej,"yt-report-form-modal-content",function(){if(wnm===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;FIe===void 0&&(FIe=document.createElement("template"));var O=FIe;u.call(R,O.content.cloneNode(!0),f.content.firstChild);wnm=f}f=wnm;return f},{mode:2});var WIz;var EAw;var tQ=function(){var f=_.U.apply(this,arguments)||this;f.submitting=!1;f.submitButtonDisabled=!0;f.command=null;f.canShowCheckbox=!1;f.canShowAdditionalDetailCheckbox=!1;f.canShowNextButton=!1;f.additionalDetailCheckboxChecked=!1;f.refitJob=0;f.keepDropdownFocusedAfterSelection=!0;f.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 f};
_.y(tQ,_.U);_.X=tQ.prototype;_.X.created=function(){this.refitJob=0};
_.X.attached=function(){this.JSC$18595_scroller&&(this.JSC$18595_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18595_scroller.attached&&typeof this.JSC$18595_scroller.attached==="function"&&this.JSC$18595_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(f){f&&(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,f.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),f.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.X.onYtPopupOpened=function(){var f=_.Vm();f&&f.getPlayerPromise().then(function(R){R.pauseVideo()})};
_.X.onYtNavigate=function(f){_.t(f.detail.endpoint,_.ydI)&&(f.stopPropagation(),this.hideReportForm=!0)};
_.X.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.X.onYtServiceRequestCompleted=function(f,R){var u=R.actions;if(u){if(u.length===1&&_.t(u[0],_.kE)){var O;u=((O=_.t(u[0],_.kE))==null?void 0:O.commands)||[]}O=0;for(var c=u.length;O<c;O++)_.t(u[O],_.dS)&&(f.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(u[O]))}if(R.data&&(f=this.get("feedbackResponses",R.data)))for(R=0;R<f.length;R++)if(f[R].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.X.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.X._onDescendantIronResize=function(f){f.stopPropagation();return!1};
_.X.handleReportFormEndpointUpdateAction=function(f){if(f.submitEndpoint){var R=this.command=f.submitEndpoint;R=_.t(R,_.kDt);if(R==null?0:R.additionalDetailCheckboxChecked)R.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else f.submitNavigationEndpoint?(this.command=f.submitNavigationEndpoint,this.toggleSubmitButton(!1)):f.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:f.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;f.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",f));this.refit()};
_.X.handleConfirmDialogCloseAction=function(f){f.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.X.submitButtonDisabledChanged=function(){var f=this.hostElement.parentElement;f&&f.invalidateTabbables&&f.invalidateTabbables()};
_.X.handleModifyReportFormCommand=function(f){f=this.get("action",f);f==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:f==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:f==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:f==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:f==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:f==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.X.updateDialogStyling=function(){var f,R,u,O,c,h=((c=(f=this.data)==null?void 0:(R=f.optionsSupportedRenderers)==null?void 0:(u=R.optionsRenderer)==null?void 0:(O=u.items)==null?void 0:O.length)!=null?c:0)<=2?0:240;_.ZO(this.hostElement,{"--yt-report-form-modal-renderer-min-width":h+"px"})};
_.X.toggleSubmitButton=function(f){this.submitButtonDisabled=!f;this.submitButtonDisabled=f};
_.X.computeSubmitButtonData=function(f,R){var u={};_.t(R,_.ydI)?u.navigationEndpoint=R:u.command=R||void 0;f&&f.buttonRenderer&&_.dq.extend(u,f.buttonRenderer);return u};
_.X.computeNextButtonData=function(f,R){var u={};if(!f||!f.buttonRenderer)return u;_.dq.extend(u,f.buttonRenderer);if(!R)return u;if(_.t(R,_.ydI))u.navigationEndpoint=SUw(R);else if(u.command=SUw(R),f=_.t(u.command,_.kDt))f.legalCheckboxChecked=!0;return u};
_.X.computeShowNextButton=function(f,R,u){return!!f&&R&&u};
_.X.refit=function(){var f=this;this.refitJob||(this.refitJob=_.JA.addLowPriorityJob(function(){_.ul(f.hostElement,"yt-refit");f.refitJob=0}))};
_.X.handleAdditionalDetailCheckboxUpdateAction=function(f){this.additionalDetailCheckboxChecked=f;_.t(this.command,_.kDt).additionalDetailCheckboxChecked=f};
_.Vy.Object.defineProperties(tQ,{template:{configurable:!0,enumerable:!0,get:function(){if(EAw===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;WIz===void 0&&(WIz=document.createElement("template"));var O=WIz;u.call(R,O.content.cloneNode(!0),f.content.firstChild);EAw=f}f=EAw;return f}}});
tQ.prototype.onYtServiceRequestError=tQ.prototype.onYtServiceRequestError;tQ.prototype.onYtServiceRequestCompleted=tQ.prototype.onYtServiceRequestCompleted;tQ.prototype.onYtServiceRequestSent=tQ.prototype.onYtServiceRequestSent;tQ.prototype.onYtNavigate=tQ.prototype.onYtNavigate;tQ.prototype.onYtPopupOpened=tQ.prototype.onYtPopupOpened;_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],tQ.prototype,"openPopupBehavior",void 0);
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],tQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],tQ.prototype,"eventForwardingBehavior",void 0);_.B([_.z(_.Lu),_.S("design:type",Object)],tQ.prototype,"ironResizableBehavior",void 0);_.B([_.I({observer:"dataChanged"}),_.S("design:type",Object)],tQ.prototype,"data",void 0);
_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"submitting",void 0);_.B([_.I({observer:"submitButtonDisabledChanged"}),_.S("design:type",Object)],tQ.prototype,"submitButtonDisabled",void 0);_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"command",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],tQ.prototype,"hideReportForm",void 0);_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"canShowCheckbox",void 0);
_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"canShowNextButton",void 0);_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"additionalDetailCheckboxChecked",void 0);_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"refitJob",void 0);_.B([_.I(),_.S("design:type",Object)],tQ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.B([_.a4("#scroller"),_.S("design:type",Object)],tQ.prototype,"JSC$18595_scroller",void 0);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tQ.prototype,"onYtPopupOpened",null);_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],tQ.prototype,"onYtNavigate",null);
_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],tQ.prototype,"onYtServiceRequestSent",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],tQ.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],tQ.prototype,"onYtServiceRequestError",null);tQ=_.B([_.DO({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],tQ);var tpX;var Cal;var Cb=function(){return _.U.apply(this,arguments)||this};
_.y(Cb,_.U);_.X=Cb.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.X.onVisible=function(){if(_.E("web_ephemeral_actions_focus")){var f,R;(R=_.vh().resolve(_.Y8(_.kL)))==null||R.enqueue({label:_.$Z((f=this.data)==null?void 0:f.messageTitle),elementToFocus:this.hostElement})}};
_.X.onThumbnailLoaded=function(){_.ul(this.hostElement,"yt-refit")};
_.X.onDismissTap=function(){_.OJ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.X.computeAlternateIcon=function(f){return f?f==="BACKSTAGE_ARTWORK"?"backstage:artwork":f:null};
_.X.computeFontFamily=function(f){return f==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.X.computeBackgroundStyle=function(f,R){if(f=this.computeBackgroundImage(f,R))if(f=_.fL(f.thumbnails))return'background-image: url("'+f+'");'};
_.X.computeHasFullHeightImage=function(f){return!(!(f&&f.thumbnails&&f.thumbnails.length>0)||this.modern)};
_.X.isModernStyle=function(f){return f.style==="STYLE_MODERN"};
_.X.computeIcon=function(f,R){if(f&&f.icon)return R?f.iconDark:f.icon};
_.X.computeBackgroundImage=function(f,R){if(f&&f.backgroundImage)return R?f.backgroundImageDark:f.backgroundImage};
_.X.computeLogo=function(f,R){if(f&&f.logo)return R?f.logoDark:f.logo};
_.X.computeShouldShowModernIcon=function(f,R){return f&&!!R};
_.X.getLogoContainerClassName=function(f){return this.logoWithPadding(f)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.X.getLogoImageId=function(f){return this.logoWithPadding(f)?"mealbar-logo-with-padding":"mealbar-logo"};
_.X.logoWithPadding=function(f){var R,u,O;return(f=(R=this.computeLogo(f,this.isDarkTheme))==null?void 0:(u=R.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&f%31===0?!0:!1};
Cb.prototype.onThumbnailLoaded=Cb.prototype.onThumbnailLoaded;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.B([_.I({}),_.S("design:type",Object)],Cb.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.S("design:type",Boolean)],Cb.prototype,"modern",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Cb.prototype,"isDarkTheme",void 0);
_.B([_.I({computed:"computeIcon(data, isDarkTheme)"}),_.S("design:type",Object)],Cb.prototype,"icon",void 0);_.B([_.I({computed:"computeLogo(data, isDarkTheme)"}),_.S("design:type",Object)],Cb.prototype,"logo",void 0);_.B([_.I({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.S("design:type",Object)],Cb.prototype,"backgroundStyle",void 0);_.B([_.I({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.S("design:type",Object)],Cb.prototype,"alternateIcon",void 0);
_.B([_.I({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.S("design:type",Boolean)],Cb.prototype,"hasFullHeightImage",void 0);_.B([_.I({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.S("design:type",Boolean)],Cb.prototype,"useYoutubeSans",void 0);_.B([_.I({computed:"computeShouldShowModernIcon(modern, icon)"}),_.S("design:type",Boolean)],Cb.prototype,"shouldShowModernIcon",void 0);
_.B([_.Kf("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cb.prototype,"onThumbnailLoaded",null);Cb=_.B([_.DO({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Cb);
_.G(Cb,"yt-mealbar-promo-renderer",function(){if(Cal===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;tpX===void 0&&(tpX=document.createElement("template"));var O=tpX;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Cal=f}f=Cal;return f},{mode:2});var y8h;var dFS;var yf=function(){return _.U.apply(this,arguments)||this};
_.y(yf,_.U);_.X=yf.prototype;_.X.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]]"}}}}}};
_.X.computeHasButtons_=function(f){return!(!f.dismissButton&&!f.acceptButton)};
_.X.computeStyle_=function(f){return f||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.X.observeImpressionEndpoints_=function(){var f=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(R){R.clickTrackingParams&&delete R.clickTrackingParams;_.hH(f.hostElement,[R])})};
_.X.onTap_=function(){_.OJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
yf.prototype.observeImpressionEndpoints_=yf.prototype.observeImpressionEndpoints_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],yf.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],yf.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],yf.prototype,"positionType",void 0);_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.S("design:type",Boolean)],yf.prototype,"hasButtons_",void 0);_.B([_.I({value:function(){return this.onTap_.bind(this)}}),
_.S("design:type",Function)],yf.prototype,"boundOnTap_",void 0);_.B([_.I({value:{style:"mono-inverse"}}),_.S("design:type",Object)],yf.prototype,"buttonOverride",void 0);_.B([_.qM("data.promoConfig.impressionEndpoints"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yf.prototype,"observeImpressionEndpoints_",null);yf=_.B([_.DO({is:"yt-tooltip-renderer",disableElementRegistration:!0})],yf);
_.G(yf,"yt-tooltip-renderer",function(){if(dFS===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;y8h===void 0&&(y8h=document.createElement("template"));var O=y8h;u.call(R,O.content.cloneNode(!0),f.content.firstChild);dFS=f}f=dFS;return f},{mode:2});var Nr5;var LIw;var byt={},pnK=(byt.WEB_REMIX="music.youtube.com",byt),d8=function(){var f=_.U.apply(this,arguments)||this;f.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return f};
_.y(d8,_.U);_.X=d8.prototype;_.X.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.created=function(){this.embedHost_=pnK[_.Tf("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.X.ready=function(){_.b(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.X.computeEmbedCode_=function(f,R,u,O,c){if(!f)return"";var h=f.videoId,l=f.fullListId,K=[];f.attributionId&&K.push("si="+f.attributionId);O||K.push("controls=0");u&&Number(R)>0&&K.push("start="+R);l&&(h="videoseries",K.push("list="+l));u="https://"+(c?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+h;f.clipId&&(K.push("clip="+f.clipId),K.push("clipt="+f.clipTiming));R=K.length>0?u+"?"+K.join("&amp;"):u;f.encryptedEmbedConfig&&K.push("embed_config="+JSON.stringify({enc:f.encryptedEmbedConfig}));
K=K.length>0?u+"?"+K.join("&amp;"):u;_.E("web_sharing_embed_preview_killswitch")?_.b(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(K,f.previewWidth||854,f.previewHeight||480):(_.Lp(this.videoPreviewContainer),_.b(this.videoPreviewContainer).appendChild(this.buildIframeElement(K)));return this.getEmbedCode_(R,f.width||560,f.height||315)};
_.X.buildIframeElement=function(f){var R=document.createElement("iframe"),u,O;R.width=""+((O=(u=this.data)==null?void 0:u.previewWidth)!=null?O:854);var c,h;R.height=""+((h=(c=this.data)==null?void 0:c.previewHeight)!=null?h:480);_.E_t(R,2,f);R.title="YouTube video player";R.frameBorder="0";R.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";R.referrerPolicy="strict-origin-when-cross-origin";R.allowFullscreen=!0;return R};
_.X.computeIsSquareAspectRatio_=function(f){return f.previewHeight&&f.previewWidth?f.previewHeight==f.previewWidth:!1};
_.X.computeShowEmbedOptions_=function(f){return!!f.enablePrivacyModeOptionLabel||!!f.showPlayerControlsOptionLabel};
_.X.getEmbedCode_=function(f,R,u){return'<iframe width="'+R+'" height="'+u+'" src="'+f+'" 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>'};
_.X.handleSignalActionCopyShareEmbedUrl_=function(){_.b(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.X.handleSetTimestamp_=function(f){this.startAtTimeStamp_=(this.startAtChecked_=f.isSet)?f.timestamp:0};
_.X.closePanel_=function(){_.OJ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.X.onEmbedCode_=function(){_.b(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.X.onYtPopupClosed_=function(){_.Lp(_.b(this.hostElement).querySelector("#video-preview"))};
_.X.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.t(this.data.actionButtons[0],_.z9)&&this.ytRendererBehavior.logExplicitClick(_.t(this.data.actionButtons[0],_.z9))};
d8.prototype.onYtPopupClosed_=d8.prototype.onYtPopupClosed_;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],d8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],d8.prototype,"data",void 0);
_.B([_.I({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.S("design:type",String)],d8.prototype,"embedCode_",void 0);_.B([_.I({value:!0}),_.S("design:type",Boolean)],d8.prototype,"isPlayerControlsOptionChecked_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],d8.prototype,"isPrivacyModeOptionChecked_",void 0);_.B([_.I({value:!1,notify:!0}),_.S("design:type",Boolean)],d8.prototype,"startAtChecked_",void 0);
_.B([_.I({value:0}),_.S("design:type",Number)],d8.prototype,"startAtTimeStamp_",void 0);_.B([_.I({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],d8.prototype,"isSquareAspectRatio_",void 0);_.B([_.a4("#video-preview"),_.S("design:type",HTMLElement)],d8.prototype,"videoPreviewContainer",void 0);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],d8.prototype,"onYtPopupClosed_",null);
d8=_.B([_.DO({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],d8);
_.G(d8,"yt-sharing-embed-renderer",function(){if(LIw===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Nr5===void 0&&(Nr5=document.createElement("template"));var O=Nr5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);LIw=f}f=LIw;return f},{mode:2});var jM5={};
jM5.YtUnlimitedFamilyInterstitialBehavior=[_.Ae.YtOpenPopupBehavior,_.fq.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(f){f=_.$Xk(_.gY(f),"yt-button-renderer");return f?f.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(f){this.dialogHistory_.push(f)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var f=this.popFromHistory();if(f){var R={openPopupAction:{popupType:"DIALOG",popup:{}}};R.openPopupAction.popup[f.renderer]=f.data;this.showingPreviousDialog_=!0;this.openPopup(R)}},
handleOpenPopupAction_:function(f){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var R=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(O){return!!f.openPopupAction.popup[O]}),u=this.getElementName_();
R&&this.data&&(this.pushToHistory({renderer:u,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(f){if(f=_.t(f,OuN))this.loading=!0,_.OJ(this.hostElement,"yt-open-create-family-dialog",[f,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var f=this.hostElement.nodeName.split("-").slice(1).map(function(R){return""+R[0].toUpperCase()+R.slice(1).toLowerCase()}).join("");
return f[0].toLowerCase()+f.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var DFK;var J8S;var Nz=function(){return _.U.apply(this,arguments)||this};
_.y(Nz,_.U);_.X=Nz.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.OJ(this.hostElement,"yt-register-create-family-dialog");_.b(this.hostElement).querySelector("#thumbnail").onShow()};
_.X.fireOnCloseCommand_=function(){var f;((f=this.data)==null?0:f.onCloseCommand)&&_.ZW(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.X.onYtServiceRequestSent_=function(f,R){R&&R.endpoint&&_.t(R.endpoint,_.AH)||(this.loading=!0)};
_.X.onYtServiceRequestCompleted_=function(){var f=this.hostElement.parentElement;f.close&&f.close();this.loading=!1};
_.X.openPopupHandler_=function(f){if(f.detail==this){var R;((R=this.data)==null?0:R.onOpenCommands)&&_.ZW(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.X.closePopupHandler_=function(f,R){this.fireOnCloseCommand_();if(R&&R.canceled===!0||R&&R.canceled===!1&&R.confirmed===!1){var u;((u=this.data)==null?0:u.onDismissCommands)&&_.ZW(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.X.dataChanged_=function(){this.loading=!1};
Nz.prototype.dataChanged_=Nz.prototype.dataChanged_;Nz.prototype.closePopupHandler_=Nz.prototype.closePopupHandler_;Nz.prototype.openPopupHandler_=Nz.prototype.openPopupHandler_;Nz.prototype.onYtServiceRequestCompleted_=Nz.prototype.onYtServiceRequestCompleted_;Nz.prototype.onYtServiceRequestSent_=Nz.prototype.onYtServiceRequestSent_;_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],Nz.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(jM5.YtUnlimitedFamilyInterstitialBehavior),_.S("design:type",Object)],Nz.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Nz.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Nz.prototype,"loading",void 0);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],Nz.prototype,"onYtServiceRequestSent_",null);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],Nz.prototype,"onYtServiceRequestCompleted_",null);
_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Nz.prototype,"openPopupHandler_",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Nz.prototype,"closePopupHandler_",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nz.prototype,"dataChanged_",null);
Nz=_.B([_.DO({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Nz);
_.G(Nz,"yt-unlimited-family-message-interstitial-renderer",function(){if(J8S===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;DFK===void 0&&(DFK=document.createElement("template"));var O=DFK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);J8S=f}f=J8S;return f},{mode:2});var zye;var Trh;var Lb=function(){return _.U.apply(this,arguments)||this};
_.y(Lb,_.U);Lb.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"}}}};
Lb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.b(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(f){f.onShow()});
_.b(this.hostElement).querySelector("#main-thumbnail").onShow()};
Lb.prototype.onButtonTap_=function(f){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(f)};
Lb.prototype.computeMainThumbnailWidth_=function(f){return f&&f.length!==0?72:96};
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.B([_.z(jM5.YtUnlimitedFamilyInterstitialBehavior),_.S("design:type",Object)],Lb.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Lb.prototype,"data",void 0);
_.B([_.I({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.S("design:type",Number)],Lb.prototype,"mainThumbnailWidth_",void 0);_.B([_.I({value:function(){return this.onButtonTap_.bind(this)}}),
_.S("design:type",Function)],Lb.prototype,"boundButtonTap_",void 0);Lb=_.B([_.DO({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Lb);
_.G(Lb,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Trh===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;zye===void 0&&(zye=document.createElement("template"));var O=zye;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Trh=f}f=Trh;return f},{mode:2});var Hyl;var IFh;var bD=function(){var f=_.U.apply(this,arguments)||this;f.sliderAriaValueText_=null;f.selectedIndex_=0;f.messages={PAUSE_SLIDER:_.Fa("PAUSE_SLIDER",void 0,"Pause Duration")};return f};
_.y(bD,_.U);_.X=bD.prototype;_.X.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_]]"}}}}}};
_.X.onPopupOpened_=function(f){f.detail==this&&_.E("enable_premium_voluntary_pause")&&(_.OJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.setDialogData=function(f){this.data=f;this.resetSlider_()};
_.X.dataChanged_=function(){this.data&&this.resetSlider_()};
_.X.onSubmitTap_=function(){if(this.data.confirmCommand){var f=this.data.confirmCommand;_.t(f,_.diY)&&_.hH(this.hostElement,[f,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.X.onExitButtonTap_=function(){_.OJ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.X.closePopupHandler_=function(f,R){(R&&R.canceled===!0||R.canceled===!1&&R.confirmed===!1)&&this.handleOnDismissCommands_()};
_.X.onSliderChange_=function(){this.selectedIndex_=_.b(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.X.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.X.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.X.resetSlider_=function(){if(this.data){var f=this.data.defaultEndOptionIndex||0,R=_.b(this.hostElement).querySelector("#id-pause-slider");if(R.immediateValue<f)for(;R.immediateValue!=f;)R.increment();else if(f<R.immediateValue)for(;R.immediateValue!=f;)R.decrement();this.selectedIndex_=f;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.X.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ZW(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.X.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ZW(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestSent=function(){this.loading=!0};
_.X.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
bD.prototype.onYtServiceRequestCompleted=bD.prototype.onYtServiceRequestCompleted;bD.prototype.onYtServiceRequestSent=bD.prototype.onYtServiceRequestSent;bD.prototype.closePopupHandler_=bD.prototype.closePopupHandler_;bD.prototype.dataChanged_=bD.prototype.dataChanged_;bD.prototype.onPopupOpened_=bD.prototype.onPopupOpened_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],bD.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],bD.prototype,"loading",void 0);_.B([_.I(),_.S("design:type",Number)],bD.prototype,"selectIndexMax_",void 0);_.B([_.I(),_.S("design:type",Object)],bD.prototype,"selectedData_",void 0);
_.B([_.I(),_.S("design:type",Object)],bD.prototype,"sliderAriaValueText_",void 0);_.B([_.I({value:function(){return this.onSubmitTap_.bind(this)}}),
_.S("design:type",Function)],bD.prototype,"onButtonTap_",void 0);_.B([_.I({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.S("design:type",Function)],bD.prototype,"onSecondaryTap_",void 0);_.B([_.I(),_.S("design:type",Object)],bD.prototype,"messages",void 0);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bD.prototype,"onPopupOpened_",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bD.prototype,"dataChanged_",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bD.prototype,"closePopupHandler_",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],bD.prototype,"onYtServiceRequestSent",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],bD.prototype,"onYtServiceRequestCompleted",null);bD=_.B([_.DO({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],bD);
_.G(bD,"yt-unplugged-pause-membership-dialog-renderer",function(){if(IFh===void 0){var f=document.createElement("template");_.N(f,'\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>');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Hyl===void 0&&(Hyl=document.createElement("template"));var O=Hyl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);IFh=f}f=IFh;return f},{mode:2});var Mpw;var PaK;var pb=function(){return _.U.apply(this,arguments)||this};
_.y(pb,_.U);pb.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.DB("vcBalanceRenderer")}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],pb.prototype,"data",void 0);pb=_.B([_.DO({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],pb);
_.G(pb,"yt-vc-offer-layout-header-renderer",function(){if(PaK===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;Mpw===void 0&&(Mpw=document.createElement("template"));var O=Mpw;u.call(R,O.content.cloneNode(!0),f.content.firstChild);PaK=f}f=PaK;return f},{mode:2});var UF5;var eyS;var GYe;var Br5;var je=function(){return _.U.apply(this,arguments)||this};
_.y(je,_.U);je.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Vy.Object.defineProperties(je.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)}}});
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.QqF.YtTappableItemBehavior),_.S("design:type",Object)],je.prototype,"ytTappableItemBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],je.prototype,"data",void 0);
_.B([_.I({reflectToAttribute:!0}),_.T("data.accessibilityText"),_.S("design:type",String),_.S("design:paramtypes",[])],je.prototype,"ariaLabel",null);_.B([_.I({reflectToAttribute:!0}),_.T("data.style"),_.S("design:type",String),_.S("design:paramtypes",[])],je.prototype,"vcOfferStyle",null);_.B([_.T("data.style","data.titleText"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],je.prototype,"showTitleText",null);je=_.B([_.DO({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],je);
_.G(je,"yt-vc-offer-renderer",function(){if(Br5===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;GYe===void 0&&(GYe=document.createElement("template"));var O=GYe;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Br5=f}f=Br5;return f},{mode:2});var Dh=function(){return _.U.apply(this,arguments)||this};
_.y(Dh,_.U);Dh.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Dh.prototype,"data",void 0);Dh=_.B([_.DO({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Dh);
_.G(Dh,"yt-vc-offer-layout-renderer",function(){if(eyS===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;UF5===void 0&&(UF5=document.createElement("template"));var O=UF5;u.call(R,O.content.cloneNode(!0),f.content.firstChild);eyS=f}f=eyS;return f},{mode:2});var oAm;var xFK;var SZh;var $Fm;var JQ=function(){return _.U.apply(this,arguments)||this};
_.y(JQ,_.U);JQ.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}}}}}};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],JQ.prototype,"data",void 0);JQ=_.B([_.DO({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],JQ);
_.G(JQ,"yt-ypc-offers-modal-top-bar-renderer",function(){if($Fm===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;SZh===void 0&&(SZh=document.createElement("template"));var O=SZh;u.call(R,O.content.cloneNode(!0),f.content.firstChild);$Fm=f}f=$Fm;return f},{mode:2});var zi=function(){return _.U.apply(this,arguments)||this};
_.y(zi,_.U);zi.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"}}}}};
zi.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
zi.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var f=this.scrollable;f.attached&&typeof f.attached==="function"&&f.attached()};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.B([_.a4("#scrollable"),_.S("design:type",Object)],zi.prototype,"scrollable",void 0);_.B([_.I(),_.S("design:type",Object)],zi.prototype,"data",void 0);zi=_.B([_.DO({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],zi);
_.G(zi,"yt-ypc-offers-modal-renderer",function(){if(xFK===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;oAm===void 0&&(oAm=document.createElement("template"));var O=oAm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);xFK=f}f=xFK;return f},{mode:2});var gAa;var sMm;var Ti=function(){return _.U.apply(this,arguments)||this};
_.y(Ti,_.U);_.X=Ti.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.b(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.X.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.OJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.X.onYtPopupOpened_=function(f,R){(R==null?void 0:R.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ZW(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.X.onYtPopupClosed_=function(f,R){this.continueButtonTapped||R&&(R.canceled===!0||R.canceled===!1&&R.confirmed===!1)&&this.data.onDismissCommands&&_.ZW(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestError_=function(f){this.set("showSpinner",!1);_.f9(this.hostElement,f.detail.error.message)};
_.X.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.E("enable_ypc_spinners")?_.OJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Ti.prototype.onYtServiceRequestError_=Ti.prototype.onYtServiceRequestError_;Ti.prototype.onYtPopupClosed_=Ti.prototype.onYtPopupClosed_;Ti.prototype.onYtPopupOpened_=Ti.prototype.onYtPopupOpened_;Ti.prototype.onYtServiceRequestCompleted_=Ti.prototype.onYtServiceRequestCompleted_;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.I(),_.S("design:type",Object)],Ti.prototype,"data",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Ti.prototype,"showSpinner",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],Ti.prototype,"continueButtonTapped",void 0);_.B([_.I({value:function(){return this.onContinueTapped_.bind(this)}}),
_.S("design:type",Function)],Ti.prototype,"bindOnContinueTapped_",void 0);_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ti.prototype,"onYtServiceRequestCompleted_",null);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Ti.prototype,"onYtPopupOpened_",null);
_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Ti.prototype,"onYtPopupClosed_",null);_.B([_.Kf("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ti.prototype,"onYtServiceRequestError_",null);Ti=_.B([_.DO({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Ti);
_.G(Ti,"yt-ypc-upgrade-dialog-renderer",function(){if(sMm===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;gAa===void 0&&(gAa=document.createElement("template"));var O=gAa;u.call(R,O.content.cloneNode(!0),f.content.firstChild);sMm=f}f=sMm;return f},{mode:2});var nAK;var Vpw;var HA=function(){return _.U.apply(this,arguments)||this};
_.y(HA,_.U);HA.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
HA.prototype.computeHasButtons_=function(f){return!(!f.dismissButton&&!f.confirmButton)};
HA.prototype.computeStyle_=function(f){return f||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],HA.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],HA.prototype,"data",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],HA.prototype,"positionType",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.S("design:type",Boolean)],HA.prototype,"hasButtons_",void 0);_.B([_.I({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.S("design:type",Boolean)],HA.prototype,"style_",void 0);HA=_.B([_.DO({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],HA);
_.G(HA,"yt-bubble-hint-renderer",function(){if(Vpw===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;nAK===void 0&&(nAK=document.createElement("template"));var O=nAK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Vpw=f}f=Vpw;return f},{mode:2});var YZe;var vAS;var IQ=function(){var f=_.YV.apply(this,arguments)||this;f.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return f};
_.y(IQ,_.YV);_.X=IQ.prototype;_.X.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.X.attached=function(){var f=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){f.$.thumbnail.onShow();f.$["header-image"].onShow()})};
_.X.handleCheckBoxUpdateAction_=function(f){this.canShowCheckboxEnabledConfirmButton=f};
_.X.computeUseOverlayForSpinner_=function(f,R){return!!f&&R};
_.X.computeShowSpinner_=function(f,R){return f||!!R};
_.X.fireOnCloseActions_=function(){var f,R=_.Z(((f=this.data)==null?void 0:f.onClosedActions)||[]);for(f=R.next();!f.done;f=R.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.X.fireOnOpenCommands_=function(f){var R,u=(R=this.data)==null?void 0:R.onOpenCommands;if(u)for(f.stopImmediatePropagation(),f=_.Z(u),R=f.next();!R.done;R=f.next())this.ytRendererBehavior.resolveCommand(R.value)};
_.X.fireOnDismissCommands_=function(f){var R,u=(R=this.data)==null?void 0:R.onDismissCommands;if(u)for(f.stopImmediatePropagation(),f=_.Z(u),R=f.next();!R.done;R=f.next())this.ytRendererBehavior.resolveCommand(R.value)};
_.X.openPopupHandler_=function(f){f.detail==this&&this.fireOnOpenCommands_(f)};
_.X.closePopupHandler_=function(f,R){_.c_(this,"yt-confirm-dialog-close-action",[R]);this.fireOnCloseActions_();(R&&R.canceled===!0||R&&R.canceled===!1&&R.confirmed===!1)&&this.fireOnDismissCommands_(f)};
_.X.onHeaderImageChanged_=function(){var f;((f=this.data)==null?0:f.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.X.computeHasHeaderImageWidth_=function(f){return f!=void 0};
_.X.computeHasLoadingMessage=function(f){return!!f};
_.X.onHeaderImageWidthChanged_=function(){var f,R=(f=this.data)==null?void 0:f.headerImageWidth;if(R){if(f=1.25*R*2+R,this.$.main.style.width=f+"px",R=this.$.scroller.firstElementChild)R.style.minWidth=f+"px"}else this.$.main.style.width="100%"};
_.X.onThumbnailChanged_=function(){var f;((f=this.data)==null?0:f.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")};
_.X.onYtNavigate_=function(f){f=_.gY(f);f instanceof Node&&_.OU(this.$["confirm-button"]).contains(f)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.X.computePrimaryIsCancel_=function(f){return f};
_.X.computeIsCancelButtonHidden_=function(f){return f.skipCancelButton||!f.cancelButton};
_.X.computeIsCheckboxHidden_=function(f){return!f.checkbox};
_.X.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.X.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.X.onYtServiceRequestCompleted_=function(){var f;((f=this.data)==null?0:f.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Vy.Object.defineProperties(IQ,{template:{configurable:!0,enumerable:!0,get:function(){if(vAS===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;YZe===void 0&&(YZe=document.createElement("template"));var O=YZe;u.call(R,O.content.cloneNode(!0),f.content.firstChild);vAS=f}f=vAS;return f}}});
IQ.prototype.onYtServiceRequestCompleted_=IQ.prototype.onYtServiceRequestCompleted_;IQ.prototype.onYtServiceRequestSent_=IQ.prototype.onYtServiceRequestSent_;IQ.prototype.onThumbnailLoaded_=IQ.prototype.onThumbnailLoaded_;IQ.prototype.onYtNavigate_=IQ.prototype.onYtNavigate_;IQ.prototype.onThumbnailChanged_=IQ.prototype.onThumbnailChanged_;IQ.prototype.onHeaderImageWidthChanged_=IQ.prototype.onHeaderImageWidthChanged_;IQ.prototype.onHeaderImageChanged_=IQ.prototype.onHeaderImageChanged_;
IQ.prototype.closePopupHandler_=IQ.prototype.closePopupHandler_;IQ.prototype.openPopupHandler_=IQ.prototype.openPopupHandler_;_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],IQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);
_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],IQ.prototype,"ytEventForwardingBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],IQ.prototype,"data",void 0);_.B([_.I({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.S("design:type",Boolean)],IQ.prototype,"primaryIsCancel",void 0);_.B([_.I({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.S("design:type",Boolean)],IQ.prototype,"isCancelButtonHidden",void 0);
_.B([_.I({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.S("design:type",Boolean)],IQ.prototype,"isCheckboxHidden",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],IQ.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.B([_.I({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.S("design:type",Boolean)],IQ.prototype,"useOverlayForSpinner_",void 0);
_.B([_.I({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.S("design:type",Boolean)],IQ.prototype,"showSpinner_",void 0);_.B([_.I({value:!1}),_.S("design:type",Boolean)],IQ.prototype,"isActionInProgress_",void 0);_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.S("design:type",Boolean)],IQ.prototype,"hasHeaderImageWidth_",void 0);
_.B([_.I({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.S("design:type",Boolean)],IQ.prototype,"hasLoadingMessage",void 0);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],IQ.prototype,"openPopupHandler_",null);_.B([_.Kf("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],IQ.prototype,"closePopupHandler_",null);
_.B([_.qM("data.headerImage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IQ.prototype,"onHeaderImageChanged_",null);_.B([_.qM("data.headerImageWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IQ.prototype,"onHeaderImageWidthChanged_",null);_.B([_.qM("data.thumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IQ.prototype,"onThumbnailChanged_",null);
_.B([_.Kf("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],IQ.prototype,"onYtNavigate_",null);_.B([_.Kf("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IQ.prototype,"onThumbnailLoaded_",null);_.B([_.Kf("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.IX]),_.S("design:returntype")],IQ.prototype,"onYtServiceRequestSent_",null);
_.B([_.Kf("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.S6]),_.S("design:returntype")],IQ.prototype,"onYtServiceRequestCompleted_",null);IQ=_.B([_.DO({is:"yt-confirm-dialog-renderer",noInjection:!0})],IQ);var iya;var r8m;var Mz=function(){return _.U.apply(this,arguments)||this};
_.y(Mz,_.U);Mz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.b(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Mz.prototype.computeConfirmButton_=function(f){var R={text:f.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};f.confirmNavigationEndpoint?R.navigationEndpoint=f.confirmNavigationEndpoint:f.confirmServiceEndpoint&&(R.serviceEndpoint=f.confirmServiceEndpoint);return R};
Mz.prototype.computeShowTitle_=function(f){return!(f==null||!f.title)};
_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Mz.prototype,"data",void 0);_.B([_.I({computed:"computeShowTitle_(data)"}),_.S("design:type",Boolean)],Mz.prototype,"showTitle",void 0);Mz=_.B([_.DO({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Mz);
_.G(Mz,"yt-fancy-dismissible-dialog-renderer",function(){if(r8m===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;iya===void 0&&(iya=document.createElement("template"));var O=iya;u.call(R,O.content.cloneNode(!0),f.content.firstChild);r8m=f}f=r8m;return f});var fIm;var Rr9;var PA=function(){var f=_.U.apply(this,arguments)||this;f.spinnerActive=!1;return f};
_.y(PA,_.U);PA.prototype.created=function(){yNl(2201)};
PA.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
PA.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
PA.prototype.onIronOverlayClosed=PA.prototype.onIronOverlayClosed;PA.prototype.onIronOverlayOpened=PA.prototype.onIronOverlayOpened;_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.Bm),_.S("design:type",Object)],PA.prototype,"tpYtIronOverlayBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],PA.prototype,"data",void 0);_.B([_.I(),_.S("design:type",Object)],PA.prototype,"spinnerActive",void 0);
_.B([_.Kf("iron-overlay-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PA.prototype,"onIronOverlayOpened",null);_.B([_.Kf("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PA.prototype,"onIronOverlayClosed",null);PA=_.B([_.DO({is:"yt-loading-renderer",disableElementRegistration:!0})],PA);
_.G(PA,"yt-loading-renderer",function(){if(Rr9===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;fIm===void 0&&(fIm=document.createElement("template"));var O=fIm;u.call(R,O.content.cloneNode(!0),f.content.firstChild);Rr9=f}f=Rr9;return f},{mode:2});var ucw;var OFw;var Uj=function(){var f=_.U.apply(this,arguments)||this;f.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);f.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);f.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.y(Uj,_.U);_.X=Uj.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.X.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.X.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.X.openPopupHandler_=function(f){f.detail===this.hostElement&&this.hostElement.hidden&&_.OJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.X.onDismissButtonTap_=function(){var f;this.closeOnDismissButton_.has(((f=this.data)==null?void 0:f.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.X.onAcceptButtonTap_=function(){var f;this.closeOnAcceptButton_.has(((f=this.data)==null?void 0:f.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.X.computeHasHeader_=function(f){return!!f.headerBackgroundImage};
_.X.computeLayoutStyle_=function(f){return f};
_.X.computePopupSize_=function(f){return f};
_.X.computeIconType_=function(f){return f.dialogIcon&&f.dialogIcon.iconType?f.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":f.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":f.dialogIcon.iconType:""};
_.X.computeIsLogo_=function(f){return!!f.dialogIcon&&!!f.dialogIcon.iconType&&(f.dialogIcon.iconType==="YOUTUBE_LOGO"||f.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||f.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.X.computeHasCustomLogo=function(f){return!(f==null||!f.headerForegroundImage)};
_.X.computeCustomLogo=function(f,R){if(f!=null&&f.headerForegroundImage)return f.headerForegroundImageDark?R?f.headerForegroundImageDark:f.headerForegroundImage:f.headerForegroundImage};
_.X.computeHeaderBackgroundImage=function(f,R){if(f!=null&&f.headerBackgroundImage)return R&&(f==null?0:f.headerBackgroundImageDark)?f.headerBackgroundImageDark:f.headerBackgroundImage};
_.X.shouldShowIconContainer=function(f,R){return f&&!R};
_.X.shouldShowNonYouTubeIcon=function(f,R){return!f&&!R};
_.X.getLogoImageId=function(f){var R,u,O;return(f=(R=this.computeCustomLogo(f,this.isDarkTheme))==null?void 0:(u=R.thumbnails)==null?void 0:(O=u[0])==null?void 0:O.height)&&f%31===0?"custom-logo-with-padding":"custom-logo"};
Uj.prototype.openPopupHandler_=Uj.prototype.openPopupHandler_;Uj.prototype.dataChanged_=Uj.prototype.dataChanged_;_.B([_.z(_.rj.YtRendererstamperBehavior),_.S("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.B([_.I(),_.S("design:type",Boolean)],Uj.prototype,"isDarkTheme",void 0);
_.B([_.I({computed:"computeCustomLogo(data, isDarkTheme)"}),_.S("design:type",Object)],Uj.prototype,"customLogo",void 0);_.B([_.I({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.S("design:type",Object)],Uj.prototype,"headerBackgroundImage",void 0);_.B([_.I(),_.S("design:type",Object)],Uj.prototype,"data",void 0);_.B([_.I({computed:"computeHasHeader_(data)"}),_.S("design:type",Boolean)],Uj.prototype,"hasHeader",void 0);
_.B([_.I({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.S("design:type",Object)],Uj.prototype,"layoutStyle",void 0);_.B([_.I({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.S("design:type",Object)],Uj.prototype,"popupSize",void 0);_.B([_.I({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Uj.prototype,"hasLogo",void 0);
_.B([_.I({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Uj.prototype,"hasCustomLogo",void 0);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uj.prototype,"dataChanged_",null);_.B([_.Kf("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Uj.prototype,"openPopupHandler_",null);
Uj=_.B([_.DO({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Uj);
_.G(Uj,"yt-upsell-dialog-renderer",function(){if(OFw===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;ucw===void 0&&(ucw=document.createElement("template"));var O=ucw;u.call(R,O.content.cloneNode(!0),f.content.firstChild);OFw=f}f=OFw;return f},{mode:2});var cXw=_.nf(function(f){return _.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.a(_.Q,{cond:f.title,then:function(R){return _.a("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},R)}}))},"sg"),XVe=_.nf(function(f){return _.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.a(_.y5,{data:f.closeButton},{buttonViewModel:function(R){return _.a("div",null,_.a(_.TS,{data:R.data}))}}))},"tg"),hrm=_.nf(function(f){var R=
f.data;
return _.a(_.RS,null,_.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.a(_.Q,{cond:function(){return!!R().image&&!!R().title},
then:function(){return _.a(_.gR,{data:function(){return R().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.a(_.Q,{cond:function(){return R().title},
then:function(u){return _.a("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},u)}}),_.a(_.Q,{cond:function(){return R().primaryGenre},
then:function(u){return _.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},u)}}))),_.a(_.Q,{cond:function(){var u=R().description;
return u&&u.length<=150},
then:function(){return _.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return R().description}))}}))},"ug"),ZFm=_.nf(function(f){f=f.infoRows;
var R=_.vh().resolve(_.Hw),u=_.E("enable_displaying_ppn");return _.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.a(_.EC,{each:f},function(O){return _.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.a(_.Q,{cond:function(){return O.label},
then:function(c){return _.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},c)}}),_.a(_.Q,{cond:function(){return O.attributedLabel},
then:function(c){return _.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.a(_.YO,{text:c,noPreWrap:!0}))}}),_.a(_.Q,{cond:function(){return O.value},
then:function(c){return _.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},c)}}),_.a(_.Q,{cond:function(){return O.attributedValue},
then:function(c){return _.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.a(_.YO,{text:c,noPreWrap:!0}))}}))}),_.a(_.Q,{cond:function(){return u&&R.clientData.has("post_play_nonce")},
then:function(){return _.a("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.a("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},R.getData("post_play_nonce")))}}))},"vg"),lIX=_.nf(function(f){var R=f.data;
return _.a("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.a(cXw,{title:function(){return R().dialogTitle}}),_.a(hrm,{data:R}),_.a(_.Q,{cond:function(){return R().infoRow},
then:function(u){return _.a(ZFm,{infoRows:u})}}),_.a(XVe,{closeButton:function(){return R().closeButton}}))},"wg");
lIX.idomCompat=!0;_.ii(lIX,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;return _.a("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.a(_.gR,{data:function(){return R().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.a("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.a("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.a(_.Q,{cond:function(){var u=R().ytLogo;return u?u.iconType:null},
then:function(u){return _.a(_.WM,{icon:u,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.a("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.a("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.a(_.YO,{text:function(){return R().body}})),_.a("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.a(_.YO,{text:function(){return R().verifyStateText}}))),
_.a("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.a("div",null,_.a(_.y5,{data:function(){return R().dismissButton}},{buttonViewModel:_.TS})),_.a("div",null,_.a(_.y5,{data:function(){return R().linkParentButton}},{buttonViewModel:_.TS})))))},"xg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.SG}});var k8a=_.nf(function(f){var R=f.data;return _.a("installment-agreements-view-model",{class:_.KL("ytInstallmentAgreementsViewModelHost")},_.a(_.EC,{each:_.g_(function(){return R().agreements},[])},function(u){return _.a("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.a("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.a(_.YO,{text:u.label})),_.a("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.a(_.y5,{data:function(){return u.openButton}},{buttonViewModel:_.TS})))}))},
"yg");
k8a.idomCompat=!0;var Kc5=_.nf(function(f){return _.a("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.a(_.YO,{text:function(){return f.data().inviteMessage}})),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.a(_.YO,{text:function(){return f.data().attributedAccountSectionHeaderText}})),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.a(_.y5,{data:function(){return f.data().accountAvatar}},{avatarViewModel:_.NC}),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.a(_.YO,{text:function(){return f.data().accountName}}),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.a(_.YO,{text:function(){return f.data().handle}}))),_.a(_.y5,{data:function(){return f.data().trailingButton}},{buttonViewModel:_.TS})),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.a(_.YO,{text:function(){return f.data().termsOfService}})))},"zg");var qIh=_.nf(function(f){var R=_.Z(_.m8(function(){var V,ZD;return((V=f.data().createPlaylistDialogFormSchema)==null?0:(ZD=V.initialValues)==null?0:ZD.title)?f.data().createPlaylistDialogFormSchema.initialValues.title:""})),u=R.next().value,O=R.next().value;
R=_.Z(_.m8(function(){f.data();return!1}));
var c=R.next().value,h=R.next().value;R=_.Z(_.m8(function(){f.data();return!1}));
var l=R.next().value,K=R.next().value;R=_.Z(_.m8(function(){var V,ZD;return(V=f.data().createPlaylistDialogFormSchema)==null?void 0:(ZD=V.initialValues)==null?void 0:ZD.visibility}));
var q=R.next().value,F=R.next().value;R=_.Z(_.m8(function(){f.data();return!1}));
var w=R.next().value,m=R.next().value;R=_.Z(_.m8(function(){var V,ZD;return(V=f.data().createPlaylistDialogFormSchema)==null?void 0:(ZD=V.initialValues)==null?void 0:ZD.isCollaborative}));
var W=R.next().value,C=R.next().value,d=_.sW();_.pc(function(){var V=d.value.querySelector("textarea");V&&(V.value=u())});
_.bt(function(){var V;_.Tna((V=f.data().createPlaylistDialogFormSchema)==null?void 0:V.id,{onSubmit:function(){var ZD=u();var mP=q(),NX=W(),jt=f.data();ZD={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:ZD,privacyStatus:mP,videoIds:jt.videoIds,sourcePlaylistId:jt.sourcePlaylistId,params:NX?jt.createPlaylistParamsCollaborationEnabled:jt.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.vh().resolve(_.rv).resolveCommand(ZD)},
isValid:function(){return c()&&!l()&&!w()}})});
var p=function(V){if(V!==void 0&&(O(V),!c()&&V.length>0&&h(!0),c())){var ZD=Hve(f.data());if(ZD){var mP=ZD.minLength;ZD=ZD.maxLength;mP&&V.length<mP?K(!0):ZD&&V.length>ZD?K(!0):K(!1)}}},J=function(){var V=!(!W()||q()!=="PRIVATE");
m(V)},M=function(V){V!==void 0&&(F(V),J())},P=function(){if(w())return Mah(f.data())},g=function(){C(!W());
J()},x=function(){return{validate:function(V){if(c()){var ZD=Hve(f.data());
if(ZD){var mP=ZD.minLength;ZD=ZD.translations;if(mP&&V.length<mP)return ZD==null?void 0:ZD.minLengthErrorMessage}}}}},fh=function(){var V=Hve(f.data()),ZD=V==null?void 0:V.maxLength,mP;
V=V==null?void 0:(mP=V.translations)==null?void 0:mP.maxLengthErrorMessage;if(ZD&&V)return{maxChars:ZD,errorMessage:V}};
return _.a("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.a("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:d},_.a(_.y5,{data:function(){return f.data().playlistTitle}},{textFormFieldViewModel:function(V){return _.a(_.wQN,{data:V.data,
text:u,onInput:p,validation:x,characterLimit:fh})},
textFieldViewModel:function(V){return _.a(_.FMh,{data:V.data,text:u,onInput:p,validation:x,characterLimit:fh})}})),_.a("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.a(_.y5,{data:function(){return f.data().playlistVisibility}},{dropdownViewModel:function(V){return _.a(_.pQS,{data:V.data,
onSelected:M,error:P})}})),_.a(_.Q,{cond:function(){return!!f.data().playlistCollaborate},
then:function(){return _.a("div",null,_.a(_.y5,{data:function(){return f.data().playlistCollaborate}},{switchListItemViewModel:function(V){return _.a(_.pyC,{data:V.data,
onTap:g})}}))}}))},"Ag");var AXK=_.nf(function(f){var R=_.g_(f.noPadding,!1),u=function(){var c,h;return(h=(c=f.data().logo.accessibilityData)==null?void 0:c.label)!=null?h:""},O={};
return _.a("upsell-view-model",{class:_.KL("ytUpsellViewModelHost",(O.ytUpsellViewModelHostNoPadding=function(){return R()},O))},_.a("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.a(_.Q,{cond:function(){return _.V5(f.data().logo)},
then:function(c){return _.a(_.gR,{data:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:u})}})),_.a("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.a(_.YO,{text:function(){return f.data().title}})),_.a("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.a(_.EC,{each:function(){var c;
return(c=f.data().subtitles)!=null?c:[]},
keyBy:"INDEX"},function(c){return _.a("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.a(_.YO,{text:c}))})),_.a("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.a(_.EC,{each:function(){var c;
return(c=f.data().benefitInfos)!=null?c:[]},
keyBy:"INDEX"},function(c){return _.a(_.Q,{cond:function(){return c().info},
then:function(h){return _.a("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.a(_.WM,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.a(_.YO,{text:h}))}})})),_.a("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.a(_.EC,{each:function(){var c;
return(c=f.data().legalInfos)!=null?c:[]},
keyBy:"INDEX"},function(c){return _.a("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.a(_.YO,{text:c}))})))},"Bg");var aIt=_.nf(function(f){var R=f.data;f={};f=(f.ytMiniAppScoreChallengeViewModelScoreRadial=!0,f.ytMiniAppScoreChallengeViewModelDarkScoreRadial=PlX(),f);return _.a("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.a("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return R().title}),_.a("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return R().subtitle}),_.a("div",{class:_.AS(f)},_.a("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return R().score})),_.a("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return R().prompt}))},"Cg");var FcX=function(){this.store=_.xs();this.formId=""};var wVt=_.nf(function(f){function R(K){if(K&&(K=_.t(K,_.wW)))return Object.assign({},K,{isSelected:h()})}
var u=_.Z(_.m8(function(){var K,q;return(q=(K=_.t(f.data().option,_.wW))==null?void 0:K.isSelected)!=null?q:!1})),O=u.next().value,c=u.next().value,h=O;
_.bt(function(){var K;_.Tna((K=f.data().formSchema)==null?void 0:K.id,{onSubmit:function(){var q=_.vh().resolve(_.rv),F=!!f.data().selectedCommand,w=!!f.data().unselectedCommand;if(h()){if(F)var m=f.data().selectedCommand}else w&&(m=f.data().unselectedCommand);m=_.H7(m);R(f.data().option)&&!m?(q="",!F&&w?q="selected ":F&&!w&&(q="unselected "),F=new _.ts("No "+q+"command found for SelectionListItemFormViewModel"),_.TL(F)):m&&q.resolveCommand(m)},
isValid:function(){return!0}})});
var l=function(){c(!h())};
_.jN(function(){var K,q,F=(K=f.data())==null?void 0:(q=K.formSchema)==null?void 0:q.id;F&&_.JuK()().delete(F)});
return _.a("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.a("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.a(_.YO,{text:function(){return f.data().paragraph}})),_.a(_.Q,{cond:function(){return R(f.data().option)},
then:function(K){return _.a(_.bp,{data:K,isCompact:!0,hideSelectionTextChevron:!0,onTap:l,disableHorizontalPadding:!0})}}))},"Dg");var mYh=_.nf(function(f){var R=f.data;var u=f.disablePadding;var O=f.className;var c=_.sW(),h=function(){var K=R().imageBanner;a:switch(R().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var q="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:q="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:K,style:q,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},l=function(){return R().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.bt(function(){var K=function(){_.OJ(c.value,"yt-refit-popups-action")},q;
(q=c.value)==null||q.addEventListener("image-loaded",K);_.jN(function(){var F;(F=c.value)==null||F.removeEventListener("image-loaded",K)})});
f={};return _.a("yt-dialog-header-view-model",{el:c,class:_.KL(O,(f.ytDialogHeaderViewModelHost=!0,f.ytDialogHeaderViewModelHostDisablePadding=u,f))},_.a(_.Q,{cond:function(){return R().imageBanner},
then:function(){var K={};return _.a("div",{class:_.KL(O,(K.ytDialogHeaderViewModelBanner=!0,K.ytDialogHeaderViewModelBannerFullBleed=l,K)),style:_.Qm({"max-height":function(){return R().assetContainerMaxHeight!==void 0?R().assetContainerMaxHeight+"px":void 0}})},_.a(_.iS,{data:h,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.a(_.Q,{cond:function(){return R().headerBlock},
then:function(){return _.a("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.a(_.y5,{data:function(){return R().headerBlock}},{contentPreviewImageViewModel:function(K){return _.a(_.iS,{data:K.data,
notifyOnLoaded:!0})}}))}}),_.a(_.Q,{cond:function(){return R().customAssetContainer},
then:function(K){return _.a("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.a(_.y5,{data:K},{avatarStackViewModel:_.bS}))}}),_.a(_.Q,{cond:function(){return R().customBanner},
then:function(K){return _.a("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.a(_.y5,{data:K},{avatarStackViewModel:_.bS}))}}),_.a(_.Q,{cond:function(){return R().headline},
then:function(K){return _.a("h2",null,_.a(_.YO,{text:K,className:"ytDialogHeaderViewModelText"}))}}))},"Eg");
mYh.idomCompat=!0;var Qoz=_.nf(function(f){var R=_.HGm(function(){return f.data().formId}),u=R.onSubmit,O=R.isValid;
return _.a("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.a(_.y5,{data:function(){return f.data().panelFooter}},{panelFooterViewModel:function(c){return _.a(_.UK,{data:c.data,
disablePadding:!0,disablePrimaryButton:function(){return!O()},
onClickPrimaryButton:function(){u()}})}}))},"Fg");var WcN=_.nf(function(f){var R=function(){var u,O;return(O=(u=_.t(f.data().rendererContext,_.mZ))==null?void 0:u.label)!=null?O:""};
return _.a("yt-dialog-image-content-view-model",{class:_.KL("ytDialogImageContentViewModelHost",f.className)},_.a(_.Q,{cond:function(){return _.V5(f.data().image)},
then:function(u){return _.a(_.gR,{data:u,alt:R,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.a(_.YO,{text:function(){return f.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Gg");var CNK=_.nf(function(f){var R=_.sU(f,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),u=R.elRefCallback;f=R.iconWiz;var O=R.assetWiz,c=R.assetType,h=R.titleWiz,l=R.leadingActionHeaderWiz,K=R.trailingActionHeaderWiz,q=R.headerPosition,F=R.contentWiz,w=R.buttonLayout,m=R.buttonStyle,W=R.primaryButtonWiz,C=R.secondaryButtonWiz,d=R.contentAlignment,p=R.isFullscreen,J=R.width,M=R.maxHeight,P=R.isHeaderWizDefined,
g=R.headerWiz,x=R.isFooterWizDefined,fh=R.footerWiz;R=_.sW(function(Gq){u==null||u(Gq)});
var V=O?function(){return O({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,ZD=W?function(){var Gq={};
return W({buttonOverrides:function(){return{style:(m==null?void 0:m())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.KL((Gq["yt-spec-dialog-layout__dialog-layout-button"]=!0,Gq["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},Gq))})}:void 0,mP=C?function(){var Gq={};
return C({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.KL((Gq["yt-spec-dialog-layout__dialog-layout-button"]=!0,Gq["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},Gq))})}:void 0,NX=function(){return(!!h||!!l||!!K)&&q()===0},jt={},Jn={},zq={},St={};
return _.a("dialog-layout",{el:R,class:_.KL((jt["yt-spec-dialog-layout"]=!0,jt["yt-spec-dialog-layout--dialog-layout-fullscreen"]=p,jt["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!p()},jt["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return M()===1},jt["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(c==null?void 0:c())===1},jt)),
style:function(){return(J==null?void 0:J())!==void 0?"width: "+J+"px;":""}},f?_.a("div",{class:_.KL((Jn["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Jn["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!O&&q()===1},Jn["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return d()===1},Jn))},_.a(f,null)):null,_.a(_.Q,{cond:P,
then:function(){return g?_.a("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.a(g,null)):null},
else:function(){return _.a(_.RS,null,_.a(_.Q,{cond:NX,then:function(){return _.a(Ebm,{contentAlignment:d,LeadingActionHeader:l,TrailingActionHeader:K,Title:h,isAboveAsset:!!V})}}),V?_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.a(V,null)):null)}}),_.a("div",{class:_.KL((zq["yt-spec-dialog-layout__dialog-layout-container"]=!0,zq["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(d==null?void 0:d())===1},zq["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!h&&!g||!!V&&(q==null?void 0:q())===0},zq))},_.a(_.Q,{cond:function(){return h&&!g&&(q==null?void 0:q())===1},
then:function(){return _.a(Ebm,{contentAlignment:d,LeadingActionHeader:l,TrailingActionHeader:K,Title:h,isAboveAsset:!1})}}),F?_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.a(F,null))):null,_.a(_.Q,{cond:x,
then:function(){return fh?_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.a(fh,null)):null}}),ZD||mP?_.a(tU5,{footerClasses:_.KL((St["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,St["yt-spec-dialog-layout__dialog-layout-footer"]=!0,St["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(w==null?void 0:w())===2},St["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(w==null?void 0:w())===1},St)),
PrimaryButton:ZD,SecondaryButton:mP}):null))},"Hg"),Ebm=_.nf(function(f){var R=_.sU(f,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),u=R.contentAlignment,O=R.LeadingActionHeader;f=R.Title;var c=R.TrailingActionHeader,h=R.isAboveAsset,l=R.enableLeadingActionHeader;R={};return _.a("div",{class:_.KL((R["yt-spec-dialog-layout__dialog-header-container"]=!0,R["yt-spec-dialog-layout__dialog-header"]=!0,R["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=h,R["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(u==null?void 0:u())===1&&l()},R))},_.a(_.Q,{cond:function(){return l()},
then:function(){return O?_.a("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.a(O,null)):null}}),f?_.a("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.a(f,null)):null,c?_.a("div",null,_.a(c,null)):null)},"Ig"),tU5=_.nf(function(f){var R=f.footerClasses;
var u=f.PrimaryButton;f=f.SecondaryButton;return _.a("div",{class:R},f?_.a(f,null):null,u?_.a(u,null):null)},"Jg");var yXz=_.nf(function(f){var R=f.data;return _.a("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.a("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.a(_.y5,{data:function(){return R().avatar}},{avatarViewModel:_.NC})),_.a("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a(_.YO,{text:function(){return R().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Kg");var dYz=_.nf(function(f){var R=f.data;return _.a("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.a("div",{class:"ytAccessConfirmationViewModelContent"},_.a(_.y5,{data:function(){return R().dualAvatar}},{dualAvatarViewModel:function(u){return _.a("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.a(_.u8I,{data:u.data}))}}),_.a("h2",{class:"ytAccessConfirmationViewModelTitle"},_.a(_.YO,{text:function(){return R().title}})),_.a(_.YO,{text:function(){return R().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Lg");var Nye=_.nf(function(f){var R=f.data;var u=void 0;f=_.Z(_.qK("",void 0,"bj3Bbf"));var O=f.next().value,c=f.next().value,h,l=function(){c("");var F;(F=u)!=null&&F.store.dispatch(_.OP({type:"RESET_COMMAND_MAP"}))};
_.bt(function(){u=new FcX;window.addEventListener("yt-popup-closed",l)});
_.pc(function(){if(u&&h!==R().formId){var F=u,w=R();w.formId&&(F.formId=w.formId,F.store.dispatch(_.OP({type:"SET_CURRENT_FORM_ID",payload:{formId:F.formId}})));h=R().formId}});
_.jN(function(){window.removeEventListener("yt-popup-closed",l)});
var K=function(F,w,m){w.key&&m&&w.key!==O()&&(c(w.key),u&&w.command&&u.store.dispatch(_.OP({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:m,command:w.command}})))},q=function(){if(_.t(R().content,_.Yf9))return!(O==null?0:O())};
return _.a("yt-dialog-view-model",{class:_.KL("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.a(CNK,{headerWiz:function(){return _.a("span",{skip:!0},_.a(_.y5,{data:function(){return R().header}},{dialogHeaderViewModel:function(F){return _.a(mYh,{data:F.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!R().header},
contentWiz:function(){return _.a("span",{skip:!0},_.a(_.y5,{data:function(){return R().customContent?R().customContent:R().content}},{basicContentViewModel:_.eHi,
createPlaylistDialogFormViewModel:qIh,collaborativePlaylistInviteMessageViewModel:Kc5,miniAppScoreChallengeViewModel:aIt,radioButtonGroupViewModel:function(F){return _.a(_.NPm,{data:F.data,selectedKey:O,onSelected:K})},
selectionListItemFormViewModel:wVt,upsellViewModel:function(F){return _.a(AXK,{data:F.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:yXz,installmentAgreementsViewModel:k8a,accessConfirmationViewModel:dYz,listViewModel:function(F){return _.a(_.IoI,{data:F.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:WcN}))},
footerWiz:function(){return _.a("span",{skip:!0},_.a(_.y5,{data:function(){return R().footer}},{panelFooterViewModel:function(F){return _.a(_.UK,{data:F.data,
disablePadding:!0,disablePrimaryButton:q})},
formPanelFooterViewModel:Qoz,formFooterViewModel:function(F){return _.a(_.q$m,{data:F.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!R().footer}}))},"Mg");
Nye.idomCompat=!0;_.ii(Nye,"yt-dialog-view-model",{props:{data:_.SG},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Lcm=_.nf(function(f){var R=f.data;f={};return _.a("yt-panel-header-view-model",{class:_.KL("yt-panel-header-view-model-wiz",(f["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!R().shouldHideDivider},f["yt-panel-header-view-model-wiz--compact"]=function(){return!!R().subtitle},f))},_.a("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.a(_.Q,{cond:function(){return R().title},
then:function(u){return _.a(_.YO,{text:u,className:"yt-panel-header-view-model-wiz__title"})}}),_.a(_.Q,{cond:function(){return R().subtitle},
then:function(u){return _.a(_.YO,{text:u,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.a("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.a(_.y5,{data:function(){return R().trailingButtons}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Ng");
Lcm.idomCompat=!0;var bFS=_.nf(function(f){var R=_.Ff(function(h){var l;if((l=f.skipContentClick)==null?0:l.call(f))return!1;f.onContentWrapperClick(h);return!0}),u,O,c;
return _.a("div",{class:_.KL("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return f.isAnimating()?"transform: translateY("+f.currentY()+"px);transition: 0.2s":""}},(u=f.header)==null?void 0:u.call(f),_.a("div",{id:f.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Qm({"max-height":(0,_.Nr)(f.maxHeightForContentWrapper)}),"on:scroll":BAl(f.onScroll),"on:touchmove":BAl(function(h){return void h.stopPropagation()})},_.a("div",{el:{onRender:f.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":R},(O=f.body)==null?void 0:O.call(f))),(c=f.footer)==null?void 0:c.call(f))},"Og");
bFS.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var pVz=_.nf(function(f){var R=_.g_(f.leadingLabel),u=_.g_(f.trailingLabel),O=_.g_(f.footerButtonType),c=function(){return R()||u()||f.hasPrimaryButton()||f.hasSecondaryButton()},h={},l=_.KL("yt-spec-bottom-sheet-layout__primary-button",(h["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return O()===0&&f.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return O()===1&&f.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return O()===2&&f.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return O()===3&&f.hasPrimaryButton()},h));
h={};var K=_.KL("yt-spec-bottom-sheet-layout__secondary-button",(h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return O()===1&&f.hasSecondaryButton()},h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return O()===2&&f.hasSecondaryButton()},h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return O()===3&&f.hasPrimaryButton()},h));
return _.a(_.Q,{cond:f.hasFooterOverride,then:function(){var q;return _.a(_.RS,null,(q=f.footerOverride)==null?void 0:q.call(f))},
else:function(){return _.a(_.Q,{cond:c,then:function(){return _.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.a(_.Q,{cond:function(){return R()||u()},
then:function(){var q={};return _.a("div",{class:_.KL("yt-spec-bottom-sheet-layout__footer-label-wrapper",(q["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!f.hasPrimaryButton()},q))},_.a(_.Q,{cond:R,
then:function(){return _.a("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},R)}}),_.a(_.Q,{cond:u,
then:function(){return _.a("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},u)}}))}}),_.a(_.Q,{cond:function(){return f.hasPrimaryButton()||f.hasSecondaryButton()},
then:function(){var q={};return _.a("div",{class:_.KL("yt-spec-bottom-sheet-layout__footer-button-wrapper",(q["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.nAf,q))},_.a(_.Q,{cond:function(){return f.hasSecondaryButton()&&O()!==0},
then:function(){var F;return _.a("div",{class:K},(F=f.secondaryButton)==null?void 0:F.call(f))}}),_.a(_.Q,{cond:f.hasPrimaryButton,
then:function(){var F;return _.a("div",{class:l},(F=f.primaryButton)==null?void 0:F.call(f))}}))}}))}})}})},"Pg");
pVz.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var jo9=_.nf(function(f){var R=_.g_(f.title),u=_.g_(f.subtitle);return _.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:f.headerId,"on:touchstart":_.Ff(function(O){var c;(c=f.touchstart)==null||c.call(f,O);return!1}),
"on:touchmove":_.Ff(function(O){var c;(c=f.touchmove)==null||c.call(f,O);return!1}),
"on:touchend":_.Ff(function(O){var c;(c=f.touchend)==null||c.call(f,O);return!1})},_.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.a(_.Q,{cond:f.hasHeaderOverride,
then:function(){var O;return _.a(_.RS,null,(O=f.headerOverride)==null?void 0:O.call(f))},
else:function(){var O={};return _.a("div",{class:_.KL((O["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,O["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=R,O))},_.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.a(_.Q,{cond:R,then:function(){return _.a(_.RS,null,_.a("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},R),_.a(_.Q,{cond:u,then:function(){return _.a("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
u)}}))}})),_.a(_.Q,{cond:function(){return R()&&f.hasActionHeader()},
then:function(){var c;return _.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(c=f.actionHeader)==null?void 0:c.call(f))}}))}}))},"Qg");
jo9.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.nf(function(f){function R(V){if(!M&&typeof MutationObserver!=="undefined"){var ZD={childList:!0};"MutationObserver"in window&&(M=new MutationObserver(u.bind(void 0,V)),M.observe(V,ZD))}}
function u(V){typeof M!=="undefined"&&(P["content-wrapper"]===void 0&&(P["content-wrapper"]=V.children[0].clientHeight),C(P["content-wrapper"]),W()>d()||p(W()))}
function O(){m(window.innerHeight);W()>d()||p(W());g.isFullScreen[0]()&&W()>d()?x().dispatch("Snap To Full Screen",{maxHeight:J()}):x().dispatch("Snap To Neutral Position",{maxHeight:d()})}
function c(V){document.body.style.overscrollBehavior="none";V.preventDefault();x().dispatch("Touch Start",{event:V})}
function h(V){V.preventDefault();x().dispatch("Touch Move",{event:V,contentScrollable:W()>d(),fullContentWrapperHeight:J(),contentWrapperHeight:d(),contentHeightMap:P,contentWrapperId:"content-wrapper",header:x5N(f),footer:x5N(f)})}
function l(){document.body.style.overscrollBehavior="";g.isFullScreen[0]()?g.currentY[0]()>=60?x().dispatch("Snap To Neutral Position",{maxHeight:d()}):x().dispatch("Snap To Full Screen",{maxHeight:J()}):g.currentY[0]()>=60?K():g.currentY[0]()<=-60&&W()>d()?x().dispatch("Snap To Full Screen",{maxHeight:J()}):x().dispatch("Snap To Neutral Position",{maxHeight:d()})}
function K(){x().dispatch("Close Sheet",{clientHeight:w(),maxHeight:0});setTimeout(function(){oE9()},250)}
var q=_.Z(_.qK(window.innerHeight,void 0,"NWeFS")),F=q.next().value;q=q.next().value;var w=F,m=q;q=_.Z(_.qK(0,void 0,"oxfm4"));F=q.next().value;q=q.next().value;var W=F,C=q;q=_.Z(_.m8(function(){var V=x5N(f);return.6*w()-U5t(V)-e4h(V)}));
F=q.next().value;q=q.next().value;var d=F,p=q,J=function(){var V=x5N(f);return w()-U5t(V)-e4h(V)-24-24},M=null,P={},g={initialY:_.qK(0,void 0,"cYBE5c"),
currentY:_.qK(0,void 0,"RndqHc"),isAnimating:_.qK(!1,void 0,"vO9DVd"),isFullScreen:_.qK(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.m8(d)},x=function(){var V=null;return function(){if(!V){var ZD={initialY:g.initialY[0](),currentY:g.currentY[0](),isAnimating:g.isAnimating[0](),isFullScreen:g.isFullScreen[0](),maxHeightForContentWrapper:g.maxHeightForContentWrapper[0]()};V=GT2(ZD)}return V}}();
_.bt(function(){window.addEventListener("resize",O);x().subscribe(function(V){g.initialY[1](V.initialY);g.currentY[1](V.currentY);g.isAnimating[1](V.isAnimating);g.isFullScreen[1](V.isFullScreen);g.maxHeightForContentWrapper[1](V.maxHeightForContentWrapper)})});
_.jN(function(){window.removeEventListener("resize",O);M&&(M.disconnect(),M=null)});
var fh=_.KL({"bottom-sheet-content-without-icon":function(){var V;return!((V=f.shouldShowIcons)==null?0:V.call(f))}});
return _.a("bottom-sheet-layout",null,_.a(bFS,{contentWrapperId:"content-wrapper",isAnimating:function(){return g.isAnimating[0]()},
currentY:function(){return g.currentY[0]()},
maxHeightForContentWrapper:function(){return g.maxHeightForContentWrapper[0]()},
shouldShowIcons:f.shouldShowIcons,skipContentClick:f.skipContentClick,onScroll:function(){var V=document.getElementById("header-wrapper"),ZD=document.getElementById("content-wrapper");if(V&&ZD){var mP={};mP=(mP["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,mP["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,mP);V.className=ZD.scrollTop>1?_.AS(mP):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:oE9,contentWrapperEl:function(V){R(V);requestAnimationFrame(function(){u(V)})},
header:function(){return _.a(jo9,{touchstart:c,touchmove:h,touchend:l,title:f.headerTitle,subtitle:f.headerSubtitle,headerId:"header-wrapper",headerOverride:f.headerFn,hasHeaderOverride:f.hasHeaderFn,actionHeader:f.headerActionHeader,hasActionHeader:f.hasHeaderActionHeader})},
footer:function(){return _.a(pVz,{footerButtonType:f.footerButtonType,leadingLabel:f.footerLeadingLabel,trailingLabel:f.footerTrailingLabel,primaryButton:f.footerPrimaryButton,hasPrimaryButton:f.hasFooterPrimaryButton,secondaryButton:f.footerSecondaryButton,hasSecondaryButton:f.hasFooterSecondaryButton,footerOverride:f.footerFn,hasFooterOverride:f.hasFooterFn})},
body:function(){return _.a(_.Q,{cond:f.hasContentFn,then:function(){var V;return _.a("div",{class:fh},(V=f.contentFn)==null?void 0:V.call(f))}})}}))},"Rg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var DYN=_.nf(function(f){var R=_.vh().resolve(_.dp);return _.a("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.Ff(function(){return void R.closeSheet()})},_.a(_.Q,{cond:function(){return!!f.header},
then:function(){return _.a("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},f.header())}}),_.a(_.Q,{cond:function(){return!!f.content},
then:function(){return _.a("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},f.content())}}),_.a(_.Q,{cond:function(){return!!f.footer},
then:function(){return _.a("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},f.footer())}}))},"Sg");
DYN.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var JX2=_.nf(function(f){f=f.data;var R=_.sW(function(O){if(_.E("web_focus_first_element_sheet"))return O.addEventListener("focus",function(){pRm(O)}),function(){O.removeEventListener("focus",function(){pRm(O)})}}),u={};
return _.a("yt-sheet-view-model",{class:_.KL("yt-sheet-view-model-wiz",(u["yt-sheet-view-model-wiz--contextual"]=!0,u["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.E("web_disable_backdrop_filter"),u)),el:R,tabindex:-1},_.a(_.Q,{cond:f,then:function(O){return _.a(DYN,{header:function(){return _.a(_.y5,{data:function(){return O().header}},{panelHeaderViewModel:Lcm})},
content:function(){return _.a(_.y5,{data:function(){return O().content}},{listViewModel:function(c){return _.a(_.IoI,{data:c.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:AXK,miniAppScoreChallengeViewModel:aIt})},
footer:function(){return _.a(_.y5,{data:function(){return O().footer}},{panelFooterViewModel:_.UK})}})}}))},"Tg");
JX2.idomCompat=!0;_.ii(JX2,"yt-sheet-view-model",{props:{data:_.SG}});var Tyh=_.nf(function(f){var R=function(){var u;return(u=f.data().enableDebuggingFeatures)!=null?u:!1};
return _.a("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.a(_.EC,{each:function(){var u;return(u=f.data().stickers)!=null?u:[]}},function(u){return _.a(zr5,{data:function(){return u},
debugMode:R})}))},"Ug"),zr5=_.nf(function(f){var R=_.sU(f,{debugMode:!1}).debugMode,u=_.g_(function(){var q;
return(q=f.data().region)==null?void 0:q.w},0),O=_.g_(function(){var q;
return(q=f.data().region)==null?void 0:q.h},0),c=_.g_(function(){var q;
return(q=f.data().region)==null?void 0:q.x},0),h=_.g_(function(){var q;
return(q=f.data().region)==null?void 0:q.y},0),l=_.Ff(function(){var q=f.data().onTap;
q&&_.Ux(q)}),K={};
return _.a("div",{class:_.KL("ytStoriesStickerLayerViewModelSticker",(K.ytStoriesStickerLayerViewModelDebugMode=R,K)),style:_.Qm({width:function(){return 100*u()+"%"},
height:function(){return 100*O()+"%"},
left:function(){return 100*c()+"%"},
top:function(){return 100*h()+"%"},
"flex-direction":function(){return SJt(f.data().flexDirection)},
"justify-content":function(){return $5N(f.data().justifyContent)},
"align-items":function(){return gEh(f.data().alignItems)}}),
"on:click":l},_.a(_.y5,{data:function(){return f.data().button||f.data().toggleButton}},{buttonViewModel:function(q){return _.a(_.TS,{data:q.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(q){return _.a(_.Lr,{data:q.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Vg");var IIX=_.nf(function(f){var R=function(){return f.data()},u=_.g_(function(){return R().backgroundColor},0),O=_.g_(function(){return R().actionButtons},[]),c=_.g_(function(){return R().stickerLayer},{}),h={},l=function(){var q,F;
return{animationRef:h,animationConfig:{autoplay:!1,loop:!1,path:(F=(q=R().foregroundAnimation)==null?void 0:q.url)!=null?F:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){f.navigateToNextItemOnLottieComplete()}}}},K=function(){var q,F,w,m,W,C,d,p;
return{animationConfig:{autoplay:(C=(q=R().backgroundAnimation)==null?void 0:(F=q.settings)==null?void 0:F.autoplay)!=null?C:!1,loop:(d=(w=R().backgroundAnimation)==null?void 0:(m=w.settings)==null?void 0:m.loop)!=null?d:!1,path:(p=(W=R().backgroundAnimation)==null?void 0:W.url)!=null?p:"",name:"stories_item_background_animation"}}};
_.pc(function(){if(f.isVisible()){var q;(q=h.lottieEl)==null||q.play()}else{var F;(F=h.lottieEl)==null||F.stop()}});
return _.a("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Qm({"background-color":function(){return _.ML(u())+";"}})},_.a("div",{class:"ytStoriesItemViewModelAssetContent"},_.a(_.Q,{cond:function(){return!!R().backgroundAnimation},
then:function(){return _.a(_.qI,{data:K,animationName:function(){return K().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.a(_.Q,{cond:function(){return!!R().backgroundImage},
then:function(){return _.a(_.gR,{data:function(){return R().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.a(_.Q,{cond:function(){return!!R().foregroundAnimation},
then:function(){return _.a(_.qI,{data:l,animationName:function(){return l().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.a(_.Q,{cond:function(){return!!R().foregroundImage},
then:function(){return _.a(_.gR,{data:function(){return R().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.a("div",{class:"ytStoriesItemViewModelTopShadow"}),_.a(_.y5,{data:function(){return c()}},{storiesStickerLayerViewModel:Tyh})),_.a("div",{class:"ytStoriesItemViewModelBottomShadow"},_.a("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Ff(f.pauseAutoNavigation)},_.a(_.EC,{each:O},function(q){return _.a(HFt,{data:function(){return q}})}))))},"Wg"),HFt=_.nf(function(f){var R={};
return _.a("div",{class:_.KL("ytStoriesItemViewModelActionButton",(R.ytStoriesItemViewModelStretchedActionButton=function(){return f.data().size==="STORIES_BUTTON_SIZE_STRETCH"},R))},_.a(_.y5,{data:function(){return f.data().button}},{buttonViewModel:function(u){return _.a(_.TS,{data:u.data,
className:"ytStoriesItemViewModelButton"})}}))},"Xg");_.ii(_.nf(function(f){var R=_.Z(_.m8(function(){var P;return(P=f.data().startIndex)!=null?P:0})),u=R.next().value,O=R.next().value;
R=_.Z(_.qK(!1,void 0,"klmjc"));var c=R.next().value,h=R.next().value,l=function(){var P;return(P=f.data().storyItems)!=null?P:[]},K=function(){return f.data().dismissButton},q=function(){var P;
return _.t((P=_.t(K(),_.dW))==null?void 0:P.onTap,_.TW)},F=_.sW(),w,m=function(){var P;
(P=w)==null||P.cancel();w=W(u()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});w.onfinish=function(){W(u()).style.width="100%";var g=_.t(l()[u()],Uft),x,fh;g!=null&&g.foregroundAnimation&&((g==null?0:(x=g.foregroundAnimation)==null?0:x.url)||(g==null?0:(fh=g.foregroundAnimation)==null?0:fh.payload))||(u()!==l().length-1?(O(u()+1),m()):q()&&_.IF(q()))}},W=function(P){return F.value.children[P].children[0]},C=function(){for(var P=0;P<u();P++)W(P).style.width="100%"};
R=_.Ff(function(){c()?h(!1):(u()===l().length-1&&q()&&_.IF(q()),W(u()).style.width="100%",u()!==l().length-1&&(O(u()+1),m()))});
var d=_.Ff(function(){c()?h(!1):(W(u()).style.width="0%",u()!==0?O(u()-1):O(u()),m())}),p=function(){h(!0)},J=function(){W(u()).style.width="100%";
u()!==l().length-1?(O(u()+1),m()):q()&&_.IF(q())},M=_.Ff(function(){var P;
(P=w)==null||P.pause()});
_.pc(function(){if(c()){var P;(P=w)==null||P.pause()}else{var g;(g=w)==null||g.play()}});
_.pc(function(){C();u()===f.data().startIndex&&m()});
_.bt(function(){C();m()});
return _.a("yt-stories-viewer-view-model",{class:_.KL("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.a("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.a("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":d,"on:mousedown":M}),_.a("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":R,"on:mousedown":M})),_.a(_.y5,{data:l},{storiesItemViewModel:function(P,g){var x=P.data;return _.a(_.Q,{cond:function(){return Math.abs(g()-
u())<=1},
then:function(){var fh={};return _.a("div",{class:_.KL("ytStoriesViewerViewModelStoryItem",(fh.ytStoriesViewerViewModelHiddenStoryItem=function(){return g()!==u()},fh))},_.a(IIX,{data:x,
pauseAutoNavigation:p,navigateToNextItemOnLottieComplete:J,isVisible:function(){return g()===u()}}))}})}}),_.a("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:F},_.a(_.EC,{each:l},function(){return _.a("div",{class:"ytStoriesViewerViewModelProgressBar"},_.a("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.a("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.a(_.y5,{data:K},{buttonViewModel:_.TS})))},"Yg"),"yt-stories-viewer-view-model",{props:{data:_.SG}});_.ii(_.nf(function(f){var R=f.data;var u=_.sW(),O=[];return _.a("yt-gen-ai-feedback-form-view-model",{el:u,class:"ytGenAiFeedbackFormViewModelHost"},_.a(_.YO,{text:function(){return R().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.a("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.a(_.y5,{data:function(){return R().feedbackChips}},{toggleButtonViewModel:function(c){var h=c.data;
return _.a(_.Lr,{data:h,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(l){var K=h();K=_.t(K,_.Np);K=_.t(K==null?void 0:K.defaultButtonViewModel,_.dW).trackingParams;l?O.push(K):(l=O.indexOf(K),l>-1&&O.splice(l,1))}})}})),_.a(_.YO,{text:function(){return R().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.a("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.a(_.y5,{data:function(){return R().submitButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){spl(u.value,O,R().uniqueId)}})}}),_.a(_.y5,{data:function(){return R().moreFeedbackButton}},{buttonViewModel:function(c){return _.a(_.TS,{data:c.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Zg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.SG},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ee=function(){return _.U.apply(this,arguments)||this};
_.y(ee,_.U);ee.prototype.created=function(){yNl(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Okl);var f=_.vh().resolve(_.EtA);f&&(f.container=this.ytPopupContainerBehavior);if(f=_.vh().resolve(_.dp))f.container=this.ytPopupContainerBehavior;if(f=_.vh().resolve(_.N$)){var R=this.ytPopupContainerBehavior;f.containerWasInjected?_.Ih(Error("aj")):f.container=R}};
ee.prototype.ensurePopupBelowPlayer=function(f,R){var u=_.vh().resolve(_.Y8(_.sz));if(!u||!u.isOnWatch()||!_.Vm())return!1;u=u.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.WL().height>u+this.getPopupHeight(f,R)?(f.style.top="auto",f.style.bottom="0px"):(f.style.top=u+"px",f.style.bottom="auto");return!0};
ee.prototype.getPopupHeight=function(f,R){R&&(f.cachedPopupHeight=0);if(!f.cachedPopupHeight){R=0;var u=f.clientHeight,O=window.getComputedStyle(f);R+=parseInt(O.marginTop,10);R+=parseInt(O.marginBottom,10);f.cachedPopupHeight=u+R}return f.cachedPopupHeight};
ee.prototype.getElement=function(f){return document.createElement(f)};
_.B([_.z(bOw.YtPopupContainerBehavior),_.S("design:type",Object)],ee.prototype,"ytPopupContainerBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],ee.prototype,"ytComponentBehavior",void 0);ee=_.B([_.e({disableElementRegistration:!0,is:"ytd-popup-container"})],ee);
_.G(ee,"ytd-popup-container",function(){if(mEh!==void 0)return mEh;var f=document.createElement("template");_.N(f,"\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");f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);return mEh=f},{mode:1});var MUa;var PNl={};PNl.YtLogYpcFlowCommandsBehavior=[_.fq.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(f){_.t(f,uUa)&&(f=_.t(f,uUa))&&(f.serializedTransactionFlowLoggingParams?_.dDq(f.serializedTransactionFlowLoggingParams):f.serializedYpcCancelFlowLoggingParams?(f=f.serializedYpcCancelFlowLoggingParams)&&_.D6("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",f):f.serializedYpcResumeFlowLoggingParams?(f=f.serializedYpcResumeFlowLoggingParams)&&_.D6("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",f):f.serializedYpcPauseFlowLoggingParams?(f=f.serializedYpcPauseFlowLoggingParams)&&
_.D6("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",f):f.serializedYpcRefundFlowLoggingParams?(f=f.serializedYpcRefundFlowLoggingParams)&&hcX("YPC_EVENT_TYPE_START",f):f.serializedYpcDeactivateFlowLoggingParams?(f=f.serializedYpcDeactivateFlowLoggingParams)&&_.D6("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",f):f.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(f=f.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.D6("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",f))},
handleLogYpcFlowDismiss_:function(f){_.t(f,Rn9)&&(f=_.t(f,Rn9),f.serializedTransactionFlowLoggingParams?_.N37(f.serializedTransactionFlowLoggingParams):f.serializedYpcCancelFlowLoggingParams?(f=f.serializedYpcCancelFlowLoggingParams)&&_.D6("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",f):f.serializedYpcResumeFlowLoggingParams?(f=f.serializedYpcResumeFlowLoggingParams)&&_.D6("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",f):f.serializedYpcPauseFlowLoggingParams?(f=
f.serializedYpcPauseFlowLoggingParams)&&_.D6("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",f):f.serializedYpcRefundFlowLoggingParams&&(f=f.serializedYpcRefundFlowLoggingParams)&&hcX("YPC_EVENT_TYPE_CANCEL",f))}}];var UY5={};UY5.YtCancelRecurrenceBehavior=[_.M7.YtComponentBehavior,_.IxC,{attached:function(){var f=this;hp2(this,function(R,u){return f.ypcCancelRecurrenceHandler(R,u)})},
ypcCancelRecurrenceHandler:function(f,R){var u=this;if(!R||!R.ypcCancelRecurrenceEndpoint)return!1;if(!R.ypcCancelRecurrenceEndpoint.params)return _.IS(Error("tl")),!0;_.om(this.hostElement);var O=_.PM.instance,c=_.vh().resolve(_.Y8(_.DM));O&&_.Uz(O,R)?_.e6(O,R).then(function(h){u.ypcCancelRecurrenceSuccess_(f,R,{data:h})},function(h){u.ypcCancelRecurrenceFailure_(f,R,h)}).thenCatch(function(){_.IS(Error("ul"))}):c?c.requestDataForServiceEndpoint(R).then(function(h){u.ypcCancelRecurrenceSuccess_(f,
R,h)},function(h){u.ypcCancelRecurrenceFailure_(f,R,h)}).thenCatch(function(){_.IS(Error("ul"))}):_.IS(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(f,R,u){_.xR(this.hostElement);u.data||(u={data:u});u.data&&u.data.actions&&_.ZW(this.hostElement,u.data.actions,this.hostElement);u.data.messageRenderer?l9a(R.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(R=R.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.D6("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",R);_.ul(f,"yt-service-request-completed",u)},
ypcCancelRecurrenceFailure_:function(f,R,u){_.xR(this.hostElement);l9a(R.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.ul(f,"yt-service-request-error",{error:u,params:[f,R]})}}];var ere=function(f,R){_.R7.call(this,R)};
_.y(ere,J4N);var G85={};G85.YtCompleteTransactionBehavior=[_.M7.YtComponentBehavior,_.IxC,{attached:function(){var f=this;hp2(this,function(R,u){return f.ypcCompleteTransactionHandler(R,u)})},
completeTransaction:function(f,R){var u=this;R={payments_payload:window.btoa(R.integratorData),buybucket_params:f.data.buybucketParams,offer_params:f.data.offerParams};var O=_.vh().resolve(_.DM),c=f.data.completeTransactionEndpoint,h=this.get("ypcCompleteTransactionEndpoint.actions",c);h&&_.ZW(this.hostElement,h,this.hostElement);return(h=_.PM.instance)&&_.Uz(h,c)?_.e6(h,c,R).then(function(l){return!l||(l==null?0:l.error)?(l=u.get("data.serializedTransactionFlowLoggingParams",f),_.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
l))):{data:l}}).then(function(l){return u.handleCompleteTransactionSuccess_(l,f)},function(){return u.handleCompleteTransactionFailure_(f)}):O.requestDataForServiceEndpoint(c,R).then(function(l){return u.handleCompleteTransactionSuccess_(l,f)},function(){return u.handleCompleteTransactionFailure_(f)})},
handleCompleteTransactionSuccess_:function(f,R){f.data||(f={data:f});if(f.data.messageRenderer)return _.NO(new ere(f.data.messageRenderer));if(f.data.trackingParams){var u=_.z4(),O=_.Jj();u&&O&&_.ea(u,O,_.t4(f.data.trackingParams))}R=this.get("data.serializedTransactionFlowLoggingParams",R);ZBS(R);return _.ll(f)},
handleCompleteTransactionFailure_:function(f){f=this.get("data.serializedTransactionFlowLoggingParams",f);_.xS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f);return _.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f))},
ypcCompleteTransactionHandler:function(f,R){var u=this;if(!R.ypcCompleteTransactionEndpoint)return!1;if(!R.ypcCompleteTransactionEndpoint.transactionParams)return _.IS(Error("wl")),!0;R.ypcCompleteTransactionEndpoint&&R.ypcCompleteTransactionEndpoint.gtmData&&_.y3(R.ypcCompleteTransactionEndpoint.gtmData);var O=_.vh().resolve(_.Y8(_.DM));if(O){_.om(this.hostElement);var c=_.PM.instance;c&&_.Uz(c,R)?_.e6(c,R).then(function(h){return!h||(h==null?0:h.error)?(h=u.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
R),_.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",h))):{data:h}}).then(function(h){_.ul(f,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(R,h)},function(){return u.ypcCompleteTransactionFailure_(R)}):O.requestDataForServiceEndpoint(R).then(function(h){_.ul(f,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(R,h)},function(){return u.ypcCompleteTransactionFailure_(R)})}return!0},
ypcCompleteTransactionSuccess_:function(f,R){_.xR(this.hostElement);R.data||(R={data:R});_.OJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);R.data.messageRenderer||R.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(f):(_.y3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",f));R.data.actions&&(f=CEz(R.data.actions),R=yjS(R.data.actions),f.length&&_.hH(this.hostElement,
f),R.length&&_.ZW(this.hostElement,R,this.hostElement))},
ypcCompleteTransactionFailure_:function(f){_.xR(this.hostElement);_.OJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",f,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(f,R,u){if(R=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",R))R={serializedTransactionFlowLoggingParams:R},u&&(R.errorType=u),_.Jr(f,R),_.zL()}}];var By9={};By9.YtEndpointHandlerWithYpcBehavior=[_.IxC,_.fq.YtActionHandlerBehavior,[{openWalletDialog:function(f,R,u,O,c,h,l){var K=this,q=_.BM();R=R.replace(/-/g,"+").replace(/_/g,"/");var F=_.Qu().get("hl");_.YRe(_.c9(_.Sk),R,q.resolve,c,function(w){h&&h();q.reject(w)},F,function(w){return K.onServerBackendAnalyticEvent_(f,u,w)},this.onDialogClose_.bind(this),O,l);
return q.promise},
openFixFlowDialog:function(f,R,u,O){f=f.replace(/-/g,"+").replace(/_/g,"/");_.c9(_.Sk).openFixFlowDialog(f,R,u,O)},
onDialogClose_:function(){_.OJ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(f,R,u){_.ul(f,"yt-commerce-action-init-done");R&&_.hH(this.hostElement,[R,{backend_analytics:u}])}}],
_.Ae.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(f,R){f=this.get("data.nativeFlowEndpoint",R);R=this.get("data.fallbackEndpoint",R);f?_.hH(this.hostElement,[f]):R&&_.ul(this.hostElement,"yt-navigate",{endpoint:R})}}],
UY5.YtCancelRecurrenceBehavior,G85.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 f=this;hp2(this,function(R,u,O){return f.handleYPCEndpoint(R,u,O)});
this.ypcRegisterActionMapJobId_=_.dJ(_.JA,function(){f.registerActionMap(f.buyFlowActionMap_)})},
detached:function(){var f=this;_.JA.cancelJob(this.ypcRegisterActionMapJobId_);_.dJ(_.JA,function(){f.unregisterActionMap(f.buyFlowActionMap_)})},
handleYPCEndpoint:function(f,R,u){var O=R.ypcGetCartEndpoint;if(O){_.DW("commerce_transaction");var c=O.gtmId;c&&_.Ck(c);(O=O.gtmData)&&_.y3(O)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",R)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(f,R),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",R)!=null?(this.handleYPCFixInstrumentEndpoint_(f,R),!0):R.ypcPauseSubscriptionCommand?(uXX(this.hostElement,f,R,u),
!0):R.ypcResumeSubscriptionCommand?(XWS(this.hostElement,f,R),!0):R.getPaymentInstrumentsParamsCommand?(rH9(this.hostElement,f,R),!0):R.ypcHandleTransactionEndpoint?(vE5(this.hostElement,f,R,u),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(f,R){var u=this;_.JH("ttcr",void 0,"commerce_transaction");R=R.ypcGetCartEndpoint;var O=R.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,c=O.encryptedPurchaseParams,h=O.serializedTransactionFlowLoggingParams,l=O.serializedPaymentsClientParams,K=this.createGetCartResponseFromParams_(O,R.offerParams,h);this.changeButtonState(f,!0);_.to(this.openWalletDialog(f,c,O.ypcLogWalletAnalyticDataEndpoint,h,function(){u.changeButtonState(f,!1)},function(){u.changeButtonState(f,
!1)},l).then(function(q){return u.handleBuyFlowCompleteCallback_(f,K,q)},function(){return u.handleOnLoadError(K)}).then(function(q){return void u.handlePostPurchaseSuccess_(f,K,q)},function(q){return void u.handlePostPurchaseError_(q)}),function(){u.changeButtonState(f,!1);
f instanceof Element&&_.ul(f,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(f,R,u){var O=f.completeTransactionEndpoint,c=f.handleTransactionEndpoint;R={data:{offerParams:window.btoa(R),serializedTransactionFlowLoggingParams:u}};c?R.data.handleTransactionEndpoint=c:R.data.completeTransactionEndpoint=O;f.onCartDismissCommand&&(R.data.onCartDismissCommand=f.onCartDismissCommand);return R},
onGetCartServiceRequestCompleted_:function(f,R){var u=this,O=f.target;if(R&&R.data&&R.data.messageRenderer)_.xR(this.hostElement),this.handleMessageRenderer_(R.data.messageRenderer),this.changeButtonState(O,!1);else{var c=this.get("data.encryptedPurchaseParams",R),h=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",R),l=this.get("data.ypcLogWalletAnalyticDataEndpoint",R),K=this.get("data.serializedPaymentsClientParams",R),q=this.getLoggingParams_(R);if(q||c||h)f.stopPropagation(),_.JH("ttcr",
void 0,"commerce_transaction"),c||_.xR(this.hostElement),this.changeButtonState(O,!1),h?_.OJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Tf("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:h}}},this]):c&&(this.changeButtonState(O,!0),f=null,f=this.openWalletDialog(O,c,l,q,function(){_.xR(u.hostElement);u.changeButtonState(O,!1)},function(){_.xR(u.hostElement);
u.changeButtonState(O,!1)},K),_.to(f.then(function(F){return u.handleBuyFlowCompleteCallback_(O,R,F)},function(){return u.handleOnLoadError(R)}).then(function(F){return u.handlePostPurchaseSuccess_(O,R,F)},function(F){return u.handlePostPurchaseError_(F)}),function(){u.changeButtonState(O,!1);
_.ul(O,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(f,R){R&&R.endpoint&&R.endpoint.ypcGetCartEndpoint&&!R.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",R.endpoint.ypcGetCartEndpoint)&&_.ZW(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",R.endpoint.ypcGetCartEndpoint)],f.target),_.om(this.hostElement),this.changeButtonState(f.target,!0))},
onServiceRequestError_:function(f,R){if(R&&R.params&&R.params.length){R=_.Z(R.params);for(var u=R.next();!u.done;u=R.next())if((u=u.value)&&u.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)&&_.ZW(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)],f.target);_.xR(this.hostElement);this.changeButtonState(f.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(f,R,u){var O=u.integratorData;return O==null||O===""||u.error!=null?(O=this.getLoggingParams_(R),String(u.error)==="-1"?(R.data.onCartDismissCommand&&_.ZW(this.hostElement,[R.data.onCartDismissCommand],f),_.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",O,!0))):_.NO(new ra("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",O))):R.data.handleTransactionEndpoint?ive(this.hostElement,R.data.handleTransactionEndpoint,{payments_payload:O,funds_guarantee_callback_client_data:u.integratorClientCallbackData}):
this.completeTransaction(R,u)},
handlePostPurchaseSuccess_:function(f,R,u){R=u.data;var O=!1,c,h;if(R&&((c=R.command)==null?0:(h=c.commandExecutorCommand)==null?0:h.commands)){var l,K;c=(l=R.command)==null?void 0:(K=l.commandExecutorCommand)==null?void 0:K.commands;for(l=0;l<c.length;l++)if(_.t(c[l],_.CxF)){O=!0;break}}O||(R&&R.gtmDatas&&R.gtmDatas.length?_.y3(R.gtmDatas[0]):_.y3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));u.data&&u.data.actions&&(R=CEz(u.data.actions),u=yjS(u.data.actions),R.length&&
_.hH(this.hostElement,R),u.length&&_.ZW(this.hostElement,u,f))},
handlePostPurchaseError_:function(f){f&&f.payload&&f.payload.isUserDismiss||_.TL(Error("yl"))},
handleOnLoadError:function(f){f=this.getLoggingParams_(f);return _.NO(new ra("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f))},
getLoggingParams_:function(f){return this.get("data.serializedTransactionFlowLoggingParams",f)},
handleMessageRenderer_:function(f){var R=_.DK(f,"renderer"),u=_.Tf("openPopupConfig");R==="confirmDialogRenderer"&&u&&_.OJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:u.popupTypeMap[R],popup:f}},this])},
handleYPCFixInstrumentEndpoint_:function(f,R){var u=this,O=R.ypcFixInstrumentEndpoint;R=O.encryptedFixInstrumentParameters;this.logFixFopEvent_(O,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(f,!0);this.openFixFlowDialog(R,function(c,h){u.onFixFlowCompleteCallback_(O,c,h)},function(){return u.changeButtonState(f,!1)},function(){u.changeButtonState(f,!1);
u.logFixFopEvent_(O,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(f,R,u){var O=_.Ph("payments.business.integration.scenario.FixInstrument");if(R==O.IntegratorCallbackType.ON_COMPLETE){R="FIX_FOP_EVENT_TYPE_CANCEL";var c=null;u.error!=null?u.error!=O.OnCompleteCallbackError.USER_CANCELLED&&(_.ZW(this.hostElement,[f.errorAction],this.hostElement),R="FIX_FOP_EVENT_TYPE_FAILURE",c="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ZW(this.hostElement,[f.successAction],this.hostElement),R="FIX_FOP_EVENT_TYPE_SUCCESS");_.ZW(this.hostElement,[f.onFinishAction],
this.hostElement);this.logFixFopEvent_(f,R,c)}},
logFixFopEvent_:function(f,R,u){(f=f.serializedFixFopLoggingParams)?(R={eventType:R,serializedFixFopLoggingParams:f},u!=null&&(R.errorType=u),_.Jr("fixFopFlow",R),_.zL()):_.TL(Error("zl"))},
changeButtonState:function(f,R){_.E("enable_ypc_spinners")&&f&&(f.is==="yt-button-renderer"||f.is==="ytd-button-renderer")&&(f.disabled=R)}}];var obK=function(f){this.JSC$28745_clientRoot=f;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Zgz,"yt-feedback-dialog-requested":hjm,"yt-signal-action-help":lH5,"yt-signal-action-send-feedback":keK,"yt-send-feedback-action":qPa,"yt-user-feedback-endpoint":AhS};_.SV(_.xN.getInstance(),this.feedbackCollectorActionMap,this.JSC$28745_clientRoot)},xYX;var SIt=function(f){this.JSC$28750_clientRoot=f;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":aHl.bind(null,this.JSC$28750_clientRoot),"yt-signal-action-delete-all-downloads":wWS,"yt-signal-action-delete-download":mqm,"yt-signal-action-delete-playlist-download":WBS,"yt-signal-action-install-pwa":NzN,"yt-signal-action-refresh-downloads":yh9,"yt-offline-video-endpoint":bga,"yt-offline-playlist-endpoint":jLS,"yt-update-local-app-setting-command":JhN,"yt-offline-orchestration-action-command":TzN,
"yt-signal-action-undo-delete-download":t85,"yt-local-watch-history-command":M8h};_.SV(_.xN.getInstance(),this.downloadManagerActionMap,this.JSC$28750_clientRoot);_.bj.instance=new _.bj},$YS;var Gi=function(){var f=_.U.apply(this,arguments)||this;f.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_"};f.remoteApi_=null;return f};
_.y(Gi,_.U);_.X=Gi.prototype;
_.X.ready=function(){_.E("polymer_enable_mdx")&&(OiK({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.E("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.E("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.E("enable_cast_short_lived_lounge_token")}),_.Z8("yt-remote-connection-change",this.handleConnectionChange_,this),_.Z8("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=KuS())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.X.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.X.handleConnectionChange_=function(f){(this.mdxConnected=f)?(f=hT2(),!f&&hah()&&ZaN()&&(f={key:"cast-selector-receiver",name:ZaN()}),f=f.name):f=null;this.receiverName=f;_.YD(this.remoteApi_);(this.remoteApi_=KuS())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.X.handleReceiverAvailabilityChange_=function(){var f=X1a();hah()&&_.Xs("yt-remote-cast-available")&&f.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=f.length>0};
_.X.handleRemoteQueueChange_=function(){var f=this.currentVideoId_,R=this.currentListId_,u=h7(this.remoteApi_);this.currentVideoId_=u.videoId;this.currentListId_=u.listId;this.currentVideoId_&&_.OJ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.E("polymer_enable_mdx_queue")?this.currentListId_:null,f,R])};
_.X.handleAddToQueueAction_=function(f){f=_.t(f,exK);this.remoteApi_&&(f.videoId?this.remoteApi_.addVideo(f.videoId):f.playlistId&&this.remoteApi_.addPlaylist(f.playlistId))};
_.X.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.X.handleInsertInQueueAction_=function(f){f=_.t(f,GpX);this.remoteApi_&&f.videoId&&this.remoteApi_.JSC$17547_insertVideo(f.videoId)};
_.X.handleRemoveFromQueueAction_=function(f){f=_.t(f,BFm);this.remoteApi_&&f.videoId&&this.remoteApi_.JSC$17547_removeVideo(f.videoId)};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],Gi.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I(),_.S("design:type",Object)],Gi.prototype,"appId",void 0);_.B([_.I(),_.S("design:type",Boolean)],Gi.prototype,"mdxConnected",void 0);_.B([_.I(),_.S("design:type",Boolean)],Gi.prototype,"receiverAvailable",void 0);_.B([_.I(),_.S("design:type",Object)],Gi.prototype,"receiverName",void 0);_.B([_.I(),_.S("design:type",Object)],Gi.prototype,"currentVideoId_",void 0);
_.B([_.I(),_.S("design:type",Object)],Gi.prototype,"currentListId_",void 0);Gi=_.B([_.DO({is:"yt-mdx-manager",disableElementRegistration:!0})],Gi);_.G(Gi,"yt-mdx-manager",void 0,{mode:2});var gbl;var soX;var BA=function(){var f=_.U.apply(this,arguments)||this;f.APP_IDS={ytr:3,ytm:5};f.JSC$18785_timeoutId_=0;f.actionMap={"yt-open-create-family-dialog":"open"};return f};
_.y(BA,_.U);_.X=BA.prototype;_.X.created=function(){yNl(2200)};
_.X.detached=function(){this.observer_&&this.observer_.disconnect()};
_.X.open=function(f,R){var u=this,O=f.serializedYpcFamilyCreateLoggingParams;this.JSC$18785_timeoutId_=setTimeout(this.abort_.bind(this,f.postFlowErrorEndpoint,O),3E4);R&&(this.onReadyCallback_=R);var c=_.b(this.hostElement).querySelector("#unicorn-iframe");O&&O&&XR2("ypcFamilyCreateFlowStarted",O);_.qV0("family_creation",function(){var h=_.Ph("gapi.family_creation.render");_.Ph("gapi.config.update")("iframes/family_creation/url",u.getFamilyCreationUrlWithUnicornParams_());var l=3;f.appId&&f.appId in
u.APP_IDS&&(l=u.APP_IDS[f.appId]);l={authUser:_.Tf("SESSION_INDEX")||0,clientId:l,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Tf("HL"),initialflow:[4,5,6,7],m:u.isMobile?1:0,onFlowComplete:u.onUnicornFlowComplete_.bind(u,f.postFlowSuccessEndpoint,O),onError:u.onUnicornFlowError_.bind(u,f.postFlowErrorEndpoint,O),onReady:u.onUnicornFlowReady_.bind(u,f.referencePcidParams)};h(c,l)})};
_.X.close=function(){_.b(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.X.onUnicornFlowComplete_=function(f,R){this.close();R&&R&&XR2("ypcFamilyCreateFlowSucceeded",R);_.ul(this.hostElement,"yt-navigate",{endpoint:f})};
_.X.onUnicornFlowError_=function(f,R){this.close();R&&XR2("ypcFamilyCreateFlowCancelled",R);_.ul(this.hostElement,"yt-navigate",{endpoint:f})};
_.X.onUnicornFlowReady_=function(f){var R=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();f&&_.Ph("gapi.family_creation.setConfig")(0,f);this.observer_=new MutationObserver(function(){_.b(R.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.b(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.b(this.hostElement).querySelector("#dialog").open()};
_.X.getFamilyCreationUrlWithUnicornParams_=function(){return _.Tf("YTR_FAMILY_CREATION_URL")};
_.X.getCurrentUrl_=function(){return document.location.href};
_.X.abort_=function(f,R){this.clearTimeout_();this.onUnicornFlowError_(f,R)};
_.X.clearTimeout_=function(){clearTimeout(this.JSC$18785_timeoutId_)};
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],BA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],BA.prototype,"isMobile",void 0);_.B([_.I(),_.S("design:type",Object)],BA.prototype,"onReadyCallback_",void 0);_.B([_.I(),_.S("design:type",Object)],BA.prototype,"observer_",void 0);BA=_.B([_.DO({is:"yt-create-family-dialog",disableElementRegistration:!0})],BA);
_.G(BA,"yt-create-family-dialog",function(){if(soX===void 0){var f=document.createElement("template");_.N(f,'\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');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);var R=f.content,u=R.insertBefore;gbl===void 0&&(gbl=document.createElement("template"));var O=gbl;u.call(R,O.content.cloneNode(!0),f.content.firstChild);soX=f}f=soX;return f},{mode:2});var nbK;var VU2;var oQ=function(){var f=_.U.apply(this,arguments)||this;f.STEP=1;f.BLOCK_ON=80;f.MIN_PROGESS=0;f.MAX_PROGESS=100;return f};
_.y(oQ,_.U);_.X=oQ.prototype;_.X.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.X.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));_.vh().addProvider({provide:GCm,useValue:this})};
_.X.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.X.finish=function(){var f=this;this.progress=this.MAX_PROGESS;P$w(function(){f.progress==f.MAX_PROGESS&&(f.hostElement.hidden=!0)})};
_.X.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Vy.Object.defineProperties(oQ.prototype,{progress:{configurable:!0,enumerable:!0,set:function(f){this.progress_=f;var R="scaleX("+f/this.MAX_PROGESS+")",u=_.b(this.hostElement).querySelector("#progress").style;u.transform=R;u.webkitTransform=R;this.hostElement.setAttribute("aria-valuenow",String(f))},
get:function(){return this.progress_}}});
_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],oQ.prototype,"ytComponentBehavior",void 0);oQ=_.B([_.DO({is:"yt-page-navigation-progress",disableElementRegistration:!0})],oQ);
_.G(oQ,"yt-page-navigation-progress",function(){if(VU2===void 0){var f=document.createElement("template");_.N(f,'\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');f.content.insertBefore(_.v().content.cloneNode(!0),
f.content.firstChild);var R=f.content,u=R.insertBefore;nbK===void 0&&(nbK=document.createElement("template"));var O=nbK;u.call(R,O.content.cloneNode(!0),f.content.firstChild);VU2=f}f=VU2;return f},{mode:2});var YIe={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"},vb9={"font-size":"12px","font-style":"italic"},iFl={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Bz9=function(){return _.k(function(f){_.KG(f)})};_.ii(_.nf(function(){var f=_.JS(_.Epl);return _.a("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var R;return(R=f())==null?void 0:R.announcement})},"$g"),"yt-ephemeral-actions");var XL2=new Map;var e8h=function(f,R){var u=this;this.handleError=f;this.logEventInternal=R;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){u.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
e8h.prototype.logError=function(f){this.handleError(f)};
e8h.prototype.logEvent=function(f,R){switch(f){case "IDB_DATA_CORRUPTED":_.E("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",R);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",R);break;case "IS_SUPPORTED_COMPLETED":_.E("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",R);break;case "QUOTA_EXCEEDED":rXw(this,R);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",R);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":f=Object.assign({},R,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",f)}};
var rXw=function(f,R){_.q3.getInstance().estimate().then(function(u){u=Object.assign({},R,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Zna(u==null?void 0:u.usage),deviceStorageQuotaMbytes:Zna(u==null?void 0:u.quota)});f.logEventInternal("idbQuotaExceeded",u)})};var x4=function(){var f=_.U.apply(this,arguments)||this;f.tabGesturesIsActive=!1;f.deprecateFullerscreenUi=_.E("web_watch_fullerscreen_deprecation_ui");f.hasDelegation=!1;f.darkerDarkTheme=_.E("web_darker_dark_theme");f.isFrostedGlassInitialized=!1;f.frostedGlassExp=_.E("web_frosted_glass");f.mastheadHiddenFocusWithinKillswitch=_.E("web_masthead_hidden_focus_within_killswitch");f.ephemeralActionsEnabled=_.E("web_ephemeral_actions");f.scrollAtTop=!0;f.guideScrollTop=0;f.isTheaterModeSession=_.Hh("START_IN_THEATER_MODE");
f.iMaxTheaterMode=_.E("web_watch_imax_theater_mode");f.isFullWindowSession=_.Hh("START_IN_FULL_WINDOW_MODE");f.hasCreateFamilyDialog=!1;f.mastheadHeight=56;f.networkStatusManager=new _.$M;f.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"};f.dynamicActionMap={"yt-run-attestation-command":function(R){var u=_.iPl.instance,O=_.t(R,_.Bhi);return O?_.E("use_rta_manager_for_async")&&
dWz()?Alt(u,O,R.clickTrackingParams):qUK(u,O,R.clickTrackingParams):_.NO(Error("ki"))}};
f.isFrostedGlassDisabled=!1;f.isChannelOrPlaylistPage=!1;return f};
_.y(x4,_.U);_.X=x4.prototype;_.X.created=function(){var f=_.vh();_.E("kevlar_clear_duplicate_pref_cookie")&&_.dJ(_.JA,function(){var R=_.wU.get("PREF");R&&!/f\d=/.test(R)&&(R=_.uZ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=R?"PREF=null;domain="+R+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.E("gzip_gel_with_worker")&&_.jL2();_.E("jspb_serialize_with_worker")&&V0l();_.E("web_worker_availability_check")&&hGh();_.E("nwl_init_killswitch")||sSh().then(function(){_.JA.addLowPriorityJob(avt)});
this.pageManagerAttachedPromise=_.BM();this.ytdAppBehavior.loadDepsPromise=_.EF([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.vJ(this.onThrottledScroll,200,this);_.E("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Gfl();jFz=!!_.Ph("ytappsettings.initialized");Zg=_.Ph("ytappsettings.previousValue");ysK=_.Ph("ytappsettings.previousSnapshotTime");jFz||(jFz=!0,dva());E7w();tdS();_.zf("DEFERRED_DETACH",
_.E("kevlar_tuner_should_defer_detach"));_.zf("REUSE_COMPONENTS",!0);_.zf("STAMPER_STABLE_LIST",!0);_.zf("SCHEDULED_LAZY_LIST",!0);_.zf("openPopupConfig",us2);_.zf("useClickHandler",!0);_.E("kevlar_shell_cleanup")&&_.JA.addLowPriorityJob(JsS.bind(this,_.Oe.caches));_.Hh("IS_SHELL_LOAD")&&_.ja({shellStartupDurationMs:Math.round((0,_.iZ)()-_.Cv())});$ql(this.networkStatusManager);_.E("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Uq9(YIe)),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!",
Uq9(vb9)),console.log("%cVisit http://go/join-youtube-web to apply today.",Uq9(iFl)));_.Gxm(f.resolve(_.Z6),1E3)};
_.X.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var f=Xf2();f&&!_.E("external_fullscreen_killswitch")&&document.addEventListener(f,this.setFullscreen.bind(this));(f=window.matchMedia("(prefers-color-scheme: dark)"))&&f.addEventListener&&f.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.X.attached=function(){var f=this;_.TC().processSignal("ci");_.E("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.tO0?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Ad(_.zIX(),"SUCCESS");this.updateIconSet();_.fv(this.guideInnerContent,!1);_.Q3().initVisibilityObserver();this.guideService.guideElement=this.guide;var R=document.createElement("ytd-miniplayer"),u=_.b(this.hostElement).querySelector("#content");
_.b(this.hostElement).insertBefore(R,u);_.TC().processSignal("ma");_.vh().resolve(_.MS).init(R);_.Hh("IS_SHELL_LOAD")&&(u=document.createElement("ytd-network-status-banner"),_.b(this.hostElement).insertBefore(u,R));_.E("kevlar_right_click_on_lockups")&&_.ev._onCaptureClick&&document.addEventListener("contextmenu",_.ev._onCaptureClick.bind(_.ev),!0);var O=function(){var c=_.Yd("yt-page-navigation-progress");_.b(f.hostElement).appendChild(c)};
setTimeout(function(){_.TC().parkOrScheduleJob(O,0,"eocs",16)},0);
_.E("service_worker_push_enabled")&&_.dJ(_.JA,cAl);_.SV(_.xN.getInstance(),this.dynamicActionMap,this.hostElement);_.ul(this.hostElement,"ytd-app-attached");_.TC().processSignal("aa");CZ5(this.hostElement);_.V4("gapi.load",_.qV0);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.dJ(_.JA,
function(){var c=document.createElement("ytd-video-preview");_.b(_.b(f.hostElement).querySelector("#video-preview")).appendChild(c)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.dJ(_.JA,function(){oZ5();f.registerViewTransitionTasks()});
if(_.Ln()&&this.isAppDarkTheme()!==_.dY())this.onDarkModeToggledAction();else R=_.NL()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==R&&(_.E("enable_dark_theme_only_on_shorts")?_.G$(_.E("enable_dark_theme_only_on_shorts_control")?window.location.href:_.x8(window.location.href,{theme:"dark"})):_.Ih(new _.ts("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(h7m=new XTm(this.hostElement)),$YS=new SIt(this.hostElement),xYX=new obK(this.hostElement),LfK=new Njm(this.hostElement)};
_.X.getThemeSettingsToLog=function(){var f=_.NL()==="USER_INTERFACE_THEME_DARK";f=_.Ln()?_.dY()?"os-dark":"os-light":f?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:f,cookiesEnabled:_.Q4()}};
_.X.detached=function(){_.Rp(this.guideInnerContent);_.JA.cancelJob(cU);cU=0;_.JA.cancelJob(h3);h3=0;_.oSn(thz);thz.length=0;QV5=_.ceq=null;_.Q3().dispose();_.E("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.$N(_.xN.getInstance(),h7m.playlistHandlerActionMap,h7m.JSC$28446_clientRoot);_.$N(_.xN.getInstance(),$YS.downloadManagerActionMap,$YS.JSC$28750_clientRoot);_.$N(_.xN.getInstance(),xYX.feedbackCollectorActionMap,xYX.JSC$28745_clientRoot);
for(var f=_.Z(LfK.eventListeners),R=f.next();!R.done;R=f.next()){var u=_.Z(R.value);R=u.next().value;u=u.next().value;u=_.Z(u);for(var O=u.next();!O.done;O=u.next()){var c=_.Z(O.value);O=c.next().value;c=c.next().value;R.removeEventListener(O,c)}}_.$N(_.xN.getInstance(),LfK.autonavPauseActionMap,LfK.JSC$17732_clientRoot)};
_.X.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Qu().getFlag(186)};
_.X.computeIsInlinePreviewEnabled=function(f,R,u){return!u&&_.MFK({miniplayerIsActive:f,miniplayerPlaybackState:R})};
_.X.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.OP({type:"SET_FROSTED_GLASS_MODE",payload:!_.E("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"}))};
_.X.computeIsFrostedGlassDisabled=function(f,R,u,O){return f||R||u||O&&_.E("web_frosted_glass_disable_watch")};
_.X.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.E("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.X.computeIsHomePage=function(f,R){if(!f||R==null||!R.endpoint)return!1;var u;return((u=_.t(R.endpoint,_.wY))==null?void 0:u.browseId)==="FEwhat_to_watch"};
_.X.updateIsChannelOrPlaylistPage=function(){if(_.E("web_frosted_glass")){var f,R,u=(R=(f=_.vh().resolve(_.Y8(_.sz)))==null?void 0:f.getCurrentPage())==null?void 0:R.pageSubtype;this.isChannelOrPlaylistPage=u?["channel","channels","playlist"].includes(u):!1}};
_.X.scheduleFrostedGlassInitialization=function(){var f=this;_.E("web_frosted_glass")&&_.TC().parkOrScheduleJob(function(){f.isFrostedGlassInitialized=!0},0,_.Jz(["eocs",
"cr"]),300)};
_.X.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.EiG(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.OP({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.OP({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.X.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Er9(!0))};
_.X.onYtSignalActionRequestPersistentStorage=function(){if(!_.E("request_persistent_storage_killswitch")){var f=_.vh().resolve(_.HZi);f.cachedPersistStatePromise||(f.cachedPersistStatePromise=UMh())}};
_.X.handleYtChannelCreationFormEndpoints=function(f){f&&this.ytComponentBehavior.resolveCommand(f)};
_.X.handleShowEngagementPanelEndpoint=function(f){f&&this.ytComponentBehavior.resolveCommand(f)};
_.X.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Er9(!1))};
_.X.initIconDefs=function(f,R,u){var O=document.createElement("iron-iconset-svg");O.name=f;f=document.createElementNS("http://www.w3.org/2000/svg","svg");O.appendChild(f);f.appendChild(R);if(u)for(var c in u)O[c]=u[c];document.body.appendChild(O);return O};
_.X.onWindowResized=function(){_.OJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var f=_.D$H.getInstance();f.documentWidth_=document.body.clientWidth;eGK(f)};
_.X.onWindowScrolled=function(){var f=_.vh().resolve(_.sz).getCurrentPage();if(f!=null&&f.getScrollTop){var R=this.ytdReduxBehavior,u=R.dispatch;f=f.getScrollTop()<=0;u.call(R,_.OP({type:"SET_SCROLL_AT_TOP",payload:f}))}};
_.X.guideIsVisibleButNotPersistentSelectorChanged=function(){var f=_.vh().resolve(_.sz).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=f.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"),
f.setScrollTop(this.guideScrollTop));_.c_(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.X.getCurrentPageScrollableElementType=function(){var f=_.vh().resolve(_.sz).getCurrentPage();if(f&&f.getPageScrollingElement())return f.getPageScrollingElement().nodeName};
_.X.observeGuideVisibility=function(){var f=_.D$H.getInstance(),R=this.miniGuideVisible;f.guidePersistentAndVisible_=this.guidePersistentAndVisible;f.miniGuideVisible_=R;eGK(f)};
_.X.handleEduDismissAction=function(f){f&&f.eduDismissAction&&(_.OJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.NpA.getInstance(),_.gt.set(f.eduDismissAction.key+"-dismissed",!0))};
_.X.handleEduImpressionAction=function(f){if(f&&f.eduImpressionAction){var R=_.NpA.getInstance();f=f.eduImpressionAction.key;R.JSC$10902_eduDisplayedThisLoad_[_.d$l[f].setKey||f]=!0;_.gt.set(f+"-impression",parseInt(_.gt.get(f+"-impression")||0,10)+1)}};
_.X.onYtSignalActionConfirmMentionsEdu=function(){_.OJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Vp.getInstance();_.ni.set("edu-dismissed",!0)};
_.X.onYtSignalActionRecordMentionsEduImpression=function(){_.Vp.getInstance();var f=_.ni.set,R=parseInt(_.ni.get("edu-impressions"),10);f.call(_.ni,"edu-impressions",(isFinite(R)?R:0)+1)};
_.X.onYtPageManagerAttached=function(f){var R;((R=_.gY(f))==null?void 0:R.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.X.onInvokeInstrumentManagerAction=function(f,R){qyS(R,f)};
_.X.updateIconSet=function(){var f=this.hostElement.querySelector("#masthead");if(f){var R=_.OU(f),u=R.querySelector("g#yt-logo-updated");u&&(f=document.createElementNS("http://www.w3.org/2000/svg","defs"),f.appendChild(u.cloneNode(!0)),(R=R.querySelector("g#yt-logo-red-updated"))&&f.appendChild(R.cloneNode(!0)),this.initIconDefs("yt-logos-ext",f))}};
_.X.updateMastheadData=function(){var f=this,R,u,O,c,h;return _.k(function(l){if(l.nextAddress==1){R=f.data;u=f.hostElement.querySelector("#masthead");if(!u)return l.return();_.su(f,function(){u.data=f.topbarData});
if(!f.get("response.topbar",R)||f.get("response.topbar.responseContext.maxAgeSeconds",R)===0)return l.jumpTo(0);if(O=_.vh().resolve(_.oe))return _.A(l,O(),6);c=_.vh().resolve(_.XC);return _.A(l,c.put("service:topbar:fallback",new _.hU({innertubeResponse:f.get("response.topbar",R)})),0)}return(h=l.yieldResult)?_.A(l,h.put("service:topbar:fallback",new _.hU({innertubeResponse:f.get("response.topbar",R)})),0):l.jumpTo(0)})};
_.X.computeTopbarData=function(f){if(!f)return null;var R;return this.isShortsPage&&this.topbarData&&!_.t((R=f.response)==null?void 0:R.topbar,L09)?this.topbarData:f.response&&"topbar"in f.response?_.t(f.response.topbar,L09)||null:null};
_.X.onSetTheaterModeEnabled=function(f,R){this.isTheaterModeSession=R.enabled;this.setTheaterModeStyles(R.enabled)};
_.X.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.X.onDarkModeToggledAction=function(){var f=_.Kt(window.location.href);if(!_.wdD(f)){(f=!!_.oS(window.location.href).themeRefresh)&&_.Ih(new _.ts("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!f){dva();f={themeRefresh:1};var R=_.vh().resolve(_.sz);if(R.isOnWatch()){var u,O;R=((u=R.getPlayerFromWatch())==null?void 0:(O=u.getPlayer())==null?void 0:O.getCurrentTime())||0;R>=1&&(f.time_continue=Math.floor(R))}_.Q4()||_.NL()!=="USER_INTERFACE_THEME_DARK"||(f.theme="dark");_.G$(_.x8(window.location.href,
f))}_.E("web_appshell_refresh_trigger")&&_.Oe.caches&&this.refreshAppShellResponse();u=_.G4(window.location.href);_.kc(_.vh().resolve(_.Ke),_.Y7(u,"theme"))}};
_.X.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.X.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.X.onPlayerFullscreen=function(f){_.iE();this.playerFullscreen=f};
_.X.setRestrictedMode=function(f){var R=_.Qu();_.W_(0,58,f);R.save();_.vh().resolve(_.mf).reload()};
_.X.onPageChanged=function(f){f.detail.newPageType==="ytd-watch-flexy"||f.detail.newPageType==="ytd-watch-fixie"||f.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.bk("WEB_PAGE_TYPE_WATCH")):f.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.bk("WEB_PAGE_TYPE_SHORTS")):f.detail.newPageType==="ytd-browse"&&f.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.bk("WEB_PAGE_TYPE_MINI_APP")):_.E("web_frosted_glass")&&f.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.bk("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.bk("WEB_PAGE_TYPE_UNKNOWN"));f.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.X.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.X.onGuideToggleTap=function(){_.ul(this.hostElement,"yt-guide-toggle")};
_.X.onGuideToggleHover=function(){_.ul(this.hostElement,"yt-guide-hover")};
_.X.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.X.setMastheadTheme=function(){var f=_.OU(this.hostElement).querySelector("#masthead");f&&(f.dark=f.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),f.isDarkThemeForced=!1)};
_.X.onRequestPanelModeChange=function(f,R){this.hideHeaderShadow=R.mode!=="seamed"};
_.X.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.X.onDrawerIronSelect=function(f){_.gY(f).id==="guide"&&this.processDrawerIronSelect()};
_.X.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var f="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(f="opened"));_.ul(this.hostElement,"yt-autonav-pause-guide-"+f)};
_.X.onAddElementToApp=function(f){_.b(this.hostElement).appendChild(f.detail)};
_.X.onThrottledScroll=function(){var f=_.vh().resolve(_.sz).getCurrentPage();f&&(this.scrollAtTop=f.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.X.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.X.setFullscreen=function(){if(_.E("external_fullscreen")||!this.isWatchPage){var f=_.E("kevlar_fullerscreen_root_only_killswitch")?!!_.iE():!!_.iE()&&_.iE()===document.documentElement;f=(this.isWatchPage||_.E("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(f||this.isFullWindowSession);this.fullscreen!==f&&((this.fullscreen=f)&&_.c_(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.sP().dispatch(_.E8X(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.OJ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.X.setFullscreenLoggingForShorts=function(f){var R,u,O;return _.k(function(c){if(c.nextAddress==1)return _.A(c,(R=_.Vm())==null?void 0:R.getPlayerPromise(),2);u=c.yieldResult;(O=u)==null||O.setAppFullscreen(f);_.KG(c)})};
_.X.updateMastheadCssHeight=function(){var f=this.mastheadHeight;this.fullscreen&&(f=0);_.ZO(this.hostElement,{"--ytd-masthead-height":f+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.X.updateNetworkStatusBannerDisplayStatus=function(){var f="unset";this.fullscreen&&(f="none");_.ZO(this.hostElement,{"--ytd-network-status-banner-display":f})};
_.X.updateNetworkStatusBannerCssHeight=function(){var f="unset";this.fullscreen&&(f="0px");_.ZO(this.hostElement,{"--ytd-network-status-banner-max-height":f})};
_.X.updateScrollAndMasthead=function(f,R,u,O){this.iMaxTheaterMode||(O=!1);var c=_.vh().resolve(_.sz).getCurrentPage();f||R||O?(document.body.classList.add("no-scroll"),c.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ks(this,this.onScroll)),c.setScrollTop(0),_.ZO(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.pw()+"px"})):u?_.ul(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.ul(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
c.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ks(this,this.onScroll)));this.mastheadHidden=f||R||u;this.updateMastheadCssHeight();_.E("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.X.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.X.onYtNavigateAction=function(f){f=this.get("navigateAction.endpoint",f);_.ul(this.hostElement,"yt-navigate",{endpoint:f})};
_.X.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var f=document.createElement("yt-create-family-dialog");_.b(this.hostElement).appendChild(f);this.hasCreateFamilyDialog=!0}};
_.X.onSetPushNotificationsEnabledCommand=function(f){var R=this,u=_.t(f,NFl);u&&typeof u.enabled==="boolean"&&(Notification.permission!=="granted"?rsh().then(function(){Notification.permission==="granted"?(Uvm(!u.enabled).then(BUN),u.successAction&&_.hH(R.hostElement,[u.successAction])):u.failureAction&&_.hH(R.hostElement,[u.failureAction])}):(Uvm(!u.enabled).then(BUN),u.successAction&&_.hH(this.hostElement,[u.successAction])))};
_.X.onYtSignalActionEnableChromeNotifications=function(){f99(!0)};
_.X.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.t(this.topbarData.hotkeyDialog,jbm)}}})};
_.X.onYtSignalActionShowKeyboardShortcutDialog=function(){_.OJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.X.onYtEndpointChangeHandler=function(f,R){var u=_.c9(_.wj);u.pendingPrefetchJob_&&(R=!(!R||R.autonav!="1"),u.pendingPrefetchJob_.resolve(f&&_.Xd5(f)?_.hV7(f,R):""),u.pendingPrefetchJob_=null);_.OJ(this.hostElement,"yt-pause-active-page-context");_.OJ(this.hostElement,"ytd-log-youthere-nav");_.OJ(this.hostElement,"yt-prepare-page-dispose")};
_.X.handleCommandWithCommandHandler=function(f,R){_.KU.instance.resolveCommand(f,{form:{element:R}})};
_.X.onYtTimedCommand=function(f){var R=this;f=_.t(f,a$a);var u=f.command;u&&_.Cr(_.JA,function(){var O=_.t(u,_.gwY);O?(_.KU.instance.resolveCommand(u),R.maybeLogGetAnswerRequestTick(O)):_.ZW(R.hostElement,[u],R.hostElement)},f.timeoutMs||0)};
_.X.maybeLogGetAnswerRequestTick=function(f){f&&f.isFirstRequest&&(_.DW("search_overview_answer"),_.JH("so_rq",void 0,"search_overview_answer"))};
_.X.onYtSignalActionSkipNavigation=function(){var f=_.vh().resolve(_.sz).getCurrentPage();_.YM(f)};
_.X.onYtSignalActionCopyDebugData=function(){a9N()};
_.X.handleEntityUpdateCommand=function(f){_.FX(_.t(f,_.VTk).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.X.logFlowLoggingEventCommand=function(f){if(f=_.t(f,_.gbt))if(f.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var R=f.flowEventNamespace,u=f.flowEventType,O=f.flowType;O&&R&&u&&_.ik0(_.kS(R,u,f.flowEventMetadata),O)}else{R=_.qL();u=f.flowEventNamespace;O=f.flowEventType;var c=f.flowType;c&&u&&O&&_.Kn(R,_.kS(u,O,f.flowEventMetadata),c,f.flowNonce)}};
_.X.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.X.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.X.onTouchStart=function(){var f=_.WT();_.z4()&&_.MI(f.JSC$11129_screenManager,{visualElement:f.ve})};
_.X.handleSelectLanguageCommand=function(f){if(f=_.t(f,CQw).hl){var R=_.Qu();R.set("hl",f);R.save();_.vh().resolve(_.mf).reload()}};
_.X.handleConfirmDialogEndpoint=function(f){(f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&this.ytOpenPopupBehavior.openPopup(f)};
_.X.handleOpenPopupNavigationEndpoints=function(f,R){_.E("web_button_rework")&&(f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&this.ytOpenPopupBehavior.openPopup(f,R)};
_.X.handleSaveCommandToSessionStorage=function(f){if(f=_.t(f,_.smf)){var R=f.key;R&&f.command&&window.sessionStorage.setItem(R,JSON.stringify(f.command))}};
_.X.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(f){f&&f.active&&f.active.postMessage({type:"refresh_shell"})}).catch(function(f){f.name!=="SecurityError"&&_.TL(f)})};
_.X.onDeviceThemeChanged=function(){var f=_.dY();_.W_(_.Qu(),185,f);_.Qu().save()};
_.X.handleYtRegisterPromoCommand=function(f){if(_.t(f,dfm)){var R=_.vh().resolve(_.sz).getCurrentPage()||this.hostElement;Hih().registerPromoCommand(_.t(f,dfm),R)}};
_.X.onYtNavigateHomeAction=function(){if(!_.E("kevlar_miniplayer_navigate_home_from_app_killswitch")){var f,R,u,O,c=(O=(f=this.topbarData)==null?void 0:(R=f.logo)==null?void 0:(u=R.topbarLogoRenderer)==null?void 0:u.endpoint)!=null?O:_.Ai;this.ytComponentBehavior.resolveCommand(c)}};
_.X.onYtLocationCollectionCommand=function(f){Gem(_.t(f,PQN))};
_.X.onYtGetLocationCommand=function(f){ba2(_.t(f,M7m),this)};
_.X.updateRenderGuideFromBinding=function(f){this.renderGuide=f.detail.value};
_.X.updateGuidePersistentAndVisibleFromBinding=function(f){this.guidePersistentAndVisible=f.detail.value};
_.X.updateMiniGuideVisibleFromBinding=function(f){this.miniGuideVisible=f.detail.value};
_.X.onThemeSelected=function(f,R){var u=_.Qu(),O=f||R?f:_.dY(),c=(O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.wdD(_.Kt(window.location.href));_.W_(0,165,f);_.W_(0,174,R);u.save();c&&_.OJ(this.hostElement,"yt-dark-mode-toggled-action",[O]);_.OJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.getCurrentTheme=function(){return _.Ln()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.NL()};
_.X.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.X.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.X.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.X.handleShowConsentPrimitive=function(f){var R=this,u,O;return _.k(function(c){if(c.nextAddress==1){try{u=(O=_.Vm())==null?void 0:O.getPlayerPromise()}catch(h){}return _.A(c,cNX(f,u),2)}_.OJ(R.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.KG(c)})};
_.X.handleSelectActiveIdentityEndpointInternal=function(f){_.Uy();f=_.t(f,_.qTl);if(f!=null&&f.supportedTokens){f=_.Z(f.supportedTokens);for(var R=f.next();!R.done;R=f.next())R=R.value,R.accountSigninToken&&_.G$(R.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.X.handleUpdatePermissionRoleCommand=function(f){if(f=_.t(f,_.kgI)){var R;this.hasDelegation=!((R=_.t(f.renderer,_.l2A))==null||!R.status)}};
_.X.registerViewTransitionTasks=function(){var f=this,R=_.vh().resolve(_.Y8(_.Q7));if(R){var u,O=(u=this.guide)==null?void 0:u.querySelector("#scrim"),c,h=(c=this.guide)==null?void 0:c.querySelector("#contentContainer");O&&h&&(u={beforeTransition:function(){var l;(l=f.guide)!=null&&l.persistent||(O.style.viewTransitionName="app-drawer-scrim",h.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var l;(l=f.guide)!=null&&l.persistent||(O.style.viewTransitionName="",h.style.viewTransitionName="")}},VU(R,"slide",u),VU(R,"zoom",u))}};
_.Vy.Object.defineProperties(x4.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.E("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Vy.Object.defineProperties(x4,{template:{configurable:!0,enumerable:!0,get:function(){if(MUa===void 0){var f=document.createElement("template");_.N(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
f.content.insertBefore(_.v().content.cloneNode(!0),f.content.firstChild);MUa=f}f=MUa;return f}}});
x4.prototype.onOpenHotkeyDialog=x4.prototype.onOpenHotkeyDialog;x4.prototype.setFullscreen=x4.prototype.setFullscreen;x4.prototype.onAddElementToApp=x4.prototype.onAddElementToApp;x4.prototype.onDrawerIronSelect=x4.prototype.onDrawerIronSelect;x4.prototype.onGuideOpenButtonHover=x4.prototype.onGuideOpenButtonHover;x4.prototype.onRequestPanelModeChange=x4.prototype.onRequestPanelModeChange;x4.prototype.onPageDataUpdated=x4.prototype.onPageDataUpdated;x4.prototype.onPageChanged=x4.prototype.onPageChanged;
x4.prototype.onSetTheaterModeEnabled=x4.prototype.onSetTheaterModeEnabled;x4.prototype.updateMastheadData=x4.prototype.updateMastheadData;x4.prototype.onYtPageManagerAttached=x4.prototype.onYtPageManagerAttached;x4.prototype.observeGuideVisibility=x4.prototype.observeGuideVisibility;x4.prototype.guideIsVisibleButNotPersistentSelectorChanged=x4.prototype.guideIsVisibleButNotPersistentSelectorChanged;x4.prototype.isInlinePreviewEnabledChanged=x4.prototype.isInlinePreviewEnabledChanged;
x4.prototype.isWatchPageChanged=x4.prototype.isWatchPageChanged;x4.prototype.dispatchFrostedGlassMode=x4.prototype.dispatchFrostedGlassMode;_.B([_.z(_.zH),_.S("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.B([_.z(_.wG.YtEventForwardingBehavior),_.S("design:type",Object)],x4.prototype,"ytEventForwardingBehavior",void 0);_.B([_.z(_.Ae.YtOpenPopupBehavior),_.S("design:type",Object)],x4.prototype,"ytOpenPopupBehavior",void 0);
_.B([_.z(_.fq.YtActionHandlerBehavior),_.S("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.z({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.xN.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.E("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var f;((f=this.actionRouterNode.hostElement)!=null?f:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var f;((f=this.actionRouterNode.hostElement)!=null?f:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(f){this.actionRouter_.handleAction(f.detail)}}),
_.S("design:type",Object)],x4.prototype,"ytActionRouterBehavior",void 0);_.B([_.z(oam.YtdAppBehavior),_.S("design:type",Object)],x4.prototype,"ytdAppBehavior",void 0);_.B([_.z(_.aD.YtEndpointBehavior),_.S("design:type",Object)],x4.prototype,"ytEndpointBehavior",void 0);_.B([_.z(By9.YtEndpointHandlerWithYpcBehavior),_.S("design:type",Object)],x4.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.B([_.z(PNl.YtLogYpcFlowCommandsBehavior),_.S("design:type",Object)],x4.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.B([_.z(_.r.YtRendererBehavior),_.S("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.B([_.z(_.M7.YtComponentBehavior),_.S("design:type",Object)],x4.prototype,"ytComponentBehavior",void 0);_.B([_.I({selector:_.a0h}),_.S("design:type",Object)],x4.prototype,"tabGesturesIsActive",void 0);_.B([_.I(),_.S("design:type",Boolean)],x4.prototype,"renderGuide",void 0);
_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"guidePersistentAndVisible",void 0);_.B([_.I({selector:_.Amm}),_.S("design:type",Boolean)],x4.prototype,"guideIsVisibleButNotPersistent",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"standalone",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"miniGuideVisible",void 0);
_.B([_.I({selector:_.miD}),_.S("design:type",Number)],x4.prototype,"miniplayerPlaybackState",void 0);_.B([_.I({selector:_.Jh,reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"miniplayerIsActive",void 0);_.B([_.I({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.S("design:type",Boolean)],x4.prototype,"isInlinePreviewEnabled",void 0);_.B([_.I(),_.S("design:type",Boolean)],x4.prototype,"isInlinePreviewDisabled",void 0);
_.B([_.I({reflectToAttribute:!0,value:function(){return _.Hh("START_IN_FULL_WINDOW_MODE")}}),
_.S("design:type",Boolean)],x4.prototype,"mastheadHidden",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"playerFullscreen",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x4.prototype,"deprecateFullerscreenUi",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"fullscreen",void 0);_.B([_.I({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"hideHeaderShadow",void 0);
_.B([_.I({value:{GUIDE_ALT_LABEL:_.Fa("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.S("design:type",Object)],x4.prototype,"menuStrings",void 0);_.B([_.I({computed:"computeTopbarData(data)"}),_.S("design:type",Object)],x4.prototype,"topbarData",void 0);_.B([_.I({selector:_.ze}),_.S("design:type",Boolean)],x4.prototype,"isWatchPage",void 0);_.B([_.I({selector:_.alB,reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"isShortsPage",void 0);
_.B([_.I({selector:function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.S("design:type",Boolean)],x4.prototype,"isMiniAppPage",void 0);_.B([_.I({selector:function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.S("design:type",Boolean)],x4.prototype,"isBrowsePage",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Boolean)],x4.prototype,"scrolling",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x4.prototype,"hasDelegation",void 0);_.B([_.I({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],x4.prototype,"guideScrolledByTouch",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x4.prototype,"darkerDarkTheme",void 0);
_.B([_.I(),_.S("design:type",Object)],x4.prototype,"isFrostedGlassInitialized",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x4.prototype,"frostedGlassExp",void 0);_.B([_.I({selector:function(f){return f.ui.chipBarIsSticky}}),
_.S("design:type",Boolean)],x4.prototype,"chipBarIsSticky",void 0);_.B([_.I({computed:"computeIsHomePage(isBrowsePage, data)"}),_.S("design:type",Boolean)],x4.prototype,"isHomePage",void 0);_.B([_.I({reflectToAttribute:!0}),_.S("design:type",Object)],x4.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.B([_.I(),_.S("design:type",Object)],x4.prototype,"ephemeralActionsEnabled",void 0);_.B([_.sK("guide"),_.S("design:type",Object)],x4.prototype,"guide",void 0);
_.B([_.sK("guide-service"),_.S("design:type",jrm)],x4.prototype,"guideService",void 0);_.B([_.sK("guide-inner-content"),_.S("design:type",HTMLDivElement)],x4.prototype,"guideInnerContent",void 0);_.B([_.I({selector:_.WZl}),_.S("design:type",String)],x4.prototype,"frostedGlassMode",void 0);
_.B([_.qM("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"dispatchFrostedGlassMode",null);_.B([_.I({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.S("design:type",Object)],x4.prototype,"isFrostedGlassDisabled",void 0);
_.B([_.qM("isWatchPage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"isWatchPageChanged",null);_.B([_.T("isHomePage","chipBarIsSticky"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],x4.prototype,"applyFrostedGlassToChipBar",null);_.B([_.I(),_.S("design:type",Object)],x4.prototype,"isChannelOrPlaylistPage",void 0);
_.B([_.QR("isInlinePreviewEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"isInlinePreviewEnabledChanged",null);_.B([_.qM("guideIsVisibleButNotPersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.B([_.qM("guidePersistentAndVisible","miniGuideVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"observeGuideVisibility",null);_.B([_.Kf("attached"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],x4.prototype,"onYtPageManagerAttached",null);_.B([_.qM("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],x4.prototype,"updateMastheadData",null);
_.B([_.Kf("yt-set-theater-mode-enabled"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],x4.prototype,"onSetTheaterModeEnabled",null);_.B([_.Kf("yt-page-type-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],x4.prototype,"onPageChanged",null);_.B([_.Kf("yt-page-data-updated"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"onPageDataUpdated",null);
_.B([_.Kf("yt-request-panel-mode-change"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Object]),_.S("design:returntype")],x4.prototype,"onRequestPanelModeChange",null);_.B([_.Kf("yt-guide-hover"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"onGuideOpenButtonHover",null);_.B([_.Kf("app-drawer-transitioned"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],x4.prototype,"onDrawerIronSelect",null);
_.B([_.Kf("yt-add-element-to-app"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],x4.prototype,"onAddElementToApp",null);_.B([_.Kf("yt-set-fullerscreen-styles"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"setFullscreen",null);_.B([_.Kf("yt-open-hotkey-dialog"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x4.prototype,"onOpenHotkeyDialog",null);
x4=_.B([_.e({is:"ytd-app"})],x4);_.TC().processSignal("eor");
_.TP();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
